Commit | Autor | Alter
|
0a10d5
|
1 |
#! /bin/sh |
JS |
2 |
# Guess values for system-dependent variables and create Makefiles. |
|
3 |
# Generated by GNU Autoconf 2.69 for G4Track_lib_dist 0.0.2. |
|
4 |
# |
|
5 |
# Report bugs to <help@polhemus.com>. |
|
6 |
# |
|
7 |
# |
|
8 |
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
|
9 |
# |
|
10 |
# |
|
11 |
# This configure script is free software; the Free Software Foundation |
|
12 |
# gives unlimited permission to copy, distribute and modify it. |
|
13 |
## -------------------- ## |
|
14 |
## M4sh Initialization. ## |
|
15 |
## -------------------- ## |
|
16 |
|
|
17 |
# Be more Bourne compatible |
|
18 |
DUALCASE=1; export DUALCASE # for MKS sh |
|
19 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
|
20 |
emulate sh |
|
21 |
NULLCMD=: |
|
22 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
|
23 |
# is contrary to our usage. Disable this feature. |
|
24 |
alias -g '${1+"$@"}'='"$@"' |
|
25 |
setopt NO_GLOB_SUBST |
|
26 |
else |
|
27 |
case `(set -o) 2>/dev/null` in #( |
|
28 |
*posix*) : |
|
29 |
set -o posix ;; #( |
|
30 |
*) : |
|
31 |
;; |
|
32 |
esac |
|
33 |
fi |
|
34 |
|
|
35 |
|
|
36 |
as_nl=' |
|
37 |
' |
|
38 |
export as_nl |
|
39 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
|
40 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
|
41 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
|
42 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
|
43 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
|
44 |
# but without wasting forks for bash or zsh. |
|
45 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
|
46 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
47 |
as_echo='print -r --' |
|
48 |
as_echo_n='print -rn --' |
|
49 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
50 |
as_echo='printf %s\n' |
|
51 |
as_echo_n='printf %s' |
|
52 |
else |
|
53 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
|
54 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
|
55 |
as_echo_n='/usr/ucb/echo -n' |
|
56 |
else |
|
57 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
|
58 |
as_echo_n_body='eval |
|
59 |
arg=$1; |
|
60 |
case $arg in #( |
|
61 |
*"$as_nl"*) |
|
62 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
|
63 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
|
64 |
esac; |
|
65 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
|
66 |
' |
|
67 |
export as_echo_n_body |
|
68 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
|
69 |
fi |
|
70 |
export as_echo_body |
|
71 |
as_echo='sh -c $as_echo_body as_echo' |
|
72 |
fi |
|
73 |
|
|
74 |
# The user is always right. |
|
75 |
if test "${PATH_SEPARATOR+set}" != set; then |
|
76 |
PATH_SEPARATOR=: |
|
77 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|
78 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|
79 |
PATH_SEPARATOR=';' |
|
80 |
} |
|
81 |
fi |
|
82 |
|
|
83 |
|
|
84 |
# IFS |
|
85 |
# We need space, tab and new line, in precisely that order. Quoting is |
|
86 |
# there to prevent editors from complaining about space-tab. |
|
87 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
88 |
# splitting by setting IFS to empty value.) |
|
89 |
IFS=" "" $as_nl" |
|
90 |
|
|
91 |
# Find who we are. Look in the path if we contain no directory separator. |
|
92 |
as_myself= |
|
93 |
case $0 in #(( |
|
94 |
*[\\/]* ) as_myself=$0 ;; |
|
95 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
96 |
for as_dir in $PATH |
|
97 |
do |
|
98 |
IFS=$as_save_IFS |
|
99 |
test -z "$as_dir" && as_dir=. |
|
100 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
101 |
done |
|
102 |
IFS=$as_save_IFS |
|
103 |
|
|
104 |
;; |
|
105 |
esac |
|
106 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
|
107 |
# in which case we are not to be found in the path. |
|
108 |
if test "x$as_myself" = x; then |
|
109 |
as_myself=$0 |
|
110 |
fi |
|
111 |
if test ! -f "$as_myself"; then |
|
112 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
113 |
exit 1 |
|
114 |
fi |
|
115 |
|
|
116 |
# Unset variables that we do not need and which cause bugs (e.g. in |
|
117 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
|
118 |
# suppresses any "Segmentation fault" message there. '((' could |
|
119 |
# trigger a bug in pdksh 5.2.14. |
|
120 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
|
121 |
do eval test x\${$as_var+set} = xset \ |
|
122 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
123 |
done |
|
124 |
PS1='$ ' |
|
125 |
PS2='> ' |
|
126 |
PS4='+ ' |
|
127 |
|
|
128 |
# NLS nuisances. |
|
129 |
LC_ALL=C |
|
130 |
export LC_ALL |
|
131 |
LANGUAGE=C |
|
132 |
export LANGUAGE |
|
133 |
|
|
134 |
# CDPATH. |
|
135 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
136 |
|
|
137 |
# Use a proper internal environment variable to ensure we don't fall |
|
138 |
# into an infinite loop, continuously re-executing ourselves. |
|
139 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
|
140 |
_as_can_reexec=no; export _as_can_reexec; |
|
141 |
# We cannot yet assume a decent shell, so we have to provide a |
|
142 |
# neutralization value for shells without unset; and this also |
|
143 |
# works around shells that cannot unset nonexistent variables. |
|
144 |
# Preserve -v and -x to the replacement shell. |
|
145 |
BASH_ENV=/dev/null |
|
146 |
ENV=/dev/null |
|
147 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|
148 |
case $- in # (((( |
|
149 |
*v*x* | *x*v* ) as_opts=-vx ;; |
|
150 |
*v* ) as_opts=-v ;; |
|
151 |
*x* ) as_opts=-x ;; |
|
152 |
* ) as_opts= ;; |
|
153 |
esac |
|
154 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
|
155 |
# Admittedly, this is quite paranoid, since all the known shells bail |
|
156 |
# out after a failed `exec'. |
|
157 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
|
158 |
as_fn_exit 255 |
|
159 |
fi |
|
160 |
# We don't want this to propagate to other subprocesses. |
|
161 |
{ _as_can_reexec=; unset _as_can_reexec;} |
|
162 |
if test "x$CONFIG_SHELL" = x; then |
|
163 |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
|
164 |
emulate sh |
|
165 |
NULLCMD=: |
|
166 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
|
167 |
# is contrary to our usage. Disable this feature. |
|
168 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
|
169 |
setopt NO_GLOB_SUBST |
|
170 |
else |
|
171 |
case \`(set -o) 2>/dev/null\` in #( |
|
172 |
*posix*) : |
|
173 |
set -o posix ;; #( |
|
174 |
*) : |
|
175 |
;; |
|
176 |
esac |
|
177 |
fi |
|
178 |
" |
|
179 |
as_required="as_fn_return () { (exit \$1); } |
|
180 |
as_fn_success () { as_fn_return 0; } |
|
181 |
as_fn_failure () { as_fn_return 1; } |
|
182 |
as_fn_ret_success () { return 0; } |
|
183 |
as_fn_ret_failure () { return 1; } |
|
184 |
|
|
185 |
exitcode=0 |
|
186 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
|
187 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
|
188 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
|
189 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
|
190 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
|
191 |
|
|
192 |
else |
|
193 |
exitcode=1; echo positional parameters were not saved. |
|
194 |
fi |
|
195 |
test x\$exitcode = x0 || exit 1 |
|
196 |
test -x / || exit 1" |
|
197 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
|
198 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
|
199 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
|
200 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
|
201 |
|
|
202 |
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
|
203 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
|
204 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
|
205 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
|
206 |
PATH=/empty FPATH=/empty; export PATH FPATH |
|
207 |
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
|
208 |
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
|
209 |
test \$(( 1 + 1 )) = 2 || exit 1" |
|
210 |
if (eval "$as_required") 2>/dev/null; then : |
|
211 |
as_have_required=yes |
|
212 |
else |
|
213 |
as_have_required=no |
|
214 |
fi |
|
215 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
|
216 |
|
|
217 |
else |
|
218 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
219 |
as_found=false |
|
220 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
221 |
do |
|
222 |
IFS=$as_save_IFS |
|
223 |
test -z "$as_dir" && as_dir=. |
|
224 |
as_found=: |
|
225 |
case $as_dir in #( |
|
226 |
/*) |
|
227 |
for as_base in sh bash ksh sh5; do |
|
228 |
# Try only shells that exist, to save several forks. |
|
229 |
as_shell=$as_dir/$as_base |
|
230 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
|
231 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
|
232 |
CONFIG_SHELL=$as_shell as_have_required=yes |
|
233 |
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
|
234 |
break 2 |
|
235 |
fi |
|
236 |
fi |
|
237 |
done;; |
|
238 |
esac |
|
239 |
as_found=false |
|
240 |
done |
|
241 |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
|
242 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
|
243 |
CONFIG_SHELL=$SHELL as_have_required=yes |
|
244 |
fi; } |
|
245 |
IFS=$as_save_IFS |
|
246 |
|
|
247 |
|
|
248 |
if test "x$CONFIG_SHELL" != x; then : |
|
249 |
export CONFIG_SHELL |
|
250 |
# We cannot yet assume a decent shell, so we have to provide a |
|
251 |
# neutralization value for shells without unset; and this also |
|
252 |
# works around shells that cannot unset nonexistent variables. |
|
253 |
# Preserve -v and -x to the replacement shell. |
|
254 |
BASH_ENV=/dev/null |
|
255 |
ENV=/dev/null |
|
256 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|
257 |
case $- in # (((( |
|
258 |
*v*x* | *x*v* ) as_opts=-vx ;; |
|
259 |
*v* ) as_opts=-v ;; |
|
260 |
*x* ) as_opts=-x ;; |
|
261 |
* ) as_opts= ;; |
|
262 |
esac |
|
263 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
|
264 |
# Admittedly, this is quite paranoid, since all the known shells bail |
|
265 |
# out after a failed `exec'. |
|
266 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
|
267 |
exit 255 |
|
268 |
fi |
|
269 |
|
|
270 |
if test x$as_have_required = xno; then : |
|
271 |
$as_echo "$0: This script requires a shell more modern than all" |
|
272 |
$as_echo "$0: the shells that I found on your system." |
|
273 |
if test x${ZSH_VERSION+set} = xset ; then |
|
274 |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
|
275 |
$as_echo "$0: be upgraded to zsh 4.3.4 or later." |
|
276 |
else |
|
277 |
$as_echo "$0: Please tell bug-autoconf@gnu.org and help@polhemus.com |
|
278 |
$0: about your system, including any error possibly output |
|
279 |
$0: before this message. Then install a modern shell, or |
|
280 |
$0: manually run the script under such a shell if you do |
|
281 |
$0: have one." |
|
282 |
fi |
|
283 |
exit 1 |
|
284 |
fi |
|
285 |
fi |
|
286 |
fi |
|
287 |
SHELL=${CONFIG_SHELL-/bin/sh} |
|
288 |
export SHELL |
|
289 |
# Unset more variables known to interfere with behavior of common tools. |
|
290 |
CLICOLOR_FORCE= GREP_OPTIONS= |
|
291 |
unset CLICOLOR_FORCE GREP_OPTIONS |
|
292 |
|
|
293 |
## --------------------- ## |
|
294 |
## M4sh Shell Functions. ## |
|
295 |
## --------------------- ## |
|
296 |
# as_fn_unset VAR |
|
297 |
# --------------- |
|
298 |
# Portably unset VAR. |
|
299 |
as_fn_unset () |
|
300 |
{ |
|
301 |
{ eval $1=; unset $1;} |
|
302 |
} |
|
303 |
as_unset=as_fn_unset |
|
304 |
|
|
305 |
# as_fn_set_status STATUS |
|
306 |
# ----------------------- |
|
307 |
# Set $? to STATUS, without forking. |
|
308 |
as_fn_set_status () |
|
309 |
{ |
|
310 |
return $1 |
|
311 |
} # as_fn_set_status |
|
312 |
|
|
313 |
# as_fn_exit STATUS |
|
314 |
# ----------------- |
|
315 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|
316 |
as_fn_exit () |
|
317 |
{ |
|
318 |
set +e |
|
319 |
as_fn_set_status $1 |
|
320 |
exit $1 |
|
321 |
} # as_fn_exit |
|
322 |
|
|
323 |
# as_fn_mkdir_p |
|
324 |
# ------------- |
|
325 |
# Create "$as_dir" as a directory, including parents if necessary. |
|
326 |
as_fn_mkdir_p () |
|
327 |
{ |
|
328 |
|
|
329 |
case $as_dir in #( |
|
330 |
-*) as_dir=./$as_dir;; |
|
331 |
esac |
|
332 |
test -d "$as_dir" || eval $as_mkdir_p || { |
|
333 |
as_dirs= |
|
334 |
while :; do |
|
335 |
case $as_dir in #( |
|
336 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|
337 |
*) as_qdir=$as_dir;; |
|
338 |
esac |
|
339 |
as_dirs="'$as_qdir' $as_dirs" |
|
340 |
as_dir=`$as_dirname -- "$as_dir" || |
|
341 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
342 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
343 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
344 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
345 |
$as_echo X"$as_dir" | |
|
346 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
347 |
s//\1/ |
|
348 |
q |
|
349 |
} |
|
350 |
/^X\(\/\/\)[^/].*/{ |
|
351 |
s//\1/ |
|
352 |
q |
|
353 |
} |
|
354 |
/^X\(\/\/\)$/{ |
|
355 |
s//\1/ |
|
356 |
q |
|
357 |
} |
|
358 |
/^X\(\/\).*/{ |
|
359 |
s//\1/ |
|
360 |
q |
|
361 |
} |
|
362 |
s/.*/./; q'` |
|
363 |
test -d "$as_dir" && break |
|
364 |
done |
|
365 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
366 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
|
367 |
|
|
368 |
|
|
369 |
} # as_fn_mkdir_p |
|
370 |
|
|
371 |
# as_fn_executable_p FILE |
|
372 |
# ----------------------- |
|
373 |
# Test if FILE is an executable regular file. |
|
374 |
as_fn_executable_p () |
|
375 |
{ |
|
376 |
test -f "$1" && test -x "$1" |
|
377 |
} # as_fn_executable_p |
|
378 |
# as_fn_append VAR VALUE |
|
379 |
# ---------------------- |
|
380 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
|
381 |
# advantage of any shell optimizations that allow amortized linear growth over |
|
382 |
# repeated appends, instead of the typical quadratic growth present in naive |
|
383 |
# implementations. |
|
384 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
|
385 |
eval 'as_fn_append () |
|
386 |
{ |
|
387 |
eval $1+=\$2 |
|
388 |
}' |
|
389 |
else |
|
390 |
as_fn_append () |
|
391 |
{ |
|
392 |
eval $1=\$$1\$2 |
|
393 |
} |
|
394 |
fi # as_fn_append |
|
395 |
|
|
396 |
# as_fn_arith ARG... |
|
397 |
# ------------------ |
|
398 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
|
399 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
|
400 |
# must be portable across $(()) and expr. |
|
401 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
|
402 |
eval 'as_fn_arith () |
|
403 |
{ |
|
404 |
as_val=$(( $* )) |
|
405 |
}' |
|
406 |
else |
|
407 |
as_fn_arith () |
|
408 |
{ |
|
409 |
as_val=`expr "$@" || test $? -eq 1` |
|
410 |
} |
|
411 |
fi # as_fn_arith |
|
412 |
|
|
413 |
|
|
414 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
|
415 |
# ---------------------------------------- |
|
416 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
|
417 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
|
418 |
# script with STATUS, using 1 if that was 0. |
|
419 |
as_fn_error () |
|
420 |
{ |
|
421 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
|
422 |
if test "$4"; then |
|
423 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
424 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
|
425 |
fi |
|
426 |
$as_echo "$as_me: error: $2" >&2 |
|
427 |
as_fn_exit $as_status |
|
428 |
} # as_fn_error |
|
429 |
|
|
430 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
|
431 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
432 |
as_expr=expr |
|
433 |
else |
|
434 |
as_expr=false |
|
435 |
fi |
|
436 |
|
|
437 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|
438 |
as_basename=basename |
|
439 |
else |
|
440 |
as_basename=false |
|
441 |
fi |
|
442 |
|
|
443 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
444 |
as_dirname=dirname |
|
445 |
else |
|
446 |
as_dirname=false |
|
447 |
fi |
|
448 |
|
|
449 |
as_me=`$as_basename -- "$0" || |
|
450 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
451 |
X"$0" : 'X\(//\)$' \| \ |
|
452 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
453 |
$as_echo X/"$0" | |
|
454 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|
455 |
s//\1/ |
|
456 |
q |
|
457 |
} |
|
458 |
/^X\/\(\/\/\)$/{ |
|
459 |
s//\1/ |
|
460 |
q |
|
461 |
} |
|
462 |
/^X\/\(\/\).*/{ |
|
463 |
s//\1/ |
|
464 |
q |
|
465 |
} |
|
466 |
s/.*/./; q'` |
|
467 |
|
|
468 |
# Avoid depending upon Character Ranges. |
|
469 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
470 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
471 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
472 |
as_cr_digits='0123456789' |
|
473 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
474 |
|
|
475 |
|
|
476 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
|
477 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
|
478 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
|
479 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
|
480 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
|
481 |
sed -n ' |
|
482 |
p |
|
483 |
/[$]LINENO/= |
|
484 |
' <$as_myself | |
|
485 |
sed ' |
|
486 |
s/[$]LINENO.*/&-/ |
|
487 |
t lineno |
|
488 |
b |
|
489 |
:lineno |
|
490 |
N |
|
491 |
:loop |
|
492 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|
493 |
t loop |
|
494 |
s/-\n.*// |
|
495 |
' >$as_me.lineno && |
|
496 |
chmod +x "$as_me.lineno" || |
|
497 |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
|
498 |
|
|
499 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
|
500 |
# already done that, so ensure we don't try to do so again and fall |
|
501 |
# in an infinite loop. This has already happened in practice. |
|
502 |
_as_can_reexec=no; export _as_can_reexec |
|
503 |
# Don't try to exec as it changes $[0], causing all sort of problems |
|
504 |
# (the dirname of $[0] is not the place where we might find the |
|
505 |
# original and so on. Autoconf is especially sensitive to this). |
|
506 |
. "./$as_me.lineno" |
|
507 |
# Exit status is that of the last command. |
|
508 |
exit |
|
509 |
} |
|
510 |
|
|
511 |
ECHO_C= ECHO_N= ECHO_T= |
|
512 |
case `echo -n x` in #((((( |
|
513 |
-n*) |
|
514 |
case `echo 'xy\c'` in |
|
515 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
516 |
xy) ECHO_C='\c';; |
|
517 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|
518 |
ECHO_T=' ';; |
|
519 |
esac;; |
|
520 |
*) |
|
521 |
ECHO_N='-n';; |
|
522 |
esac |
|
523 |
|
|
524 |
rm -f conf$$ conf$$.exe conf$$.file |
|
525 |
if test -d conf$$.dir; then |
|
526 |
rm -f conf$$.dir/conf$$.file |
|
527 |
else |
|
528 |
rm -f conf$$.dir |
|
529 |
mkdir conf$$.dir 2>/dev/null |
|
530 |
fi |
|
531 |
if (echo >conf$$.file) 2>/dev/null; then |
|
532 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
533 |
as_ln_s='ln -s' |
|
534 |
# ... but there are two gotchas: |
|
535 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|
536 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
537 |
# In both cases, we have to default to `cp -pR'. |
|
538 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|
539 |
as_ln_s='cp -pR' |
|
540 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
|
541 |
as_ln_s=ln |
|
542 |
else |
|
543 |
as_ln_s='cp -pR' |
|
544 |
fi |
|
545 |
else |
|
546 |
as_ln_s='cp -pR' |
|
547 |
fi |
|
548 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|
549 |
rmdir conf$$.dir 2>/dev/null |
|
550 |
|
|
551 |
if mkdir -p . 2>/dev/null; then |
|
552 |
as_mkdir_p='mkdir -p "$as_dir"' |
|
553 |
else |
|
554 |
test -d ./-p && rmdir ./-p |
|
555 |
as_mkdir_p=false |
|
556 |
fi |
|
557 |
|
|
558 |
as_test_x='test -x' |
|
559 |
as_executable_p=as_fn_executable_p |
|
560 |
|
|
561 |
# Sed expression to map a string onto a valid CPP name. |
|
562 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
563 |
|
|
564 |
# Sed expression to map a string onto a valid variable name. |
|
565 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
566 |
|
|
567 |
SHELL=${CONFIG_SHELL-/bin/sh} |
|
568 |
|
|
569 |
|
|
570 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
|
571 |
exec 6>&1 |
|
572 |
|
|
573 |
# Name of the host. |
|
574 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
|
575 |
# so uname gets run too. |
|
576 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
|
577 |
|
|
578 |
# |
|
579 |
# Initializations. |
|
580 |
# |
|
581 |
ac_default_prefix=/usr/local |
|
582 |
ac_clean_files= |
|
583 |
ac_config_libobj_dir=. |
|
584 |
LIBOBJS= |
|
585 |
cross_compiling=no |
|
586 |
subdirs= |
|
587 |
MFLAGS= |
|
588 |
MAKEFLAGS= |
|
589 |
|
|
590 |
# Identity of this package. |
|
591 |
PACKAGE_NAME='G4Track_lib_dist' |
|
592 |
PACKAGE_TARNAME='g4track_lib_dist' |
|
593 |
PACKAGE_VERSION='0.0.2' |
|
594 |
PACKAGE_STRING='G4Track_lib_dist 0.0.2' |
|
595 |
PACKAGE_BUGREPORT='help@polhemus.com' |
|
596 |
PACKAGE_URL='' |
|
597 |
|
|
598 |
# Factoring default headers for most tests. |
|
599 |
ac_includes_default="\ |
|
600 |
#include <stdio.h> |
|
601 |
#ifdef HAVE_SYS_TYPES_H |
|
602 |
# include <sys/types.h> |
|
603 |
#endif |
|
604 |
#ifdef HAVE_SYS_STAT_H |
|
605 |
# include <sys/stat.h> |
|
606 |
#endif |
|
607 |
#ifdef STDC_HEADERS |
|
608 |
# include <stdlib.h> |
|
609 |
# include <stddef.h> |
|
610 |
#else |
|
611 |
# ifdef HAVE_STDLIB_H |
|
612 |
# include <stdlib.h> |
|
613 |
# endif |
|
614 |
#endif |
|
615 |
#ifdef HAVE_STRING_H |
|
616 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
|
617 |
# include <memory.h> |
|
618 |
# endif |
|
619 |
# include <string.h> |
|
620 |
#endif |
|
621 |
#ifdef HAVE_STRINGS_H |
|
622 |
# include <strings.h> |
|
623 |
#endif |
|
624 |
#ifdef HAVE_INTTYPES_H |
|
625 |
# include <inttypes.h> |
|
626 |
#endif |
|
627 |
#ifdef HAVE_STDINT_H |
|
628 |
# include <stdint.h> |
|
629 |
#endif |
|
630 |
#ifdef HAVE_UNISTD_H |
|
631 |
# include <unistd.h> |
|
632 |
#endif" |
|
633 |
|
|
634 |
ac_subst_vars='am__EXEEXT_FALSE |
|
635 |
am__EXEEXT_TRUE |
|
636 |
LTLIBOBJS |
|
637 |
LIBOBJS |
|
638 |
CPP |
|
639 |
OTOOL64 |
|
640 |
OTOOL |
|
641 |
LIPO |
|
642 |
NMEDIT |
|
643 |
DSYMUTIL |
|
644 |
MANIFEST_TOOL |
|
645 |
RANLIB |
|
646 |
ac_ct_AR |
|
647 |
AR |
|
648 |
DLLTOOL |
|
649 |
OBJDUMP |
|
650 |
LN_S |
|
651 |
NM |
|
652 |
ac_ct_DUMPBIN |
|
653 |
DUMPBIN |
|
654 |
LD |
|
655 |
FGREP |
|
656 |
EGREP |
|
657 |
GREP |
|
658 |
SED |
|
659 |
am__fastdepCC_FALSE |
|
660 |
am__fastdepCC_TRUE |
|
661 |
CCDEPMODE |
|
662 |
am__nodep |
|
663 |
AMDEPBACKSLASH |
|
664 |
AMDEP_FALSE |
|
665 |
AMDEP_TRUE |
|
666 |
am__quote |
|
667 |
am__include |
|
668 |
DEPDIR |
|
669 |
OBJEXT |
|
670 |
EXEEXT |
|
671 |
ac_ct_CC |
|
672 |
CPPFLAGS |
|
673 |
LDFLAGS |
|
674 |
CFLAGS |
|
675 |
CC |
|
676 |
host_os |
|
677 |
host_vendor |
|
678 |
host_cpu |
|
679 |
host |
|
680 |
build_os |
|
681 |
build_vendor |
|
682 |
build_cpu |
|
683 |
build |
|
684 |
LIBTOOL |
|
685 |
am__untar |
|
686 |
am__tar |
|
687 |
AMTAR |
|
688 |
am__leading_dot |
|
689 |
SET_MAKE |
|
690 |
AWK |
|
691 |
mkdir_p |
|
692 |
MKDIR_P |
|
693 |
INSTALL_STRIP_PROGRAM |
|
694 |
STRIP |
|
695 |
install_sh |
|
696 |
MAKEINFO |
|
697 |
AUTOHEADER |
|
698 |
AUTOMAKE |
|
699 |
AUTOCONF |
|
700 |
ACLOCAL |
|
701 |
VERSION |
|
702 |
PACKAGE |
|
703 |
CYGPATH_W |
|
704 |
am__isrc |
|
705 |
INSTALL_DATA |
|
706 |
INSTALL_SCRIPT |
|
707 |
INSTALL_PROGRAM |
|
708 |
target_alias |
|
709 |
host_alias |
|
710 |
build_alias |
|
711 |
LIBS |
|
712 |
ECHO_T |
|
713 |
ECHO_N |
|
714 |
ECHO_C |
|
715 |
DEFS |
|
716 |
mandir |
|
717 |
localedir |
|
718 |
libdir |
|
719 |
psdir |
|
720 |
pdfdir |
|
721 |
dvidir |
|
722 |
htmldir |
|
723 |
infodir |
|
724 |
docdir |
|
725 |
oldincludedir |
|
726 |
includedir |
|
727 |
localstatedir |
|
728 |
sharedstatedir |
|
729 |
sysconfdir |
|
730 |
datadir |
|
731 |
datarootdir |
|
732 |
libexecdir |
|
733 |
sbindir |
|
734 |
bindir |
|
735 |
program_transform_name |
|
736 |
prefix |
|
737 |
exec_prefix |
|
738 |
PACKAGE_URL |
|
739 |
PACKAGE_BUGREPORT |
|
740 |
PACKAGE_STRING |
|
741 |
PACKAGE_VERSION |
|
742 |
PACKAGE_TARNAME |
|
743 |
PACKAGE_NAME |
|
744 |
PATH_SEPARATOR |
|
745 |
SHELL' |
|
746 |
ac_subst_files='' |
|
747 |
ac_user_opts=' |
|
748 |
enable_option_checking |
|
749 |
enable_shared |
|
750 |
enable_static |
|
751 |
with_pic |
|
752 |
enable_fast_install |
|
753 |
enable_dependency_tracking |
|
754 |
with_gnu_ld |
|
755 |
with_sysroot |
|
756 |
enable_libtool_lock |
|
757 |
' |
|
758 |
ac_precious_vars='build_alias |
|
759 |
host_alias |
|
760 |
target_alias |
|
761 |
CC |
|
762 |
CFLAGS |
|
763 |
LDFLAGS |
|
764 |
LIBS |
|
765 |
CPPFLAGS |
|
766 |
CPP' |
|
767 |
|
|
768 |
|
|
769 |
# Initialize some variables set by options. |
|
770 |
ac_init_help= |
|
771 |
ac_init_version=false |
|
772 |
ac_unrecognized_opts= |
|
773 |
ac_unrecognized_sep= |
|
774 |
# The variables have the same names as the options, with |
|
775 |
# dashes changed to underlines. |
|
776 |
cache_file=/dev/null |
|
777 |
exec_prefix=NONE |
|
778 |
no_create= |
|
779 |
no_recursion= |
|
780 |
prefix=NONE |
|
781 |
program_prefix=NONE |
|
782 |
program_suffix=NONE |
|
783 |
program_transform_name=s,x,x, |
|
784 |
silent= |
|
785 |
site= |
|
786 |
srcdir= |
|
787 |
verbose= |
|
788 |
x_includes=NONE |
|
789 |
x_libraries=NONE |
|
790 |
|
|
791 |
# Installation directory options. |
|
792 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
|
793 |
# and all the variables that are supposed to be based on exec_prefix |
|
794 |
# by default will actually change. |
|
795 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
|
796 |
# (The list follows the same order as the GNU Coding Standards.) |
|
797 |
bindir='${exec_prefix}/bin' |
|
798 |
sbindir='${exec_prefix}/sbin' |
|
799 |
libexecdir='${exec_prefix}/libexec' |
|
800 |
datarootdir='${prefix}/share' |
|
801 |
datadir='${datarootdir}' |
|
802 |
sysconfdir='${prefix}/etc' |
|
803 |
sharedstatedir='${prefix}/com' |
|
804 |
localstatedir='${prefix}/var' |
|
805 |
includedir='${prefix}/include' |
|
806 |
oldincludedir='/usr/include' |
|
807 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
|
808 |
infodir='${datarootdir}/info' |
|
809 |
htmldir='${docdir}' |
|
810 |
dvidir='${docdir}' |
|
811 |
pdfdir='${docdir}' |
|
812 |
psdir='${docdir}' |
|
813 |
libdir='${exec_prefix}/lib' |
|
814 |
localedir='${datarootdir}/locale' |
|
815 |
mandir='${datarootdir}/man' |
|
816 |
|
|
817 |
ac_prev= |
|
818 |
ac_dashdash= |
|
819 |
for ac_option |
|
820 |
do |
|
821 |
# If the previous option needs an argument, assign it. |
|
822 |
if test -n "$ac_prev"; then |
|
823 |
eval $ac_prev=\$ac_option |
|
824 |
ac_prev= |
|
825 |
continue |
|
826 |
fi |
|
827 |
|
|
828 |
case $ac_option in |
|
829 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
|
830 |
*=) ac_optarg= ;; |
|
831 |
*) ac_optarg=yes ;; |
|
832 |
esac |
|
833 |
|
|
834 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
|
835 |
|
|
836 |
case $ac_dashdash$ac_option in |
|
837 |
--) |
|
838 |
ac_dashdash=yes ;; |
|
839 |
|
|
840 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
|
841 |
ac_prev=bindir ;; |
|
842 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
|
843 |
bindir=$ac_optarg ;; |
|
844 |
|
|
845 |
-build | --build | --buil | --bui | --bu) |
|
846 |
ac_prev=build_alias ;; |
|
847 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
|
848 |
build_alias=$ac_optarg ;; |
|
849 |
|
|
850 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
|
851 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
|
852 |
ac_prev=cache_file ;; |
|
853 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
|
854 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
|
855 |
cache_file=$ac_optarg ;; |
|
856 |
|
|
857 |
--config-cache | -C) |
|
858 |
cache_file=config.cache ;; |
|
859 |
|
|
860 |
-datadir | --datadir | --datadi | --datad) |
|
861 |
ac_prev=datadir ;; |
|
862 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
|
863 |
datadir=$ac_optarg ;; |
|
864 |
|
|
865 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
|
866 |
| --dataroo | --dataro | --datar) |
|
867 |
ac_prev=datarootdir ;; |
|
868 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
|
869 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
|
870 |
datarootdir=$ac_optarg ;; |
|
871 |
|
|
872 |
-disable-* | --disable-*) |
|
873 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
|
874 |
# Reject names that are not valid shell variable names. |
|
875 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
876 |
as_fn_error $? "invalid feature name: $ac_useropt" |
|
877 |
ac_useropt_orig=$ac_useropt |
|
878 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
879 |
case $ac_user_opts in |
|
880 |
*" |
|
881 |
"enable_$ac_useropt" |
|
882 |
"*) ;; |
|
883 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
|
884 |
ac_unrecognized_sep=', ';; |
|
885 |
esac |
|
886 |
eval enable_$ac_useropt=no ;; |
|
887 |
|
|
888 |
-docdir | --docdir | --docdi | --doc | --do) |
|
889 |
ac_prev=docdir ;; |
|
890 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
|
891 |
docdir=$ac_optarg ;; |
|
892 |
|
|
893 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
|
894 |
ac_prev=dvidir ;; |
|
895 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
|
896 |
dvidir=$ac_optarg ;; |
|
897 |
|
|
898 |
-enable-* | --enable-*) |
|
899 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
|
900 |
# Reject names that are not valid shell variable names. |
|
901 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
902 |
as_fn_error $? "invalid feature name: $ac_useropt" |
|
903 |
ac_useropt_orig=$ac_useropt |
|
904 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
905 |
case $ac_user_opts in |
|
906 |
*" |
|
907 |
"enable_$ac_useropt" |
|
908 |
"*) ;; |
|
909 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
|
910 |
ac_unrecognized_sep=', ';; |
|
911 |
esac |
|
912 |
eval enable_$ac_useropt=\$ac_optarg ;; |
|
913 |
|
|
914 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
|
915 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
|
916 |
| --exec | --exe | --ex) |
|
917 |
ac_prev=exec_prefix ;; |
|
918 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
|
919 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
|
920 |
| --exec=* | --exe=* | --ex=*) |
|
921 |
exec_prefix=$ac_optarg ;; |
|
922 |
|
|
923 |
-gas | --gas | --ga | --g) |
|
924 |
# Obsolete; use --with-gas. |
|
925 |
with_gas=yes ;; |
|
926 |
|
|
927 |
-help | --help | --hel | --he | -h) |
|
928 |
ac_init_help=long ;; |
|
929 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
|
930 |
ac_init_help=recursive ;; |
|
931 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
|
932 |
ac_init_help=short ;; |
|
933 |
|
|
934 |
-host | --host | --hos | --ho) |
|
935 |
ac_prev=host_alias ;; |
|
936 |
-host=* | --host=* | --hos=* | --ho=*) |
|
937 |
host_alias=$ac_optarg ;; |
|
938 |
|
|
939 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
|
940 |
ac_prev=htmldir ;; |
|
941 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
|
942 |
| --ht=*) |
|
943 |
htmldir=$ac_optarg ;; |
|
944 |
|
|
945 |
-includedir | --includedir | --includedi | --included | --include \ |
|
946 |
| --includ | --inclu | --incl | --inc) |
|
947 |
ac_prev=includedir ;; |
|
948 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
|
949 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
|
950 |
includedir=$ac_optarg ;; |
|
951 |
|
|
952 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
|
953 |
ac_prev=infodir ;; |
|
954 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
|
955 |
infodir=$ac_optarg ;; |
|
956 |
|
|
957 |
-libdir | --libdir | --libdi | --libd) |
|
958 |
ac_prev=libdir ;; |
|
959 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
|
960 |
libdir=$ac_optarg ;; |
|
961 |
|
|
962 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
|
963 |
| --libexe | --libex | --libe) |
|
964 |
ac_prev=libexecdir ;; |
|
965 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
|
966 |
| --libexe=* | --libex=* | --libe=*) |
|
967 |
libexecdir=$ac_optarg ;; |
|
968 |
|
|
969 |
-localedir | --localedir | --localedi | --localed | --locale) |
|
970 |
ac_prev=localedir ;; |
|
971 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
|
972 |
localedir=$ac_optarg ;; |
|
973 |
|
|
974 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
|
975 |
| --localstate | --localstat | --localsta | --localst | --locals) |
|
976 |
ac_prev=localstatedir ;; |
|
977 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
|
978 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
|
979 |
localstatedir=$ac_optarg ;; |
|
980 |
|
|
981 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
|
982 |
ac_prev=mandir ;; |
|
983 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
|
984 |
mandir=$ac_optarg ;; |
|
985 |
|
|
986 |
-nfp | --nfp | --nf) |
|
987 |
# Obsolete; use --without-fp. |
|
988 |
with_fp=no ;; |
|
989 |
|
|
990 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|
991 |
| --no-cr | --no-c | -n) |
|
992 |
no_create=yes ;; |
|
993 |
|
|
994 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|
995 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
|
996 |
no_recursion=yes ;; |
|
997 |
|
|
998 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
|
999 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
|
1000 |
| --oldin | --oldi | --old | --ol | --o) |
|
1001 |
ac_prev=oldincludedir ;; |
|
1002 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
|
1003 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
|
1004 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
|
1005 |
oldincludedir=$ac_optarg ;; |
|
1006 |
|
|
1007 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
|
1008 |
ac_prev=prefix ;; |
|
1009 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
|
1010 |
prefix=$ac_optarg ;; |
|
1011 |
|
|
1012 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
|
1013 |
| --program-pre | --program-pr | --program-p) |
|
1014 |
ac_prev=program_prefix ;; |
|
1015 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
|
1016 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
|
1017 |
program_prefix=$ac_optarg ;; |
|
1018 |
|
|
1019 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
|
1020 |
| --program-suf | --program-su | --program-s) |
|
1021 |
ac_prev=program_suffix ;; |
|
1022 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
|
1023 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
|
1024 |
program_suffix=$ac_optarg ;; |
|
1025 |
|
|
1026 |
-program-transform-name | --program-transform-name \ |
|
1027 |
| --program-transform-nam | --program-transform-na \ |
|
1028 |
| --program-transform-n | --program-transform- \ |
|
1029 |
| --program-transform | --program-transfor \ |
|
1030 |
| --program-transfo | --program-transf \ |
|
1031 |
| --program-trans | --program-tran \ |
|
1032 |
| --progr-tra | --program-tr | --program-t) |
|
1033 |
ac_prev=program_transform_name ;; |
|
1034 |
-program-transform-name=* | --program-transform-name=* \ |
|
1035 |
| --program-transform-nam=* | --program-transform-na=* \ |
|
1036 |
| --program-transform-n=* | --program-transform-=* \ |
|
1037 |
| --program-transform=* | --program-transfor=* \ |
|
1038 |
| --program-transfo=* | --program-transf=* \ |
|
1039 |
| --program-trans=* | --program-tran=* \ |
|
1040 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
|
1041 |
program_transform_name=$ac_optarg ;; |
|
1042 |
|
|
1043 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
|
1044 |
ac_prev=pdfdir ;; |
|
1045 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
|
1046 |
pdfdir=$ac_optarg ;; |
|
1047 |
|
|
1048 |
-psdir | --psdir | --psdi | --psd | --ps) |
|
1049 |
ac_prev=psdir ;; |
|
1050 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
|
1051 |
psdir=$ac_optarg ;; |
|
1052 |
|
|
1053 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
1054 |
| -silent | --silent | --silen | --sile | --sil) |
|
1055 |
silent=yes ;; |
|
1056 |
|
|
1057 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
|
1058 |
ac_prev=sbindir ;; |
|
1059 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
|
1060 |
| --sbi=* | --sb=*) |
|
1061 |
sbindir=$ac_optarg ;; |
|
1062 |
|
|
1063 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
|
1064 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
|
1065 |
| --sharedst | --shareds | --shared | --share | --shar \ |
|
1066 |
| --sha | --sh) |
|
1067 |
ac_prev=sharedstatedir ;; |
|
1068 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
|
1069 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
|
1070 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
|
1071 |
| --sha=* | --sh=*) |
|
1072 |
sharedstatedir=$ac_optarg ;; |
|
1073 |
|
|
1074 |
-site | --site | --sit) |
|
1075 |
ac_prev=site ;; |
|
1076 |
-site=* | --site=* | --sit=*) |
|
1077 |
site=$ac_optarg ;; |
|
1078 |
|
|
1079 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
|
1080 |
ac_prev=srcdir ;; |
|
1081 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
|
1082 |
srcdir=$ac_optarg ;; |
|
1083 |
|
|
1084 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
|
1085 |
| --syscon | --sysco | --sysc | --sys | --sy) |
|
1086 |
ac_prev=sysconfdir ;; |
|
1087 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
|
1088 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
|
1089 |
sysconfdir=$ac_optarg ;; |
|
1090 |
|
|
1091 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
|
1092 |
ac_prev=target_alias ;; |
|
1093 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
|
1094 |
target_alias=$ac_optarg ;; |
|
1095 |
|
|
1096 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
|
1097 |
verbose=yes ;; |
|
1098 |
|
|
1099 |
-version | --version | --versio | --versi | --vers | -V) |
|
1100 |
ac_init_version=: ;; |
|
1101 |
|
|
1102 |
-with-* | --with-*) |
|
1103 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
|
1104 |
# Reject names that are not valid shell variable names. |
|
1105 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
1106 |
as_fn_error $? "invalid package name: $ac_useropt" |
|
1107 |
ac_useropt_orig=$ac_useropt |
|
1108 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
1109 |
case $ac_user_opts in |
|
1110 |
*" |
|
1111 |
"with_$ac_useropt" |
|
1112 |
"*) ;; |
|
1113 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
|
1114 |
ac_unrecognized_sep=', ';; |
|
1115 |
esac |
|
1116 |
eval with_$ac_useropt=\$ac_optarg ;; |
|
1117 |
|
|
1118 |
-without-* | --without-*) |
|
1119 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
|
1120 |
# Reject names that are not valid shell variable names. |
|
1121 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
1122 |
as_fn_error $? "invalid package name: $ac_useropt" |
|
1123 |
ac_useropt_orig=$ac_useropt |
|
1124 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
1125 |
case $ac_user_opts in |
|
1126 |
*" |
|
1127 |
"with_$ac_useropt" |
|
1128 |
"*) ;; |
|
1129 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
|
1130 |
ac_unrecognized_sep=', ';; |
|
1131 |
esac |
|
1132 |
eval with_$ac_useropt=no ;; |
|
1133 |
|
|
1134 |
--x) |
|
1135 |
# Obsolete; use --with-x. |
|
1136 |
with_x=yes ;; |
|
1137 |
|
|
1138 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
|
1139 |
| --x-incl | --x-inc | --x-in | --x-i) |
|
1140 |
ac_prev=x_includes ;; |
|
1141 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
|
1142 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
|
1143 |
x_includes=$ac_optarg ;; |
|
1144 |
|
|
1145 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
|
1146 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
|
1147 |
ac_prev=x_libraries ;; |
|
1148 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
|
1149 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
|
1150 |
x_libraries=$ac_optarg ;; |
|
1151 |
|
|
1152 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
|
1153 |
Try \`$0 --help' for more information" |
|
1154 |
;; |
|
1155 |
|
|
1156 |
*=*) |
|
1157 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
|
1158 |
# Reject names that are not valid shell variable names. |
|
1159 |
case $ac_envvar in #( |
|
1160 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
|
1161 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
|
1162 |
esac |
|
1163 |
eval $ac_envvar=\$ac_optarg |
|
1164 |
export $ac_envvar ;; |
|
1165 |
|
|
1166 |
*) |
|
1167 |
# FIXME: should be removed in autoconf 3.0. |
|
1168 |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
|
1169 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
1170 |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
|
1171 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
|
1172 |
;; |
|
1173 |
|
|
1174 |
esac |
|
1175 |
done |
|
1176 |
|
|
1177 |
if test -n "$ac_prev"; then |
|
1178 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
|
1179 |
as_fn_error $? "missing argument to $ac_option" |
|
1180 |
fi |
|
1181 |
|
|
1182 |
if test -n "$ac_unrecognized_opts"; then |
|
1183 |
case $enable_option_checking in |
|
1184 |
no) ;; |
|
1185 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
|
1186 |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
|
1187 |
esac |
|
1188 |
fi |
|
1189 |
|
|
1190 |
# Check all directory arguments for consistency. |
|
1191 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
|
1192 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
|
1193 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
|
1194 |
libdir localedir mandir |
|
1195 |
do |
|
1196 |
eval ac_val=\$$ac_var |
|
1197 |
# Remove trailing slashes. |
|
1198 |
case $ac_val in |
|
1199 |
*/ ) |
|
1200 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
|
1201 |
eval $ac_var=\$ac_val;; |
|
1202 |
esac |
|
1203 |
# Be sure to have absolute directory names. |
|
1204 |
case $ac_val in |
|
1205 |
[\\/$]* | ?:[\\/]* ) continue;; |
|
1206 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
|
1207 |
esac |
|
1208 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
|
1209 |
done |
|
1210 |
|
|
1211 |
# There might be people who depend on the old broken behavior: `$host' |
|
1212 |
# used to hold the argument of --host etc. |
|
1213 |
# FIXME: To remove some day. |
|
1214 |
build=$build_alias |
|
1215 |
host=$host_alias |
|
1216 |
target=$target_alias |
|
1217 |
|
|
1218 |
# FIXME: To remove some day. |
|
1219 |
if test "x$host_alias" != x; then |
|
1220 |
if test "x$build_alias" = x; then |
|
1221 |
cross_compiling=maybe |
|
1222 |
elif test "x$build_alias" != "x$host_alias"; then |
|
1223 |
cross_compiling=yes |
|
1224 |
fi |
|
1225 |
fi |
|
1226 |
|
|
1227 |
ac_tool_prefix= |
|
1228 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
|
1229 |
|
|
1230 |
test "$silent" = yes && exec 6>/dev/null |
|
1231 |
|
|
1232 |
|
|
1233 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
|
1234 |
ac_ls_di=`ls -di .` && |
|
1235 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
|
1236 |
as_fn_error $? "working directory cannot be determined" |
|
1237 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
|
1238 |
as_fn_error $? "pwd does not report name of working directory" |
|
1239 |
|
|
1240 |
|
|
1241 |
# Find the source files, if location was not specified. |
|
1242 |
if test -z "$srcdir"; then |
|
1243 |
ac_srcdir_defaulted=yes |
|
1244 |
# Try the directory containing this script, then the parent directory. |
|
1245 |
ac_confdir=`$as_dirname -- "$as_myself" || |
|
1246 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
1247 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
|
1248 |
X"$as_myself" : 'X\(//\)$' \| \ |
|
1249 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
|
1250 |
$as_echo X"$as_myself" | |
|
1251 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
1252 |
s//\1/ |
|
1253 |
q |
|
1254 |
} |
|
1255 |
/^X\(\/\/\)[^/].*/{ |
|
1256 |
s//\1/ |
|
1257 |
q |
|
1258 |
} |
|
1259 |
/^X\(\/\/\)$/{ |
|
1260 |
s//\1/ |
|
1261 |
q |
|
1262 |
} |
|
1263 |
/^X\(\/\).*/{ |
|
1264 |
s//\1/ |
|
1265 |
q |
|
1266 |
} |
|
1267 |
s/.*/./; q'` |
|
1268 |
srcdir=$ac_confdir |
|
1269 |
if test ! -r "$srcdir/$ac_unique_file"; then |
|
1270 |
srcdir=.. |
|
1271 |
fi |
|
1272 |
else |
|
1273 |
ac_srcdir_defaulted=no |
|
1274 |
fi |
|
1275 |
if test ! -r "$srcdir/$ac_unique_file"; then |
|
1276 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
|
1277 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
|
1278 |
fi |
|
1279 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
|
1280 |
ac_abs_confdir=`( |
|
1281 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
|
1282 |
pwd)` |
|
1283 |
# When building in place, set srcdir=. |
|
1284 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
|
1285 |
srcdir=. |
|
1286 |
fi |
|
1287 |
# Remove unnecessary trailing slashes from srcdir. |
|
1288 |
# Double slashes in file names in object file debugging info |
|
1289 |
# mess up M-x gdb in Emacs. |
|
1290 |
case $srcdir in |
|
1291 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
|
1292 |
esac |
|
1293 |
for ac_var in $ac_precious_vars; do |
|
1294 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
|
1295 |
eval ac_env_${ac_var}_value=\$${ac_var} |
|
1296 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
|
1297 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
|
1298 |
done |
|
1299 |
|
|
1300 |
# |
|
1301 |
# Report the --help message. |
|
1302 |
# |
|
1303 |
if test "$ac_init_help" = "long"; then |
|
1304 |
# Omit some internal or obsolete options to make the list less imposing. |
|
1305 |
# This message is too long to be a string in the A/UX 3.1 sh. |
|
1306 |
cat <<_ACEOF |
|
1307 |
\`configure' configures G4Track_lib_dist 0.0.2 to adapt to many kinds of systems. |
|
1308 |
|
|
1309 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
|
1310 |
|
|
1311 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
|
1312 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
|
1313 |
|
|
1314 |
Defaults for the options are specified in brackets. |
|
1315 |
|
|
1316 |
Configuration: |
|
1317 |
-h, --help display this help and exit |
|
1318 |
--help=short display options specific to this package |
|
1319 |
--help=recursive display the short help of all the included packages |
|
1320 |
-V, --version display version information and exit |
|
1321 |
-q, --quiet, --silent do not print \`checking ...' messages |
|
1322 |
--cache-file=FILE cache test results in FILE [disabled] |
|
1323 |
-C, --config-cache alias for \`--cache-file=config.cache' |
|
1324 |
-n, --no-create do not create output files |
|
1325 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
|
1326 |
|
|
1327 |
Installation directories: |
|
1328 |
--prefix=PREFIX install architecture-independent files in PREFIX |
|
1329 |
[$ac_default_prefix] |
|
1330 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|
1331 |
[PREFIX] |
|
1332 |
|
|
1333 |
By default, \`make install' will install all the files in |
|
1334 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
|
1335 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
|
1336 |
for instance \`--prefix=\$HOME'. |
|
1337 |
|
|
1338 |
For better control, use the options below. |
|
1339 |
|
|
1340 |
Fine tuning of the installation directories: |
|
1341 |
--bindir=DIR user executables [EPREFIX/bin] |
|
1342 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
|
1343 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
|
1344 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
|
1345 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
|
1346 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|
1347 |
--libdir=DIR object code libraries [EPREFIX/lib] |
|
1348 |
--includedir=DIR C header files [PREFIX/include] |
|
1349 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
|
1350 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
|
1351 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
|
1352 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
|
1353 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
|
1354 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
|
1355 |
--docdir=DIR documentation root |
|
1356 |
[DATAROOTDIR/doc/g4track_lib_dist] |
|
1357 |
--htmldir=DIR html documentation [DOCDIR] |
|
1358 |
--dvidir=DIR dvi documentation [DOCDIR] |
|
1359 |
--pdfdir=DIR pdf documentation [DOCDIR] |
|
1360 |
--psdir=DIR ps documentation [DOCDIR] |
|
1361 |
_ACEOF |
|
1362 |
|
|
1363 |
cat <<\_ACEOF |
|
1364 |
|
|
1365 |
Program names: |
|
1366 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
|
1367 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
|
1368 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
|
1369 |
|
|
1370 |
System types: |
|
1371 |
--build=BUILD configure for building on BUILD [guessed] |
|
1372 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
|
1373 |
_ACEOF |
|
1374 |
fi |
|
1375 |
|
|
1376 |
if test -n "$ac_init_help"; then |
|
1377 |
case $ac_init_help in |
|
1378 |
short | recursive ) echo "Configuration of G4Track_lib_dist 0.0.2:";; |
|
1379 |
esac |
|
1380 |
cat <<\_ACEOF |
|
1381 |
|
|
1382 |
Optional Features: |
|
1383 |
--disable-option-checking ignore unrecognized --enable/--with options |
|
1384 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|
1385 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|
1386 |
--enable-shared[=PKGS] build shared libraries [default=yes] |
|
1387 |
--enable-static[=PKGS] build static libraries [default=yes] |
|
1388 |
--enable-fast-install[=PKGS] |
|
1389 |
optimize for fast installation [default=yes] |
|
1390 |
--enable-dependency-tracking |
|
1391 |
do not reject slow dependency extractors |
|
1392 |
--disable-dependency-tracking |
|
1393 |
speeds up one-time build |
|
1394 |
--disable-libtool-lock avoid locking (might break parallel builds) |
|
1395 |
|
|
1396 |
Optional Packages: |
|
1397 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|
1398 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
1399 |
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
|
1400 |
both] |
|
1401 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
|
1402 |
--with-sysroot=DIR Search for dependent libraries within DIR |
|
1403 |
(or the compiler's sysroot if not specified). |
|
1404 |
|
|
1405 |
Some influential environment variables: |
|
1406 |
CC C compiler command |
|
1407 |
CFLAGS C compiler flags |
|
1408 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
|
1409 |
nonstandard directory <lib dir> |
|
1410 |
LIBS libraries to pass to the linker, e.g. -l<library> |
|
1411 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
|
1412 |
you have headers in a nonstandard directory <include dir> |
|
1413 |
CPP C preprocessor |
|
1414 |
|
|
1415 |
Use these variables to override the choices made by `configure' or to help |
|
1416 |
it to find libraries and programs with nonstandard names/locations. |
|
1417 |
|
|
1418 |
Report bugs to <help@polhemus.com>. |
|
1419 |
_ACEOF |
|
1420 |
ac_status=$? |
|
1421 |
fi |
|
1422 |
|
|
1423 |
if test "$ac_init_help" = "recursive"; then |
|
1424 |
# If there are subdirs, report their specific --help. |
|
1425 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
|
1426 |
test -d "$ac_dir" || |
|
1427 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
|
1428 |
continue |
|
1429 |
ac_builddir=. |
|
1430 |
|
|
1431 |
case "$ac_dir" in |
|
1432 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
1433 |
*) |
|
1434 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
|
1435 |
# A ".." for each directory in $ac_dir_suffix. |
|
1436 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
|
1437 |
case $ac_top_builddir_sub in |
|
1438 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
1439 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
1440 |
esac ;; |
|
1441 |
esac |
|
1442 |
ac_abs_top_builddir=$ac_pwd |
|
1443 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
1444 |
# for backward compatibility: |
|
1445 |
ac_top_builddir=$ac_top_build_prefix |
|
1446 |
|
|
1447 |
case $srcdir in |
|
1448 |
.) # We are building in place. |
|
1449 |
ac_srcdir=. |
|
1450 |
ac_top_srcdir=$ac_top_builddir_sub |
|
1451 |
ac_abs_top_srcdir=$ac_pwd ;; |
|
1452 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
|
1453 |
ac_srcdir=$srcdir$ac_dir_suffix; |
|
1454 |
ac_top_srcdir=$srcdir |
|
1455 |
ac_abs_top_srcdir=$srcdir ;; |
|
1456 |
*) # Relative name. |
|
1457 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
1458 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
1459 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
1460 |
esac |
|
1461 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
1462 |
|
|
1463 |
cd "$ac_dir" || { ac_status=$?; continue; } |
|
1464 |
# Check for guested configure. |
|
1465 |
if test -f "$ac_srcdir/configure.gnu"; then |
|
1466 |
echo && |
|
1467 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
|
1468 |
elif test -f "$ac_srcdir/configure"; then |
|
1469 |
echo && |
|
1470 |
$SHELL "$ac_srcdir/configure" --help=recursive |
|
1471 |
else |
|
1472 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
|
1473 |
fi || ac_status=$? |
|
1474 |
cd "$ac_pwd" || { ac_status=$?; break; } |
|
1475 |
done |
|
1476 |
fi |
|
1477 |
|
|
1478 |
test -n "$ac_init_help" && exit $ac_status |
|
1479 |
if $ac_init_version; then |
|
1480 |
cat <<\_ACEOF |
|
1481 |
G4Track_lib_dist configure 0.0.2 |
|
1482 |
generated by GNU Autoconf 2.69 |
|
1483 |
|
|
1484 |
Copyright (C) 2012 Free Software Foundation, Inc. |
|
1485 |
This configure script is free software; the Free Software Foundation |
|
1486 |
gives unlimited permission to copy, distribute and modify it. |
|
1487 |
_ACEOF |
|
1488 |
exit |
|
1489 |
fi |
|
1490 |
|
|
1491 |
## ------------------------ ## |
|
1492 |
## Autoconf initialization. ## |
|
1493 |
## ------------------------ ## |
|
1494 |
|
|
1495 |
# ac_fn_c_try_compile LINENO |
|
1496 |
# -------------------------- |
|
1497 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
|
1498 |
ac_fn_c_try_compile () |
|
1499 |
{ |
|
1500 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1501 |
rm -f conftest.$ac_objext |
|
1502 |
if { { ac_try="$ac_compile" |
|
1503 |
case "(($ac_try" in |
|
1504 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1505 |
*) ac_try_echo=$ac_try;; |
|
1506 |
esac |
|
1507 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1508 |
$as_echo "$ac_try_echo"; } >&5 |
|
1509 |
(eval "$ac_compile") 2>conftest.err |
|
1510 |
ac_status=$? |
|
1511 |
if test -s conftest.err; then |
|
1512 |
grep -v '^ *+' conftest.err >conftest.er1 |
|
1513 |
cat conftest.er1 >&5 |
|
1514 |
mv -f conftest.er1 conftest.err |
|
1515 |
fi |
|
1516 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1517 |
test $ac_status = 0; } && { |
|
1518 |
test -z "$ac_c_werror_flag" || |
|
1519 |
test ! -s conftest.err |
|
1520 |
} && test -s conftest.$ac_objext; then : |
|
1521 |
ac_retval=0 |
|
1522 |
else |
|
1523 |
$as_echo "$as_me: failed program was:" >&5 |
|
1524 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
1525 |
|
|
1526 |
ac_retval=1 |
|
1527 |
fi |
|
1528 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1529 |
as_fn_set_status $ac_retval |
|
1530 |
|
|
1531 |
} # ac_fn_c_try_compile |
|
1532 |
|
|
1533 |
# ac_fn_c_try_link LINENO |
|
1534 |
# ----------------------- |
|
1535 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
|
1536 |
ac_fn_c_try_link () |
|
1537 |
{ |
|
1538 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1539 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1540 |
if { { ac_try="$ac_link" |
|
1541 |
case "(($ac_try" in |
|
1542 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1543 |
*) ac_try_echo=$ac_try;; |
|
1544 |
esac |
|
1545 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1546 |
$as_echo "$ac_try_echo"; } >&5 |
|
1547 |
(eval "$ac_link") 2>conftest.err |
|
1548 |
ac_status=$? |
|
1549 |
if test -s conftest.err; then |
|
1550 |
grep -v '^ *+' conftest.err >conftest.er1 |
|
1551 |
cat conftest.er1 >&5 |
|
1552 |
mv -f conftest.er1 conftest.err |
|
1553 |
fi |
|
1554 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1555 |
test $ac_status = 0; } && { |
|
1556 |
test -z "$ac_c_werror_flag" || |
|
1557 |
test ! -s conftest.err |
|
1558 |
} && test -s conftest$ac_exeext && { |
|
1559 |
test "$cross_compiling" = yes || |
|
1560 |
test -x conftest$ac_exeext |
|
1561 |
}; then : |
|
1562 |
ac_retval=0 |
|
1563 |
else |
|
1564 |
$as_echo "$as_me: failed program was:" >&5 |
|
1565 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
1566 |
|
|
1567 |
ac_retval=1 |
|
1568 |
fi |
|
1569 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
|
1570 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
|
1571 |
# interfere with the next link command; also delete a directory that is |
|
1572 |
# left behind by Apple's compiler. We do this before executing the actions. |
|
1573 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
1574 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1575 |
as_fn_set_status $ac_retval |
|
1576 |
|
|
1577 |
} # ac_fn_c_try_link |
|
1578 |
|
|
1579 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
|
1580 |
# ------------------------------------------------------- |
|
1581 |
# Tests whether HEADER exists and can be compiled using the include files in |
|
1582 |
# INCLUDES, setting the cache variable VAR accordingly. |
|
1583 |
ac_fn_c_check_header_compile () |
|
1584 |
{ |
|
1585 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1586 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1587 |
$as_echo_n "checking for $2... " >&6; } |
|
1588 |
if eval \${$3+:} false; then : |
|
1589 |
$as_echo_n "(cached) " >&6 |
|
1590 |
else |
|
1591 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1592 |
/* end confdefs.h. */ |
|
1593 |
$4 |
|
1594 |
#include <$2> |
|
1595 |
_ACEOF |
|
1596 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
1597 |
eval "$3=yes" |
|
1598 |
else |
|
1599 |
eval "$3=no" |
|
1600 |
fi |
|
1601 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1602 |
fi |
|
1603 |
eval ac_res=\$$3 |
|
1604 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1605 |
$as_echo "$ac_res" >&6; } |
|
1606 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1607 |
|
|
1608 |
} # ac_fn_c_check_header_compile |
|
1609 |
|
|
1610 |
# ac_fn_c_try_cpp LINENO |
|
1611 |
# ---------------------- |
|
1612 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
|
1613 |
ac_fn_c_try_cpp () |
|
1614 |
{ |
|
1615 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1616 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
|
1617 |
case "(($ac_try" in |
|
1618 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1619 |
*) ac_try_echo=$ac_try;; |
|
1620 |
esac |
|
1621 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1622 |
$as_echo "$ac_try_echo"; } >&5 |
|
1623 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
|
1624 |
ac_status=$? |
|
1625 |
if test -s conftest.err; then |
|
1626 |
grep -v '^ *+' conftest.err >conftest.er1 |
|
1627 |
cat conftest.er1 >&5 |
|
1628 |
mv -f conftest.er1 conftest.err |
|
1629 |
fi |
|
1630 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1631 |
test $ac_status = 0; } > conftest.i && { |
|
1632 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
1633 |
test ! -s conftest.err |
|
1634 |
}; then : |
|
1635 |
ac_retval=0 |
|
1636 |
else |
|
1637 |
$as_echo "$as_me: failed program was:" >&5 |
|
1638 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
1639 |
|
|
1640 |
ac_retval=1 |
|
1641 |
fi |
|
1642 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1643 |
as_fn_set_status $ac_retval |
|
1644 |
|
|
1645 |
} # ac_fn_c_try_cpp |
|
1646 |
|
|
1647 |
# ac_fn_c_try_run LINENO |
|
1648 |
# ---------------------- |
|
1649 |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
|
1650 |
# that executables *can* be run. |
|
1651 |
ac_fn_c_try_run () |
|
1652 |
{ |
|
1653 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1654 |
if { { ac_try="$ac_link" |
|
1655 |
case "(($ac_try" in |
|
1656 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1657 |
*) ac_try_echo=$ac_try;; |
|
1658 |
esac |
|
1659 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1660 |
$as_echo "$ac_try_echo"; } >&5 |
|
1661 |
(eval "$ac_link") 2>&5 |
|
1662 |
ac_status=$? |
|
1663 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1664 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
|
1665 |
{ { case "(($ac_try" in |
|
1666 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1667 |
*) ac_try_echo=$ac_try;; |
|
1668 |
esac |
|
1669 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1670 |
$as_echo "$ac_try_echo"; } >&5 |
|
1671 |
(eval "$ac_try") 2>&5 |
|
1672 |
ac_status=$? |
|
1673 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1674 |
test $ac_status = 0; }; }; then : |
|
1675 |
ac_retval=0 |
|
1676 |
else |
|
1677 |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
|
1678 |
$as_echo "$as_me: failed program was:" >&5 |
|
1679 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
1680 |
|
|
1681 |
ac_retval=$ac_status |
|
1682 |
fi |
|
1683 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
1684 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1685 |
as_fn_set_status $ac_retval |
|
1686 |
|
|
1687 |
} # ac_fn_c_try_run |
|
1688 |
|
|
1689 |
# ac_fn_c_check_func LINENO FUNC VAR |
|
1690 |
# ---------------------------------- |
|
1691 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
|
1692 |
ac_fn_c_check_func () |
|
1693 |
{ |
|
1694 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1695 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1696 |
$as_echo_n "checking for $2... " >&6; } |
|
1697 |
if eval \${$3+:} false; then : |
|
1698 |
$as_echo_n "(cached) " >&6 |
|
1699 |
else |
|
1700 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1701 |
/* end confdefs.h. */ |
|
1702 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
|
1703 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
1704 |
#define $2 innocuous_$2 |
|
1705 |
|
|
1706 |
/* System header to define __stub macros and hopefully few prototypes, |
|
1707 |
which can conflict with char $2 (); below. |
|
1708 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
1709 |
<limits.h> exists even on freestanding compilers. */ |
|
1710 |
|
|
1711 |
#ifdef __STDC__ |
|
1712 |
# include <limits.h> |
|
1713 |
#else |
|
1714 |
# include <assert.h> |
|
1715 |
#endif |
|
1716 |
|
|
1717 |
#undef $2 |
|
1718 |
|
|
1719 |
/* Override any GCC internal prototype to avoid an error. |
|
1720 |
Use char because int might match the return type of a GCC |
|
1721 |
builtin and then its argument prototype would still apply. */ |
|
1722 |
#ifdef __cplusplus |
|
1723 |
extern "C" |
|
1724 |
#endif |
|
1725 |
char $2 (); |
|
1726 |
/* The GNU C library defines this for functions which it implements |
|
1727 |
to always fail with ENOSYS. Some functions are actually named |
|
1728 |
something starting with __ and the normal name is an alias. */ |
|
1729 |
#if defined __stub_$2 || defined __stub___$2 |
|
1730 |
choke me |
|
1731 |
#endif |
|
1732 |
|
|
1733 |
int |
|
1734 |
main () |
|
1735 |
{ |
|
1736 |
return $2 (); |
|
1737 |
; |
|
1738 |
return 0; |
|
1739 |
} |
|
1740 |
_ACEOF |
|
1741 |
if ac_fn_c_try_link "$LINENO"; then : |
|
1742 |
eval "$3=yes" |
|
1743 |
else |
|
1744 |
eval "$3=no" |
|
1745 |
fi |
|
1746 |
rm -f core conftest.err conftest.$ac_objext \ |
|
1747 |
conftest$ac_exeext conftest.$ac_ext |
|
1748 |
fi |
|
1749 |
eval ac_res=\$$3 |
|
1750 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1751 |
$as_echo "$ac_res" >&6; } |
|
1752 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
1753 |
|
|
1754 |
} # ac_fn_c_check_func |
|
1755 |
cat >config.log <<_ACEOF |
|
1756 |
This file contains any messages produced by compilers while |
|
1757 |
running configure, to aid debugging if configure makes a mistake. |
|
1758 |
|
|
1759 |
It was created by G4Track_lib_dist $as_me 0.0.2, which was |
|
1760 |
generated by GNU Autoconf 2.69. Invocation command line was |
|
1761 |
|
|
1762 |
$ $0 $@ |
|
1763 |
|
|
1764 |
_ACEOF |
|
1765 |
exec 5>>config.log |
|
1766 |
{ |
|
1767 |
cat <<_ASUNAME |
|
1768 |
## --------- ## |
|
1769 |
## Platform. ## |
|
1770 |
## --------- ## |
|
1771 |
|
|
1772 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
1773 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
|
1774 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
|
1775 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
|
1776 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
|
1777 |
|
|
1778 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
|
1779 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
|
1780 |
|
|
1781 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
|
1782 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
|
1783 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
|
1784 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
|
1785 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
|
1786 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
|
1787 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
|
1788 |
|
|
1789 |
_ASUNAME |
|
1790 |
|
|
1791 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
1792 |
for as_dir in $PATH |
|
1793 |
do |
|
1794 |
IFS=$as_save_IFS |
|
1795 |
test -z "$as_dir" && as_dir=. |
|
1796 |
$as_echo "PATH: $as_dir" |
|
1797 |
done |
|
1798 |
IFS=$as_save_IFS |
|
1799 |
|
|
1800 |
} >&5 |
|
1801 |
|
|
1802 |
cat >&5 <<_ACEOF |
|
1803 |
|
|
1804 |
|
|
1805 |
## ----------- ## |
|
1806 |
## Core tests. ## |
|
1807 |
## ----------- ## |
|
1808 |
|
|
1809 |
_ACEOF |
|
1810 |
|
|
1811 |
|
|
1812 |
# Keep a trace of the command line. |
|
1813 |
# Strip out --no-create and --no-recursion so they do not pile up. |
|
1814 |
# Strip out --silent because we don't want to record it for future runs. |
|
1815 |
# Also quote any args containing shell meta-characters. |
|
1816 |
# Make two passes to allow for proper duplicate-argument suppression. |
|
1817 |
ac_configure_args= |
|
1818 |
ac_configure_args0= |
|
1819 |
ac_configure_args1= |
|
1820 |
ac_must_keep_next=false |
|
1821 |
for ac_pass in 1 2 |
|
1822 |
do |
|
1823 |
for ac_arg |
|
1824 |
do |
|
1825 |
case $ac_arg in |
|
1826 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
|
1827 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
1828 |
| -silent | --silent | --silen | --sile | --sil) |
|
1829 |
continue ;; |
|
1830 |
*\'*) |
|
1831 |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
1832 |
esac |
|
1833 |
case $ac_pass in |
|
1834 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
|
1835 |
2) |
|
1836 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
|
1837 |
if test $ac_must_keep_next = true; then |
|
1838 |
ac_must_keep_next=false # Got value, back to normal. |
|
1839 |
else |
|
1840 |
case $ac_arg in |
|
1841 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
|
1842 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
|
1843 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
|
1844 |
| -with-* | --with-* | -without-* | --without-* | --x) |
|
1845 |
case "$ac_configure_args0 " in |
|
1846 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
|
1847 |
esac |
|
1848 |
;; |
|
1849 |
-* ) ac_must_keep_next=true ;; |
|
1850 |
esac |
|
1851 |
fi |
|
1852 |
as_fn_append ac_configure_args " '$ac_arg'" |
|
1853 |
;; |
|
1854 |
esac |
|
1855 |
done |
|
1856 |
done |
|
1857 |
{ ac_configure_args0=; unset ac_configure_args0;} |
|
1858 |
{ ac_configure_args1=; unset ac_configure_args1;} |
|
1859 |
|
|
1860 |
# When interrupted or exit'd, cleanup temporary files, and complete |
|
1861 |
# config.log. We remove comments because anyway the quotes in there |
|
1862 |
# would cause problems or look ugly. |
|
1863 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
|
1864 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
|
1865 |
trap 'exit_status=$? |
|
1866 |
# Save into config.log some information that might help in debugging. |
|
1867 |
{ |
|
1868 |
echo |
|
1869 |
|
|
1870 |
$as_echo "## ---------------- ## |
|
1871 |
## Cache variables. ## |
|
1872 |
## ---------------- ##" |
|
1873 |
echo |
|
1874 |
# The following way of writing the cache mishandles newlines in values, |
|
1875 |
( |
|
1876 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
|
1877 |
eval ac_val=\$$ac_var |
|
1878 |
case $ac_val in #( |
|
1879 |
*${as_nl}*) |
|
1880 |
case $ac_var in #( |
|
1881 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
|
1882 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
|
1883 |
esac |
|
1884 |
case $ac_var in #( |
|
1885 |
_ | IFS | as_nl) ;; #( |
|
1886 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
1887 |
*) { eval $ac_var=; unset $ac_var;} ;; |
|
1888 |
esac ;; |
|
1889 |
esac |
|
1890 |
done |
|
1891 |
(set) 2>&1 | |
|
1892 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
|
1893 |
*${as_nl}ac_space=\ *) |
|
1894 |
sed -n \ |
|
1895 |
"s/'\''/'\''\\\\'\'''\''/g; |
|
1896 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
|
1897 |
;; #( |
|
1898 |
*) |
|
1899 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|
1900 |
;; |
|
1901 |
esac | |
|
1902 |
sort |
|
1903 |
) |
|
1904 |
echo |
|
1905 |
|
|
1906 |
$as_echo "## ----------------- ## |
|
1907 |
## Output variables. ## |
|
1908 |
## ----------------- ##" |
|
1909 |
echo |
|
1910 |
for ac_var in $ac_subst_vars |
|
1911 |
do |
|
1912 |
eval ac_val=\$$ac_var |
|
1913 |
case $ac_val in |
|
1914 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
1915 |
esac |
|
1916 |
$as_echo "$ac_var='\''$ac_val'\''" |
|
1917 |
done | sort |
|
1918 |
echo |
|
1919 |
|
|
1920 |
if test -n "$ac_subst_files"; then |
|
1921 |
$as_echo "## ------------------- ## |
|
1922 |
## File substitutions. ## |
|
1923 |
## ------------------- ##" |
|
1924 |
echo |
|
1925 |
for ac_var in $ac_subst_files |
|
1926 |
do |
|
1927 |
eval ac_val=\$$ac_var |
|
1928 |
case $ac_val in |
|
1929 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
1930 |
esac |
|
1931 |
$as_echo "$ac_var='\''$ac_val'\''" |
|
1932 |
done | sort |
|
1933 |
echo |
|
1934 |
fi |
|
1935 |
|
|
1936 |
if test -s confdefs.h; then |
|
1937 |
$as_echo "## ----------- ## |
|
1938 |
## confdefs.h. ## |
|
1939 |
## ----------- ##" |
|
1940 |
echo |
|
1941 |
cat confdefs.h |
|
1942 |
echo |
|
1943 |
fi |
|
1944 |
test "$ac_signal" != 0 && |
|
1945 |
$as_echo "$as_me: caught signal $ac_signal" |
|
1946 |
$as_echo "$as_me: exit $exit_status" |
|
1947 |
} >&5 |
|
1948 |
rm -f core *.core core.conftest.* && |
|
1949 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
|
1950 |
exit $exit_status |
|
1951 |
' 0 |
|
1952 |
for ac_signal in 1 2 13 15; do |
|
1953 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
|
1954 |
done |
|
1955 |
ac_signal=0 |
|
1956 |
|
|
1957 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
|
1958 |
rm -f -r conftest* confdefs.h |
|
1959 |
|
|
1960 |
$as_echo "/* confdefs.h */" > confdefs.h |
|
1961 |
|
|
1962 |
# Predefined preprocessor variables. |
|
1963 |
|
|
1964 |
cat >>confdefs.h <<_ACEOF |
|
1965 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
|
1966 |
_ACEOF |
|
1967 |
|
|
1968 |
cat >>confdefs.h <<_ACEOF |
|
1969 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|
1970 |
_ACEOF |
|
1971 |
|
|
1972 |
cat >>confdefs.h <<_ACEOF |
|
1973 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
|
1974 |
_ACEOF |
|
1975 |
|
|
1976 |
cat >>confdefs.h <<_ACEOF |
|
1977 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
|
1978 |
_ACEOF |
|
1979 |
|
|
1980 |
cat >>confdefs.h <<_ACEOF |
|
1981 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|
1982 |
_ACEOF |
|
1983 |
|
|
1984 |
cat >>confdefs.h <<_ACEOF |
|
1985 |
#define PACKAGE_URL "$PACKAGE_URL" |
|
1986 |
_ACEOF |
|
1987 |
|
|
1988 |
|
|
1989 |
# Let the site file select an alternate cache file if it wants to. |
|
1990 |
# Prefer an explicitly selected file to automatically selected ones. |
|
1991 |
ac_site_file1=NONE |
|
1992 |
ac_site_file2=NONE |
|
1993 |
if test -n "$CONFIG_SITE"; then |
|
1994 |
# We do not want a PATH search for config.site. |
|
1995 |
case $CONFIG_SITE in #(( |
|
1996 |
-*) ac_site_file1=./$CONFIG_SITE;; |
|
1997 |
*/*) ac_site_file1=$CONFIG_SITE;; |
|
1998 |
*) ac_site_file1=./$CONFIG_SITE;; |
|
1999 |
esac |
|
2000 |
elif test "x$prefix" != xNONE; then |
|
2001 |
ac_site_file1=$prefix/share/config.site |
|
2002 |
ac_site_file2=$prefix/etc/config.site |
|
2003 |
else |
|
2004 |
ac_site_file1=$ac_default_prefix/share/config.site |
|
2005 |
ac_site_file2=$ac_default_prefix/etc/config.site |
|
2006 |
fi |
|
2007 |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
|
2008 |
do |
|
2009 |
test "x$ac_site_file" = xNONE && continue |
|
2010 |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
|
2011 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
|
2012 |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
|
2013 |
sed 's/^/| /' "$ac_site_file" >&5 |
|
2014 |
. "$ac_site_file" \ |
|
2015 |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
2016 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
2017 |
as_fn_error $? "failed to load site script $ac_site_file |
|
2018 |
See \`config.log' for more details" "$LINENO" 5; } |
|
2019 |
fi |
|
2020 |
done |
|
2021 |
|
|
2022 |
if test -r "$cache_file"; then |
|
2023 |
# Some versions of bash will fail to source /dev/null (special files |
|
2024 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
|
2025 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
|
2026 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
|
2027 |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
|
2028 |
case $cache_file in |
|
2029 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
|
2030 |
*) . "./$cache_file";; |
|
2031 |
esac |
|
2032 |
fi |
|
2033 |
else |
|
2034 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
|
2035 |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
|
2036 |
>$cache_file |
|
2037 |
fi |
|
2038 |
|
|
2039 |
# Check that the precious variables saved in the cache have kept the same |
|
2040 |
# value. |
|
2041 |
ac_cache_corrupted=false |
|
2042 |
for ac_var in $ac_precious_vars; do |
|
2043 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
|
2044 |
eval ac_new_set=\$ac_env_${ac_var}_set |
|
2045 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
|
2046 |
eval ac_new_val=\$ac_env_${ac_var}_value |
|
2047 |
case $ac_old_set,$ac_new_set in |
|
2048 |
set,) |
|
2049 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
|
2050 |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
|
2051 |
ac_cache_corrupted=: ;; |
|
2052 |
,set) |
|
2053 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
|
2054 |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
|
2055 |
ac_cache_corrupted=: ;; |
|
2056 |
,);; |
|
2057 |
*) |
|
2058 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
|
2059 |
# differences in whitespace do not lead to failure. |
|
2060 |
ac_old_val_w=`echo x $ac_old_val` |
|
2061 |
ac_new_val_w=`echo x $ac_new_val` |
|
2062 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
|
2063 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
|
2064 |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
|
2065 |
ac_cache_corrupted=: |
|
2066 |
else |
|
2067 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
|
2068 |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
|
2069 |
eval $ac_var=\$ac_old_val |
|
2070 |
fi |
|
2071 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
|
2072 |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
|
2073 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
|
2074 |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
|
2075 |
fi;; |
|
2076 |
esac |
|
2077 |
# Pass precious variables to config.status. |
|
2078 |
if test "$ac_new_set" = set; then |
|
2079 |
case $ac_new_val in |
|
2080 |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
2081 |
*) ac_arg=$ac_var=$ac_new_val ;; |
|
2082 |
esac |
|
2083 |
case " $ac_configure_args " in |
|
2084 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
|
2085 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
|
2086 |
esac |
|
2087 |
fi |
|
2088 |
done |
|
2089 |
if $ac_cache_corrupted; then |
|
2090 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
2091 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
2092 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
|
2093 |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
|
2094 |
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
|
2095 |
fi |
|
2096 |
## -------------------- ## |
|
2097 |
## Main body of script. ## |
|
2098 |
## -------------------- ## |
|
2099 |
|
|
2100 |
ac_ext=c |
|
2101 |
ac_cpp='$CPP $CPPFLAGS' |
|
2102 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
2103 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
2104 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
2105 |
|
|
2106 |
|
|
2107 |
am__api_version='1.12' |
|
2108 |
|
|
2109 |
ac_aux_dir= |
|
2110 |
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
|
2111 |
if test -f "$ac_dir/install-sh"; then |
|
2112 |
ac_aux_dir=$ac_dir |
|
2113 |
ac_install_sh="$ac_aux_dir/install-sh -c" |
|
2114 |
break |
|
2115 |
elif test -f "$ac_dir/install.sh"; then |
|
2116 |
ac_aux_dir=$ac_dir |
|
2117 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
|
2118 |
break |
|
2119 |
elif test -f "$ac_dir/shtool"; then |
|
2120 |
ac_aux_dir=$ac_dir |
|
2121 |
ac_install_sh="$ac_aux_dir/shtool install -c" |
|
2122 |
break |
|
2123 |
fi |
|
2124 |
done |
|
2125 |
if test -z "$ac_aux_dir"; then |
|
2126 |
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
|
2127 |
fi |
|
2128 |
|
|
2129 |
# These three variables are undocumented and unsupported, |
|
2130 |
# and are intended to be withdrawn in a future Autoconf release. |
|
2131 |
# They can cause serious problems if a builder's source tree is in a directory |
|
2132 |
# whose full name contains unusual characters. |
|
2133 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
|
2134 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
|
2135 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
|
2136 |
|
|
2137 |
|
|
2138 |
# Find a good install program. We prefer a C program (faster), |
|
2139 |
# so one script is as good as another. But avoid the broken or |
|
2140 |
# incompatible versions: |
|
2141 |
# SysV /etc/install, /usr/sbin/install |
|
2142 |
# SunOS /usr/etc/install |
|
2143 |
# IRIX /sbin/install |
|
2144 |
# AIX /bin/install |
|
2145 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
|
2146 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
|
2147 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
|
2148 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
|
2149 |
# OS/2's system install, which has a completely different semantic |
|
2150 |
# ./install, which can be erroneously created by make from ./install.sh. |
|
2151 |
# Reject install programs that cannot install multiple files. |
|
2152 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
|
2153 |
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
|
2154 |
if test -z "$INSTALL"; then |
|
2155 |
if ${ac_cv_path_install+:} false; then : |
|
2156 |
$as_echo_n "(cached) " >&6 |
|
2157 |
else |
|
2158 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2159 |
for as_dir in $PATH |
|
2160 |
do |
|
2161 |
IFS=$as_save_IFS |
|
2162 |
test -z "$as_dir" && as_dir=. |
|
2163 |
# Account for people who put trailing slashes in PATH elements. |
|
2164 |
case $as_dir/ in #(( |
|
2165 |
./ | .// | /[cC]/* | \ |
|
2166 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
|
2167 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
|
2168 |
/usr/ucb/* ) ;; |
|
2169 |
*) |
|
2170 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
|
2171 |
# Don't use installbsd from OSF since it installs stuff as root |
|
2172 |
# by default. |
|
2173 |
for ac_prog in ginstall scoinst install; do |
|
2174 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2175 |
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
|
2176 |
if test $ac_prog = install && |
|
2177 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
2178 |
# AIX install. It has an incompatible calling convention. |
|
2179 |
: |
|
2180 |
elif test $ac_prog = install && |
|
2181 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
2182 |
# program-specific install script used by HP pwplus--don't use. |
|
2183 |
: |
|
2184 |
else |
|
2185 |
rm -rf conftest.one conftest.two conftest.dir |
|
2186 |
echo one > conftest.one |
|
2187 |
echo two > conftest.two |
|
2188 |
mkdir conftest.dir |
|
2189 |
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
|
2190 |
test -s conftest.one && test -s conftest.two && |
|
2191 |
test -s conftest.dir/conftest.one && |
|
2192 |
test -s conftest.dir/conftest.two |
|
2193 |
then |
|
2194 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
|
2195 |
break 3 |
|
2196 |
fi |
|
2197 |
fi |
|
2198 |
fi |
|
2199 |
done |
|
2200 |
done |
|
2201 |
;; |
|
2202 |
esac |
|
2203 |
|
|
2204 |
done |
|
2205 |
IFS=$as_save_IFS |
|
2206 |
|
|
2207 |
rm -rf conftest.one conftest.two conftest.dir |
|
2208 |
|
|
2209 |
fi |
|
2210 |
if test "${ac_cv_path_install+set}" = set; then |
|
2211 |
INSTALL=$ac_cv_path_install |
|
2212 |
else |
|
2213 |
# As a last resort, use the slow shell script. Don't cache a |
|
2214 |
# value for INSTALL within a source directory, because that will |
|
2215 |
# break other packages using the cache if that directory is |
|
2216 |
# removed, or if the value is a relative name. |
|
2217 |
INSTALL=$ac_install_sh |
|
2218 |
fi |
|
2219 |
fi |
|
2220 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
|
2221 |
$as_echo "$INSTALL" >&6; } |
|
2222 |
|
|
2223 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
|
2224 |
# It thinks the first close brace ends the variable substitution. |
|
2225 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
|
2226 |
|
|
2227 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
|
2228 |
|
|
2229 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|
2230 |
|
|
2231 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
|
2232 |
$as_echo_n "checking whether build environment is sane... " >&6; } |
|
2233 |
# Reject unsafe characters in $srcdir or the absolute working directory |
|
2234 |
# name. Accept space and tab only in the latter. |
|
2235 |
am_lf=' |
|
2236 |
' |
|
2237 |
case `pwd` in |
|
2238 |
*[\\\"\#\$\&\'\`$am_lf]*) |
|
2239 |
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
|
2240 |
esac |
|
2241 |
case $srcdir in |
|
2242 |
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
|
2243 |
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
|
2244 |
esac |
|
2245 |
|
|
2246 |
# Do 'set' in a subshell so we don't clobber the current shell's |
|
2247 |
# arguments. Must try -L first in case configure is actually a |
|
2248 |
# symlink; some systems play weird games with the mod time of symlinks |
|
2249 |
# (eg FreeBSD returns the mod time of the symlink's containing |
|
2250 |
# directory). |
|
2251 |
if ( |
|
2252 |
am_has_slept=no |
|
2253 |
for am_try in 1 2; do |
|
2254 |
echo "timestamp, slept: $am_has_slept" > conftest.file |
|
2255 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
|
2256 |
if test "$*" = "X"; then |
|
2257 |
# -L didn't work. |
|
2258 |
set X `ls -t "$srcdir/configure" conftest.file` |
|
2259 |
fi |
|
2260 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
|
2261 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
|
2262 |
|
|
2263 |
# If neither matched, then we have a broken ls. This can happen |
|
2264 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
|
2265 |
# broken ls alias from the environment. This has actually |
|
2266 |
# happened. Such a system could not be considered "sane". |
|
2267 |
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
|
2268 |
alias in your environment" "$LINENO" 5 |
|
2269 |
fi |
|
2270 |
if test "$2" = conftest.file || test $am_try -eq 2; then |
|
2271 |
break |
|
2272 |
fi |
|
2273 |
# Just in case. |
|
2274 |
sleep 1 |
|
2275 |
am_has_slept=yes |
|
2276 |
done |
|
2277 |
test "$2" = conftest.file |
|
2278 |
) |
|
2279 |
then |
|
2280 |
# Ok. |
|
2281 |
: |
|
2282 |
else |
|
2283 |
as_fn_error $? "newly created file is older than distributed files! |
|
2284 |
Check your system clock" "$LINENO" 5 |
|
2285 |
fi |
|
2286 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
2287 |
$as_echo "yes" >&6; } |
|
2288 |
# If we didn't sleep, we still need to ensure time stamps of config.status and |
|
2289 |
# generated files are strictly newer. |
|
2290 |
am_sleep_pid= |
|
2291 |
if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
|
2292 |
( sleep 1 ) & |
|
2293 |
am_sleep_pid=$! |
|
2294 |
fi |
|
2295 |
|
|
2296 |
rm -f conftest.file |
|
2297 |
|
|
2298 |
test "$program_prefix" != NONE && |
|
2299 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
|
2300 |
# Use a double $ so make ignores it. |
|
2301 |
test "$program_suffix" != NONE && |
|
2302 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
|
2303 |
# Double any \ or $. |
|
2304 |
# By default was `s,x,x', remove it if useless. |
|
2305 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
|
2306 |
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
|
2307 |
|
|
2308 |
# expand $ac_aux_dir to an absolute path |
|
2309 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
|
2310 |
|
|
2311 |
if test x"${MISSING+set}" != xset; then |
|
2312 |
case $am_aux_dir in |
|
2313 |
*\ * | *\ *) |
|
2314 |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
|
2315 |
*) |
|
2316 |
MISSING="\${SHELL} $am_aux_dir/missing" ;; |
|
2317 |
esac |
|
2318 |
fi |
|
2319 |
# Use eval to expand $SHELL |
|
2320 |
if eval "$MISSING --run true"; then |
|
2321 |
am_missing_run="$MISSING --run " |
|
2322 |
else |
|
2323 |
am_missing_run= |
|
2324 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
|
2325 |
$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
|
2326 |
fi |
|
2327 |
|
|
2328 |
if test x"${install_sh}" != xset; then |
|
2329 |
case $am_aux_dir in |
|
2330 |
*\ * | *\ *) |
|
2331 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
|
2332 |
*) |
|
2333 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
|
2334 |
esac |
|
2335 |
fi |
|
2336 |
|
|
2337 |
# Installed binaries are usually stripped using 'strip' when the user |
|
2338 |
# run "make install-strip". However 'strip' might not be the right |
|
2339 |
# tool to use in cross-compilation environments, therefore Automake |
|
2340 |
# will honor the 'STRIP' environment variable to overrule this program. |
|
2341 |
if test "$cross_compiling" != no; then |
|
2342 |
if test -n "$ac_tool_prefix"; then |
|
2343 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
2344 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
2345 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
2346 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
2347 |
if ${ac_cv_prog_STRIP+:} false; then : |
|
2348 |
$as_echo_n "(cached) " >&6 |
|
2349 |
else |
|
2350 |
if test -n "$STRIP"; then |
|
2351 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
2352 |
else |
|
2353 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2354 |
for as_dir in $PATH |
|
2355 |
do |
|
2356 |
IFS=$as_save_IFS |
|
2357 |
test -z "$as_dir" && as_dir=. |
|
2358 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2359 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2360 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
2361 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2362 |
break 2 |
|
2363 |
fi |
|
2364 |
done |
|
2365 |
done |
|
2366 |
IFS=$as_save_IFS |
|
2367 |
|
|
2368 |
fi |
|
2369 |
fi |
|
2370 |
STRIP=$ac_cv_prog_STRIP |
|
2371 |
if test -n "$STRIP"; then |
|
2372 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
|
2373 |
$as_echo "$STRIP" >&6; } |
|
2374 |
else |
|
2375 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2376 |
$as_echo "no" >&6; } |
|
2377 |
fi |
|
2378 |
|
|
2379 |
|
|
2380 |
fi |
|
2381 |
if test -z "$ac_cv_prog_STRIP"; then |
|
2382 |
ac_ct_STRIP=$STRIP |
|
2383 |
# Extract the first word of "strip", so it can be a program name with args. |
|
2384 |
set dummy strip; ac_word=$2 |
|
2385 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
2386 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
2387 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
|
2388 |
$as_echo_n "(cached) " >&6 |
|
2389 |
else |
|
2390 |
if test -n "$ac_ct_STRIP"; then |
|
2391 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
2392 |
else |
|
2393 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2394 |
for as_dir in $PATH |
|
2395 |
do |
|
2396 |
IFS=$as_save_IFS |
|
2397 |
test -z "$as_dir" && as_dir=. |
|
2398 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2399 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2400 |
ac_cv_prog_ac_ct_STRIP="strip" |
|
2401 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2402 |
break 2 |
|
2403 |
fi |
|
2404 |
done |
|
2405 |
done |
|
2406 |
IFS=$as_save_IFS |
|
2407 |
|
|
2408 |
fi |
|
2409 |
fi |
|
2410 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
2411 |
if test -n "$ac_ct_STRIP"; then |
|
2412 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
|
2413 |
$as_echo "$ac_ct_STRIP" >&6; } |
|
2414 |
else |
|
2415 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2416 |
$as_echo "no" >&6; } |
|
2417 |
fi |
|
2418 |
|
|
2419 |
if test "x$ac_ct_STRIP" = x; then |
|
2420 |
STRIP=":" |
|
2421 |
else |
|
2422 |
case $cross_compiling:$ac_tool_warned in |
|
2423 |
yes:) |
|
2424 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
2425 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
2426 |
ac_tool_warned=yes ;; |
|
2427 |
esac |
|
2428 |
STRIP=$ac_ct_STRIP |
|
2429 |
fi |
|
2430 |
else |
|
2431 |
STRIP="$ac_cv_prog_STRIP" |
|
2432 |
fi |
|
2433 |
|
|
2434 |
fi |
|
2435 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
|
2436 |
|
|
2437 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
|
2438 |
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
|
2439 |
if test -z "$MKDIR_P"; then |
|
2440 |
if ${ac_cv_path_mkdir+:} false; then : |
|
2441 |
$as_echo_n "(cached) " >&6 |
|
2442 |
else |
|
2443 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2444 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
|
2445 |
do |
|
2446 |
IFS=$as_save_IFS |
|
2447 |
test -z "$as_dir" && as_dir=. |
|
2448 |
for ac_prog in mkdir gmkdir; do |
|
2449 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2450 |
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
|
2451 |
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
|
2452 |
'mkdir (GNU coreutils) '* | \ |
|
2453 |
'mkdir (coreutils) '* | \ |
|
2454 |
'mkdir (fileutils) '4.1*) |
|
2455 |
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
|
2456 |
break 3;; |
|
2457 |
esac |
|
2458 |
done |
|
2459 |
done |
|
2460 |
done |
|
2461 |
IFS=$as_save_IFS |
|
2462 |
|
|
2463 |
fi |
|
2464 |
|
|
2465 |
test -d ./--version && rmdir ./--version |
|
2466 |
if test "${ac_cv_path_mkdir+set}" = set; then |
|
2467 |
MKDIR_P="$ac_cv_path_mkdir -p" |
|
2468 |
else |
|
2469 |
# As a last resort, use the slow shell script. Don't cache a |
|
2470 |
# value for MKDIR_P within a source directory, because that will |
|
2471 |
# break other packages using the cache if that directory is |
|
2472 |
# removed, or if the value is a relative name. |
|
2473 |
MKDIR_P="$ac_install_sh -d" |
|
2474 |
fi |
|
2475 |
fi |
|
2476 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
|
2477 |
$as_echo "$MKDIR_P" >&6; } |
|
2478 |
|
|
2479 |
for ac_prog in gawk mawk nawk awk |
|
2480 |
do |
|
2481 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
2482 |
set dummy $ac_prog; ac_word=$2 |
|
2483 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
2484 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
2485 |
if ${ac_cv_prog_AWK+:} false; then : |
|
2486 |
$as_echo_n "(cached) " >&6 |
|
2487 |
else |
|
2488 |
if test -n "$AWK"; then |
|
2489 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
|
2490 |
else |
|
2491 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2492 |
for as_dir in $PATH |
|
2493 |
do |
|
2494 |
IFS=$as_save_IFS |
|
2495 |
test -z "$as_dir" && as_dir=. |
|
2496 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2497 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2498 |
ac_cv_prog_AWK="$ac_prog" |
|
2499 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2500 |
break 2 |
|
2501 |
fi |
|
2502 |
done |
|
2503 |
done |
|
2504 |
IFS=$as_save_IFS |
|
2505 |
|
|
2506 |
fi |
|
2507 |
fi |
|
2508 |
AWK=$ac_cv_prog_AWK |
|
2509 |
if test -n "$AWK"; then |
|
2510 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
|
2511 |
$as_echo "$AWK" >&6; } |
|
2512 |
else |
|
2513 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2514 |
$as_echo "no" >&6; } |
|
2515 |
fi |
|
2516 |
|
|
2517 |
|
|
2518 |
test -n "$AWK" && break |
|
2519 |
done |
|
2520 |
|
|
2521 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
|
2522 |
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
|
2523 |
set x ${MAKE-make} |
|
2524 |
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
|
2525 |
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
|
2526 |
$as_echo_n "(cached) " >&6 |
|
2527 |
else |
|
2528 |
cat >conftest.make <<\_ACEOF |
|
2529 |
SHELL = /bin/sh |
|
2530 |
all: |
|
2531 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
|
2532 |
_ACEOF |
|
2533 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
|
2534 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
|
2535 |
*@@@%%%=?*=@@@%%%*) |
|
2536 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
|
2537 |
*) |
|
2538 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
|
2539 |
esac |
|
2540 |
rm -f conftest.make |
|
2541 |
fi |
|
2542 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
|
2543 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
2544 |
$as_echo "yes" >&6; } |
|
2545 |
SET_MAKE= |
|
2546 |
else |
|
2547 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2548 |
$as_echo "no" >&6; } |
|
2549 |
SET_MAKE="MAKE=${MAKE-make}" |
|
2550 |
fi |
|
2551 |
|
|
2552 |
rm -rf .tst 2>/dev/null |
|
2553 |
mkdir .tst 2>/dev/null |
|
2554 |
if test -d .tst; then |
|
2555 |
am__leading_dot=. |
|
2556 |
else |
|
2557 |
am__leading_dot=_ |
|
2558 |
fi |
|
2559 |
rmdir .tst 2>/dev/null |
|
2560 |
|
|
2561 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
|
2562 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
|
2563 |
# is not polluted with repeated "-I." |
|
2564 |
am__isrc=' -I$(srcdir)' |
|
2565 |
# test to see if srcdir already configured |
|
2566 |
if test -f $srcdir/config.status; then |
|
2567 |
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
|
2568 |
fi |
|
2569 |
fi |
|
2570 |
|
|
2571 |
# test whether we have cygpath |
|
2572 |
if test -z "$CYGPATH_W"; then |
|
2573 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
|
2574 |
CYGPATH_W='cygpath -w' |
|
2575 |
else |
|
2576 |
CYGPATH_W=echo |
|
2577 |
fi |
|
2578 |
fi |
|
2579 |
|
|
2580 |
|
|
2581 |
# Define the identity of the package. |
|
2582 |
PACKAGE='g4track_lib_dist' |
|
2583 |
VERSION='0.0.2' |
|
2584 |
|
|
2585 |
|
|
2586 |
cat >>confdefs.h <<_ACEOF |
|
2587 |
#define PACKAGE "$PACKAGE" |
|
2588 |
_ACEOF |
|
2589 |
|
|
2590 |
|
|
2591 |
cat >>confdefs.h <<_ACEOF |
|
2592 |
#define VERSION "$VERSION" |
|
2593 |
_ACEOF |
|
2594 |
|
|
2595 |
# Some tools Automake needs. |
|
2596 |
|
|
2597 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
|
2598 |
|
|
2599 |
|
|
2600 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
|
2601 |
|
|
2602 |
|
|
2603 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
|
2604 |
|
|
2605 |
|
|
2606 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
|
2607 |
|
|
2608 |
|
|
2609 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
|
2610 |
|
|
2611 |
# For better backward compatibility. To be removed once Automake 1.9.x |
|
2612 |
# dies out for good. For more background, see: |
|
2613 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
|
2614 |
# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
|
2615 |
mkdir_p='$(MKDIR_P)' |
|
2616 |
|
|
2617 |
# We need awk for the "check" target. The system "awk" is bad on |
|
2618 |
# some platforms. |
|
2619 |
# Always define AMTAR for backward compatibility. Yes, it's still used |
|
2620 |
# in the wild :-( We should find a proper way to deprecate it ... |
|
2621 |
AMTAR='$${TAR-tar}' |
|
2622 |
|
|
2623 |
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
|
2624 |
|
|
2625 |
|
|
2626 |
|
|
2627 |
|
|
2628 |
|
|
2629 |
|
|
2630 |
case `pwd` in |
|
2631 |
*\ * | *\ *) |
|
2632 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
|
2633 |
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
|
2634 |
esac |
|
2635 |
|
|
2636 |
|
|
2637 |
|
|
2638 |
macro_version='2.4.2' |
|
2639 |
macro_revision='1.3337' |
|
2640 |
|
|
2641 |
|
|
2642 |
|
|
2643 |
|
|
2644 |
|
|
2645 |
|
|
2646 |
|
|
2647 |
|
|
2648 |
|
|
2649 |
|
|
2650 |
|
|
2651 |
|
|
2652 |
|
|
2653 |
ltmain="$ac_aux_dir/ltmain.sh" |
|
2654 |
|
|
2655 |
# Make sure we can run config.sub. |
|
2656 |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
|
2657 |
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
|
2658 |
|
|
2659 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
|
2660 |
$as_echo_n "checking build system type... " >&6; } |
|
2661 |
if ${ac_cv_build+:} false; then : |
|
2662 |
$as_echo_n "(cached) " >&6 |
|
2663 |
else |
|
2664 |
ac_build_alias=$build_alias |
|
2665 |
test "x$ac_build_alias" = x && |
|
2666 |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
|
2667 |
test "x$ac_build_alias" = x && |
|
2668 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
|
2669 |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
|
2670 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
|
2671 |
|
|
2672 |
fi |
|
2673 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
|
2674 |
$as_echo "$ac_cv_build" >&6; } |
|
2675 |
case $ac_cv_build in |
|
2676 |
*-*-*) ;; |
|
2677 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
|
2678 |
esac |
|
2679 |
build=$ac_cv_build |
|
2680 |
ac_save_IFS=$IFS; IFS='-' |
|
2681 |
set x $ac_cv_build |
|
2682 |
shift |
|
2683 |
build_cpu=$1 |
|
2684 |
build_vendor=$2 |
|
2685 |
shift; shift |
|
2686 |
# Remember, the first character of IFS is used to create $*, |
|
2687 |
# except with old shells: |
|
2688 |
build_os=$* |
|
2689 |
IFS=$ac_save_IFS |
|
2690 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
|
2691 |
|
|
2692 |
|
|
2693 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
|
2694 |
$as_echo_n "checking host system type... " >&6; } |
|
2695 |
if ${ac_cv_host+:} false; then : |
|
2696 |
$as_echo_n "(cached) " >&6 |
|
2697 |
else |
|
2698 |
if test "x$host_alias" = x; then |
|
2699 |
ac_cv_host=$ac_cv_build |
|
2700 |
else |
|
2701 |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
|
2702 |
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
|
2703 |
fi |
|
2704 |
|
|
2705 |
fi |
|
2706 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
|
2707 |
$as_echo "$ac_cv_host" >&6; } |
|
2708 |
case $ac_cv_host in |
|
2709 |
*-*-*) ;; |
|
2710 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
|
2711 |
esac |
|
2712 |
host=$ac_cv_host |
|
2713 |
ac_save_IFS=$IFS; IFS='-' |
|
2714 |
set x $ac_cv_host |
|
2715 |
shift |
|
2716 |
host_cpu=$1 |
|
2717 |
host_vendor=$2 |
|
2718 |
shift; shift |
|
2719 |
# Remember, the first character of IFS is used to create $*, |
|
2720 |
# except with old shells: |
|
2721 |
host_os=$* |
|
2722 |
IFS=$ac_save_IFS |
|
2723 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
|
2724 |
|
|
2725 |
|
|
2726 |
# Backslashify metacharacters that are still active within |
|
2727 |
# double-quoted strings. |
|
2728 |
sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
|
2729 |
|
|
2730 |
# Same as above, but do not quote variable references. |
|
2731 |
double_quote_subst='s/\(["`\\]\)/\\\1/g' |
|
2732 |
|
|
2733 |
# Sed substitution to delay expansion of an escaped shell variable in a |
|
2734 |
# double_quote_subst'ed string. |
|
2735 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
2736 |
|
|
2737 |
# Sed substitution to delay expansion of an escaped single quote. |
|
2738 |
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
|
2739 |
|
|
2740 |
# Sed substitution to avoid accidental globbing in evaled expressions |
|
2741 |
no_glob_subst='s/\*/\\\*/g' |
|
2742 |
|
|
2743 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
|
2744 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
|
2745 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
|
2746 |
|
|
2747 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
|
2748 |
$as_echo_n "checking how to print strings... " >&6; } |
|
2749 |
# Test print first, because it will be a builtin if present. |
|
2750 |
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
|
2751 |
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
|
2752 |
ECHO='print -r --' |
|
2753 |
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
|
2754 |
ECHO='printf %s\n' |
|
2755 |
else |
|
2756 |
# Use this function as a fallback that always works. |
|
2757 |
func_fallback_echo () |
|
2758 |
{ |
|
2759 |
eval 'cat <<_LTECHO_EOF |
|
2760 |
$1 |
|
2761 |
_LTECHO_EOF' |
|
2762 |
} |
|
2763 |
ECHO='func_fallback_echo' |
|
2764 |
fi |
|
2765 |
|
|
2766 |
# func_echo_all arg... |
|
2767 |
# Invoke $ECHO with all args, space-separated. |
|
2768 |
func_echo_all () |
|
2769 |
{ |
|
2770 |
$ECHO "" |
|
2771 |
} |
|
2772 |
|
|
2773 |
case "$ECHO" in |
|
2774 |
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
|
2775 |
$as_echo "printf" >&6; } ;; |
|
2776 |
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
|
2777 |
$as_echo "print -r" >&6; } ;; |
|
2778 |
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
|
2779 |
$as_echo "cat" >&6; } ;; |
|
2780 |
esac |
|
2781 |
|
|
2782 |
|
|
2783 |
|
|
2784 |
|
|
2785 |
|
|
2786 |
|
|
2787 |
|
|
2788 |
|
|
2789 |
|
|
2790 |
|
|
2791 |
|
|
2792 |
|
|
2793 |
|
|
2794 |
|
|
2795 |
DEPDIR="${am__leading_dot}deps" |
|
2796 |
|
|
2797 |
ac_config_commands="$ac_config_commands depfiles" |
|
2798 |
|
|
2799 |
|
|
2800 |
am_make=${MAKE-make} |
|
2801 |
cat > confinc << 'END' |
|
2802 |
am__doit: |
|
2803 |
@echo this is the am__doit target |
|
2804 |
.PHONY: am__doit |
|
2805 |
END |
|
2806 |
# If we don't find an include directive, just comment out the code. |
|
2807 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
|
2808 |
$as_echo_n "checking for style of include used by $am_make... " >&6; } |
|
2809 |
am__include="#" |
|
2810 |
am__quote= |
|
2811 |
_am_result=none |
|
2812 |
# First try GNU make style include. |
|
2813 |
echo "include confinc" > confmf |
|
2814 |
# Ignore all kinds of additional output from 'make'. |
|
2815 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
|
2816 |
*the\ am__doit\ target*) |
|
2817 |
am__include=include |
|
2818 |
am__quote= |
|
2819 |
_am_result=GNU |
|
2820 |
;; |
|
2821 |
esac |
|
2822 |
# Now try BSD make style include. |
|
2823 |
if test "$am__include" = "#"; then |
|
2824 |
echo '.include "confinc"' > confmf |
|
2825 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
|
2826 |
*the\ am__doit\ target*) |
|
2827 |
am__include=.include |
|
2828 |
am__quote="\"" |
|
2829 |
_am_result=BSD |
|
2830 |
;; |
|
2831 |
esac |
|
2832 |
fi |
|
2833 |
|
|
2834 |
|
|
2835 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
|
2836 |
$as_echo "$_am_result" >&6; } |
|
2837 |
rm -f confinc confmf |
|
2838 |
|
|
2839 |
# Check whether --enable-dependency-tracking was given. |
|
2840 |
if test "${enable_dependency_tracking+set}" = set; then : |
|
2841 |
enableval=$enable_dependency_tracking; |
|
2842 |
fi |
|
2843 |
|
|
2844 |
if test "x$enable_dependency_tracking" != xno; then |
|
2845 |
am_depcomp="$ac_aux_dir/depcomp" |
|
2846 |
AMDEPBACKSLASH='\' |
|
2847 |
am__nodep='_no' |
|
2848 |
fi |
|
2849 |
if test "x$enable_dependency_tracking" != xno; then |
|
2850 |
AMDEP_TRUE= |
|
2851 |
AMDEP_FALSE='#' |
|
2852 |
else |
|
2853 |
AMDEP_TRUE='#' |
|
2854 |
AMDEP_FALSE= |
|
2855 |
fi |
|
2856 |
|
|
2857 |
|
|
2858 |
ac_ext=c |
|
2859 |
ac_cpp='$CPP $CPPFLAGS' |
|
2860 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
2861 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
2862 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
2863 |
if test -n "$ac_tool_prefix"; then |
|
2864 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
|
2865 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|
2866 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
2867 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
2868 |
if ${ac_cv_prog_CC+:} false; then : |
|
2869 |
$as_echo_n "(cached) " >&6 |
|
2870 |
else |
|
2871 |
if test -n "$CC"; then |
|
2872 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2873 |
else |
|
2874 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2875 |
for as_dir in $PATH |
|
2876 |
do |
|
2877 |
IFS=$as_save_IFS |
|
2878 |
test -z "$as_dir" && as_dir=. |
|
2879 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2880 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2881 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
|
2882 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2883 |
break 2 |
|
2884 |
fi |
|
2885 |
done |
|
2886 |
done |
|
2887 |
IFS=$as_save_IFS |
|
2888 |
|
|
2889 |
fi |
|
2890 |
fi |
|
2891 |
CC=$ac_cv_prog_CC |
|
2892 |
if test -n "$CC"; then |
|
2893 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
2894 |
$as_echo "$CC" >&6; } |
|
2895 |
else |
|
2896 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2897 |
$as_echo "no" >&6; } |
|
2898 |
fi |
|
2899 |
|
|
2900 |
|
|
2901 |
fi |
|
2902 |
if test -z "$ac_cv_prog_CC"; then |
|
2903 |
ac_ct_CC=$CC |
|
2904 |
# Extract the first word of "gcc", so it can be a program name with args. |
|
2905 |
set dummy gcc; ac_word=$2 |
|
2906 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
2907 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
2908 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
|
2909 |
$as_echo_n "(cached) " >&6 |
|
2910 |
else |
|
2911 |
if test -n "$ac_ct_CC"; then |
|
2912 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
2913 |
else |
|
2914 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2915 |
for as_dir in $PATH |
|
2916 |
do |
|
2917 |
IFS=$as_save_IFS |
|
2918 |
test -z "$as_dir" && as_dir=. |
|
2919 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2920 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2921 |
ac_cv_prog_ac_ct_CC="gcc" |
|
2922 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2923 |
break 2 |
|
2924 |
fi |
|
2925 |
done |
|
2926 |
done |
|
2927 |
IFS=$as_save_IFS |
|
2928 |
|
|
2929 |
fi |
|
2930 |
fi |
|
2931 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
2932 |
if test -n "$ac_ct_CC"; then |
|
2933 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
2934 |
$as_echo "$ac_ct_CC" >&6; } |
|
2935 |
else |
|
2936 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2937 |
$as_echo "no" >&6; } |
|
2938 |
fi |
|
2939 |
|
|
2940 |
if test "x$ac_ct_CC" = x; then |
|
2941 |
CC="" |
|
2942 |
else |
|
2943 |
case $cross_compiling:$ac_tool_warned in |
|
2944 |
yes:) |
|
2945 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
2946 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
2947 |
ac_tool_warned=yes ;; |
|
2948 |
esac |
|
2949 |
CC=$ac_ct_CC |
|
2950 |
fi |
|
2951 |
else |
|
2952 |
CC="$ac_cv_prog_CC" |
|
2953 |
fi |
|
2954 |
|
|
2955 |
if test -z "$CC"; then |
|
2956 |
if test -n "$ac_tool_prefix"; then |
|
2957 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|
2958 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|
2959 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
2960 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
2961 |
if ${ac_cv_prog_CC+:} false; then : |
|
2962 |
$as_echo_n "(cached) " >&6 |
|
2963 |
else |
|
2964 |
if test -n "$CC"; then |
|
2965 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
2966 |
else |
|
2967 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2968 |
for as_dir in $PATH |
|
2969 |
do |
|
2970 |
IFS=$as_save_IFS |
|
2971 |
test -z "$as_dir" && as_dir=. |
|
2972 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2973 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
2974 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
|
2975 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2976 |
break 2 |
|
2977 |
fi |
|
2978 |
done |
|
2979 |
done |
|
2980 |
IFS=$as_save_IFS |
|
2981 |
|
|
2982 |
fi |
|
2983 |
fi |
|
2984 |
CC=$ac_cv_prog_CC |
|
2985 |
if test -n "$CC"; then |
|
2986 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
2987 |
$as_echo "$CC" >&6; } |
|
2988 |
else |
|
2989 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2990 |
$as_echo "no" >&6; } |
|
2991 |
fi |
|
2992 |
|
|
2993 |
|
|
2994 |
fi |
|
2995 |
fi |
|
2996 |
if test -z "$CC"; then |
|
2997 |
# Extract the first word of "cc", so it can be a program name with args. |
|
2998 |
set dummy cc; ac_word=$2 |
|
2999 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3000 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
3001 |
if ${ac_cv_prog_CC+:} false; then : |
|
3002 |
$as_echo_n "(cached) " >&6 |
|
3003 |
else |
|
3004 |
if test -n "$CC"; then |
|
3005 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
3006 |
else |
|
3007 |
ac_prog_rejected=no |
|
3008 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3009 |
for as_dir in $PATH |
|
3010 |
do |
|
3011 |
IFS=$as_save_IFS |
|
3012 |
test -z "$as_dir" && as_dir=. |
|
3013 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3014 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3015 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|
3016 |
ac_prog_rejected=yes |
|
3017 |
continue |
|
3018 |
fi |
|
3019 |
ac_cv_prog_CC="cc" |
|
3020 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3021 |
break 2 |
|
3022 |
fi |
|
3023 |
done |
|
3024 |
done |
|
3025 |
IFS=$as_save_IFS |
|
3026 |
|
|
3027 |
if test $ac_prog_rejected = yes; then |
|
3028 |
# We found a bogon in the path, so make sure we never use it. |
|
3029 |
set dummy $ac_cv_prog_CC |
|
3030 |
shift |
|
3031 |
if test $# != 0; then |
|
3032 |
# We chose a different compiler from the bogus one. |
|
3033 |
# However, it has the same basename, so the bogon will be chosen |
|
3034 |
# first if we set CC to just the basename; use the full file name. |
|
3035 |
shift |
|
3036 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|
3037 |
fi |
|
3038 |
fi |
|
3039 |
fi |
|
3040 |
fi |
|
3041 |
CC=$ac_cv_prog_CC |
|
3042 |
if test -n "$CC"; then |
|
3043 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
3044 |
$as_echo "$CC" >&6; } |
|
3045 |
else |
|
3046 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3047 |
$as_echo "no" >&6; } |
|
3048 |
fi |
|
3049 |
|
|
3050 |
|
|
3051 |
fi |
|
3052 |
if test -z "$CC"; then |
|
3053 |
if test -n "$ac_tool_prefix"; then |
|
3054 |
for ac_prog in cl.exe |
|
3055 |
do |
|
3056 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
3057 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
3058 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3059 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
3060 |
if ${ac_cv_prog_CC+:} false; then : |
|
3061 |
$as_echo_n "(cached) " >&6 |
|
3062 |
else |
|
3063 |
if test -n "$CC"; then |
|
3064 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
3065 |
else |
|
3066 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3067 |
for as_dir in $PATH |
|
3068 |
do |
|
3069 |
IFS=$as_save_IFS |
|
3070 |
test -z "$as_dir" && as_dir=. |
|
3071 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3072 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3073 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
|
3074 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3075 |
break 2 |
|
3076 |
fi |
|
3077 |
done |
|
3078 |
done |
|
3079 |
IFS=$as_save_IFS |
|
3080 |
|
|
3081 |
fi |
|
3082 |
fi |
|
3083 |
CC=$ac_cv_prog_CC |
|
3084 |
if test -n "$CC"; then |
|
3085 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
3086 |
$as_echo "$CC" >&6; } |
|
3087 |
else |
|
3088 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3089 |
$as_echo "no" >&6; } |
|
3090 |
fi |
|
3091 |
|
|
3092 |
|
|
3093 |
test -n "$CC" && break |
|
3094 |
done |
|
3095 |
fi |
|
3096 |
if test -z "$CC"; then |
|
3097 |
ac_ct_CC=$CC |
|
3098 |
for ac_prog in cl.exe |
|
3099 |
do |
|
3100 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
3101 |
set dummy $ac_prog; ac_word=$2 |
|
3102 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3103 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
3104 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
|
3105 |
$as_echo_n "(cached) " >&6 |
|
3106 |
else |
|
3107 |
if test -n "$ac_ct_CC"; then |
|
3108 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
3109 |
else |
|
3110 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3111 |
for as_dir in $PATH |
|
3112 |
do |
|
3113 |
IFS=$as_save_IFS |
|
3114 |
test -z "$as_dir" && as_dir=. |
|
3115 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3116 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
3117 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
|
3118 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3119 |
break 2 |
|
3120 |
fi |
|
3121 |
done |
|
3122 |
done |
|
3123 |
IFS=$as_save_IFS |
|
3124 |
|
|
3125 |
fi |
|
3126 |
fi |
|
3127 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
3128 |
if test -n "$ac_ct_CC"; then |
|
3129 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
3130 |
$as_echo "$ac_ct_CC" >&6; } |
|
3131 |
else |
|
3132 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3133 |
$as_echo "no" >&6; } |
|
3134 |
fi |
|
3135 |
|
|
3136 |
|
|
3137 |
test -n "$ac_ct_CC" && break |
|
3138 |
done |
|
3139 |
|
|
3140 |
if test "x$ac_ct_CC" = x; then |
|
3141 |
CC="" |
|
3142 |
else |
|
3143 |
case $cross_compiling:$ac_tool_warned in |
|
3144 |
yes:) |
|
3145 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
3146 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
3147 |
ac_tool_warned=yes ;; |
|
3148 |
esac |
|
3149 |
CC=$ac_ct_CC |
|
3150 |
fi |
|
3151 |
fi |
|
3152 |
|
|
3153 |
fi |
|
3154 |
|
|
3155 |
|
|
3156 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3157 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3158 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
|
3159 |
See \`config.log' for more details" "$LINENO" 5; } |
|
3160 |
|
|
3161 |
# Provide some information about the compiler. |
|
3162 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
|
3163 |
set X $ac_compile |
|
3164 |
ac_compiler=$2 |
|
3165 |
for ac_option in --version -v -V -qversion; do |
|
3166 |
{ { ac_try="$ac_compiler $ac_option >&5" |
|
3167 |
case "(($ac_try" in |
|
3168 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3169 |
*) ac_try_echo=$ac_try;; |
|
3170 |
esac |
|
3171 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3172 |
$as_echo "$ac_try_echo"; } >&5 |
|
3173 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
|
3174 |
ac_status=$? |
|
3175 |
if test -s conftest.err; then |
|
3176 |
sed '10a\ |
|
3177 |
... rest of stderr output deleted ... |
|
3178 |
10q' conftest.err >conftest.er1 |
|
3179 |
cat conftest.er1 >&5 |
|
3180 |
fi |
|
3181 |
rm -f conftest.er1 conftest.err |
|
3182 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3183 |
test $ac_status = 0; } |
|
3184 |
done |
|
3185 |
|
|
3186 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3187 |
/* end confdefs.h. */ |
|
3188 |
|
|
3189 |
int |
|
3190 |
main () |
|
3191 |
{ |
|
3192 |
|
|
3193 |
; |
|
3194 |
return 0; |
|
3195 |
} |
|
3196 |
_ACEOF |
|
3197 |
ac_clean_files_save=$ac_clean_files |
|
3198 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
|
3199 |
# Try to create an executable without -o first, disregard a.out. |
|
3200 |
# It will help us diagnose broken compilers, and finding out an intuition |
|
3201 |
# of exeext. |
|
3202 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
|
3203 |
$as_echo_n "checking whether the C compiler works... " >&6; } |
|
3204 |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
|
3205 |
|
|
3206 |
# The possible output files: |
|
3207 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
|
3208 |
|
|
3209 |
ac_rmfiles= |
|
3210 |
for ac_file in $ac_files |
|
3211 |
do |
|
3212 |
case $ac_file in |
|
3213 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
3214 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
3215 |
esac |
|
3216 |
done |
|
3217 |
rm -f $ac_rmfiles |
|
3218 |
|
|
3219 |
if { { ac_try="$ac_link_default" |
|
3220 |
case "(($ac_try" in |
|
3221 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3222 |
*) ac_try_echo=$ac_try;; |
|
3223 |
esac |
|
3224 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3225 |
$as_echo "$ac_try_echo"; } >&5 |
|
3226 |
(eval "$ac_link_default") 2>&5 |
|
3227 |
ac_status=$? |
|
3228 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3229 |
test $ac_status = 0; }; then : |
|
3230 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
|
3231 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
|
3232 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
|
3233 |
# so that the user can short-circuit this test for compilers unknown to |
|
3234 |
# Autoconf. |
|
3235 |
for ac_file in $ac_files '' |
|
3236 |
do |
|
3237 |
test -f "$ac_file" || continue |
|
3238 |
case $ac_file in |
|
3239 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
|
3240 |
;; |
|
3241 |
[ab].out ) |
|
3242 |
# We found the default executable, but exeext='' is most |
|
3243 |
# certainly right. |
|
3244 |
break;; |
|
3245 |
*.* ) |
|
3246 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
|
3247 |
then :; else |
|
3248 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
3249 |
fi |
|
3250 |
# We set ac_cv_exeext here because the later test for it is not |
|
3251 |
# safe: cross compilers may not add the suffix if given an `-o' |
|
3252 |
# argument, so we may need to know it at that point already. |
|
3253 |
# Even if this section looks crufty: it has the advantage of |
|
3254 |
# actually working. |
|
3255 |
break;; |
|
3256 |
* ) |
|
3257 |
break;; |
|
3258 |
esac |
|
3259 |
done |
|
3260 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
|
3261 |
|
|
3262 |
else |
|
3263 |
ac_file='' |
|
3264 |
fi |
|
3265 |
if test -z "$ac_file"; then : |
|
3266 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3267 |
$as_echo "no" >&6; } |
|
3268 |
$as_echo "$as_me: failed program was:" >&5 |
|
3269 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3270 |
|
|
3271 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3272 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3273 |
as_fn_error 77 "C compiler cannot create executables |
|
3274 |
See \`config.log' for more details" "$LINENO" 5; } |
|
3275 |
else |
|
3276 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
3277 |
$as_echo "yes" >&6; } |
|
3278 |
fi |
|
3279 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
|
3280 |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
|
3281 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
|
3282 |
$as_echo "$ac_file" >&6; } |
|
3283 |
ac_exeext=$ac_cv_exeext |
|
3284 |
|
|
3285 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
|
3286 |
ac_clean_files=$ac_clean_files_save |
|
3287 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
|
3288 |
$as_echo_n "checking for suffix of executables... " >&6; } |
|
3289 |
if { { ac_try="$ac_link" |
|
3290 |
case "(($ac_try" in |
|
3291 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3292 |
*) ac_try_echo=$ac_try;; |
|
3293 |
esac |
|
3294 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3295 |
$as_echo "$ac_try_echo"; } >&5 |
|
3296 |
(eval "$ac_link") 2>&5 |
|
3297 |
ac_status=$? |
|
3298 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3299 |
test $ac_status = 0; }; then : |
|
3300 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
|
3301 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
|
3302 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
|
3303 |
# `rm'. |
|
3304 |
for ac_file in conftest.exe conftest conftest.*; do |
|
3305 |
test -f "$ac_file" || continue |
|
3306 |
case $ac_file in |
|
3307 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
3308 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
3309 |
break;; |
|
3310 |
* ) break;; |
|
3311 |
esac |
|
3312 |
done |
|
3313 |
else |
|
3314 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3315 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3316 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
|
3317 |
See \`config.log' for more details" "$LINENO" 5; } |
|
3318 |
fi |
|
3319 |
rm -f conftest conftest$ac_cv_exeext |
|
3320 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
|
3321 |
$as_echo "$ac_cv_exeext" >&6; } |
|
3322 |
|
|
3323 |
rm -f conftest.$ac_ext |
|
3324 |
EXEEXT=$ac_cv_exeext |
|
3325 |
ac_exeext=$EXEEXT |
|
3326 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3327 |
/* end confdefs.h. */ |
|
3328 |
#include <stdio.h> |
|
3329 |
int |
|
3330 |
main () |
|
3331 |
{ |
|
3332 |
FILE *f = fopen ("conftest.out", "w"); |
|
3333 |
return ferror (f) || fclose (f) != 0; |
|
3334 |
|
|
3335 |
; |
|
3336 |
return 0; |
|
3337 |
} |
|
3338 |
_ACEOF |
|
3339 |
ac_clean_files="$ac_clean_files conftest.out" |
|
3340 |
# Check that the compiler produces executables we can run. If not, either |
|
3341 |
# the compiler is broken, or we cross compile. |
|
3342 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
|
3343 |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
|
3344 |
if test "$cross_compiling" != yes; then |
|
3345 |
{ { ac_try="$ac_link" |
|
3346 |
case "(($ac_try" in |
|
3347 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3348 |
*) ac_try_echo=$ac_try;; |
|
3349 |
esac |
|
3350 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3351 |
$as_echo "$ac_try_echo"; } >&5 |
|
3352 |
(eval "$ac_link") 2>&5 |
|
3353 |
ac_status=$? |
|
3354 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3355 |
test $ac_status = 0; } |
|
3356 |
if { ac_try='./conftest$ac_cv_exeext' |
|
3357 |
{ { case "(($ac_try" in |
|
3358 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3359 |
*) ac_try_echo=$ac_try;; |
|
3360 |
esac |
|
3361 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3362 |
$as_echo "$ac_try_echo"; } >&5 |
|
3363 |
(eval "$ac_try") 2>&5 |
|
3364 |
ac_status=$? |
|
3365 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3366 |
test $ac_status = 0; }; }; then |
|
3367 |
cross_compiling=no |
|
3368 |
else |
|
3369 |
if test "$cross_compiling" = maybe; then |
|
3370 |
cross_compiling=yes |
|
3371 |
else |
|
3372 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3373 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3374 |
as_fn_error $? "cannot run C compiled programs. |
|
3375 |
If you meant to cross compile, use \`--host'. |
|
3376 |
See \`config.log' for more details" "$LINENO" 5; } |
|
3377 |
fi |
|
3378 |
fi |
|
3379 |
fi |
|
3380 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
|
3381 |
$as_echo "$cross_compiling" >&6; } |
|
3382 |
|
|
3383 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
|
3384 |
ac_clean_files=$ac_clean_files_save |
|
3385 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
|
3386 |
$as_echo_n "checking for suffix of object files... " >&6; } |
|
3387 |
if ${ac_cv_objext+:} false; then : |
|
3388 |
$as_echo_n "(cached) " >&6 |
|
3389 |
else |
|
3390 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3391 |
/* end confdefs.h. */ |
|
3392 |
|
|
3393 |
int |
|
3394 |
main () |
|
3395 |
{ |
|
3396 |
|
|
3397 |
; |
|
3398 |
return 0; |
|
3399 |
} |
|
3400 |
_ACEOF |
|
3401 |
rm -f conftest.o conftest.obj |
|
3402 |
if { { ac_try="$ac_compile" |
|
3403 |
case "(($ac_try" in |
|
3404 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3405 |
*) ac_try_echo=$ac_try;; |
|
3406 |
esac |
|
3407 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3408 |
$as_echo "$ac_try_echo"; } >&5 |
|
3409 |
(eval "$ac_compile") 2>&5 |
|
3410 |
ac_status=$? |
|
3411 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3412 |
test $ac_status = 0; }; then : |
|
3413 |
for ac_file in conftest.o conftest.obj conftest.*; do |
|
3414 |
test -f "$ac_file" || continue; |
|
3415 |
case $ac_file in |
|
3416 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
|
3417 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|
3418 |
break;; |
|
3419 |
esac |
|
3420 |
done |
|
3421 |
else |
|
3422 |
$as_echo "$as_me: failed program was:" >&5 |
|
3423 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3424 |
|
|
3425 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3426 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3427 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
|
3428 |
See \`config.log' for more details" "$LINENO" 5; } |
|
3429 |
fi |
|
3430 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|
3431 |
fi |
|
3432 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
|
3433 |
$as_echo "$ac_cv_objext" >&6; } |
|
3434 |
OBJEXT=$ac_cv_objext |
|
3435 |
ac_objext=$OBJEXT |
|
3436 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
|
3437 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
|
3438 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
|
3439 |
$as_echo_n "(cached) " >&6 |
|
3440 |
else |
|
3441 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3442 |
/* end confdefs.h. */ |
|
3443 |
|
|
3444 |
int |
|
3445 |
main () |
|
3446 |
{ |
|
3447 |
#ifndef __GNUC__ |
|
3448 |
choke me |
|
3449 |
#endif |
|
3450 |
|
|
3451 |
; |
|
3452 |
return 0; |
|
3453 |
} |
|
3454 |
_ACEOF |
|
3455 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
3456 |
ac_compiler_gnu=yes |
|
3457 |
else |
|
3458 |
ac_compiler_gnu=no |
|
3459 |
fi |
|
3460 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3461 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
3462 |
|
|
3463 |
fi |
|
3464 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
|
3465 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
|
3466 |
if test $ac_compiler_gnu = yes; then |
|
3467 |
GCC=yes |
|
3468 |
else |
|
3469 |
GCC= |
|
3470 |
fi |
|
3471 |
ac_test_CFLAGS=${CFLAGS+set} |
|
3472 |
ac_save_CFLAGS=$CFLAGS |
|
3473 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
|
3474 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
|
3475 |
if ${ac_cv_prog_cc_g+:} false; then : |
|
3476 |
$as_echo_n "(cached) " >&6 |
|
3477 |
else |
|
3478 |
ac_save_c_werror_flag=$ac_c_werror_flag |
|
3479 |
ac_c_werror_flag=yes |
|
3480 |
ac_cv_prog_cc_g=no |
|
3481 |
CFLAGS="-g" |
|
3482 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3483 |
/* end confdefs.h. */ |
|
3484 |
|
|
3485 |
int |
|
3486 |
main () |
|
3487 |
{ |
|
3488 |
|
|
3489 |
; |
|
3490 |
return 0; |
|
3491 |
} |
|
3492 |
_ACEOF |
|
3493 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
3494 |
ac_cv_prog_cc_g=yes |
|
3495 |
else |
|
3496 |
CFLAGS="" |
|
3497 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3498 |
/* end confdefs.h. */ |
|
3499 |
|
|
3500 |
int |
|
3501 |
main () |
|
3502 |
{ |
|
3503 |
|
|
3504 |
; |
|
3505 |
return 0; |
|
3506 |
} |
|
3507 |
_ACEOF |
|
3508 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
3509 |
|
|
3510 |
else |
|
3511 |
ac_c_werror_flag=$ac_save_c_werror_flag |
|
3512 |
CFLAGS="-g" |
|
3513 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3514 |
/* end confdefs.h. */ |
|
3515 |
|
|
3516 |
int |
|
3517 |
main () |
|
3518 |
{ |
|
3519 |
|
|
3520 |
; |
|
3521 |
return 0; |
|
3522 |
} |
|
3523 |
_ACEOF |
|
3524 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
3525 |
ac_cv_prog_cc_g=yes |
|
3526 |
fi |
|
3527 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3528 |
fi |
|
3529 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3530 |
fi |
|
3531 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3532 |
ac_c_werror_flag=$ac_save_c_werror_flag |
|
3533 |
fi |
|
3534 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
|
3535 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
|
3536 |
if test "$ac_test_CFLAGS" = set; then |
|
3537 |
CFLAGS=$ac_save_CFLAGS |
|
3538 |
elif test $ac_cv_prog_cc_g = yes; then |
|
3539 |
if test "$GCC" = yes; then |
|
3540 |
CFLAGS="-g -O2" |
|
3541 |
else |
|
3542 |
CFLAGS="-g" |
|
3543 |
fi |
|
3544 |
else |
|
3545 |
if test "$GCC" = yes; then |
|
3546 |
CFLAGS="-O2" |
|
3547 |
else |
|
3548 |
CFLAGS= |
|
3549 |
fi |
|
3550 |
fi |
|
3551 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
|
3552 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
|
3553 |
if ${ac_cv_prog_cc_c89+:} false; then : |
|
3554 |
$as_echo_n "(cached) " >&6 |
|
3555 |
else |
|
3556 |
ac_cv_prog_cc_c89=no |
|
3557 |
ac_save_CC=$CC |
|
3558 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3559 |
/* end confdefs.h. */ |
|
3560 |
#include <stdarg.h> |
|
3561 |
#include <stdio.h> |
|
3562 |
struct stat; |
|
3563 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
3564 |
struct buf { int x; }; |
|
3565 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
3566 |
static char *e (p, i) |
|
3567 |
char **p; |
|
3568 |
int i; |
|
3569 |
{ |
|
3570 |
return p[i]; |
|
3571 |
} |
|
3572 |
static char *f (char * (*g) (char **, int), char **p, ...) |
|
3573 |
{ |
|
3574 |
char *s; |
|
3575 |
va_list v; |
|
3576 |
va_start (v,p); |
|
3577 |
s = g (p, va_arg (v,int)); |
|
3578 |
va_end (v); |
|
3579 |
return s; |
|
3580 |
} |
|
3581 |
|
|
3582 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
3583 |
function prototypes and stuff, but not '\xHH' hex character constants. |
|
3584 |
These don't provoke an error unfortunately, instead are silently treated |
|
3585 |
as 'x'. The following induces an error, until -std is added to get |
|
3586 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
3587 |
array size at least. It's necessary to write '\x00'==0 to get something |
|
3588 |
that's true only with -std. */ |
|
3589 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
3590 |
|
|
3591 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
3592 |
inside strings and character constants. */ |
|
3593 |
#define FOO(x) 'x' |
|
3594 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|
3595 |
|
|
3596 |
int test (int i, double x); |
|
3597 |
struct s1 {int (*f) (int a);}; |
|
3598 |
struct s2 {int (*f) (double a);}; |
|
3599 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
3600 |
int argc; |
|
3601 |
char **argv; |
|
3602 |
int |
|
3603 |
main () |
|
3604 |
{ |
|
3605 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
3606 |
; |
|
3607 |
return 0; |
|
3608 |
} |
|
3609 |
_ACEOF |
|
3610 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
|
3611 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
3612 |
do |
|
3613 |
CC="$ac_save_CC $ac_arg" |
|
3614 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
3615 |
ac_cv_prog_cc_c89=$ac_arg |
|
3616 |
fi |
|
3617 |
rm -f core conftest.err conftest.$ac_objext |
|
3618 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
|
3619 |
done |
|
3620 |
rm -f conftest.$ac_ext |
|
3621 |
CC=$ac_save_CC |
|
3622 |
|
|
3623 |
fi |
|
3624 |
# AC_CACHE_VAL |
|
3625 |
case "x$ac_cv_prog_cc_c89" in |
|
3626 |
x) |
|
3627 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
3628 |
$as_echo "none needed" >&6; } ;; |
|
3629 |
xno) |
|
3630 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
3631 |
$as_echo "unsupported" >&6; } ;; |
|
3632 |
*) |
|
3633 |
CC="$CC $ac_cv_prog_cc_c89" |
|
3634 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
|
3635 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
|
3636 |
esac |
|
3637 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
|
3638 |
|
|
3639 |
fi |
|
3640 |
|
|
3641 |
ac_ext=c |
|
3642 |
ac_cpp='$CPP $CPPFLAGS' |
|
3643 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3644 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3645 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3646 |
|
|
3647 |
depcc="$CC" am_compiler_list= |
|
3648 |
|
|
3649 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
|
3650 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
|
3651 |
if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
|
3652 |
$as_echo_n "(cached) " >&6 |
|
3653 |
else |
|
3654 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
3655 |
# We make a subdir and do the tests there. Otherwise we can end up |
|
3656 |
# making bogus files that we don't know about and never remove. For |
|
3657 |
# instance it was reported that on HP-UX the gcc test will end up |
|
3658 |
# making a dummy file named 'D' -- because '-MD' means "put the output |
|
3659 |
# in D". |
|
3660 |
rm -rf conftest.dir |
|
3661 |
mkdir conftest.dir |
|
3662 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
|
3663 |
# using a relative directory. |
|
3664 |
cp "$am_depcomp" conftest.dir |
|
3665 |
cd conftest.dir |
|
3666 |
# We will build objects and dependencies in a subdirectory because |
|
3667 |
# it helps to detect inapplicable dependency modes. For instance |
|
3668 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
|
3669 |
# side effect of compilation, but ICC will put the dependencies in |
|
3670 |
# the current directory while Tru64 will put them in the object |
|
3671 |
# directory. |
|
3672 |
mkdir sub |
|
3673 |
|
|
3674 |
am_cv_CC_dependencies_compiler_type=none |
|
3675 |
if test "$am_compiler_list" = ""; then |
|
3676 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
|
3677 |
fi |
|
3678 |
am__universal=false |
|
3679 |
case " $depcc " in #( |
|
3680 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
|
3681 |
esac |
|
3682 |
|
|
3683 |
for depmode in $am_compiler_list; do |
|
3684 |
# Setup a source with many dependencies, because some compilers |
|
3685 |
# like to wrap large dependency lists on column 80 (with \), and |
|
3686 |
# we should not choose a depcomp mode which is confused by this. |
|
3687 |
# |
|
3688 |
# We need to recreate these files for each test, as the compiler may |
|
3689 |
# overwrite some of them when testing with obscure command lines. |
|
3690 |
# This happens at least with the AIX C compiler. |
|
3691 |
: > sub/conftest.c |
|
3692 |
for i in 1 2 3 4 5 6; do |
|
3693 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
3694 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
|
3695 |
# Solaris 10 /bin/sh. |
|
3696 |
echo '/* dummy */' > sub/conftst$i.h |
|
3697 |
done |
|
3698 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
3699 |
|
|
3700 |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
|
3701 |
# mode. It turns out that the SunPro C++ compiler does not properly |
|
3702 |
# handle '-M -o', and we need to detect this. Also, some Intel |
|
3703 |
# versions had trouble with output in subdirs. |
|
3704 |
am__obj=sub/conftest.${OBJEXT-o} |
|
3705 |
am__minus_obj="-o $am__obj" |
|
3706 |
case $depmode in |
|
3707 |
gcc) |
|
3708 |
# This depmode causes a compiler race in universal mode. |
|
3709 |
test "$am__universal" = false || continue |
|
3710 |
;; |
|
3711 |
nosideeffect) |
|
3712 |
# After this tag, mechanisms are not by side-effect, so they'll |
|
3713 |
# only be used when explicitly requested. |
|
3714 |
if test "x$enable_dependency_tracking" = xyes; then |
|
3715 |
continue |
|
3716 |
else |
|
3717 |
break |
|
3718 |
fi |
|
3719 |
;; |
|
3720 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
|
3721 |
# This compiler won't grok '-c -o', but also, the minuso test has |
|
3722 |
# not run yet. These depmodes are late enough in the game, and |
|
3723 |
# so weak that their functioning should not be impacted. |
|
3724 |
am__obj=conftest.${OBJEXT-o} |
|
3725 |
am__minus_obj= |
|
3726 |
;; |
|
3727 |
none) break ;; |
|
3728 |
esac |
|
3729 |
if depmode=$depmode \ |
|
3730 |
source=sub/conftest.c object=$am__obj \ |
|
3731 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
3732 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
|
3733 |
>/dev/null 2>conftest.err && |
|
3734 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
|
3735 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
3736 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
|
3737 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
3738 |
# icc doesn't choke on unknown options, it will just issue warnings |
|
3739 |
# or remarks (even with -Werror). So we grep stderr for any message |
|
3740 |
# that says an option was ignored or not supported. |
|
3741 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
|
3742 |
# icc: Command line warning: ignoring option '-M'; no argument required |
|
3743 |
# The diagnosis changed in icc 8.0: |
|
3744 |
# icc: Command line remark: option '-MP' not supported |
|
3745 |
if (grep 'ignoring option' conftest.err || |
|
3746 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
3747 |
am_cv_CC_dependencies_compiler_type=$depmode |
|
3748 |
break |
|
3749 |
fi |
|
3750 |
fi |
|
3751 |
done |
|
3752 |
|
|
3753 |
cd .. |
|
3754 |
rm -rf conftest.dir |
|
3755 |
else |
|
3756 |
am_cv_CC_dependencies_compiler_type=none |
|
3757 |
fi |
|
3758 |
|
|
3759 |
fi |
|
3760 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
|
3761 |
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
|
3762 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
|
3763 |
|
|
3764 |
if |
|
3765 |
test "x$enable_dependency_tracking" != xno \ |
|
3766 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
|
3767 |
am__fastdepCC_TRUE= |
|
3768 |
am__fastdepCC_FALSE='#' |
|
3769 |
else |
|
3770 |
am__fastdepCC_TRUE='#' |
|
3771 |
am__fastdepCC_FALSE= |
|
3772 |
fi |
|
3773 |
|
|
3774 |
|
|
3775 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
|
3776 |
$as_echo_n "checking for a sed that does not truncate output... " >&6; } |
|
3777 |
if ${ac_cv_path_SED+:} false; then : |
|
3778 |
$as_echo_n "(cached) " >&6 |
|
3779 |
else |
|
3780 |
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
|
3781 |
for ac_i in 1 2 3 4 5 6 7; do |
|
3782 |
ac_script="$ac_script$as_nl$ac_script" |
|
3783 |
done |
|
3784 |
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
|
3785 |
{ ac_script=; unset ac_script;} |
|
3786 |
if test -z "$SED"; then |
|
3787 |
ac_path_SED_found=false |
|
3788 |
# Loop through the user's path and test for each of PROGNAME-LIST |
|
3789 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3790 |
for as_dir in $PATH |
|
3791 |
do |
|
3792 |
IFS=$as_save_IFS |
|
3793 |
test -z "$as_dir" && as_dir=. |
|
3794 |
for ac_prog in sed gsed; do |
|
3795 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3796 |
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
|
3797 |
as_fn_executable_p "$ac_path_SED" || continue |
|
3798 |
# Check for GNU ac_path_SED and select it if it is found. |
|
3799 |
# Check for GNU $ac_path_SED |
|
3800 |
case `"$ac_path_SED" --version 2>&1` in |
|
3801 |
*GNU*) |
|
3802 |
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
|
3803 |
*) |
|
3804 |
ac_count=0 |
|
3805 |
$as_echo_n 0123456789 >"conftest.in" |
|
3806 |
while : |
|
3807 |
do |
|
3808 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
3809 |
mv "conftest.tmp" "conftest.in" |
|
3810 |
cp "conftest.in" "conftest.nl" |
|
3811 |
$as_echo '' >> "conftest.nl" |
|
3812 |
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
3813 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
3814 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
3815 |
if test $ac_count -gt ${ac_path_SED_max-0}; then |
|
3816 |
# Best one so far, save it but keep looking for a better one |
|
3817 |
ac_cv_path_SED="$ac_path_SED" |
|
3818 |
ac_path_SED_max=$ac_count |
|
3819 |
fi |
|
3820 |
# 10*(2^10) chars as input seems more than enough |
|
3821 |
test $ac_count -gt 10 && break |
|
3822 |
done |
|
3823 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
3824 |
esac |
|
3825 |
|
|
3826 |
$ac_path_SED_found && break 3 |
|
3827 |
done |
|
3828 |
done |
|
3829 |
done |
|
3830 |
IFS=$as_save_IFS |
|
3831 |
if test -z "$ac_cv_path_SED"; then |
|
3832 |
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
|
3833 |
fi |
|
3834 |
else |
|
3835 |
ac_cv_path_SED=$SED |
|
3836 |
fi |
|
3837 |
|
|
3838 |
fi |
|
3839 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
|
3840 |
$as_echo "$ac_cv_path_SED" >&6; } |
|
3841 |
SED="$ac_cv_path_SED" |
|
3842 |
rm -f conftest.sed |
|
3843 |
|
|
3844 |
test -z "$SED" && SED=sed |
|
3845 |
Xsed="$SED -e 1s/^X//" |
|
3846 |
|
|
3847 |
|
|
3848 |
|
|
3849 |
|
|
3850 |
|
|
3851 |
|
|
3852 |
|
|
3853 |
|
|
3854 |
|
|
3855 |
|
|
3856 |
|
|
3857 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
|
3858 |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
|
3859 |
if ${ac_cv_path_GREP+:} false; then : |
|
3860 |
$as_echo_n "(cached) " >&6 |
|
3861 |
else |
|
3862 |
if test -z "$GREP"; then |
|
3863 |
ac_path_GREP_found=false |
|
3864 |
# Loop through the user's path and test for each of PROGNAME-LIST |
|
3865 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3866 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
3867 |
do |
|
3868 |
IFS=$as_save_IFS |
|
3869 |
test -z "$as_dir" && as_dir=. |
|
3870 |
for ac_prog in grep ggrep; do |
|
3871 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3872 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
|
3873 |
as_fn_executable_p "$ac_path_GREP" || continue |
|
3874 |
# Check for GNU ac_path_GREP and select it if it is found. |
|
3875 |
# Check for GNU $ac_path_GREP |
|
3876 |
case `"$ac_path_GREP" --version 2>&1` in |
|
3877 |
*GNU*) |
|
3878 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|
3879 |
*) |
|
3880 |
ac_count=0 |
|
3881 |
$as_echo_n 0123456789 >"conftest.in" |
|
3882 |
while : |
|
3883 |
do |
|
3884 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
3885 |
mv "conftest.tmp" "conftest.in" |
|
3886 |
cp "conftest.in" "conftest.nl" |
|
3887 |
$as_echo 'GREP' >> "conftest.nl" |
|
3888 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
3889 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
3890 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
3891 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|
3892 |
# Best one so far, save it but keep looking for a better one |
|
3893 |
ac_cv_path_GREP="$ac_path_GREP" |
|
3894 |
ac_path_GREP_max=$ac_count |
|
3895 |
fi |
|
3896 |
# 10*(2^10) chars as input seems more than enough |
|
3897 |
test $ac_count -gt 10 && break |
|
3898 |
done |
|
3899 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
3900 |
esac |
|
3901 |
|
|
3902 |
$ac_path_GREP_found && break 3 |
|
3903 |
done |
|
3904 |
done |
|
3905 |
done |
|
3906 |
IFS=$as_save_IFS |
|
3907 |
if test -z "$ac_cv_path_GREP"; then |
|
3908 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
3909 |
fi |
|
3910 |
else |
|
3911 |
ac_cv_path_GREP=$GREP |
|
3912 |
fi |
|
3913 |
|
|
3914 |
fi |
|
3915 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
|
3916 |
$as_echo "$ac_cv_path_GREP" >&6; } |
|
3917 |
GREP="$ac_cv_path_GREP" |
|
3918 |
|
|
3919 |
|
|
3920 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
|
3921 |
$as_echo_n "checking for egrep... " >&6; } |
|
3922 |
if ${ac_cv_path_EGREP+:} false; then : |
|
3923 |
$as_echo_n "(cached) " >&6 |
|
3924 |
else |
|
3925 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|
3926 |
then ac_cv_path_EGREP="$GREP -E" |
|
3927 |
else |
|
3928 |
if test -z "$EGREP"; then |
|
3929 |
ac_path_EGREP_found=false |
|
3930 |
# Loop through the user's path and test for each of PROGNAME-LIST |
|
3931 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3932 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
3933 |
do |
|
3934 |
IFS=$as_save_IFS |
|
3935 |
test -z "$as_dir" && as_dir=. |
|
3936 |
for ac_prog in egrep; do |
|
3937 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3938 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
3939 |
as_fn_executable_p "$ac_path_EGREP" || continue |
|
3940 |
# Check for GNU ac_path_EGREP and select it if it is found. |
|
3941 |
# Check for GNU $ac_path_EGREP |
|
3942 |
case `"$ac_path_EGREP" --version 2>&1` in |
|
3943 |
*GNU*) |
|
3944 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|
3945 |
*) |
|
3946 |
ac_count=0 |
|
3947 |
$as_echo_n 0123456789 >"conftest.in" |
|
3948 |
while : |
|
3949 |
do |
|
3950 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
3951 |
mv "conftest.tmp" "conftest.in" |
|
3952 |
cp "conftest.in" "conftest.nl" |
|
3953 |
$as_echo 'EGREP' >> "conftest.nl" |
|
3954 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
3955 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
3956 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
3957 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|
3958 |
# Best one so far, save it but keep looking for a better one |
|
3959 |
ac_cv_path_EGREP="$ac_path_EGREP" |
|
3960 |
ac_path_EGREP_max=$ac_count |
|
3961 |
fi |
|
3962 |
# 10*(2^10) chars as input seems more than enough |
|
3963 |
test $ac_count -gt 10 && break |
|
3964 |
done |
|
3965 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
3966 |
esac |
|
3967 |
|
|
3968 |
$ac_path_EGREP_found && break 3 |
|
3969 |
done |
|
3970 |
done |
|
3971 |
done |
|
3972 |
IFS=$as_save_IFS |
|
3973 |
if test -z "$ac_cv_path_EGREP"; then |
|
3974 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
3975 |
fi |
|
3976 |
else |
|
3977 |
ac_cv_path_EGREP=$EGREP |
|
3978 |
fi |
|
3979 |
|
|
3980 |
fi |
|
3981 |
fi |
|
3982 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
|
3983 |
$as_echo "$ac_cv_path_EGREP" >&6; } |
|
3984 |
EGREP="$ac_cv_path_EGREP" |
|
3985 |
|
|
3986 |
|
|
3987 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
|
3988 |
$as_echo_n "checking for fgrep... " >&6; } |
|
3989 |
if ${ac_cv_path_FGREP+:} false; then : |
|
3990 |
$as_echo_n "(cached) " >&6 |
|
3991 |
else |
|
3992 |
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
|
3993 |
then ac_cv_path_FGREP="$GREP -F" |
|
3994 |
else |
|
3995 |
if test -z "$FGREP"; then |
|
3996 |
ac_path_FGREP_found=false |
|
3997 |
# Loop through the user's path and test for each of PROGNAME-LIST |
|
3998 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3999 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
4000 |
do |
|
4001 |
IFS=$as_save_IFS |
|
4002 |
test -z "$as_dir" && as_dir=. |
|
4003 |
for ac_prog in fgrep; do |
|
4004 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4005 |
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
4006 |
as_fn_executable_p "$ac_path_FGREP" || continue |
|
4007 |
# Check for GNU ac_path_FGREP and select it if it is found. |
|
4008 |
# Check for GNU $ac_path_FGREP |
|
4009 |
case `"$ac_path_FGREP" --version 2>&1` in |
|
4010 |
*GNU*) |
|
4011 |
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
|
4012 |
*) |
|
4013 |
ac_count=0 |
|
4014 |
$as_echo_n 0123456789 >"conftest.in" |
|
4015 |
while : |
|
4016 |
do |
|
4017 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
4018 |
mv "conftest.tmp" "conftest.in" |
|
4019 |
cp "conftest.in" "conftest.nl" |
|
4020 |
$as_echo 'FGREP' >> "conftest.nl" |
|
4021 |
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
4022 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
4023 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
4024 |
if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
|
4025 |
# Best one so far, save it but keep looking for a better one |
|
4026 |
ac_cv_path_FGREP="$ac_path_FGREP" |
|
4027 |
ac_path_FGREP_max=$ac_count |
|
4028 |
fi |
|
4029 |
# 10*(2^10) chars as input seems more than enough |
|
4030 |
test $ac_count -gt 10 && break |
|
4031 |
done |
|
4032 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
4033 |
esac |
|
4034 |
|
|
4035 |
$ac_path_FGREP_found && break 3 |
|
4036 |
done |
|
4037 |
done |
|
4038 |
done |
|
4039 |
IFS=$as_save_IFS |
|
4040 |
if test -z "$ac_cv_path_FGREP"; then |
|
4041 |
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
4042 |
fi |
|
4043 |
else |
|
4044 |
ac_cv_path_FGREP=$FGREP |
|
4045 |
fi |
|
4046 |
|
|
4047 |
fi |
|
4048 |
fi |
|
4049 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
|
4050 |
$as_echo "$ac_cv_path_FGREP" >&6; } |
|
4051 |
FGREP="$ac_cv_path_FGREP" |
|
4052 |
|
|
4053 |
|
|
4054 |
test -z "$GREP" && GREP=grep |
|
4055 |
|
|
4056 |
|
|
4057 |
|
|
4058 |
|
|
4059 |
|
|
4060 |
|
|
4061 |
|
|
4062 |
|
|
4063 |
|
|
4064 |
|
|
4065 |
|
|
4066 |
|
|
4067 |
|
|
4068 |
|
|
4069 |
|
|
4070 |
|
|
4071 |
|
|
4072 |
|
|
4073 |
|
|
4074 |
# Check whether --with-gnu-ld was given. |
|
4075 |
if test "${with_gnu_ld+set}" = set; then : |
|
4076 |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
|
4077 |
else |
|
4078 |
with_gnu_ld=no |
|
4079 |
fi |
|
4080 |
|
|
4081 |
ac_prog=ld |
|
4082 |
if test "$GCC" = yes; then |
|
4083 |
# Check if gcc -print-prog-name=ld gives a path. |
|
4084 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
|
4085 |
$as_echo_n "checking for ld used by $CC... " >&6; } |
|
4086 |
case $host in |
|
4087 |
*-*-mingw*) |
|
4088 |
# gcc leaves a trailing carriage return which upsets mingw |
|
4089 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
4090 |
*) |
|
4091 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
4092 |
esac |
|
4093 |
case $ac_prog in |
|
4094 |
# Accept absolute paths. |
|
4095 |
[\\/]* | ?:[\\/]*) |
|
4096 |
re_direlt='/[^/][^/]*/\.\./' |
|
4097 |
# Canonicalize the pathname of ld |
|
4098 |
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
|
4099 |
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
|
4100 |
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
|
4101 |
done |
|
4102 |
test -z "$LD" && LD="$ac_prog" |
|
4103 |
;; |
|
4104 |
"") |
|
4105 |
# If it fails, then pretend we aren't using GCC. |
|
4106 |
ac_prog=ld |
|
4107 |
;; |
|
4108 |
*) |
|
4109 |
# If it is relative, then search for the first ld in PATH. |
|
4110 |
with_gnu_ld=unknown |
|
4111 |
;; |
|
4112 |
esac |
|
4113 |
elif test "$with_gnu_ld" = yes; then |
|
4114 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
|
4115 |
$as_echo_n "checking for GNU ld... " >&6; } |
|
4116 |
else |
|
4117 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
|
4118 |
$as_echo_n "checking for non-GNU ld... " >&6; } |
|
4119 |
fi |
|
4120 |
if ${lt_cv_path_LD+:} false; then : |
|
4121 |
$as_echo_n "(cached) " >&6 |
|
4122 |
else |
|
4123 |
if test -z "$LD"; then |
|
4124 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
4125 |
for ac_dir in $PATH; do |
|
4126 |
IFS="$lt_save_ifs" |
|
4127 |
test -z "$ac_dir" && ac_dir=. |
|
4128 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
4129 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
|
4130 |
# Check to see if the program is GNU ld. I'd rather use --version, |
|
4131 |
# but apparently some variants of GNU ld only accept -v. |
|
4132 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
|
4133 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
|
4134 |
*GNU* | *'with BFD'*) |
|
4135 |
test "$with_gnu_ld" != no && break |
|
4136 |
;; |
|
4137 |
*) |
|
4138 |
test "$with_gnu_ld" != yes && break |
|
4139 |
;; |
|
4140 |
esac |
|
4141 |
fi |
|
4142 |
done |
|
4143 |
IFS="$lt_save_ifs" |
|
4144 |
else |
|
4145 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
4146 |
fi |
|
4147 |
fi |
|
4148 |
|
|
4149 |
LD="$lt_cv_path_LD" |
|
4150 |
if test -n "$LD"; then |
|
4151 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
|
4152 |
$as_echo "$LD" >&6; } |
|
4153 |
else |
|
4154 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4155 |
$as_echo "no" >&6; } |
|
4156 |
fi |
|
4157 |
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
|
4158 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
|
4159 |
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
|
4160 |
if ${lt_cv_prog_gnu_ld+:} false; then : |
|
4161 |
$as_echo_n "(cached) " >&6 |
|
4162 |
else |
|
4163 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
|
4164 |
case `$LD -v 2>&1 </dev/null` in |
|
4165 |
*GNU* | *'with BFD'*) |
|
4166 |
lt_cv_prog_gnu_ld=yes |
|
4167 |
;; |
|
4168 |
*) |
|
4169 |
lt_cv_prog_gnu_ld=no |
|
4170 |
;; |
|
4171 |
esac |
|
4172 |
fi |
|
4173 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
|
4174 |
$as_echo "$lt_cv_prog_gnu_ld" >&6; } |
|
4175 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
|
4176 |
|
|
4177 |
|
|
4178 |
|
|
4179 |
|
|
4180 |
|
|
4181 |
|
|
4182 |
|
|
4183 |
|
|
4184 |
|
|
4185 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
|
4186 |
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
|
4187 |
if ${lt_cv_path_NM+:} false; then : |
|
4188 |
$as_echo_n "(cached) " >&6 |
|
4189 |
else |
|
4190 |
if test -n "$NM"; then |
|
4191 |
# Let the user override the test. |
|
4192 |
lt_cv_path_NM="$NM" |
|
4193 |
else |
|
4194 |
lt_nm_to_check="${ac_tool_prefix}nm" |
|
4195 |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
|
4196 |
lt_nm_to_check="$lt_nm_to_check nm" |
|
4197 |
fi |
|
4198 |
for lt_tmp_nm in $lt_nm_to_check; do |
|
4199 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
4200 |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
|
4201 |
IFS="$lt_save_ifs" |
|
4202 |
test -z "$ac_dir" && ac_dir=. |
|
4203 |
tmp_nm="$ac_dir/$lt_tmp_nm" |
|
4204 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
|
4205 |
# Check to see if the nm accepts a BSD-compat flag. |
|
4206 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
|
4207 |
# nm: unknown option "B" ignored |
|
4208 |
# Tru64's nm complains that /dev/null is an invalid object file |
|
4209 |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
|
4210 |
*/dev/null* | *'Invalid file or object type'*) |
|
4211 |
lt_cv_path_NM="$tmp_nm -B" |
|
4212 |
break |
|
4213 |
;; |
|
4214 |
*) |
|
4215 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
|
4216 |
*/dev/null*) |
|
4217 |
lt_cv_path_NM="$tmp_nm -p" |
|
4218 |
break |
|
4219 |
;; |
|
4220 |
*) |
|
4221 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
|
4222 |
continue # so that we can try to find one that supports BSD flags |
|
4223 |
;; |
|
4224 |
esac |
|
4225 |
;; |
|
4226 |
esac |
|
4227 |
fi |
|
4228 |
done |
|
4229 |
IFS="$lt_save_ifs" |
|
4230 |
done |
|
4231 |
: ${lt_cv_path_NM=no} |
|
4232 |
fi |
|
4233 |
fi |
|
4234 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
|
4235 |
$as_echo "$lt_cv_path_NM" >&6; } |
|
4236 |
if test "$lt_cv_path_NM" != "no"; then |
|
4237 |
NM="$lt_cv_path_NM" |
|
4238 |
else |
|
4239 |
# Didn't find any BSD compatible name lister, look for dumpbin. |
|
4240 |
if test -n "$DUMPBIN"; then : |
|
4241 |
# Let the user override the test. |
|
4242 |
else |
|
4243 |
if test -n "$ac_tool_prefix"; then |
|
4244 |
for ac_prog in dumpbin "link -dump" |
|
4245 |
do |
|
4246 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
4247 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
4248 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4249 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
4250 |
if ${ac_cv_prog_DUMPBIN+:} false; then : |
|
4251 |
$as_echo_n "(cached) " >&6 |
|
4252 |
else |
|
4253 |
if test -n "$DUMPBIN"; then |
|
4254 |
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
|
4255 |
else |
|
4256 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4257 |
for as_dir in $PATH |
|
4258 |
do |
|
4259 |
IFS=$as_save_IFS |
|
4260 |
test -z "$as_dir" && as_dir=. |
|
4261 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4262 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4263 |
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
|
4264 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4265 |
break 2 |
|
4266 |
fi |
|
4267 |
done |
|
4268 |
done |
|
4269 |
IFS=$as_save_IFS |
|
4270 |
|
|
4271 |
fi |
|
4272 |
fi |
|
4273 |
DUMPBIN=$ac_cv_prog_DUMPBIN |
|
4274 |
if test -n "$DUMPBIN"; then |
|
4275 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
|
4276 |
$as_echo "$DUMPBIN" >&6; } |
|
4277 |
else |
|
4278 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4279 |
$as_echo "no" >&6; } |
|
4280 |
fi |
|
4281 |
|
|
4282 |
|
|
4283 |
test -n "$DUMPBIN" && break |
|
4284 |
done |
|
4285 |
fi |
|
4286 |
if test -z "$DUMPBIN"; then |
|
4287 |
ac_ct_DUMPBIN=$DUMPBIN |
|
4288 |
for ac_prog in dumpbin "link -dump" |
|
4289 |
do |
|
4290 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
4291 |
set dummy $ac_prog; ac_word=$2 |
|
4292 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4293 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
4294 |
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
|
4295 |
$as_echo_n "(cached) " >&6 |
|
4296 |
else |
|
4297 |
if test -n "$ac_ct_DUMPBIN"; then |
|
4298 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
|
4299 |
else |
|
4300 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4301 |
for as_dir in $PATH |
|
4302 |
do |
|
4303 |
IFS=$as_save_IFS |
|
4304 |
test -z "$as_dir" && as_dir=. |
|
4305 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4306 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4307 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
|
4308 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4309 |
break 2 |
|
4310 |
fi |
|
4311 |
done |
|
4312 |
done |
|
4313 |
IFS=$as_save_IFS |
|
4314 |
|
|
4315 |
fi |
|
4316 |
fi |
|
4317 |
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
|
4318 |
if test -n "$ac_ct_DUMPBIN"; then |
|
4319 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
|
4320 |
$as_echo "$ac_ct_DUMPBIN" >&6; } |
|
4321 |
else |
|
4322 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4323 |
$as_echo "no" >&6; } |
|
4324 |
fi |
|
4325 |
|
|
4326 |
|
|
4327 |
test -n "$ac_ct_DUMPBIN" && break |
|
4328 |
done |
|
4329 |
|
|
4330 |
if test "x$ac_ct_DUMPBIN" = x; then |
|
4331 |
DUMPBIN=":" |
|
4332 |
else |
|
4333 |
case $cross_compiling:$ac_tool_warned in |
|
4334 |
yes:) |
|
4335 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
4336 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
4337 |
ac_tool_warned=yes ;; |
|
4338 |
esac |
|
4339 |
DUMPBIN=$ac_ct_DUMPBIN |
|
4340 |
fi |
|
4341 |
fi |
|
4342 |
|
|
4343 |
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
|
4344 |
*COFF*) |
|
4345 |
DUMPBIN="$DUMPBIN -symbols" |
|
4346 |
;; |
|
4347 |
*) |
|
4348 |
DUMPBIN=: |
|
4349 |
;; |
|
4350 |
esac |
|
4351 |
fi |
|
4352 |
|
|
4353 |
if test "$DUMPBIN" != ":"; then |
|
4354 |
NM="$DUMPBIN" |
|
4355 |
fi |
|
4356 |
fi |
|
4357 |
test -z "$NM" && NM=nm |
|
4358 |
|
|
4359 |
|
|
4360 |
|
|
4361 |
|
|
4362 |
|
|
4363 |
|
|
4364 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
|
4365 |
$as_echo_n "checking the name lister ($NM) interface... " >&6; } |
|
4366 |
if ${lt_cv_nm_interface+:} false; then : |
|
4367 |
$as_echo_n "(cached) " >&6 |
|
4368 |
else |
|
4369 |
lt_cv_nm_interface="BSD nm" |
|
4370 |
echo "int some_variable = 0;" > conftest.$ac_ext |
|
4371 |
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
|
4372 |
(eval "$ac_compile" 2>conftest.err) |
|
4373 |
cat conftest.err >&5 |
|
4374 |
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
|
4375 |
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
|
4376 |
cat conftest.err >&5 |
|
4377 |
(eval echo "\"\$as_me:$LINENO: output\"" >&5) |
|
4378 |
cat conftest.out >&5 |
|
4379 |
if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
|
4380 |
lt_cv_nm_interface="MS dumpbin" |
|
4381 |
fi |
|
4382 |
rm -f conftest* |
|
4383 |
fi |
|
4384 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
|
4385 |
$as_echo "$lt_cv_nm_interface" >&6; } |
|
4386 |
|
|
4387 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
|
4388 |
$as_echo_n "checking whether ln -s works... " >&6; } |
|
4389 |
LN_S=$as_ln_s |
|
4390 |
if test "$LN_S" = "ln -s"; then |
|
4391 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
4392 |
$as_echo "yes" >&6; } |
|
4393 |
else |
|
4394 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
|
4395 |
$as_echo "no, using $LN_S" >&6; } |
|
4396 |
fi |
|
4397 |
|
|
4398 |
# find the maximum length of command line arguments |
|
4399 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
|
4400 |
$as_echo_n "checking the maximum length of command line arguments... " >&6; } |
|
4401 |
if ${lt_cv_sys_max_cmd_len+:} false; then : |
|
4402 |
$as_echo_n "(cached) " >&6 |
|
4403 |
else |
|
4404 |
i=0 |
|
4405 |
teststring="ABCD" |
|
4406 |
|
|
4407 |
case $build_os in |
|
4408 |
msdosdjgpp*) |
|
4409 |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
|
4410 |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
|
4411 |
# during glob expansion). Even if it were fixed, the result of this |
|
4412 |
# check would be larger than it should be. |
|
4413 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
|
4414 |
;; |
|
4415 |
|
|
4416 |
gnu*) |
|
4417 |
# Under GNU Hurd, this test is not required because there is |
|
4418 |
# no limit to the length of command line arguments. |
|
4419 |
# Libtool will interpret -1 as no limit whatsoever |
|
4420 |
lt_cv_sys_max_cmd_len=-1; |
|
4421 |
;; |
|
4422 |
|
|
4423 |
cygwin* | mingw* | cegcc*) |
|
4424 |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
|
4425 |
# about 5 minutes as the teststring grows exponentially. |
|
4426 |
# Worse, since 9x/ME are not pre-emptively multitasking, |
|
4427 |
# you end up with a "frozen" computer, even though with patience |
|
4428 |
# the test eventually succeeds (with a max line length of 256k). |
|
4429 |
# Instead, let's just punt: use the minimum linelength reported by |
|
4430 |
# all of the supported platforms: 8192 (on NT/2K/XP). |
|
4431 |
lt_cv_sys_max_cmd_len=8192; |
|
4432 |
;; |
|
4433 |
|
|
4434 |
mint*) |
|
4435 |
# On MiNT this can take a long time and run out of memory. |
|
4436 |
lt_cv_sys_max_cmd_len=8192; |
|
4437 |
;; |
|
4438 |
|
|
4439 |
amigaos*) |
|
4440 |
# On AmigaOS with pdksh, this test takes hours, literally. |
|
4441 |
# So we just punt and use a minimum line length of 8192. |
|
4442 |
lt_cv_sys_max_cmd_len=8192; |
|
4443 |
;; |
|
4444 |
|
|
4445 |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
|
4446 |
# This has been around since 386BSD, at least. Likely further. |
|
4447 |
if test -x /sbin/sysctl; then |
|
4448 |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
|
4449 |
elif test -x /usr/sbin/sysctl; then |
|
4450 |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
|
4451 |
else |
|
4452 |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
|
4453 |
fi |
|
4454 |
# And add a safety zone |
|
4455 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
|
4456 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
|
4457 |
;; |
|
4458 |
|
|
4459 |
interix*) |
|
4460 |
# We know the value 262144 and hardcode it with a safety zone (like BSD) |
|
4461 |
lt_cv_sys_max_cmd_len=196608 |
|
4462 |
;; |
|
4463 |
|
|
4464 |
os2*) |
|
4465 |
# The test takes a long time on OS/2. |
|
4466 |
lt_cv_sys_max_cmd_len=8192 |
|
4467 |
;; |
|
4468 |
|
|
4469 |
osf*) |
|
4470 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
|
4471 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
|
4472 |
# nice to cause kernel panics so lets avoid the loop below. |
|
4473 |
# First set a reasonable default. |
|
4474 |
lt_cv_sys_max_cmd_len=16384 |
|
4475 |
# |
|
4476 |
if test -x /sbin/sysconfig; then |
|
4477 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
|
4478 |
*1*) lt_cv_sys_max_cmd_len=-1 ;; |
|
4479 |
esac |
|
4480 |
fi |
|
4481 |
;; |
|
4482 |
sco3.2v5*) |
|
4483 |
lt_cv_sys_max_cmd_len=102400 |
|
4484 |
;; |
|
4485 |
sysv5* | sco5v6* | sysv4.2uw2*) |
|
4486 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
|
4487 |
if test -n "$kargmax"; then |
|
4488 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
|
4489 |
else |
|
4490 |
lt_cv_sys_max_cmd_len=32768 |
|
4491 |
fi |
|
4492 |
;; |
|
4493 |
*) |
|
4494 |
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
|
4495 |
if test -n "$lt_cv_sys_max_cmd_len"; then |
|
4496 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
|
4497 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
|
4498 |
else |
|
4499 |
# Make teststring a little bigger before we do anything with it. |
|
4500 |
# a 1K string should be a reasonable start. |
|
4501 |
for i in 1 2 3 4 5 6 7 8 ; do |
|
4502 |
teststring=$teststring$teststring |
|
4503 |
done |
|
4504 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
|
4505 |
# If test is not a shell built-in, we'll probably end up computing a |
|
4506 |
# maximum length that is only half of the actual maximum length, but |
|
4507 |
# we can't tell. |
|
4508 |
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
|
4509 |
= "X$teststring$teststring"; } >/dev/null 2>&1 && |
|
4510 |
test $i != 17 # 1/2 MB should be enough |
|
4511 |
do |
|
4512 |
i=`expr $i + 1` |
|
4513 |
teststring=$teststring$teststring |
|
4514 |
done |
|
4515 |
# Only check the string length outside the loop. |
|
4516 |
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
|
4517 |
teststring= |
|
4518 |
# Add a significant safety factor because C++ compilers can tack on |
|
4519 |
# massive amounts of additional arguments before passing them to the |
|
4520 |
# linker. It appears as though 1/2 is a usable value. |
|
4521 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
|
4522 |
fi |
|
4523 |
;; |
|
4524 |
esac |
|
4525 |
|
|
4526 |
fi |
|
4527 |
|
|
4528 |
if test -n $lt_cv_sys_max_cmd_len ; then |
|
4529 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
|
4530 |
$as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
|
4531 |
else |
|
4532 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
|
4533 |
$as_echo "none" >&6; } |
|
4534 |
fi |
|
4535 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
|
4536 |
|
|
4537 |
|
|
4538 |
|
|
4539 |
|
|
4540 |
|
|
4541 |
|
|
4542 |
: ${CP="cp -f"} |
|
4543 |
: ${MV="mv -f"} |
|
4544 |
: ${RM="rm -f"} |
|
4545 |
|
|
4546 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
|
4547 |
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
|
4548 |
# Try some XSI features |
|
4549 |
xsi_shell=no |
|
4550 |
( _lt_dummy="a/b/c" |
|
4551 |
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
|
4552 |
= c,a/b,b/c, \ |
|
4553 |
&& eval 'test $(( 1 + 1 )) -eq 2 \ |
|
4554 |
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
|
4555 |
&& xsi_shell=yes |
|
4556 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
|
4557 |
$as_echo "$xsi_shell" >&6; } |
|
4558 |
|
|
4559 |
|
|
4560 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
|
4561 |
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
|
4562 |
lt_shell_append=no |
|
4563 |
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
|
4564 |
>/dev/null 2>&1 \ |
|
4565 |
&& lt_shell_append=yes |
|
4566 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
|
4567 |
$as_echo "$lt_shell_append" >&6; } |
|
4568 |
|
|
4569 |
|
|
4570 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
4571 |
lt_unset=unset |
|
4572 |
else |
|
4573 |
lt_unset=false |
|
4574 |
fi |
|
4575 |
|
|
4576 |
|
|
4577 |
|
|
4578 |
|
|
4579 |
|
|
4580 |
# test EBCDIC or ASCII |
|
4581 |
case `echo X|tr X '\101'` in |
|
4582 |
A) # ASCII based system |
|
4583 |
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
|
4584 |
lt_SP2NL='tr \040 \012' |
|
4585 |
lt_NL2SP='tr \015\012 \040\040' |
|
4586 |
;; |
|
4587 |
*) # EBCDIC based system |
|
4588 |
lt_SP2NL='tr \100 \n' |
|
4589 |
lt_NL2SP='tr \r\n \100\100' |
|
4590 |
;; |
|
4591 |
esac |
|
4592 |
|
|
4593 |
|
|
4594 |
|
|
4595 |
|
|
4596 |
|
|
4597 |
|
|
4598 |
|
|
4599 |
|
|
4600 |
|
|
4601 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
|
4602 |
$as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
|
4603 |
if ${lt_cv_to_host_file_cmd+:} false; then : |
|
4604 |
$as_echo_n "(cached) " >&6 |
|
4605 |
else |
|
4606 |
case $host in |
|
4607 |
*-*-mingw* ) |
|
4608 |
case $build in |
|
4609 |
*-*-mingw* ) # actually msys |
|
4610 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
|
4611 |
;; |
|
4612 |
*-*-cygwin* ) |
|
4613 |
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
|
4614 |
;; |
|
4615 |
* ) # otherwise, assume *nix |
|
4616 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
|
4617 |
;; |
|
4618 |
esac |
|
4619 |
;; |
|
4620 |
*-*-cygwin* ) |
|
4621 |
case $build in |
|
4622 |
*-*-mingw* ) # actually msys |
|
4623 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
|
4624 |
;; |
|
4625 |
*-*-cygwin* ) |
|
4626 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
|
4627 |
;; |
|
4628 |
* ) # otherwise, assume *nix |
|
4629 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
|
4630 |
;; |
|
4631 |
esac |
|
4632 |
;; |
|
4633 |
* ) # unhandled hosts (and "normal" native builds) |
|
4634 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
|
4635 |
;; |
|
4636 |
esac |
|
4637 |
|
|
4638 |
fi |
|
4639 |
|
|
4640 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
|
4641 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
|
4642 |
$as_echo "$lt_cv_to_host_file_cmd" >&6; } |
|
4643 |
|
|
4644 |
|
|
4645 |
|
|
4646 |
|
|
4647 |
|
|
4648 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
|
4649 |
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
|
4650 |
if ${lt_cv_to_tool_file_cmd+:} false; then : |
|
4651 |
$as_echo_n "(cached) " >&6 |
|
4652 |
else |
|
4653 |
#assume ordinary cross tools, or native build. |
|
4654 |
lt_cv_to_tool_file_cmd=func_convert_file_noop |
|
4655 |
case $host in |
|
4656 |
*-*-mingw* ) |
|
4657 |
case $build in |
|
4658 |
*-*-mingw* ) # actually msys |
|
4659 |
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
|
4660 |
;; |
|
4661 |
esac |
|
4662 |
;; |
|
4663 |
esac |
|
4664 |
|
|
4665 |
fi |
|
4666 |
|
|
4667 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
|
4668 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
|
4669 |
$as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
|
4670 |
|
|
4671 |
|
|
4672 |
|
|
4673 |
|
|
4674 |
|
|
4675 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
|
4676 |
$as_echo_n "checking for $LD option to reload object files... " >&6; } |
|
4677 |
if ${lt_cv_ld_reload_flag+:} false; then : |
|
4678 |
$as_echo_n "(cached) " >&6 |
|
4679 |
else |
|
4680 |
lt_cv_ld_reload_flag='-r' |
|
4681 |
fi |
|
4682 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
|
4683 |
$as_echo "$lt_cv_ld_reload_flag" >&6; } |
|
4684 |
reload_flag=$lt_cv_ld_reload_flag |
|
4685 |
case $reload_flag in |
|
4686 |
"" | " "*) ;; |
|
4687 |
*) reload_flag=" $reload_flag" ;; |
|
4688 |
esac |
|
4689 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
4690 |
case $host_os in |
|
4691 |
cygwin* | mingw* | pw32* | cegcc*) |
|
4692 |
if test "$GCC" != yes; then |
|
4693 |
reload_cmds=false |
|
4694 |
fi |
|
4695 |
;; |
|
4696 |
darwin*) |
|
4697 |
if test "$GCC" = yes; then |
|
4698 |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
|
4699 |
else |
|
4700 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
4701 |
fi |
|
4702 |
;; |
|
4703 |
esac |
|
4704 |
|
|
4705 |
|
|
4706 |
|
|
4707 |
|
|
4708 |
|
|
4709 |
|
|
4710 |
|
|
4711 |
|
|
4712 |
|
|
4713 |
if test -n "$ac_tool_prefix"; then |
|
4714 |
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
|
4715 |
set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
|
4716 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4717 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
4718 |
if ${ac_cv_prog_OBJDUMP+:} false; then : |
|
4719 |
$as_echo_n "(cached) " >&6 |
|
4720 |
else |
|
4721 |
if test -n "$OBJDUMP"; then |
|
4722 |
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
|
4723 |
else |
|
4724 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4725 |
for as_dir in $PATH |
|
4726 |
do |
|
4727 |
IFS=$as_save_IFS |
|
4728 |
test -z "$as_dir" && as_dir=. |
|
4729 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4730 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4731 |
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
|
4732 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4733 |
break 2 |
|
4734 |
fi |
|
4735 |
done |
|
4736 |
done |
|
4737 |
IFS=$as_save_IFS |
|
4738 |
|
|
4739 |
fi |
|
4740 |
fi |
|
4741 |
OBJDUMP=$ac_cv_prog_OBJDUMP |
|
4742 |
if test -n "$OBJDUMP"; then |
|
4743 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
|
4744 |
$as_echo "$OBJDUMP" >&6; } |
|
4745 |
else |
|
4746 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4747 |
$as_echo "no" >&6; } |
|
4748 |
fi |
|
4749 |
|
|
4750 |
|
|
4751 |
fi |
|
4752 |
if test -z "$ac_cv_prog_OBJDUMP"; then |
|
4753 |
ac_ct_OBJDUMP=$OBJDUMP |
|
4754 |
# Extract the first word of "objdump", so it can be a program name with args. |
|
4755 |
set dummy objdump; ac_word=$2 |
|
4756 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4757 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
4758 |
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
|
4759 |
$as_echo_n "(cached) " >&6 |
|
4760 |
else |
|
4761 |
if test -n "$ac_ct_OBJDUMP"; then |
|
4762 |
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
|
4763 |
else |
|
4764 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4765 |
for as_dir in $PATH |
|
4766 |
do |
|
4767 |
IFS=$as_save_IFS |
|
4768 |
test -z "$as_dir" && as_dir=. |
|
4769 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4770 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
4771 |
ac_cv_prog_ac_ct_OBJDUMP="objdump" |
|
4772 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4773 |
break 2 |
|
4774 |
fi |
|
4775 |
done |
|
4776 |
done |
|
4777 |
IFS=$as_save_IFS |
|
4778 |
|
|
4779 |
fi |
|
4780 |
fi |
|
4781 |
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
|
4782 |
if test -n "$ac_ct_OBJDUMP"; then |
|
4783 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
|
4784 |
$as_echo "$ac_ct_OBJDUMP" >&6; } |
|
4785 |
else |
|
4786 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4787 |
$as_echo "no" >&6; } |
|
4788 |
fi |
|
4789 |
|
|
4790 |
if test "x$ac_ct_OBJDUMP" = x; then |
|
4791 |
OBJDUMP="false" |
|
4792 |
else |
|
4793 |
case $cross_compiling:$ac_tool_warned in |
|
4794 |
yes:) |
|
4795 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
4796 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
4797 |
ac_tool_warned=yes ;; |
|
4798 |
esac |
|
4799 |
OBJDUMP=$ac_ct_OBJDUMP |
|
4800 |
fi |
|
4801 |
else |
|
4802 |
OBJDUMP="$ac_cv_prog_OBJDUMP" |
|
4803 |
fi |
|
4804 |
|
|
4805 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
|
4806 |
|
|
4807 |
|
|
4808 |
|
|
4809 |
|
|
4810 |
|
|
4811 |
|
|
4812 |
|
|
4813 |
|
|
4814 |
|
|
4815 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
|
4816 |
$as_echo_n "checking how to recognize dependent libraries... " >&6; } |
|
4817 |
if ${lt_cv_deplibs_check_method+:} false; then : |
|
4818 |
$as_echo_n "(cached) " >&6 |
|
4819 |
else |
|
4820 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
|
4821 |
lt_cv_file_magic_test_file= |
|
4822 |
lt_cv_deplibs_check_method='unknown' |
|
4823 |
# Need to set the preceding variable on all platforms that support |
|
4824 |
# interlibrary dependencies. |
|
4825 |
# 'none' -- dependencies not supported. |
|
4826 |
# `unknown' -- same as none, but documents that we really don't know. |
|
4827 |
# 'pass_all' -- all dependencies passed with no checks. |
|
4828 |
# 'test_compile' -- check by making test program. |
|
4829 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
|
4830 |
# which responds to the $file_magic_cmd with a given extended regex. |
|
4831 |
# If you have `file' or equivalent on your system and you're not sure |
|
4832 |
# whether `pass_all' will *always* work, you probably want this one. |
|
4833 |
|
|
4834 |
case $host_os in |
|
4835 |
aix[4-9]*) |
|
4836 |
lt_cv_deplibs_check_method=pass_all |
|
4837 |
;; |
|
4838 |
|
|
4839 |
beos*) |
|
4840 |
lt_cv_deplibs_check_method=pass_all |
|
4841 |
;; |
|
4842 |
|
|
4843 |
bsdi[45]*) |
|
4844 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
|
4845 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
4846 |
lt_cv_file_magic_test_file=/shlib/libc.so |
|
4847 |
;; |
|
4848 |
|
|
4849 |
cygwin*) |
|
4850 |
# func_win32_libid is a shell function defined in ltmain.sh |
|
4851 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
|
4852 |
lt_cv_file_magic_cmd='func_win32_libid' |
|
4853 |
;; |
|
4854 |
|
|
4855 |
mingw* | pw32*) |
|
4856 |
# Base MSYS/MinGW do not provide the 'file' command needed by |
|
4857 |
# func_win32_libid shell function, so use a weaker test based on 'objdump', |
|
4858 |
# unless we find 'file', for example because we are cross-compiling. |
|
4859 |
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
|
4860 |
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
|
4861 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
|
4862 |
lt_cv_file_magic_cmd='func_win32_libid' |
|
4863 |
else |
|
4864 |
# Keep this pattern in sync with the one in func_win32_libid. |
|
4865 |
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
|
4866 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
|
4867 |
fi |
|
4868 |
;; |
|
4869 |
|
|
4870 |
cegcc*) |
|
4871 |
# use the weaker test based on 'objdump'. See mingw*. |
|
4872 |
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
|
4873 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
|
4874 |
;; |
|
4875 |
|
|
4876 |
darwin* | rhapsody*) |
|
4877 |
lt_cv_deplibs_check_method=pass_all |
|
4878 |
;; |
|
4879 |
|
|
4880 |
freebsd* | dragonfly*) |
|
4881 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
|
4882 |
case $host_cpu in |
|
4883 |
i*86 ) |
|
4884 |
# Not sure whether the presence of OpenBSD here was a mistake. |
|
4885 |
# Let's accept both of them until this is cleared up. |
|
4886 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
|
4887 |
lt_cv_file_magic_cmd=/usr/bin/file |
|
4888 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
4889 |
;; |
|
4890 |
esac |
|
4891 |
else |
|
4892 |
lt_cv_deplibs_check_method=pass_all |
|
4893 |
fi |
|
4894 |
;; |
|
4895 |
|
|
4896 |
gnu*) |
|
4897 |
lt_cv_deplibs_check_method=pass_all |
|
4898 |
;; |
|
4899 |
|
|
4900 |
haiku*) |
|
4901 |
lt_cv_deplibs_check_method=pass_all |
|
4902 |
;; |
|
4903 |
|
|
4904 |
hpux10.20* | hpux11*) |
|
4905 |
lt_cv_file_magic_cmd=/usr/bin/file |
|
4906 |
case $host_cpu in |
|
4907 |
ia64*) |
|
4908 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
|
4909 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
|
4910 |
;; |
|
4911 |
hppa*64*) |
|
4912 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
|
4913 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
|
4914 |
;; |
|
4915 |
*) |
|
4916 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
|
4917 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
|
4918 |
;; |
|
4919 |
esac |
|
4920 |
;; |
|
4921 |
|
|
4922 |
interix[3-9]*) |
|
4923 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
|
4924 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
|
4925 |
;; |
|
4926 |
|
|
4927 |
irix5* | irix6* | nonstopux*) |
|
4928 |
case $LD in |
|
4929 |
*-32|*"-32 ") libmagic=32-bit;; |
|
4930 |
*-n32|*"-n32 ") libmagic=N32;; |
|
4931 |
*-64|*"-64 ") libmagic=64-bit;; |
|
4932 |
*) libmagic=never-match;; |
|
4933 |
esac |
|
4934 |
lt_cv_deplibs_check_method=pass_all |
|
4935 |
;; |
|
4936 |
|
|
4937 |
# This must be glibc/ELF. |
|
4938 |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
|
4939 |
lt_cv_deplibs_check_method=pass_all |
|
4940 |
;; |
|
4941 |
|
|
4942 |
netbsd*) |
|
4943 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
|
4944 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
|
4945 |
else |
|
4946 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
|
4947 |
fi |
|
4948 |
;; |
|
4949 |
|
|
4950 |
newos6*) |
|
4951 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
|
4952 |
lt_cv_file_magic_cmd=/usr/bin/file |
|
4953 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
|
4954 |
;; |
|
4955 |
|
|
4956 |
*nto* | *qnx*) |
|
4957 |
lt_cv_deplibs_check_method=pass_all |
|
4958 |
;; |
|
4959 |
|
|
4960 |
openbsd*) |
|
4961 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
4962 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
|
4963 |
else |
|
4964 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
|
4965 |
fi |
|
4966 |
;; |
|
4967 |
|
|
4968 |
osf3* | osf4* | osf5*) |
|
4969 |
lt_cv_deplibs_check_method=pass_all |
|
4970 |
;; |
|
4971 |
|
|
4972 |
rdos*) |
|
4973 |
lt_cv_deplibs_check_method=pass_all |
|
4974 |
;; |
|
4975 |
|
|
4976 |
solaris*) |
|
4977 |
lt_cv_deplibs_check_method=pass_all |
|
4978 |
;; |
|
4979 |
|
|
4980 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
4981 |
lt_cv_deplibs_check_method=pass_all |
|
4982 |
;; |
|
4983 |
|
|
4984 |
sysv4 | sysv4.3*) |
|
4985 |
case $host_vendor in |
|
4986 |
motorola) |
|
4987 |
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]' |
|
4988 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
4989 |
;; |
|
4990 |
ncr) |
|
4991 |
lt_cv_deplibs_check_method=pass_all |
|
4992 |
;; |
|
4993 |
sequent) |
|
4994 |
lt_cv_file_magic_cmd='/bin/file' |
|
4995 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
|
4996 |
;; |
|
4997 |
sni) |
|
4998 |
lt_cv_file_magic_cmd='/bin/file' |
|
4999 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
|
5000 |
lt_cv_file_magic_test_file=/lib/libc.so |
|
5001 |
;; |
|
5002 |
siemens) |
|
5003 |
lt_cv_deplibs_check_method=pass_all |
|
5004 |
;; |
|
5005 |
pc) |
|
5006 |
lt_cv_deplibs_check_method=pass_all |
|
5007 |
;; |
|
5008 |
esac |
|
5009 |
;; |
|
5010 |
|
|
5011 |
tpf*) |
|
5012 |
lt_cv_deplibs_check_method=pass_all |
|
5013 |
;; |
|
5014 |
esac |
|
5015 |
|
|
5016 |
fi |
|
5017 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
|
5018 |
$as_echo "$lt_cv_deplibs_check_method" >&6; } |
|
5019 |
|
|
5020 |
file_magic_glob= |
|
5021 |
want_nocaseglob=no |
|
5022 |
if test "$build" = "$host"; then |
|
5023 |
case $host_os in |
|
5024 |
mingw* | pw32*) |
|
5025 |
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
|
5026 |
want_nocaseglob=yes |
|
5027 |
else |
|
5028 |
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
|
5029 |
fi |
|
5030 |
;; |
|
5031 |
esac |
|
5032 |
fi |
|
5033 |
|
|
5034 |
file_magic_cmd=$lt_cv_file_magic_cmd |
|
5035 |
deplibs_check_method=$lt_cv_deplibs_check_method |
|
5036 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
5037 |
|
|
5038 |
|
|
5039 |
|
|
5040 |
|
|
5041 |
|
|
5042 |
|
|
5043 |
|
|
5044 |
|
|
5045 |
|
|
5046 |
|
|
5047 |
|
|
5048 |
|
|
5049 |
|
|
5050 |
|
|
5051 |
|
|
5052 |
|
|
5053 |
|
|
5054 |
|
|
5055 |
|
|
5056 |
|
|
5057 |
|
|
5058 |
|
|
5059 |
if test -n "$ac_tool_prefix"; then |
|
5060 |
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
|
5061 |
set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
|
5062 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5063 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
5064 |
if ${ac_cv_prog_DLLTOOL+:} false; then : |
|
5065 |
$as_echo_n "(cached) " >&6 |
|
5066 |
else |
|
5067 |
if test -n "$DLLTOOL"; then |
|
5068 |
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
|
5069 |
else |
|
5070 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5071 |
for as_dir in $PATH |
|
5072 |
do |
|
5073 |
IFS=$as_save_IFS |
|
5074 |
test -z "$as_dir" && as_dir=. |
|
5075 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
5076 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
5077 |
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
|
5078 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5079 |
break 2 |
|
5080 |
fi |
|
5081 |
done |
|
5082 |
done |
|
5083 |
IFS=$as_save_IFS |
|
5084 |
|
|
5085 |
fi |
|
5086 |
fi |
|
5087 |
DLLTOOL=$ac_cv_prog_DLLTOOL |
|
5088 |
if test -n "$DLLTOOL"; then |
|
5089 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
|
5090 |
$as_echo "$DLLTOOL" >&6; } |
|
5091 |
else |
|
5092 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5093 |
$as_echo "no" >&6; } |
|
5094 |
fi |
|
5095 |
|
|
5096 |
|
|
5097 |
fi |
|
5098 |
if test -z "$ac_cv_prog_DLLTOOL"; then |
|
5099 |
ac_ct_DLLTOOL=$DLLTOOL |
|
5100 |
# Extract the first word of "dlltool", so it can be a program name with args. |
|
5101 |
set dummy dlltool; ac_word=$2 |
|
5102 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5103 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
5104 |
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
|
5105 |
$as_echo_n "(cached) " >&6 |
|
5106 |
else |
|
5107 |
if test -n "$ac_ct_DLLTOOL"; then |
|
5108 |
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
|
5109 |
else |
|
5110 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5111 |
for as_dir in $PATH |
|
5112 |
do |
|
5113 |
IFS=$as_save_IFS |
|
5114 |
test -z "$as_dir" && as_dir=. |
|
5115 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
5116 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
5117 |
ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
|
5118 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5119 |
break 2 |
|
5120 |
fi |
|
5121 |
done |
|
5122 |
done |
|
5123 |
IFS=$as_save_IFS |
|
5124 |
|
|
5125 |
fi |
|
5126 |
fi |
|
5127 |
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
|
5128 |
if test -n "$ac_ct_DLLTOOL"; then |
|
5129 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
|
5130 |
$as_echo "$ac_ct_DLLTOOL" >&6; } |
|
5131 |
else |
|
5132 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5133 |
$as_echo "no" >&6; } |
|
5134 |
fi |
|
5135 |
|
|
5136 |
if test "x$ac_ct_DLLTOOL" = x; then |
|
5137 |
DLLTOOL="false" |
|
5138 |
else |
|
5139 |
case $cross_compiling:$ac_tool_warned in |
|
5140 |
yes:) |
|
5141 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
5142 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
5143 |
ac_tool_warned=yes ;; |
|
5144 |
esac |
|
5145 |
DLLTOOL=$ac_ct_DLLTOOL |
|
5146 |
fi |
|
5147 |
else |
|
5148 |
DLLTOOL="$ac_cv_prog_DLLTOOL" |
|
5149 |
fi |
|
5150 |
|
|
5151 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
|
5152 |
|
|
5153 |
|
|
5154 |
|
|
5155 |
|
|
5156 |
|
|
5157 |
|
|
5158 |
|
|
5159 |
|
|
5160 |
|
|
5161 |
|
|
5162 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
|
5163 |
$as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
|
5164 |
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
|
5165 |
$as_echo_n "(cached) " >&6 |
|
5166 |
else |
|
5167 |
lt_cv_sharedlib_from_linklib_cmd='unknown' |
|
5168 |
|
|
5169 |
case $host_os in |
|
5170 |
cygwin* | mingw* | pw32* | cegcc*) |
|
5171 |
# two different shell functions defined in ltmain.sh |
|
5172 |
# decide which to use based on capabilities of $DLLTOOL |
|
5173 |
case `$DLLTOOL --help 2>&1` in |
|
5174 |
*--identify-strict*) |
|
5175 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
|
5176 |
;; |
|
5177 |
*) |
|
5178 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
|
5179 |
;; |
|
5180 |
esac |
|
5181 |
;; |
|
5182 |
*) |
|
5183 |
# fallback: assume linklib IS sharedlib |
|
5184 |
lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
|
5185 |
;; |
|
5186 |
esac |
|
5187 |
|
|
5188 |
fi |
|
5189 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
|
5190 |
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
|
5191 |
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
|
5192 |
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
|
5193 |
|
|
5194 |
|
|
5195 |
|
|
5196 |
|
|
5197 |
|
|
5198 |
|
|
5199 |
|
|
5200 |
|
|
5201 |
if test -n "$ac_tool_prefix"; then |
|
5202 |
for ac_prog in ar |
|
5203 |
do |
|
5204 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
5205 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
5206 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5207 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
5208 |
if ${ac_cv_prog_AR+:} false; then : |
|
5209 |
$as_echo_n "(cached) " >&6 |
|
5210 |
else |
|
5211 |
if test -n "$AR"; then |
|
5212 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
|
5213 |
else |
|
5214 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5215 |
for as_dir in $PATH |
|
5216 |
do |
|
5217 |
IFS=$as_save_IFS |
|
5218 |
test -z "$as_dir" && as_dir=. |
|
5219 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
5220 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
5221 |
ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
|
5222 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5223 |
break 2 |
|
5224 |
fi |
|
5225 |
done |
|
5226 |
done |
|
5227 |
IFS=$as_save_IFS |
|
5228 |
|
|
5229 |
fi |
|
5230 |
fi |
|
5231 |
AR=$ac_cv_prog_AR |
|
5232 |
if test -n "$AR"; then |
|
5233 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
|
5234 |
$as_echo "$AR" >&6; } |
|
5235 |
else |
|
5236 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5237 |
$as_echo "no" >&6; } |
|
5238 |
fi |
|
5239 |
|
|
5240 |
|
|
5241 |
test -n "$AR" && break |
|
5242 |
done |
|
5243 |
fi |
|
5244 |
if test -z "$AR"; then |
|
5245 |
ac_ct_AR=$AR |
|
5246 |
for ac_prog in ar |
|
5247 |
do |
|
5248 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
5249 |
set dummy $ac_prog; ac_word=$2 |
|
5250 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5251 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
5252 |
if ${ac_cv_prog_ac_ct_AR+:} false; then : |
|
5253 |
$as_echo_n "(cached) " >&6 |
|
5254 |
else |
|
5255 |
if test -n "$ac_ct_AR"; then |
|
5256 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
|
5257 |
else |
|
5258 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5259 |
for as_dir in $PATH |
|
5260 |
do |
|
5261 |
IFS=$as_save_IFS |
|
5262 |
test -z "$as_dir" && as_dir=. |
|
5263 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
5264 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
5265 |
ac_cv_prog_ac_ct_AR="$ac_prog" |
|
5266 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5267 |
break 2 |
|
5268 |
fi |
|
5269 |
done |
|
5270 |
done |
|
5271 |
IFS=$as_save_IFS |
|
5272 |
|
|
5273 |
fi |
|
5274 |
fi |
|
5275 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
|
5276 |
if test -n "$ac_ct_AR"; then |
|
5277 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
|
5278 |
$as_echo "$ac_ct_AR" >&6; } |
|
5279 |
else |
|
5280 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5281 |
$as_echo "no" >&6; } |
|
5282 |
fi |
|
5283 |
|
|
5284 |
|
|
5285 |
test -n "$ac_ct_AR" && break |
|
5286 |
done |
|
5287 |
|
|
5288 |
if test "x$ac_ct_AR" = x; then |
|
5289 |
AR="false" |
|
5290 |
else |
|
5291 |
case $cross_compiling:$ac_tool_warned in |
|
5292 |
yes:) |
|
5293 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
5294 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
5295 |
ac_tool_warned=yes ;; |
|
5296 |
esac |
|
5297 |
AR=$ac_ct_AR |
|
5298 |
fi |
|
5299 |
fi |
|
5300 |
|
|
5301 |
: ${AR=ar} |
|
5302 |
: ${AR_FLAGS=cru} |
|
5303 |
|
|
5304 |
|
|
5305 |
|
|
5306 |
|
|
5307 |
|
|
5308 |
|
|
5309 |
|
|
5310 |
|
|
5311 |
|
|
5312 |
|
|
5313 |
|
|
5314 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
|
5315 |
$as_echo_n "checking for archiver @FILE support... " >&6; } |
|
5316 |
if ${lt_cv_ar_at_file+:} false; then : |
|
5317 |
$as_echo_n "(cached) " >&6 |
|
5318 |
else |
|
5319 |
lt_cv_ar_at_file=no |
|
5320 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5321 |
/* end confdefs.h. */ |
|
5322 |
|
|
5323 |
int |
|
5324 |
main () |
|
5325 |
{ |
|
5326 |
|
|
5327 |
; |
|
5328 |
return 0; |
|
5329 |
} |
|
5330 |
_ACEOF |
|
5331 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
5332 |
echo conftest.$ac_objext > conftest.lst |
|
5333 |
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
|
5334 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
|
5335 |
(eval $lt_ar_try) 2>&5 |
|
5336 |
ac_status=$? |
|
5337 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
5338 |
test $ac_status = 0; } |
|
5339 |
if test "$ac_status" -eq 0; then |
|
5340 |
# Ensure the archiver fails upon bogus file names. |
|
5341 |
rm -f conftest.$ac_objext libconftest.a |
|
5342 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
|
5343 |
(eval $lt_ar_try) 2>&5 |
|
5344 |
ac_status=$? |
|
5345 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
5346 |
test $ac_status = 0; } |
|
5347 |
if test "$ac_status" -ne 0; then |
|
5348 |
lt_cv_ar_at_file=@ |
|
5349 |
fi |
|
5350 |
fi |
|
5351 |
rm -f conftest.* libconftest.a |
|
5352 |
|
|
5353 |
fi |
|
5354 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
5355 |
|
|
5356 |
fi |
|
5357 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
|
5358 |
$as_echo "$lt_cv_ar_at_file" >&6; } |
|
5359 |
|
|
5360 |
if test "x$lt_cv_ar_at_file" = xno; then |
|
5361 |
archiver_list_spec= |
|
5362 |
else |
|
5363 |
archiver_list_spec=$lt_cv_ar_at_file |
|
5364 |
fi |
|
5365 |
|
|
5366 |
|
|
5367 |
|
|
5368 |
|
|
5369 |
|
|
5370 |
|
|
5371 |
|
|
5372 |
if test -n "$ac_tool_prefix"; then |
|
5373 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
5374 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
5375 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5376 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
5377 |
if ${ac_cv_prog_STRIP+:} false; then : |
|
5378 |
$as_echo_n "(cached) " >&6 |
|
5379 |
else |
|
5380 |
if test -n "$STRIP"; then |
|
5381 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
5382 |
else |
|
5383 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5384 |
for as_dir in $PATH |
|
5385 |
do |
|
5386 |
IFS=$as_save_IFS |
|
5387 |
test -z "$as_dir" && as_dir=. |
|
5388 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
5389 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
5390 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
5391 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5392 |
break 2 |
|
5393 |
fi |
|
5394 |
done |
|
5395 |
done |
|
5396 |
IFS=$as_save_IFS |
|
5397 |
|
|
5398 |
fi |
|
5399 |
fi |
|
5400 |
STRIP=$ac_cv_prog_STRIP |
|
5401 |
if test -n "$STRIP"; then |
|
5402 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
|
5403 |
$as_echo "$STRIP" >&6; } |
|
5404 |
else |
|
5405 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5406 |
$as_echo "no" >&6; } |
|
5407 |
fi |
|
5408 |
|
|
5409 |
|
|
5410 |
fi |
|
5411 |
if test -z "$ac_cv_prog_STRIP"; then |
|
5412 |
ac_ct_STRIP=$STRIP |
|
5413 |
# Extract the first word of "strip", so it can be a program name with args. |
|
5414 |
set dummy strip; ac_word=$2 |
|
5415 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5416 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
5417 |
if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
|
5418 |
$as_echo_n "(cached) " >&6 |
|
5419 |
else |
|
5420 |
if test -n "$ac_ct_STRIP"; then |
|
5421 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
5422 |
else |
|
5423 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5424 |
for as_dir in $PATH |
|
5425 |
do |
|
5426 |
IFS=$as_save_IFS |
|
5427 |
test -z "$as_dir" && as_dir=. |
|
5428 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
5429 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
5430 |
ac_cv_prog_ac_ct_STRIP="strip" |
|
5431 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5432 |
break 2 |
|
5433 |
fi |
|
5434 |
done |
|
5435 |
done |
|
5436 |
IFS=$as_save_IFS |
|
5437 |
|
|
5438 |
fi |
|
5439 |
fi |
|
5440 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
5441 |
if test -n "$ac_ct_STRIP"; then |
|
5442 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
|
5443 |
$as_echo "$ac_ct_STRIP" >&6; } |
|
5444 |
else |
|
5445 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5446 |
$as_echo "no" >&6; } |
|
5447 |
fi |
|
5448 |
|
|
5449 |
if test "x$ac_ct_STRIP" = x; then |
|
5450 |
STRIP=":" |
|
5451 |
else |
|
5452 |
case $cross_compiling:$ac_tool_warned in |
|
5453 |
yes:) |
|
5454 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
5455 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
5456 |
ac_tool_warned=yes ;; |
|
5457 |
esac |
|
5458 |
STRIP=$ac_ct_STRIP |
|
5459 |
fi |
|
5460 |
else |
|
5461 |
STRIP="$ac_cv_prog_STRIP" |
|
5462 |
fi |
|
5463 |
|
|
5464 |
test -z "$STRIP" && STRIP=: |
|
5465 |
|
|
5466 |
|
|
5467 |
|
|
5468 |
|
|
5469 |
|
|
5470 |
|
|
5471 |
if test -n "$ac_tool_prefix"; then |
|
5472 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
5473 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
5474 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5475 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
5476 |
if ${ac_cv_prog_RANLIB+:} false; then : |
|
5477 |
$as_echo_n "(cached) " >&6 |
|
5478 |
else |
|
5479 |
if test -n "$RANLIB"; then |
|
5480 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
5481 |
else |
|
5482 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5483 |
for as_dir in $PATH |
|
5484 |
do |
|
5485 |
IFS=$as_save_IFS |
|
5486 |
test -z "$as_dir" && as_dir=. |
|
5487 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
5488 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
5489 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
5490 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5491 |
break 2 |
|
5492 |
fi |
|
5493 |
done |
|
5494 |
done |
|
5495 |
IFS=$as_save_IFS |
|
5496 |
|
|
5497 |
fi |
|
5498 |
fi |
|
5499 |
RANLIB=$ac_cv_prog_RANLIB |
|
5500 |
if test -n "$RANLIB"; then |
|
5501 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
|
5502 |
$as_echo "$RANLIB" >&6; } |
|
5503 |
else |
|
5504 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5505 |
$as_echo "no" >&6; } |
|
5506 |
fi |
|
5507 |
|
|
5508 |
|
|
5509 |
fi |
|
5510 |
if test -z "$ac_cv_prog_RANLIB"; then |
|
5511 |
ac_ct_RANLIB=$RANLIB |
|
5512 |
# Extract the first word of "ranlib", so it can be a program name with args. |
|
5513 |
set dummy ranlib; ac_word=$2 |
|
5514 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5515 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
5516 |
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
|
5517 |
$as_echo_n "(cached) " >&6 |
|
5518 |
else |
|
5519 |
if test -n "$ac_ct_RANLIB"; then |
|
5520 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
5521 |
else |
|
5522 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5523 |
for as_dir in $PATH |
|
5524 |
do |
|
5525 |
IFS=$as_save_IFS |
|
5526 |
test -z "$as_dir" && as_dir=. |
|
5527 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
5528 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
5529 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
5530 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5531 |
break 2 |
|
5532 |
fi |
|
5533 |
done |
|
5534 |
done |
|
5535 |
IFS=$as_save_IFS |
|
5536 |
|
|
5537 |
fi |
|
5538 |
fi |
|
5539 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
5540 |
if test -n "$ac_ct_RANLIB"; then |
|
5541 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
|
5542 |
$as_echo "$ac_ct_RANLIB" >&6; } |
|
5543 |
else |
|
5544 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5545 |
$as_echo "no" >&6; } |
|
5546 |
fi |
|
5547 |
|
|
5548 |
if test "x$ac_ct_RANLIB" = x; then |
|
5549 |
RANLIB=":" |
|
5550 |
else |
|
5551 |
case $cross_compiling:$ac_tool_warned in |
|
5552 |
yes:) |
|
5553 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
5554 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
5555 |
ac_tool_warned=yes ;; |
|
5556 |
esac |
|
5557 |
RANLIB=$ac_ct_RANLIB |
|
5558 |
fi |
|
5559 |
else |
|
5560 |
RANLIB="$ac_cv_prog_RANLIB" |
|
5561 |
fi |
|
5562 |
|
|
5563 |
test -z "$RANLIB" && RANLIB=: |
|
5564 |
|
|
5565 |
|
|
5566 |
|
|
5567 |
|
|
5568 |
|
|
5569 |
|
|
5570 |
# Determine commands to create old-style static archives. |
|
5571 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
|
5572 |
old_postinstall_cmds='chmod 644 $oldlib' |
|
5573 |
old_postuninstall_cmds= |
|
5574 |
|
|
5575 |
if test -n "$RANLIB"; then |
|
5576 |
case $host_os in |
|
5577 |
openbsd*) |
|
5578 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
|
5579 |
;; |
|
5580 |
*) |
|
5581 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
|
5582 |
;; |
|
5583 |
esac |
|
5584 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
|
5585 |
fi |
|
5586 |
|
|
5587 |
case $host_os in |
|
5588 |
darwin*) |
|
5589 |
lock_old_archive_extraction=yes ;; |
|
5590 |
*) |
|
5591 |
lock_old_archive_extraction=no ;; |
|
5592 |
esac |
|
5593 |
|
|
5594 |
|
|
5595 |
|
|
5596 |
|
|
5597 |
|
|
5598 |
|
|
5599 |
|
|
5600 |
|
|
5601 |
|
|
5602 |
|
|
5603 |
|
|
5604 |
|
|
5605 |
|
|
5606 |
|
|
5607 |
|
|
5608 |
|
|
5609 |
|
|
5610 |
|
|
5611 |
|
|
5612 |
|
|
5613 |
|
|
5614 |
|
|
5615 |
|
|
5616 |
|
|
5617 |
|
|
5618 |
|
|
5619 |
|
|
5620 |
|
|
5621 |
|
|
5622 |
|
|
5623 |
|
|
5624 |
|
|
5625 |
|
|
5626 |
|
|
5627 |
|
|
5628 |
|
|
5629 |
|
|
5630 |
|
|
5631 |
|
|
5632 |
# If no C compiler was specified, use CC. |
|
5633 |
LTCC=${LTCC-"$CC"} |
|
5634 |
|
|
5635 |
# If no C compiler flags were specified, use CFLAGS. |
|
5636 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
5637 |
|
|
5638 |
# Allow CC to be a program name with arguments. |
|
5639 |
compiler=$CC |
|
5640 |
|
|
5641 |
|
|
5642 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
|
5643 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
|
5644 |
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
|
5645 |
if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
|
5646 |
$as_echo_n "(cached) " >&6 |
|
5647 |
else |
|
5648 |
|
|
5649 |
# These are sane defaults that work on at least a few old systems. |
|
5650 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
5651 |
|
|
5652 |
# Character class describing NM global symbol codes. |
|
5653 |
symcode='[BCDEGRST]' |
|
5654 |
|
|
5655 |
# Regexp to match symbols that can be accessed directly from C. |
|
5656 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
5657 |
|
|
5658 |
# Define system-specific variables. |
|
5659 |
case $host_os in |
|
5660 |
aix*) |
|
5661 |
symcode='[BCDT]' |
|
5662 |
;; |
|
5663 |
cygwin* | mingw* | pw32* | cegcc*) |
|
5664 |
symcode='[ABCDGISTW]' |
|
5665 |
;; |
|
5666 |
hpux*) |
|
5667 |
if test "$host_cpu" = ia64; then |
|
5668 |
symcode='[ABCDEGRST]' |
|
5669 |
fi |
|
5670 |
;; |
|
5671 |
irix* | nonstopux*) |
|
5672 |
symcode='[BCDEGRST]' |
|
5673 |
;; |
|
5674 |
osf*) |
|
5675 |
symcode='[BCDEGQRST]' |
|
5676 |
;; |
|
5677 |
solaris*) |
|
5678 |
symcode='[BDRT]' |
|
5679 |
;; |
|
5680 |
sco3.2v5*) |
|
5681 |
symcode='[DT]' |
|
5682 |
;; |
|
5683 |
sysv4.2uw2*) |
|
5684 |
symcode='[DT]' |
|
5685 |
;; |
|
5686 |
sysv5* | sco5v6* | unixware* | OpenUNIX*) |
|
5687 |
symcode='[ABDT]' |
|
5688 |
;; |
|
5689 |
sysv4) |
|
5690 |
symcode='[DFNSTU]' |
|
5691 |
;; |
|
5692 |
esac |
|
5693 |
|
|
5694 |
# If we're using GNU nm, then use its standard symbol codes. |
|
5695 |
case `$NM -V 2>&1` in |
|
5696 |
*GNU* | *'with BFD'*) |
|
5697 |
symcode='[ABCDGIRSTW]' ;; |
|
5698 |
esac |
|
5699 |
|
|
5700 |
# Transform an extracted symbol line into a proper C declaration. |
|
5701 |
# Some systems (esp. on ia64) link data and code symbols differently, |
|
5702 |
# so use this general approach. |
|
5703 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
5704 |
|
|
5705 |
# Transform an extracted symbol line into symbol name and symbol address |
|
5706 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
|
5707 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
|
5708 |
|
|
5709 |
# Handle CRLF in mingw tool chain |
|
5710 |
opt_cr= |
|
5711 |
case $build_os in |
|
5712 |
mingw*) |
|
5713 |
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
5714 |
;; |
|
5715 |
esac |
|
5716 |
|
|
5717 |
# Try without a prefix underscore, then with it. |
|
5718 |
for ac_symprfx in "" "_"; do |
|
5719 |
|
|
5720 |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
|
5721 |
symxfrm="\\1 $ac_symprfx\\2 \\2" |
|
5722 |
|
|
5723 |
# Write the raw and C identifiers. |
|
5724 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
|
5725 |
# Fake it for dumpbin and say T for any non-static function |
|
5726 |
# and D for any global variable. |
|
5727 |
# Also find C++ and __fastcall symbols from MSVC++, |
|
5728 |
# which start with @ or ?. |
|
5729 |
lt_cv_sys_global_symbol_pipe="$AWK '"\ |
|
5730 |
" {last_section=section; section=\$ 3};"\ |
|
5731 |
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
|
5732 |
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
|
5733 |
" \$ 0!~/External *\|/{next};"\ |
|
5734 |
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
|
5735 |
" {if(hide[section]) next};"\ |
|
5736 |
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
|
5737 |
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
|
5738 |
" s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
|
5739 |
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
|
5740 |
" ' prfx=^$ac_symprfx" |
|
5741 |
else |
|
5742 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
|
5743 |
fi |
|
5744 |
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
|
5745 |
|
|
5746 |
# Check to see that the pipe works correctly. |
|
5747 |
pipe_works=no |
|
5748 |
|
|
5749 |
rm -f conftest* |
|
5750 |
cat > conftest.$ac_ext <<_LT_EOF |
|
5751 |
#ifdef __cplusplus |
|
5752 |
extern "C" { |
|
5753 |
#endif |
|
5754 |
char nm_test_var; |
|
5755 |
void nm_test_func(void); |
|
5756 |
void nm_test_func(void){} |
|
5757 |
#ifdef __cplusplus |
|
5758 |
} |
|
5759 |
#endif |
|
5760 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
|
5761 |
_LT_EOF |
|
5762 |
|
|
5763 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
|
5764 |
(eval $ac_compile) 2>&5 |
|
5765 |
ac_status=$? |
|
5766 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
5767 |
test $ac_status = 0; }; then |
|
5768 |
# Now try to grab the symbols. |
|
5769 |
nlist=conftest.nm |
|
5770 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
|
5771 |
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
|
5772 |
ac_status=$? |
|
5773 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
5774 |
test $ac_status = 0; } && test -s "$nlist"; then |
|
5775 |
# Try sorting and uniquifying the output. |
|
5776 |
if sort "$nlist" | uniq > "$nlist"T; then |
|
5777 |
mv -f "$nlist"T "$nlist" |
|
5778 |
else |
|
5779 |
rm -f "$nlist"T |
|
5780 |
fi |
|
5781 |
|
|
5782 |
# Make sure that we snagged all the symbols we need. |
|
5783 |
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
|
5784 |
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
|
5785 |
cat <<_LT_EOF > conftest.$ac_ext |
|
5786 |
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
|
5787 |
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
|
5788 |
/* DATA imports from DLLs on WIN32 con't be const, because runtime |
|
5789 |
relocations are performed -- see ld's documentation on pseudo-relocs. */ |
|
5790 |
# define LT_DLSYM_CONST |
|
5791 |
#elif defined(__osf__) |
|
5792 |
/* This system does not cope well with relocations in const data. */ |
|
5793 |
# define LT_DLSYM_CONST |
|
5794 |
#else |
|
5795 |
# define LT_DLSYM_CONST const |
|
5796 |
#endif |
|
5797 |
|
|
5798 |
#ifdef __cplusplus |
|
5799 |
extern "C" { |
|
5800 |
#endif |
|
5801 |
|
|
5802 |
_LT_EOF |
|
5803 |
# Now generate the symbol file. |
|
5804 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
|
5805 |
|
|
5806 |
cat <<_LT_EOF >> conftest.$ac_ext |
|
5807 |
|
|
5808 |
/* The mapping between symbol names and symbols. */ |
|
5809 |
LT_DLSYM_CONST struct { |
|
5810 |
const char *name; |
|
5811 |
void *address; |
|
5812 |
} |
|
5813 |
lt__PROGRAM__LTX_preloaded_symbols[] = |
|
5814 |
{ |
|
5815 |
{ "@PROGRAM@", (void *) 0 }, |
|
5816 |
_LT_EOF |
|
5817 |
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
|
5818 |
cat <<\_LT_EOF >> conftest.$ac_ext |
|
5819 |
{0, (void *) 0} |
|
5820 |
}; |
|
5821 |
|
|
5822 |
/* This works around a problem in FreeBSD linker */ |
|
5823 |
#ifdef FREEBSD_WORKAROUND |
|
5824 |
static const void *lt_preloaded_setup() { |
|
5825 |
return lt__PROGRAM__LTX_preloaded_symbols; |
|
5826 |
} |
|
5827 |
#endif |
|
5828 |
|
|
5829 |
#ifdef __cplusplus |
|
5830 |
} |
|
5831 |
#endif |
|
5832 |
_LT_EOF |
|
5833 |
# Now try linking the two files. |
|
5834 |
mv conftest.$ac_objext conftstm.$ac_objext |
|
5835 |
lt_globsym_save_LIBS=$LIBS |
|
5836 |
lt_globsym_save_CFLAGS=$CFLAGS |
|
5837 |
LIBS="conftstm.$ac_objext" |
|
5838 |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
|
5839 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
|
5840 |
(eval $ac_link) 2>&5 |
|
5841 |
ac_status=$? |
|
5842 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
5843 |
test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
|
5844 |
pipe_works=yes |
|
5845 |
fi |
|
5846 |
LIBS=$lt_globsym_save_LIBS |
|
5847 |
CFLAGS=$lt_globsym_save_CFLAGS |
|
5848 |
else |
|
5849 |
echo "cannot find nm_test_func in $nlist" >&5 |
|
5850 |
fi |
|
5851 |
else |
|
5852 |
echo "cannot find nm_test_var in $nlist" >&5 |
|
5853 |
fi |
|
5854 |
else |
|
5855 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
|
5856 |
fi |
|
5857 |
else |
|
5858 |
echo "$progname: failed program was:" >&5 |
|
5859 |
cat conftest.$ac_ext >&5 |
|
5860 |
fi |
|
5861 |
rm -rf conftest* conftst* |
|
5862 |
|
|
5863 |
# Do not use the global_symbol_pipe unless it works. |
|
5864 |
if test "$pipe_works" = yes; then |
|
5865 |
break |
|
5866 |
else |
|
5867 |
lt_cv_sys_global_symbol_pipe= |
|
5868 |
fi |
|
5869 |
done |
|
5870 |
|
|
5871 |
fi |
|
5872 |
|
|
5873 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
5874 |
lt_cv_sys_global_symbol_to_cdecl= |
|
5875 |
fi |
|
5876 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
|
5877 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
|
5878 |
$as_echo "failed" >&6; } |
|
5879 |
else |
|
5880 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
5881 |
$as_echo "ok" >&6; } |
|
5882 |
fi |
|
5883 |
|
|
5884 |
# Response file support. |
|
5885 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
|
5886 |
nm_file_list_spec='@' |
|
5887 |
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
|
5888 |
nm_file_list_spec='@' |
|
5889 |
fi |
|
5890 |
|
|
5891 |
|
|
5892 |
|
|
5893 |
|
|
5894 |
|
|
5895 |
|
|
5896 |
|
|
5897 |
|
|
5898 |
|
|
5899 |
|
|
5900 |
|
|
5901 |
|
|
5902 |
|
|
5903 |
|
|
5904 |
|
|
5905 |
|
|
5906 |
|
|
5907 |
|
|
5908 |
|
|
5909 |
|
|
5910 |
|
|
5911 |
|
|
5912 |
|
|
5913 |
|
|
5914 |
|
|
5915 |
|
|
5916 |
|
|
5917 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
|
5918 |
$as_echo_n "checking for sysroot... " >&6; } |
|
5919 |
|
|
5920 |
# Check whether --with-sysroot was given. |
|
5921 |
if test "${with_sysroot+set}" = set; then : |
|
5922 |
withval=$with_sysroot; |
|
5923 |
else |
|
5924 |
with_sysroot=no |
|
5925 |
fi |
|
5926 |
|
|
5927 |
|
|
5928 |
lt_sysroot= |
|
5929 |
case ${with_sysroot} in #( |
|
5930 |
yes) |
|
5931 |
if test "$GCC" = yes; then |
|
5932 |
lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
|
5933 |
fi |
|
5934 |
;; #( |
|
5935 |
/*) |
|
5936 |
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
|
5937 |
;; #( |
|
5938 |
no|'') |
|
5939 |
;; #( |
|
5940 |
*) |
|
5941 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
|
5942 |
$as_echo "${with_sysroot}" >&6; } |
|
5943 |
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
|
5944 |
;; |
|
5945 |
esac |
|
5946 |
|
|
5947 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
|
5948 |
$as_echo "${lt_sysroot:-no}" >&6; } |
|
5949 |
|
|
5950 |
|
|
5951 |
|
|
5952 |
|
|
5953 |
|
|
5954 |
# Check whether --enable-libtool-lock was given. |
|
5955 |
if test "${enable_libtool_lock+set}" = set; then : |
|
5956 |
enableval=$enable_libtool_lock; |
|
5957 |
fi |
|
5958 |
|
|
5959 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
5960 |
|
|
5961 |
# Some flags need to be propagated to the compiler or linker for good |
|
5962 |
# libtool support. |
|
5963 |
case $host in |
|
5964 |
ia64-*-hpux*) |
|
5965 |
# Find out which ABI we are using. |
|
5966 |
echo 'int i;' > conftest.$ac_ext |
|
5967 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
|
5968 |
(eval $ac_compile) 2>&5 |
|
5969 |
ac_status=$? |
|
5970 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
5971 |
test $ac_status = 0; }; then |
|
5972 |
case `/usr/bin/file conftest.$ac_objext` in |
|
5973 |
*ELF-32*) |
|
5974 |
HPUX_IA64_MODE="32" |
|
5975 |
;; |
|
5976 |
*ELF-64*) |
|
5977 |
HPUX_IA64_MODE="64" |
|
5978 |
;; |
|
5979 |
esac |
|
5980 |
fi |
|
5981 |
rm -rf conftest* |
|
5982 |
;; |
|
5983 |
*-*-irix6*) |
|
5984 |
# Find out which ABI we are using. |
|
5985 |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
|
5986 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
|
5987 |
(eval $ac_compile) 2>&5 |
|
5988 |
ac_status=$? |
|
5989 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
5990 |
test $ac_status = 0; }; then |
|
5991 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
5992 |
case `/usr/bin/file conftest.$ac_objext` in |
|
5993 |
*32-bit*) |
|
5994 |
LD="${LD-ld} -melf32bsmip" |
|
5995 |
;; |
|
5996 |
*N32*) |
|
5997 |
LD="${LD-ld} -melf32bmipn32" |
|
5998 |
;; |
|
5999 |
*64-bit*) |
|
6000 |
LD="${LD-ld} -melf64bmip" |
|
6001 |
;; |
|
6002 |
esac |
|
6003 |
else |
|
6004 |
case `/usr/bin/file conftest.$ac_objext` in |
|
6005 |
*32-bit*) |
|
6006 |
LD="${LD-ld} -32" |
|
6007 |
;; |
|
6008 |
*N32*) |
|
6009 |
LD="${LD-ld} -n32" |
|
6010 |
;; |
|
6011 |
*64-bit*) |
|
6012 |
LD="${LD-ld} -64" |
|
6013 |
;; |
|
6014 |
esac |
|
6015 |
fi |
|
6016 |
fi |
|
6017 |
rm -rf conftest* |
|
6018 |
;; |
|
6019 |
|
|
6020 |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
|
6021 |
s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
|
6022 |
# Find out which ABI we are using. |
|
6023 |
echo 'int i;' > conftest.$ac_ext |
|
6024 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
|
6025 |
(eval $ac_compile) 2>&5 |
|
6026 |
ac_status=$? |
|
6027 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
6028 |
test $ac_status = 0; }; then |
|
6029 |
case `/usr/bin/file conftest.o` in |
|
6030 |
*32-bit*) |
|
6031 |
case $host in |
|
6032 |
x86_64-*kfreebsd*-gnu) |
|
6033 |
LD="${LD-ld} -m elf_i386_fbsd" |
|
6034 |
;; |
|
6035 |
x86_64-*linux*) |
|
6036 |
LD="${LD-ld} -m elf_i386" |
|
6037 |
;; |
|
6038 |
ppc64-*linux*|powerpc64-*linux*) |
|
6039 |
LD="${LD-ld} -m elf32ppclinux" |
|
6040 |
;; |
|
6041 |
s390x-*linux*) |
|
6042 |
LD="${LD-ld} -m elf_s390" |
|
6043 |
;; |
|
6044 |
sparc64-*linux*) |
|
6045 |
LD="${LD-ld} -m elf32_sparc" |
|
6046 |
;; |
|
6047 |
esac |
|
6048 |
;; |
|
6049 |
*64-bit*) |
|
6050 |
case $host in |
|
6051 |
x86_64-*kfreebsd*-gnu) |
|
6052 |
LD="${LD-ld} -m elf_x86_64_fbsd" |
|
6053 |
;; |
|
6054 |
x86_64-*linux*) |
|
6055 |
LD="${LD-ld} -m elf_x86_64" |
|
6056 |
;; |
|
6057 |
ppc*-*linux*|powerpc*-*linux*) |
|
6058 |
LD="${LD-ld} -m elf64ppc" |
|
6059 |
;; |
|
6060 |
s390*-*linux*|s390*-*tpf*) |
|
6061 |
LD="${LD-ld} -m elf64_s390" |
|
6062 |
;; |
|
6063 |
sparc*-*linux*) |
|
6064 |
LD="${LD-ld} -m elf64_sparc" |
|
6065 |
;; |
|
6066 |
esac |
|
6067 |
;; |
|
6068 |
esac |
|
6069 |
fi |
|
6070 |
rm -rf conftest* |
|
6071 |
;; |
|
6072 |
|
|
6073 |
*-*-sco3.2v5*) |
|
6074 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
|
6075 |
SAVE_CFLAGS="$CFLAGS" |
|
6076 |
CFLAGS="$CFLAGS -belf" |
|
6077 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
|
6078 |
$as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
|
6079 |
if ${lt_cv_cc_needs_belf+:} false; then : |
|
6080 |
$as_echo_n "(cached) " >&6 |
|
6081 |
else |
|
6082 |
ac_ext=c |
|
6083 |
ac_cpp='$CPP $CPPFLAGS' |
|
6084 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6085 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6086 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
6087 |
|
|
6088 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6089 |
/* end confdefs.h. */ |
|
6090 |
|
|
6091 |
int |
|
6092 |
main () |
|
6093 |
{ |
|
6094 |
|
|
6095 |
; |
|
6096 |
return 0; |
|
6097 |
} |
|
6098 |
_ACEOF |
|
6099 |
if ac_fn_c_try_link "$LINENO"; then : |
|
6100 |
lt_cv_cc_needs_belf=yes |
|
6101 |
else |
|
6102 |
lt_cv_cc_needs_belf=no |
|
6103 |
fi |
|
6104 |
rm -f core conftest.err conftest.$ac_objext \ |
|
6105 |
conftest$ac_exeext conftest.$ac_ext |
|
6106 |
ac_ext=c |
|
6107 |
ac_cpp='$CPP $CPPFLAGS' |
|
6108 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6109 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6110 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
6111 |
|
|
6112 |
fi |
|
6113 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
|
6114 |
$as_echo "$lt_cv_cc_needs_belf" >&6; } |
|
6115 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
|
6116 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
6117 |
CFLAGS="$SAVE_CFLAGS" |
|
6118 |
fi |
|
6119 |
;; |
|
6120 |
*-*solaris*) |
|
6121 |
# Find out which ABI we are using. |
|
6122 |
echo 'int i;' > conftest.$ac_ext |
|
6123 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
|
6124 |
(eval $ac_compile) 2>&5 |
|
6125 |
ac_status=$? |
|
6126 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
6127 |
test $ac_status = 0; }; then |
|
6128 |
case `/usr/bin/file conftest.o` in |
|
6129 |
*64-bit*) |
|
6130 |
case $lt_cv_prog_gnu_ld in |
|
6131 |
yes*) |
|
6132 |
case $host in |
|
6133 |
i?86-*-solaris*) |
|
6134 |
LD="${LD-ld} -m elf_x86_64" |
|
6135 |
;; |
|
6136 |
sparc*-*-solaris*) |
|
6137 |
LD="${LD-ld} -m elf64_sparc" |
|
6138 |
;; |
|
6139 |
esac |
|
6140 |
# GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
|
6141 |
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
|
6142 |
LD="${LD-ld}_sol2" |
|
6143 |
fi |
|
6144 |
;; |
|
6145 |
*) |
|
6146 |
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
|
6147 |
LD="${LD-ld} -64" |
|
6148 |
fi |
|
6149 |
;; |
|
6150 |
esac |
|
6151 |
;; |
|
6152 |
esac |
|
6153 |
fi |
|
6154 |
rm -rf conftest* |
|
6155 |
;; |
|
6156 |
esac |
|
6157 |
|
|
6158 |
need_locks="$enable_libtool_lock" |
|
6159 |
|
|
6160 |
if test -n "$ac_tool_prefix"; then |
|
6161 |
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
|
6162 |
set dummy ${ac_tool_prefix}mt; ac_word=$2 |
|
6163 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6164 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6165 |
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
|
6166 |
$as_echo_n "(cached) " >&6 |
|
6167 |
else |
|
6168 |
if test -n "$MANIFEST_TOOL"; then |
|
6169 |
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
|
6170 |
else |
|
6171 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6172 |
for as_dir in $PATH |
|
6173 |
do |
|
6174 |
IFS=$as_save_IFS |
|
6175 |
test -z "$as_dir" && as_dir=. |
|
6176 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6177 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
6178 |
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
|
6179 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6180 |
break 2 |
|
6181 |
fi |
|
6182 |
done |
|
6183 |
done |
|
6184 |
IFS=$as_save_IFS |
|
6185 |
|
|
6186 |
fi |
|
6187 |
fi |
|
6188 |
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
|
6189 |
if test -n "$MANIFEST_TOOL"; then |
|
6190 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
|
6191 |
$as_echo "$MANIFEST_TOOL" >&6; } |
|
6192 |
else |
|
6193 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6194 |
$as_echo "no" >&6; } |
|
6195 |
fi |
|
6196 |
|
|
6197 |
|
|
6198 |
fi |
|
6199 |
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
|
6200 |
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
|
6201 |
# Extract the first word of "mt", so it can be a program name with args. |
|
6202 |
set dummy mt; ac_word=$2 |
|
6203 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6204 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6205 |
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
|
6206 |
$as_echo_n "(cached) " >&6 |
|
6207 |
else |
|
6208 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
|
6209 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
|
6210 |
else |
|
6211 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6212 |
for as_dir in $PATH |
|
6213 |
do |
|
6214 |
IFS=$as_save_IFS |
|
6215 |
test -z "$as_dir" && as_dir=. |
|
6216 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6217 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
6218 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
|
6219 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6220 |
break 2 |
|
6221 |
fi |
|
6222 |
done |
|
6223 |
done |
|
6224 |
IFS=$as_save_IFS |
|
6225 |
|
|
6226 |
fi |
|
6227 |
fi |
|
6228 |
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
|
6229 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
|
6230 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
|
6231 |
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
|
6232 |
else |
|
6233 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6234 |
$as_echo "no" >&6; } |
|
6235 |
fi |
|
6236 |
|
|
6237 |
if test "x$ac_ct_MANIFEST_TOOL" = x; then |
|
6238 |
MANIFEST_TOOL=":" |
|
6239 |
else |
|
6240 |
case $cross_compiling:$ac_tool_warned in |
|
6241 |
yes:) |
|
6242 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
6243 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
6244 |
ac_tool_warned=yes ;; |
|
6245 |
esac |
|
6246 |
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
|
6247 |
fi |
|
6248 |
else |
|
6249 |
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
|
6250 |
fi |
|
6251 |
|
|
6252 |
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
|
6253 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
|
6254 |
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
|
6255 |
if ${lt_cv_path_mainfest_tool+:} false; then : |
|
6256 |
$as_echo_n "(cached) " >&6 |
|
6257 |
else |
|
6258 |
lt_cv_path_mainfest_tool=no |
|
6259 |
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
|
6260 |
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
|
6261 |
cat conftest.err >&5 |
|
6262 |
if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
|
6263 |
lt_cv_path_mainfest_tool=yes |
|
6264 |
fi |
|
6265 |
rm -f conftest* |
|
6266 |
fi |
|
6267 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
|
6268 |
$as_echo "$lt_cv_path_mainfest_tool" >&6; } |
|
6269 |
if test "x$lt_cv_path_mainfest_tool" != xyes; then |
|
6270 |
MANIFEST_TOOL=: |
|
6271 |
fi |
|
6272 |
|
|
6273 |
|
|
6274 |
|
|
6275 |
|
|
6276 |
|
|
6277 |
|
|
6278 |
case $host_os in |
|
6279 |
rhapsody* | darwin*) |
|
6280 |
if test -n "$ac_tool_prefix"; then |
|
6281 |
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
|
6282 |
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
|
6283 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6284 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6285 |
if ${ac_cv_prog_DSYMUTIL+:} false; then : |
|
6286 |
$as_echo_n "(cached) " >&6 |
|
6287 |
else |
|
6288 |
if test -n "$DSYMUTIL"; then |
|
6289 |
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
|
6290 |
else |
|
6291 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6292 |
for as_dir in $PATH |
|
6293 |
do |
|
6294 |
IFS=$as_save_IFS |
|
6295 |
test -z "$as_dir" && as_dir=. |
|
6296 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6297 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
6298 |
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
|
6299 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6300 |
break 2 |
|
6301 |
fi |
|
6302 |
done |
|
6303 |
done |
|
6304 |
IFS=$as_save_IFS |
|
6305 |
|
|
6306 |
fi |
|
6307 |
fi |
|
6308 |
DSYMUTIL=$ac_cv_prog_DSYMUTIL |
|
6309 |
if test -n "$DSYMUTIL"; then |
|
6310 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
|
6311 |
$as_echo "$DSYMUTIL" >&6; } |
|
6312 |
else |
|
6313 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6314 |
$as_echo "no" >&6; } |
|
6315 |
fi |
|
6316 |
|
|
6317 |
|
|
6318 |
fi |
|
6319 |
if test -z "$ac_cv_prog_DSYMUTIL"; then |
|
6320 |
ac_ct_DSYMUTIL=$DSYMUTIL |
|
6321 |
# Extract the first word of "dsymutil", so it can be a program name with args. |
|
6322 |
set dummy dsymutil; ac_word=$2 |
|
6323 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6324 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6325 |
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
|
6326 |
$as_echo_n "(cached) " >&6 |
|
6327 |
else |
|
6328 |
if test -n "$ac_ct_DSYMUTIL"; then |
|
6329 |
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
|
6330 |
else |
|
6331 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6332 |
for as_dir in $PATH |
|
6333 |
do |
|
6334 |
IFS=$as_save_IFS |
|
6335 |
test -z "$as_dir" && as_dir=. |
|
6336 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6337 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
6338 |
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
|
6339 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6340 |
break 2 |
|
6341 |
fi |
|
6342 |
done |
|
6343 |
done |
|
6344 |
IFS=$as_save_IFS |
|
6345 |
|
|
6346 |
fi |
|
6347 |
fi |
|
6348 |
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
|
6349 |
if test -n "$ac_ct_DSYMUTIL"; then |
|
6350 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
|
6351 |
$as_echo "$ac_ct_DSYMUTIL" >&6; } |
|
6352 |
else |
|
6353 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6354 |
$as_echo "no" >&6; } |
|
6355 |
fi |
|
6356 |
|
|
6357 |
if test "x$ac_ct_DSYMUTIL" = x; then |
|
6358 |
DSYMUTIL=":" |
|
6359 |
else |
|
6360 |
case $cross_compiling:$ac_tool_warned in |
|
6361 |
yes:) |
|
6362 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
6363 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
6364 |
ac_tool_warned=yes ;; |
|
6365 |
esac |
|
6366 |
DSYMUTIL=$ac_ct_DSYMUTIL |
|
6367 |
fi |
|
6368 |
else |
|
6369 |
DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
|
6370 |
fi |
|
6371 |
|
|
6372 |
if test -n "$ac_tool_prefix"; then |
|
6373 |
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
|
6374 |
set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
|
6375 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6376 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6377 |
if ${ac_cv_prog_NMEDIT+:} false; then : |
|
6378 |
$as_echo_n "(cached) " >&6 |
|
6379 |
else |
|
6380 |
if test -n "$NMEDIT"; then |
|
6381 |
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
|
6382 |
else |
|
6383 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6384 |
for as_dir in $PATH |
|
6385 |
do |
|
6386 |
IFS=$as_save_IFS |
|
6387 |
test -z "$as_dir" && as_dir=. |
|
6388 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6389 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
6390 |
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
|
6391 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6392 |
break 2 |
|
6393 |
fi |
|
6394 |
done |
|
6395 |
done |
|
6396 |
IFS=$as_save_IFS |
|
6397 |
|
|
6398 |
fi |
|
6399 |
fi |
|
6400 |
NMEDIT=$ac_cv_prog_NMEDIT |
|
6401 |
if test -n "$NMEDIT"; then |
|
6402 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
|
6403 |
$as_echo "$NMEDIT" >&6; } |
|
6404 |
else |
|
6405 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6406 |
$as_echo "no" >&6; } |
|
6407 |
fi |
|
6408 |
|
|
6409 |
|
|
6410 |
fi |
|
6411 |
if test -z "$ac_cv_prog_NMEDIT"; then |
|
6412 |
ac_ct_NMEDIT=$NMEDIT |
|
6413 |
# Extract the first word of "nmedit", so it can be a program name with args. |
|
6414 |
set dummy nmedit; ac_word=$2 |
|
6415 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6416 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6417 |
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
|
6418 |
$as_echo_n "(cached) " >&6 |
|
6419 |
else |
|
6420 |
if test -n "$ac_ct_NMEDIT"; then |
|
6421 |
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
|
6422 |
else |
|
6423 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6424 |
for as_dir in $PATH |
|
6425 |
do |
|
6426 |
IFS=$as_save_IFS |
|
6427 |
test -z "$as_dir" && as_dir=. |
|
6428 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6429 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
6430 |
ac_cv_prog_ac_ct_NMEDIT="nmedit" |
|
6431 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6432 |
break 2 |
|
6433 |
fi |
|
6434 |
done |
|
6435 |
done |
|
6436 |
IFS=$as_save_IFS |
|
6437 |
|
|
6438 |
fi |
|
6439 |
fi |
|
6440 |
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
|
6441 |
if test -n "$ac_ct_NMEDIT"; then |
|
6442 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
|
6443 |
$as_echo "$ac_ct_NMEDIT" >&6; } |
|
6444 |
else |
|
6445 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6446 |
$as_echo "no" >&6; } |
|
6447 |
fi |
|
6448 |
|
|
6449 |
if test "x$ac_ct_NMEDIT" = x; then |
|
6450 |
NMEDIT=":" |
|
6451 |
else |
|
6452 |
case $cross_compiling:$ac_tool_warned in |
|
6453 |
yes:) |
|
6454 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
6455 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
6456 |
ac_tool_warned=yes ;; |
|
6457 |
esac |
|
6458 |
NMEDIT=$ac_ct_NMEDIT |
|
6459 |
fi |
|
6460 |
else |
|
6461 |
NMEDIT="$ac_cv_prog_NMEDIT" |
|
6462 |
fi |
|
6463 |
|
|
6464 |
if test -n "$ac_tool_prefix"; then |
|
6465 |
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
|
6466 |
set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
|
6467 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6468 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6469 |
if ${ac_cv_prog_LIPO+:} false; then : |
|
6470 |
$as_echo_n "(cached) " >&6 |
|
6471 |
else |
|
6472 |
if test -n "$LIPO"; then |
|
6473 |
ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
|
6474 |
else |
|
6475 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6476 |
for as_dir in $PATH |
|
6477 |
do |
|
6478 |
IFS=$as_save_IFS |
|
6479 |
test -z "$as_dir" && as_dir=. |
|
6480 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6481 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
6482 |
ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
|
6483 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6484 |
break 2 |
|
6485 |
fi |
|
6486 |
done |
|
6487 |
done |
|
6488 |
IFS=$as_save_IFS |
|
6489 |
|
|
6490 |
fi |
|
6491 |
fi |
|
6492 |
LIPO=$ac_cv_prog_LIPO |
|
6493 |
if test -n "$LIPO"; then |
|
6494 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
|
6495 |
$as_echo "$LIPO" >&6; } |
|
6496 |
else |
|
6497 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6498 |
$as_echo "no" >&6; } |
|
6499 |
fi |
|
6500 |
|
|
6501 |
|
|
6502 |
fi |
|
6503 |
if test -z "$ac_cv_prog_LIPO"; then |
|
6504 |
ac_ct_LIPO=$LIPO |
|
6505 |
# Extract the first word of "lipo", so it can be a program name with args. |
|
6506 |
set dummy lipo; ac_word=$2 |
|
6507 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6508 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6509 |
if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
|
6510 |
$as_echo_n "(cached) " >&6 |
|
6511 |
else |
|
6512 |
if test -n "$ac_ct_LIPO"; then |
|
6513 |
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
|
6514 |
else |
|
6515 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6516 |
for as_dir in $PATH |
|
6517 |
do |
|
6518 |
IFS=$as_save_IFS |
|
6519 |
test -z "$as_dir" && as_dir=. |
|
6520 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6521 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
6522 |
ac_cv_prog_ac_ct_LIPO="lipo" |
|
6523 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6524 |
break 2 |
|
6525 |
fi |
|
6526 |
done |
|
6527 |
done |
|
6528 |
IFS=$as_save_IFS |
|
6529 |
|
|
6530 |
fi |
|
6531 |
fi |
|
6532 |
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
|
6533 |
if test -n "$ac_ct_LIPO"; then |
|
6534 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
|
6535 |
$as_echo "$ac_ct_LIPO" >&6; } |
|
6536 |
else |
|
6537 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6538 |
$as_echo "no" >&6; } |
|
6539 |
fi |
|
6540 |
|
|
6541 |
if test "x$ac_ct_LIPO" = x; then |
|
6542 |
LIPO=":" |
|
6543 |
else |
|
6544 |
case $cross_compiling:$ac_tool_warned in |
|
6545 |
yes:) |
|
6546 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
6547 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
6548 |
ac_tool_warned=yes ;; |
|
6549 |
esac |
|
6550 |
LIPO=$ac_ct_LIPO |
|
6551 |
fi |
|
6552 |
else |
|
6553 |
LIPO="$ac_cv_prog_LIPO" |
|
6554 |
fi |
|
6555 |
|
|
6556 |
if test -n "$ac_tool_prefix"; then |
|
6557 |
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
|
6558 |
set dummy ${ac_tool_prefix}otool; ac_word=$2 |
|
6559 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6560 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6561 |
if ${ac_cv_prog_OTOOL+:} false; then : |
|
6562 |
$as_echo_n "(cached) " >&6 |
|
6563 |
else |
|
6564 |
if test -n "$OTOOL"; then |
|
6565 |
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
|
6566 |
else |
|
6567 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6568 |
for as_dir in $PATH |
|
6569 |
do |
|
6570 |
IFS=$as_save_IFS |
|
6571 |
test -z "$as_dir" && as_dir=. |
|
6572 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6573 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
6574 |
ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
|
6575 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6576 |
break 2 |
|
6577 |
fi |
|
6578 |
done |
|
6579 |
done |
|
6580 |
IFS=$as_save_IFS |
|
6581 |
|
|
6582 |
fi |
|
6583 |
fi |
|
6584 |
OTOOL=$ac_cv_prog_OTOOL |
|
6585 |
if test -n "$OTOOL"; then |
|
6586 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
|
6587 |
$as_echo "$OTOOL" >&6; } |
|
6588 |
else |
|
6589 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6590 |
$as_echo "no" >&6; } |
|
6591 |
fi |
|
6592 |
|
|
6593 |
|
|
6594 |
fi |
|
6595 |
if test -z "$ac_cv_prog_OTOOL"; then |
|
6596 |
ac_ct_OTOOL=$OTOOL |
|
6597 |
# Extract the first word of "otool", so it can be a program name with args. |
|
6598 |
set dummy otool; ac_word=$2 |
|
6599 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6600 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6601 |
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
|
6602 |
$as_echo_n "(cached) " >&6 |
|
6603 |
else |
|
6604 |
if test -n "$ac_ct_OTOOL"; then |
|
6605 |
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
|
6606 |
else |
|
6607 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6608 |
for as_dir in $PATH |
|
6609 |
do |
|
6610 |
IFS=$as_save_IFS |
|
6611 |
test -z "$as_dir" && as_dir=. |
|
6612 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6613 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
6614 |
ac_cv_prog_ac_ct_OTOOL="otool" |
|
6615 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6616 |
break 2 |
|
6617 |
fi |
|
6618 |
done |
|
6619 |
done |
|
6620 |
IFS=$as_save_IFS |
|
6621 |
|
|
6622 |
fi |
|
6623 |
fi |
|
6624 |
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
|
6625 |
if test -n "$ac_ct_OTOOL"; then |
|
6626 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
|
6627 |
$as_echo "$ac_ct_OTOOL" >&6; } |
|
6628 |
else |
|
6629 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6630 |
$as_echo "no" >&6; } |
|
6631 |
fi |
|
6632 |
|
|
6633 |
if test "x$ac_ct_OTOOL" = x; then |
|
6634 |
OTOOL=":" |
|
6635 |
else |
|
6636 |
case $cross_compiling:$ac_tool_warned in |
|
6637 |
yes:) |
|
6638 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
6639 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
6640 |
ac_tool_warned=yes ;; |
|
6641 |
esac |
|
6642 |
OTOOL=$ac_ct_OTOOL |
|
6643 |
fi |
|
6644 |
else |
|
6645 |
OTOOL="$ac_cv_prog_OTOOL" |
|
6646 |
fi |
|
6647 |
|
|
6648 |
if test -n "$ac_tool_prefix"; then |
|
6649 |
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
|
6650 |
set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
|
6651 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6652 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6653 |
if ${ac_cv_prog_OTOOL64+:} false; then : |
|
6654 |
$as_echo_n "(cached) " >&6 |
|
6655 |
else |
|
6656 |
if test -n "$OTOOL64"; then |
|
6657 |
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
|
6658 |
else |
|
6659 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6660 |
for as_dir in $PATH |
|
6661 |
do |
|
6662 |
IFS=$as_save_IFS |
|
6663 |
test -z "$as_dir" && as_dir=. |
|
6664 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6665 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
6666 |
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
|
6667 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6668 |
break 2 |
|
6669 |
fi |
|
6670 |
done |
|
6671 |
done |
|
6672 |
IFS=$as_save_IFS |
|
6673 |
|
|
6674 |
fi |
|
6675 |
fi |
|
6676 |
OTOOL64=$ac_cv_prog_OTOOL64 |
|
6677 |
if test -n "$OTOOL64"; then |
|
6678 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
|
6679 |
$as_echo "$OTOOL64" >&6; } |
|
6680 |
else |
|
6681 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6682 |
$as_echo "no" >&6; } |
|
6683 |
fi |
|
6684 |
|
|
6685 |
|
|
6686 |
fi |
|
6687 |
if test -z "$ac_cv_prog_OTOOL64"; then |
|
6688 |
ac_ct_OTOOL64=$OTOOL64 |
|
6689 |
# Extract the first word of "otool64", so it can be a program name with args. |
|
6690 |
set dummy otool64; ac_word=$2 |
|
6691 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6692 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6693 |
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
|
6694 |
$as_echo_n "(cached) " >&6 |
|
6695 |
else |
|
6696 |
if test -n "$ac_ct_OTOOL64"; then |
|
6697 |
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
|
6698 |
else |
|
6699 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6700 |
for as_dir in $PATH |
|
6701 |
do |
|
6702 |
IFS=$as_save_IFS |
|
6703 |
test -z "$as_dir" && as_dir=. |
|
6704 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6705 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
|
6706 |
ac_cv_prog_ac_ct_OTOOL64="otool64" |
|
6707 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6708 |
break 2 |
|
6709 |
fi |
|
6710 |
done |
|
6711 |
done |
|
6712 |
IFS=$as_save_IFS |
|
6713 |
|
|
6714 |
fi |
|
6715 |
fi |
|
6716 |
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
|
6717 |
if test -n "$ac_ct_OTOOL64"; then |
|
6718 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
|
6719 |
$as_echo "$ac_ct_OTOOL64" >&6; } |
|
6720 |
else |
|
6721 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6722 |
$as_echo "no" >&6; } |
|
6723 |
fi |
|
6724 |
|
|
6725 |
if test "x$ac_ct_OTOOL64" = x; then |
|
6726 |
OTOOL64=":" |
|
6727 |
else |
|
6728 |
case $cross_compiling:$ac_tool_warned in |
|
6729 |
yes:) |
|
6730 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
6731 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
6732 |
ac_tool_warned=yes ;; |
|
6733 |
esac |
|
6734 |
OTOOL64=$ac_ct_OTOOL64 |
|
6735 |
fi |
|
6736 |
else |
|
6737 |
OTOOL64="$ac_cv_prog_OTOOL64" |
|
6738 |
fi |
|
6739 |
|
|
6740 |
|
|
6741 |
|
|
6742 |
|
|
6743 |
|
|
6744 |
|
|
6745 |
|
|
6746 |
|
|
6747 |
|
|
6748 |
|
|
6749 |
|
|
6750 |
|
|
6751 |
|
|
6752 |
|
|
6753 |
|
|
6754 |
|
|
6755 |
|
|
6756 |
|
|
6757 |
|
|
6758 |
|
|
6759 |
|
|
6760 |
|
|
6761 |
|
|
6762 |
|
|
6763 |
|
|
6764 |
|
|
6765 |
|
|
6766 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
|
6767 |
$as_echo_n "checking for -single_module linker flag... " >&6; } |
|
6768 |
if ${lt_cv_apple_cc_single_mod+:} false; then : |
|
6769 |
$as_echo_n "(cached) " >&6 |
|
6770 |
else |
|
6771 |
lt_cv_apple_cc_single_mod=no |
|
6772 |
if test -z "${LT_MULTI_MODULE}"; then |
|
6773 |
# By default we will add the -single_module flag. You can override |
|
6774 |
# by either setting the environment variable LT_MULTI_MODULE |
|
6775 |
# non-empty at configure time, or by adding -multi_module to the |
|
6776 |
# link flags. |
|
6777 |
rm -rf libconftest.dylib* |
|
6778 |
echo "int foo(void){return 1;}" > conftest.c |
|
6779 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
|
6780 |
-dynamiclib -Wl,-single_module conftest.c" >&5 |
|
6781 |
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
|
6782 |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
|
6783 |
_lt_result=$? |
|
6784 |
# If there is a non-empty error log, and "single_module" |
|
6785 |
# appears in it, assume the flag caused a linker warning |
|
6786 |
if test -s conftest.err && $GREP single_module conftest.err; then |
|
6787 |
cat conftest.err >&5 |
|
6788 |
# Otherwise, if the output was created with a 0 exit code from |
|
6789 |
# the compiler, it worked. |
|
6790 |
elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
|
6791 |
lt_cv_apple_cc_single_mod=yes |
|
6792 |
else |
|
6793 |
cat conftest.err >&5 |
|
6794 |
fi |
|
6795 |
rm -rf libconftest.dylib* |
|
6796 |
rm -f conftest.* |
|
6797 |
fi |
|
6798 |
fi |
|
6799 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
|
6800 |
$as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
|
6801 |
|
|
6802 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
|
6803 |
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
|
6804 |
if ${lt_cv_ld_exported_symbols_list+:} false; then : |
|
6805 |
$as_echo_n "(cached) " >&6 |
|
6806 |
else |
|
6807 |
lt_cv_ld_exported_symbols_list=no |
|
6808 |
save_LDFLAGS=$LDFLAGS |
|
6809 |
echo "_main" > conftest.sym |
|
6810 |
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
|
6811 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6812 |
/* end confdefs.h. */ |
|
6813 |
|
|
6814 |
int |
|
6815 |
main () |
|
6816 |
{ |
|
6817 |
|
|
6818 |
; |
|
6819 |
return 0; |
|
6820 |
} |
|
6821 |
_ACEOF |
|
6822 |
if ac_fn_c_try_link "$LINENO"; then : |
|
6823 |
lt_cv_ld_exported_symbols_list=yes |
|
6824 |
else |
|
6825 |
lt_cv_ld_exported_symbols_list=no |
|
6826 |
fi |
|
6827 |
rm -f core conftest.err conftest.$ac_objext \ |
|
6828 |
conftest$ac_exeext conftest.$ac_ext |
|
6829 |
LDFLAGS="$save_LDFLAGS" |
|
6830 |
|
|
6831 |
fi |
|
6832 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
|
6833 |
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
|
6834 |
|
|
6835 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
|
6836 |
$as_echo_n "checking for -force_load linker flag... " >&6; } |
|
6837 |
if ${lt_cv_ld_force_load+:} false; then : |
|
6838 |
$as_echo_n "(cached) " >&6 |
|
6839 |
else |
|
6840 |
lt_cv_ld_force_load=no |
|
6841 |
cat > conftest.c << _LT_EOF |
|
6842 |
int forced_loaded() { return 2;} |
|
6843 |
_LT_EOF |
|
6844 |
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
|
6845 |
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
|
6846 |
echo "$AR cru libconftest.a conftest.o" >&5 |
|
6847 |
$AR cru libconftest.a conftest.o 2>&5 |
|
6848 |
echo "$RANLIB libconftest.a" >&5 |
|
6849 |
$RANLIB libconftest.a 2>&5 |
|
6850 |
cat > conftest.c << _LT_EOF |
|
6851 |
int main() { return 0;} |
|
6852 |
_LT_EOF |
|
6853 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
|
6854 |
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
|
6855 |
_lt_result=$? |
|
6856 |
if test -s conftest.err && $GREP force_load conftest.err; then |
|
6857 |
cat conftest.err >&5 |
|
6858 |
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
|
6859 |
lt_cv_ld_force_load=yes |
|
6860 |
else |
|
6861 |
cat conftest.err >&5 |
|
6862 |
fi |
|
6863 |
rm -f conftest.err libconftest.a conftest conftest.c |
|
6864 |
rm -rf conftest.dSYM |
|
6865 |
|
|
6866 |
fi |
|
6867 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
|
6868 |
$as_echo "$lt_cv_ld_force_load" >&6; } |
|
6869 |
case $host_os in |
|
6870 |
rhapsody* | darwin1.[012]) |
|
6871 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
|
6872 |
darwin1.*) |
|
6873 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
|
6874 |
darwin*) # darwin 5.x on |
|
6875 |
# if running on 10.5 or later, the deployment target defaults |
|
6876 |
# to the OS version, if on x86, and 10.4, the deployment |
|
6877 |
# target defaults to 10.4. Don't you love it? |
|
6878 |
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
|
6879 |
10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
|
6880 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
|
6881 |
10.[012]*) |
|
6882 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
|
6883 |
10.*) |
|
6884 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
|
6885 |
esac |
|
6886 |
;; |
|
6887 |
esac |
|
6888 |
if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
|
6889 |
_lt_dar_single_mod='$single_module' |
|
6890 |
fi |
|
6891 |
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
|
6892 |
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
|
6893 |
else |
|
6894 |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
6895 |
fi |
|
6896 |
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
|
6897 |
_lt_dsymutil='~$DSYMUTIL $lib || :' |
|
6898 |
else |
|
6899 |
_lt_dsymutil= |
|
6900 |
fi |
|
6901 |
;; |
|
6902 |
esac |
|
6903 |
|
|
6904 |
ac_ext=c |
|
6905 |
ac_cpp='$CPP $CPPFLAGS' |
|
6906 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6907 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6908 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
6909 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
|
6910 |
$as_echo_n "checking how to run the C preprocessor... " >&6; } |
|
6911 |
# On Suns, sometimes $CPP names a directory. |
|
6912 |
if test -n "$CPP" && test -d "$CPP"; then |
|
6913 |
CPP= |
|
6914 |
fi |
|
6915 |
if test -z "$CPP"; then |
|
6916 |
if ${ac_cv_prog_CPP+:} false; then : |
|
6917 |
$as_echo_n "(cached) " >&6 |
|
6918 |
else |
|
6919 |
# Double quotes because CPP needs to be expanded |
|
6920 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
6921 |
do |
|
6922 |
ac_preproc_ok=false |
|
6923 |
for ac_c_preproc_warn_flag in '' yes |
|
6924 |
do |
|
6925 |
# Use a header file that comes with gcc, so configuring glibc |
|
6926 |
# with a fresh cross-compiler works. |
|
6927 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
6928 |
# <limits.h> exists even on freestanding compilers. |
|
6929 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
6930 |
# not just through cpp. "Syntax error" is here to catch this case. |
|
6931 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6932 |
/* end confdefs.h. */ |
|
6933 |
#ifdef __STDC__ |
|
6934 |
# include <limits.h> |
|
6935 |
#else |
|
6936 |
# include <assert.h> |
|
6937 |
#endif |
|
6938 |
Syntax error |
|
6939 |
_ACEOF |
|
6940 |
if ac_fn_c_try_cpp "$LINENO"; then : |
|
6941 |
|
|
6942 |
else |
|
6943 |
# Broken: fails on valid input. |
|
6944 |
continue |
|
6945 |
fi |
|
6946 |
rm -f conftest.err conftest.i conftest.$ac_ext |
|
6947 |
|
|
6948 |
# OK, works on sane cases. Now check whether nonexistent headers |
|
6949 |
# can be detected and how. |
|
6950 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6951 |
/* end confdefs.h. */ |
|
6952 |
#include <ac_nonexistent.h> |
|
6953 |
_ACEOF |
|
6954 |
if ac_fn_c_try_cpp "$LINENO"; then : |
|
6955 |
# Broken: success on invalid input. |
|
6956 |
continue |
|
6957 |
else |
|
6958 |
# Passes both tests. |
|
6959 |
ac_preproc_ok=: |
|
6960 |
break |
|
6961 |
fi |
|
6962 |
rm -f conftest.err conftest.i conftest.$ac_ext |
|
6963 |
|
|
6964 |
done |
|
6965 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
6966 |
rm -f conftest.i conftest.err conftest.$ac_ext |
|
6967 |
if $ac_preproc_ok; then : |
|
6968 |
break |
|
6969 |
fi |
|
6970 |
|
|
6971 |
done |
|
6972 |
ac_cv_prog_CPP=$CPP |
|
6973 |
|
|
6974 |
fi |
|
6975 |
CPP=$ac_cv_prog_CPP |
|
6976 |
else |
|
6977 |
ac_cv_prog_CPP=$CPP |
|
6978 |
fi |
|
6979 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|
6980 |
$as_echo "$CPP" >&6; } |
|
6981 |
ac_preproc_ok=false |
|
6982 |
for ac_c_preproc_warn_flag in '' yes |
|
6983 |
do |
|
6984 |
# Use a header file that comes with gcc, so configuring glibc |
|
6985 |
# with a fresh cross-compiler works. |
|
6986 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
6987 |
# <limits.h> exists even on freestanding compilers. |
|
6988 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
6989 |
# not just through cpp. "Syntax error" is here to catch this case. |
|
6990 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6991 |
/* end confdefs.h. */ |
|
6992 |
#ifdef __STDC__ |
|
6993 |
# include <limits.h> |
|
6994 |
#else |
|
6995 |
# include <assert.h> |
|
6996 |
#endif |
|
6997 |
Syntax error |
|
6998 |
_ACEOF |
|
6999 |
if ac_fn_c_try_cpp "$LINENO"; then : |
|
7000 |
|
|
7001 |
else |
|
7002 |
# Broken: fails on valid input. |
|
7003 |
continue |
|
7004 |
fi |
|
7005 |
rm -f conftest.err conftest.i conftest.$ac_ext |
|
7006 |
|
|
7007 |
# OK, works on sane cases. Now check whether nonexistent headers |
|
7008 |
# can be detected and how. |
|
7009 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7010 |
/* end confdefs.h. */ |
|
7011 |
#include <ac_nonexistent.h> |
|
7012 |
_ACEOF |
|
7013 |
if ac_fn_c_try_cpp "$LINENO"; then : |
|
7014 |
# Broken: success on invalid input. |
|
7015 |
continue |
|
7016 |
else |
|
7017 |
# Passes both tests. |
|
7018 |
ac_preproc_ok=: |
|
7019 |
break |
|
7020 |
fi |
|
7021 |
rm -f conftest.err conftest.i conftest.$ac_ext |
|
7022 |
|
|
7023 |
done |
|
7024 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
7025 |
rm -f conftest.i conftest.err conftest.$ac_ext |
|
7026 |
if $ac_preproc_ok; then : |
|
7027 |
|
|
7028 |
else |
|
7029 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
7030 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
7031 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
|
7032 |
See \`config.log' for more details" "$LINENO" 5; } |
|
7033 |
fi |
|
7034 |
|
|
7035 |
ac_ext=c |
|
7036 |
ac_cpp='$CPP $CPPFLAGS' |
|
7037 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
7038 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
7039 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
7040 |
|
|
7041 |
|
|
7042 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
|
7043 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
|
7044 |
if ${ac_cv_header_stdc+:} false; then : |
|
7045 |
$as_echo_n "(cached) " >&6 |
|
7046 |
else |
|
7047 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7048 |
/* end confdefs.h. */ |
|
7049 |
#include <stdlib.h> |
|
7050 |
#include <stdarg.h> |
|
7051 |
#include <string.h> |
|
7052 |
#include <float.h> |
|
7053 |
|
|
7054 |
int |
|
7055 |
main () |
|
7056 |
{ |
|
7057 |
|
|
7058 |
; |
|
7059 |
return 0; |
|
7060 |
} |
|
7061 |
_ACEOF |
|
7062 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
7063 |
ac_cv_header_stdc=yes |
|
7064 |
else |
|
7065 |
ac_cv_header_stdc=no |
|
7066 |
fi |
|
7067 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
7068 |
|
|
7069 |
if test $ac_cv_header_stdc = yes; then |
|
7070 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
7071 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7072 |
/* end confdefs.h. */ |
|
7073 |
#include <string.h> |
|
7074 |
|
|
7075 |
_ACEOF |
|
7076 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
7077 |
$EGREP "memchr" >/dev/null 2>&1; then : |
|
7078 |
|
|
7079 |
else |
|
7080 |
ac_cv_header_stdc=no |
|
7081 |
fi |
|
7082 |
rm -f conftest* |
|
7083 |
|
|
7084 |
fi |
|
7085 |
|
|
7086 |
if test $ac_cv_header_stdc = yes; then |
|
7087 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
7088 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7089 |
/* end confdefs.h. */ |
|
7090 |
#include <stdlib.h> |
|
7091 |
|
|
7092 |
_ACEOF |
|
7093 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
7094 |
$EGREP "free" >/dev/null 2>&1; then : |
|
7095 |
|
|
7096 |
else |
|
7097 |
ac_cv_header_stdc=no |
|
7098 |
fi |
|
7099 |
rm -f conftest* |
|
7100 |
|
|
7101 |
fi |
|
7102 |
|
|
7103 |
if test $ac_cv_header_stdc = yes; then |
|
7104 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
7105 |
if test "$cross_compiling" = yes; then : |
|
7106 |
: |
|
7107 |
else |
|
7108 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
7109 |
/* end confdefs.h. */ |
|
7110 |
#include <ctype.h> |
|
7111 |
#include <stdlib.h> |
|
7112 |
#if ((' ' & 0x0FF) == 0x020) |
|
7113 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
7114 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
7115 |
#else |
|
7116 |
# define ISLOWER(c) \ |
|
7117 |
(('a' <= (c) && (c) <= 'i') \ |
|
7118 |
|| ('j' <= (c) && (c) <= 'r') \ |
|
7119 |
|| ('s' <= (c) && (c) <= 'z')) |
|
7120 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
7121 |
#endif |
|
7122 |
|
|
7123 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
7124 |
int |
|
7125 |
main () |
|
7126 |
{ |
|
7127 |
int i; |
|
7128 |
for (i = 0; i < 256; i++) |
|
7129 |
if (XOR (islower (i), ISLOWER (i)) |
|
7130 |
|| toupper (i) != TOUPPER (i)) |
|
7131 |
return 2; |
|
7132 |
return 0; |
|
7133 |
} |
|
7134 |
_ACEOF |
|
7135 |
if ac_fn_c_try_run "$LINENO"; then : |
|
7136 |
|
|
7137 |
else |
|
7138 |
ac_cv_header_stdc=no |
|
7139 |
fi |
|
7140 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
7141 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
7142 |
fi |
|
7143 |
|
|
7144 |
fi |
|
7145 |
fi |
|
7146 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
|
7147 |
$as_echo "$ac_cv_header_stdc" >&6; } |
|
7148 |
if test $ac_cv_header_stdc = yes; then |
|
7149 |
|
|
7150 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
|
7151 |
|
|
7152 |
fi |
|
7153 |
|
|
7154 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
7155 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
7156 |
inttypes.h stdint.h unistd.h |
|
7157 |
do : |
|
7158 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
7159 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
|
7160 |
" |
|
7161 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
7162 |
cat >>confdefs.h <<_ACEOF |
|
7163 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
7164 |
_ACEOF |
|
7165 |
|
|
7166 |
fi |
|
7167 |
|
|
7168 |
done |
|
7169 |
|
|
7170 |
|
|
7171 |
for ac_header in dlfcn.h |
|
7172 |
do : |
|
7173 |
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
|
7174 |
" |
|
7175 |
if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
|
7176 |
cat >>confdefs.h <<_ACEOF |
|
7177 |
#define HAVE_DLFCN_H 1 |
|
7178 |
_ACEOF |
|
7179 |
|
|
7180 |
fi |
|
7181 |
|
|
7182 |
done |
|
7183 |
|
|
7184 |
|
|
7185 |
|
|
7186 |
|
|
7187 |
|
|
7188 |
# Set options |
|
7189 |
|
|
7190 |
|
|
7191 |
|
|
7192 |
enable_dlopen=no |
|
7193 |
|
|
7194 |
|
|
7195 |
enable_win32_dll=no |
|
7196 |
|
|
7197 |
|
|
7198 |
# Check whether --enable-shared was given. |
|
7199 |
if test "${enable_shared+set}" = set; then : |
|
7200 |
enableval=$enable_shared; p=${PACKAGE-default} |
|
7201 |
case $enableval in |
|
7202 |
yes) enable_shared=yes ;; |
|
7203 |
no) enable_shared=no ;; |
|
7204 |
*) |
|
7205 |
enable_shared=no |
|
7206 |
# Look at the argument we got. We use all the common list separators. |
|
7207 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
7208 |
for pkg in $enableval; do |
|
7209 |
IFS="$lt_save_ifs" |
|
7210 |
if test "X$pkg" = "X$p"; then |
|
7211 |
enable_shared=yes |
|
7212 |
fi |
|
7213 |
done |
|
7214 |
IFS="$lt_save_ifs" |
|
7215 |
;; |
|
7216 |
esac |
|
7217 |
else |
|
7218 |
enable_shared=yes |
|
7219 |
fi |
|
7220 |
|
|
7221 |
|
|
7222 |
|
|
7223 |
|
|
7224 |
|
|
7225 |
|
|
7226 |
|
|
7227 |
|
|
7228 |
|
|
7229 |
# Check whether --enable-static was given. |
|
7230 |
if test "${enable_static+set}" = set; then : |
|
7231 |
enableval=$enable_static; p=${PACKAGE-default} |
|
7232 |
case $enableval in |
|
7233 |
yes) enable_static=yes ;; |
|
7234 |
no) enable_static=no ;; |
|
7235 |
*) |
|
7236 |
enable_static=no |
|
7237 |
# Look at the argument we got. We use all the common list separators. |
|
7238 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
7239 |
for pkg in $enableval; do |
|
7240 |
IFS="$lt_save_ifs" |
|
7241 |
if test "X$pkg" = "X$p"; then |
|
7242 |
enable_static=yes |
|
7243 |
fi |
|
7244 |
done |
|
7245 |
IFS="$lt_save_ifs" |
|
7246 |
;; |
|
7247 |
esac |
|
7248 |
else |
|
7249 |
enable_static=yes |
|
7250 |
fi |
|
7251 |
|
|
7252 |
|
|
7253 |
|
|
7254 |
|
|
7255 |
|
|
7256 |
|
|
7257 |
|
|
7258 |
|
|
7259 |
|
|
7260 |
|
|
7261 |
# Check whether --with-pic was given. |
|
7262 |
if test "${with_pic+set}" = set; then : |
|
7263 |
withval=$with_pic; lt_p=${PACKAGE-default} |
|
7264 |
case $withval in |
|
7265 |
yes|no) pic_mode=$withval ;; |
|
7266 |
*) |
|
7267 |
pic_mode=default |
|
7268 |
# Look at the argument we got. We use all the common list separators. |
|
7269 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
7270 |
for lt_pkg in $withval; do |
|
7271 |
IFS="$lt_save_ifs" |
|
7272 |
if test "X$lt_pkg" = "X$lt_p"; then |
|
7273 |
pic_mode=yes |
|
7274 |
fi |
|
7275 |
done |
|
7276 |
IFS="$lt_save_ifs" |
|
7277 |
;; |
|
7278 |
esac |
|
7279 |
else |
|
7280 |
pic_mode=default |
|
7281 |
fi |
|
7282 |
|
|
7283 |
|
|
7284 |
test -z "$pic_mode" && pic_mode=default |
|
7285 |
|
|
7286 |
|
|
7287 |
|
|
7288 |
|
|
7289 |
|
|
7290 |
|
|
7291 |
|
|
7292 |
# Check whether --enable-fast-install was given. |
|
7293 |
if test "${enable_fast_install+set}" = set; then : |
|
7294 |
enableval=$enable_fast_install; p=${PACKAGE-default} |
|
7295 |
case $enableval in |
|
7296 |
yes) enable_fast_install=yes ;; |
|
7297 |
no) enable_fast_install=no ;; |
|
7298 |
*) |
|
7299 |
enable_fast_install=no |
|
7300 |
# Look at the argument we got. We use all the common list separators. |
|
7301 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
7302 |
for pkg in $enableval; do |
|
7303 |
IFS="$lt_save_ifs" |
|
7304 |
if test "X$pkg" = "X$p"; then |
|
7305 |
enable_fast_install=yes |
|
7306 |
fi |
|
7307 |
done |
|
7308 |
IFS="$lt_save_ifs" |
|
7309 |
;; |
|
7310 |
esac |
|
7311 |
else |
|
7312 |
enable_fast_install=yes |
|
7313 |
fi |
|
7314 |
|
|
7315 |
|
|
7316 |
|
|
7317 |
|
|
7318 |
|
|
7319 |
|
|
7320 |
|
|
7321 |
|
|
7322 |
|
|
7323 |
|
|
7324 |
|
|
7325 |
# This can be used to rebuild libtool when needed |
|
7326 |
LIBTOOL_DEPS="$ltmain" |
|
7327 |
|
|
7328 |
# Always use our own libtool. |
|
7329 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
|
7330 |
|
|
7331 |
|
|
7332 |
|
|
7333 |
|
|
7334 |
|
|
7335 |
|
|
7336 |
|
|
7337 |
|
|
7338 |
|
|
7339 |
|
|
7340 |
|
|
7341 |
|
|
7342 |
|
|
7343 |
|
|
7344 |
|
|
7345 |
|
|
7346 |
|
|
7347 |
|
|
7348 |
|
|
7349 |
|
|
7350 |
|
|
7351 |
|
|
7352 |
|
|
7353 |
|
|
7354 |
|
|
7355 |
|
|
7356 |
|
|
7357 |
|
|
7358 |
|
|
7359 |
|
|
7360 |
test -z "$LN_S" && LN_S="ln -s" |
|
7361 |
|
|
7362 |
|
|
7363 |
|
|
7364 |
|
|
7365 |
|
|
7366 |
|
|
7367 |
|
|
7368 |
|
|
7369 |
|
|
7370 |
|
|
7371 |
|
|
7372 |
|
|
7373 |
|
|
7374 |
|
|
7375 |
if test -n "${ZSH_VERSION+set}" ; then |
|
7376 |
setopt NO_GLOB_SUBST |
|
7377 |
fi |
|
7378 |
|
|
7379 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
|
7380 |
$as_echo_n "checking for objdir... " >&6; } |
|
7381 |
if ${lt_cv_objdir+:} false; then : |
|
7382 |
$as_echo_n "(cached) " >&6 |
|
7383 |
else |
|
7384 |
rm -f .libs 2>/dev/null |
|
7385 |
mkdir .libs 2>/dev/null |
|
7386 |
if test -d .libs; then |
|
7387 |
lt_cv_objdir=.libs |
|
7388 |
else |
|
7389 |
# MS-DOS does not allow filenames that begin with a dot. |
|
7390 |
lt_cv_objdir=_libs |
|
7391 |
fi |
|
7392 |
rmdir .libs 2>/dev/null |
|
7393 |
fi |
|
7394 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
|
7395 |
$as_echo "$lt_cv_objdir" >&6; } |
|
7396 |
objdir=$lt_cv_objdir |
|
7397 |
|
|
7398 |
|
|
7399 |
|
|
7400 |
|
|
7401 |
|
|
7402 |
cat >>confdefs.h <<_ACEOF |
|
7403 |
#define LT_OBJDIR "$lt_cv_objdir/" |
|
7404 |
_ACEOF |
|
7405 |
|
|
7406 |
|
|
7407 |
|
|
7408 |
|
|
7409 |
case $host_os in |
|
7410 |
aix3*) |
|
7411 |
# AIX sometimes has problems with the GCC collect2 program. For some |
|
7412 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
|
7413 |
# vanish in a puff of smoke. |
|
7414 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
|
7415 |
COLLECT_NAMES= |
|
7416 |
export COLLECT_NAMES |
|
7417 |
fi |
|
7418 |
;; |
|
7419 |
esac |
|
7420 |
|
|
7421 |
# Global variables: |
|
7422 |
ofile=libtool |
|
7423 |
can_build_shared=yes |
|
7424 |
|
|
7425 |
# All known linkers require a `.a' archive for static linking (except MSVC, |
|
7426 |
# which needs '.lib'). |
|
7427 |
libext=a |
|
7428 |
|
|
7429 |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
7430 |
|
|
7431 |
old_CC="$CC" |
|
7432 |
old_CFLAGS="$CFLAGS" |
|
7433 |
|
|
7434 |
# Set sane defaults for various variables |
|
7435 |
test -z "$CC" && CC=cc |
|
7436 |
test -z "$LTCC" && LTCC=$CC |
|
7437 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
|
7438 |
test -z "$LD" && LD=ld |
|
7439 |
test -z "$ac_objext" && ac_objext=o |
|
7440 |
|
|
7441 |
for cc_temp in $compiler""; do |
|
7442 |
case $cc_temp in |
|
7443 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
7444 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
7445 |
\-*) ;; |
|
7446 |
*) break;; |
|
7447 |
esac |
|
7448 |
done |
|
7449 |
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
|
7450 |
|
|
7451 |
|
|
7452 |
# Only perform the check for file, if the check method requires it |
|
7453 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
7454 |
case $deplibs_check_method in |
|
7455 |
file_magic*) |
|
7456 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
|
7457 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
|
7458 |
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
|
7459 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
|
7460 |
$as_echo_n "(cached) " >&6 |
|
7461 |
else |
|
7462 |
case $MAGIC_CMD in |
|
7463 |
[\\/*] | ?:[\\/]*) |
|
7464 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
7465 |
;; |
|
7466 |
*) |
|
7467 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
|
7468 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
7469 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
|
7470 |
for ac_dir in $ac_dummy; do |
|
7471 |
IFS="$lt_save_ifs" |
|
7472 |
test -z "$ac_dir" && ac_dir=. |
|
7473 |
if test -f $ac_dir/${ac_tool_prefix}file; then |
|
7474 |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
|
7475 |
if test -n "$file_magic_test_file"; then |
|
7476 |
case $deplibs_check_method in |
|
7477 |
"file_magic "*) |
|
7478 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
|
7479 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
7480 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
7481 |
$EGREP "$file_magic_regex" > /dev/null; then |
|
7482 |
: |
|
7483 |
else |
|
7484 |
cat <<_LT_EOF 1>&2 |
|
7485 |
|
|
7486 |
*** Warning: the command libtool uses to detect shared libraries, |
|
7487 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
|
7488 |
*** The result is that libtool may fail to recognize shared libraries |
|
7489 |
*** as such. This will affect the creation of libtool libraries that |
|
7490 |
*** depend on shared libraries, but programs linked with such libtool |
|
7491 |
*** libraries will work regardless of this problem. Nevertheless, you |
|
7492 |
*** may want to report the problem to your system manager and/or to |
|
7493 |
*** bug-libtool@gnu.org |
|
7494 |
|
|
7495 |
_LT_EOF |
|
7496 |
fi ;; |
|
7497 |
esac |
|
7498 |
fi |
|
7499 |
break |
|
7500 |
fi |
|
7501 |
done |
|
7502 |
IFS="$lt_save_ifs" |
|
7503 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
|
7504 |
;; |
|
7505 |
esac |
|
7506 |
fi |
|
7507 |
|
|
7508 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
7509 |
if test -n "$MAGIC_CMD"; then |
|
7510 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
|
7511 |
$as_echo "$MAGIC_CMD" >&6; } |
|
7512 |
else |
|
7513 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
7514 |
$as_echo "no" >&6; } |
|
7515 |
fi |
|
7516 |
|
|
7517 |
|
|
7518 |
|
|
7519 |
|
|
7520 |
|
|
7521 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
|
7522 |
if test -n "$ac_tool_prefix"; then |
|
7523 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
|
7524 |
$as_echo_n "checking for file... " >&6; } |
|
7525 |
if ${lt_cv_path_MAGIC_CMD+:} false; then : |
|
7526 |
$as_echo_n "(cached) " >&6 |
|
7527 |
else |
|
7528 |
case $MAGIC_CMD in |
|
7529 |
[\\/*] | ?:[\\/]*) |
|
7530 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
7531 |
;; |
|
7532 |
*) |
|
7533 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
|
7534 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
7535 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
|
7536 |
for ac_dir in $ac_dummy; do |
|
7537 |
IFS="$lt_save_ifs" |
|
7538 |
test -z "$ac_dir" && ac_dir=. |
|
7539 |
if test -f $ac_dir/file; then |
|
7540 |
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
|
7541 |
if test -n "$file_magic_test_file"; then |
|
7542 |
case $deplibs_check_method in |
|
7543 |
"file_magic "*) |
|
7544 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
|
7545 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
7546 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
7547 |
$EGREP "$file_magic_regex" > /dev/null; then |
|
7548 |
: |
|
7549 |
else |
|
7550 |
cat <<_LT_EOF 1>&2 |
|
7551 |
|
|
7552 |
*** Warning: the command libtool uses to detect shared libraries, |
|
7553 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
|
7554 |
*** The result is that libtool may fail to recognize shared libraries |
|
7555 |
*** as such. This will affect the creation of libtool libraries that |
|
7556 |
*** depend on shared libraries, but programs linked with such libtool |
|
7557 |
*** libraries will work regardless of this problem. Nevertheless, you |
|
7558 |
*** may want to report the problem to your system manager and/or to |
|
7559 |
*** bug-libtool@gnu.org |
|
7560 |
|
|
7561 |
_LT_EOF |
|
7562 |
fi ;; |
|
7563 |
esac |
|
7564 |
fi |
|
7565 |
break |
|
7566 |
fi |
|
7567 |
done |
|
7568 |
IFS="$lt_save_ifs" |
|
7569 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
|
7570 |
;; |
|
7571 |
esac |
|
7572 |
fi |
|
7573 |
|
|
7574 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
7575 |
if test -n "$MAGIC_CMD"; then |
|
7576 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
|
7577 |
$as_echo "$MAGIC_CMD" >&6; } |
|
7578 |
else |
|
7579 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
7580 |
$as_echo "no" >&6; } |
|
7581 |
fi |
|
7582 |
|
|
7583 |
|
|
7584 |
else |
|
7585 |
MAGIC_CMD=: |
|
7586 |
fi |
|
7587 |
fi |
|
7588 |
|
|
7589 |
fi |
|
7590 |
;; |
|
7591 |
esac |
|
7592 |
|
|
7593 |
# Use C for the default configuration in the libtool script |
|
7594 |
|
|
7595 |
lt_save_CC="$CC" |
|
7596 |
ac_ext=c |
|
7597 |
ac_cpp='$CPP $CPPFLAGS' |
|
7598 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
7599 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
7600 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
7601 |
|
|
7602 |
|
|
7603 |
# Source file extension for C test sources. |
|
7604 |
ac_ext=c |
|
7605 |
|
|
7606 |
# Object file extension for compiled C test sources. |
|
7607 |
objext=o |
|
7608 |
objext=$objext |
|
7609 |
|
|
7610 |
# Code to be used in simple compile tests |
|
7611 |
lt_simple_compile_test_code="int some_variable = 0;" |
|
7612 |
|
|
7613 |
# Code to be used in simple link tests |
|
7614 |
lt_simple_link_test_code='int main(){return(0);}' |
|
7615 |
|
|
7616 |
|
|
7617 |
|
|
7618 |
|
|
7619 |
|
|
7620 |
|
|
7621 |
|
|
7622 |
# If no C compiler was specified, use CC. |
|
7623 |
LTCC=${LTCC-"$CC"} |
|
7624 |
|
|
7625 |
# If no C compiler flags were specified, use CFLAGS. |
|
7626 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
7627 |
|
|
7628 |
# Allow CC to be a program name with arguments. |
|
7629 |
compiler=$CC |
|
7630 |
|
|
7631 |
# Save the default compiler, since it gets overwritten when the other |
|
7632 |
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
|
7633 |
compiler_DEFAULT=$CC |
|
7634 |
|
|
7635 |
# save warnings/boilerplate of simple test code |
|
7636 |
ac_outfile=conftest.$ac_objext |
|
7637 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
7638 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
7639 |
_lt_compiler_boilerplate=`cat conftest.err` |
|
7640 |
$RM conftest* |
|
7641 |
|
|
7642 |
ac_outfile=conftest.$ac_objext |
|
7643 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext |
|
7644 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
7645 |
_lt_linker_boilerplate=`cat conftest.err` |
|
7646 |
$RM -r conftest* |
|
7647 |
|
|
7648 |
|
|
7649 |
## CAVEAT EMPTOR: |
|
7650 |
## There is no encapsulation within the following macros, do not change |
|
7651 |
## the running order or otherwise move them around unless you know exactly |
|
7652 |
## what you are doing... |
|
7653 |
if test -n "$compiler"; then |
|
7654 |
|
|
7655 |
lt_prog_compiler_no_builtin_flag= |
|
7656 |
|
|
7657 |
if test "$GCC" = yes; then |
|
7658 |
case $cc_basename in |
|
7659 |
nvcc*) |
|
7660 |
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
|
7661 |
*) |
|
7662 |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
|
7663 |
esac |
|
7664 |
|
|
7665 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
7666 |
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
|
7667 |
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
|
7668 |
$as_echo_n "(cached) " >&6 |
|
7669 |
else |
|
7670 |
lt_cv_prog_compiler_rtti_exceptions=no |
|
7671 |
ac_outfile=conftest.$ac_objext |
|
7672 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
7673 |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
|
7674 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
7675 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
7676 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
7677 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
7678 |
# The option is referenced via a variable to avoid confusing sed. |
|
7679 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
7680 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
7681 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
7682 |
-e 's:$: $lt_compiler_flag:'` |
|
7683 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
|
7684 |
(eval "$lt_compile" 2>conftest.err) |
|
7685 |
ac_status=$? |
|
7686 |
cat conftest.err >&5 |
|
7687 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
7688 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
|
7689 |
# The compiler can only warn and ignore the option if not recognized |
|
7690 |
# So say no if there are warnings other than the usual output. |
|
7691 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
|
7692 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
7693 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
7694 |
lt_cv_prog_compiler_rtti_exceptions=yes |
|
7695 |
fi |
|
7696 |
fi |
|
7697 |
$RM conftest* |
|
7698 |
|
|
7699 |
fi |
|
7700 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
|
7701 |
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
|
7702 |
|
|
7703 |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
|
7704 |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
|
7705 |
else |
|
7706 |
: |
|
7707 |
fi |
|
7708 |
|
|
7709 |
fi |
|
7710 |
|
|
7711 |
|
|
7712 |
|
|
7713 |
|
|
7714 |
|
|
7715 |
|
|
7716 |
lt_prog_compiler_wl= |
|
7717 |
lt_prog_compiler_pic= |
|
7718 |
lt_prog_compiler_static= |
|
7719 |
|
|
7720 |
|
|
7721 |
if test "$GCC" = yes; then |
|
7722 |
lt_prog_compiler_wl='-Wl,' |
|
7723 |
lt_prog_compiler_static='-static' |
|
7724 |
|
|
7725 |
case $host_os in |
|
7726 |
aix*) |
|
7727 |
# All AIX code is PIC. |
|
7728 |
if test "$host_cpu" = ia64; then |
|
7729 |
# AIX 5 now supports IA64 processor |
|
7730 |
lt_prog_compiler_static='-Bstatic' |
|
7731 |
fi |
|
7732 |
;; |
|
7733 |
|
|
7734 |
amigaos*) |
|
7735 |
case $host_cpu in |
|
7736 |
powerpc) |
|
7737 |
# see comment about AmigaOS4 .so support |
|
7738 |
lt_prog_compiler_pic='-fPIC' |
|
7739 |
;; |
|
7740 |
m68k) |
|
7741 |
# FIXME: we need at least 68020 code to build shared libraries, but |
|
7742 |
# adding the `-m68020' flag to GCC prevents building anything better, |
|
7743 |
# like `-m68040'. |
|
7744 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
|
7745 |
;; |
|
7746 |
esac |
|
7747 |
;; |
|
7748 |
|
|
7749 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
7750 |
# PIC is the default for these OSes. |
|
7751 |
;; |
|
7752 |
|
|
7753 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
|
7754 |
# This hack is so that the source file can tell whether it is being |
|
7755 |
# built for inclusion in a dll (and should export symbols for example). |
|
7756 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
|
7757 |
# (--disable-auto-import) libraries |
|
7758 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
|
7759 |
;; |
|
7760 |
|
|
7761 |
darwin* | rhapsody*) |
|
7762 |
# PIC is the default on this platform |
|
7763 |
# Common symbols not allowed in MH_DYLIB files |
|
7764 |
lt_prog_compiler_pic='-fno-common' |
|
7765 |
;; |
|
7766 |
|
|
7767 |
haiku*) |
|
7768 |
# PIC is the default for Haiku. |
|
7769 |
# The "-static" flag exists, but is broken. |
|
7770 |
lt_prog_compiler_static= |
|
7771 |
;; |
|
7772 |
|
|
7773 |
hpux*) |
|
7774 |
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
|
7775 |
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
|
7776 |
# sets the default TLS model and affects inlining. |
|
7777 |
case $host_cpu in |
|
7778 |
hppa*64*) |
|
7779 |
# +Z the default |
|
7780 |
;; |
|
7781 |
*) |
|
7782 |
lt_prog_compiler_pic='-fPIC' |
|
7783 |
;; |
|
7784 |
esac |
|
7785 |
;; |
|
7786 |
|
|
7787 |
interix[3-9]*) |
|
7788 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
7789 |
# Instead, we relocate shared libraries at runtime. |
|
7790 |
;; |
|
7791 |
|
|
7792 |
msdosdjgpp*) |
|
7793 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
|
7794 |
# on systems that don't support them. |
|
7795 |
lt_prog_compiler_can_build_shared=no |
|
7796 |
enable_shared=no |
|
7797 |
;; |
|
7798 |
|
|
7799 |
*nto* | *qnx*) |
|
7800 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
|
7801 |
# it will coredump. |
|
7802 |
lt_prog_compiler_pic='-fPIC -shared' |
|
7803 |
;; |
|
7804 |
|
|
7805 |
sysv4*MP*) |
|
7806 |
if test -d /usr/nec; then |
|
7807 |
lt_prog_compiler_pic=-Kconform_pic |
|
7808 |
fi |
|
7809 |
;; |
|
7810 |
|
|
7811 |
*) |
|
7812 |
lt_prog_compiler_pic='-fPIC' |
|
7813 |
;; |
|
7814 |
esac |
|
7815 |
|
|
7816 |
case $cc_basename in |
|
7817 |
nvcc*) # Cuda Compiler Driver 2.2 |
|
7818 |
lt_prog_compiler_wl='-Xlinker ' |
|
7819 |
if test -n "$lt_prog_compiler_pic"; then |
|
7820 |
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
|
7821 |
fi |
|
7822 |
;; |
|
7823 |
esac |
|
7824 |
else |
|
7825 |
# PORTME Check for flag to pass linker flags through the system compiler. |
|
7826 |
case $host_os in |
|
7827 |
aix*) |
|
7828 |
lt_prog_compiler_wl='-Wl,' |
|
7829 |
if test "$host_cpu" = ia64; then |
|
7830 |
# AIX 5 now supports IA64 processor |
|
7831 |
lt_prog_compiler_static='-Bstatic' |
|
7832 |
else |
|
7833 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
|
7834 |
fi |
|
7835 |
;; |
|
7836 |
|
|
7837 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
|
7838 |
# This hack is so that the source file can tell whether it is being |
|
7839 |
# built for inclusion in a dll (and should export symbols for example). |
|
7840 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
|
7841 |
;; |
|
7842 |
|
|
7843 |
hpux9* | hpux10* | hpux11*) |
|
7844 |
lt_prog_compiler_wl='-Wl,' |
|
7845 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
7846 |
# not for PA HP-UX. |
|
7847 |
case $host_cpu in |
|
7848 |
hppa*64*|ia64*) |
|
7849 |
# +Z the default |
|
7850 |
;; |
|
7851 |
*) |
|
7852 |
lt_prog_compiler_pic='+Z' |
|
7853 |
;; |
|
7854 |
esac |
|
7855 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
7856 |
lt_prog_compiler_static='${wl}-a ${wl}archive' |
|
7857 |
;; |
|
7858 |
|
|
7859 |
irix5* | irix6* | nonstopux*) |
|
7860 |
lt_prog_compiler_wl='-Wl,' |
|
7861 |
# PIC (with -KPIC) is the default. |
|
7862 |
lt_prog_compiler_static='-non_shared' |
|
7863 |
;; |
|
7864 |
|
|
7865 |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
|
7866 |
case $cc_basename in |
|
7867 |
# old Intel for x86_64 which still supported -KPIC. |
|
7868 |
ecc*) |
|
7869 |
lt_prog_compiler_wl='-Wl,' |
|
7870 |
lt_prog_compiler_pic='-KPIC' |
|
7871 |
lt_prog_compiler_static='-static' |
|
7872 |
;; |
|
7873 |
# icc used to be incompatible with GCC. |
|
7874 |
# ICC 10 doesn't accept -KPIC any more. |
|
7875 |
icc* | ifort*) |
|
7876 |
lt_prog_compiler_wl='-Wl,' |
|
7877 |
lt_prog_compiler_pic='-fPIC' |
|
7878 |
lt_prog_compiler_static='-static' |
|
7879 |
;; |
|
7880 |
# Lahey Fortran 8.1. |
|
7881 |
lf95*) |
|
7882 |
lt_prog_compiler_wl='-Wl,' |
|
7883 |
lt_prog_compiler_pic='--shared' |
|
7884 |
lt_prog_compiler_static='--static' |
|
7885 |
;; |
|
7886 |
nagfor*) |
|
7887 |
# NAG Fortran compiler |
|
7888 |
lt_prog_compiler_wl='-Wl,-Wl,,' |
|
7889 |
lt_prog_compiler_pic='-PIC' |
|
7890 |
lt_prog_compiler_static='-Bstatic' |
|
7891 |
;; |
|
7892 |
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
|
7893 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
|
7894 |
# which looks to be a dead project) |
|
7895 |
lt_prog_compiler_wl='-Wl,' |
|
7896 |
lt_prog_compiler_pic='-fpic' |
|
7897 |
lt_prog_compiler_static='-Bstatic' |
|
7898 |
;; |
|
7899 |
ccc*) |
|
7900 |
lt_prog_compiler_wl='-Wl,' |
|
7901 |
# All Alpha code is PIC. |
|
7902 |
lt_prog_compiler_static='-non_shared' |
|
7903 |
;; |
|
7904 |
xl* | bgxl* | bgf* | mpixl*) |
|
7905 |
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
|
7906 |
lt_prog_compiler_wl='-Wl,' |
|
7907 |
lt_prog_compiler_pic='-qpic' |
|
7908 |
lt_prog_compiler_static='-qstaticlink' |
|
7909 |
;; |
|
7910 |
*) |
|
7911 |
case `$CC -V 2>&1 | sed 5q` in |
|
7912 |
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
|
7913 |
# Sun Fortran 8.3 passes all unrecognized flags to the linker |
|
7914 |
lt_prog_compiler_pic='-KPIC' |
|
7915 |
lt_prog_compiler_static='-Bstatic' |
|
7916 |
lt_prog_compiler_wl='' |
|
7917 |
;; |
|
7918 |
*Sun\ F* | *Sun*Fortran*) |
|
7919 |
lt_prog_compiler_pic='-KPIC' |
|
7920 |
lt_prog_compiler_static='-Bstatic' |
|
7921 |
lt_prog_compiler_wl='-Qoption ld ' |
|
7922 |
;; |
|
7923 |
*Sun\ C*) |
|
7924 |
# Sun C 5.9 |
|
7925 |
lt_prog_compiler_pic='-KPIC' |
|
7926 |
lt_prog_compiler_static='-Bstatic' |
|
7927 |
lt_prog_compiler_wl='-Wl,' |
|
7928 |
;; |
|
7929 |
*Intel*\ [CF]*Compiler*) |
|
7930 |
lt_prog_compiler_wl='-Wl,' |
|
7931 |
lt_prog_compiler_pic='-fPIC' |
|
7932 |
lt_prog_compiler_static='-static' |
|
7933 |
;; |
|
7934 |
*Portland\ Group*) |
|
7935 |
lt_prog_compiler_wl='-Wl,' |
|
7936 |
lt_prog_compiler_pic='-fpic' |
|
7937 |
lt_prog_compiler_static='-Bstatic' |
|
7938 |
;; |
|
7939 |
esac |
|
7940 |
;; |
|
7941 |
esac |
|
7942 |
;; |
|
7943 |
|
|
7944 |
newsos6) |
|
7945 |
lt_prog_compiler_pic='-KPIC' |
|
7946 |
lt_prog_compiler_static='-Bstatic' |
|
7947 |
;; |
|
7948 |
|
|
7949 |
*nto* | *qnx*) |
|
7950 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
|
7951 |
# it will coredump. |
|
7952 |
lt_prog_compiler_pic='-fPIC -shared' |
|
7953 |
;; |
|
7954 |
|
|
7955 |
osf3* | osf4* | osf5*) |
|
7956 |
lt_prog_compiler_wl='-Wl,' |
|
7957 |
# All OSF/1 code is PIC. |
|
7958 |
lt_prog_compiler_static='-non_shared' |
|
7959 |
;; |
|
7960 |
|
|
7961 |
rdos*) |
|
7962 |
lt_prog_compiler_static='-non_shared' |
|
7963 |
;; |
|
7964 |
|
|
7965 |
solaris*) |
|
7966 |
lt_prog_compiler_pic='-KPIC' |
|
7967 |
lt_prog_compiler_static='-Bstatic' |
|
7968 |
case $cc_basename in |
|
7969 |
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
|
7970 |
lt_prog_compiler_wl='-Qoption ld ';; |
|
7971 |
*) |
|
7972 |
lt_prog_compiler_wl='-Wl,';; |
|
7973 |
esac |
|
7974 |
;; |
|
7975 |
|
|
7976 |
sunos4*) |
|
7977 |
lt_prog_compiler_wl='-Qoption ld ' |
|
7978 |
lt_prog_compiler_pic='-PIC' |
|
7979 |
lt_prog_compiler_static='-Bstatic' |
|
7980 |
;; |
|
7981 |
|
|
7982 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
|
7983 |
lt_prog_compiler_wl='-Wl,' |
|
7984 |
lt_prog_compiler_pic='-KPIC' |
|
7985 |
lt_prog_compiler_static='-Bstatic' |
|
7986 |
;; |
|
7987 |
|
|
7988 |
sysv4*MP*) |
|
7989 |
if test -d /usr/nec ;then |
|
7990 |
lt_prog_compiler_pic='-Kconform_pic' |
|
7991 |
lt_prog_compiler_static='-Bstatic' |
|
7992 |
fi |
|
7993 |
;; |
|
7994 |
|
|
7995 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
7996 |
lt_prog_compiler_wl='-Wl,' |
|
7997 |
lt_prog_compiler_pic='-KPIC' |
|
7998 |
lt_prog_compiler_static='-Bstatic' |
|
7999 |
;; |
|
8000 |
|
|
8001 |
unicos*) |
|
8002 |
lt_prog_compiler_wl='-Wl,' |
|
8003 |
lt_prog_compiler_can_build_shared=no |
|
8004 |
;; |
|
8005 |
|
|
8006 |
uts4*) |
|
8007 |
lt_prog_compiler_pic='-pic' |
|
8008 |
lt_prog_compiler_static='-Bstatic' |
|
8009 |
;; |
|
8010 |
|
|
8011 |
*) |
|
8012 |
lt_prog_compiler_can_build_shared=no |
|
8013 |
;; |
|
8014 |
esac |
|
8015 |
fi |
|
8016 |
|
|
8017 |
case $host_os in |
|
8018 |
# For platforms which do not support PIC, -DPIC is meaningless: |
|
8019 |
*djgpp*) |
|
8020 |
lt_prog_compiler_pic= |
|
8021 |
;; |
|
8022 |
*) |
|
8023 |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
|
8024 |
;; |
|
8025 |
esac |
|
8026 |
|
|
8027 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
|
8028 |
$as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
|
8029 |
if ${lt_cv_prog_compiler_pic+:} false; then : |
|
8030 |
$as_echo_n "(cached) " >&6 |
|
8031 |
else |
|
8032 |
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
|
8033 |
fi |
|
8034 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
|
8035 |
$as_echo "$lt_cv_prog_compiler_pic" >&6; } |
|
8036 |
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
|
8037 |
|
|
8038 |
# |
|
8039 |
# Check to make sure the PIC flag actually works. |
|
8040 |
# |
|
8041 |
if test -n "$lt_prog_compiler_pic"; then |
|
8042 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
|
8043 |
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
|
8044 |
if ${lt_cv_prog_compiler_pic_works+:} false; then : |
|
8045 |
$as_echo_n "(cached) " >&6 |
|
8046 |
else |
|
8047 |
lt_cv_prog_compiler_pic_works=no |
|
8048 |
ac_outfile=conftest.$ac_objext |
|
8049 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
8050 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
|
8051 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
8052 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
8053 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
8054 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
8055 |
# The option is referenced via a variable to avoid confusing sed. |
|
8056 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
8057 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
8058 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
8059 |
-e 's:$: $lt_compiler_flag:'` |
|
8060 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
|
8061 |
(eval "$lt_compile" 2>conftest.err) |
|
8062 |
ac_status=$? |
|
8063 |
cat conftest.err >&5 |
|
8064 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8065 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
|
8066 |
# The compiler can only warn and ignore the option if not recognized |
|
8067 |
# So say no if there are warnings other than the usual output. |
|
8068 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
|
8069 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
8070 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
8071 |
lt_cv_prog_compiler_pic_works=yes |
|
8072 |
fi |
|
8073 |
fi |
|
8074 |
$RM conftest* |
|
8075 |
|
|
8076 |
fi |
|
8077 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
|
8078 |
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
|
8079 |
|
|
8080 |
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
|
8081 |
case $lt_prog_compiler_pic in |
|
8082 |
"" | " "*) ;; |
|
8083 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
|
8084 |
esac |
|
8085 |
else |
|
8086 |
lt_prog_compiler_pic= |
|
8087 |
lt_prog_compiler_can_build_shared=no |
|
8088 |
fi |
|
8089 |
|
|
8090 |
fi |
|
8091 |
|
|
8092 |
|
|
8093 |
|
|
8094 |
|
|
8095 |
|
|
8096 |
|
|
8097 |
|
|
8098 |
|
|
8099 |
|
|
8100 |
|
|
8101 |
|
|
8102 |
# |
|
8103 |
# Check to make sure the static flag actually works. |
|
8104 |
# |
|
8105 |
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
|
8106 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
8107 |
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
|
8108 |
if ${lt_cv_prog_compiler_static_works+:} false; then : |
|
8109 |
$as_echo_n "(cached) " >&6 |
|
8110 |
else |
|
8111 |
lt_cv_prog_compiler_static_works=no |
|
8112 |
save_LDFLAGS="$LDFLAGS" |
|
8113 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
8114 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
|
8115 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
8116 |
# The linker can only warn and ignore the option if not recognized |
|
8117 |
# So say no if there are warnings |
|
8118 |
if test -s conftest.err; then |
|
8119 |
# Append any errors to the config.log. |
|
8120 |
cat conftest.err 1>&5 |
|
8121 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
|
8122 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
8123 |
if diff conftest.exp conftest.er2 >/dev/null; then |
|
8124 |
lt_cv_prog_compiler_static_works=yes |
|
8125 |
fi |
|
8126 |
else |
|
8127 |
lt_cv_prog_compiler_static_works=yes |
|
8128 |
fi |
|
8129 |
fi |
|
8130 |
$RM -r conftest* |
|
8131 |
LDFLAGS="$save_LDFLAGS" |
|
8132 |
|
|
8133 |
fi |
|
8134 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
|
8135 |
$as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
|
8136 |
|
|
8137 |
if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
|
8138 |
: |
|
8139 |
else |
|
8140 |
lt_prog_compiler_static= |
|
8141 |
fi |
|
8142 |
|
|
8143 |
|
|
8144 |
|
|
8145 |
|
|
8146 |
|
|
8147 |
|
|
8148 |
|
|
8149 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
8150 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
|
8151 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
|
8152 |
$as_echo_n "(cached) " >&6 |
|
8153 |
else |
|
8154 |
lt_cv_prog_compiler_c_o=no |
|
8155 |
$RM -r conftest 2>/dev/null |
|
8156 |
mkdir conftest |
|
8157 |
cd conftest |
|
8158 |
mkdir out |
|
8159 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
8160 |
|
|
8161 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
8162 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
8163 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
8164 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
8165 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
8166 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
8167 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
8168 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
8169 |
-e 's:$: $lt_compiler_flag:'` |
|
8170 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
|
8171 |
(eval "$lt_compile" 2>out/conftest.err) |
|
8172 |
ac_status=$? |
|
8173 |
cat out/conftest.err >&5 |
|
8174 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8175 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
8176 |
then |
|
8177 |
# The compiler can only warn and ignore the option if not recognized |
|
8178 |
# So say no if there are warnings |
|
8179 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
|
8180 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
8181 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
8182 |
lt_cv_prog_compiler_c_o=yes |
|
8183 |
fi |
|
8184 |
fi |
|
8185 |
chmod u+w . 2>&5 |
|
8186 |
$RM conftest* |
|
8187 |
# SGI C++ compiler will create directory out/ii_files/ for |
|
8188 |
# template instantiation |
|
8189 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
|
8190 |
$RM out/* && rmdir out |
|
8191 |
cd .. |
|
8192 |
$RM -r conftest |
|
8193 |
$RM conftest* |
|
8194 |
|
|
8195 |
fi |
|
8196 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
|
8197 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
|
8198 |
|
|
8199 |
|
|
8200 |
|
|
8201 |
|
|
8202 |
|
|
8203 |
|
|
8204 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
8205 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
|
8206 |
if ${lt_cv_prog_compiler_c_o+:} false; then : |
|
8207 |
$as_echo_n "(cached) " >&6 |
|
8208 |
else |
|
8209 |
lt_cv_prog_compiler_c_o=no |
|
8210 |
$RM -r conftest 2>/dev/null |
|
8211 |
mkdir conftest |
|
8212 |
cd conftest |
|
8213 |
mkdir out |
|
8214 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
8215 |
|
|
8216 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
8217 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
8218 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
8219 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
8220 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
8221 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
8222 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
8223 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
8224 |
-e 's:$: $lt_compiler_flag:'` |
|
8225 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
|
8226 |
(eval "$lt_compile" 2>out/conftest.err) |
|
8227 |
ac_status=$? |
|
8228 |
cat out/conftest.err >&5 |
|
8229 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
8230 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
|
8231 |
then |
|
8232 |
# The compiler can only warn and ignore the option if not recognized |
|
8233 |
# So say no if there are warnings |
|
8234 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
|
8235 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
8236 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
8237 |
lt_cv_prog_compiler_c_o=yes |
|
8238 |
fi |
|
8239 |
fi |
|
8240 |
chmod u+w . 2>&5 |
|
8241 |
$RM conftest* |
|
8242 |
# SGI C++ compiler will create directory out/ii_files/ for |
|
8243 |
# template instantiation |
|
8244 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
|
8245 |
$RM out/* && rmdir out |
|
8246 |
cd .. |
|
8247 |
$RM -r conftest |
|
8248 |
$RM conftest* |
|
8249 |
|
|
8250 |
fi |
|
8251 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
|
8252 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
|
8253 |
|
|
8254 |
|
|
8255 |
|
|
8256 |
|
|
8257 |
hard_links="nottested" |
|
8258 |
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
|
8259 |
# do not overwrite the value of need_locks provided by the user |
|
8260 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
|
8261 |
$as_echo_n "checking if we can lock with hard links... " >&6; } |
|
8262 |
hard_links=yes |
|
8263 |
$RM conftest* |
|
8264 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
8265 |
touch conftest.a |
|
8266 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
|
8267 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
8268 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
|
8269 |
$as_echo "$hard_links" >&6; } |
|
8270 |
if test "$hard_links" = no; then |
|
8271 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
8272 |
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
8273 |
need_locks=warn |
|
8274 |
fi |
|
8275 |
else |
|
8276 |
need_locks=no |
|
8277 |
fi |
|
8278 |
|
|
8279 |
|
|
8280 |
|
|
8281 |
|
|
8282 |
|
|
8283 |
|
|
8284 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
8285 |
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
|
8286 |
|
|
8287 |
runpath_var= |
|
8288 |
allow_undefined_flag= |
|
8289 |
always_export_symbols=no |
|
8290 |
archive_cmds= |
|
8291 |
archive_expsym_cmds= |
|
8292 |
compiler_needs_object=no |
|
8293 |
enable_shared_with_static_runtimes=no |
|
8294 |
export_dynamic_flag_spec= |
|
8295 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
8296 |
hardcode_automatic=no |
|
8297 |
hardcode_direct=no |
|
8298 |
hardcode_direct_absolute=no |
|
8299 |
hardcode_libdir_flag_spec= |
|
8300 |
hardcode_libdir_separator= |
|
8301 |
hardcode_minus_L=no |
|
8302 |
hardcode_shlibpath_var=unsupported |
|
8303 |
inherit_rpath=no |
|
8304 |
link_all_deplibs=unknown |
|
8305 |
module_cmds= |
|
8306 |
module_expsym_cmds= |
|
8307 |
old_archive_from_new_cmds= |
|
8308 |
old_archive_from_expsyms_cmds= |
|
8309 |
thread_safe_flag_spec= |
|
8310 |
whole_archive_flag_spec= |
|
8311 |
# include_expsyms should be a list of space-separated symbols to be *always* |
|
8312 |
# included in the symbol list |
|
8313 |
include_expsyms= |
|
8314 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
|
8315 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
8316 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
8317 |
# as well as any symbol that contains `d'. |
|
8318 |
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
|
8319 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
8320 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
|
8321 |
# the symbol is explicitly referenced. Since portable code cannot |
|
8322 |
# rely on this symbol name, it's probably fine to never include it in |
|
8323 |
# preloaded symbol tables. |
|
8324 |
# Exclude shared library initialization/finalization symbols. |
|
8325 |
extract_expsyms_cmds= |
|
8326 |
|
|
8327 |
case $host_os in |
|
8328 |
cygwin* | mingw* | pw32* | cegcc*) |
|
8329 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
8330 |
# When not using gcc, we currently assume that we are using |
|
8331 |
# Microsoft Visual C++. |
|
8332 |
if test "$GCC" != yes; then |
|
8333 |
with_gnu_ld=no |
|
8334 |
fi |
|
8335 |
;; |
|
8336 |
interix*) |
|
8337 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
|
8338 |
with_gnu_ld=yes |
|
8339 |
;; |
|
8340 |
openbsd*) |
|
8341 |
with_gnu_ld=no |
|
8342 |
;; |
|
8343 |
esac |
|
8344 |
|
|
8345 |
ld_shlibs=yes |
|
8346 |
|
|
8347 |
# On some targets, GNU ld is compatible enough with the native linker |
|
8348 |
# that we're better off using the native interface for both. |
|
8349 |
lt_use_gnu_ld_interface=no |
|
8350 |
if test "$with_gnu_ld" = yes; then |
|
8351 |
case $host_os in |
|
8352 |
aix*) |
|
8353 |
# The AIX port of GNU ld has always aspired to compatibility |
|
8354 |
# with the native linker. However, as the warning in the GNU ld |
|
8355 |
# block says, versions before 2.19.5* couldn't really create working |
|
8356 |
# shared libraries, regardless of the interface used. |
|
8357 |
case `$LD -v 2>&1` in |
|
8358 |
*\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
|
8359 |
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
|
8360 |
*\ \(GNU\ Binutils\)\ [3-9]*) ;; |
|
8361 |
*) |
|
8362 |
lt_use_gnu_ld_interface=yes |
|
8363 |
;; |
|
8364 |
esac |
|
8365 |
;; |
|
8366 |
*) |
|
8367 |
lt_use_gnu_ld_interface=yes |
|
8368 |
;; |
|
8369 |
esac |
|
8370 |
fi |
|
8371 |
|
|
8372 |
if test "$lt_use_gnu_ld_interface" = yes; then |
|
8373 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
|
8374 |
wlarc='${wl}' |
|
8375 |
|
|
8376 |
# Set some defaults for GNU ld with shared library support. These |
|
8377 |
# are reset later if shared libraries are not supported. Putting them |
|
8378 |
# here allows them to be overridden if necessary. |
|
8379 |
runpath_var=LD_RUN_PATH |
|
8380 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
8381 |
export_dynamic_flag_spec='${wl}--export-dynamic' |
|
8382 |
# ancient GNU ld didn't support --whole-archive et. al. |
|
8383 |
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
|
8384 |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
8385 |
else |
|
8386 |
whole_archive_flag_spec= |
|
8387 |
fi |
|
8388 |
supports_anon_versioning=no |
|
8389 |
case `$LD -v 2>&1` in |
|
8390 |
*GNU\ gold*) supports_anon_versioning=yes ;; |
|
8391 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
8392 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
8393 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
8394 |
*\ 2.11.*) ;; # other 2.11 versions |
|
8395 |
*) supports_anon_versioning=yes ;; |
|
8396 |
esac |
|
8397 |
|
|
8398 |
# See if GNU ld supports shared libraries. |
|
8399 |
case $host_os in |
|
8400 |
aix[3-9]*) |
|
8401 |
# On AIX/PPC, the GNU linker is very broken |
|
8402 |
if test "$host_cpu" != ia64; then |
|
8403 |
ld_shlibs=no |
|
8404 |
cat <<_LT_EOF 1>&2 |
|
8405 |
|
|
8406 |
*** Warning: the GNU linker, at least up to release 2.19, is reported |
|
8407 |
*** to be unable to reliably create shared libraries on AIX. |
|
8408 |
*** Therefore, libtool is disabling shared libraries support. If you |
|
8409 |
*** really care for shared libraries, you may want to install binutils |
|
8410 |
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
|
8411 |
*** You will then need to restart the configuration process. |
|
8412 |
|
|
8413 |
_LT_EOF |
|
8414 |
fi |
|
8415 |
;; |
|
8416 |
|
|
8417 |
amigaos*) |
|
8418 |
case $host_cpu in |
|
8419 |
powerpc) |
|
8420 |
# see comment about AmigaOS4 .so support |
|
8421 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8422 |
archive_expsym_cmds='' |
|
8423 |
;; |
|
8424 |
m68k) |
|
8425 |
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)' |
|
8426 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8427 |
hardcode_minus_L=yes |
|
8428 |
;; |
|
8429 |
esac |
|
8430 |
;; |
|
8431 |
|
|
8432 |
beos*) |
|
8433 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
|
8434 |
allow_undefined_flag=unsupported |
|
8435 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
8436 |
# support --undefined. This deserves some investigation. FIXME |
|
8437 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8438 |
else |
|
8439 |
ld_shlibs=no |
|
8440 |
fi |
|
8441 |
;; |
|
8442 |
|
|
8443 |
cygwin* | mingw* | pw32* | cegcc*) |
|
8444 |
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
|
8445 |
# as there is no search path for DLLs. |
|
8446 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8447 |
export_dynamic_flag_spec='${wl}--export-all-symbols' |
|
8448 |
allow_undefined_flag=unsupported |
|
8449 |
always_export_symbols=no |
|
8450 |
enable_shared_with_static_runtimes=yes |
|
8451 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
|
8452 |
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
|
8453 |
|
|
8454 |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
|
8455 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
8456 |
# If the export-symbols file already is a .def file (1st line |
|
8457 |
# is EXPORTS), use it as is; otherwise, prepend... |
|
8458 |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
8459 |
cp $export_symbols $output_objdir/$soname.def; |
|
8460 |
else |
|
8461 |
echo EXPORTS > $output_objdir/$soname.def; |
|
8462 |
cat $export_symbols >> $output_objdir/$soname.def; |
|
8463 |
fi~ |
|
8464 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
8465 |
else |
|
8466 |
ld_shlibs=no |
|
8467 |
fi |
|
8468 |
;; |
|
8469 |
|
|
8470 |
haiku*) |
|
8471 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8472 |
link_all_deplibs=yes |
|
8473 |
;; |
|
8474 |
|
|
8475 |
interix[3-9]*) |
|
8476 |
hardcode_direct=no |
|
8477 |
hardcode_shlibpath_var=no |
|
8478 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
8479 |
export_dynamic_flag_spec='${wl}-E' |
|
8480 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
8481 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
|
8482 |
# default) and relocated if they conflict, which is a slow very memory |
|
8483 |
# consuming and fragmenting process. To avoid this, we pick a random, |
|
8484 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
8485 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
8486 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
8487 |
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' |
|
8488 |
;; |
|
8489 |
|
|
8490 |
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
|
8491 |
tmp_diet=no |
|
8492 |
if test "$host_os" = linux-dietlibc; then |
|
8493 |
case $cc_basename in |
|
8494 |
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
|
8495 |
esac |
|
8496 |
fi |
|
8497 |
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
|
8498 |
&& test "$tmp_diet" = no |
|
8499 |
then |
|
8500 |
tmp_addflag=' $pic_flag' |
|
8501 |
tmp_sharedflag='-shared' |
|
8502 |
case $cc_basename,$host_cpu in |
|
8503 |
pgcc*) # Portland Group C compiler |
|
8504 |
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
|
8505 |
tmp_addflag=' $pic_flag' |
|
8506 |
;; |
|
8507 |
pgf77* | pgf90* | pgf95* | pgfortran*) |
|
8508 |
# Portland Group f77 and f90 compilers |
|
8509 |
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
|
8510 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
|
8511 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
8512 |
tmp_addflag=' -i_dynamic' ;; |
|
8513 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
8514 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
8515 |
ifc* | ifort*) # Intel Fortran compiler |
|
8516 |
tmp_addflag=' -nofor_main' ;; |
|
8517 |
lf95*) # Lahey Fortran 8.1 |
|
8518 |
whole_archive_flag_spec= |
|
8519 |
tmp_sharedflag='--shared' ;; |
|
8520 |
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
|
8521 |
tmp_sharedflag='-qmkshrobj' |
|
8522 |
tmp_addflag= ;; |
|
8523 |
nvcc*) # Cuda Compiler Driver 2.2 |
|
8524 |
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
|
8525 |
compiler_needs_object=yes |
|
8526 |
;; |
|
8527 |
esac |
|
8528 |
case `$CC -V 2>&1 | sed 5q` in |
|
8529 |
*Sun\ C*) # Sun C 5.9 |
|
8530 |
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
|
8531 |
compiler_needs_object=yes |
|
8532 |
tmp_sharedflag='-G' ;; |
|
8533 |
*Sun\ F*) # Sun Fortran 8.3 |
|
8534 |
tmp_sharedflag='-G' ;; |
|
8535 |
esac |
|
8536 |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8537 |
|
|
8538 |
if test "x$supports_anon_versioning" = xyes; then |
|
8539 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
|
8540 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
8541 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
8542 |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
8543 |
fi |
|
8544 |
|
|
8545 |
case $cc_basename in |
|
8546 |
xlf* | bgf* | bgxlf* | mpixlf*) |
|
8547 |
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
|
8548 |
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
|
8549 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
8550 |
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
|
8551 |
if test "x$supports_anon_versioning" = xyes; then |
|
8552 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
|
8553 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
8554 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
8555 |
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
|
8556 |
fi |
|
8557 |
;; |
|
8558 |
esac |
|
8559 |
else |
|
8560 |
ld_shlibs=no |
|
8561 |
fi |
|
8562 |
;; |
|
8563 |
|
|
8564 |
netbsd*) |
|
8565 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
|
8566 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
8567 |
wlarc= |
|
8568 |
else |
|
8569 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8570 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
8571 |
fi |
|
8572 |
;; |
|
8573 |
|
|
8574 |
solaris*) |
|
8575 |
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
|
8576 |
ld_shlibs=no |
|
8577 |
cat <<_LT_EOF 1>&2 |
|
8578 |
|
|
8579 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
8580 |
*** create shared libraries on Solaris systems. Therefore, libtool |
|
8581 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
|
8582 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
|
8583 |
*** your PATH or compiler configuration so that the native linker is |
|
8584 |
*** used, and then restart. |
|
8585 |
|
|
8586 |
_LT_EOF |
|
8587 |
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
|
8588 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8589 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
8590 |
else |
|
8591 |
ld_shlibs=no |
|
8592 |
fi |
|
8593 |
;; |
|
8594 |
|
|
8595 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
|
8596 |
case `$LD -v 2>&1` in |
|
8597 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
8598 |
ld_shlibs=no |
|
8599 |
cat <<_LT_EOF 1>&2 |
|
8600 |
|
|
8601 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
|
8602 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
|
8603 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
|
8604 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
|
8605 |
*** your PATH or compiler configuration so that the native linker is |
|
8606 |
*** used, and then restart. |
|
8607 |
|
|
8608 |
_LT_EOF |
|
8609 |
;; |
|
8610 |
*) |
|
8611 |
# For security reasons, it is highly recommended that you always |
|
8612 |
# use absolute paths for naming shared libraries, and exclude the |
|
8613 |
# DT_RUNPATH tag from executables and libraries. But doing so |
|
8614 |
# requires that you compile everything twice, which is a pain. |
|
8615 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
|
8616 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
8617 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8618 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
8619 |
else |
|
8620 |
ld_shlibs=no |
|
8621 |
fi |
|
8622 |
;; |
|
8623 |
esac |
|
8624 |
;; |
|
8625 |
|
|
8626 |
sunos4*) |
|
8627 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
8628 |
wlarc= |
|
8629 |
hardcode_direct=yes |
|
8630 |
hardcode_shlibpath_var=no |
|
8631 |
;; |
|
8632 |
|
|
8633 |
*) |
|
8634 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
|
8635 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8636 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
8637 |
else |
|
8638 |
ld_shlibs=no |
|
8639 |
fi |
|
8640 |
;; |
|
8641 |
esac |
|
8642 |
|
|
8643 |
if test "$ld_shlibs" = no; then |
|
8644 |
runpath_var= |
|
8645 |
hardcode_libdir_flag_spec= |
|
8646 |
export_dynamic_flag_spec= |
|
8647 |
whole_archive_flag_spec= |
|
8648 |
fi |
|
8649 |
else |
|
8650 |
# PORTME fill in a description of your system's linker (not GNU ld) |
|
8651 |
case $host_os in |
|
8652 |
aix3*) |
|
8653 |
allow_undefined_flag=unsupported |
|
8654 |
always_export_symbols=yes |
|
8655 |
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' |
|
8656 |
# Note: this linker hardcodes the directories in LIBPATH if there |
|
8657 |
# are no directories specified by -L. |
|
8658 |
hardcode_minus_L=yes |
|
8659 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
|
8660 |
# Neither direct hardcoding nor static linking is supported with a |
|
8661 |
# broken collect2. |
|
8662 |
hardcode_direct=unsupported |
|
8663 |
fi |
|
8664 |
;; |
|
8665 |
|
|
8666 |
aix[4-9]*) |
|
8667 |
if test "$host_cpu" = ia64; then |
|
8668 |
# On IA64, the linker does run time linking by default, so we don't |
|
8669 |
# have to do anything special. |
|
8670 |
aix_use_runtimelinking=no |
|
8671 |
exp_sym_flag='-Bexport' |
|
8672 |
no_entry_flag="" |
|
8673 |
else |
|
8674 |
# If we're using GNU nm, then we don't want the "-C" option. |
|
8675 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
8676 |
# Also, AIX nm treats weak defined symbols like other global |
|
8677 |
# defined symbols, whereas GNU nm marks them as "W". |
|
8678 |
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
|
8679 |
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
|
8680 |
else |
|
8681 |
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' |
|
8682 |
fi |
|
8683 |
aix_use_runtimelinking=no |
|
8684 |
|
|
8685 |
# Test if we are trying to use run time linking or normal |
|
8686 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
8687 |
# need to do runtime linking. |
|
8688 |
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
|
8689 |
for ld_flag in $LDFLAGS; do |
|
8690 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
8691 |
aix_use_runtimelinking=yes |
|
8692 |
break |
|
8693 |
fi |
|
8694 |
done |
|
8695 |
;; |
|
8696 |
esac |
|
8697 |
|
|
8698 |
exp_sym_flag='-bexport' |
|
8699 |
no_entry_flag='-bnoentry' |
|
8700 |
fi |
|
8701 |
|
|
8702 |
# When large executables or shared objects are built, AIX ld can |
|
8703 |
# have problems creating the table of contents. If linking a library |
|
8704 |
# or program results in "error TOC overflow" add -mminimal-toc to |
|
8705 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
8706 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
8707 |
|
|
8708 |
archive_cmds='' |
|
8709 |
hardcode_direct=yes |
|
8710 |
hardcode_direct_absolute=yes |
|
8711 |
hardcode_libdir_separator=':' |
|
8712 |
link_all_deplibs=yes |
|
8713 |
file_list_spec='${wl}-f,' |
|
8714 |
|
|
8715 |
if test "$GCC" = yes; then |
|
8716 |
case $host_os in aix4.[012]|aix4.[012].*) |
|
8717 |
# We only want to do this on AIX 4.2 and lower, the check |
|
8718 |
# below for broken collect2 doesn't work under 4.3+ |
|
8719 |
collect2name=`${CC} -print-prog-name=collect2` |
|
8720 |
if test -f "$collect2name" && |
|
8721 |
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
|
8722 |
then |
|
8723 |
# We have reworked collect2 |
|
8724 |
: |
|
8725 |
else |
|
8726 |
# We have old collect2 |
|
8727 |
hardcode_direct=unsupported |
|
8728 |
# It fails to find uninstalled libraries when the uninstalled |
|
8729 |
# path is not listed in the libpath. Setting hardcode_minus_L |
|
8730 |
# to unsupported forces relinking |
|
8731 |
hardcode_minus_L=yes |
|
8732 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8733 |
hardcode_libdir_separator= |
|
8734 |
fi |
|
8735 |
;; |
|
8736 |
esac |
|
8737 |
shared_flag='-shared' |
|
8738 |
if test "$aix_use_runtimelinking" = yes; then |
|
8739 |
shared_flag="$shared_flag "'${wl}-G' |
|
8740 |
fi |
|
8741 |
else |
|
8742 |
# not using gcc |
|
8743 |
if test "$host_cpu" = ia64; then |
|
8744 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
8745 |
# chokes on -Wl,-G. The following line is correct: |
|
8746 |
shared_flag='-G' |
|
8747 |
else |
|
8748 |
if test "$aix_use_runtimelinking" = yes; then |
|
8749 |
shared_flag='${wl}-G' |
|
8750 |
else |
|
8751 |
shared_flag='${wl}-bM:SRE' |
|
8752 |
fi |
|
8753 |
fi |
|
8754 |
fi |
|
8755 |
|
|
8756 |
export_dynamic_flag_spec='${wl}-bexpall' |
|
8757 |
# It seems that -bexpall does not export symbols beginning with |
|
8758 |
# underscore (_), so it is better to generate a list of symbols to export. |
|
8759 |
always_export_symbols=yes |
|
8760 |
if test "$aix_use_runtimelinking" = yes; then |
|
8761 |
# Warning - without using the other runtime loading flags (-brtl), |
|
8762 |
# -berok will link without error, but may produce a broken library. |
|
8763 |
allow_undefined_flag='-berok' |
|
8764 |
# Determine the default libpath from the value encoded in an |
|
8765 |
# empty executable. |
|
8766 |
if test "${lt_cv_aix_libpath+set}" = set; then |
|
8767 |
aix_libpath=$lt_cv_aix_libpath |
|
8768 |
else |
|
8769 |
if ${lt_cv_aix_libpath_+:} false; then : |
|
8770 |
$as_echo_n "(cached) " >&6 |
|
8771 |
else |
|
8772 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
8773 |
/* end confdefs.h. */ |
|
8774 |
|
|
8775 |
int |
|
8776 |
main () |
|
8777 |
{ |
|
8778 |
|
|
8779 |
; |
|
8780 |
return 0; |
|
8781 |
} |
|
8782 |
_ACEOF |
|
8783 |
if ac_fn_c_try_link "$LINENO"; then : |
|
8784 |
|
|
8785 |
lt_aix_libpath_sed=' |
|
8786 |
/Import File Strings/,/^$/ { |
|
8787 |
/^0/ { |
|
8788 |
s/^0 *\([^ ]*\) *$/\1/ |
|
8789 |
p |
|
8790 |
} |
|
8791 |
}' |
|
8792 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
8793 |
# Check for a 64-bit object if we didn't find anything. |
|
8794 |
if test -z "$lt_cv_aix_libpath_"; then |
|
8795 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
8796 |
fi |
|
8797 |
fi |
|
8798 |
rm -f core conftest.err conftest.$ac_objext \ |
|
8799 |
conftest$ac_exeext conftest.$ac_ext |
|
8800 |
if test -z "$lt_cv_aix_libpath_"; then |
|
8801 |
lt_cv_aix_libpath_="/usr/lib:/lib" |
|
8802 |
fi |
|
8803 |
|
|
8804 |
fi |
|
8805 |
|
|
8806 |
aix_libpath=$lt_cv_aix_libpath_ |
|
8807 |
fi |
|
8808 |
|
|
8809 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
8810 |
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
8811 |
else |
|
8812 |
if test "$host_cpu" = ia64; then |
|
8813 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
|
8814 |
allow_undefined_flag="-z nodefs" |
|
8815 |
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" |
|
8816 |
else |
|
8817 |
# Determine the default libpath from the value encoded in an |
|
8818 |
# empty executable. |
|
8819 |
if test "${lt_cv_aix_libpath+set}" = set; then |
|
8820 |
aix_libpath=$lt_cv_aix_libpath |
|
8821 |
else |
|
8822 |
if ${lt_cv_aix_libpath_+:} false; then : |
|
8823 |
$as_echo_n "(cached) " >&6 |
|
8824 |
else |
|
8825 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
8826 |
/* end confdefs.h. */ |
|
8827 |
|
|
8828 |
int |
|
8829 |
main () |
|
8830 |
{ |
|
8831 |
|
|
8832 |
; |
|
8833 |
return 0; |
|
8834 |
} |
|
8835 |
_ACEOF |
|
8836 |
if ac_fn_c_try_link "$LINENO"; then : |
|
8837 |
|
|
8838 |
lt_aix_libpath_sed=' |
|
8839 |
/Import File Strings/,/^$/ { |
|
8840 |
/^0/ { |
|
8841 |
s/^0 *\([^ ]*\) *$/\1/ |
|
8842 |
p |
|
8843 |
} |
|
8844 |
}' |
|
8845 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
8846 |
# Check for a 64-bit object if we didn't find anything. |
|
8847 |
if test -z "$lt_cv_aix_libpath_"; then |
|
8848 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
8849 |
fi |
|
8850 |
fi |
|
8851 |
rm -f core conftest.err conftest.$ac_objext \ |
|
8852 |
conftest$ac_exeext conftest.$ac_ext |
|
8853 |
if test -z "$lt_cv_aix_libpath_"; then |
|
8854 |
lt_cv_aix_libpath_="/usr/lib:/lib" |
|
8855 |
fi |
|
8856 |
|
|
8857 |
fi |
|
8858 |
|
|
8859 |
aix_libpath=$lt_cv_aix_libpath_ |
|
8860 |
fi |
|
8861 |
|
|
8862 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
8863 |
# Warning - without using the other run time loading flags, |
|
8864 |
# -berok will link without error, but may produce a broken library. |
|
8865 |
no_undefined_flag=' ${wl}-bernotok' |
|
8866 |
allow_undefined_flag=' ${wl}-berok' |
|
8867 |
if test "$with_gnu_ld" = yes; then |
|
8868 |
# We only use this code for GNU lds that support --whole-archive. |
|
8869 |
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
|
8870 |
else |
|
8871 |
# Exported symbols can be pulled into shared objects from archives |
|
8872 |
whole_archive_flag_spec='$convenience' |
|
8873 |
fi |
|
8874 |
archive_cmds_need_lc=yes |
|
8875 |
# This is similar to how AIX traditionally builds its shared libraries. |
|
8876 |
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' |
|
8877 |
fi |
|
8878 |
fi |
|
8879 |
;; |
|
8880 |
|
|
8881 |
amigaos*) |
|
8882 |
case $host_cpu in |
|
8883 |
powerpc) |
|
8884 |
# see comment about AmigaOS4 .so support |
|
8885 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8886 |
archive_expsym_cmds='' |
|
8887 |
;; |
|
8888 |
m68k) |
|
8889 |
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)' |
|
8890 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8891 |
hardcode_minus_L=yes |
|
8892 |
;; |
|
8893 |
esac |
|
8894 |
;; |
|
8895 |
|
|
8896 |
bsdi[45]*) |
|
8897 |
export_dynamic_flag_spec=-rdynamic |
|
8898 |
;; |
|
8899 |
|
|
8900 |
cygwin* | mingw* | pw32* | cegcc*) |
|
8901 |
# When not using gcc, we currently assume that we are using |
|
8902 |
# Microsoft Visual C++. |
|
8903 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
|
8904 |
# no search path for DLLs. |
|
8905 |
case $cc_basename in |
|
8906 |
cl*) |
|
8907 |
# Native MSVC |
|
8908 |
hardcode_libdir_flag_spec=' ' |
|
8909 |
allow_undefined_flag=unsupported |
|
8910 |
always_export_symbols=yes |
|
8911 |
file_list_spec='@' |
|
8912 |
# Tell ltmain to make .lib files, not .a files. |
|
8913 |
libext=lib |
|
8914 |
# Tell ltmain to make .dll files, not .so files. |
|
8915 |
shrext_cmds=".dll" |
|
8916 |
# FIXME: Setting linknames here is a bad hack. |
|
8917 |
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
|
8918 |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
8919 |
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
|
8920 |
else |
|
8921 |
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
|
8922 |
fi~ |
|
8923 |
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
|
8924 |
linknames=' |
|
8925 |
# The linker will not automatically build a static lib if we build a DLL. |
|
8926 |
# _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
|
8927 |
enable_shared_with_static_runtimes=yes |
|
8928 |
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
|
8929 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
|
8930 |
# Don't use ranlib |
|
8931 |
old_postinstall_cmds='chmod 644 $oldlib' |
|
8932 |
postlink_cmds='lt_outputfile="@OUTPUT@"~ |
|
8933 |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
|
8934 |
case $lt_outputfile in |
|
8935 |
*.exe|*.EXE) ;; |
|
8936 |
*) |
|
8937 |
lt_outputfile="$lt_outputfile.exe" |
|
8938 |
lt_tool_outputfile="$lt_tool_outputfile.exe" |
|
8939 |
;; |
|
8940 |
esac~ |
|
8941 |
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
|
8942 |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
|
8943 |
$RM "$lt_outputfile.manifest"; |
|
8944 |
fi' |
|
8945 |
;; |
|
8946 |
*) |
|
8947 |
# Assume MSVC wrapper |
|
8948 |
hardcode_libdir_flag_spec=' ' |
|
8949 |
allow_undefined_flag=unsupported |
|
8950 |
# Tell ltmain to make .lib files, not .a files. |
|
8951 |
libext=lib |
|
8952 |
# Tell ltmain to make .dll files, not .so files. |
|
8953 |
shrext_cmds=".dll" |
|
8954 |
# FIXME: Setting linknames here is a bad hack. |
|
8955 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
8956 |
# The linker will automatically build a .lib file if we build a DLL. |
|
8957 |
old_archive_from_new_cmds='true' |
|
8958 |
# FIXME: Should let the user specify the lib program. |
|
8959 |
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
|
8960 |
enable_shared_with_static_runtimes=yes |
|
8961 |
;; |
|
8962 |
esac |
|
8963 |
;; |
|
8964 |
|
|
8965 |
darwin* | rhapsody*) |
|
8966 |
|
|
8967 |
|
|
8968 |
archive_cmds_need_lc=no |
|
8969 |
hardcode_direct=no |
|
8970 |
hardcode_automatic=yes |
|
8971 |
hardcode_shlibpath_var=unsupported |
|
8972 |
if test "$lt_cv_ld_force_load" = "yes"; then |
|
8973 |
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
|
8974 |
|
|
8975 |
else |
|
8976 |
whole_archive_flag_spec='' |
|
8977 |
fi |
|
8978 |
link_all_deplibs=yes |
|
8979 |
allow_undefined_flag="$_lt_dar_allow_undefined" |
|
8980 |
case $cc_basename in |
|
8981 |
ifort*) _lt_dar_can_shared=yes ;; |
|
8982 |
*) _lt_dar_can_shared=$GCC ;; |
|
8983 |
esac |
|
8984 |
if test "$_lt_dar_can_shared" = "yes"; then |
|
8985 |
output_verbose_link_cmd=func_echo_all |
|
8986 |
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
|
8987 |
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
|
8988 |
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
|
8989 |
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
|
8990 |
|
|
8991 |
else |
|
8992 |
ld_shlibs=no |
|
8993 |
fi |
|
8994 |
|
|
8995 |
;; |
|
8996 |
|
|
8997 |
dgux*) |
|
8998 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8999 |
hardcode_libdir_flag_spec='-L$libdir' |
|
9000 |
hardcode_shlibpath_var=no |
|
9001 |
;; |
|
9002 |
|
|
9003 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
9004 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
|
9005 |
# does not break anything, and helps significantly (at the cost of a little |
|
9006 |
# extra space). |
|
9007 |
freebsd2.2*) |
|
9008 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
9009 |
hardcode_libdir_flag_spec='-R$libdir' |
|
9010 |
hardcode_direct=yes |
|
9011 |
hardcode_shlibpath_var=no |
|
9012 |
;; |
|
9013 |
|
|
9014 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
9015 |
freebsd2.*) |
|
9016 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
9017 |
hardcode_direct=yes |
|
9018 |
hardcode_minus_L=yes |
|
9019 |
hardcode_shlibpath_var=no |
|
9020 |
;; |
|
9021 |
|
|
9022 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
9023 |
freebsd* | dragonfly*) |
|
9024 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
9025 |
hardcode_libdir_flag_spec='-R$libdir' |
|
9026 |
hardcode_direct=yes |
|
9027 |
hardcode_shlibpath_var=no |
|
9028 |
;; |
|
9029 |
|
|
9030 |
hpux9*) |
|
9031 |
if test "$GCC" = yes; then |
|
9032 |
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
9033 |
else |
|
9034 |
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' |
|
9035 |
fi |
|
9036 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
9037 |
hardcode_libdir_separator=: |
|
9038 |
hardcode_direct=yes |
|
9039 |
|
|
9040 |
# hardcode_minus_L: Not really in the search PATH, |
|
9041 |
# but as the default location of the library. |
|
9042 |
hardcode_minus_L=yes |
|
9043 |
export_dynamic_flag_spec='${wl}-E' |
|
9044 |
;; |
|
9045 |
|
|
9046 |
hpux10*) |
|
9047 |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
|
9048 |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
9049 |
else |
|
9050 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
9051 |
fi |
|
9052 |
if test "$with_gnu_ld" = no; then |
|
9053 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
9054 |
hardcode_libdir_separator=: |
|
9055 |
hardcode_direct=yes |
|
9056 |
hardcode_direct_absolute=yes |
|
9057 |
export_dynamic_flag_spec='${wl}-E' |
|
9058 |
# hardcode_minus_L: Not really in the search PATH, |
|
9059 |
# but as the default location of the library. |
|
9060 |
hardcode_minus_L=yes |
|
9061 |
fi |
|
9062 |
;; |
|
9063 |
|
|
9064 |
hpux11*) |
|
9065 |
if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
|
9066 |
case $host_cpu in |
|
9067 |
hppa*64*) |
|
9068 |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9069 |
;; |
|
9070 |
ia64*) |
|
9071 |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
9072 |
;; |
|
9073 |
*) |
|
9074 |
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
9075 |
;; |
|
9076 |
esac |
|
9077 |
else |
|
9078 |
case $host_cpu in |
|
9079 |
hppa*64*) |
|
9080 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9081 |
;; |
|
9082 |
ia64*) |
|
9083 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
9084 |
;; |
|
9085 |
*) |
|
9086 |
|
|
9087 |
# Older versions of the 11.00 compiler do not understand -b yet |
|
9088 |
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
|
9089 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
|
9090 |
$as_echo_n "checking if $CC understands -b... " >&6; } |
|
9091 |
if ${lt_cv_prog_compiler__b+:} false; then : |
|
9092 |
$as_echo_n "(cached) " >&6 |
|
9093 |
else |
|
9094 |
lt_cv_prog_compiler__b=no |
|
9095 |
save_LDFLAGS="$LDFLAGS" |
|
9096 |
LDFLAGS="$LDFLAGS -b" |
|
9097 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
|
9098 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
9099 |
# The linker can only warn and ignore the option if not recognized |
|
9100 |
# So say no if there are warnings |
|
9101 |
if test -s conftest.err; then |
|
9102 |
# Append any errors to the config.log. |
|
9103 |
cat conftest.err 1>&5 |
|
9104 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
|
9105 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
9106 |
if diff conftest.exp conftest.er2 >/dev/null; then |
|
9107 |
lt_cv_prog_compiler__b=yes |
|
9108 |
fi |
|
9109 |
else |
|
9110 |
lt_cv_prog_compiler__b=yes |
|
9111 |
fi |
|
9112 |
fi |
|
9113 |
$RM -r conftest* |
|
9114 |
LDFLAGS="$save_LDFLAGS" |
|
9115 |
|
|
9116 |
fi |
|
9117 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
|
9118 |
$as_echo "$lt_cv_prog_compiler__b" >&6; } |
|
9119 |
|
|
9120 |
if test x"$lt_cv_prog_compiler__b" = xyes; then |
|
9121 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
9122 |
else |
|
9123 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
9124 |
fi |
|
9125 |
|
|
9126 |
;; |
|
9127 |
esac |
|
9128 |
fi |
|
9129 |
if test "$with_gnu_ld" = no; then |
|
9130 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
9131 |
hardcode_libdir_separator=: |
|
9132 |
|
|
9133 |
case $host_cpu in |
|
9134 |
hppa*64*|ia64*) |
|
9135 |
hardcode_direct=no |
|
9136 |
hardcode_shlibpath_var=no |
|
9137 |
;; |
|
9138 |
*) |
|
9139 |
hardcode_direct=yes |
|
9140 |
hardcode_direct_absolute=yes |
|
9141 |
export_dynamic_flag_spec='${wl}-E' |
|
9142 |
|
|
9143 |
# hardcode_minus_L: Not really in the search PATH, |
|
9144 |
# but as the default location of the library. |
|
9145 |
hardcode_minus_L=yes |
|
9146 |
;; |
|
9147 |
esac |
|
9148 |
fi |
|
9149 |
;; |
|
9150 |
|
|
9151 |
irix5* | irix6* | nonstopux*) |
|
9152 |
if test "$GCC" = yes; then |
|
9153 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
9154 |
# Try to use the -exported_symbol ld option, if it does not |
|
9155 |
# work, assume that -exports_file does not work either and |
|
9156 |
# implicitly export all symbols. |
|
9157 |
# This should be the same for all languages, so no per-tag cache variable. |
|
9158 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
|
9159 |
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
|
9160 |
if ${lt_cv_irix_exported_symbol+:} false; then : |
|
9161 |
$as_echo_n "(cached) " >&6 |
|
9162 |
else |
|
9163 |
save_LDFLAGS="$LDFLAGS" |
|
9164 |
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
|
9165 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
9166 |
/* end confdefs.h. */ |
|
9167 |
int foo (void) { return 0; } |
|
9168 |
_ACEOF |
|
9169 |
if ac_fn_c_try_link "$LINENO"; then : |
|
9170 |
lt_cv_irix_exported_symbol=yes |
|
9171 |
else |
|
9172 |
lt_cv_irix_exported_symbol=no |
|
9173 |
fi |
|
9174 |
rm -f core conftest.err conftest.$ac_objext \ |
|
9175 |
conftest$ac_exeext conftest.$ac_ext |
|
9176 |
LDFLAGS="$save_LDFLAGS" |
|
9177 |
fi |
|
9178 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
|
9179 |
$as_echo "$lt_cv_irix_exported_symbol" >&6; } |
|
9180 |
if test "$lt_cv_irix_exported_symbol" = yes; then |
|
9181 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
|
9182 |
fi |
|
9183 |
else |
|
9184 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
|
9185 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
|
9186 |
fi |
|
9187 |
archive_cmds_need_lc='no' |
|
9188 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
9189 |
hardcode_libdir_separator=: |
|
9190 |
inherit_rpath=yes |
|
9191 |
link_all_deplibs=yes |
|
9192 |
;; |
|
9193 |
|
|
9194 |
netbsd*) |
|
9195 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
|
9196 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
9197 |
else |
|
9198 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
9199 |
fi |
|
9200 |
hardcode_libdir_flag_spec='-R$libdir' |
|
9201 |
hardcode_direct=yes |
|
9202 |
hardcode_shlibpath_var=no |
|
9203 |
;; |
|
9204 |
|
|
9205 |
newsos6) |
|
9206 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
9207 |
hardcode_direct=yes |
|
9208 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
9209 |
hardcode_libdir_separator=: |
|
9210 |
hardcode_shlibpath_var=no |
|
9211 |
;; |
|
9212 |
|
|
9213 |
*nto* | *qnx*) |
|
9214 |
;; |
|
9215 |
|
|
9216 |
openbsd*) |
|
9217 |
if test -f /usr/libexec/ld.so; then |
|
9218 |
hardcode_direct=yes |
|
9219 |
hardcode_shlibpath_var=no |
|
9220 |
hardcode_direct_absolute=yes |
|
9221 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
9222 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
9223 |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
|
9224 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
9225 |
export_dynamic_flag_spec='${wl}-E' |
|
9226 |
else |
|
9227 |
case $host_os in |
|
9228 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
9229 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
9230 |
hardcode_libdir_flag_spec='-R$libdir' |
|
9231 |
;; |
|
9232 |
*) |
|
9233 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
9234 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
9235 |
;; |
|
9236 |
esac |
|
9237 |
fi |
|
9238 |
else |
|
9239 |
ld_shlibs=no |
|
9240 |
fi |
|
9241 |
;; |
|
9242 |
|
|
9243 |
os2*) |
|
9244 |
hardcode_libdir_flag_spec='-L$libdir' |
|
9245 |
hardcode_minus_L=yes |
|
9246 |
allow_undefined_flag=unsupported |
|
9247 |
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' |
|
9248 |
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
9249 |
;; |
|
9250 |
|
|
9251 |
osf3*) |
|
9252 |
if test "$GCC" = yes; then |
|
9253 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
9254 |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
9255 |
else |
|
9256 |
allow_undefined_flag=' -expect_unresolved \*' |
|
9257 |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
|
9258 |
fi |
|
9259 |
archive_cmds_need_lc='no' |
|
9260 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
9261 |
hardcode_libdir_separator=: |
|
9262 |
;; |
|
9263 |
|
|
9264 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
9265 |
if test "$GCC" = yes; then |
|
9266 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
9267 |
archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
9268 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
9269 |
else |
|
9270 |
allow_undefined_flag=' -expect_unresolved \*' |
|
9271 |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
|
9272 |
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
|
9273 |
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
|
9274 |
|
|
9275 |
# Both c and cxx compiler support -rpath directly |
|
9276 |
hardcode_libdir_flag_spec='-rpath $libdir' |
|
9277 |
fi |
|
9278 |
archive_cmds_need_lc='no' |
|
9279 |
hardcode_libdir_separator=: |
|
9280 |
;; |
|
9281 |
|
|
9282 |
solaris*) |
|
9283 |
no_undefined_flag=' -z defs' |
|
9284 |
if test "$GCC" = yes; then |
|
9285 |
wlarc='${wl}' |
|
9286 |
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9287 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
|
9288 |
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
|
9289 |
else |
|
9290 |
case `$CC -V 2>&1` in |
|
9291 |
*"Compilers 5.0"*) |
|
9292 |
wlarc='' |
|
9293 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
9294 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
|
9295 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
|
9296 |
;; |
|
9297 |
*) |
|
9298 |
wlarc='${wl}' |
|
9299 |
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9300 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
|
9301 |
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
|
9302 |
;; |
|
9303 |
esac |
|
9304 |
fi |
|
9305 |
hardcode_libdir_flag_spec='-R$libdir' |
|
9306 |
hardcode_shlibpath_var=no |
|
9307 |
case $host_os in |
|
9308 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
9309 |
*) |
|
9310 |
# The compiler driver will combine and reorder linker options, |
|
9311 |
# but understands `-z linker_flag'. GCC discards it without `$wl', |
|
9312 |
# but is careful enough not to reorder. |
|
9313 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
|
9314 |
if test "$GCC" = yes; then |
|
9315 |
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
|
9316 |
else |
|
9317 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
|
9318 |
fi |
|
9319 |
;; |
|
9320 |
esac |
|
9321 |
link_all_deplibs=yes |
|
9322 |
;; |
|
9323 |
|
|
9324 |
sunos4*) |
|
9325 |
if test "x$host_vendor" = xsequent; then |
|
9326 |
# Use $CC to link under sequent, because it throws in some extra .o |
|
9327 |
# files that make .init and .fini sections work. |
|
9328 |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9329 |
else |
|
9330 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
9331 |
fi |
|
9332 |
hardcode_libdir_flag_spec='-L$libdir' |
|
9333 |
hardcode_direct=yes |
|
9334 |
hardcode_minus_L=yes |
|
9335 |
hardcode_shlibpath_var=no |
|
9336 |
;; |
|
9337 |
|
|
9338 |
sysv4) |
|
9339 |
case $host_vendor in |
|
9340 |
sni) |
|
9341 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
9342 |
hardcode_direct=yes # is this really true??? |
|
9343 |
;; |
|
9344 |
siemens) |
|
9345 |
## LD is ld it makes a PLAMLIB |
|
9346 |
## CC just makes a GrossModule. |
|
9347 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
9348 |
reload_cmds='$CC -r -o $output$reload_objs' |
|
9349 |
hardcode_direct=no |
|
9350 |
;; |
|
9351 |
motorola) |
|
9352 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
9353 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|
9354 |
;; |
|
9355 |
esac |
|
9356 |
runpath_var='LD_RUN_PATH' |
|
9357 |
hardcode_shlibpath_var=no |
|
9358 |
;; |
|
9359 |
|
|
9360 |
sysv4.3*) |
|
9361 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
9362 |
hardcode_shlibpath_var=no |
|
9363 |
export_dynamic_flag_spec='-Bexport' |
|
9364 |
;; |
|
9365 |
|
|
9366 |
sysv4*MP*) |
|
9367 |
if test -d /usr/nec; then |
|
9368 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
9369 |
hardcode_shlibpath_var=no |
|
9370 |
runpath_var=LD_RUN_PATH |
|
9371 |
hardcode_runpath_var=yes |
|
9372 |
ld_shlibs=yes |
|
9373 |
fi |
|
9374 |
;; |
|
9375 |
|
|
9376 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
|
9377 |
no_undefined_flag='${wl}-z,text' |
|
9378 |
archive_cmds_need_lc=no |
|
9379 |
hardcode_shlibpath_var=no |
|
9380 |
runpath_var='LD_RUN_PATH' |
|
9381 |
|
|
9382 |
if test "$GCC" = yes; then |
|
9383 |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9384 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9385 |
else |
|
9386 |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9387 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9388 |
fi |
|
9389 |
;; |
|
9390 |
|
|
9391 |
sysv5* | sco3.2v5* | sco5v6*) |
|
9392 |
# Note: We can NOT use -z defs as we might desire, because we do not |
|
9393 |
# link with -lc, and that would cause any symbols used from libc to |
|
9394 |
# always be unresolved, which means just about no library would |
|
9395 |
# ever link correctly. If we're not using GNU ld we use -z text |
|
9396 |
# though, which does catch some bad symbols but isn't as heavy-handed |
|
9397 |
# as -z defs. |
|
9398 |
no_undefined_flag='${wl}-z,text' |
|
9399 |
allow_undefined_flag='${wl}-z,nodefs' |
|
9400 |
archive_cmds_need_lc=no |
|
9401 |
hardcode_shlibpath_var=no |
|
9402 |
hardcode_libdir_flag_spec='${wl}-R,$libdir' |
|
9403 |
hardcode_libdir_separator=':' |
|
9404 |
link_all_deplibs=yes |
|
9405 |
export_dynamic_flag_spec='${wl}-Bexport' |
|
9406 |
runpath_var='LD_RUN_PATH' |
|
9407 |
|
|
9408 |
if test "$GCC" = yes; then |
|
9409 |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9410 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9411 |
else |
|
9412 |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9413 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
9414 |
fi |
|
9415 |
;; |
|
9416 |
|
|
9417 |
uts4*) |
|
9418 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
9419 |
hardcode_libdir_flag_spec='-L$libdir' |
|
9420 |
hardcode_shlibpath_var=no |
|
9421 |
;; |
|
9422 |
|
|
9423 |
*) |
|
9424 |
ld_shlibs=no |
|
9425 |
;; |
|
9426 |
esac |
|
9427 |
|
|
9428 |
if test x$host_vendor = xsni; then |
|
9429 |
case $host in |
|
9430 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
9431 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
9432 |
;; |
|
9433 |
esac |
|
9434 |
fi |
|
9435 |
fi |
|
9436 |
|
|
9437 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
|
9438 |
$as_echo "$ld_shlibs" >&6; } |
|
9439 |
test "$ld_shlibs" = no && can_build_shared=no |
|
9440 |
|
|
9441 |
with_gnu_ld=$with_gnu_ld |
|
9442 |
|
|
9443 |
|
|
9444 |
|
|
9445 |
|
|
9446 |
|
|
9447 |
|
|
9448 |
|
|
9449 |
|
|
9450 |
|
|
9451 |
|
|
9452 |
|
|
9453 |
|
|
9454 |
|
|
9455 |
|
|
9456 |
|
|
9457 |
# |
|
9458 |
# Do we need to explicitly link libc? |
|
9459 |
# |
|
9460 |
case "x$archive_cmds_need_lc" in |
|
9461 |
x|xyes) |
|
9462 |
# Assume -lc should be added |
|
9463 |
archive_cmds_need_lc=yes |
|
9464 |
|
|
9465 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
9466 |
case $archive_cmds in |
|
9467 |
*'~'*) |
|
9468 |
# FIXME: we may have to deal with multi-command sequences. |
|
9469 |
;; |
|
9470 |
'$CC '*) |
|
9471 |
# Test whether the compiler implicitly links with -lc since on some |
|
9472 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
9473 |
# to ld, don't add -lc before -lgcc. |
|
9474 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
|
9475 |
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
|
9476 |
if ${lt_cv_archive_cmds_need_lc+:} false; then : |
|
9477 |
$as_echo_n "(cached) " >&6 |
|
9478 |
else |
|
9479 |
$RM conftest* |
|
9480 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
9481 |
|
|
9482 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
|
9483 |
(eval $ac_compile) 2>&5 |
|
9484 |
ac_status=$? |
|
9485 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
9486 |
test $ac_status = 0; } 2>conftest.err; then |
|
9487 |
soname=conftest |
|
9488 |
lib=conftest |
|
9489 |
libobjs=conftest.$ac_objext |
|
9490 |
deplibs= |
|
9491 |
wl=$lt_prog_compiler_wl |
|
9492 |
pic_flag=$lt_prog_compiler_pic |
|
9493 |
compiler_flags=-v |
|
9494 |
linker_flags=-v |
|
9495 |
verstring= |
|
9496 |
output_objdir=. |
|
9497 |
libname=conftest |
|
9498 |
lt_save_allow_undefined_flag=$allow_undefined_flag |
|
9499 |
allow_undefined_flag= |
|
9500 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
|
9501 |
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
9502 |
ac_status=$? |
|
9503 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
9504 |
test $ac_status = 0; } |
|
9505 |
then |
|
9506 |
lt_cv_archive_cmds_need_lc=no |
|
9507 |
else |
|
9508 |
lt_cv_archive_cmds_need_lc=yes |
|
9509 |
fi |
|
9510 |
allow_undefined_flag=$lt_save_allow_undefined_flag |
|
9511 |
else |
|
9512 |
cat conftest.err 1>&5 |
|
9513 |
fi |
|
9514 |
$RM conftest* |
|
9515 |
|
|
9516 |
fi |
|
9517 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
|
9518 |
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
|
9519 |
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
|
9520 |
;; |
|
9521 |
esac |
|
9522 |
fi |
|
9523 |
;; |
|
9524 |
esac |
|
9525 |
|
|
9526 |
|
|
9527 |
|
|
9528 |
|
|
9529 |
|
|
9530 |
|
|
9531 |
|
|
9532 |
|
|
9533 |
|
|
9534 |
|
|
9535 |
|
|
9536 |
|
|
9537 |
|
|
9538 |
|
|
9539 |
|
|
9540 |
|
|
9541 |
|
|
9542 |
|
|
9543 |
|
|
9544 |
|
|
9545 |
|
|
9546 |
|
|
9547 |
|
|
9548 |
|
|
9549 |
|
|
9550 |
|
|
9551 |
|
|
9552 |
|
|
9553 |
|
|
9554 |
|
|
9555 |
|
|
9556 |
|
|
9557 |
|
|
9558 |
|
|
9559 |
|
|
9560 |
|
|
9561 |
|
|
9562 |
|
|
9563 |
|
|
9564 |
|
|
9565 |
|
|
9566 |
|
|
9567 |
|
|
9568 |
|
|
9569 |
|
|
9570 |
|
|
9571 |
|
|
9572 |
|
|
9573 |
|
|
9574 |
|
|
9575 |
|
|
9576 |
|
|
9577 |
|
|
9578 |
|
|
9579 |
|
|
9580 |
|
|
9581 |
|
|
9582 |
|
|
9583 |
|
|
9584 |
|
|
9585 |
|
|
9586 |
|
|
9587 |
|
|
9588 |
|
|
9589 |
|
|
9590 |
|
|
9591 |
|
|
9592 |
|
|
9593 |
|
|
9594 |
|
|
9595 |
|
|
9596 |
|
|
9597 |
|
|
9598 |
|
|
9599 |
|
|
9600 |
|
|
9601 |
|
|
9602 |
|
|
9603 |
|
|
9604 |
|
|
9605 |
|
|
9606 |
|
|
9607 |
|
|
9608 |
|
|
9609 |
|
|
9610 |
|
|
9611 |
|
|
9612 |
|
|
9613 |
|
|
9614 |
|
|
9615 |
|
|
9616 |
|
|
9617 |
|
|
9618 |
|
|
9619 |
|
|
9620 |
|
|
9621 |
|
|
9622 |
|
|
9623 |
|
|
9624 |
|
|
9625 |
|
|
9626 |
|
|
9627 |
|
|
9628 |
|
|
9629 |
|
|
9630 |
|
|
9631 |
|
|
9632 |
|
|
9633 |
|
|
9634 |
|
|
9635 |
|
|
9636 |
|
|
9637 |
|
|
9638 |
|
|
9639 |
|
|
9640 |
|
|
9641 |
|
|
9642 |
|
|
9643 |
|
|
9644 |
|
|
9645 |
|
|
9646 |
|
|
9647 |
|
|
9648 |
|
|
9649 |
|
|
9650 |
|
|
9651 |
|
|
9652 |
|
|
9653 |
|
|
9654 |
|
|
9655 |
|
|
9656 |
|
|
9657 |
|
|
9658 |
|
|
9659 |
|
|
9660 |
|
|
9661 |
|
|
9662 |
|
|
9663 |
|
|
9664 |
|
|
9665 |
|
|
9666 |
|
|
9667 |
|
|
9668 |
|
|
9669 |
|
|
9670 |
|
|
9671 |
|
|
9672 |
|
|
9673 |
|
|
9674 |
|
|
9675 |
|
|
9676 |
|
|
9677 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
|
9678 |
$as_echo_n "checking dynamic linker characteristics... " >&6; } |
|
9679 |
|
|
9680 |
if test "$GCC" = yes; then |
|
9681 |
case $host_os in |
|
9682 |
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
|
9683 |
*) lt_awk_arg="/^libraries:/" ;; |
|
9684 |
esac |
|
9685 |
case $host_os in |
|
9686 |
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
|
9687 |
*) lt_sed_strip_eq="s,=/,/,g" ;; |
|
9688 |
esac |
|
9689 |
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
|
9690 |
case $lt_search_path_spec in |
|
9691 |
*\;*) |
|
9692 |
# if the path contains ";" then we assume it to be the separator |
|
9693 |
# otherwise default to the standard path separator (i.e. ":") - it is |
|
9694 |
# assumed that no part of a normal pathname contains ";" but that should |
|
9695 |
# okay in the real world where ";" in dirpaths is itself problematic. |
|
9696 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
|
9697 |
;; |
|
9698 |
*) |
|
9699 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
|
9700 |
;; |
|
9701 |
esac |
|
9702 |
# Ok, now we have the path, separated by spaces, we can step through it |
|
9703 |
# and add multilib dir if necessary. |
|
9704 |
lt_tmp_lt_search_path_spec= |
|
9705 |
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
|
9706 |
for lt_sys_path in $lt_search_path_spec; do |
|
9707 |
if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
|
9708 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
|
9709 |
else |
|
9710 |
test -d "$lt_sys_path" && \ |
|
9711 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
|
9712 |
fi |
|
9713 |
done |
|
9714 |
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
|
9715 |
BEGIN {RS=" "; FS="/|\n";} { |
|
9716 |
lt_foo=""; |
|
9717 |
lt_count=0; |
|
9718 |
for (lt_i = NF; lt_i > 0; lt_i--) { |
|
9719 |
if ($lt_i != "" && $lt_i != ".") { |
|
9720 |
if ($lt_i == "..") { |
|
9721 |
lt_count++; |
|
9722 |
} else { |
|
9723 |
if (lt_count == 0) { |
|
9724 |
lt_foo="/" $lt_i lt_foo; |
|
9725 |
} else { |
|
9726 |
lt_count--; |
|
9727 |
} |
|
9728 |
} |
|
9729 |
} |
|
9730 |
} |
|
9731 |
if (lt_foo != "") { lt_freq[lt_foo]++; } |
|
9732 |
if (lt_freq[lt_foo] == 1) { print lt_foo; } |
|
9733 |
}'` |
|
9734 |
# AWK program above erroneously prepends '/' to C:/dos/paths |
|
9735 |
# for these hosts. |
|
9736 |
case $host_os in |
|
9737 |
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
|
9738 |
$SED 's,/\([A-Za-z]:\),\1,g'` ;; |
|
9739 |
esac |
|
9740 |
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
|
9741 |
else |
|
9742 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
9743 |
fi |
|
9744 |
library_names_spec= |
|
9745 |
libname_spec='lib$name' |
|
9746 |
soname_spec= |
|
9747 |
shrext_cmds=".so" |
|
9748 |
postinstall_cmds= |
|
9749 |
postuninstall_cmds= |
|
9750 |
finish_cmds= |
|
9751 |
finish_eval= |
|
9752 |
shlibpath_var= |
|
9753 |
shlibpath_overrides_runpath=unknown |
|
9754 |
version_type=none |
|
9755 |
dynamic_linker="$host_os ld.so" |
|
9756 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
9757 |
need_lib_prefix=unknown |
|
9758 |
hardcode_into_libs=no |
|
9759 |
|
|
9760 |
# when you set need_version to no, make sure it does not cause -set_version |
|
9761 |
# flags to be left without arguments |
|
9762 |
need_version=unknown |
|
9763 |
|
|
9764 |
case $host_os in |
|
9765 |
aix3*) |
|
9766 |
version_type=linux # correct to gnu/linux during the next big refactor |
|
9767 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
9768 |
shlibpath_var=LIBPATH |
|
9769 |
|
|
9770 |
# AIX 3 has no versioning support, so we append a major version to the name. |
|
9771 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9772 |
;; |
|
9773 |
|
|
9774 |
aix[4-9]*) |
|
9775 |
version_type=linux # correct to gnu/linux during the next big refactor |
|
9776 |
need_lib_prefix=no |
|
9777 |
need_version=no |
|
9778 |
hardcode_into_libs=yes |
|
9779 |
if test "$host_cpu" = ia64; then |
|
9780 |
# AIX 5 supports IA64 |
|
9781 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
9782 |
shlibpath_var=LD_LIBRARY_PATH |
|
9783 |
else |
|
9784 |
# With GCC up to 2.95.x, collect2 would create an import file |
|
9785 |
# for dependence libraries. The import file would start with |
|
9786 |
# the line `#! .'. This would cause the generated library to |
|
9787 |
# depend on `.', always an invalid library. This was fixed in |
|
9788 |
# development snapshots of GCC prior to 3.0. |
|
9789 |
case $host_os in |
|
9790 |
aix4 | aix4.[01] | aix4.[01].*) |
|
9791 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
9792 |
echo ' yes ' |
|
9793 |
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
|
9794 |
: |
|
9795 |
else |
|
9796 |
can_build_shared=no |
|
9797 |
fi |
|
9798 |
;; |
|
9799 |
esac |
|
9800 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
9801 |
# soname into executable. Probably we can add versioning support to |
|
9802 |
# collect2, so additional links can be useful in future. |
|
9803 |
if test "$aix_use_runtimelinking" = yes; then |
|
9804 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
9805 |
# instead of lib<name>.a to let people know that these are not |
|
9806 |
# typical AIX shared libraries. |
|
9807 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9808 |
else |
|
9809 |
# We preserve .a as extension for shared libraries through AIX4.2 |
|
9810 |
# and later when we are not doing run time linking. |
|
9811 |
library_names_spec='${libname}${release}.a $libname.a' |
|
9812 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9813 |
fi |
|
9814 |
shlibpath_var=LIBPATH |
|
9815 |
fi |
|
9816 |
;; |
|
9817 |
|
|
9818 |
amigaos*) |
|
9819 |
case $host_cpu in |
|
9820 |
powerpc) |
|
9821 |
# Since July 2007 AmigaOS4 officially supports .so libraries. |
|
9822 |
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
|
9823 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9824 |
;; |
|
9825 |
m68k) |
|
9826 |
library_names_spec='$libname.ixlibrary $libname.a' |
|
9827 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
9828 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
|
9829 |
;; |
|
9830 |
esac |
|
9831 |
;; |
|
9832 |
|
|
9833 |
beos*) |
|
9834 |
library_names_spec='${libname}${shared_ext}' |
|
9835 |
dynamic_linker="$host_os ld.so" |
|
9836 |
shlibpath_var=LIBRARY_PATH |
|
9837 |
;; |
|
9838 |
|
|
9839 |
bsdi[45]*) |
|
9840 |
version_type=linux # correct to gnu/linux during the next big refactor |
|
9841 |
need_version=no |
|
9842 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9843 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9844 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
9845 |
shlibpath_var=LD_LIBRARY_PATH |
|
9846 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
9847 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
9848 |
# the default ld.so.conf also contains /usr/contrib/lib and |
|
9849 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
9850 |
# libtool to hard-code these into programs |
|
9851 |
;; |
|
9852 |
|
|
9853 |
cygwin* | mingw* | pw32* | cegcc*) |
|
9854 |
version_type=windows |
|
9855 |
shrext_cmds=".dll" |
|
9856 |
need_version=no |
|
9857 |
need_lib_prefix=no |
|
9858 |
|
|
9859 |
case $GCC,$cc_basename in |
|
9860 |
yes,*) |
|
9861 |
# gcc |
|
9862 |
library_names_spec='$libname.dll.a' |
|
9863 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
9864 |
postinstall_cmds='base_file=`basename \${file}`~ |
|
9865 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
|
9866 |
dldir=$destdir/`dirname \$dlpath`~ |
|
9867 |
test -d \$dldir || mkdir -p \$dldir~ |
|
9868 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
|
9869 |
chmod a+x \$dldir/$dlname~ |
|
9870 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
|
9871 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
|
9872 |
fi' |
|
9873 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
9874 |
dlpath=$dir/\$dldll~ |
|
9875 |
$RM \$dlpath' |
|
9876 |
shlibpath_overrides_runpath=yes |
|
9877 |
|
|
9878 |
case $host_os in |
|
9879 |
cygwin*) |
|
9880 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
9881 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
9882 |
|
|
9883 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
|
9884 |
;; |
|
9885 |
mingw* | cegcc*) |
|
9886 |
# MinGW DLLs use traditional 'lib' prefix |
|
9887 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
9888 |
;; |
|
9889 |
pw32*) |
|
9890 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
|
9891 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
9892 |
;; |
|
9893 |
esac |
|
9894 |
dynamic_linker='Win32 ld.exe' |
|
9895 |
;; |
|
9896 |
|
|
9897 |
*,cl*) |
|
9898 |
# Native MSVC |
|
9899 |
libname_spec='$name' |
|
9900 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
9901 |
library_names_spec='${libname}.dll.lib' |
|
9902 |
|
|
9903 |
case $build_os in |
|
9904 |
mingw*) |
|
9905 |
sys_lib_search_path_spec= |
|
9906 |
lt_save_ifs=$IFS |
|
9907 |
IFS=';' |
|
9908 |
for lt_path in $LIB |
|
9909 |
do |
|
9910 |
IFS=$lt_save_ifs |
|
9911 |
# Let DOS variable expansion print the short 8.3 style file name. |
|
9912 |
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
|
9913 |
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
|
9914 |
done |
|
9915 |
IFS=$lt_save_ifs |
|
9916 |
# Convert to MSYS style. |
|
9917 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
|
9918 |
;; |
|
9919 |
cygwin*) |
|
9920 |
# Convert to unix form, then to dos form, then back to unix form |
|
9921 |
# but this time dos style (no spaces!) so that the unix form looks |
|
9922 |
# like /cygdrive/c/PROGRA~1:/cygdr... |
|
9923 |
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
|
9924 |
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
|
9925 |
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
9926 |
;; |
|
9927 |
*) |
|
9928 |
sys_lib_search_path_spec="$LIB" |
|
9929 |
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
|
9930 |
# It is most probably a Windows format PATH. |
|
9931 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
9932 |
else |
|
9933 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
9934 |
fi |
|
9935 |
# FIXME: find the short name or the path components, as spaces are |
|
9936 |
# common. (e.g. "Program Files" -> "PROGRA~1") |
|
9937 |
;; |
|
9938 |
esac |
|
9939 |
|
|
9940 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
9941 |
postinstall_cmds='base_file=`basename \${file}`~ |
|
9942 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
|
9943 |
dldir=$destdir/`dirname \$dlpath`~ |
|
9944 |
test -d \$dldir || mkdir -p \$dldir~ |
|
9945 |
$install_prog $dir/$dlname \$dldir/$dlname' |
|
9946 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
9947 |
dlpath=$dir/\$dldll~ |
|
9948 |
$RM \$dlpath' |
|
9949 |
shlibpath_overrides_runpath=yes |
|
9950 |
dynamic_linker='Win32 link.exe' |
|
9951 |
;; |
|
9952 |
|
|
9953 |
*) |
|
9954 |
# Assume MSVC wrapper |
|
9955 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
9956 |
dynamic_linker='Win32 ld.exe' |
|
9957 |
;; |
|
9958 |
esac |
|
9959 |
# FIXME: first we should search . and the directory the executable is in |
|
9960 |
shlibpath_var=PATH |
|
9961 |
;; |
|
9962 |
|
|
9963 |
darwin* | rhapsody*) |
|
9964 |
dynamic_linker="$host_os dyld" |
|
9965 |
version_type=darwin |
|
9966 |
need_lib_prefix=no |
|
9967 |
need_version=no |
|
9968 |
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
9969 |
soname_spec='${libname}${release}${major}$shared_ext' |
|
9970 |
shlibpath_overrides_runpath=yes |
|
9971 |
shlibpath_var=DYLD_LIBRARY_PATH |
|
9972 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
|
9973 |
|
|
9974 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
|
9975 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
9976 |
;; |
|
9977 |
|
|
9978 |
dgux*) |
|
9979 |
version_type=linux # correct to gnu/linux during the next big refactor |
|
9980 |
need_lib_prefix=no |
|
9981 |
need_version=no |
|
9982 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
9983 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9984 |
shlibpath_var=LD_LIBRARY_PATH |
|
9985 |
;; |
|
9986 |
|
|
9987 |
freebsd* | dragonfly*) |
|
9988 |
# DragonFly does not have aout. When/if they implement a new |
|
9989 |
# versioning mechanism, adjust this. |
|
9990 |
if test -x /usr/bin/objformat; then |
|
9991 |
objformat=`/usr/bin/objformat` |
|
9992 |
else |
|
9993 |
case $host_os in |
|
9994 |
freebsd[23].*) objformat=aout ;; |
|
9995 |
*) objformat=elf ;; |
|
9996 |
esac |
|
9997 |
fi |
|
9998 |
version_type=freebsd-$objformat |
|
9999 |
case $version_type in |
|
10000 |
freebsd-elf*) |
|
10001 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
10002 |
need_version=no |
|
10003 |
need_lib_prefix=no |
|
10004 |
;; |
|
10005 |
freebsd-*) |
|
10006 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
10007 |
need_version=yes |
|
10008 |
;; |
|
10009 |
esac |
|
10010 |
shlibpath_var=LD_LIBRARY_PATH |
|
10011 |
case $host_os in |
|
10012 |
freebsd2.*) |
|
10013 |
shlibpath_overrides_runpath=yes |
|
10014 |
;; |
|
10015 |
freebsd3.[01]* | freebsdelf3.[01]*) |
|
10016 |
shlibpath_overrides_runpath=yes |
|
10017 |
hardcode_into_libs=yes |
|
10018 |
;; |
|
10019 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
10020 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
10021 |
shlibpath_overrides_runpath=no |
|
10022 |
hardcode_into_libs=yes |
|
10023 |
;; |
|
10024 |
*) # from 4.6 on, and DragonFly |
|
10025 |
shlibpath_overrides_runpath=yes |
|
10026 |
hardcode_into_libs=yes |
|
10027 |
;; |
|
10028 |
esac |
|
10029 |
;; |
|
10030 |
|
|
10031 |
gnu*) |
|
10032 |
version_type=linux # correct to gnu/linux during the next big refactor |
|
10033 |
need_lib_prefix=no |
|
10034 |
need_version=no |
|
10035 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
10036 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10037 |
shlibpath_var=LD_LIBRARY_PATH |
|
10038 |
shlibpath_overrides_runpath=no |
|
10039 |
hardcode_into_libs=yes |
|
10040 |
;; |
|
10041 |
|
|
10042 |
haiku*) |
|
10043 |
version_type=linux # correct to gnu/linux during the next big refactor |
|
10044 |
need_lib_prefix=no |
|
10045 |
need_version=no |
|
10046 |
dynamic_linker="$host_os runtime_loader" |
|
10047 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
10048 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10049 |
shlibpath_var=LIBRARY_PATH |
|
10050 |
shlibpath_overrides_runpath=yes |
|
10051 |
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
|
10052 |
hardcode_into_libs=yes |
|
10053 |
;; |
|
10054 |
|
|
10055 |
hpux9* | hpux10* | hpux11*) |
|
10056 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
|
10057 |
# link against other versions. |
|
10058 |
version_type=sunos |
|
10059 |
need_lib_prefix=no |
|
10060 |
need_version=no |
|
10061 |
case $host_cpu in |
|
10062 |
ia64*) |
|
10063 |
shrext_cmds='.so' |
|
10064 |
hardcode_into_libs=yes |
|
10065 |
dynamic_linker="$host_os dld.so" |
|
10066 |
shlibpath_var=LD_LIBRARY_PATH |
|
10067 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
10068 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10069 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10070 |
if test "X$HPUX_IA64_MODE" = X32; then |
|
10071 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
10072 |
else |
|
10073 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
10074 |
fi |
|
10075 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
10076 |
;; |
|
10077 |
hppa*64*) |
|
10078 |
shrext_cmds='.sl' |
|
10079 |
hardcode_into_libs=yes |
|
10080 |
dynamic_linker="$host_os dld.sl" |
|
10081 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
10082 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
10083 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10084 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10085 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
10086 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
10087 |
;; |
|
10088 |
*) |
|
10089 |
shrext_cmds='.sl' |
|
10090 |
dynamic_linker="$host_os dld.sl" |
|
10091 |
shlibpath_var=SHLIB_PATH |
|
10092 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
10093 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10094 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10095 |
;; |
|
10096 |
esac |
|
10097 |
# HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
|
10098 |
postinstall_cmds='chmod 555 $lib' |
|
10099 |
# or fails outright, so override atomically: |
|
10100 |
install_override_mode=555 |
|
10101 |
;; |
|
10102 |
|
|
10103 |
interix[3-9]*) |
|
10104 |
version_type=linux # correct to gnu/linux during the next big refactor |
|
10105 |
need_lib_prefix=no |
|
10106 |
need_version=no |
|
10107 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
10108 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10109 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
10110 |
shlibpath_var=LD_LIBRARY_PATH |
|
10111 |
shlibpath_overrides_runpath=no |
|
10112 |
hardcode_into_libs=yes |
|
10113 |
;; |
|
10114 |
|
|
10115 |
irix5* | irix6* | nonstopux*) |
|
10116 |
case $host_os in |
|
10117 |
nonstopux*) version_type=nonstopux ;; |
|
10118 |
*) |
|
10119 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
10120 |
version_type=linux # correct to gnu/linux during the next big refactor |
|
10121 |
else |
|
10122 |
version_type=irix |
|
10123 |
fi ;; |
|
10124 |
esac |
|
10125 |
need_lib_prefix=no |
|
10126 |
need_version=no |
|
10127 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10128 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
10129 |
case $host_os in |
|
10130 |
irix5* | nonstopux*) |
|
10131 |
libsuff= shlibsuff= |
|
10132 |
;; |
|
10133 |
*) |
|
10134 |
case $LD in # libtool.m4 will add one of these switches to LD |
|
10135 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
10136 |
libsuff= shlibsuff= libmagic=32-bit;; |
|
10137 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
10138 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
10139 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
10140 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
10141 |
*) libsuff= shlibsuff= libmagic=never-match;; |
|
10142 |
esac |
|
10143 |
;; |
|
10144 |
esac |
|
10145 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
10146 |
shlibpath_overrides_runpath=no |
|
10147 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
10148 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
10149 |
hardcode_into_libs=yes |
|
10150 |
;; |
|
10151 |
|
|
10152 |
# No shared lib support for Linux oldld, aout, or coff. |
|
10153 |
linux*oldld* | linux*aout* | linux*coff*) |
|
10154 |
dynamic_linker=no |
|
10155 |
;; |
|
10156 |
|
|
10157 |
# This must be glibc/ELF. |
|
10158 |
linux* | k*bsd*-gnu | kopensolaris*-gnu) |
|
10159 |
version_type=linux # correct to gnu/linux during the next big refactor |
|
10160 |
need_lib_prefix=no |
|
10161 |
need_version=no |
|
10162 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10163 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10164 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
10165 |
shlibpath_var=LD_LIBRARY_PATH |
|
10166 |
shlibpath_overrides_runpath=no |
|
10167 |
|
|
10168 |
# Some binutils ld are patched to set DT_RUNPATH |
|
10169 |
if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
|
10170 |
$as_echo_n "(cached) " >&6 |
|
10171 |
else |
|
10172 |
lt_cv_shlibpath_overrides_runpath=no |
|
10173 |
save_LDFLAGS=$LDFLAGS |
|
10174 |
save_libdir=$libdir |
|
10175 |
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
|
10176 |
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
|
10177 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
10178 |
/* end confdefs.h. */ |
|
10179 |
|
|
10180 |
int |
|
10181 |
main () |
|
10182 |
{ |
|
10183 |
|
|
10184 |
; |
|
10185 |
return 0; |
|
10186 |
} |
|
10187 |
_ACEOF |
|
10188 |
if ac_fn_c_try_link "$LINENO"; then : |
|
10189 |
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
|
10190 |
lt_cv_shlibpath_overrides_runpath=yes |
|
10191 |
fi |
|
10192 |
fi |
|
10193 |
rm -f core conftest.err conftest.$ac_objext \ |
|
10194 |
conftest$ac_exeext conftest.$ac_ext |
|
10195 |
LDFLAGS=$save_LDFLAGS |
|
10196 |
libdir=$save_libdir |
|
10197 |
|
|
10198 |
fi |
|
10199 |
|
|
10200 |
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
|
10201 |
|
|
10202 |
# This implies no fast_install, which is unacceptable. |
|
10203 |
# Some rework will be needed to allow for fast_install |
|
10204 |
# before this can be enabled. |
|
10205 |
hardcode_into_libs=yes |
|
10206 |
|
|
10207 |
# Add ABI-specific directories to the system library path. |
|
10208 |
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" |
|
10209 |
|
|
10210 |
# Append ld.so.conf contents to the search path |
|
10211 |
if test -f /etc/ld.so.conf; then |
|
10212 |
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
|
10213 |
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
|
10214 |
|
|
10215 |
fi |
|
10216 |
|
|
10217 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
|
10218 |
# powerpc, because MkLinux only supported shared libraries with the |
|
10219 |
# GNU dynamic linker. Since this was broken with cross compilers, |
|
10220 |
# most powerpc-linux boxes support dynamic linking these days and |
|
10221 |
# people can always --disable-shared, the test was removed, and we |
|
10222 |
# assume the GNU/Linux dynamic linker is in use. |
|
10223 |
dynamic_linker='GNU/Linux ld.so' |
|
10224 |
;; |
|
10225 |
|
|
10226 |
netbsd*) |
|
10227 |
version_type=sunos |
|
10228 |
need_lib_prefix=no |
|
10229 |
need_version=no |
|
10230 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
|
10231 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
10232 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
10233 |
dynamic_linker='NetBSD (a.out) ld.so' |
|
10234 |
else |
|
10235 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
10236 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10237 |
dynamic_linker='NetBSD ld.elf_so' |
|
10238 |
fi |
|
10239 |
shlibpath_var=LD_LIBRARY_PATH |
|
10240 |
shlibpath_overrides_runpath=yes |
|
10241 |
hardcode_into_libs=yes |
|
10242 |
;; |
|
10243 |
|
|
10244 |
newsos6) |
|
10245 |
version_type=linux # correct to gnu/linux during the next big refactor |
|
10246 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10247 |
shlibpath_var=LD_LIBRARY_PATH |
|
10248 |
shlibpath_overrides_runpath=yes |
|
10249 |
;; |
|
10250 |
|
|
10251 |
*nto* | *qnx*) |
|
10252 |
version_type=qnx |
|
10253 |
need_lib_prefix=no |
|
10254 |
need_version=no |
|
10255 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10256 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10257 |
shlibpath_var=LD_LIBRARY_PATH |
|
10258 |
shlibpath_overrides_runpath=no |
|
10259 |
hardcode_into_libs=yes |
|
10260 |
dynamic_linker='ldqnx.so' |
|
10261 |
;; |
|
10262 |
|
|
10263 |
openbsd*) |
|
10264 |
version_type=sunos |
|
10265 |
sys_lib_dlsearch_path_spec="/usr/lib" |
|
10266 |
need_lib_prefix=no |
|
10267 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
10268 |
case $host_os in |
|
10269 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
10270 |
*) need_version=no ;; |
|
10271 |
esac |
|
10272 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
10273 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
10274 |
shlibpath_var=LD_LIBRARY_PATH |
|
10275 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
10276 |
case $host_os in |
|
10277 |
openbsd2.[89] | openbsd2.[89].*) |
|
10278 |
shlibpath_overrides_runpath=no |
|
10279 |
;; |
|
10280 |
*) |
|
10281 |
shlibpath_overrides_runpath=yes |
|
10282 |
;; |
|
10283 |
esac |
|
10284 |
else |
|
10285 |
shlibpath_overrides_runpath=yes |
|
10286 |
fi |
|
10287 |
;; |
|
10288 |
|
|
10289 |
os2*) |
|
10290 |
libname_spec='$name' |
|
10291 |
shrext_cmds=".dll" |
|
10292 |
need_lib_prefix=no |
|
10293 |
library_names_spec='$libname${shared_ext} $libname.a' |
|
10294 |
dynamic_linker='OS/2 ld.exe' |
|
10295 |
shlibpath_var=LIBPATH |
|
10296 |
;; |
|
10297 |
|
|
10298 |
osf3* | osf4* | osf5*) |
|
10299 |
version_type=osf |
|
10300 |
need_lib_prefix=no |
|
10301 |
need_version=no |
|
10302 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10303 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10304 |
shlibpath_var=LD_LIBRARY_PATH |
|
10305 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
10306 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
10307 |
;; |
|
10308 |
|
|
10309 |
rdos*) |
|
10310 |
dynamic_linker=no |
|
10311 |
;; |
|
10312 |
|
|
10313 |
solaris*) |
|
10314 |
version_type=linux # correct to gnu/linux during the next big refactor |
|
10315 |
need_lib_prefix=no |
|
10316 |
need_version=no |
|
10317 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10318 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10319 |
shlibpath_var=LD_LIBRARY_PATH |
|
10320 |
shlibpath_overrides_runpath=yes |
|
10321 |
hardcode_into_libs=yes |
|
10322 |
# ldd complains unless libraries are executable |
|
10323 |
postinstall_cmds='chmod +x $lib' |
|
10324 |
;; |
|
10325 |
|
|
10326 |
sunos4*) |
|
10327 |
version_type=sunos |
|
10328 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
10329 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
10330 |
shlibpath_var=LD_LIBRARY_PATH |
|
10331 |
shlibpath_overrides_runpath=yes |
|
10332 |
if test "$with_gnu_ld" = yes; then |
|
10333 |
need_lib_prefix=no |
|
10334 |
fi |
|
10335 |
need_version=yes |
|
10336 |
;; |
|
10337 |
|
|
10338 |
sysv4 | sysv4.3*) |
|
10339 |
version_type=linux # correct to gnu/linux during the next big refactor |
|
10340 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10341 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10342 |
shlibpath_var=LD_LIBRARY_PATH |
|
10343 |
case $host_vendor in |
|
10344 |
sni) |
|
10345 |
shlibpath_overrides_runpath=no |
|
10346 |
need_lib_prefix=no |
|
10347 |
runpath_var=LD_RUN_PATH |
|
10348 |
;; |
|
10349 |
siemens) |
|
10350 |
need_lib_prefix=no |
|
10351 |
;; |
|
10352 |
motorola) |
|
10353 |
need_lib_prefix=no |
|
10354 |
need_version=no |
|
10355 |
shlibpath_overrides_runpath=no |
|
10356 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
10357 |
;; |
|
10358 |
esac |
|
10359 |
;; |
|
10360 |
|
|
10361 |
sysv4*MP*) |
|
10362 |
if test -d /usr/nec ;then |
|
10363 |
version_type=linux # correct to gnu/linux during the next big refactor |
|
10364 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
10365 |
soname_spec='$libname${shared_ext}.$major' |
|
10366 |
shlibpath_var=LD_LIBRARY_PATH |
|
10367 |
fi |
|
10368 |
;; |
|
10369 |
|
|
10370 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
10371 |
version_type=freebsd-elf |
|
10372 |
need_lib_prefix=no |
|
10373 |
need_version=no |
|
10374 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
10375 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10376 |
shlibpath_var=LD_LIBRARY_PATH |
|
10377 |
shlibpath_overrides_runpath=yes |
|
10378 |
hardcode_into_libs=yes |
|
10379 |
if test "$with_gnu_ld" = yes; then |
|
10380 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
10381 |
else |
|
10382 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
10383 |
case $host_os in |
|
10384 |
sco3.2v5*) |
|
10385 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
10386 |
;; |
|
10387 |
esac |
|
10388 |
fi |
|
10389 |
sys_lib_dlsearch_path_spec='/usr/lib' |
|
10390 |
;; |
|
10391 |
|
|
10392 |
tpf*) |
|
10393 |
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
|
10394 |
version_type=linux # correct to gnu/linux during the next big refactor |
|
10395 |
need_lib_prefix=no |
|
10396 |
need_version=no |
|
10397 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10398 |
shlibpath_var=LD_LIBRARY_PATH |
|
10399 |
shlibpath_overrides_runpath=no |
|
10400 |
hardcode_into_libs=yes |
|
10401 |
;; |
|
10402 |
|
|
10403 |
uts4*) |
|
10404 |
version_type=linux # correct to gnu/linux during the next big refactor |
|
10405 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
10406 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
10407 |
shlibpath_var=LD_LIBRARY_PATH |
|
10408 |
;; |
|
10409 |
|
|
10410 |
*) |
|
10411 |
dynamic_linker=no |
|
10412 |
;; |
|
10413 |
esac |
|
10414 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
|
10415 |
$as_echo "$dynamic_linker" >&6; } |
|
10416 |
test "$dynamic_linker" = no && can_build_shared=no |
|
10417 |
|
|
10418 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
10419 |
if test "$GCC" = yes; then |
|
10420 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
10421 |
fi |
|
10422 |
|
|
10423 |
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
|
10424 |
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
|
10425 |
fi |
|
10426 |
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
|
10427 |
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
|
10428 |
fi |
|
10429 |
|
|
10430 |
|
|
10431 |
|
|
10432 |
|
|
10433 |
|
|
10434 |
|
|
10435 |
|
|
10436 |
|
|
10437 |
|
|
10438 |
|
|
10439 |
|
|
10440 |
|
|
10441 |
|
|
10442 |
|
|
10443 |
|
|
10444 |
|
|
10445 |
|
|
10446 |
|
|
10447 |
|
|
10448 |
|
|
10449 |
|
|
10450 |
|
|
10451 |
|
|
10452 |
|
|
10453 |
|
|
10454 |
|
|
10455 |
|
|
10456 |
|
|
10457 |
|
|
10458 |
|
|
10459 |
|
|
10460 |
|
|
10461 |
|
|
10462 |
|
|
10463 |
|
|
10464 |
|
|
10465 |
|
|
10466 |
|
|
10467 |
|
|
10468 |
|
|
10469 |
|
|
10470 |
|
|
10471 |
|
|
10472 |
|
|
10473 |
|
|
10474 |
|
|
10475 |
|
|
10476 |
|
|
10477 |
|
|
10478 |
|
|
10479 |
|
|
10480 |
|
|
10481 |
|
|
10482 |
|
|
10483 |
|
|
10484 |
|
|
10485 |
|
|
10486 |
|
|
10487 |
|
|
10488 |
|
|
10489 |
|
|
10490 |
|
|
10491 |
|
|
10492 |
|
|
10493 |
|
|
10494 |
|
|
10495 |
|
|
10496 |
|
|
10497 |
|
|
10498 |
|
|
10499 |
|
|
10500 |
|
|
10501 |
|
|
10502 |
|
|
10503 |
|
|
10504 |
|
|
10505 |
|
|
10506 |
|
|
10507 |
|
|
10508 |
|
|
10509 |
|
|
10510 |
|
|
10511 |
|
|
10512 |
|
|
10513 |
|
|
10514 |
|
|
10515 |
|
|
10516 |
|
|
10517 |
|
|
10518 |
|
|
10519 |
|
|
10520 |
|
|
10521 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
|
10522 |
$as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
|
10523 |
hardcode_action= |
|
10524 |
if test -n "$hardcode_libdir_flag_spec" || |
|
10525 |
test -n "$runpath_var" || |
|
10526 |
test "X$hardcode_automatic" = "Xyes" ; then |
|
10527 |
|
|
10528 |
# We can hardcode non-existent directories. |
|
10529 |
if test "$hardcode_direct" != no && |
|
10530 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
10531 |
# have to relink, otherwise we might link with an installed library |
|
10532 |
# when we should be linking with a yet-to-be-installed one |
|
10533 |
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
|
10534 |
test "$hardcode_minus_L" != no; then |
|
10535 |
# Linking always hardcodes the temporary library directory. |
|
10536 |
hardcode_action=relink |
|
10537 |
else |
|
10538 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
10539 |
hardcode_action=immediate |
|
10540 |
fi |
|
10541 |
else |
|
10542 |
# We cannot hardcode anything, or else we can only hardcode existing |
|
10543 |
# directories. |
|
10544 |
hardcode_action=unsupported |
|
10545 |
fi |
|
10546 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
|
10547 |
$as_echo "$hardcode_action" >&6; } |
|
10548 |
|
|
10549 |
if test "$hardcode_action" = relink || |
|
10550 |
test "$inherit_rpath" = yes; then |
|
10551 |
# Fast installation is not supported |
|
10552 |
enable_fast_install=no |
|
10553 |
elif test "$shlibpath_overrides_runpath" = yes || |
|
10554 |
test "$enable_shared" = no; then |
|
10555 |
# Fast installation is not necessary |
|
10556 |
enable_fast_install=needless |
|
10557 |
fi |
|
10558 |
|
|
10559 |
|
|
10560 |
|
|
10561 |
|
|
10562 |
|
|
10563 |
|
|
10564 |
if test "x$enable_dlopen" != xyes; then |
|
10565 |
enable_dlopen=unknown |
|
10566 |
enable_dlopen_self=unknown |
|
10567 |
enable_dlopen_self_static=unknown |
|
10568 |
else |
|
10569 |
lt_cv_dlopen=no |
|
10570 |
lt_cv_dlopen_libs= |
|
10571 |
|
|
10572 |
case $host_os in |
|
10573 |
beos*) |
|
10574 |
lt_cv_dlopen="load_add_on" |
|
10575 |
lt_cv_dlopen_libs= |
|
10576 |
lt_cv_dlopen_self=yes |
|
10577 |
;; |
|
10578 |
|
|
10579 |
mingw* | pw32* | cegcc*) |
|
10580 |
lt_cv_dlopen="LoadLibrary" |
|
10581 |
lt_cv_dlopen_libs= |
|
10582 |
;; |
|
10583 |
|
|
10584 |
cygwin*) |
|
10585 |
lt_cv_dlopen="dlopen" |
|
10586 |
lt_cv_dlopen_libs= |
|
10587 |
;; |
|
10588 |
|
|
10589 |
darwin*) |
|
10590 |
# if libdl is installed we need to link against it |
|
10591 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
|
10592 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
|
10593 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
|
10594 |
$as_echo_n "(cached) " >&6 |
|
10595 |
else |
|
10596 |
ac_check_lib_save_LIBS=$LIBS |
|
10597 |
LIBS="-ldl $LIBS" |
|
10598 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
10599 |
/* end confdefs.h. */ |
|
10600 |
|
|
10601 |
/* Override any GCC internal prototype to avoid an error. |
|
10602 |
Use char because int might match the return type of a GCC |
|
10603 |
builtin and then its argument prototype would still apply. */ |
|
10604 |
#ifdef __cplusplus |
|
10605 |
extern "C" |
|
10606 |
#endif |
|
10607 |
char dlopen (); |
|
10608 |
int |
|
10609 |
main () |
|
10610 |
{ |
|
10611 |
return dlopen (); |
|
10612 |
; |
|
10613 |
return 0; |
|
10614 |
} |
|
10615 |
_ACEOF |
|
10616 |
if ac_fn_c_try_link "$LINENO"; then : |
|
10617 |
ac_cv_lib_dl_dlopen=yes |
|
10618 |
else |
|
10619 |
ac_cv_lib_dl_dlopen=no |
|
10620 |
fi |
|
10621 |
rm -f core conftest.err conftest.$ac_objext \ |
|
10622 |
conftest$ac_exeext conftest.$ac_ext |
|
10623 |
LIBS=$ac_check_lib_save_LIBS |
|
10624 |
fi |
|
10625 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
|
10626 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
|
10627 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
|
10628 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
10629 |
else |
|
10630 |
|
|
10631 |
lt_cv_dlopen="dyld" |
|
10632 |
lt_cv_dlopen_libs= |
|
10633 |
lt_cv_dlopen_self=yes |
|
10634 |
|
|
10635 |
fi |
|
10636 |
|
|
10637 |
;; |
|
10638 |
|
|
10639 |
*) |
|
10640 |
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
|
10641 |
if test "x$ac_cv_func_shl_load" = xyes; then : |
|
10642 |
lt_cv_dlopen="shl_load" |
|
10643 |
else |
|
10644 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
|
10645 |
$as_echo_n "checking for shl_load in -ldld... " >&6; } |
|
10646 |
if ${ac_cv_lib_dld_shl_load+:} false; then : |
|
10647 |
$as_echo_n "(cached) " >&6 |
|
10648 |
else |
|
10649 |
ac_check_lib_save_LIBS=$LIBS |
|
10650 |
LIBS="-ldld $LIBS" |
|
10651 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
10652 |
/* end confdefs.h. */ |
|
10653 |
|
|
10654 |
/* Override any GCC internal prototype to avoid an error. |
|
10655 |
Use char because int might match the return type of a GCC |
|
10656 |
builtin and then its argument prototype would still apply. */ |
|
10657 |
#ifdef __cplusplus |
|
10658 |
extern "C" |
|
10659 |
#endif |
|
10660 |
char shl_load (); |
|
10661 |
int |
|
10662 |
main () |
|
10663 |
{ |
|
10664 |
return shl_load (); |
|
10665 |
; |
|
10666 |
return 0; |
|
10667 |
} |
|
10668 |
_ACEOF |
|
10669 |
if ac_fn_c_try_link "$LINENO"; then : |
|
10670 |
ac_cv_lib_dld_shl_load=yes |
|
10671 |
else |
|
10672 |
ac_cv_lib_dld_shl_load=no |
|
10673 |
fi |
|
10674 |
rm -f core conftest.err conftest.$ac_objext \ |
|
10675 |
conftest$ac_exeext conftest.$ac_ext |
|
10676 |
LIBS=$ac_check_lib_save_LIBS |
|
10677 |
fi |
|
10678 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
|
10679 |
$as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
|
10680 |
if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
|
10681 |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
|
10682 |
else |
|
10683 |
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
|
10684 |
if test "x$ac_cv_func_dlopen" = xyes; then : |
|
10685 |
lt_cv_dlopen="dlopen" |
|
10686 |
else |
|
10687 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
|
10688 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
|
10689 |
if ${ac_cv_lib_dl_dlopen+:} false; then : |
|
10690 |
$as_echo_n "(cached) " >&6 |
|
10691 |
else |
|
10692 |
ac_check_lib_save_LIBS=$LIBS |
|
10693 |
LIBS="-ldl $LIBS" |
|
10694 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
10695 |
/* end confdefs.h. */ |
|
10696 |
|
|
10697 |
/* Override any GCC internal prototype to avoid an error. |
|
10698 |
Use char because int might match the return type of a GCC |
|
10699 |
builtin and then its argument prototype would still apply. */ |
|
10700 |
#ifdef __cplusplus |
|
10701 |
extern "C" |
|
10702 |
#endif |
|
10703 |
char dlopen (); |
|
10704 |
int |
|
10705 |
main () |
|
10706 |
{ |
|
10707 |
return dlopen (); |
|
10708 |
; |
|
10709 |
return 0; |
|
10710 |
} |
|
10711 |
_ACEOF |
|
10712 |
if ac_fn_c_try_link "$LINENO"; then : |
|
10713 |
ac_cv_lib_dl_dlopen=yes |
|
10714 |
else |
|
10715 |
ac_cv_lib_dl_dlopen=no |
|
10716 |
fi |
|
10717 |
rm -f core conftest.err conftest.$ac_objext \ |
|
10718 |
conftest$ac_exeext conftest.$ac_ext |
|
10719 |
LIBS=$ac_check_lib_save_LIBS |
|
10720 |
fi |
|
10721 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
|
10722 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
|
10723 |
if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
|
10724 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
10725 |
else |
|
10726 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
|
10727 |
$as_echo_n "checking for dlopen in -lsvld... " >&6; } |
|
10728 |
if ${ac_cv_lib_svld_dlopen+:} false; then : |
|
10729 |
$as_echo_n "(cached) " >&6 |
|
10730 |
else |
|
10731 |
ac_check_lib_save_LIBS=$LIBS |
|
10732 |
LIBS="-lsvld $LIBS" |
|
10733 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
10734 |
/* end confdefs.h. */ |
|
10735 |
|
|
10736 |
/* Override any GCC internal prototype to avoid an error. |
|
10737 |
Use char because int might match the return type of a GCC |
|
10738 |
builtin and then its argument prototype would still apply. */ |
|
10739 |
#ifdef __cplusplus |
|
10740 |
extern "C" |
|
10741 |
#endif |
|
10742 |
char dlopen (); |
|
10743 |
int |
|
10744 |
main () |
|
10745 |
{ |
|
10746 |
return dlopen (); |
|
10747 |
; |
|
10748 |
return 0; |
|
10749 |
} |
|
10750 |
_ACEOF |
|
10751 |
if ac_fn_c_try_link "$LINENO"; then : |
|
10752 |
ac_cv_lib_svld_dlopen=yes |
|
10753 |
else |
|
10754 |
ac_cv_lib_svld_dlopen=no |
|
10755 |
fi |
|
10756 |
rm -f core conftest.err conftest.$ac_objext \ |
|
10757 |
conftest$ac_exeext conftest.$ac_ext |
|
10758 |
LIBS=$ac_check_lib_save_LIBS |
|
10759 |
fi |
|
10760 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
|
10761 |
$as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
|
10762 |
if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
|
10763 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
10764 |
else |
|
10765 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
|
10766 |
$as_echo_n "checking for dld_link in -ldld... " >&6; } |
|
10767 |
if ${ac_cv_lib_dld_dld_link+:} false; then : |
|
10768 |
$as_echo_n "(cached) " >&6 |
|
10769 |
else |
|
10770 |
ac_check_lib_save_LIBS=$LIBS |
|
10771 |
LIBS="-ldld $LIBS" |
|
10772 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
10773 |
/* end confdefs.h. */ |
|
10774 |
|
|
10775 |
/* Override any GCC internal prototype to avoid an error. |
|
10776 |
Use char because int might match the return type of a GCC |
|
10777 |
builtin and then its argument prototype would still apply. */ |
|
10778 |
#ifdef __cplusplus |
|
10779 |
extern "C" |
|
10780 |
#endif |
|
10781 |
char dld_link (); |
|
10782 |
int |
|
10783 |
main () |
|
10784 |
{ |
|
10785 |
return dld_link (); |
|
10786 |
; |
|
10787 |
return 0; |
|
10788 |
} |
|
10789 |
_ACEOF |
|
10790 |
if ac_fn_c_try_link "$LINENO"; then : |
|
10791 |
ac_cv_lib_dld_dld_link=yes |
|
10792 |
else |
|
10793 |
ac_cv_lib_dld_dld_link=no |
|
10794 |
fi |
|
10795 |
rm -f core conftest.err conftest.$ac_objext \ |
|
10796 |
conftest$ac_exeext conftest.$ac_ext |
|
10797 |
LIBS=$ac_check_lib_save_LIBS |
|
10798 |
fi |
|
10799 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
|
10800 |
$as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
|
10801 |
if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
|
10802 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
|
10803 |
fi |
|
10804 |
|
|
10805 |
|
|
10806 |
fi |
|
10807 |
|
|
10808 |
|
|
10809 |
fi |
|
10810 |
|
|
10811 |
|
|
10812 |
fi |
|
10813 |
|
|
10814 |
|
|
10815 |
fi |
|
10816 |
|
|
10817 |
|
|
10818 |
fi |
|
10819 |
|
|
10820 |
;; |
|
10821 |
esac |
|
10822 |
|
|
10823 |
if test "x$lt_cv_dlopen" != xno; then |
|
10824 |
enable_dlopen=yes |
|
10825 |
else |
|
10826 |
enable_dlopen=no |
|
10827 |
fi |
|
10828 |
|
|
10829 |
case $lt_cv_dlopen in |
|
10830 |
dlopen) |
|
10831 |
save_CPPFLAGS="$CPPFLAGS" |
|
10832 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
10833 |
|
|
10834 |
save_LDFLAGS="$LDFLAGS" |
|
10835 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
10836 |
|
|
10837 |
save_LIBS="$LIBS" |
|
10838 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
|
10839 |
|
|
10840 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
|
10841 |
$as_echo_n "checking whether a program can dlopen itself... " >&6; } |
|
10842 |
if ${lt_cv_dlopen_self+:} false; then : |
|
10843 |
$as_echo_n "(cached) " >&6 |
|
10844 |
else |
|
10845 |
if test "$cross_compiling" = yes; then : |
|
10846 |
lt_cv_dlopen_self=cross |
|
10847 |
else |
|
10848 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
10849 |
lt_status=$lt_dlunknown |
|
10850 |
cat > conftest.$ac_ext <<_LT_EOF |
|
10851 |
#line $LINENO "configure" |
|
10852 |
#include "confdefs.h" |
|
10853 |
|
|
10854 |
#if HAVE_DLFCN_H |
|
10855 |
#include <dlfcn.h> |
|
10856 |
#endif |
|
10857 |
|
|
10858 |
#include <stdio.h> |
|
10859 |
|
|
10860 |
#ifdef RTLD_GLOBAL |
|
10861 |
# define LT_DLGLOBAL RTLD_GLOBAL |
|
10862 |
#else |
|
10863 |
# ifdef DL_GLOBAL |
|
10864 |
# define LT_DLGLOBAL DL_GLOBAL |
|
10865 |
# else |
|
10866 |
# define LT_DLGLOBAL 0 |
|
10867 |
# endif |
|
10868 |
#endif |
|
10869 |
|
|
10870 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
10871 |
find out it does not work in some platform. */ |
|
10872 |
#ifndef LT_DLLAZY_OR_NOW |
|
10873 |
# ifdef RTLD_LAZY |
|
10874 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
10875 |
# else |
|
10876 |
# ifdef DL_LAZY |
|
10877 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
10878 |
# else |
|
10879 |
# ifdef RTLD_NOW |
|
10880 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
10881 |
# else |
|
10882 |
# ifdef DL_NOW |
|
10883 |
# define LT_DLLAZY_OR_NOW DL_NOW |
|
10884 |
# else |
|
10885 |
# define LT_DLLAZY_OR_NOW 0 |
|
10886 |
# endif |
|
10887 |
# endif |
|
10888 |
# endif |
|
10889 |
# endif |
|
10890 |
#endif |
|
10891 |
|
|
10892 |
/* When -fvisbility=hidden is used, assume the code has been annotated |
|
10893 |
correspondingly for the symbols needed. */ |
|
10894 |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
|
10895 |
int fnord () __attribute__((visibility("default"))); |
|
10896 |
#endif |
|
10897 |
|
|
10898 |
int fnord () { return 42; } |
|
10899 |
int main () |
|
10900 |
{ |
|
10901 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
10902 |
int status = $lt_dlunknown; |
|
10903 |
|
|
10904 |
if (self) |
|
10905 |
{ |
|
10906 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
10907 |
else |
|
10908 |
{ |
|
10909 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
10910 |
else puts (dlerror ()); |
|
10911 |
} |
|
10912 |
/* dlclose (self); */ |
|
10913 |
} |
|
10914 |
else |
|
10915 |
puts (dlerror ()); |
|
10916 |
|
|
10917 |
return status; |
|
10918 |
} |
|
10919 |
_LT_EOF |
|
10920 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
|
10921 |
(eval $ac_link) 2>&5 |
|
10922 |
ac_status=$? |
|
10923 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
10924 |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
10925 |
(./conftest; exit; ) >&5 2>/dev/null |
|
10926 |
lt_status=$? |
|
10927 |
case x$lt_status in |
|
10928 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
10929 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
10930 |
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
|
10931 |
esac |
|
10932 |
else : |
|
10933 |
# compilation failed |
|
10934 |
lt_cv_dlopen_self=no |
|
10935 |
fi |
|
10936 |
fi |
|
10937 |
rm -fr conftest* |
|
10938 |
|
|
10939 |
|
|
10940 |
fi |
|
10941 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
|
10942 |
$as_echo "$lt_cv_dlopen_self" >&6; } |
|
10943 |
|
|
10944 |
if test "x$lt_cv_dlopen_self" = xyes; then |
|
10945 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
|
10946 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
|
10947 |
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
|
10948 |
if ${lt_cv_dlopen_self_static+:} false; then : |
|
10949 |
$as_echo_n "(cached) " >&6 |
|
10950 |
else |
|
10951 |
if test "$cross_compiling" = yes; then : |
|
10952 |
lt_cv_dlopen_self_static=cross |
|
10953 |
else |
|
10954 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
10955 |
lt_status=$lt_dlunknown |
|
10956 |
cat > conftest.$ac_ext <<_LT_EOF |
|
10957 |
#line $LINENO "configure" |
|
10958 |
#include "confdefs.h" |
|
10959 |
|
|
10960 |
#if HAVE_DLFCN_H |
|
10961 |
#include <dlfcn.h> |
|
10962 |
#endif |
|
10963 |
|
|
10964 |
#include <stdio.h> |
|
10965 |
|
|
10966 |
#ifdef RTLD_GLOBAL |
|
10967 |
# define LT_DLGLOBAL RTLD_GLOBAL |
|
10968 |
#else |
|
10969 |
# ifdef DL_GLOBAL |
|
10970 |
# define LT_DLGLOBAL DL_GLOBAL |
|
10971 |
# else |
|
10972 |
# define LT_DLGLOBAL 0 |
|
10973 |
# endif |
|
10974 |
#endif |
|
10975 |
|
|
10976 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
10977 |
find out it does not work in some platform. */ |
|
10978 |
#ifndef LT_DLLAZY_OR_NOW |
|
10979 |
# ifdef RTLD_LAZY |
|
10980 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
10981 |
# else |
|
10982 |
# ifdef DL_LAZY |
|
10983 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
10984 |
# else |
|
10985 |
# ifdef RTLD_NOW |
|
10986 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
10987 |
# else |
|
10988 |
# ifdef DL_NOW |
|
10989 |
# define LT_DLLAZY_OR_NOW DL_NOW |
|
10990 |
# else |
|
10991 |
# define LT_DLLAZY_OR_NOW 0 |
|
10992 |
# endif |
|
10993 |
# endif |
|
10994 |
# endif |
|
10995 |
# endif |
|
10996 |
#endif |
|
10997 |
|
|
10998 |
/* When -fvisbility=hidden is used, assume the code has been annotated |
|
10999 |
correspondingly for the symbols needed. */ |
|
11000 |
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
|
11001 |
int fnord () __attribute__((visibility("default"))); |
|
11002 |
#endif |
|
11003 |
|
|
11004 |
int fnord () { return 42; } |
|
11005 |
int main () |
|
11006 |
{ |
|
11007 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
11008 |
int status = $lt_dlunknown; |
|
11009 |
|
|
11010 |
if (self) |
|
11011 |
{ |
|
11012 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
11013 |
else |
|
11014 |
{ |
|
11015 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
11016 |
else puts (dlerror ()); |
|
11017 |
} |
|
11018 |
/* dlclose (self); */ |
|
11019 |
} |
|
11020 |
else |
|
11021 |
puts (dlerror ()); |
|
11022 |
|
|
11023 |
return status; |
|
11024 |
} |
|
11025 |
_LT_EOF |
|
11026 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
|
11027 |
(eval $ac_link) 2>&5 |
|
11028 |
ac_status=$? |
|
11029 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
11030 |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
11031 |
(./conftest; exit; ) >&5 2>/dev/null |
|
11032 |
lt_status=$? |
|
11033 |
case x$lt_status in |
|
11034 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
11035 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
11036 |
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
|
11037 |
esac |
|
11038 |
else : |
|
11039 |
# compilation failed |
|
11040 |
lt_cv_dlopen_self_static=no |
|
11041 |
fi |
|
11042 |
fi |
|
11043 |
rm -fr conftest* |
|
11044 |
|
|
11045 |
|
|
11046 |
fi |
|
11047 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
|
11048 |
$as_echo "$lt_cv_dlopen_self_static" >&6; } |
|
11049 |
fi |
|
11050 |
|
|
11051 |
CPPFLAGS="$save_CPPFLAGS" |
|
11052 |
LDFLAGS="$save_LDFLAGS" |
|
11053 |
LIBS="$save_LIBS" |
|
11054 |
;; |
|
11055 |
esac |
|
11056 |
|
|
11057 |
case $lt_cv_dlopen_self in |
|
11058 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
11059 |
*) enable_dlopen_self=unknown ;; |
|
11060 |
esac |
|
11061 |
|
|
11062 |
case $lt_cv_dlopen_self_static in |
|
11063 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
11064 |
*) enable_dlopen_self_static=unknown ;; |
|
11065 |
esac |
|
11066 |
fi |
|
11067 |
|
|
11068 |
|
|
11069 |
|
|
11070 |
|
|
11071 |
|
|
11072 |
|
|
11073 |
|
|
11074 |
|
|
11075 |
|
|
11076 |
|
|
11077 |
|
|
11078 |
|
|
11079 |
|
|
11080 |
|
|
11081 |
|
|
11082 |
|
|
11083 |
|
|
11084 |
striplib= |
|
11085 |
old_striplib= |
|
11086 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
|
11087 |
$as_echo_n "checking whether stripping libraries is possible... " >&6; } |
|
11088 |
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
|
11089 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
11090 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
11091 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
11092 |
$as_echo "yes" >&6; } |
|
11093 |
else |
|
11094 |
# FIXME - insert some real tests, host_os isn't really good enough |
|
11095 |
case $host_os in |
|
11096 |
darwin*) |
|
11097 |
if test -n "$STRIP" ; then |
|
11098 |
striplib="$STRIP -x" |
|
11099 |
old_striplib="$STRIP -S" |
|
11100 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
11101 |
$as_echo "yes" >&6; } |
|
11102 |
else |
|
11103 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
11104 |
$as_echo "no" >&6; } |
|
11105 |
fi |
|
11106 |
;; |
|
11107 |
*) |
|
11108 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
11109 |
$as_echo "no" >&6; } |
|
11110 |
;; |
|
11111 |
esac |
|
11112 |
fi |
|
11113 |
|
|
11114 |
|
|
11115 |
|
|
11116 |
|
|
11117 |
|
|
11118 |
|
|
11119 |
|
|
11120 |
|
|
11121 |
|
|
11122 |
|
|
11123 |
|
|
11124 |
|
|
11125 |
# Report which library types will actually be built |
|
11126 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
|
11127 |
$as_echo_n "checking if libtool supports shared libraries... " >&6; } |
|
11128 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
|
11129 |
$as_echo "$can_build_shared" >&6; } |
|
11130 |
|
|
11131 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
|
11132 |
$as_echo_n "checking whether to build shared libraries... " >&6; } |
|
11133 |
test "$can_build_shared" = "no" && enable_shared=no |
|
11134 |
|
|
11135 |
# On AIX, shared libraries and static libraries use the same namespace, and |
|
11136 |
# are all built from PIC. |
|
11137 |
case $host_os in |
|
11138 |
aix3*) |
|
11139 |
test "$enable_shared" = yes && enable_static=no |
|
11140 |
if test -n "$RANLIB"; then |
|
11141 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
11142 |
postinstall_cmds='$RANLIB $lib' |
|
11143 |
fi |
|
11144 |
;; |
|
11145 |
|
|
11146 |
aix[4-9]*) |
|
11147 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
|
11148 |
test "$enable_shared" = yes && enable_static=no |
|
11149 |
fi |
|
11150 |
;; |
|
11151 |
esac |
|
11152 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
|
11153 |
$as_echo "$enable_shared" >&6; } |
|
11154 |
|
|
11155 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
|
11156 |
$as_echo_n "checking whether to build static libraries... " >&6; } |
|
11157 |
# Make sure either enable_shared or enable_static is yes. |
|
11158 |
test "$enable_shared" = yes || enable_static=yes |
|
11159 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
|
11160 |
$as_echo "$enable_static" >&6; } |
|
11161 |
|
|
11162 |
|
|
11163 |
|
|
11164 |
|
|
11165 |
fi |
|
11166 |
ac_ext=c |
|
11167 |
ac_cpp='$CPP $CPPFLAGS' |
|
11168 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
11169 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
11170 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
11171 |
|
|
11172 |
CC="$lt_save_CC" |
|
11173 |
|
|
11174 |
|
|
11175 |
|
|
11176 |
|
|
11177 |
|
|
11178 |
|
|
11179 |
|
|
11180 |
|
|
11181 |
|
|
11182 |
|
|
11183 |
|
|
11184 |
|
|
11185 |
|
|
11186 |
|
|
11187 |
|
|
11188 |
ac_config_commands="$ac_config_commands libtool" |
|
11189 |
|
|
11190 |
|
|
11191 |
|
|
11192 |
|
|
11193 |
# Only expand once: |
|
11194 |
|
|
11195 |
|
|
11196 |
|
|
11197 |
|
|
11198 |
have_usblibs=no |
|
11199 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libusb_open_device_with_vid_pid" >&5 |
|
11200 |
$as_echo_n "checking for library containing libusb_open_device_with_vid_pid... " >&6; } |
|
11201 |
if ${ac_cv_search_libusb_open_device_with_vid_pid+:} false; then : |
|
11202 |
$as_echo_n "(cached) " >&6 |
|
11203 |
else |
|
11204 |
ac_func_search_save_LIBS=$LIBS |
|
11205 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
11206 |
/* end confdefs.h. */ |
|
11207 |
|
|
11208 |
/* Override any GCC internal prototype to avoid an error. |
|
11209 |
Use char because int might match the return type of a GCC |
|
11210 |
builtin and then its argument prototype would still apply. */ |
|
11211 |
#ifdef __cplusplus |
|
11212 |
extern "C" |
|
11213 |
#endif |
|
11214 |
char libusb_open_device_with_vid_pid (); |
|
11215 |
int |
|
11216 |
main () |
|
11217 |
{ |
|
11218 |
return libusb_open_device_with_vid_pid (); |
|
11219 |
; |
|
11220 |
return 0; |
|
11221 |
} |
|
11222 |
_ACEOF |
|
11223 |
for ac_lib in '' usb-1.0; do |
|
11224 |
if test -z "$ac_lib"; then |
|
11225 |
ac_res="none required" |
|
11226 |
else |
|
11227 |
ac_res=-l$ac_lib |
|
11228 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
|
11229 |
fi |
|
11230 |
if ac_fn_c_try_link "$LINENO"; then : |
|
11231 |
ac_cv_search_libusb_open_device_with_vid_pid=$ac_res |
|
11232 |
fi |
|
11233 |
rm -f core conftest.err conftest.$ac_objext \ |
|
11234 |
conftest$ac_exeext |
|
11235 |
if ${ac_cv_search_libusb_open_device_with_vid_pid+:} false; then : |
|
11236 |
break |
|
11237 |
fi |
|
11238 |
done |
|
11239 |
if ${ac_cv_search_libusb_open_device_with_vid_pid+:} false; then : |
|
11240 |
|
|
11241 |
else |
|
11242 |
ac_cv_search_libusb_open_device_with_vid_pid=no |
|
11243 |
fi |
|
11244 |
rm conftest.$ac_ext |
|
11245 |
LIBS=$ac_func_search_save_LIBS |
|
11246 |
fi |
|
11247 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libusb_open_device_with_vid_pid" >&5 |
|
11248 |
$as_echo "$ac_cv_search_libusb_open_device_with_vid_pid" >&6; } |
|
11249 |
ac_res=$ac_cv_search_libusb_open_device_with_vid_pid |
|
11250 |
if test "$ac_res" != no; then : |
|
11251 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
|
11252 |
have_usblibs=yes |
|
11253 |
fi |
|
11254 |
|
|
11255 |
|
|
11256 |
if test "x${have_usblibs}" = xno; then |
|
11257 |
as_fn_error $? " |
|
11258 |
-------------------------------------------------------------------------- |
|
11259 |
The G4Track library requires libusb-1.0 lib to run. Please install before |
|
11260 |
continuing. Stopping.... |
|
11261 |
Check 'config.log' for more information. |
|
11262 |
--------------------------------------------------------------------------" "$LINENO" 5 |
|
11263 |
fi |
|
11264 |
|
|
11265 |
|
|
11266 |
|
|
11267 |
ac_config_files="$ac_config_files Makefile include/Makefile udev_rules/Makefile bin/Makefile man/Makefile" |
|
11268 |
|
|
11269 |
|
|
11270 |
|
|
11271 |
cat >confcache <<\_ACEOF |
|
11272 |
# This file is a shell script that caches the results of configure |
|
11273 |
# tests run on this system so they can be shared between configure |
|
11274 |
# scripts and configure runs, see configure's option --config-cache. |
|
11275 |
# It is not useful on other systems. If it contains results you don't |
|
11276 |
# want to keep, you may remove or edit it. |
|
11277 |
# |
|
11278 |
# config.status only pays attention to the cache file if you give it |
|
11279 |
# the --recheck option to rerun configure. |
|
11280 |
# |
|
11281 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
|
11282 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
|
11283 |
# following values. |
|
11284 |
|
|
11285 |
_ACEOF |
|
11286 |
|
|
11287 |
# The following way of writing the cache mishandles newlines in values, |
|
11288 |
# but we know of no workaround that is simple, portable, and efficient. |
|
11289 |
# So, we kill variables containing newlines. |
|
11290 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
|
11291 |
# and sets the high bit in the cache file unless we assign to the vars. |
|
11292 |
( |
|
11293 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
|
11294 |
eval ac_val=\$$ac_var |
|
11295 |
case $ac_val in #( |
|
11296 |
*${as_nl}*) |
|
11297 |
case $ac_var in #( |
|
11298 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
|
11299 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
|
11300 |
esac |
|
11301 |
case $ac_var in #( |
|
11302 |
_ | IFS | as_nl) ;; #( |
|
11303 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
11304 |
*) { eval $ac_var=; unset $ac_var;} ;; |
|
11305 |
esac ;; |
|
11306 |
esac |
|
11307 |
done |
|
11308 |
|
|
11309 |
(set) 2>&1 | |
|
11310 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
|
11311 |
*${as_nl}ac_space=\ *) |
|
11312 |
# `set' does not quote correctly, so add quotes: double-quote |
|
11313 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
|
11314 |
sed -n \ |
|
11315 |
"s/'/'\\\\''/g; |
|
11316 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
|
11317 |
;; #( |
|
11318 |
*) |
|
11319 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
|
11320 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|
11321 |
;; |
|
11322 |
esac | |
|
11323 |
sort |
|
11324 |
) | |
|
11325 |
sed ' |
|
11326 |
/^ac_cv_env_/b end |
|
11327 |
t clear |
|
11328 |
:clear |
|
11329 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
|
11330 |
t end |
|
11331 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
|
11332 |
:end' >>confcache |
|
11333 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
|
11334 |
if test -w "$cache_file"; then |
|
11335 |
if test "x$cache_file" != "x/dev/null"; then |
|
11336 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
|
11337 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
|
11338 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
|
11339 |
cat confcache >"$cache_file" |
|
11340 |
else |
|
11341 |
case $cache_file in #( |
|
11342 |
*/* | ?:*) |
|
11343 |
mv -f confcache "$cache_file"$$ && |
|
11344 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
|
11345 |
*) |
|
11346 |
mv -f confcache "$cache_file" ;; |
|
11347 |
esac |
|
11348 |
fi |
|
11349 |
fi |
|
11350 |
else |
|
11351 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
|
11352 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
|
11353 |
fi |
|
11354 |
fi |
|
11355 |
rm -f confcache |
|
11356 |
|
|
11357 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|
11358 |
# Let make expand exec_prefix. |
|
11359 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
|
11360 |
|
|
11361 |
# Transform confdefs.h into DEFS. |
|
11362 |
# Protect against shell expansion while executing Makefile rules. |
|
11363 |
# Protect against Makefile macro expansion. |
|
11364 |
# |
|
11365 |
# If the first sed substitution is executed (which looks for macros that |
|
11366 |
# take arguments), then branch to the quote section. Otherwise, |
|
11367 |
# look for a macro that doesn't take arguments. |
|
11368 |
ac_script=' |
|
11369 |
:mline |
|
11370 |
/\\$/{ |
|
11371 |
N |
|
11372 |
s,\\\n,, |
|
11373 |
b mline |
|
11374 |
} |
|
11375 |
t clear |
|
11376 |
:clear |
|
11377 |
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
|
11378 |
t quote |
|
11379 |
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
|
11380 |
t quote |
|
11381 |
b any |
|
11382 |
:quote |
|
11383 |
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
|
11384 |
s/\[/\\&/g |
|
11385 |
s/\]/\\&/g |
|
11386 |
s/\$/$$/g |
|
11387 |
H |
|
11388 |
:any |
|
11389 |
${ |
|
11390 |
g |
|
11391 |
s/^\n// |
|
11392 |
s/\n/ /g |
|
11393 |
p |
|
11394 |
} |
|
11395 |
' |
|
11396 |
DEFS=`sed -n "$ac_script" confdefs.h` |
|
11397 |
|
|
11398 |
|
|
11399 |
ac_libobjs= |
|
11400 |
ac_ltlibobjs= |
|
11401 |
U= |
|
11402 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
|
11403 |
# 1. Remove the extension, and $U if already installed. |
|
11404 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
|
11405 |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
|
11406 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
|
11407 |
# will be set to the directory where LIBOBJS objects are built. |
|
11408 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
|
11409 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
|
11410 |
done |
|
11411 |
LIBOBJS=$ac_libobjs |
|
11412 |
|
|
11413 |
LTLIBOBJS=$ac_ltlibobjs |
|
11414 |
|
|
11415 |
|
|
11416 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
|
11417 |
$as_echo_n "checking that generated files are newer than configure... " >&6; } |
|
11418 |
if test -n "$am_sleep_pid"; then |
|
11419 |
# Hide warnings about reused PIDs. |
|
11420 |
wait $am_sleep_pid 2>/dev/null |
|
11421 |
fi |
|
11422 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
|
11423 |
$as_echo "done" >&6; } |
|
11424 |
if test -n "$EXEEXT"; then |
|
11425 |
am__EXEEXT_TRUE= |
|
11426 |
am__EXEEXT_FALSE='#' |
|
11427 |
else |
|
11428 |
am__EXEEXT_TRUE='#' |
|
11429 |
am__EXEEXT_FALSE= |
|
11430 |
fi |
|
11431 |
|
|
11432 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
|
11433 |
as_fn_error $? "conditional \"AMDEP\" was never defined. |
|
11434 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
|
11435 |
fi |
|
11436 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
|
11437 |
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
|
11438 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
|
11439 |
fi |
|
11440 |
|
|
11441 |
: "${CONFIG_STATUS=./config.status}" |
|
11442 |
ac_write_fail=0 |
|
11443 |
ac_clean_files_save=$ac_clean_files |
|
11444 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
|
11445 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
|
11446 |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
|
11447 |
as_write_fail=0 |
|
11448 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
|
11449 |
#! $SHELL |
|
11450 |
# Generated by $as_me. |
|
11451 |
# Run this file to recreate the current configuration. |
|
11452 |
# Compiler output produced by configure, useful for debugging |
|
11453 |
# configure, is in config.log if it exists. |
|
11454 |
|
|
11455 |
debug=false |
|
11456 |
ac_cs_recheck=false |
|
11457 |
ac_cs_silent=false |
|
11458 |
|
|
11459 |
SHELL=\${CONFIG_SHELL-$SHELL} |
|
11460 |
export SHELL |
|
11461 |
_ASEOF |
|
11462 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
|
11463 |
## -------------------- ## |
|
11464 |
## M4sh Initialization. ## |
|
11465 |
## -------------------- ## |
|
11466 |
|
|
11467 |
# Be more Bourne compatible |
|
11468 |
DUALCASE=1; export DUALCASE # for MKS sh |
|
11469 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
|
11470 |
emulate sh |
|
11471 |
NULLCMD=: |
|
11472 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
|
11473 |
# is contrary to our usage. Disable this feature. |
|
11474 |
alias -g '${1+"$@"}'='"$@"' |
|
11475 |
setopt NO_GLOB_SUBST |
|
11476 |
else |
|
11477 |
case `(set -o) 2>/dev/null` in #( |
|
11478 |
*posix*) : |
|
11479 |
set -o posix ;; #( |
|
11480 |
*) : |
|
11481 |
;; |
|
11482 |
esac |
|
11483 |
fi |
|
11484 |
|
|
11485 |
|
|
11486 |
as_nl=' |
|
11487 |
' |
|
11488 |
export as_nl |
|
11489 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
|
11490 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
|
11491 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
|
11492 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
|
11493 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
|
11494 |
# but without wasting forks for bash or zsh. |
|
11495 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
|
11496 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
11497 |
as_echo='print -r --' |
|
11498 |
as_echo_n='print -rn --' |
|
11499 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
11500 |
as_echo='printf %s\n' |
|
11501 |
as_echo_n='printf %s' |
|
11502 |
else |
|
11503 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
|
11504 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
|
11505 |
as_echo_n='/usr/ucb/echo -n' |
|
11506 |
else |
|
11507 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
|
11508 |
as_echo_n_body='eval |
|
11509 |
arg=$1; |
|
11510 |
case $arg in #( |
|
11511 |
*"$as_nl"*) |
|
11512 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
|
11513 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
|
11514 |
esac; |
|
11515 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
|
11516 |
' |
|
11517 |
export as_echo_n_body |
|
11518 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
|
11519 |
fi |
|
11520 |
export as_echo_body |
|
11521 |
as_echo='sh -c $as_echo_body as_echo' |
|
11522 |
fi |
|
11523 |
|
|
11524 |
# The user is always right. |
|
11525 |
if test "${PATH_SEPARATOR+set}" != set; then |
|
11526 |
PATH_SEPARATOR=: |
|
11527 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|
11528 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|
11529 |
PATH_SEPARATOR=';' |
|
11530 |
} |
|
11531 |
fi |
|
11532 |
|
|
11533 |
|
|
11534 |
# IFS |
|
11535 |
# We need space, tab and new line, in precisely that order. Quoting is |
|
11536 |
# there to prevent editors from complaining about space-tab. |
|
11537 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
11538 |
# splitting by setting IFS to empty value.) |
|
11539 |
IFS=" "" $as_nl" |
|
11540 |
|
|
11541 |
# Find who we are. Look in the path if we contain no directory separator. |
|
11542 |
as_myself= |
|
11543 |
case $0 in #(( |
|
11544 |
*[\\/]* ) as_myself=$0 ;; |
|
11545 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
11546 |
for as_dir in $PATH |
|
11547 |
do |
|
11548 |
IFS=$as_save_IFS |
|
11549 |
test -z "$as_dir" && as_dir=. |
|
11550 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
11551 |
done |
|
11552 |
IFS=$as_save_IFS |
|
11553 |
|
|
11554 |
;; |
|
11555 |
esac |
|
11556 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
|
11557 |
# in which case we are not to be found in the path. |
|
11558 |
if test "x$as_myself" = x; then |
|
11559 |
as_myself=$0 |
|
11560 |
fi |
|
11561 |
if test ! -f "$as_myself"; then |
|
11562 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
11563 |
exit 1 |
|
11564 |
fi |
|
11565 |
|
|
11566 |
# Unset variables that we do not need and which cause bugs (e.g. in |
|
11567 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
|
11568 |
# suppresses any "Segmentation fault" message there. '((' could |
|
11569 |
# trigger a bug in pdksh 5.2.14. |
|
11570 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
|
11571 |
do eval test x\${$as_var+set} = xset \ |
|
11572 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
11573 |
done |
|
11574 |
PS1='$ ' |
|
11575 |
PS2='> ' |
|
11576 |
PS4='+ ' |
|
11577 |
|
|
11578 |
# NLS nuisances. |
|
11579 |
LC_ALL=C |
|
11580 |
export LC_ALL |
|
11581 |
LANGUAGE=C |
|
11582 |
export LANGUAGE |
|
11583 |
|
|
11584 |
# CDPATH. |
|
11585 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
11586 |
|
|
11587 |
|
|
11588 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
|
11589 |
# ---------------------------------------- |
|
11590 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
|
11591 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
|
11592 |
# script with STATUS, using 1 if that was 0. |
|
11593 |
as_fn_error () |
|
11594 |
{ |
|
11595 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
|
11596 |
if test "$4"; then |
|
11597 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
11598 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
|
11599 |
fi |
|
11600 |
$as_echo "$as_me: error: $2" >&2 |
|
11601 |
as_fn_exit $as_status |
|
11602 |
} # as_fn_error |
|
11603 |
|
|
11604 |
|
|
11605 |
# as_fn_set_status STATUS |
|
11606 |
# ----------------------- |
|
11607 |
# Set $? to STATUS, without forking. |
|
11608 |
as_fn_set_status () |
|
11609 |
{ |
|
11610 |
return $1 |
|
11611 |
} # as_fn_set_status |
|
11612 |
|
|
11613 |
# as_fn_exit STATUS |
|
11614 |
# ----------------- |
|
11615 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|
11616 |
as_fn_exit () |
|
11617 |
{ |
|
11618 |
set +e |
|
11619 |
as_fn_set_status $1 |
|
11620 |
exit $1 |
|
11621 |
} # as_fn_exit |
|
11622 |
|
|
11623 |
# as_fn_unset VAR |
|
11624 |
# --------------- |
|
11625 |
# Portably unset VAR. |
|
11626 |
as_fn_unset () |
|
11627 |
{ |
|
11628 |
{ eval $1=; unset $1;} |
|
11629 |
} |
|
11630 |
as_unset=as_fn_unset |
|
11631 |
# as_fn_append VAR VALUE |
|
11632 |
# ---------------------- |
|
11633 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
|
11634 |
# advantage of any shell optimizations that allow amortized linear growth over |
|
11635 |
# repeated appends, instead of the typical quadratic growth present in naive |
|
11636 |
# implementations. |
|
11637 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
|
11638 |
eval 'as_fn_append () |
|
11639 |
{ |
|
11640 |
eval $1+=\$2 |
|
11641 |
}' |
|
11642 |
else |
|
11643 |
as_fn_append () |
|
11644 |
{ |
|
11645 |
eval $1=\$$1\$2 |
|
11646 |
} |
|
11647 |
fi # as_fn_append |
|
11648 |
|
|
11649 |
# as_fn_arith ARG... |
|
11650 |
# ------------------ |
|
11651 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
|
11652 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
|
11653 |
# must be portable across $(()) and expr. |
|
11654 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
|
11655 |
eval 'as_fn_arith () |
|
11656 |
{ |
|
11657 |
as_val=$(( $* )) |
|
11658 |
}' |
|
11659 |
else |
|
11660 |
as_fn_arith () |
|
11661 |
{ |
|
11662 |
as_val=`expr "$@" || test $? -eq 1` |
|
11663 |
} |
|
11664 |
fi # as_fn_arith |
|
11665 |
|
|
11666 |
|
|
11667 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
|
11668 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
11669 |
as_expr=expr |
|
11670 |
else |
|
11671 |
as_expr=false |
|
11672 |
fi |
|
11673 |
|
|
11674 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|
11675 |
as_basename=basename |
|
11676 |
else |
|
11677 |
as_basename=false |
|
11678 |
fi |
|
11679 |
|
|
11680 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
11681 |
as_dirname=dirname |
|
11682 |
else |
|
11683 |
as_dirname=false |
|
11684 |
fi |
|
11685 |
|
|
11686 |
as_me=`$as_basename -- "$0" || |
|
11687 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
11688 |
X"$0" : 'X\(//\)$' \| \ |
|
11689 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
11690 |
$as_echo X/"$0" | |
|
11691 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|
11692 |
s//\1/ |
|
11693 |
q |
|
11694 |
} |
|
11695 |
/^X\/\(\/\/\)$/{ |
|
11696 |
s//\1/ |
|
11697 |
q |
|
11698 |
} |
|
11699 |
/^X\/\(\/\).*/{ |
|
11700 |
s//\1/ |
|
11701 |
q |
|
11702 |
} |
|
11703 |
s/.*/./; q'` |
|
11704 |
|
|
11705 |
# Avoid depending upon Character Ranges. |
|
11706 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
11707 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
11708 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
11709 |
as_cr_digits='0123456789' |
|
11710 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
11711 |
|
|
11712 |
ECHO_C= ECHO_N= ECHO_T= |
|
11713 |
case `echo -n x` in #((((( |
|
11714 |
-n*) |
|
11715 |
case `echo 'xy\c'` in |
|
11716 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
11717 |
xy) ECHO_C='\c';; |
|
11718 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|
11719 |
ECHO_T=' ';; |
|
11720 |
esac;; |
|
11721 |
*) |
|
11722 |
ECHO_N='-n';; |
|
11723 |
esac |
|
11724 |
|
|
11725 |
rm -f conf$$ conf$$.exe conf$$.file |
|
11726 |
if test -d conf$$.dir; then |
|
11727 |
rm -f conf$$.dir/conf$$.file |
|
11728 |
else |
|
11729 |
rm -f conf$$.dir |
|
11730 |
mkdir conf$$.dir 2>/dev/null |
|
11731 |
fi |
|
11732 |
if (echo >conf$$.file) 2>/dev/null; then |
|
11733 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
11734 |
as_ln_s='ln -s' |
|
11735 |
# ... but there are two gotchas: |
|
11736 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|
11737 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
11738 |
# In both cases, we have to default to `cp -pR'. |
|
11739 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|
11740 |
as_ln_s='cp -pR' |
|
11741 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
|
11742 |
as_ln_s=ln |
|
11743 |
else |
|
11744 |
as_ln_s='cp -pR' |
|
11745 |
fi |
|
11746 |
else |
|
11747 |
as_ln_s='cp -pR' |
|
11748 |
fi |
|
11749 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|
11750 |
rmdir conf$$.dir 2>/dev/null |
|
11751 |
|
|
11752 |
|
|
11753 |
# as_fn_mkdir_p |
|
11754 |
# ------------- |
|
11755 |
# Create "$as_dir" as a directory, including parents if necessary. |
|
11756 |
as_fn_mkdir_p () |
|
11757 |
{ |
|
11758 |
|
|
11759 |
case $as_dir in #( |
|
11760 |
-*) as_dir=./$as_dir;; |
|
11761 |
esac |
|
11762 |
test -d "$as_dir" || eval $as_mkdir_p || { |
|
11763 |
as_dirs= |
|
11764 |
while :; do |
|
11765 |
case $as_dir in #( |
|
11766 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|
11767 |
*) as_qdir=$as_dir;; |
|
11768 |
esac |
|
11769 |
as_dirs="'$as_qdir' $as_dirs" |
|
11770 |
as_dir=`$as_dirname -- "$as_dir" || |
|
11771 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
11772 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
11773 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
11774 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
11775 |
$as_echo X"$as_dir" | |
|
11776 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
11777 |
s//\1/ |
|
11778 |
q |
|
11779 |
} |
|
11780 |
/^X\(\/\/\)[^/].*/{ |
|
11781 |
s//\1/ |
|
11782 |
q |
|
11783 |
} |
|
11784 |
/^X\(\/\/\)$/{ |
|
11785 |
s//\1/ |
|
11786 |
q |
|
11787 |
} |
|
11788 |
/^X\(\/\).*/{ |
|
11789 |
s//\1/ |
|
11790 |
q |
|
11791 |
} |
|
11792 |
s/.*/./; q'` |
|
11793 |
test -d "$as_dir" && break |
|
11794 |
done |
|
11795 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
11796 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
|
11797 |
|
|
11798 |
|
|
11799 |
} # as_fn_mkdir_p |
|
11800 |
if mkdir -p . 2>/dev/null; then |
|
11801 |
as_mkdir_p='mkdir -p "$as_dir"' |
|
11802 |
else |
|
11803 |
test -d ./-p && rmdir ./-p |
|
11804 |
as_mkdir_p=false |
|
11805 |
fi |
|
11806 |
|
|
11807 |
|
|
11808 |
# as_fn_executable_p FILE |
|
11809 |
# ----------------------- |
|
11810 |
# Test if FILE is an executable regular file. |
|
11811 |
as_fn_executable_p () |
|
11812 |
{ |
|
11813 |
test -f "$1" && test -x "$1" |
|
11814 |
} # as_fn_executable_p |
|
11815 |
as_test_x='test -x' |
|
11816 |
as_executable_p=as_fn_executable_p |
|
11817 |
|
|
11818 |
# Sed expression to map a string onto a valid CPP name. |
|
11819 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
11820 |
|
|
11821 |
# Sed expression to map a string onto a valid variable name. |
|
11822 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
11823 |
|
|
11824 |
|
|
11825 |
exec 6>&1 |
|
11826 |
## ----------------------------------- ## |
|
11827 |
## Main body of $CONFIG_STATUS script. ## |
|
11828 |
## ----------------------------------- ## |
|
11829 |
_ASEOF |
|
11830 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
|
11831 |
|
|
11832 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
11833 |
# Save the log message, to keep $0 and so on meaningful, and to |
|
11834 |
# report actual input values of CONFIG_FILES etc. instead of their |
|
11835 |
# values after options handling. |
|
11836 |
ac_log=" |
|
11837 |
This file was extended by G4Track_lib_dist $as_me 0.0.2, which was |
|
11838 |
generated by GNU Autoconf 2.69. Invocation command line was |
|
11839 |
|
|
11840 |
CONFIG_FILES = $CONFIG_FILES |
|
11841 |
CONFIG_HEADERS = $CONFIG_HEADERS |
|
11842 |
CONFIG_LINKS = $CONFIG_LINKS |
|
11843 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
11844 |
$ $0 $@ |
|
11845 |
|
|
11846 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
11847 |
" |
|
11848 |
|
|
11849 |
_ACEOF |
|
11850 |
|
|
11851 |
case $ac_config_files in *" |
|
11852 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
|
11853 |
esac |
|
11854 |
|
|
11855 |
|
|
11856 |
|
|
11857 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
11858 |
# Files that config.status was made for. |
|
11859 |
config_files="$ac_config_files" |
|
11860 |
config_commands="$ac_config_commands" |
|
11861 |
|
|
11862 |
_ACEOF |
|
11863 |
|
|
11864 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
11865 |
ac_cs_usage="\ |
|
11866 |
\`$as_me' instantiates files and other configuration actions |
|
11867 |
from templates according to the current configuration. Unless the files |
|
11868 |
and actions are specified as TAGs, all are instantiated by default. |
|
11869 |
|
|
11870 |
Usage: $0 [OPTION]... [TAG]... |
|
11871 |
|
|
11872 |
-h, --help print this help, then exit |
|
11873 |
-V, --version print version number and configuration settings, then exit |
|
11874 |
--config print configuration, then exit |
|
11875 |
-q, --quiet, --silent |
|
11876 |
do not print progress messages |
|
11877 |
-d, --debug don't remove temporary files |
|
11878 |
--recheck update $as_me by reconfiguring in the same conditions |
|
11879 |
--file=FILE[:TEMPLATE] |
|
11880 |
instantiate the configuration file FILE |
|
11881 |
|
|
11882 |
Configuration files: |
|
11883 |
$config_files |
|
11884 |
|
|
11885 |
Configuration commands: |
|
11886 |
$config_commands |
|
11887 |
|
|
11888 |
Report bugs to <help@polhemus.com>." |
|
11889 |
|
|
11890 |
_ACEOF |
|
11891 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
11892 |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
|
11893 |
ac_cs_version="\\ |
|
11894 |
G4Track_lib_dist config.status 0.0.2 |
|
11895 |
configured by $0, generated by GNU Autoconf 2.69, |
|
11896 |
with options \\"\$ac_cs_config\\" |
|
11897 |
|
|
11898 |
Copyright (C) 2012 Free Software Foundation, Inc. |
|
11899 |
This config.status script is free software; the Free Software Foundation |
|
11900 |
gives unlimited permission to copy, distribute and modify it." |
|
11901 |
|
|
11902 |
ac_pwd='$ac_pwd' |
|
11903 |
srcdir='$srcdir' |
|
11904 |
INSTALL='$INSTALL' |
|
11905 |
MKDIR_P='$MKDIR_P' |
|
11906 |
AWK='$AWK' |
|
11907 |
test -n "\$AWK" || AWK=awk |
|
11908 |
_ACEOF |
|
11909 |
|
|
11910 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
11911 |
# The default lists apply if the user does not specify any file. |
|
11912 |
ac_need_defaults=: |
|
11913 |
while test $# != 0 |
|
11914 |
do |
|
11915 |
case $1 in |
|
11916 |
--*=?*) |
|
11917 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
11918 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
|
11919 |
ac_shift=: |
|
11920 |
;; |
|
11921 |
--*=) |
|
11922 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
11923 |
ac_optarg= |
|
11924 |
ac_shift=: |
|
11925 |
;; |
|
11926 |
*) |
|
11927 |
ac_option=$1 |
|
11928 |
ac_optarg=$2 |
|
11929 |
ac_shift=shift |
|
11930 |
;; |
|
11931 |
esac |
|
11932 |
|
|
11933 |
case $ac_option in |
|
11934 |
# Handling of the options. |
|
11935 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
11936 |
ac_cs_recheck=: ;; |
|
11937 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
|
11938 |
$as_echo "$ac_cs_version"; exit ;; |
|
11939 |
--config | --confi | --conf | --con | --co | --c ) |
|
11940 |
$as_echo "$ac_cs_config"; exit ;; |
|
11941 |
--debug | --debu | --deb | --de | --d | -d ) |
|
11942 |
debug=: ;; |
|
11943 |
--file | --fil | --fi | --f ) |
|
11944 |
$ac_shift |
|
11945 |
case $ac_optarg in |
|
11946 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
11947 |
'') as_fn_error $? "missing file argument" ;; |
|
11948 |
esac |
|
11949 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
|
11950 |
ac_need_defaults=false;; |
|
11951 |
--he | --h | --help | --hel | -h ) |
|
11952 |
$as_echo "$ac_cs_usage"; exit ;; |
|
11953 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
11954 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
11955 |
ac_cs_silent=: ;; |
|
11956 |
|
|
11957 |
# This is an error. |
|
11958 |
-*) as_fn_error $? "unrecognized option: \`$1' |
|
11959 |
Try \`$0 --help' for more information." ;; |
|
11960 |
|
|
11961 |
*) as_fn_append ac_config_targets " $1" |
|
11962 |
ac_need_defaults=false ;; |
|
11963 |
|
|
11964 |
esac |
|
11965 |
shift |
|
11966 |
done |
|
11967 |
|
|
11968 |
ac_configure_extra_args= |
|
11969 |
|
|
11970 |
if $ac_cs_silent; then |
|
11971 |
exec 6>/dev/null |
|
11972 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
11973 |
fi |
|
11974 |
|
|
11975 |
_ACEOF |
|
11976 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
11977 |
if \$ac_cs_recheck; then |
|
11978 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
11979 |
shift |
|
11980 |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
|
11981 |
CONFIG_SHELL='$SHELL' |
|
11982 |
export CONFIG_SHELL |
|
11983 |
exec "\$@" |
|
11984 |
fi |
|
11985 |
|
|
11986 |
_ACEOF |
|
11987 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
11988 |
exec 5>>config.log |
|
11989 |
{ |
|
11990 |
echo |
|
11991 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
11992 |
## Running $as_me. ## |
|
11993 |
_ASBOX |
|
11994 |
$as_echo "$ac_log" |
|
11995 |
} >&5 |
|
11996 |
|
|
11997 |
_ACEOF |
|
11998 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
11999 |
# |
|
12000 |
# INIT-COMMANDS |
|
12001 |
# |
|
12002 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
|
12003 |
|
|
12004 |
|
|
12005 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
|
12006 |
# if CDPATH is set. |
|
12007 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
12008 |
|
|
12009 |
sed_quote_subst='$sed_quote_subst' |
|
12010 |
double_quote_subst='$double_quote_subst' |
|
12011 |
delay_variable_subst='$delay_variable_subst' |
|
12012 |
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
|
12013 |
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
|
12014 |
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
|
12015 |
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
|
12016 |
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
|
12017 |
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
|
12018 |
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
|
12019 |
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
|
12020 |
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
|
12021 |
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
|
12022 |
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
|
12023 |
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
|
12024 |
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
|
12025 |
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
|
12026 |
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
|
12027 |
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
|
12028 |
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
|
12029 |
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
|
12030 |
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
|
12031 |
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
|
12032 |
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
|
12033 |
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
|
12034 |
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
|
12035 |
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
|
12036 |
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
|
12037 |
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
|
12038 |
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
|
12039 |
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
|
12040 |
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
|
12041 |
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
|
12042 |
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
|
12043 |
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
|
12044 |
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
|
12045 |
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
|
12046 |
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
|
12047 |
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
|
12048 |
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
|
12049 |
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
|
12050 |
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
|
12051 |
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
|
12052 |
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
|
12053 |
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
|
12054 |
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
|
12055 |
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
|
12056 |
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
|
12057 |
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
|
12058 |
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
|
12059 |
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
|
12060 |
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
|
12061 |
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
|
12062 |
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
|
12063 |
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
|
12064 |
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
|
12065 |
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
|
12066 |
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
|
12067 |
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
|
12068 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' |
|
12069 |
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
|
12070 |
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
|
12071 |
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
|
12072 |
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
|
12073 |
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
|
12074 |
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
|
12075 |
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
|
12076 |
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
|
12077 |
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
|
12078 |
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
|
12079 |
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
|
12080 |
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
|
12081 |
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
|
12082 |
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
|
12083 |
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
|
12084 |
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
|
12085 |
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
|
12086 |
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
|
12087 |
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
|
12088 |
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
|
12089 |
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
|
12090 |
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
|
12091 |
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
|
12092 |
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
|
12093 |
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
|
12094 |
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
|
12095 |
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
|
12096 |
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
|
12097 |
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
|
12098 |
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
|
12099 |
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
|
12100 |
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
|
12101 |
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
|
12102 |
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
|
12103 |
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
|
12104 |
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
|
12105 |
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
|
12106 |
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
|
12107 |
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
|
12108 |
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
|
12109 |
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
|
12110 |
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
|
12111 |
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
|
12112 |
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
|
12113 |
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
|
12114 |
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
|
12115 |
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
|
12116 |
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
|
12117 |
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
|
12118 |
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
|
12119 |
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
|
12120 |
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
|
12121 |
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
|
12122 |
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
|
12123 |
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
|
12124 |
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
|
12125 |
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
|
12126 |
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
|
12127 |
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
|
12128 |
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
|
12129 |
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
|
12130 |
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
|
12131 |
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
|
12132 |
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
|
12133 |
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
|
12134 |
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
|
12135 |
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
|
12136 |
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
|
12137 |
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
|
12138 |
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
|
12139 |
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
|
12140 |
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
|
12141 |
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
|
12142 |
|
|
12143 |
LTCC='$LTCC' |
|
12144 |
LTCFLAGS='$LTCFLAGS' |
|
12145 |
compiler='$compiler_DEFAULT' |
|
12146 |
|
|
12147 |
# A function that is used when there is no print builtin or printf. |
|
12148 |
func_fallback_echo () |
|
12149 |
{ |
|
12150 |
eval 'cat <<_LTECHO_EOF |
|
12151 |
\$1 |
|
12152 |
_LTECHO_EOF' |
|
12153 |
} |
|
12154 |
|
|
12155 |
# Quote evaled strings. |
|
12156 |
for var in SHELL \ |
|
12157 |
ECHO \ |
|
12158 |
PATH_SEPARATOR \ |
|
12159 |
SED \ |
|
12160 |
GREP \ |
|
12161 |
EGREP \ |
|
12162 |
FGREP \ |
|
12163 |
LD \ |
|
12164 |
NM \ |
|
12165 |
LN_S \ |
|
12166 |
lt_SP2NL \ |
|
12167 |
lt_NL2SP \ |
|
12168 |
reload_flag \ |
|
12169 |
OBJDUMP \ |
|
12170 |
deplibs_check_method \ |
|
12171 |
file_magic_cmd \ |
|
12172 |
file_magic_glob \ |
|
12173 |
want_nocaseglob \ |
|
12174 |
DLLTOOL \ |
|
12175 |
sharedlib_from_linklib_cmd \ |
|
12176 |
AR \ |
|
12177 |
AR_FLAGS \ |
|
12178 |
archiver_list_spec \ |
|
12179 |
STRIP \ |
|
12180 |
RANLIB \ |
|
12181 |
CC \ |
|
12182 |
CFLAGS \ |
|
12183 |
compiler \ |
|
12184 |
lt_cv_sys_global_symbol_pipe \ |
|
12185 |
lt_cv_sys_global_symbol_to_cdecl \ |
|
12186 |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
12187 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
|
12188 |
nm_file_list_spec \ |
|
12189 |
lt_prog_compiler_no_builtin_flag \ |
|
12190 |
lt_prog_compiler_pic \ |
|
12191 |
lt_prog_compiler_wl \ |
|
12192 |
lt_prog_compiler_static \ |
|
12193 |
lt_cv_prog_compiler_c_o \ |
|
12194 |
need_locks \ |
|
12195 |
MANIFEST_TOOL \ |
|
12196 |
DSYMUTIL \ |
|
12197 |
NMEDIT \ |
|
12198 |
LIPO \ |
|
12199 |
OTOOL \ |
|
12200 |
OTOOL64 \ |
|
12201 |
shrext_cmds \ |
|
12202 |
export_dynamic_flag_spec \ |
|
12203 |
whole_archive_flag_spec \ |
|
12204 |
compiler_needs_object \ |
|
12205 |
with_gnu_ld \ |
|
12206 |
allow_undefined_flag \ |
|
12207 |
no_undefined_flag \ |
|
12208 |
hardcode_libdir_flag_spec \ |
|
12209 |
hardcode_libdir_separator \ |
|
12210 |
exclude_expsyms \ |
|
12211 |
include_expsyms \ |
|
12212 |
file_list_spec \ |
|
12213 |
variables_saved_for_relink \ |
|
12214 |
libname_spec \ |
|
12215 |
library_names_spec \ |
|
12216 |
soname_spec \ |
|
12217 |
install_override_mode \ |
|
12218 |
finish_eval \ |
|
12219 |
old_striplib \ |
|
12220 |
striplib; do |
|
12221 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
|
12222 |
*[\\\\\\\`\\"\\\$]*) |
|
12223 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
|
12224 |
;; |
|
12225 |
*) |
|
12226 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
|
12227 |
;; |
|
12228 |
esac |
|
12229 |
done |
|
12230 |
|
|
12231 |
# Double-quote double-evaled strings. |
|
12232 |
for var in reload_cmds \ |
|
12233 |
old_postinstall_cmds \ |
|
12234 |
old_postuninstall_cmds \ |
|
12235 |
old_archive_cmds \ |
|
12236 |
extract_expsyms_cmds \ |
|
12237 |
old_archive_from_new_cmds \ |
|
12238 |
old_archive_from_expsyms_cmds \ |
|
12239 |
archive_cmds \ |
|
12240 |
archive_expsym_cmds \ |
|
12241 |
module_cmds \ |
|
12242 |
module_expsym_cmds \ |
|
12243 |
export_symbols_cmds \ |
|
12244 |
prelink_cmds \ |
|
12245 |
postlink_cmds \ |
|
12246 |
postinstall_cmds \ |
|
12247 |
postuninstall_cmds \ |
|
12248 |
finish_cmds \ |
|
12249 |
sys_lib_search_path_spec \ |
|
12250 |
sys_lib_dlsearch_path_spec; do |
|
12251 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
|
12252 |
*[\\\\\\\`\\"\\\$]*) |
|
12253 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
|
12254 |
;; |
|
12255 |
*) |
|
12256 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
|
12257 |
;; |
|
12258 |
esac |
|
12259 |
done |
|
12260 |
|
|
12261 |
ac_aux_dir='$ac_aux_dir' |
|
12262 |
xsi_shell='$xsi_shell' |
|
12263 |
lt_shell_append='$lt_shell_append' |
|
12264 |
|
|
12265 |
# See if we are running on zsh, and set the options which allow our |
|
12266 |
# commands through without removal of \ escapes INIT. |
|
12267 |
if test -n "\${ZSH_VERSION+set}" ; then |
|
12268 |
setopt NO_GLOB_SUBST |
|
12269 |
fi |
|
12270 |
|
|
12271 |
|
|
12272 |
PACKAGE='$PACKAGE' |
|
12273 |
VERSION='$VERSION' |
|
12274 |
TIMESTAMP='$TIMESTAMP' |
|
12275 |
RM='$RM' |
|
12276 |
ofile='$ofile' |
|
12277 |
|
|
12278 |
|
|
12279 |
|
|
12280 |
|
|
12281 |
_ACEOF |
|
12282 |
|
|
12283 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
12284 |
|
|
12285 |
# Handling of arguments. |
|
12286 |
for ac_config_target in $ac_config_targets |
|
12287 |
do |
|
12288 |
case $ac_config_target in |
|
12289 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
|
12290 |
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
|
12291 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
12292 |
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
|
12293 |
"udev_rules/Makefile") CONFIG_FILES="$CONFIG_FILES udev_rules/Makefile" ;; |
|
12294 |
"bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; |
|
12295 |
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
|
12296 |
|
|
12297 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
|
12298 |
esac |
|
12299 |
done |
|
12300 |
|
|
12301 |
|
|
12302 |
# If the user did not use the arguments to specify the items to instantiate, |
|
12303 |
# then the envvar interface is used. Set only those that are not. |
|
12304 |
# We use the long form for the default assignment because of an extremely |
|
12305 |
# bizarre bug on SunOS 4.1.3. |
|
12306 |
if $ac_need_defaults; then |
|
12307 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
|
12308 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
|
12309 |
fi |
|
12310 |
|
|
12311 |
# Have a temporary directory for convenience. Make it in the build tree |
|
12312 |
# simply because there is no reason against having it here, and in addition, |
|
12313 |
# creating and moving files from /tmp can sometimes cause problems. |
|
12314 |
# Hook for its removal unless debugging. |
|
12315 |
# Note that there is a small window in which the directory will not be cleaned: |
|
12316 |
# after its creation but before its name has been assigned to `$tmp'. |
|
12317 |
$debug || |
|
12318 |
{ |
|
12319 |
tmp= ac_tmp= |
|
12320 |
trap 'exit_status=$? |
|
12321 |
: "${ac_tmp:=$tmp}" |
|
12322 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
|
12323 |
' 0 |
|
12324 |
trap 'as_fn_exit 1' 1 2 13 15 |
|
12325 |
} |
|
12326 |
# Create a (secure) tmp directory for tmp files. |
|
12327 |
|
|
12328 |
{ |
|
12329 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
|
12330 |
test -d "$tmp" |
|
12331 |
} || |
|
12332 |
{ |
|
12333 |
tmp=./conf$$-$RANDOM |
|
12334 |
(umask 077 && mkdir "$tmp") |
|
12335 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
|
12336 |
ac_tmp=$tmp |
|
12337 |
|
|
12338 |
# Set up the scripts for CONFIG_FILES section. |
|
12339 |
# No need to generate them if there are no CONFIG_FILES. |
|
12340 |
# This happens for instance with `./config.status config.h'. |
|
12341 |
if test -n "$CONFIG_FILES"; then |
|
12342 |
|
|
12343 |
|
|
12344 |
ac_cr=`echo X | tr X '\015'` |
|
12345 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
|
12346 |
# But we know of no other shell where ac_cr would be empty at this |
|
12347 |
# point, so we can use a bashism as a fallback. |
|
12348 |
if test "x$ac_cr" = x; then |
|
12349 |
eval ac_cr=\$\'\\r\' |
|
12350 |
fi |
|
12351 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
|
12352 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
|
12353 |
ac_cs_awk_cr='\\r' |
|
12354 |
else |
|
12355 |
ac_cs_awk_cr=$ac_cr |
|
12356 |
fi |
|
12357 |
|
|
12358 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
|
12359 |
_ACEOF |
|
12360 |
|
|
12361 |
|
|
12362 |
{ |
|
12363 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
|
12364 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
|
12365 |
echo "_ACEOF" |
|
12366 |
} >conf$$subs.sh || |
|
12367 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
12368 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
|
12369 |
ac_delim='%!_!# ' |
|
12370 |
for ac_last_try in false false false false false :; do |
|
12371 |
. ./conf$$subs.sh || |
|
12372 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
12373 |
|
|
12374 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
|
12375 |
if test $ac_delim_n = $ac_delim_num; then |
|
12376 |
break |
|
12377 |
elif $ac_last_try; then |
|
12378 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
12379 |
else |
|
12380 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
12381 |
fi |
|
12382 |
done |
|
12383 |
rm -f conf$$subs.sh |
|
12384 |
|
|
12385 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
12386 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
|
12387 |
_ACEOF |
|
12388 |
sed -n ' |
|
12389 |
h |
|
12390 |
s/^/S["/; s/!.*/"]=/ |
|
12391 |
p |
|
12392 |
g |
|
12393 |
s/^[^!]*!// |
|
12394 |
:repl |
|
12395 |
t repl |
|
12396 |
s/'"$ac_delim"'$// |
|
12397 |
t delim |
|
12398 |
:nl |
|
12399 |
h |
|
12400 |
s/\(.\{148\}\)..*/\1/ |
|
12401 |
t more1 |
|
12402 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
|
12403 |
p |
|
12404 |
n |
|
12405 |
b repl |
|
12406 |
:more1 |
|
12407 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
|
12408 |
p |
|
12409 |
g |
|
12410 |
s/.\{148\}// |
|
12411 |
t nl |
|
12412 |
:delim |
|
12413 |
h |
|
12414 |
s/\(.\{148\}\)..*/\1/ |
|
12415 |
t more2 |
|
12416 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
|
12417 |
p |
|
12418 |
b |
|
12419 |
:more2 |
|
12420 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
|
12421 |
p |
|
12422 |
g |
|
12423 |
s/.\{148\}// |
|
12424 |
t delim |
|
12425 |
' <conf$$subs.awk | sed ' |
|
12426 |
/^[^""]/{ |
|
12427 |
N |
|
12428 |
s/\n// |
|
12429 |
} |
|
12430 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
|
12431 |
rm -f conf$$subs.awk |
|
12432 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
12433 |
_ACAWK |
|
12434 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
|
12435 |
for (key in S) S_is_set[key] = 1 |
|
12436 |
FS = "" |
|
12437 |
|
|
12438 |
} |
|
12439 |
{ |
|
12440 |
line = $ 0 |
|
12441 |
nfields = split(line, field, "@") |
|
12442 |
substed = 0 |
|
12443 |
len = length(field[1]) |
|
12444 |
for (i = 2; i < nfields; i++) { |
|
12445 |
key = field[i] |
|
12446 |
keylen = length(key) |
|
12447 |
if (S_is_set[key]) { |
|
12448 |
value = S[key] |
|
12449 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
|
12450 |
len += length(value) + length(field[++i]) |
|
12451 |
substed = 1 |
|
12452 |
} else |
|
12453 |
len += 1 + keylen |
|
12454 |
} |
|
12455 |
|
|
12456 |
print line |
|
12457 |
} |
|
12458 |
|
|
12459 |
_ACAWK |
|
12460 |
_ACEOF |
|
12461 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
12462 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
|
12463 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
|
12464 |
else |
|
12465 |
cat |
|
12466 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
|
12467 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
|
12468 |
_ACEOF |
|
12469 |
|
|
12470 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
|
12471 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
|
12472 |
# trailing colons and then remove the whole line if VPATH becomes empty |
|
12473 |
# (actually we leave an empty line to preserve line numbers). |
|
12474 |
if test "x$srcdir" = x.; then |
|
12475 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
|
12476 |
h |
|
12477 |
s/// |
|
12478 |
s/^/:/ |
|
12479 |
s/[ ]*$/:/ |
|
12480 |
s/:\$(srcdir):/:/g |
|
12481 |
s/:\${srcdir}:/:/g |
|
12482 |
s/:@srcdir@:/:/g |
|
12483 |
s/^:*// |
|
12484 |
s/:*$// |
|
12485 |
x |
|
12486 |
s/\(=[ ]*\).*/\1/ |
|
12487 |
G |
|
12488 |
s/\n// |
|
12489 |
s/^[^=]*=[ ]*$// |
|
12490 |
}' |
|
12491 |
fi |
|
12492 |
|
|
12493 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
12494 |
fi # test -n "$CONFIG_FILES" |
|
12495 |
|
|
12496 |
|
|
12497 |
eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" |
|
12498 |
shift |
|
12499 |
for ac_tag |
|
12500 |
do |
|
12501 |
case $ac_tag in |
|
12502 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
|
12503 |
esac |
|
12504 |
case $ac_mode$ac_tag in |
|
12505 |
:[FHL]*:*);; |
|
12506 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
|
12507 |
:[FH]-) ac_tag=-:-;; |
|
12508 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
|
12509 |
esac |
|
12510 |
ac_save_IFS=$IFS |
|
12511 |
IFS=: |
|
12512 |
set x $ac_tag |
|
12513 |
IFS=$ac_save_IFS |
|
12514 |
shift |
|
12515 |
ac_file=$1 |
|
12516 |
shift |
|
12517 |
|
|
12518 |
case $ac_mode in |
|
12519 |
:L) ac_source=$1;; |
|
12520 |
:[FH]) |
|
12521 |
ac_file_inputs= |
|
12522 |
for ac_f |
|
12523 |
do |
|
12524 |
case $ac_f in |
|
12525 |
-) ac_f="$ac_tmp/stdin";; |
|
12526 |
*) # Look for the file first in the build tree, then in the source tree |
|
12527 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
|
12528 |
# because $ac_f cannot contain `:'. |
|
12529 |
test -f "$ac_f" || |
|
12530 |
case $ac_f in |
|
12531 |
[\\/$]*) false;; |
|
12532 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
|
12533 |
esac || |
|
12534 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
|
12535 |
esac |
|
12536 |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
|
12537 |
as_fn_append ac_file_inputs " '$ac_f'" |
|
12538 |
done |
|
12539 |
|
|
12540 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
|
12541 |
# use $as_me), people would be surprised to read: |
|
12542 |
# /* config.h. Generated by config.status. */ |
|
12543 |
configure_input='Generated from '` |
|
12544 |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
|
12545 |
`' by configure.' |
|
12546 |
if test x"$ac_file" != x-; then |
|
12547 |
configure_input="$ac_file. $configure_input" |
|
12548 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
|
12549 |
$as_echo "$as_me: creating $ac_file" >&6;} |
|
12550 |
fi |
|
12551 |
# Neutralize special characters interpreted by sed in replacement strings. |
|
12552 |
case $configure_input in #( |
|
12553 |
*\&* | *\|* | *\\* ) |
|
12554 |
ac_sed_conf_input=`$as_echo "$configure_input" | |
|
12555 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
|
12556 |
*) ac_sed_conf_input=$configure_input;; |
|
12557 |
esac |
|
12558 |
|
|
12559 |
case $ac_tag in |
|
12560 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
|
12561 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
|
12562 |
esac |
|
12563 |
;; |
|
12564 |
esac |
|
12565 |
|
|
12566 |
ac_dir=`$as_dirname -- "$ac_file" || |
|
12567 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
12568 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
12569 |
X"$ac_file" : 'X\(//\)$' \| \ |
|
12570 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
|
12571 |
$as_echo X"$ac_file" | |
|
12572 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
12573 |
s//\1/ |
|
12574 |
q |
|
12575 |
} |
|
12576 |
/^X\(\/\/\)[^/].*/{ |
|
12577 |
s//\1/ |
|
12578 |
q |
|
12579 |
} |
|
12580 |
/^X\(\/\/\)$/{ |
|
12581 |
s//\1/ |
|
12582 |
q |
|
12583 |
} |
|
12584 |
/^X\(\/\).*/{ |
|
12585 |
s//\1/ |
|
12586 |
q |
|
12587 |
} |
|
12588 |
s/.*/./; q'` |
|
12589 |
as_dir="$ac_dir"; as_fn_mkdir_p |
|
12590 |
ac_builddir=. |
|
12591 |
|
|
12592 |
case "$ac_dir" in |
|
12593 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
12594 |
*) |
|
12595 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
|
12596 |
# A ".." for each directory in $ac_dir_suffix. |
|
12597 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
|
12598 |
case $ac_top_builddir_sub in |
|
12599 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
12600 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
12601 |
esac ;; |
|
12602 |
esac |
|
12603 |
ac_abs_top_builddir=$ac_pwd |
|
12604 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
12605 |
# for backward compatibility: |
|
12606 |
ac_top_builddir=$ac_top_build_prefix |
|
12607 |
|
|
12608 |
case $srcdir in |
|
12609 |
.) # We are building in place. |
|
12610 |
ac_srcdir=. |
|
12611 |
ac_top_srcdir=$ac_top_builddir_sub |
|
12612 |
ac_abs_top_srcdir=$ac_pwd ;; |
|
12613 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
|
12614 |
ac_srcdir=$srcdir$ac_dir_suffix; |
|
12615 |
ac_top_srcdir=$srcdir |
|
12616 |
ac_abs_top_srcdir=$srcdir ;; |
|
12617 |
*) # Relative name. |
|
12618 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
12619 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
12620 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
12621 |
esac |
|
12622 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
12623 |
|
|
12624 |
|
|
12625 |
case $ac_mode in |
|
12626 |
:F) |
|
12627 |
# |
|
12628 |
# CONFIG_FILE |
|
12629 |
# |
|
12630 |
|
|
12631 |
case $INSTALL in |
|
12632 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
|
12633 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
|
12634 |
esac |
|
12635 |
ac_MKDIR_P=$MKDIR_P |
|
12636 |
case $MKDIR_P in |
|
12637 |
[\\/$]* | ?:[\\/]* ) ;; |
|
12638 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
|
12639 |
esac |
|
12640 |
_ACEOF |
|
12641 |
|
|
12642 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
12643 |
# If the template does not know about datarootdir, expand it. |
|
12644 |
# FIXME: This hack should be removed a few years after 2.60. |
|
12645 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
|
12646 |
ac_sed_dataroot=' |
|
12647 |
/datarootdir/ { |
|
12648 |
p |
|
12649 |
q |
|
12650 |
} |
|
12651 |
/@datadir@/p |
|
12652 |
/@docdir@/p |
|
12653 |
/@infodir@/p |
|
12654 |
/@localedir@/p |
|
12655 |
/@mandir@/p' |
|
12656 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
|
12657 |
*datarootdir*) ac_datarootdir_seen=yes;; |
|
12658 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
|
12659 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
|
12660 |
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
|
12661 |
_ACEOF |
|
12662 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
12663 |
ac_datarootdir_hack=' |
|
12664 |
s&@datadir@&$datadir&g |
|
12665 |
s&@docdir@&$docdir&g |
|
12666 |
s&@infodir@&$infodir&g |
|
12667 |
s&@localedir@&$localedir&g |
|
12668 |
s&@mandir@&$mandir&g |
|
12669 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
|
12670 |
esac |
|
12671 |
_ACEOF |
|
12672 |
|
|
12673 |
# Neutralize VPATH when `$srcdir' = `.'. |
|
12674 |
# Shell code in configure.ac might set extrasub. |
|
12675 |
# FIXME: do we really want to maintain this feature? |
|
12676 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
12677 |
ac_sed_extra="$ac_vpsub |
|
12678 |
$extrasub |
|
12679 |
_ACEOF |
|
12680 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
12681 |
:t |
|
12682 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
12683 |
s|@configure_input@|$ac_sed_conf_input|;t t |
|
12684 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
|
12685 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
|
12686 |
s&@srcdir@&$ac_srcdir&;t t |
|
12687 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
|
12688 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
|
12689 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
|
12690 |
s&@builddir@&$ac_builddir&;t t |
|
12691 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
|
12692 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
|
12693 |
s&@INSTALL@&$ac_INSTALL&;t t |
|
12694 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t |
|
12695 |
$ac_datarootdir_hack |
|
12696 |
" |
|
12697 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
|
12698 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
|
12699 |
|
|
12700 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
|
12701 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
|
12702 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
|
12703 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
|
12704 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
12705 |
which seems to be undefined. Please make sure it is defined" >&5 |
|
12706 |
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
12707 |
which seems to be undefined. Please make sure it is defined" >&2;} |
|
12708 |
|
|
12709 |
rm -f "$ac_tmp/stdin" |
|
12710 |
case $ac_file in |
|
12711 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
|
12712 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
|
12713 |
esac \ |
|
12714 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
|
12715 |
;; |
|
12716 |
|
|
12717 |
|
|
12718 |
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
|
12719 |
$as_echo "$as_me: executing $ac_file commands" >&6;} |
|
12720 |
;; |
|
12721 |
esac |
|
12722 |
|
|
12723 |
|
|
12724 |
case $ac_file$ac_mode in |
|
12725 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
|
12726 |
# Autoconf 2.62 quotes --file arguments for eval, but not when files |
|
12727 |
# are listed without --file. Let's play safe and only enable the eval |
|
12728 |
# if we detect the quoting. |
|
12729 |
case $CONFIG_FILES in |
|
12730 |
*\'*) eval set x "$CONFIG_FILES" ;; |
|
12731 |
*) set x $CONFIG_FILES ;; |
|
12732 |
esac |
|
12733 |
shift |
|
12734 |
for mf |
|
12735 |
do |
|
12736 |
# Strip MF so we end up with the name of the file. |
|
12737 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
|
12738 |
# Check whether this is an Automake generated Makefile or not. |
|
12739 |
# We used to match only the files named 'Makefile.in', but |
|
12740 |
# some people rename them; so instead we look at the file content. |
|
12741 |
# Grep'ing the first line is not enough: some people post-process |
|
12742 |
# each Makefile.in and add a new line on top of each file to say so. |
|
12743 |
# Grep'ing the whole file is not good either: AIX grep has a line |
|
12744 |
# limit of 2048, but all sed's we know have understand at least 4000. |
|
12745 |
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
|
12746 |
dirpart=`$as_dirname -- "$mf" || |
|
12747 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
12748 |
X"$mf" : 'X\(//\)[^/]' \| \ |
|
12749 |
X"$mf" : 'X\(//\)$' \| \ |
|
12750 |
X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
|
12751 |
$as_echo X"$mf" | |
|
12752 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
12753 |
s//\1/ |
|
12754 |
q |
|
12755 |
} |
|
12756 |
/^X\(\/\/\)[^/].*/{ |
|
12757 |
s//\1/ |
|
12758 |
q |
|
12759 |
} |
|
12760 |
/^X\(\/\/\)$/{ |
|
12761 |
s//\1/ |
|
12762 |
q |
|
12763 |
} |
|
12764 |
/^X\(\/\).*/{ |
|
12765 |
s//\1/ |
|
12766 |
q |
|
12767 |
} |
|
12768 |
s/.*/./; q'` |
|
12769 |
else |
|
12770 |
continue |
|
12771 |
fi |
|
12772 |
# Extract the definition of DEPDIR, am__include, and am__quote |
|
12773 |
# from the Makefile without running 'make'. |
|
12774 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
|
12775 |
test -z "$DEPDIR" && continue |
|
12776 |
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
|
12777 |
test -z "am__include" && continue |
|
12778 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
|
12779 |
# Find all dependency output files, they are included files with |
|
12780 |
# $(DEPDIR) in their names. We invoke sed twice because it is the |
|
12781 |
# simplest approach to changing $(DEPDIR) to its actual value in the |
|
12782 |
# expansion. |
|
12783 |
for file in `sed -n " |
|
12784 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
|
12785 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
|
12786 |
# Make sure the directory exists. |
|
12787 |
test -f "$dirpart/$file" && continue |
|
12788 |
fdir=`$as_dirname -- "$file" || |
|
12789 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
12790 |
X"$file" : 'X\(//\)[^/]' \| \ |
|
12791 |
X"$file" : 'X\(//\)$' \| \ |
|
12792 |
X"$file" : 'X\(/\)' \| . 2>/dev/null || |
|
12793 |
$as_echo X"$file" | |
|
12794 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
12795 |
s//\1/ |
|
12796 |
q |
|
12797 |
} |
|
12798 |
/^X\(\/\/\)[^/].*/{ |
|
12799 |
s//\1/ |
|
12800 |
q |
|
12801 |
} |
|
12802 |
/^X\(\/\/\)$/{ |
|
12803 |
s//\1/ |
|
12804 |
q |
|
12805 |
} |
|
12806 |
/^X\(\/\).*/{ |
|
12807 |
s//\1/ |
|
12808 |
q |
|
12809 |
} |
|
12810 |
s/.*/./; q'` |
|
12811 |
as_dir=$dirpart/$fdir; as_fn_mkdir_p |
|
12812 |
# echo "creating $dirpart/$file" |
|
12813 |
echo '# dummy' > "$dirpart/$file" |
|
12814 |
done |
|
12815 |
done |
|
12816 |
} |
|
12817 |
;; |
|
12818 |
"libtool":C) |
|
12819 |
|
|
12820 |
# See if we are running on zsh, and set the options which allow our |
|
12821 |
# commands through without removal of \ escapes. |
|
12822 |
if test -n "${ZSH_VERSION+set}" ; then |
|
12823 |
setopt NO_GLOB_SUBST |
|
12824 |
fi |
|
12825 |
|
|
12826 |
cfgfile="${ofile}T" |
|
12827 |
trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
|
12828 |
$RM "$cfgfile" |
|
12829 |
|
|
12830 |
cat <<_LT_EOF >> "$cfgfile" |
|
12831 |
#! $SHELL |
|
12832 |
|
|
12833 |
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
12834 |
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
|
12835 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
12836 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
12837 |
# |
|
12838 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
|
12839 |
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
|
12840 |
# Foundation, Inc. |
|
12841 |
# Written by Gordon Matzigkeit, 1996 |
|
12842 |
# |
|
12843 |
# This file is part of GNU Libtool. |
|
12844 |
# |
|
12845 |
# GNU Libtool is free software; you can redistribute it and/or |
|
12846 |
# modify it under the terms of the GNU General Public License as |
|
12847 |
# published by the Free Software Foundation; either version 2 of |
|
12848 |
# the License, or (at your option) any later version. |
|
12849 |
# |
|
12850 |
# As a special exception to the GNU General Public License, |
|
12851 |
# if you distribute this file as part of a program or library that |
|
12852 |
# is built using GNU Libtool, you may include this file under the |
|
12853 |
# same distribution terms that you use for the rest of that program. |
|
12854 |
# |
|
12855 |
# GNU Libtool is distributed in the hope that it will be useful, |
|
12856 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12857 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12858 |
# GNU General Public License for more details. |
|
12859 |
# |
|
12860 |
# You should have received a copy of the GNU General Public License |
|
12861 |
# along with GNU Libtool; see the file COPYING. If not, a copy |
|
12862 |
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
|
12863 |
# obtained by writing to the Free Software Foundation, Inc., |
|
12864 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
12865 |
|
|
12866 |
|
|
12867 |
# The names of the tagged configurations supported by this script. |
|
12868 |
available_tags="" |
|
12869 |
|
|
12870 |
# ### BEGIN LIBTOOL CONFIG |
|
12871 |
|
|
12872 |
# Which release of libtool.m4 was used? |
|
12873 |
macro_version=$macro_version |
|
12874 |
macro_revision=$macro_revision |
|
12875 |
|
|
12876 |
# Whether or not to build shared libraries. |
|
12877 |
build_libtool_libs=$enable_shared |
|
12878 |
|
|
12879 |
# Whether or not to build static libraries. |
|
12880 |
build_old_libs=$enable_static |
|
12881 |
|
|
12882 |
# What type of objects to build. |
|
12883 |
pic_mode=$pic_mode |
|
12884 |
|
|
12885 |
# Whether or not to optimize for fast installation. |
|
12886 |
fast_install=$enable_fast_install |
|
12887 |
|
|
12888 |
# Shell to use when invoking shell scripts. |
|
12889 |
SHELL=$lt_SHELL |
|
12890 |
|
|
12891 |
# An echo program that protects backslashes. |
|
12892 |
ECHO=$lt_ECHO |
|
12893 |
|
|
12894 |
# The PATH separator for the build system. |
|
12895 |
PATH_SEPARATOR=$lt_PATH_SEPARATOR |
|
12896 |
|
|
12897 |
# The host system. |
|
12898 |
host_alias=$host_alias |
|
12899 |
host=$host |
|
12900 |
host_os=$host_os |
|
12901 |
|
|
12902 |
# The build system. |
|
12903 |
build_alias=$build_alias |
|
12904 |
build=$build |
|
12905 |
build_os=$build_os |
|
12906 |
|
|
12907 |
# A sed program that does not truncate output. |
|
12908 |
SED=$lt_SED |
|
12909 |
|
|
12910 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
12911 |
Xsed="\$SED -e 1s/^X//" |
|
12912 |
|
|
12913 |
# A grep program that handles long lines. |
|
12914 |
GREP=$lt_GREP |
|
12915 |
|
|
12916 |
# An ERE matcher. |
|
12917 |
EGREP=$lt_EGREP |
|
12918 |
|
|
12919 |
# A literal string matcher. |
|
12920 |
FGREP=$lt_FGREP |
|
12921 |
|
|
12922 |
# A BSD- or MS-compatible name lister. |
|
12923 |
NM=$lt_NM |
|
12924 |
|
|
12925 |
# Whether we need soft or hard links. |
|
12926 |
LN_S=$lt_LN_S |
|
12927 |
|
|
12928 |
# What is the maximum length of a command? |
|
12929 |
max_cmd_len=$max_cmd_len |
|
12930 |
|
|
12931 |
# Object file suffix (normally "o"). |
|
12932 |
objext=$ac_objext |
|
12933 |
|
|
12934 |
# Executable file suffix (normally ""). |
|
12935 |
exeext=$exeext |
|
12936 |
|
|
12937 |
# whether the shell understands "unset". |
|
12938 |
lt_unset=$lt_unset |
|
12939 |
|
|
12940 |
# turn spaces into newlines. |
|
12941 |
SP2NL=$lt_lt_SP2NL |
|
12942 |
|
|
12943 |
# turn newlines into spaces. |
|
12944 |
NL2SP=$lt_lt_NL2SP |
|
12945 |
|
|
12946 |
# convert \$build file names to \$host format. |
|
12947 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
|
12948 |
|
|
12949 |
# convert \$build files to toolchain format. |
|
12950 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
|
12951 |
|
|
12952 |
# An object symbol dumper. |
|
12953 |
OBJDUMP=$lt_OBJDUMP |
|
12954 |
|
|
12955 |
# Method to check whether dependent libraries are shared objects. |
|
12956 |
deplibs_check_method=$lt_deplibs_check_method |
|
12957 |
|
|
12958 |
# Command to use when deplibs_check_method = "file_magic". |
|
12959 |
file_magic_cmd=$lt_file_magic_cmd |
|
12960 |
|
|
12961 |
# How to find potential files when deplibs_check_method = "file_magic". |
|
12962 |
file_magic_glob=$lt_file_magic_glob |
|
12963 |
|
|
12964 |
# Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
|
12965 |
want_nocaseglob=$lt_want_nocaseglob |
|
12966 |
|
|
12967 |
# DLL creation program. |
|
12968 |
DLLTOOL=$lt_DLLTOOL |
|
12969 |
|
|
12970 |
# Command to associate shared and link libraries. |
|
12971 |
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
|
12972 |
|
|
12973 |
# The archiver. |
|
12974 |
AR=$lt_AR |
|
12975 |
|
|
12976 |
# Flags to create an archive. |
|
12977 |
AR_FLAGS=$lt_AR_FLAGS |
|
12978 |
|
|
12979 |
# How to feed a file listing to the archiver. |
|
12980 |
archiver_list_spec=$lt_archiver_list_spec |
|
12981 |
|
|
12982 |
# A symbol stripping program. |
|
12983 |
STRIP=$lt_STRIP |
|
12984 |
|
|
12985 |
# Commands used to install an old-style archive. |
|
12986 |
RANLIB=$lt_RANLIB |
|
12987 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
|
12988 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
12989 |
|
|
12990 |
# Whether to use a lock for old archive extraction. |
|
12991 |
lock_old_archive_extraction=$lock_old_archive_extraction |
|
12992 |
|
|
12993 |
# A C compiler. |
|
12994 |
LTCC=$lt_CC |
|
12995 |
|
|
12996 |
# LTCC compiler flags. |
|
12997 |
LTCFLAGS=$lt_CFLAGS |
|
12998 |
|
|
12999 |
# Take the output of nm and produce a listing of raw symbols and C names. |
|
13000 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
13001 |
|
|
13002 |
# Transform the output of nm in a proper C declaration. |
|
13003 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
13004 |
|
|
13005 |
# Transform the output of nm in a C name address pair. |
|
13006 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
13007 |
|
|
13008 |
# Transform the output of nm in a C name address pair when lib prefix is needed. |
|
13009 |
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
|
13010 |
|
|
13011 |
# Specify filename containing input files for \$NM. |
|
13012 |
nm_file_list_spec=$lt_nm_file_list_spec |
|
13013 |
|
|
13014 |
# The root where to search for dependent libraries,and in which our libraries should be installed. |
|
13015 |
lt_sysroot=$lt_sysroot |
|
13016 |
|
|
13017 |
# The name of the directory that contains temporary libtool files. |
|
13018 |
objdir=$objdir |
|
13019 |
|
|
13020 |
# Used to examine libraries when file_magic_cmd begins with "file". |
|
13021 |
MAGIC_CMD=$MAGIC_CMD |
|
13022 |
|
|
13023 |
# Must we lock files when doing compilation? |
|
13024 |
need_locks=$lt_need_locks |
|
13025 |
|
|
13026 |
# Manifest tool. |
|
13027 |
MANIFEST_TOOL=$lt_MANIFEST_TOOL |
|
13028 |
|
|
13029 |
# Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
|
13030 |
DSYMUTIL=$lt_DSYMUTIL |
|
13031 |
|
|
13032 |
# Tool to change global to local symbols on Mac OS X. |
|
13033 |
NMEDIT=$lt_NMEDIT |
|
13034 |
|
|
13035 |
# Tool to manipulate fat objects and archives on Mac OS X. |
|
13036 |
LIPO=$lt_LIPO |
|
13037 |
|
|
13038 |
# ldd/readelf like tool for Mach-O binaries on Mac OS X. |
|
13039 |
OTOOL=$lt_OTOOL |
|
13040 |
|
|
13041 |
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
|
13042 |
OTOOL64=$lt_OTOOL64 |
|
13043 |
|
|
13044 |
# Old archive suffix (normally "a"). |
|
13045 |
libext=$libext |
|
13046 |
|
|
13047 |
# Shared library suffix (normally ".so"). |
|
13048 |
shrext_cmds=$lt_shrext_cmds |
|
13049 |
|
|
13050 |
# The commands to extract the exported symbol list from a shared archive. |
|
13051 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
13052 |
|
|
13053 |
# Variables whose values should be saved in libtool wrapper scripts and |
|
13054 |
# restored at link time. |
|
13055 |
variables_saved_for_relink=$lt_variables_saved_for_relink |
|
13056 |
|
|
13057 |
# Do we need the "lib" prefix for modules? |
|
13058 |
need_lib_prefix=$need_lib_prefix |
|
13059 |
|
|
13060 |
# Do we need a version for libraries? |
|
13061 |
need_version=$need_version |
|
13062 |
|
|
13063 |
# Library versioning type. |
|
13064 |
version_type=$version_type |
|
13065 |
|
|
13066 |
# Shared library runtime path variable. |
|
13067 |
runpath_var=$runpath_var |
|
13068 |
|
|
13069 |
# Shared library path variable. |
|
13070 |
shlibpath_var=$shlibpath_var |
|
13071 |
|
|
13072 |
# Is shlibpath searched before the hard-coded library search path? |
|
13073 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
13074 |
|
|
13075 |
# Format of library name prefix. |
|
13076 |
libname_spec=$lt_libname_spec |
|
13077 |
|
|
13078 |
# List of archive names. First name is the real one, the rest are links. |
|
13079 |
# The last name is the one that the linker finds with -lNAME |
|
13080 |
library_names_spec=$lt_library_names_spec |
|
13081 |
|
|
13082 |
# The coded name of the library, if different from the real name. |
|
13083 |
soname_spec=$lt_soname_spec |
|
13084 |
|
|
13085 |
# Permission mode override for installation of shared libraries. |
|
13086 |
install_override_mode=$lt_install_override_mode |
|
13087 |
|
|
13088 |
# Command to use after installation of a shared archive. |
|
13089 |
postinstall_cmds=$lt_postinstall_cmds |
|
13090 |
|
|
13091 |
# Command to use after uninstallation of a shared archive. |
|
13092 |
postuninstall_cmds=$lt_postuninstall_cmds |
|
13093 |
|
|
13094 |
# Commands used to finish a libtool library installation in a directory. |
|
13095 |
finish_cmds=$lt_finish_cmds |
|
13096 |
|
|
13097 |
# As "finish_cmds", except a single script fragment to be evaled but |
|
13098 |
# not shown. |
|
13099 |
finish_eval=$lt_finish_eval |
|
13100 |
|
|
13101 |
# Whether we should hardcode library paths into libraries. |
|
13102 |
hardcode_into_libs=$hardcode_into_libs |
|
13103 |
|
|
13104 |
# Compile-time system search path for libraries. |
|
13105 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
13106 |
|
|
13107 |
# Run-time system search path for libraries. |
|
13108 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
13109 |
|
|
13110 |
# Whether dlopen is supported. |
|
13111 |
dlopen_support=$enable_dlopen |
|
13112 |
|
|
13113 |
# Whether dlopen of programs is supported. |
|
13114 |
dlopen_self=$enable_dlopen_self |
|
13115 |
|
|
13116 |
# Whether dlopen of statically linked programs is supported. |
|
13117 |
dlopen_self_static=$enable_dlopen_self_static |
|
13118 |
|
|
13119 |
# Commands to strip libraries. |
|
13120 |
old_striplib=$lt_old_striplib |
|
13121 |
striplib=$lt_striplib |
|
13122 |
|
|
13123 |
|
|
13124 |
# The linker used to build libraries. |
|
13125 |
LD=$lt_LD |
|
13126 |
|
|
13127 |
# How to create reloadable object files. |
|
13128 |
reload_flag=$lt_reload_flag |
|
13129 |
reload_cmds=$lt_reload_cmds |
|
13130 |
|
|
13131 |
# Commands used to build an old-style archive. |
|
13132 |
old_archive_cmds=$lt_old_archive_cmds |
|
13133 |
|
|
13134 |
# A language specific compiler. |
|
13135 |
CC=$lt_compiler |
|
13136 |
|
|
13137 |
# Is the compiler the GNU compiler? |
|
13138 |
with_gcc=$GCC |
|
13139 |
|
|
13140 |
# Compiler flag to turn off builtin functions. |
|
13141 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
|
13142 |
|
|
13143 |
# Additional compiler flags for building library objects. |
|
13144 |
pic_flag=$lt_lt_prog_compiler_pic |
|
13145 |
|
|
13146 |
# How to pass a linker flag through the compiler. |
|
13147 |
wl=$lt_lt_prog_compiler_wl |
|
13148 |
|
|
13149 |
# Compiler flag to prevent dynamic linking. |
|
13150 |
link_static_flag=$lt_lt_prog_compiler_static |
|
13151 |
|
|
13152 |
# Does compiler simultaneously support -c and -o options? |
|
13153 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
|
13154 |
|
|
13155 |
# Whether or not to add -lc for building shared libraries. |
|
13156 |
build_libtool_need_lc=$archive_cmds_need_lc |
|
13157 |
|
|
13158 |
# Whether or not to disallow shared libs when runtime libs are static. |
|
13159 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
|
13160 |
|
|
13161 |
# Compiler flag to allow reflexive dlopens. |
|
13162 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
|
13163 |
|
|
13164 |
# Compiler flag to generate shared objects directly from archives. |
|
13165 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
|
13166 |
|
|
13167 |
# Whether the compiler copes with passing no objects directly. |
|
13168 |
compiler_needs_object=$lt_compiler_needs_object |
|
13169 |
|
|
13170 |
# Create an old-style archive from a shared archive. |
|
13171 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
|
13172 |
|
|
13173 |
# Create a temporary old-style archive to link instead of a shared archive. |
|
13174 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
|
13175 |
|
|
13176 |
# Commands used to build a shared archive. |
|
13177 |
archive_cmds=$lt_archive_cmds |
|
13178 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
|
13179 |
|
|
13180 |
# Commands used to build a loadable module if different from building |
|
13181 |
# a shared archive. |
|
13182 |
module_cmds=$lt_module_cmds |
|
13183 |
module_expsym_cmds=$lt_module_expsym_cmds |
|
13184 |
|
|
13185 |
# Whether we are building with GNU ld or not. |
|
13186 |
with_gnu_ld=$lt_with_gnu_ld |
|
13187 |
|
|
13188 |
# Flag that allows shared libraries with undefined symbols to be built. |
|
13189 |
allow_undefined_flag=$lt_allow_undefined_flag |
|
13190 |
|
|
13191 |
# Flag that enforces no undefined symbols. |
|
13192 |
no_undefined_flag=$lt_no_undefined_flag |
|
13193 |
|
|
13194 |
# Flag to hardcode \$libdir into a binary during linking. |
|
13195 |
# This must work even if \$libdir does not exist |
|
13196 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
|
13197 |
|
|
13198 |
# Whether we need a single "-rpath" flag with a separated argument. |
|
13199 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
|
13200 |
|
|
13201 |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
|
13202 |
# DIR into the resulting binary. |
|
13203 |
hardcode_direct=$hardcode_direct |
|
13204 |
|
|
13205 |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
|
13206 |
# DIR into the resulting binary and the resulting library dependency is |
|
13207 |
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
|
13208 |
# library is relocated. |
|
13209 |
hardcode_direct_absolute=$hardcode_direct_absolute |
|
13210 |
|
|
13211 |
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
|
13212 |
# into the resulting binary. |
|
13213 |
hardcode_minus_L=$hardcode_minus_L |
|
13214 |
|
|
13215 |
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
|
13216 |
# into the resulting binary. |
|
13217 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
|
13218 |
|
|
13219 |
# Set to "yes" if building a shared library automatically hardcodes DIR |
|
13220 |
# into the library and all subsequent libraries and executables linked |
|
13221 |
# against it. |
|
13222 |
hardcode_automatic=$hardcode_automatic |
|
13223 |
|
|
13224 |
# Set to yes if linker adds runtime paths of dependent libraries |
|
13225 |
# to runtime path list. |
|
13226 |
inherit_rpath=$inherit_rpath |
|
13227 |
|
|
13228 |
# Whether libtool must link a program against all its dependency libraries. |
|
13229 |
link_all_deplibs=$link_all_deplibs |
|
13230 |
|
|
13231 |
# Set to "yes" if exported symbols are required. |
|
13232 |
always_export_symbols=$always_export_symbols |
|
13233 |
|
|
13234 |
# The commands to list exported symbols. |
|
13235 |
export_symbols_cmds=$lt_export_symbols_cmds |
|
13236 |
|
|
13237 |
# Symbols that should not be listed in the preloaded symbols. |
|
13238 |
exclude_expsyms=$lt_exclude_expsyms |
|
13239 |
|
|
13240 |
# Symbols that must always be exported. |
|
13241 |
include_expsyms=$lt_include_expsyms |
|
13242 |
|
|
13243 |
# Commands necessary for linking programs (against libraries) with templates. |
|
13244 |
prelink_cmds=$lt_prelink_cmds |
|
13245 |
|
|
13246 |
# Commands necessary for finishing linking programs. |
|
13247 |
postlink_cmds=$lt_postlink_cmds |
|
13248 |
|
|
13249 |
# Specify filename containing input files. |
|
13250 |
file_list_spec=$lt_file_list_spec |
|
13251 |
|
|
13252 |
# How to hardcode a shared library path into an executable. |
|
13253 |
hardcode_action=$hardcode_action |
|
13254 |
|
|
13255 |
# ### END LIBTOOL CONFIG |
|
13256 |
|
|
13257 |
_LT_EOF |
|
13258 |
|
|
13259 |
case $host_os in |
|
13260 |
aix3*) |
|
13261 |
cat <<\_LT_EOF >> "$cfgfile" |
|
13262 |
# AIX sometimes has problems with the GCC collect2 program. For some |
|
13263 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
|
13264 |
# vanish in a puff of smoke. |
|
13265 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
|
13266 |
COLLECT_NAMES= |
|
13267 |
export COLLECT_NAMES |
|
13268 |
fi |
|
13269 |
_LT_EOF |
|
13270 |
;; |
|
13271 |
esac |
|
13272 |
|
|
13273 |
|
|
13274 |
ltmain="$ac_aux_dir/ltmain.sh" |
|
13275 |
|
|
13276 |
|
|
13277 |
# We use sed instead of cat because bash on DJGPP gets confused if |
|
13278 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
13279 |
# text mode, it properly converts lines to CR/LF. This bash problem |
|
13280 |
# is reportedly fixed, but why not run on old versions too? |
|
13281 |
sed '$q' "$ltmain" >> "$cfgfile" \ |
|
13282 |
|| (rm -f "$cfgfile"; exit 1) |
|
13283 |
|
|
13284 |
if test x"$xsi_shell" = xyes; then |
|
13285 |
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
|
13286 |
func_dirname ()\ |
|
13287 |
{\ |
|
13288 |
\ case ${1} in\ |
|
13289 |
\ */*) func_dirname_result="${1%/*}${2}" ;;\ |
|
13290 |
\ * ) func_dirname_result="${3}" ;;\ |
|
13291 |
\ esac\ |
|
13292 |
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
|
13293 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
|
13294 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
|
13295 |
test 0 -eq $? || _lt_function_replace_fail=: |
|
13296 |
|
|
13297 |
|
|
13298 |
sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
|
13299 |
func_basename ()\ |
|
13300 |
{\ |
|
13301 |
\ func_basename_result="${1##*/}"\ |
|
13302 |
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
|
13303 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
|
13304 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
|
13305 |
test 0 -eq $? || _lt_function_replace_fail=: |
|
13306 |
|
|
13307 |
|
|
13308 |
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
|
13309 |
func_dirname_and_basename ()\ |
|
13310 |
{\ |
|
13311 |
\ case ${1} in\ |
|
13312 |
\ */*) func_dirname_result="${1%/*}${2}" ;;\ |
|
13313 |
\ * ) func_dirname_result="${3}" ;;\ |
|
13314 |
\ esac\ |
|
13315 |
\ func_basename_result="${1##*/}"\ |
|
13316 |
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
|
13317 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
|
13318 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
|
13319 |
test 0 -eq $? || _lt_function_replace_fail=: |
|
13320 |
|
|
13321 |
|
|
13322 |
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
|
13323 |
func_stripname ()\ |
|
13324 |
{\ |
|
13325 |
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
|
13326 |
\ # positional parameters, so assign one to ordinary parameter first.\ |
|
13327 |
\ func_stripname_result=${3}\ |
|
13328 |
\ func_stripname_result=${func_stripname_result#"${1}"}\ |
|
13329 |
\ func_stripname_result=${func_stripname_result%"${2}"}\ |
|
13330 |
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
|
13331 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
|
13332 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
|
13333 |
test 0 -eq $? || _lt_function_replace_fail=: |
|
13334 |
|
|
13335 |
|
|
13336 |
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
|
13337 |
func_split_long_opt ()\ |
|
13338 |
{\ |
|
13339 |
\ func_split_long_opt_name=${1%%=*}\ |
|
13340 |
\ func_split_long_opt_arg=${1#*=}\ |
|
13341 |
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
|
13342 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
|
13343 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
|
13344 |
test 0 -eq $? || _lt_function_replace_fail=: |
|
13345 |
|
|
13346 |
|
|
13347 |
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
|
13348 |
func_split_short_opt ()\ |
|
13349 |
{\ |
|
13350 |
\ func_split_short_opt_arg=${1#??}\ |
|
13351 |
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
|
13352 |
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
|
13353 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
|
13354 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
|
13355 |
test 0 -eq $? || _lt_function_replace_fail=: |
|
13356 |
|
|
13357 |
|
|
13358 |
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
|
13359 |
func_lo2o ()\ |
|
13360 |
{\ |
|
13361 |
\ case ${1} in\ |
|
13362 |
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
|
13363 |
\ *) func_lo2o_result=${1} ;;\ |
|
13364 |
\ esac\ |
|
13365 |
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
|
13366 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
|
13367 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
|
13368 |
test 0 -eq $? || _lt_function_replace_fail=: |
|
13369 |
|
|
13370 |
|
|
13371 |
sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
|
13372 |
func_xform ()\ |
|
13373 |
{\ |
|
13374 |
func_xform_result=${1%.*}.lo\ |
|
13375 |
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
|
13376 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
|
13377 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
|
13378 |
test 0 -eq $? || _lt_function_replace_fail=: |
|
13379 |
|
|
13380 |
|
|
13381 |
sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
|
13382 |
func_arith ()\ |
|
13383 |
{\ |
|
13384 |
func_arith_result=$(( $* ))\ |
|
13385 |
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
|
13386 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
|
13387 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
|
13388 |
test 0 -eq $? || _lt_function_replace_fail=: |
|
13389 |
|
|
13390 |
|
|
13391 |
sed -e '/^func_len ()$/,/^} # func_len /c\ |
|
13392 |
func_len ()\ |
|
13393 |
{\ |
|
13394 |
func_len_result=${#1}\ |
|
13395 |
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
|
13396 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
|
13397 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
|
13398 |
test 0 -eq $? || _lt_function_replace_fail=: |
|
13399 |
|
|
13400 |
fi |
|
13401 |
|
|
13402 |
if test x"$lt_shell_append" = xyes; then |
|
13403 |
sed -e '/^func_append ()$/,/^} # func_append /c\ |
|
13404 |
func_append ()\ |
|
13405 |
{\ |
|
13406 |
eval "${1}+=\\${2}"\ |
|
13407 |
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
|
13408 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
|
13409 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
|
13410 |
test 0 -eq $? || _lt_function_replace_fail=: |
|
13411 |
|
|
13412 |
|
|
13413 |
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
|
13414 |
func_append_quoted ()\ |
|
13415 |
{\ |
|
13416 |
\ func_quote_for_eval "${2}"\ |
|
13417 |
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
|
13418 |
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
|
13419 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
|
13420 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
|
13421 |
test 0 -eq $? || _lt_function_replace_fail=: |
|
13422 |
|
|
13423 |
|
|
13424 |
# Save a `func_append' function call where possible by direct use of '+=' |
|
13425 |
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
|
13426 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
|
13427 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
|
13428 |
test 0 -eq $? || _lt_function_replace_fail=: |
|
13429 |
else |
|
13430 |
# Save a `func_append' function call even when '+=' is not available |
|
13431 |
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
|
13432 |
&& mv -f "$cfgfile.tmp" "$cfgfile" \ |
|
13433 |
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
|
13434 |
test 0 -eq $? || _lt_function_replace_fail=: |
|
13435 |
fi |
|
13436 |
|
|
13437 |
if test x"$_lt_function_replace_fail" = x":"; then |
|
13438 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
|
13439 |
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
|
13440 |
fi |
|
13441 |
|
|
13442 |
|
|
13443 |
mv -f "$cfgfile" "$ofile" || |
|
13444 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
|
13445 |
chmod +x "$ofile" |
|
13446 |
|
|
13447 |
;; |
|
13448 |
|
|
13449 |
esac |
|
13450 |
done # for ac_tag |
|
13451 |
|
|
13452 |
|
|
13453 |
as_fn_exit 0 |
|
13454 |
_ACEOF |
|
13455 |
ac_clean_files=$ac_clean_files_save |
|
13456 |
|
|
13457 |
test $ac_write_fail = 0 || |
|
13458 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
|
13459 |
|
|
13460 |
|
|
13461 |
# configure is writing to config.log, and then calls config.status. |
|
13462 |
# config.status does its own redirection, appending to config.log. |
|
13463 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
|
13464 |
# by configure, so config.status won't be able to write to it; its |
|
13465 |
# output is simply discarded. So we exec the FD to /dev/null, |
|
13466 |
# effectively closing config.log, so it can be properly (re)opened and |
|
13467 |
# appended to by config.status. When coming back to configure, we |
|
13468 |
# need to make the FD available again. |
|
13469 |
if test "$no_create" != yes; then |
|
13470 |
ac_cs_success=: |
|
13471 |
ac_config_status_args= |
|
13472 |
test "$silent" = yes && |
|
13473 |
ac_config_status_args="$ac_config_status_args --quiet" |
|
13474 |
exec 5>/dev/null |
|
13475 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
|
13476 |
exec 5>>config.log |
|
13477 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
|
13478 |
# would make configure fail if this is the last instruction. |
|
13479 |
$ac_cs_success || as_fn_exit 1 |
|
13480 |
fi |
|
13481 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
|
13482 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
|
13483 |
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
|
13484 |
fi |
|
13485 |
|
|
13486 |
|