bzr branch
http://bzr.ed.am/sqlite3cc
5
by edam
- updated README |
1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
3 |
# Generated by GNU Autoconf 2.65 for sqlite3cc 0.1.0. |
5
by edam
- updated README |
4 |
# |
5 |
# Report bugs to <edam@waxworlds.org>. |
|
6 |
# |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
7 |
# |
5
by edam
- updated README |
8 |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
9 |
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
10 |
# Inc. |
|
11 |
# |
|
5
by edam
- updated README |
12 |
# |
13 |
# This configure script is free software; the Free Software Foundation |
|
14 |
# gives unlimited permission to copy, distribute and modify it. |
|
15 |
## -------------------- ## |
|
16 |
## M4sh Initialization. ## |
|
17 |
## -------------------- ## |
|
18 |
||
19 |
# Be more Bourne compatible |
|
20 |
DUALCASE=1; export DUALCASE # for MKS sh |
|
21 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
|
22 |
emulate sh |
|
23 |
NULLCMD=: |
|
24 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
|
25 |
# is contrary to our usage. Disable this feature. |
|
26 |
alias -g '${1+"$@"}'='"$@"' |
|
27 |
setopt NO_GLOB_SUBST |
|
28 |
else |
|
29 |
case `(set -o) 2>/dev/null` in #( |
|
30 |
*posix*) : |
|
31 |
set -o posix ;; #( |
|
32 |
*) : |
|
33 |
;; |
|
34 |
esac |
|
35 |
fi |
|
36 |
||
37 |
||
38 |
as_nl=' |
|
39 |
' |
|
40 |
export as_nl |
|
41 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
|
42 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
|
43 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
|
44 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
|
45 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
|
46 |
# but without wasting forks for bash or zsh. |
|
47 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
|
48 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
49 |
as_echo='print -r --' |
|
50 |
as_echo_n='print -rn --' |
|
51 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
52 |
as_echo='printf %s\n' |
|
53 |
as_echo_n='printf %s' |
|
54 |
else |
|
55 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
|
56 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
|
57 |
as_echo_n='/usr/ucb/echo -n' |
|
58 |
else |
|
59 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
|
60 |
as_echo_n_body='eval |
|
61 |
arg=$1; |
|
62 |
case $arg in #( |
|
63 |
*"$as_nl"*) |
|
64 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
|
65 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
|
66 |
esac; |
|
67 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
|
68 |
' |
|
69 |
export as_echo_n_body |
|
70 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
|
71 |
fi |
|
72 |
export as_echo_body |
|
73 |
as_echo='sh -c $as_echo_body as_echo' |
|
74 |
fi |
|
75 |
||
76 |
# The user is always right. |
|
77 |
if test "${PATH_SEPARATOR+set}" != set; then |
|
78 |
PATH_SEPARATOR=: |
|
79 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|
80 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|
81 |
PATH_SEPARATOR=';' |
|
82 |
} |
|
83 |
fi |
|
84 |
||
85 |
||
86 |
# IFS |
|
87 |
# We need space, tab and new line, in precisely that order. Quoting is |
|
88 |
# there to prevent editors from complaining about space-tab. |
|
89 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
90 |
# splitting by setting IFS to empty value.) |
|
91 |
IFS=" "" $as_nl" |
|
92 |
||
93 |
# Find who we are. Look in the path if we contain no directory separator. |
|
94 |
case $0 in #(( |
|
95 |
*[\\/]* ) as_myself=$0 ;; |
|
96 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
97 |
for as_dir in $PATH |
|
98 |
do |
|
99 |
IFS=$as_save_IFS |
|
100 |
test -z "$as_dir" && as_dir=. |
|
101 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
102 |
done |
|
103 |
IFS=$as_save_IFS |
|
104 |
||
105 |
;; |
|
106 |
esac |
|
107 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
|
108 |
# in which case we are not to be found in the path. |
|
109 |
if test "x$as_myself" = x; then |
|
110 |
as_myself=$0 |
|
111 |
fi |
|
112 |
if test ! -f "$as_myself"; then |
|
113 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
114 |
exit 1 |
|
115 |
fi |
|
116 |
||
117 |
# Unset variables that we do not need and which cause bugs (e.g. in |
|
118 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
|
119 |
# suppresses any "Segmentation fault" message there. '((' could |
|
120 |
# trigger a bug in pdksh 5.2.14. |
|
121 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
|
122 |
do eval test x\${$as_var+set} = xset \ |
|
123 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
124 |
done |
|
125 |
PS1='$ ' |
|
126 |
PS2='> ' |
|
127 |
PS4='+ ' |
|
128 |
||
129 |
# NLS nuisances. |
|
130 |
LC_ALL=C |
|
131 |
export LC_ALL |
|
132 |
LANGUAGE=C |
|
133 |
export LANGUAGE |
|
134 |
||
135 |
# CDPATH. |
|
136 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
137 |
||
138 |
if test "x$CONFIG_SHELL" = x; then |
|
139 |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
|
140 |
emulate sh |
|
141 |
NULLCMD=: |
|
142 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
|
143 |
# is contrary to our usage. Disable this feature. |
|
144 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
|
145 |
setopt NO_GLOB_SUBST |
|
146 |
else |
|
147 |
case \`(set -o) 2>/dev/null\` in #( |
|
148 |
*posix*) : |
|
149 |
set -o posix ;; #( |
|
150 |
*) : |
|
151 |
;; |
|
152 |
esac |
|
153 |
fi |
|
154 |
" |
|
155 |
as_required="as_fn_return () { (exit \$1); } |
|
156 |
as_fn_success () { as_fn_return 0; } |
|
157 |
as_fn_failure () { as_fn_return 1; } |
|
158 |
as_fn_ret_success () { return 0; } |
|
159 |
as_fn_ret_failure () { return 1; } |
|
160 |
||
161 |
exitcode=0 |
|
162 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
|
163 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
|
164 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
|
165 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
|
166 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
|
167 |
||
168 |
else |
|
169 |
exitcode=1; echo positional parameters were not saved. |
|
170 |
fi |
|
171 |
test x\$exitcode = x0 || exit 1" |
|
172 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
|
173 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
|
174 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
|
175 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
|
176 |
test \$(( 1 + 1 )) = 2 || exit 1" |
|
177 |
if (eval "$as_required") 2>/dev/null; then : |
|
178 |
as_have_required=yes |
|
179 |
else |
|
180 |
as_have_required=no |
|
181 |
fi |
|
182 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
|
183 |
||
184 |
else |
|
185 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
186 |
as_found=false |
|
187 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
|
188 |
do |
|
189 |
IFS=$as_save_IFS |
|
190 |
test -z "$as_dir" && as_dir=. |
|
191 |
as_found=: |
|
192 |
case $as_dir in #( |
|
193 |
/*) |
|
194 |
for as_base in sh bash ksh sh5; do |
|
195 |
# Try only shells that exist, to save several forks. |
|
196 |
as_shell=$as_dir/$as_base |
|
197 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
|
198 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
|
199 |
CONFIG_SHELL=$as_shell as_have_required=yes |
|
200 |
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
|
201 |
break 2 |
|
202 |
fi |
|
203 |
fi |
|
204 |
done;; |
|
205 |
esac |
|
206 |
as_found=false |
|
207 |
done |
|
208 |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
|
209 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
|
210 |
CONFIG_SHELL=$SHELL as_have_required=yes |
|
211 |
fi; } |
|
212 |
IFS=$as_save_IFS |
|
213 |
||
214 |
||
215 |
if test "x$CONFIG_SHELL" != x; then : |
|
216 |
# We cannot yet assume a decent shell, so we have to provide a |
|
217 |
# neutralization value for shells without unset; and this also |
|
218 |
# works around shells that cannot unset nonexistent variables. |
|
219 |
BASH_ENV=/dev/null |
|
220 |
ENV=/dev/null |
|
221 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
|
222 |
export CONFIG_SHELL |
|
223 |
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
|
224 |
fi |
|
225 |
||
226 |
if test x$as_have_required = xno; then : |
|
227 |
$as_echo "$0: This script requires a shell more modern than all" |
|
228 |
$as_echo "$0: the shells that I found on your system." |
|
229 |
if test x${ZSH_VERSION+set} = xset ; then |
|
230 |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
|
231 |
$as_echo "$0: be upgraded to zsh 4.3.4 or later." |
|
232 |
else |
|
233 |
$as_echo "$0: Please tell bug-autoconf@gnu.org and edam@waxworlds.org |
|
234 |
$0: about your system, including any error possibly output |
|
235 |
$0: before this message. Then install a modern shell, or |
|
236 |
$0: manually run the script under such a shell if you do |
|
237 |
$0: have one." |
|
238 |
fi |
|
239 |
exit 1 |
|
240 |
fi |
|
241 |
fi |
|
242 |
fi |
|
243 |
SHELL=${CONFIG_SHELL-/bin/sh} |
|
244 |
export SHELL |
|
245 |
# Unset more variables known to interfere with behavior of common tools. |
|
246 |
CLICOLOR_FORCE= GREP_OPTIONS= |
|
247 |
unset CLICOLOR_FORCE GREP_OPTIONS |
|
248 |
||
249 |
## --------------------- ## |
|
250 |
## M4sh Shell Functions. ## |
|
251 |
## --------------------- ## |
|
252 |
# as_fn_unset VAR |
|
253 |
# --------------- |
|
254 |
# Portably unset VAR. |
|
255 |
as_fn_unset () |
|
256 |
{ |
|
257 |
{ eval $1=; unset $1;} |
|
258 |
} |
|
259 |
as_unset=as_fn_unset |
|
260 |
||
261 |
# as_fn_set_status STATUS |
|
262 |
# ----------------------- |
|
263 |
# Set $? to STATUS, without forking. |
|
264 |
as_fn_set_status () |
|
265 |
{ |
|
266 |
return $1 |
|
267 |
} # as_fn_set_status |
|
268 |
||
269 |
# as_fn_exit STATUS |
|
270 |
# ----------------- |
|
271 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|
272 |
as_fn_exit () |
|
273 |
{ |
|
274 |
set +e |
|
275 |
as_fn_set_status $1 |
|
276 |
exit $1 |
|
277 |
} # as_fn_exit |
|
278 |
||
279 |
# as_fn_mkdir_p |
|
280 |
# ------------- |
|
281 |
# Create "$as_dir" as a directory, including parents if necessary. |
|
282 |
as_fn_mkdir_p () |
|
283 |
{ |
|
284 |
||
285 |
case $as_dir in #( |
|
286 |
-*) as_dir=./$as_dir;; |
|
287 |
esac |
|
288 |
test -d "$as_dir" || eval $as_mkdir_p || { |
|
289 |
as_dirs= |
|
290 |
while :; do |
|
291 |
case $as_dir in #( |
|
292 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|
293 |
*) as_qdir=$as_dir;; |
|
294 |
esac |
|
295 |
as_dirs="'$as_qdir' $as_dirs" |
|
296 |
as_dir=`$as_dirname -- "$as_dir" || |
|
297 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
298 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
299 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
300 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
301 |
$as_echo X"$as_dir" | |
|
302 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
303 |
s//\1/ |
|
304 |
q |
|
305 |
} |
|
306 |
/^X\(\/\/\)[^/].*/{ |
|
307 |
s//\1/ |
|
308 |
q |
|
309 |
} |
|
310 |
/^X\(\/\/\)$/{ |
|
311 |
s//\1/ |
|
312 |
q |
|
313 |
} |
|
314 |
/^X\(\/\).*/{ |
|
315 |
s//\1/ |
|
316 |
q |
|
317 |
} |
|
318 |
s/.*/./; q'` |
|
319 |
test -d "$as_dir" && break |
|
320 |
done |
|
321 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
322 |
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
|
323 |
||
324 |
||
325 |
} # as_fn_mkdir_p |
|
326 |
# as_fn_append VAR VALUE |
|
327 |
# ---------------------- |
|
328 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
|
329 |
# advantage of any shell optimizations that allow amortized linear growth over |
|
330 |
# repeated appends, instead of the typical quadratic growth present in naive |
|
331 |
# implementations. |
|
332 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
|
333 |
eval 'as_fn_append () |
|
334 |
{ |
|
335 |
eval $1+=\$2 |
|
336 |
}' |
|
337 |
else |
|
338 |
as_fn_append () |
|
339 |
{ |
|
340 |
eval $1=\$$1\$2 |
|
341 |
} |
|
342 |
fi # as_fn_append |
|
343 |
||
344 |
# as_fn_arith ARG... |
|
345 |
# ------------------ |
|
346 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
|
347 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
|
348 |
# must be portable across $(()) and expr. |
|
349 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
|
350 |
eval 'as_fn_arith () |
|
351 |
{ |
|
352 |
as_val=$(( $* )) |
|
353 |
}' |
|
354 |
else |
|
355 |
as_fn_arith () |
|
356 |
{ |
|
357 |
as_val=`expr "$@" || test $? -eq 1` |
|
358 |
} |
|
359 |
fi # as_fn_arith |
|
360 |
||
361 |
||
362 |
# as_fn_error ERROR [LINENO LOG_FD] |
|
363 |
# --------------------------------- |
|
364 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
|
365 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
|
366 |
# script with status $?, using 1 if that was 0. |
|
367 |
as_fn_error () |
|
368 |
{ |
|
369 |
as_status=$?; test $as_status -eq 0 && as_status=1 |
|
370 |
if test "$3"; then |
|
371 |
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
372 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
|
373 |
fi |
|
374 |
$as_echo "$as_me: error: $1" >&2 |
|
375 |
as_fn_exit $as_status |
|
376 |
} # as_fn_error |
|
377 |
||
378 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
|
379 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
380 |
as_expr=expr |
|
381 |
else |
|
382 |
as_expr=false |
|
383 |
fi |
|
384 |
||
385 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|
386 |
as_basename=basename |
|
387 |
else |
|
388 |
as_basename=false |
|
389 |
fi |
|
390 |
||
391 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
392 |
as_dirname=dirname |
|
393 |
else |
|
394 |
as_dirname=false |
|
395 |
fi |
|
396 |
||
397 |
as_me=`$as_basename -- "$0" || |
|
398 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
399 |
X"$0" : 'X\(//\)$' \| \ |
|
400 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
401 |
$as_echo X/"$0" | |
|
402 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|
403 |
s//\1/ |
|
404 |
q |
|
405 |
} |
|
406 |
/^X\/\(\/\/\)$/{ |
|
407 |
s//\1/ |
|
408 |
q |
|
409 |
} |
|
410 |
/^X\/\(\/\).*/{ |
|
411 |
s//\1/ |
|
412 |
q |
|
413 |
} |
|
414 |
s/.*/./; q'` |
|
415 |
||
416 |
# Avoid depending upon Character Ranges. |
|
417 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
418 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
419 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
420 |
as_cr_digits='0123456789' |
|
421 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
422 |
||
423 |
||
424 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
|
425 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
|
426 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
|
427 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
|
428 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
|
429 |
sed -n ' |
|
430 |
p |
|
431 |
/[$]LINENO/= |
|
432 |
' <$as_myself | |
|
433 |
sed ' |
|
434 |
s/[$]LINENO.*/&-/ |
|
435 |
t lineno |
|
436 |
b |
|
437 |
:lineno |
|
438 |
N |
|
439 |
:loop |
|
440 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
|
441 |
t loop |
|
442 |
s/-\n.*// |
|
443 |
' >$as_me.lineno && |
|
444 |
chmod +x "$as_me.lineno" || |
|
445 |
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
|
446 |
||
447 |
# Don't try to exec as it changes $[0], causing all sort of problems |
|
448 |
# (the dirname of $[0] is not the place where we might find the |
|
449 |
# original and so on. Autoconf is especially sensitive to this). |
|
450 |
. "./$as_me.lineno" |
|
451 |
# Exit status is that of the last command. |
|
452 |
exit |
|
453 |
} |
|
454 |
||
455 |
ECHO_C= ECHO_N= ECHO_T= |
|
456 |
case `echo -n x` in #((((( |
|
457 |
-n*) |
|
458 |
case `echo 'xy\c'` in |
|
459 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
460 |
xy) ECHO_C='\c';; |
|
461 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|
462 |
ECHO_T=' ';; |
|
463 |
esac;; |
|
464 |
*) |
|
465 |
ECHO_N='-n';; |
|
466 |
esac |
|
467 |
||
468 |
rm -f conf$$ conf$$.exe conf$$.file |
|
469 |
if test -d conf$$.dir; then |
|
470 |
rm -f conf$$.dir/conf$$.file |
|
471 |
else |
|
472 |
rm -f conf$$.dir |
|
473 |
mkdir conf$$.dir 2>/dev/null |
|
474 |
fi |
|
475 |
if (echo >conf$$.file) 2>/dev/null; then |
|
476 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
477 |
as_ln_s='ln -s' |
|
478 |
# ... but there are two gotchas: |
|
479 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|
480 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
481 |
# In both cases, we have to default to `cp -p'. |
|
482 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|
483 |
as_ln_s='cp -p' |
|
484 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
|
485 |
as_ln_s=ln |
|
486 |
else |
|
487 |
as_ln_s='cp -p' |
|
488 |
fi |
|
489 |
else |
|
490 |
as_ln_s='cp -p' |
|
491 |
fi |
|
492 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|
493 |
rmdir conf$$.dir 2>/dev/null |
|
494 |
||
495 |
if mkdir -p . 2>/dev/null; then |
|
496 |
as_mkdir_p='mkdir -p "$as_dir"' |
|
497 |
else |
|
498 |
test -d ./-p && rmdir ./-p |
|
499 |
as_mkdir_p=false |
|
500 |
fi |
|
501 |
||
502 |
if test -x / >/dev/null 2>&1; then |
|
503 |
as_test_x='test -x' |
|
504 |
else |
|
505 |
if ls -dL / >/dev/null 2>&1; then |
|
506 |
as_ls_L_option=L |
|
507 |
else |
|
508 |
as_ls_L_option= |
|
509 |
fi |
|
510 |
as_test_x=' |
|
511 |
eval sh -c '\'' |
|
512 |
if test -d "$1"; then |
|
513 |
test -d "$1/."; |
|
514 |
else |
|
515 |
case $1 in #( |
|
516 |
-*)set "./$1";; |
|
517 |
esac; |
|
518 |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
|
519 |
???[sx]*):;;*)false;;esac;fi |
|
520 |
'\'' sh |
|
521 |
' |
|
522 |
fi |
|
523 |
as_executable_p=$as_test_x |
|
524 |
||
525 |
# Sed expression to map a string onto a valid CPP name. |
|
526 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
527 |
||
528 |
# Sed expression to map a string onto a valid variable name. |
|
529 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
530 |
||
531 |
||
532 |
||
533 |
# Check that we are running under the correct shell. |
|
534 |
SHELL=${CONFIG_SHELL-/bin/sh} |
|
535 |
||
536 |
case X$lt_ECHO in |
|
537 |
X*--fallback-echo) |
|
538 |
# Remove one level of quotation (which was required for Make). |
|
539 |
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
|
540 |
;; |
|
541 |
esac |
|
542 |
||
543 |
ECHO=${lt_ECHO-echo} |
|
544 |
if test "X$1" = X--no-reexec; then |
|
545 |
# Discard the --no-reexec flag, and continue. |
|
546 |
shift |
|
547 |
elif test "X$1" = X--fallback-echo; then |
|
548 |
# Avoid inline document here, it may be left over |
|
549 |
: |
|
550 |
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
|
551 |
# Yippee, $ECHO works! |
|
552 |
: |
|
553 |
else |
|
554 |
# Restart under the correct shell. |
|
555 |
exec $SHELL "$0" --no-reexec ${1+"$@"} |
|
556 |
fi |
|
557 |
||
558 |
if test "X$1" = X--fallback-echo; then |
|
559 |
# used as fallback echo |
|
560 |
shift |
|
561 |
cat <<_LT_EOF |
|
562 |
$* |
|
563 |
_LT_EOF |
|
564 |
exit 0 |
|
565 |
fi |
|
566 |
||
567 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
|
568 |
# if CDPATH is set. |
|
569 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
570 |
||
571 |
if test -z "$lt_ECHO"; then |
|
572 |
if test "X${echo_test_string+set}" != Xset; then |
|
573 |
# find a string as large as possible, as long as the shell can cope with it |
|
574 |
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
|
575 |
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
|
576 |
if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
|
577 |
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
|
578 |
then |
|
579 |
break |
|
580 |
fi |
|
581 |
done |
|
582 |
fi |
|
583 |
||
584 |
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
|
585 |
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
|
586 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
587 |
: |
|
588 |
else |
|
589 |
# The Solaris, AIX, and Digital Unix default echo programs unquote |
|
590 |
# backslashes. This makes it impossible to quote backslashes using |
|
591 |
# echo "$something" | sed 's/\\/\\\\/g' |
|
592 |
# |
|
593 |
# So, first we look for a working echo in the user's PATH. |
|
594 |
||
595 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
596 |
for dir in $PATH /usr/ucb; do |
|
597 |
IFS="$lt_save_ifs" |
|
598 |
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
|
599 |
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
|
600 |
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
|
601 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
602 |
ECHO="$dir/echo" |
|
603 |
break |
|
604 |
fi |
|
605 |
done |
|
606 |
IFS="$lt_save_ifs" |
|
607 |
||
608 |
if test "X$ECHO" = Xecho; then |
|
609 |
# We didn't find a better echo, so look for alternatives. |
|
610 |
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
|
611 |
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
|
612 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
613 |
# This shell has a builtin print -r that does the trick. |
|
614 |
ECHO='print -r' |
|
615 |
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
|
616 |
test "X$CONFIG_SHELL" != X/bin/ksh; then |
|
617 |
# If we have ksh, try running configure again with it. |
|
618 |
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
|
619 |
export ORIGINAL_CONFIG_SHELL |
|
620 |
CONFIG_SHELL=/bin/ksh |
|
621 |
export CONFIG_SHELL |
|
622 |
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
|
623 |
else |
|
624 |
# Try using printf. |
|
625 |
ECHO='printf %s\n' |
|
626 |
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
|
627 |
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
|
628 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
629 |
# Cool, printf works |
|
630 |
: |
|
631 |
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
632 |
test "X$echo_testing_string" = 'X\t' && |
|
633 |
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
634 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
635 |
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
|
636 |
export CONFIG_SHELL |
|
637 |
SHELL="$CONFIG_SHELL" |
|
638 |
export SHELL |
|
639 |
ECHO="$CONFIG_SHELL $0 --fallback-echo" |
|
640 |
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
|
641 |
test "X$echo_testing_string" = 'X\t' && |
|
642 |
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
|
643 |
test "X$echo_testing_string" = "X$echo_test_string"; then |
|
644 |
ECHO="$CONFIG_SHELL $0 --fallback-echo" |
|
645 |
else |
|
646 |
# maybe with a smaller string... |
|
647 |
prev=: |
|
648 |
||
649 |
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
|
650 |
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
|
651 |
then |
|
652 |
break |
|
653 |
fi |
|
654 |
prev="$cmd" |
|
655 |
done |
|
656 |
||
657 |
if test "$prev" != 'sed 50q "$0"'; then |
|
658 |
echo_test_string=`eval $prev` |
|
659 |
export echo_test_string |
|
660 |
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
|
661 |
else |
|
662 |
# Oops. We lost completely, so just stick with echo. |
|
663 |
ECHO=echo |
|
664 |
fi |
|
665 |
fi |
|
666 |
fi |
|
667 |
fi |
|
668 |
fi |
|
669 |
fi |
|
670 |
||
671 |
# Copy echo and quote the copy suitably for passing to libtool from |
|
672 |
# the Makefile, instead of quoting the original, which is used later. |
|
673 |
lt_ECHO=$ECHO |
|
674 |
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
|
675 |
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
|
676 |
fi |
|
677 |
||
678 |
||
679 |
||
680 |
||
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
681 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
682 |
exec 6>&1 |
|
5
by edam
- updated README |
683 |
|
684 |
# Name of the host. |
|
685 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
|
686 |
# so uname gets run too. |
|
687 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
|
688 |
||
689 |
# |
|
690 |
# Initializations. |
|
691 |
# |
|
692 |
ac_default_prefix=/usr/local |
|
693 |
ac_clean_files= |
|
694 |
ac_config_libobj_dir=. |
|
695 |
LIBOBJS= |
|
696 |
cross_compiling=no |
|
697 |
subdirs= |
|
698 |
MFLAGS= |
|
699 |
MAKEFLAGS= |
|
700 |
||
701 |
# Identity of this package. |
|
702 |
PACKAGE_NAME='sqlite3cc' |
|
703 |
PACKAGE_TARNAME='sqlite3cc' |
|
704 |
PACKAGE_VERSION='0.1.0' |
|
705 |
PACKAGE_STRING='sqlite3cc 0.1.0' |
|
706 |
PACKAGE_BUGREPORT='edam@waxworlds.org' |
|
7
by edam
- removed "OK" from test-main when test is successful |
707 |
PACKAGE_URL='http://www.waxworlds.org/edam/software/sqlite3cc' |
5
by edam
- updated README |
708 |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
709 |
ac_unique_file="src/command.cc" |
5
by edam
- updated README |
710 |
# Factoring default headers for most tests. |
711 |
ac_includes_default="\ |
|
712 |
#include <stdio.h> |
|
713 |
#ifdef HAVE_SYS_TYPES_H |
|
714 |
# include <sys/types.h> |
|
715 |
#endif |
|
716 |
#ifdef HAVE_SYS_STAT_H |
|
717 |
# include <sys/stat.h> |
|
718 |
#endif |
|
719 |
#ifdef STDC_HEADERS |
|
720 |
# include <stdlib.h> |
|
721 |
# include <stddef.h> |
|
722 |
#else |
|
723 |
# ifdef HAVE_STDLIB_H |
|
724 |
# include <stdlib.h> |
|
725 |
# endif |
|
726 |
#endif |
|
727 |
#ifdef HAVE_STRING_H |
|
728 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
|
729 |
# include <memory.h> |
|
730 |
# endif |
|
731 |
# include <string.h> |
|
732 |
#endif |
|
733 |
#ifdef HAVE_STRINGS_H |
|
734 |
# include <strings.h> |
|
735 |
#endif |
|
736 |
#ifdef HAVE_INTTYPES_H |
|
737 |
# include <inttypes.h> |
|
738 |
#endif |
|
739 |
#ifdef HAVE_STDINT_H |
|
740 |
# include <stdint.h> |
|
741 |
#endif |
|
742 |
#ifdef HAVE_UNISTD_H |
|
743 |
# include <unistd.h> |
|
744 |
#endif" |
|
745 |
||
746 |
ac_subst_vars='am__EXEEXT_FALSE |
|
747 |
am__EXEEXT_TRUE |
|
748 |
LTLIBOBJS |
|
749 |
LIBOBJS |
|
750 |
CXXCPP |
|
6
by edam
- fixed .am files so the library gets built! |
751 |
am__fastdepCXX_FALSE |
752 |
am__fastdepCXX_TRUE |
|
753 |
CXXDEPMODE |
|
754 |
ac_ct_CXX |
|
755 |
CXXFLAGS |
|
756 |
CXX |
|
5
by edam
- updated README |
757 |
CPP |
758 |
OTOOL64 |
|
759 |
OTOOL |
|
760 |
LIPO |
|
761 |
NMEDIT |
|
762 |
DSYMUTIL |
|
763 |
lt_ECHO |
|
764 |
RANLIB |
|
765 |
AR |
|
766 |
OBJDUMP |
|
767 |
LN_S |
|
768 |
NM |
|
769 |
ac_ct_DUMPBIN |
|
770 |
DUMPBIN |
|
771 |
LD |
|
772 |
FGREP |
|
773 |
EGREP |
|
774 |
GREP |
|
775 |
SED |
|
776 |
am__fastdepCC_FALSE |
|
777 |
am__fastdepCC_TRUE |
|
778 |
CCDEPMODE |
|
6
by edam
- fixed .am files so the library gets built! |
779 |
AMDEPBACKSLASH |
780 |
AMDEP_FALSE |
|
781 |
AMDEP_TRUE |
|
782 |
am__quote |
|
783 |
am__include |
|
784 |
DEPDIR |
|
785 |
OBJEXT |
|
786 |
EXEEXT |
|
5
by edam
- updated README |
787 |
ac_ct_CC |
6
by edam
- fixed .am files so the library gets built! |
788 |
CPPFLAGS |
789 |
LDFLAGS |
|
5
by edam
- updated README |
790 |
CFLAGS |
791 |
CC |
|
792 |
host_os |
|
793 |
host_vendor |
|
794 |
host_cpu |
|
795 |
host |
|
796 |
build_os |
|
797 |
build_vendor |
|
798 |
build_cpu |
|
799 |
build |
|
800 |
LIBTOOL |
|
801 |
am__untar |
|
802 |
am__tar |
|
803 |
AMTAR |
|
804 |
am__leading_dot |
|
805 |
SET_MAKE |
|
806 |
AWK |
|
807 |
mkdir_p |
|
808 |
MKDIR_P |
|
809 |
INSTALL_STRIP_PROGRAM |
|
810 |
STRIP |
|
811 |
install_sh |
|
812 |
MAKEINFO |
|
813 |
AUTOHEADER |
|
814 |
AUTOMAKE |
|
815 |
AUTOCONF |
|
816 |
ACLOCAL |
|
817 |
VERSION |
|
818 |
PACKAGE |
|
819 |
CYGPATH_W |
|
820 |
am__isrc |
|
821 |
INSTALL_DATA |
|
822 |
INSTALL_SCRIPT |
|
823 |
INSTALL_PROGRAM |
|
7
by edam
- removed "OK" from test-main when test is successful |
824 |
LIBSQLITE3CC_INTERFACE |
5
by edam
- updated README |
825 |
target_alias |
826 |
host_alias |
|
827 |
build_alias |
|
828 |
LIBS |
|
829 |
ECHO_T |
|
830 |
ECHO_N |
|
831 |
ECHO_C |
|
832 |
DEFS |
|
833 |
mandir |
|
834 |
localedir |
|
835 |
libdir |
|
836 |
psdir |
|
837 |
pdfdir |
|
838 |
dvidir |
|
839 |
htmldir |
|
840 |
infodir |
|
841 |
docdir |
|
842 |
oldincludedir |
|
843 |
includedir |
|
844 |
localstatedir |
|
845 |
sharedstatedir |
|
846 |
sysconfdir |
|
847 |
datadir |
|
848 |
datarootdir |
|
849 |
libexecdir |
|
850 |
sbindir |
|
851 |
bindir |
|
852 |
program_transform_name |
|
853 |
prefix |
|
854 |
exec_prefix |
|
855 |
PACKAGE_URL |
|
856 |
PACKAGE_BUGREPORT |
|
857 |
PACKAGE_STRING |
|
858 |
PACKAGE_VERSION |
|
859 |
PACKAGE_TARNAME |
|
860 |
PACKAGE_NAME |
|
861 |
PATH_SEPARATOR |
|
862 |
SHELL' |
|
863 |
ac_subst_files='' |
|
864 |
ac_user_opts=' |
|
865 |
enable_option_checking |
|
866 |
enable_shared |
|
867 |
enable_static |
|
868 |
with_pic |
|
869 |
enable_fast_install |
|
6
by edam
- fixed .am files so the library gets built! |
870 |
enable_dependency_tracking |
5
by edam
- updated README |
871 |
with_gnu_ld |
872 |
enable_libtool_lock |
|
873 |
' |
|
874 |
ac_precious_vars='build_alias |
|
875 |
host_alias |
|
876 |
target_alias |
|
6
by edam
- fixed .am files so the library gets built! |
877 |
CC |
878 |
CFLAGS |
|
5
by edam
- updated README |
879 |
LDFLAGS |
880 |
LIBS |
|
881 |
CPPFLAGS |
|
6
by edam
- fixed .am files so the library gets built! |
882 |
CPP |
883 |
CXX |
|
884 |
CXXFLAGS |
|
5
by edam
- updated README |
885 |
CCC |
886 |
CXXCPP' |
|
887 |
||
888 |
||
889 |
# Initialize some variables set by options. |
|
890 |
ac_init_help= |
|
891 |
ac_init_version=false |
|
892 |
ac_unrecognized_opts= |
|
893 |
ac_unrecognized_sep= |
|
894 |
# The variables have the same names as the options, with |
|
895 |
# dashes changed to underlines. |
|
896 |
cache_file=/dev/null |
|
897 |
exec_prefix=NONE |
|
898 |
no_create= |
|
899 |
no_recursion= |
|
900 |
prefix=NONE |
|
901 |
program_prefix=NONE |
|
902 |
program_suffix=NONE |
|
903 |
program_transform_name=s,x,x, |
|
904 |
silent= |
|
905 |
site= |
|
906 |
srcdir= |
|
907 |
verbose= |
|
908 |
x_includes=NONE |
|
909 |
x_libraries=NONE |
|
910 |
||
911 |
# Installation directory options. |
|
912 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
|
913 |
# and all the variables that are supposed to be based on exec_prefix |
|
914 |
# by default will actually change. |
|
915 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
|
916 |
# (The list follows the same order as the GNU Coding Standards.) |
|
917 |
bindir='${exec_prefix}/bin' |
|
918 |
sbindir='${exec_prefix}/sbin' |
|
919 |
libexecdir='${exec_prefix}/libexec' |
|
920 |
datarootdir='${prefix}/share' |
|
921 |
datadir='${datarootdir}' |
|
922 |
sysconfdir='${prefix}/etc' |
|
923 |
sharedstatedir='${prefix}/com' |
|
924 |
localstatedir='${prefix}/var' |
|
925 |
includedir='${prefix}/include' |
|
926 |
oldincludedir='/usr/include' |
|
927 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
|
928 |
infodir='${datarootdir}/info' |
|
929 |
htmldir='${docdir}' |
|
930 |
dvidir='${docdir}' |
|
931 |
pdfdir='${docdir}' |
|
932 |
psdir='${docdir}' |
|
933 |
libdir='${exec_prefix}/lib' |
|
934 |
localedir='${datarootdir}/locale' |
|
935 |
mandir='${datarootdir}/man' |
|
936 |
||
937 |
ac_prev= |
|
938 |
ac_dashdash= |
|
939 |
for ac_option |
|
940 |
do |
|
941 |
# If the previous option needs an argument, assign it. |
|
942 |
if test -n "$ac_prev"; then |
|
943 |
eval $ac_prev=\$ac_option |
|
944 |
ac_prev= |
|
945 |
continue |
|
946 |
fi |
|
947 |
||
948 |
case $ac_option in |
|
949 |
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
|
950 |
*) ac_optarg=yes ;; |
|
951 |
esac |
|
952 |
||
953 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
|
954 |
||
955 |
case $ac_dashdash$ac_option in |
|
956 |
--) |
|
957 |
ac_dashdash=yes ;; |
|
958 |
||
959 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
|
960 |
ac_prev=bindir ;; |
|
961 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
|
962 |
bindir=$ac_optarg ;; |
|
963 |
||
964 |
-build | --build | --buil | --bui | --bu) |
|
965 |
ac_prev=build_alias ;; |
|
966 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
|
967 |
build_alias=$ac_optarg ;; |
|
968 |
||
969 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
|
970 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
|
971 |
ac_prev=cache_file ;; |
|
972 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
|
973 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
|
974 |
cache_file=$ac_optarg ;; |
|
975 |
||
976 |
--config-cache | -C) |
|
977 |
cache_file=config.cache ;; |
|
978 |
||
979 |
-datadir | --datadir | --datadi | --datad) |
|
980 |
ac_prev=datadir ;; |
|
981 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
|
982 |
datadir=$ac_optarg ;; |
|
983 |
||
984 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
|
985 |
| --dataroo | --dataro | --datar) |
|
986 |
ac_prev=datarootdir ;; |
|
987 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
|
988 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
|
989 |
datarootdir=$ac_optarg ;; |
|
990 |
||
991 |
-disable-* | --disable-*) |
|
992 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
|
993 |
# Reject names that are not valid shell variable names. |
|
994 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
995 |
as_fn_error "invalid feature name: $ac_useropt" |
|
996 |
ac_useropt_orig=$ac_useropt |
|
997 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
998 |
case $ac_user_opts in |
|
999 |
*" |
|
1000 |
"enable_$ac_useropt" |
|
1001 |
"*) ;; |
|
1002 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
|
1003 |
ac_unrecognized_sep=', ';; |
|
1004 |
esac |
|
1005 |
eval enable_$ac_useropt=no ;; |
|
1006 |
||
1007 |
-docdir | --docdir | --docdi | --doc | --do) |
|
1008 |
ac_prev=docdir ;; |
|
1009 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
|
1010 |
docdir=$ac_optarg ;; |
|
1011 |
||
1012 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
|
1013 |
ac_prev=dvidir ;; |
|
1014 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
|
1015 |
dvidir=$ac_optarg ;; |
|
1016 |
||
1017 |
-enable-* | --enable-*) |
|
1018 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
|
1019 |
# Reject names that are not valid shell variable names. |
|
1020 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
1021 |
as_fn_error "invalid feature name: $ac_useropt" |
|
1022 |
ac_useropt_orig=$ac_useropt |
|
1023 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
1024 |
case $ac_user_opts in |
|
1025 |
*" |
|
1026 |
"enable_$ac_useropt" |
|
1027 |
"*) ;; |
|
1028 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
|
1029 |
ac_unrecognized_sep=', ';; |
|
1030 |
esac |
|
1031 |
eval enable_$ac_useropt=\$ac_optarg ;; |
|
1032 |
||
1033 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
|
1034 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
|
1035 |
| --exec | --exe | --ex) |
|
1036 |
ac_prev=exec_prefix ;; |
|
1037 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
|
1038 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
|
1039 |
| --exec=* | --exe=* | --ex=*) |
|
1040 |
exec_prefix=$ac_optarg ;; |
|
1041 |
||
1042 |
-gas | --gas | --ga | --g) |
|
1043 |
# Obsolete; use --with-gas. |
|
1044 |
with_gas=yes ;; |
|
1045 |
||
1046 |
-help | --help | --hel | --he | -h) |
|
1047 |
ac_init_help=long ;; |
|
1048 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
|
1049 |
ac_init_help=recursive ;; |
|
1050 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
|
1051 |
ac_init_help=short ;; |
|
1052 |
||
1053 |
-host | --host | --hos | --ho) |
|
1054 |
ac_prev=host_alias ;; |
|
1055 |
-host=* | --host=* | --hos=* | --ho=*) |
|
1056 |
host_alias=$ac_optarg ;; |
|
1057 |
||
1058 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
|
1059 |
ac_prev=htmldir ;; |
|
1060 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
|
1061 |
| --ht=*) |
|
1062 |
htmldir=$ac_optarg ;; |
|
1063 |
||
1064 |
-includedir | --includedir | --includedi | --included | --include \ |
|
1065 |
| --includ | --inclu | --incl | --inc) |
|
1066 |
ac_prev=includedir ;; |
|
1067 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
|
1068 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
|
1069 |
includedir=$ac_optarg ;; |
|
1070 |
||
1071 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
|
1072 |
ac_prev=infodir ;; |
|
1073 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
|
1074 |
infodir=$ac_optarg ;; |
|
1075 |
||
1076 |
-libdir | --libdir | --libdi | --libd) |
|
1077 |
ac_prev=libdir ;; |
|
1078 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
|
1079 |
libdir=$ac_optarg ;; |
|
1080 |
||
1081 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
|
1082 |
| --libexe | --libex | --libe) |
|
1083 |
ac_prev=libexecdir ;; |
|
1084 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
|
1085 |
| --libexe=* | --libex=* | --libe=*) |
|
1086 |
libexecdir=$ac_optarg ;; |
|
1087 |
||
1088 |
-localedir | --localedir | --localedi | --localed | --locale) |
|
1089 |
ac_prev=localedir ;; |
|
1090 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
|
1091 |
localedir=$ac_optarg ;; |
|
1092 |
||
1093 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
|
1094 |
| --localstate | --localstat | --localsta | --localst | --locals) |
|
1095 |
ac_prev=localstatedir ;; |
|
1096 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
|
1097 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
|
1098 |
localstatedir=$ac_optarg ;; |
|
1099 |
||
1100 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
|
1101 |
ac_prev=mandir ;; |
|
1102 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
|
1103 |
mandir=$ac_optarg ;; |
|
1104 |
||
1105 |
-nfp | --nfp | --nf) |
|
1106 |
# Obsolete; use --without-fp. |
|
1107 |
with_fp=no ;; |
|
1108 |
||
1109 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|
1110 |
| --no-cr | --no-c | -n) |
|
1111 |
no_create=yes ;; |
|
1112 |
||
1113 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|
1114 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
|
1115 |
no_recursion=yes ;; |
|
1116 |
||
1117 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
|
1118 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
|
1119 |
| --oldin | --oldi | --old | --ol | --o) |
|
1120 |
ac_prev=oldincludedir ;; |
|
1121 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
|
1122 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
|
1123 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
|
1124 |
oldincludedir=$ac_optarg ;; |
|
1125 |
||
1126 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
|
1127 |
ac_prev=prefix ;; |
|
1128 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
|
1129 |
prefix=$ac_optarg ;; |
|
1130 |
||
1131 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
|
1132 |
| --program-pre | --program-pr | --program-p) |
|
1133 |
ac_prev=program_prefix ;; |
|
1134 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
|
1135 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
|
1136 |
program_prefix=$ac_optarg ;; |
|
1137 |
||
1138 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
|
1139 |
| --program-suf | --program-su | --program-s) |
|
1140 |
ac_prev=program_suffix ;; |
|
1141 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
|
1142 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
|
1143 |
program_suffix=$ac_optarg ;; |
|
1144 |
||
1145 |
-program-transform-name | --program-transform-name \ |
|
1146 |
| --program-transform-nam | --program-transform-na \ |
|
1147 |
| --program-transform-n | --program-transform- \ |
|
1148 |
| --program-transform | --program-transfor \ |
|
1149 |
| --program-transfo | --program-transf \ |
|
1150 |
| --program-trans | --program-tran \ |
|
1151 |
| --progr-tra | --program-tr | --program-t) |
|
1152 |
ac_prev=program_transform_name ;; |
|
1153 |
-program-transform-name=* | --program-transform-name=* \ |
|
1154 |
| --program-transform-nam=* | --program-transform-na=* \ |
|
1155 |
| --program-transform-n=* | --program-transform-=* \ |
|
1156 |
| --program-transform=* | --program-transfor=* \ |
|
1157 |
| --program-transfo=* | --program-transf=* \ |
|
1158 |
| --program-trans=* | --program-tran=* \ |
|
1159 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
|
1160 |
program_transform_name=$ac_optarg ;; |
|
1161 |
||
1162 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
|
1163 |
ac_prev=pdfdir ;; |
|
1164 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
|
1165 |
pdfdir=$ac_optarg ;; |
|
1166 |
||
1167 |
-psdir | --psdir | --psdi | --psd | --ps) |
|
1168 |
ac_prev=psdir ;; |
|
1169 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
|
1170 |
psdir=$ac_optarg ;; |
|
1171 |
||
1172 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
1173 |
| -silent | --silent | --silen | --sile | --sil) |
|
1174 |
silent=yes ;; |
|
1175 |
||
1176 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
|
1177 |
ac_prev=sbindir ;; |
|
1178 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
|
1179 |
| --sbi=* | --sb=*) |
|
1180 |
sbindir=$ac_optarg ;; |
|
1181 |
||
1182 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
|
1183 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
|
1184 |
| --sharedst | --shareds | --shared | --share | --shar \ |
|
1185 |
| --sha | --sh) |
|
1186 |
ac_prev=sharedstatedir ;; |
|
1187 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
|
1188 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
|
1189 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
|
1190 |
| --sha=* | --sh=*) |
|
1191 |
sharedstatedir=$ac_optarg ;; |
|
1192 |
||
1193 |
-site | --site | --sit) |
|
1194 |
ac_prev=site ;; |
|
1195 |
-site=* | --site=* | --sit=*) |
|
1196 |
site=$ac_optarg ;; |
|
1197 |
||
1198 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
|
1199 |
ac_prev=srcdir ;; |
|
1200 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
|
1201 |
srcdir=$ac_optarg ;; |
|
1202 |
||
1203 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
|
1204 |
| --syscon | --sysco | --sysc | --sys | --sy) |
|
1205 |
ac_prev=sysconfdir ;; |
|
1206 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
|
1207 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
|
1208 |
sysconfdir=$ac_optarg ;; |
|
1209 |
||
1210 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
|
1211 |
ac_prev=target_alias ;; |
|
1212 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
|
1213 |
target_alias=$ac_optarg ;; |
|
1214 |
||
1215 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
|
1216 |
verbose=yes ;; |
|
1217 |
||
1218 |
-version | --version | --versio | --versi | --vers | -V) |
|
1219 |
ac_init_version=: ;; |
|
1220 |
||
1221 |
-with-* | --with-*) |
|
1222 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
|
1223 |
# Reject names that are not valid shell variable names. |
|
1224 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
1225 |
as_fn_error "invalid package name: $ac_useropt" |
|
1226 |
ac_useropt_orig=$ac_useropt |
|
1227 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
1228 |
case $ac_user_opts in |
|
1229 |
*" |
|
1230 |
"with_$ac_useropt" |
|
1231 |
"*) ;; |
|
1232 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
|
1233 |
ac_unrecognized_sep=', ';; |
|
1234 |
esac |
|
1235 |
eval with_$ac_useropt=\$ac_optarg ;; |
|
1236 |
||
1237 |
-without-* | --without-*) |
|
1238 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
|
1239 |
# Reject names that are not valid shell variable names. |
|
1240 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
|
1241 |
as_fn_error "invalid package name: $ac_useropt" |
|
1242 |
ac_useropt_orig=$ac_useropt |
|
1243 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
|
1244 |
case $ac_user_opts in |
|
1245 |
*" |
|
1246 |
"with_$ac_useropt" |
|
1247 |
"*) ;; |
|
1248 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
|
1249 |
ac_unrecognized_sep=', ';; |
|
1250 |
esac |
|
1251 |
eval with_$ac_useropt=no ;; |
|
1252 |
||
1253 |
--x) |
|
1254 |
# Obsolete; use --with-x. |
|
1255 |
with_x=yes ;; |
|
1256 |
||
1257 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
|
1258 |
| --x-incl | --x-inc | --x-in | --x-i) |
|
1259 |
ac_prev=x_includes ;; |
|
1260 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
|
1261 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
|
1262 |
x_includes=$ac_optarg ;; |
|
1263 |
||
1264 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
|
1265 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
|
1266 |
ac_prev=x_libraries ;; |
|
1267 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
|
1268 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
|
1269 |
x_libraries=$ac_optarg ;; |
|
1270 |
||
1271 |
-*) as_fn_error "unrecognized option: \`$ac_option' |
|
1272 |
Try \`$0 --help' for more information." |
|
1273 |
;; |
|
1274 |
||
1275 |
*=*) |
|
1276 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
|
1277 |
# Reject names that are not valid shell variable names. |
|
1278 |
case $ac_envvar in #( |
|
1279 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
|
1280 |
as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
|
1281 |
esac |
|
1282 |
eval $ac_envvar=\$ac_optarg |
|
1283 |
export $ac_envvar ;; |
|
1284 |
||
1285 |
*) |
|
1286 |
# FIXME: should be removed in autoconf 3.0. |
|
1287 |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
|
1288 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
|
1289 |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
|
1290 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
|
1291 |
;; |
|
1292 |
||
1293 |
esac |
|
1294 |
done |
|
1295 |
||
1296 |
if test -n "$ac_prev"; then |
|
1297 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
|
1298 |
as_fn_error "missing argument to $ac_option" |
|
1299 |
fi |
|
1300 |
||
1301 |
if test -n "$ac_unrecognized_opts"; then |
|
1302 |
case $enable_option_checking in |
|
1303 |
no) ;; |
|
1304 |
fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
|
1305 |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
|
1306 |
esac |
|
1307 |
fi |
|
1308 |
||
1309 |
# Check all directory arguments for consistency. |
|
1310 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
|
1311 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
|
1312 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
|
1313 |
libdir localedir mandir |
|
1314 |
do |
|
1315 |
eval ac_val=\$$ac_var |
|
1316 |
# Remove trailing slashes. |
|
1317 |
case $ac_val in |
|
1318 |
*/ ) |
|
1319 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
|
1320 |
eval $ac_var=\$ac_val;; |
|
1321 |
esac |
|
1322 |
# Be sure to have absolute directory names. |
|
1323 |
case $ac_val in |
|
1324 |
[\\/$]* | ?:[\\/]* ) continue;; |
|
1325 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
|
1326 |
esac |
|
1327 |
as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
|
1328 |
done |
|
1329 |
||
1330 |
# There might be people who depend on the old broken behavior: `$host' |
|
1331 |
# used to hold the argument of --host etc. |
|
1332 |
# FIXME: To remove some day. |
|
1333 |
build=$build_alias |
|
1334 |
host=$host_alias |
|
1335 |
target=$target_alias |
|
1336 |
||
1337 |
# FIXME: To remove some day. |
|
1338 |
if test "x$host_alias" != x; then |
|
1339 |
if test "x$build_alias" = x; then |
|
1340 |
cross_compiling=maybe |
|
1341 |
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
|
1342 |
If a cross compiler is detected then cross compile mode will be used." >&2 |
|
1343 |
elif test "x$build_alias" != "x$host_alias"; then |
|
1344 |
cross_compiling=yes |
|
1345 |
fi |
|
1346 |
fi |
|
1347 |
||
1348 |
ac_tool_prefix= |
|
1349 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
|
1350 |
||
1351 |
test "$silent" = yes && exec 6>/dev/null |
|
1352 |
||
1353 |
||
1354 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
|
1355 |
ac_ls_di=`ls -di .` && |
|
1356 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
|
1357 |
as_fn_error "working directory cannot be determined" |
|
1358 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
|
1359 |
as_fn_error "pwd does not report name of working directory" |
|
1360 |
||
1361 |
||
1362 |
# Find the source files, if location was not specified. |
|
1363 |
if test -z "$srcdir"; then |
|
1364 |
ac_srcdir_defaulted=yes |
|
1365 |
# Try the directory containing this script, then the parent directory. |
|
1366 |
ac_confdir=`$as_dirname -- "$as_myself" || |
|
1367 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
1368 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
|
1369 |
X"$as_myself" : 'X\(//\)$' \| \ |
|
1370 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
|
1371 |
$as_echo X"$as_myself" | |
|
1372 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
1373 |
s//\1/ |
|
1374 |
q |
|
1375 |
} |
|
1376 |
/^X\(\/\/\)[^/].*/{ |
|
1377 |
s//\1/ |
|
1378 |
q |
|
1379 |
} |
|
1380 |
/^X\(\/\/\)$/{ |
|
1381 |
s//\1/ |
|
1382 |
q |
|
1383 |
} |
|
1384 |
/^X\(\/\).*/{ |
|
1385 |
s//\1/ |
|
1386 |
q |
|
1387 |
} |
|
1388 |
s/.*/./; q'` |
|
1389 |
srcdir=$ac_confdir |
|
1390 |
if test ! -r "$srcdir/$ac_unique_file"; then |
|
1391 |
srcdir=.. |
|
1392 |
fi |
|
1393 |
else |
|
1394 |
ac_srcdir_defaulted=no |
|
1395 |
fi |
|
1396 |
if test ! -r "$srcdir/$ac_unique_file"; then |
|
1397 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
|
1398 |
as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
|
1399 |
fi |
|
1400 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
|
1401 |
ac_abs_confdir=`( |
|
1402 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
|
1403 |
pwd)` |
|
1404 |
# When building in place, set srcdir=. |
|
1405 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
|
1406 |
srcdir=. |
|
1407 |
fi |
|
1408 |
# Remove unnecessary trailing slashes from srcdir. |
|
1409 |
# Double slashes in file names in object file debugging info |
|
1410 |
# mess up M-x gdb in Emacs. |
|
1411 |
case $srcdir in |
|
1412 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
|
1413 |
esac |
|
1414 |
for ac_var in $ac_precious_vars; do |
|
1415 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
|
1416 |
eval ac_env_${ac_var}_value=\$${ac_var} |
|
1417 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
|
1418 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
|
1419 |
done |
|
1420 |
||
1421 |
# |
|
1422 |
# Report the --help message. |
|
1423 |
# |
|
1424 |
if test "$ac_init_help" = "long"; then |
|
1425 |
# Omit some internal or obsolete options to make the list less imposing. |
|
1426 |
# This message is too long to be a string in the A/UX 3.1 sh. |
|
1427 |
cat <<_ACEOF |
|
1428 |
\`configure' configures sqlite3cc 0.1.0 to adapt to many kinds of systems. |
|
1429 |
||
1430 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
|
1431 |
||
1432 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
|
1433 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
|
1434 |
||
1435 |
Defaults for the options are specified in brackets. |
|
1436 |
||
1437 |
Configuration: |
|
1438 |
-h, --help display this help and exit |
|
1439 |
--help=short display options specific to this package |
|
1440 |
--help=recursive display the short help of all the included packages |
|
1441 |
-V, --version display version information and exit |
|
1442 |
-q, --quiet, --silent do not print \`checking...' messages |
|
1443 |
--cache-file=FILE cache test results in FILE [disabled] |
|
1444 |
-C, --config-cache alias for \`--cache-file=config.cache' |
|
1445 |
-n, --no-create do not create output files |
|
1446 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
|
1447 |
||
1448 |
Installation directories: |
|
1449 |
--prefix=PREFIX install architecture-independent files in PREFIX |
|
1450 |
[$ac_default_prefix] |
|
1451 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|
1452 |
[PREFIX] |
|
1453 |
||
1454 |
By default, \`make install' will install all the files in |
|
1455 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
|
1456 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
|
1457 |
for instance \`--prefix=\$HOME'. |
|
1458 |
||
1459 |
For better control, use the options below. |
|
1460 |
||
1461 |
Fine tuning of the installation directories: |
|
1462 |
--bindir=DIR user executables [EPREFIX/bin] |
|
1463 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
|
1464 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
|
1465 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
|
1466 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
|
1467 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
|
1468 |
--libdir=DIR object code libraries [EPREFIX/lib] |
|
1469 |
--includedir=DIR C header files [PREFIX/include] |
|
1470 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
|
1471 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
|
1472 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
|
1473 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
|
1474 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
|
1475 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
|
1476 |
--docdir=DIR documentation root [DATAROOTDIR/doc/sqlite3cc] |
|
1477 |
--htmldir=DIR html documentation [DOCDIR] |
|
1478 |
--dvidir=DIR dvi documentation [DOCDIR] |
|
1479 |
--pdfdir=DIR pdf documentation [DOCDIR] |
|
1480 |
--psdir=DIR ps documentation [DOCDIR] |
|
1481 |
_ACEOF |
|
1482 |
||
1483 |
cat <<\_ACEOF |
|
1484 |
||
1485 |
Program names: |
|
1486 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
|
1487 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
|
1488 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
|
1489 |
||
1490 |
System types: |
|
1491 |
--build=BUILD configure for building on BUILD [guessed] |
|
1492 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
|
1493 |
_ACEOF |
|
1494 |
fi |
|
1495 |
||
1496 |
if test -n "$ac_init_help"; then |
|
1497 |
case $ac_init_help in |
|
1498 |
short | recursive ) echo "Configuration of sqlite3cc 0.1.0:";; |
|
1499 |
esac |
|
1500 |
cat <<\_ACEOF |
|
1501 |
||
1502 |
Optional Features: |
|
1503 |
--disable-option-checking ignore unrecognized --enable/--with options |
|
1504 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|
1505 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|
1506 |
--enable-shared[=PKGS] build shared libraries [default=yes] |
|
1507 |
--enable-static[=PKGS] build static libraries [default=yes] |
|
1508 |
--enable-fast-install[=PKGS] |
|
1509 |
optimize for fast installation [default=yes] |
|
6
by edam
- fixed .am files so the library gets built! |
1510 |
--disable-dependency-tracking speeds up one-time build |
1511 |
--enable-dependency-tracking do not reject slow dependency extractors |
|
5
by edam
- updated README |
1512 |
--disable-libtool-lock avoid locking (might break parallel builds) |
1513 |
||
1514 |
Optional Packages: |
|
1515 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|
1516 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
1517 |
--with-pic try to use only PIC/non-PIC objects [default=use |
|
1518 |
both] |
|
1519 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
|
1520 |
||
1521 |
Some influential environment variables: |
|
6
by edam
- fixed .am files so the library gets built! |
1522 |
CC C compiler command |
1523 |
CFLAGS C compiler flags |
|
5
by edam
- updated README |
1524 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1525 |
nonstandard directory <lib dir> |
|
1526 |
LIBS libraries to pass to the linker, e.g. -l<library> |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
1527 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
5
by edam
- updated README |
1528 |
you have headers in a nonstandard directory <include dir> |
1529 |
CPP C preprocessor |
|
6
by edam
- fixed .am files so the library gets built! |
1530 |
CXX C++ compiler command |
1531 |
CXXFLAGS C++ compiler flags |
|
5
by edam
- updated README |
1532 |
CXXCPP C++ preprocessor |
1533 |
||
1534 |
Use these variables to override the choices made by `configure' or to help |
|
1535 |
it to find libraries and programs with nonstandard names/locations. |
|
1536 |
||
1537 |
Report bugs to <edam@waxworlds.org>. |
|
7
by edam
- removed "OK" from test-main when test is successful |
1538 |
sqlite3cc home page: <http://www.waxworlds.org/edam/software/sqlite3cc>. |
5
by edam
- updated README |
1539 |
_ACEOF |
1540 |
ac_status=$? |
|
1541 |
fi |
|
1542 |
||
1543 |
if test "$ac_init_help" = "recursive"; then |
|
1544 |
# If there are subdirs, report their specific --help. |
|
1545 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
|
1546 |
test -d "$ac_dir" || |
|
1547 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
|
1548 |
continue |
|
1549 |
ac_builddir=. |
|
1550 |
||
1551 |
case "$ac_dir" in |
|
1552 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
1553 |
*) |
|
1554 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
|
1555 |
# A ".." for each directory in $ac_dir_suffix. |
|
1556 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
|
1557 |
case $ac_top_builddir_sub in |
|
1558 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
1559 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
1560 |
esac ;; |
|
1561 |
esac |
|
1562 |
ac_abs_top_builddir=$ac_pwd |
|
1563 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
1564 |
# for backward compatibility: |
|
1565 |
ac_top_builddir=$ac_top_build_prefix |
|
1566 |
||
1567 |
case $srcdir in |
|
1568 |
.) # We are building in place. |
|
1569 |
ac_srcdir=. |
|
1570 |
ac_top_srcdir=$ac_top_builddir_sub |
|
1571 |
ac_abs_top_srcdir=$ac_pwd ;; |
|
1572 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
|
1573 |
ac_srcdir=$srcdir$ac_dir_suffix; |
|
1574 |
ac_top_srcdir=$srcdir |
|
1575 |
ac_abs_top_srcdir=$srcdir ;; |
|
1576 |
*) # Relative name. |
|
1577 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
1578 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
1579 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
1580 |
esac |
|
1581 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
1582 |
||
1583 |
cd "$ac_dir" || { ac_status=$?; continue; } |
|
1584 |
# Check for guested configure. |
|
1585 |
if test -f "$ac_srcdir/configure.gnu"; then |
|
1586 |
echo && |
|
1587 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
|
1588 |
elif test -f "$ac_srcdir/configure"; then |
|
1589 |
echo && |
|
1590 |
$SHELL "$ac_srcdir/configure" --help=recursive |
|
1591 |
else |
|
1592 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
|
1593 |
fi || ac_status=$? |
|
1594 |
cd "$ac_pwd" || { ac_status=$?; break; } |
|
1595 |
done |
|
1596 |
fi |
|
1597 |
||
1598 |
test -n "$ac_init_help" && exit $ac_status |
|
1599 |
if $ac_init_version; then |
|
1600 |
cat <<\_ACEOF |
|
1601 |
sqlite3cc configure 0.1.0 |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
1602 |
generated by GNU Autoconf 2.65 |
5
by edam
- updated README |
1603 |
|
1604 |
Copyright (C) 2009 Free Software Foundation, Inc. |
|
1605 |
This configure script is free software; the Free Software Foundation |
|
1606 |
gives unlimited permission to copy, distribute and modify it. |
|
1607 |
_ACEOF |
|
1608 |
exit |
|
1609 |
fi |
|
1610 |
||
1611 |
## ------------------------ ## |
|
1612 |
## Autoconf initialization. ## |
|
1613 |
## ------------------------ ## |
|
1614 |
||
1615 |
# ac_fn_c_try_compile LINENO |
|
1616 |
# -------------------------- |
|
1617 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
|
1618 |
ac_fn_c_try_compile () |
|
1619 |
{ |
|
1620 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1621 |
rm -f conftest.$ac_objext |
|
1622 |
if { { ac_try="$ac_compile" |
|
1623 |
case "(($ac_try" in |
|
1624 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1625 |
*) ac_try_echo=$ac_try;; |
|
1626 |
esac |
|
1627 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1628 |
$as_echo "$ac_try_echo"; } >&5 |
|
1629 |
(eval "$ac_compile") 2>conftest.err |
|
1630 |
ac_status=$? |
|
1631 |
if test -s conftest.err; then |
|
1632 |
grep -v '^ *+' conftest.err >conftest.er1 |
|
1633 |
cat conftest.er1 >&5 |
|
1634 |
mv -f conftest.er1 conftest.err |
|
1635 |
fi |
|
1636 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1637 |
test $ac_status = 0; } && { |
|
1638 |
test -z "$ac_c_werror_flag" || |
|
1639 |
test ! -s conftest.err |
|
1640 |
} && test -s conftest.$ac_objext; then : |
|
1641 |
ac_retval=0 |
|
1642 |
else |
|
1643 |
$as_echo "$as_me: failed program was:" >&5 |
|
1644 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
1645 |
||
1646 |
ac_retval=1 |
|
1647 |
fi |
|
1648 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
1649 |
as_fn_set_status $ac_retval |
5
by edam
- updated README |
1650 |
|
1651 |
} # ac_fn_c_try_compile |
|
1652 |
||
1653 |
# ac_fn_c_try_link LINENO |
|
1654 |
# ----------------------- |
|
1655 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
|
1656 |
ac_fn_c_try_link () |
|
1657 |
{ |
|
1658 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1659 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1660 |
if { { ac_try="$ac_link" |
|
1661 |
case "(($ac_try" in |
|
1662 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1663 |
*) ac_try_echo=$ac_try;; |
|
1664 |
esac |
|
1665 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1666 |
$as_echo "$ac_try_echo"; } >&5 |
|
1667 |
(eval "$ac_link") 2>conftest.err |
|
1668 |
ac_status=$? |
|
1669 |
if test -s conftest.err; then |
|
1670 |
grep -v '^ *+' conftest.err >conftest.er1 |
|
1671 |
cat conftest.er1 >&5 |
|
1672 |
mv -f conftest.er1 conftest.err |
|
1673 |
fi |
|
1674 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1675 |
test $ac_status = 0; } && { |
|
1676 |
test -z "$ac_c_werror_flag" || |
|
1677 |
test ! -s conftest.err |
|
1678 |
} && test -s conftest$ac_exeext && { |
|
1679 |
test "$cross_compiling" = yes || |
|
1680 |
$as_test_x conftest$ac_exeext |
|
1681 |
}; then : |
|
1682 |
ac_retval=0 |
|
1683 |
else |
|
1684 |
$as_echo "$as_me: failed program was:" >&5 |
|
1685 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
1686 |
||
1687 |
ac_retval=1 |
|
1688 |
fi |
|
1689 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
|
1690 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
|
1691 |
# interfere with the next link command; also delete a directory that is |
|
1692 |
# left behind by Apple's compiler. We do this before executing the actions. |
|
1693 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
1694 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
1695 |
as_fn_set_status $ac_retval |
5
by edam
- updated README |
1696 |
|
1697 |
} # ac_fn_c_try_link |
|
1698 |
||
1699 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
|
1700 |
# ------------------------------------------------------- |
|
1701 |
# Tests whether HEADER exists and can be compiled using the include files in |
|
1702 |
# INCLUDES, setting the cache variable VAR accordingly. |
|
1703 |
ac_fn_c_check_header_compile () |
|
1704 |
{ |
|
1705 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1706 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1707 |
$as_echo_n "checking for $2... " >&6; } |
|
1708 |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
|
1709 |
$as_echo_n "(cached) " >&6 |
|
1710 |
else |
|
1711 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1712 |
/* end confdefs.h. */ |
|
1713 |
$4 |
|
1714 |
#include <$2> |
|
1715 |
_ACEOF |
|
1716 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
1717 |
eval "$3=yes" |
|
1718 |
else |
|
1719 |
eval "$3=no" |
|
1720 |
fi |
|
1721 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
1722 |
fi |
|
1723 |
eval ac_res=\$$3 |
|
1724 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1725 |
$as_echo "$ac_res" >&6; } |
|
1726 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
1727 |
||
1728 |
} # ac_fn_c_check_header_compile |
|
1729 |
||
1730 |
# ac_fn_c_try_cpp LINENO |
|
1731 |
# ---------------------- |
|
1732 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
|
1733 |
ac_fn_c_try_cpp () |
|
1734 |
{ |
|
1735 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1736 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
|
1737 |
case "(($ac_try" in |
|
1738 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1739 |
*) ac_try_echo=$ac_try;; |
|
1740 |
esac |
|
1741 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1742 |
$as_echo "$ac_try_echo"; } >&5 |
|
1743 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
|
1744 |
ac_status=$? |
|
1745 |
if test -s conftest.err; then |
|
1746 |
grep -v '^ *+' conftest.err >conftest.er1 |
|
1747 |
cat conftest.er1 >&5 |
|
1748 |
mv -f conftest.er1 conftest.err |
|
1749 |
fi |
|
1750 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1751 |
test $ac_status = 0; } >/dev/null && { |
|
1752 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
1753 |
test ! -s conftest.err |
|
1754 |
}; then : |
|
1755 |
ac_retval=0 |
|
1756 |
else |
|
1757 |
$as_echo "$as_me: failed program was:" >&5 |
|
1758 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
1759 |
||
1760 |
ac_retval=1 |
|
1761 |
fi |
|
1762 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
1763 |
as_fn_set_status $ac_retval |
5
by edam
- updated README |
1764 |
|
1765 |
} # ac_fn_c_try_cpp |
|
1766 |
||
1767 |
# ac_fn_c_try_run LINENO |
|
1768 |
# ---------------------- |
|
1769 |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
|
1770 |
# that executables *can* be run. |
|
1771 |
ac_fn_c_try_run () |
|
1772 |
{ |
|
1773 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1774 |
if { { ac_try="$ac_link" |
|
1775 |
case "(($ac_try" in |
|
1776 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1777 |
*) ac_try_echo=$ac_try;; |
|
1778 |
esac |
|
1779 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1780 |
$as_echo "$ac_try_echo"; } >&5 |
|
1781 |
(eval "$ac_link") 2>&5 |
|
1782 |
ac_status=$? |
|
1783 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1784 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
|
1785 |
{ { case "(($ac_try" in |
|
1786 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1787 |
*) ac_try_echo=$ac_try;; |
|
1788 |
esac |
|
1789 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1790 |
$as_echo "$ac_try_echo"; } >&5 |
|
1791 |
(eval "$ac_try") 2>&5 |
|
1792 |
ac_status=$? |
|
1793 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1794 |
test $ac_status = 0; }; }; then : |
|
1795 |
ac_retval=0 |
|
1796 |
else |
|
1797 |
$as_echo "$as_me: program exited with status $ac_status" >&5 |
|
1798 |
$as_echo "$as_me: failed program was:" >&5 |
|
1799 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
1800 |
||
1801 |
ac_retval=$ac_status |
|
1802 |
fi |
|
1803 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
1804 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
1805 |
as_fn_set_status $ac_retval |
5
by edam
- updated README |
1806 |
|
1807 |
} # ac_fn_c_try_run |
|
1808 |
||
1809 |
# ac_fn_c_check_func LINENO FUNC VAR |
|
1810 |
# ---------------------------------- |
|
1811 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
|
1812 |
ac_fn_c_check_func () |
|
1813 |
{ |
|
1814 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1815 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
1816 |
$as_echo_n "checking for $2... " >&6; } |
|
1817 |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
|
1818 |
$as_echo_n "(cached) " >&6 |
|
1819 |
else |
|
1820 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
1821 |
/* end confdefs.h. */ |
|
1822 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
|
1823 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|
1824 |
#define $2 innocuous_$2 |
|
1825 |
||
1826 |
/* System header to define __stub macros and hopefully few prototypes, |
|
1827 |
which can conflict with char $2 (); below. |
|
1828 |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
1829 |
<limits.h> exists even on freestanding compilers. */ |
|
1830 |
||
1831 |
#ifdef __STDC__ |
|
1832 |
# include <limits.h> |
|
1833 |
#else |
|
1834 |
# include <assert.h> |
|
1835 |
#endif |
|
1836 |
||
1837 |
#undef $2 |
|
1838 |
||
1839 |
/* Override any GCC internal prototype to avoid an error. |
|
1840 |
Use char because int might match the return type of a GCC |
|
1841 |
builtin and then its argument prototype would still apply. */ |
|
1842 |
#ifdef __cplusplus |
|
1843 |
extern "C" |
|
1844 |
#endif |
|
1845 |
char $2 (); |
|
1846 |
/* The GNU C library defines this for functions which it implements |
|
1847 |
to always fail with ENOSYS. Some functions are actually named |
|
1848 |
something starting with __ and the normal name is an alias. */ |
|
1849 |
#if defined __stub_$2 || defined __stub___$2 |
|
1850 |
choke me |
|
1851 |
#endif |
|
1852 |
||
1853 |
int |
|
1854 |
main () |
|
1855 |
{ |
|
1856 |
return $2 (); |
|
1857 |
; |
|
1858 |
return 0; |
|
1859 |
} |
|
1860 |
_ACEOF |
|
1861 |
if ac_fn_c_try_link "$LINENO"; then : |
|
1862 |
eval "$3=yes" |
|
1863 |
else |
|
1864 |
eval "$3=no" |
|
1865 |
fi |
|
1866 |
rm -f core conftest.err conftest.$ac_objext \ |
|
1867 |
conftest$ac_exeext conftest.$ac_ext |
|
1868 |
fi |
|
1869 |
eval ac_res=\$$3 |
|
1870 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
1871 |
$as_echo "$ac_res" >&6; } |
|
1872 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
1873 |
||
1874 |
} # ac_fn_c_check_func |
|
1875 |
||
6
by edam
- fixed .am files so the library gets built! |
1876 |
# ac_fn_cxx_try_compile LINENO |
1877 |
# ---------------------------- |
|
1878 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
|
1879 |
ac_fn_cxx_try_compile () |
|
1880 |
{ |
|
1881 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1882 |
rm -f conftest.$ac_objext |
|
1883 |
if { { ac_try="$ac_compile" |
|
1884 |
case "(($ac_try" in |
|
1885 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1886 |
*) ac_try_echo=$ac_try;; |
|
1887 |
esac |
|
1888 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1889 |
$as_echo "$ac_try_echo"; } >&5 |
|
1890 |
(eval "$ac_compile") 2>conftest.err |
|
1891 |
ac_status=$? |
|
1892 |
if test -s conftest.err; then |
|
1893 |
grep -v '^ *+' conftest.err >conftest.er1 |
|
1894 |
cat conftest.er1 >&5 |
|
1895 |
mv -f conftest.er1 conftest.err |
|
1896 |
fi |
|
1897 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1898 |
test $ac_status = 0; } && { |
|
1899 |
test -z "$ac_cxx_werror_flag" || |
|
1900 |
test ! -s conftest.err |
|
1901 |
} && test -s conftest.$ac_objext; then : |
|
1902 |
ac_retval=0 |
|
1903 |
else |
|
1904 |
$as_echo "$as_me: failed program was:" >&5 |
|
1905 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
1906 |
||
1907 |
ac_retval=1 |
|
1908 |
fi |
|
1909 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
1910 |
as_fn_set_status $ac_retval |
6
by edam
- fixed .am files so the library gets built! |
1911 |
|
1912 |
} # ac_fn_cxx_try_compile |
|
1913 |
||
5
by edam
- updated README |
1914 |
# ac_fn_cxx_try_cpp LINENO |
1915 |
# ------------------------ |
|
1916 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
|
1917 |
ac_fn_cxx_try_cpp () |
|
1918 |
{ |
|
1919 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1920 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
|
1921 |
case "(($ac_try" in |
|
1922 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1923 |
*) ac_try_echo=$ac_try;; |
|
1924 |
esac |
|
1925 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1926 |
$as_echo "$ac_try_echo"; } >&5 |
|
1927 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
|
1928 |
ac_status=$? |
|
1929 |
if test -s conftest.err; then |
|
1930 |
grep -v '^ *+' conftest.err >conftest.er1 |
|
1931 |
cat conftest.er1 >&5 |
|
1932 |
mv -f conftest.er1 conftest.err |
|
1933 |
fi |
|
1934 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1935 |
test $ac_status = 0; } >/dev/null && { |
|
1936 |
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
|
1937 |
test ! -s conftest.err |
|
1938 |
}; then : |
|
1939 |
ac_retval=0 |
|
1940 |
else |
|
1941 |
$as_echo "$as_me: failed program was:" >&5 |
|
1942 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
1943 |
||
1944 |
ac_retval=1 |
|
1945 |
fi |
|
1946 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
1947 |
as_fn_set_status $ac_retval |
5
by edam
- updated README |
1948 |
|
1949 |
} # ac_fn_cxx_try_cpp |
|
1950 |
||
1951 |
# ac_fn_cxx_try_link LINENO |
|
1952 |
# ------------------------- |
|
1953 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
|
1954 |
ac_fn_cxx_try_link () |
|
1955 |
{ |
|
1956 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
1957 |
rm -f conftest.$ac_objext conftest$ac_exeext |
|
1958 |
if { { ac_try="$ac_link" |
|
1959 |
case "(($ac_try" in |
|
1960 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
1961 |
*) ac_try_echo=$ac_try;; |
|
1962 |
esac |
|
1963 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
1964 |
$as_echo "$ac_try_echo"; } >&5 |
|
1965 |
(eval "$ac_link") 2>conftest.err |
|
1966 |
ac_status=$? |
|
1967 |
if test -s conftest.err; then |
|
1968 |
grep -v '^ *+' conftest.err >conftest.er1 |
|
1969 |
cat conftest.er1 >&5 |
|
1970 |
mv -f conftest.er1 conftest.err |
|
1971 |
fi |
|
1972 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
1973 |
test $ac_status = 0; } && { |
|
1974 |
test -z "$ac_cxx_werror_flag" || |
|
1975 |
test ! -s conftest.err |
|
1976 |
} && test -s conftest$ac_exeext && { |
|
1977 |
test "$cross_compiling" = yes || |
|
1978 |
$as_test_x conftest$ac_exeext |
|
1979 |
}; then : |
|
1980 |
ac_retval=0 |
|
1981 |
else |
|
1982 |
$as_echo "$as_me: failed program was:" >&5 |
|
1983 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
1984 |
||
1985 |
ac_retval=1 |
|
1986 |
fi |
|
1987 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
|
1988 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
|
1989 |
# interfere with the next link command; also delete a directory that is |
|
1990 |
# left behind by Apple's compiler. We do this before executing the actions. |
|
1991 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
1992 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
1993 |
as_fn_set_status $ac_retval |
5
by edam
- updated README |
1994 |
|
1995 |
} # ac_fn_cxx_try_link |
|
1996 |
||
1997 |
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
|
1998 |
# ------------------------------------------------------- |
|
1999 |
# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
|
2000 |
# the include files in INCLUDES and setting the cache variable VAR |
|
2001 |
# accordingly. |
|
2002 |
ac_fn_c_check_header_mongrel () |
|
2003 |
{ |
|
2004 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
2005 |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
|
2006 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
2007 |
$as_echo_n "checking for $2... " >&6; } |
|
2008 |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
|
2009 |
$as_echo_n "(cached) " >&6 |
|
2010 |
fi |
|
2011 |
eval ac_res=\$$3 |
|
2012 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
2013 |
$as_echo "$ac_res" >&6; } |
|
2014 |
else |
|
2015 |
# Is the header compilable? |
|
2016 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
|
2017 |
$as_echo_n "checking $2 usability... " >&6; } |
|
2018 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
2019 |
/* end confdefs.h. */ |
|
2020 |
$4 |
|
2021 |
#include <$2> |
|
2022 |
_ACEOF |
|
2023 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
2024 |
ac_header_compiler=yes |
|
2025 |
else |
|
2026 |
ac_header_compiler=no |
|
2027 |
fi |
|
2028 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
2029 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
|
2030 |
$as_echo "$ac_header_compiler" >&6; } |
|
2031 |
||
2032 |
# Is the header present? |
|
2033 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
|
2034 |
$as_echo_n "checking $2 presence... " >&6; } |
|
2035 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
2036 |
/* end confdefs.h. */ |
|
2037 |
#include <$2> |
|
2038 |
_ACEOF |
|
2039 |
if ac_fn_c_try_cpp "$LINENO"; then : |
|
2040 |
ac_header_preproc=yes |
|
2041 |
else |
|
2042 |
ac_header_preproc=no |
|
2043 |
fi |
|
2044 |
rm -f conftest.err conftest.$ac_ext |
|
2045 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
|
2046 |
$as_echo "$ac_header_preproc" >&6; } |
|
2047 |
||
2048 |
# So? What about this header? |
|
2049 |
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
|
2050 |
yes:no: ) |
|
2051 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
2052 |
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
2053 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
2054 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
2055 |
;; |
|
2056 |
no:yes:* ) |
|
2057 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
|
2058 |
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
|
2059 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
|
2060 |
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
|
2061 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
|
2062 |
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
|
2063 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
|
2064 |
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
|
2065 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
2066 |
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
2067 |
( cat <<\_ASBOX |
|
2068 |
## --------------------------------- ## |
|
2069 |
## Report this to edam@waxworlds.org ## |
|
2070 |
## --------------------------------- ## |
|
2071 |
_ASBOX |
|
2072 |
) | sed "s/^/$as_me: WARNING: /" >&2 |
|
2073 |
;; |
|
2074 |
esac |
|
2075 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
2076 |
$as_echo_n "checking for $2... " >&6; } |
|
2077 |
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
|
2078 |
$as_echo_n "(cached) " >&6 |
|
2079 |
else |
|
2080 |
eval "$3=\$ac_header_compiler" |
|
2081 |
fi |
|
2082 |
eval ac_res=\$$3 |
|
2083 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
2084 |
$as_echo "$ac_res" >&6; } |
|
2085 |
fi |
|
2086 |
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
|
2087 |
||
2088 |
} # ac_fn_c_check_header_mongrel |
|
2089 |
cat >config.log <<_ACEOF |
|
2090 |
This file contains any messages produced by compilers while |
|
2091 |
running configure, to aid debugging if configure makes a mistake. |
|
2092 |
||
2093 |
It was created by sqlite3cc $as_me 0.1.0, which was |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
2094 |
generated by GNU Autoconf 2.65. Invocation command line was |
5
by edam
- updated README |
2095 |
|
2096 |
$ $0 $@ |
|
2097 |
||
2098 |
_ACEOF |
|
2099 |
exec 5>>config.log |
|
2100 |
{ |
|
2101 |
cat <<_ASUNAME |
|
2102 |
## --------- ## |
|
2103 |
## Platform. ## |
|
2104 |
## --------- ## |
|
2105 |
||
2106 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
2107 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
|
2108 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
|
2109 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
|
2110 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
|
2111 |
||
2112 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
|
2113 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
|
2114 |
||
2115 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
|
2116 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
|
2117 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
|
2118 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
|
2119 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
|
2120 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
|
2121 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
|
2122 |
||
2123 |
_ASUNAME |
|
2124 |
||
2125 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2126 |
for as_dir in $PATH |
|
2127 |
do |
|
2128 |
IFS=$as_save_IFS |
|
2129 |
test -z "$as_dir" && as_dir=. |
|
2130 |
$as_echo "PATH: $as_dir" |
|
2131 |
done |
|
2132 |
IFS=$as_save_IFS |
|
2133 |
||
2134 |
} >&5 |
|
2135 |
||
2136 |
cat >&5 <<_ACEOF |
|
2137 |
||
2138 |
||
2139 |
## ----------- ## |
|
2140 |
## Core tests. ## |
|
2141 |
## ----------- ## |
|
2142 |
||
2143 |
_ACEOF |
|
2144 |
||
2145 |
||
2146 |
# Keep a trace of the command line. |
|
2147 |
# Strip out --no-create and --no-recursion so they do not pile up. |
|
2148 |
# Strip out --silent because we don't want to record it for future runs. |
|
2149 |
# Also quote any args containing shell meta-characters. |
|
2150 |
# Make two passes to allow for proper duplicate-argument suppression. |
|
2151 |
ac_configure_args= |
|
2152 |
ac_configure_args0= |
|
2153 |
ac_configure_args1= |
|
2154 |
ac_must_keep_next=false |
|
2155 |
for ac_pass in 1 2 |
|
2156 |
do |
|
2157 |
for ac_arg |
|
2158 |
do |
|
2159 |
case $ac_arg in |
|
2160 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
|
2161 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
2162 |
| -silent | --silent | --silen | --sile | --sil) |
|
2163 |
continue ;; |
|
2164 |
*\'*) |
|
2165 |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
2166 |
esac |
|
2167 |
case $ac_pass in |
|
2168 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
|
2169 |
2) |
|
2170 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
|
2171 |
if test $ac_must_keep_next = true; then |
|
2172 |
ac_must_keep_next=false # Got value, back to normal. |
|
2173 |
else |
|
2174 |
case $ac_arg in |
|
2175 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
|
2176 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
|
2177 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
|
2178 |
| -with-* | --with-* | -without-* | --without-* | --x) |
|
2179 |
case "$ac_configure_args0 " in |
|
2180 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
|
2181 |
esac |
|
2182 |
;; |
|
2183 |
-* ) ac_must_keep_next=true ;; |
|
2184 |
esac |
|
2185 |
fi |
|
2186 |
as_fn_append ac_configure_args " '$ac_arg'" |
|
2187 |
;; |
|
2188 |
esac |
|
2189 |
done |
|
2190 |
done |
|
2191 |
{ ac_configure_args0=; unset ac_configure_args0;} |
|
2192 |
{ ac_configure_args1=; unset ac_configure_args1;} |
|
2193 |
||
2194 |
# When interrupted or exit'd, cleanup temporary files, and complete |
|
2195 |
# config.log. We remove comments because anyway the quotes in there |
|
2196 |
# would cause problems or look ugly. |
|
2197 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
|
2198 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
|
2199 |
trap 'exit_status=$? |
|
2200 |
# Save into config.log some information that might help in debugging. |
|
2201 |
{ |
|
2202 |
echo |
|
2203 |
||
2204 |
cat <<\_ASBOX |
|
2205 |
## ---------------- ## |
|
2206 |
## Cache variables. ## |
|
2207 |
## ---------------- ## |
|
2208 |
_ASBOX |
|
2209 |
echo |
|
2210 |
# The following way of writing the cache mishandles newlines in values, |
|
2211 |
( |
|
2212 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
|
2213 |
eval ac_val=\$$ac_var |
|
2214 |
case $ac_val in #( |
|
2215 |
*${as_nl}*) |
|
2216 |
case $ac_var in #( |
|
2217 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
|
2218 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
|
2219 |
esac |
|
2220 |
case $ac_var in #( |
|
2221 |
_ | IFS | as_nl) ;; #( |
|
2222 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
2223 |
*) { eval $ac_var=; unset $ac_var;} ;; |
|
2224 |
esac ;; |
|
2225 |
esac |
|
2226 |
done |
|
2227 |
(set) 2>&1 | |
|
2228 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
|
2229 |
*${as_nl}ac_space=\ *) |
|
2230 |
sed -n \ |
|
2231 |
"s/'\''/'\''\\\\'\'''\''/g; |
|
2232 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
|
2233 |
;; #( |
|
2234 |
*) |
|
2235 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|
2236 |
;; |
|
2237 |
esac | |
|
2238 |
sort |
|
2239 |
) |
|
2240 |
echo |
|
2241 |
||
2242 |
cat <<\_ASBOX |
|
2243 |
## ----------------- ## |
|
2244 |
## Output variables. ## |
|
2245 |
## ----------------- ## |
|
2246 |
_ASBOX |
|
2247 |
echo |
|
2248 |
for ac_var in $ac_subst_vars |
|
2249 |
do |
|
2250 |
eval ac_val=\$$ac_var |
|
2251 |
case $ac_val in |
|
2252 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
2253 |
esac |
|
2254 |
$as_echo "$ac_var='\''$ac_val'\''" |
|
2255 |
done | sort |
|
2256 |
echo |
|
2257 |
||
2258 |
if test -n "$ac_subst_files"; then |
|
2259 |
cat <<\_ASBOX |
|
2260 |
## ------------------- ## |
|
2261 |
## File substitutions. ## |
|
2262 |
## ------------------- ## |
|
2263 |
_ASBOX |
|
2264 |
echo |
|
2265 |
for ac_var in $ac_subst_files |
|
2266 |
do |
|
2267 |
eval ac_val=\$$ac_var |
|
2268 |
case $ac_val in |
|
2269 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
|
2270 |
esac |
|
2271 |
$as_echo "$ac_var='\''$ac_val'\''" |
|
2272 |
done | sort |
|
2273 |
echo |
|
2274 |
fi |
|
2275 |
||
2276 |
if test -s confdefs.h; then |
|
2277 |
cat <<\_ASBOX |
|
2278 |
## ----------- ## |
|
2279 |
## confdefs.h. ## |
|
2280 |
## ----------- ## |
|
2281 |
_ASBOX |
|
2282 |
echo |
|
2283 |
cat confdefs.h |
|
2284 |
echo |
|
2285 |
fi |
|
2286 |
test "$ac_signal" != 0 && |
|
2287 |
$as_echo "$as_me: caught signal $ac_signal" |
|
2288 |
$as_echo "$as_me: exit $exit_status" |
|
2289 |
} >&5 |
|
2290 |
rm -f core *.core core.conftest.* && |
|
2291 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
|
2292 |
exit $exit_status |
|
2293 |
' 0 |
|
2294 |
for ac_signal in 1 2 13 15; do |
|
2295 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
|
2296 |
done |
|
2297 |
ac_signal=0 |
|
2298 |
||
2299 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
|
2300 |
rm -f -r conftest* confdefs.h |
|
2301 |
||
2302 |
$as_echo "/* confdefs.h */" > confdefs.h |
|
2303 |
||
2304 |
# Predefined preprocessor variables. |
|
2305 |
||
2306 |
cat >>confdefs.h <<_ACEOF |
|
2307 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
|
2308 |
_ACEOF |
|
2309 |
||
2310 |
cat >>confdefs.h <<_ACEOF |
|
2311 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|
2312 |
_ACEOF |
|
2313 |
||
2314 |
cat >>confdefs.h <<_ACEOF |
|
2315 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
|
2316 |
_ACEOF |
|
2317 |
||
2318 |
cat >>confdefs.h <<_ACEOF |
|
2319 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
|
2320 |
_ACEOF |
|
2321 |
||
2322 |
cat >>confdefs.h <<_ACEOF |
|
2323 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|
2324 |
_ACEOF |
|
2325 |
||
2326 |
cat >>confdefs.h <<_ACEOF |
|
2327 |
#define PACKAGE_URL "$PACKAGE_URL" |
|
2328 |
_ACEOF |
|
2329 |
||
2330 |
||
2331 |
# Let the site file select an alternate cache file if it wants to. |
|
2332 |
# Prefer an explicitly selected file to automatically selected ones. |
|
2333 |
ac_site_file1=NONE |
|
2334 |
ac_site_file2=NONE |
|
2335 |
if test -n "$CONFIG_SITE"; then |
|
2336 |
ac_site_file1=$CONFIG_SITE |
|
2337 |
elif test "x$prefix" != xNONE; then |
|
2338 |
ac_site_file1=$prefix/share/config.site |
|
2339 |
ac_site_file2=$prefix/etc/config.site |
|
2340 |
else |
|
2341 |
ac_site_file1=$ac_default_prefix/share/config.site |
|
2342 |
ac_site_file2=$ac_default_prefix/etc/config.site |
|
2343 |
fi |
|
2344 |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
|
2345 |
do |
|
2346 |
test "x$ac_site_file" = xNONE && continue |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
2347 |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
5
by edam
- updated README |
2348 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2349 |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
|
2350 |
sed 's/^/| /' "$ac_site_file" >&5 |
|
2351 |
. "$ac_site_file" |
|
2352 |
fi |
|
2353 |
done |
|
2354 |
||
2355 |
if test -r "$cache_file"; then |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
2356 |
# Some versions of bash will fail to source /dev/null (special files |
2357 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
|
2358 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
|
5
by edam
- updated README |
2359 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2360 |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
|
2361 |
case $cache_file in |
|
2362 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
|
2363 |
*) . "./$cache_file";; |
|
2364 |
esac |
|
2365 |
fi |
|
2366 |
else |
|
2367 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
|
2368 |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
|
2369 |
>$cache_file |
|
2370 |
fi |
|
2371 |
||
2372 |
# Check that the precious variables saved in the cache have kept the same |
|
2373 |
# value. |
|
2374 |
ac_cache_corrupted=false |
|
2375 |
for ac_var in $ac_precious_vars; do |
|
2376 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
|
2377 |
eval ac_new_set=\$ac_env_${ac_var}_set |
|
2378 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
|
2379 |
eval ac_new_val=\$ac_env_${ac_var}_value |
|
2380 |
case $ac_old_set,$ac_new_set in |
|
2381 |
set,) |
|
2382 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
|
2383 |
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
|
2384 |
ac_cache_corrupted=: ;; |
|
2385 |
,set) |
|
2386 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
|
2387 |
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
|
2388 |
ac_cache_corrupted=: ;; |
|
2389 |
,);; |
|
2390 |
*) |
|
2391 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
|
2392 |
# differences in whitespace do not lead to failure. |
|
2393 |
ac_old_val_w=`echo x $ac_old_val` |
|
2394 |
ac_new_val_w=`echo x $ac_new_val` |
|
2395 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
|
2396 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
|
2397 |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
|
2398 |
ac_cache_corrupted=: |
|
2399 |
else |
|
2400 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
|
2401 |
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
|
2402 |
eval $ac_var=\$ac_old_val |
|
2403 |
fi |
|
2404 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
|
2405 |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
|
2406 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
|
2407 |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
|
2408 |
fi;; |
|
2409 |
esac |
|
2410 |
# Pass precious variables to config.status. |
|
2411 |
if test "$ac_new_set" = set; then |
|
2412 |
case $ac_new_val in |
|
2413 |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
2414 |
*) ac_arg=$ac_var=$ac_new_val ;; |
|
2415 |
esac |
|
2416 |
case " $ac_configure_args " in |
|
2417 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
|
2418 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
|
2419 |
esac |
|
2420 |
fi |
|
2421 |
done |
|
2422 |
if $ac_cache_corrupted; then |
|
2423 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
2424 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
2425 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
|
2426 |
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
|
2427 |
as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
|
2428 |
fi |
|
2429 |
## -------------------- ## |
|
2430 |
## Main body of script. ## |
|
2431 |
## -------------------- ## |
|
2432 |
||
2433 |
ac_ext=c |
|
2434 |
ac_cpp='$CPP $CPPFLAGS' |
|
2435 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
2436 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
2437 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
2438 |
||
2439 |
||
7
by edam
- removed "OK" from test-main when test is successful |
2440 |
LIBSQLITE3CC_INTERFACE=0:0:0 |
2441 |
||
5
by edam
- updated README |
2442 |
ac_aux_dir= |
2443 |
for ac_dir in build-aux "$srcdir"/build-aux; do |
|
2444 |
for ac_t in install-sh install.sh shtool; do |
|
2445 |
if test -f "$ac_dir/$ac_t"; then |
|
2446 |
ac_aux_dir=$ac_dir |
|
2447 |
ac_install_sh="$ac_aux_dir/$ac_t -c" |
|
2448 |
break 2 |
|
2449 |
fi |
|
2450 |
done |
|
2451 |
done |
|
2452 |
if test -z "$ac_aux_dir"; then |
|
2453 |
as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 |
|
2454 |
fi |
|
2455 |
||
2456 |
# These three variables are undocumented and unsupported, |
|
2457 |
# and are intended to be withdrawn in a future Autoconf release. |
|
2458 |
# They can cause serious problems if a builder's source tree is in a directory |
|
2459 |
# whose full name contains unusual characters. |
|
2460 |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
|
2461 |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
|
2462 |
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
|
2463 |
||
2464 |
||
2465 |
||
2466 |
am__api_version='1.11' |
|
2467 |
||
2468 |
# Find a good install program. We prefer a C program (faster), |
|
2469 |
# so one script is as good as another. But avoid the broken or |
|
2470 |
# incompatible versions: |
|
2471 |
# SysV /etc/install, /usr/sbin/install |
|
2472 |
# SunOS /usr/etc/install |
|
2473 |
# IRIX /sbin/install |
|
2474 |
# AIX /bin/install |
|
2475 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
|
2476 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
|
2477 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
|
2478 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
|
2479 |
# OS/2's system install, which has a completely different semantic |
|
2480 |
# ./install, which can be erroneously created by make from ./install.sh. |
|
2481 |
# Reject install programs that cannot install multiple files. |
|
2482 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
|
2483 |
$as_echo_n "checking for a BSD-compatible install... " >&6; } |
|
2484 |
if test -z "$INSTALL"; then |
|
2485 |
if test "${ac_cv_path_install+set}" = set; then : |
|
2486 |
$as_echo_n "(cached) " >&6 |
|
2487 |
else |
|
2488 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2489 |
for as_dir in $PATH |
|
2490 |
do |
|
2491 |
IFS=$as_save_IFS |
|
2492 |
test -z "$as_dir" && as_dir=. |
|
2493 |
# Account for people who put trailing slashes in PATH elements. |
|
2494 |
case $as_dir/ in #(( |
|
2495 |
./ | .// | /[cC]/* | \ |
|
2496 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
|
2497 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
|
2498 |
/usr/ucb/* ) ;; |
|
2499 |
*) |
|
2500 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
|
2501 |
# Don't use installbsd from OSF since it installs stuff as root |
|
2502 |
# by default. |
|
2503 |
for ac_prog in ginstall scoinst install; do |
|
2504 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2505 |
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
|
2506 |
if test $ac_prog = install && |
|
2507 |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
2508 |
# AIX install. It has an incompatible calling convention. |
|
2509 |
: |
|
2510 |
elif test $ac_prog = install && |
|
2511 |
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
|
2512 |
# program-specific install script used by HP pwplus--don't use. |
|
2513 |
: |
|
2514 |
else |
|
2515 |
rm -rf conftest.one conftest.two conftest.dir |
|
2516 |
echo one > conftest.one |
|
2517 |
echo two > conftest.two |
|
2518 |
mkdir conftest.dir |
|
2519 |
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
|
2520 |
test -s conftest.one && test -s conftest.two && |
|
2521 |
test -s conftest.dir/conftest.one && |
|
2522 |
test -s conftest.dir/conftest.two |
|
2523 |
then |
|
2524 |
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
|
2525 |
break 3 |
|
2526 |
fi |
|
2527 |
fi |
|
2528 |
fi |
|
2529 |
done |
|
2530 |
done |
|
2531 |
;; |
|
2532 |
esac |
|
2533 |
||
2534 |
done |
|
2535 |
IFS=$as_save_IFS |
|
2536 |
||
2537 |
rm -rf conftest.one conftest.two conftest.dir |
|
2538 |
||
2539 |
fi |
|
2540 |
if test "${ac_cv_path_install+set}" = set; then |
|
2541 |
INSTALL=$ac_cv_path_install |
|
2542 |
else |
|
2543 |
# As a last resort, use the slow shell script. Don't cache a |
|
2544 |
# value for INSTALL within a source directory, because that will |
|
2545 |
# break other packages using the cache if that directory is |
|
2546 |
# removed, or if the value is a relative name. |
|
2547 |
INSTALL=$ac_install_sh |
|
2548 |
fi |
|
2549 |
fi |
|
2550 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
|
2551 |
$as_echo "$INSTALL" >&6; } |
|
2552 |
||
2553 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
|
2554 |
# It thinks the first close brace ends the variable substitution. |
|
2555 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
|
2556 |
||
2557 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
|
2558 |
||
2559 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|
2560 |
||
2561 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
|
2562 |
$as_echo_n "checking whether build environment is sane... " >&6; } |
|
2563 |
# Just in case |
|
2564 |
sleep 1 |
|
2565 |
echo timestamp > conftest.file |
|
2566 |
# Reject unsafe characters in $srcdir or the absolute working directory |
|
2567 |
# name. Accept space and tab only in the latter. |
|
2568 |
am_lf=' |
|
2569 |
' |
|
2570 |
case `pwd` in |
|
2571 |
*[\\\"\#\$\&\'\`$am_lf]*) |
|
2572 |
as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; |
|
2573 |
esac |
|
2574 |
case $srcdir in |
|
2575 |
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
|
2576 |
as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
|
2577 |
esac |
|
2578 |
||
2579 |
# Do `set' in a subshell so we don't clobber the current shell's |
|
2580 |
# arguments. Must try -L first in case configure is actually a |
|
2581 |
# symlink; some systems play weird games with the mod time of symlinks |
|
2582 |
# (eg FreeBSD returns the mod time of the symlink's containing |
|
2583 |
# directory). |
|
2584 |
if ( |
|
2585 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
|
2586 |
if test "$*" = "X"; then |
|
2587 |
# -L didn't work. |
|
2588 |
set X `ls -t "$srcdir/configure" conftest.file` |
|
2589 |
fi |
|
2590 |
rm -f conftest.file |
|
2591 |
if test "$*" != "X $srcdir/configure conftest.file" \ |
|
2592 |
&& test "$*" != "X conftest.file $srcdir/configure"; then |
|
2593 |
||
2594 |
# If neither matched, then we have a broken ls. This can happen |
|
2595 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
|
2596 |
# broken ls alias from the environment. This has actually |
|
2597 |
# happened. Such a system could not be considered "sane". |
|
2598 |
as_fn_error "ls -t appears to fail. Make sure there is not a broken |
|
2599 |
alias in your environment" "$LINENO" 5 |
|
2600 |
fi |
|
2601 |
||
2602 |
test "$2" = conftest.file |
|
2603 |
) |
|
2604 |
then |
|
2605 |
# Ok. |
|
2606 |
: |
|
2607 |
else |
|
2608 |
as_fn_error "newly created file is older than distributed files! |
|
2609 |
Check your system clock" "$LINENO" 5 |
|
2610 |
fi |
|
2611 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
2612 |
$as_echo "yes" >&6; } |
|
2613 |
test "$program_prefix" != NONE && |
|
2614 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
|
2615 |
# Use a double $ so make ignores it. |
|
2616 |
test "$program_suffix" != NONE && |
|
2617 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
|
2618 |
# Double any \ or $. |
|
2619 |
# By default was `s,x,x', remove it if useless. |
|
2620 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
|
2621 |
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
|
2622 |
||
2623 |
# expand $ac_aux_dir to an absolute path |
|
2624 |
am_aux_dir=`cd $ac_aux_dir && pwd` |
|
2625 |
||
2626 |
if test x"${MISSING+set}" != xset; then |
|
2627 |
case $am_aux_dir in |
|
2628 |
*\ * | *\ *) |
|
2629 |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
|
2630 |
*) |
|
2631 |
MISSING="\${SHELL} $am_aux_dir/missing" ;; |
|
2632 |
esac |
|
2633 |
fi |
|
2634 |
# Use eval to expand $SHELL |
|
2635 |
if eval "$MISSING --run true"; then |
|
2636 |
am_missing_run="$MISSING --run " |
|
2637 |
else |
|
2638 |
am_missing_run= |
|
2639 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
|
2640 |
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
|
2641 |
fi |
|
2642 |
||
2643 |
if test x"${install_sh}" != xset; then |
|
2644 |
case $am_aux_dir in |
|
2645 |
*\ * | *\ *) |
|
2646 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
|
2647 |
*) |
|
2648 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
|
2649 |
esac |
|
2650 |
fi |
|
2651 |
||
2652 |
# Installed binaries are usually stripped using `strip' when the user |
|
2653 |
# run `make install-strip'. However `strip' might not be the right |
|
2654 |
# tool to use in cross-compilation environments, therefore Automake |
|
2655 |
# will honor the `STRIP' environment variable to overrule this program. |
|
2656 |
if test "$cross_compiling" != no; then |
|
2657 |
if test -n "$ac_tool_prefix"; then |
|
2658 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
2659 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
2660 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
2661 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
2662 |
if test "${ac_cv_prog_STRIP+set}" = set; then : |
|
2663 |
$as_echo_n "(cached) " >&6 |
|
2664 |
else |
|
2665 |
if test -n "$STRIP"; then |
|
2666 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
2667 |
else |
|
2668 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2669 |
for as_dir in $PATH |
|
2670 |
do |
|
2671 |
IFS=$as_save_IFS |
|
2672 |
test -z "$as_dir" && as_dir=. |
|
2673 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2674 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2675 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
2676 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2677 |
break 2 |
|
2678 |
fi |
|
2679 |
done |
|
2680 |
done |
|
2681 |
IFS=$as_save_IFS |
|
2682 |
||
2683 |
fi |
|
2684 |
fi |
|
2685 |
STRIP=$ac_cv_prog_STRIP |
|
2686 |
if test -n "$STRIP"; then |
|
2687 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
|
2688 |
$as_echo "$STRIP" >&6; } |
|
2689 |
else |
|
2690 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2691 |
$as_echo "no" >&6; } |
|
2692 |
fi |
|
2693 |
||
2694 |
||
2695 |
fi |
|
2696 |
if test -z "$ac_cv_prog_STRIP"; then |
|
2697 |
ac_ct_STRIP=$STRIP |
|
2698 |
# Extract the first word of "strip", so it can be a program name with args. |
|
2699 |
set dummy strip; ac_word=$2 |
|
2700 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
2701 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
2702 |
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
|
2703 |
$as_echo_n "(cached) " >&6 |
|
2704 |
else |
|
2705 |
if test -n "$ac_ct_STRIP"; then |
|
2706 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
2707 |
else |
|
2708 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2709 |
for as_dir in $PATH |
|
2710 |
do |
|
2711 |
IFS=$as_save_IFS |
|
2712 |
test -z "$as_dir" && as_dir=. |
|
2713 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2714 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2715 |
ac_cv_prog_ac_ct_STRIP="strip" |
|
2716 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2717 |
break 2 |
|
2718 |
fi |
|
2719 |
done |
|
2720 |
done |
|
2721 |
IFS=$as_save_IFS |
|
2722 |
||
2723 |
fi |
|
2724 |
fi |
|
2725 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
2726 |
if test -n "$ac_ct_STRIP"; then |
|
2727 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
|
2728 |
$as_echo "$ac_ct_STRIP" >&6; } |
|
2729 |
else |
|
2730 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2731 |
$as_echo "no" >&6; } |
|
2732 |
fi |
|
2733 |
||
2734 |
if test "x$ac_ct_STRIP" = x; then |
|
2735 |
STRIP=":" |
|
2736 |
else |
|
2737 |
case $cross_compiling:$ac_tool_warned in |
|
2738 |
yes:) |
|
2739 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
2740 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
2741 |
ac_tool_warned=yes ;; |
|
2742 |
esac |
|
2743 |
STRIP=$ac_ct_STRIP |
|
2744 |
fi |
|
2745 |
else |
|
2746 |
STRIP="$ac_cv_prog_STRIP" |
|
2747 |
fi |
|
2748 |
||
2749 |
fi |
|
2750 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
|
2751 |
||
2752 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
|
2753 |
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
|
2754 |
if test -z "$MKDIR_P"; then |
|
2755 |
if test "${ac_cv_path_mkdir+set}" = set; then : |
|
2756 |
$as_echo_n "(cached) " >&6 |
|
2757 |
else |
|
2758 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2759 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
|
2760 |
do |
|
2761 |
IFS=$as_save_IFS |
|
2762 |
test -z "$as_dir" && as_dir=. |
|
2763 |
for ac_prog in mkdir gmkdir; do |
|
2764 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2765 |
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
|
2766 |
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
|
2767 |
'mkdir (GNU coreutils) '* | \ |
|
2768 |
'mkdir (coreutils) '* | \ |
|
2769 |
'mkdir (fileutils) '4.1*) |
|
2770 |
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
|
2771 |
break 3;; |
|
2772 |
esac |
|
2773 |
done |
|
2774 |
done |
|
2775 |
done |
|
2776 |
IFS=$as_save_IFS |
|
2777 |
||
2778 |
fi |
|
2779 |
||
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
2780 |
test -d ./--version && rmdir ./--version |
5
by edam
- updated README |
2781 |
if test "${ac_cv_path_mkdir+set}" = set; then |
2782 |
MKDIR_P="$ac_cv_path_mkdir -p" |
|
2783 |
else |
|
2784 |
# As a last resort, use the slow shell script. Don't cache a |
|
2785 |
# value for MKDIR_P within a source directory, because that will |
|
2786 |
# break other packages using the cache if that directory is |
|
2787 |
# removed, or if the value is a relative name. |
|
2788 |
MKDIR_P="$ac_install_sh -d" |
|
2789 |
fi |
|
2790 |
fi |
|
2791 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
|
2792 |
$as_echo "$MKDIR_P" >&6; } |
|
2793 |
||
2794 |
mkdir_p="$MKDIR_P" |
|
2795 |
case $mkdir_p in |
|
2796 |
[\\/$]* | ?:[\\/]*) ;; |
|
2797 |
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
|
2798 |
esac |
|
2799 |
||
2800 |
for ac_prog in gawk mawk nawk awk |
|
2801 |
do |
|
2802 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
2803 |
set dummy $ac_prog; ac_word=$2 |
|
2804 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
2805 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
2806 |
if test "${ac_cv_prog_AWK+set}" = set; then : |
|
2807 |
$as_echo_n "(cached) " >&6 |
|
2808 |
else |
|
2809 |
if test -n "$AWK"; then |
|
2810 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
|
2811 |
else |
|
2812 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
2813 |
for as_dir in $PATH |
|
2814 |
do |
|
2815 |
IFS=$as_save_IFS |
|
2816 |
test -z "$as_dir" && as_dir=. |
|
2817 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
2818 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
2819 |
ac_cv_prog_AWK="$ac_prog" |
|
2820 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
2821 |
break 2 |
|
2822 |
fi |
|
2823 |
done |
|
2824 |
done |
|
2825 |
IFS=$as_save_IFS |
|
2826 |
||
2827 |
fi |
|
2828 |
fi |
|
2829 |
AWK=$ac_cv_prog_AWK |
|
2830 |
if test -n "$AWK"; then |
|
2831 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
|
2832 |
$as_echo "$AWK" >&6; } |
|
2833 |
else |
|
2834 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2835 |
$as_echo "no" >&6; } |
|
2836 |
fi |
|
2837 |
||
2838 |
||
2839 |
test -n "$AWK" && break |
|
2840 |
done |
|
2841 |
||
2842 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
|
2843 |
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
|
2844 |
set x ${MAKE-make} |
|
2845 |
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
|
2846 |
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
|
2847 |
$as_echo_n "(cached) " >&6 |
|
2848 |
else |
|
2849 |
cat >conftest.make <<\_ACEOF |
|
2850 |
SHELL = /bin/sh |
|
2851 |
all: |
|
2852 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
|
2853 |
_ACEOF |
|
2854 |
# GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
|
2855 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
|
2856 |
*@@@%%%=?*=@@@%%%*) |
|
2857 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
|
2858 |
*) |
|
2859 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
|
2860 |
esac |
|
2861 |
rm -f conftest.make |
|
2862 |
fi |
|
2863 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
|
2864 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
2865 |
$as_echo "yes" >&6; } |
|
2866 |
SET_MAKE= |
|
2867 |
else |
|
2868 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
2869 |
$as_echo "no" >&6; } |
|
2870 |
SET_MAKE="MAKE=${MAKE-make}" |
|
2871 |
fi |
|
2872 |
||
2873 |
rm -rf .tst 2>/dev/null |
|
2874 |
mkdir .tst 2>/dev/null |
|
2875 |
if test -d .tst; then |
|
2876 |
am__leading_dot=. |
|
2877 |
else |
|
2878 |
am__leading_dot=_ |
|
2879 |
fi |
|
2880 |
rmdir .tst 2>/dev/null |
|
2881 |
||
2882 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
|
2883 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
|
2884 |
# is not polluted with repeated "-I." |
|
2885 |
am__isrc=' -I$(srcdir)' |
|
2886 |
# test to see if srcdir already configured |
|
2887 |
if test -f $srcdir/config.status; then |
|
2888 |
as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
|
2889 |
fi |
|
2890 |
fi |
|
2891 |
||
2892 |
# test whether we have cygpath |
|
2893 |
if test -z "$CYGPATH_W"; then |
|
2894 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
|
2895 |
CYGPATH_W='cygpath -w' |
|
2896 |
else |
|
2897 |
CYGPATH_W=echo |
|
2898 |
fi |
|
2899 |
fi |
|
2900 |
||
2901 |
||
2902 |
# Define the identity of the package. |
|
2903 |
PACKAGE='sqlite3cc' |
|
2904 |
VERSION='0.1.0' |
|
2905 |
||
2906 |
||
2907 |
cat >>confdefs.h <<_ACEOF |
|
2908 |
#define PACKAGE "$PACKAGE" |
|
2909 |
_ACEOF |
|
2910 |
||
2911 |
||
2912 |
cat >>confdefs.h <<_ACEOF |
|
2913 |
#define VERSION "$VERSION" |
|
2914 |
_ACEOF |
|
2915 |
||
2916 |
# Some tools Automake needs. |
|
2917 |
||
2918 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
|
2919 |
||
2920 |
||
2921 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
|
2922 |
||
2923 |
||
2924 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
|
2925 |
||
2926 |
||
2927 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
|
2928 |
||
2929 |
||
2930 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
|
2931 |
||
2932 |
# We need awk for the "check" target. The system "awk" is bad on |
|
2933 |
# some platforms. |
|
2934 |
# Always define AMTAR for backward compatibility. |
|
2935 |
||
2936 |
AMTAR=${AMTAR-"${am_missing_run}tar"} |
|
2937 |
||
2938 |
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
|
2939 |
||
2940 |
||
2941 |
||
2942 |
||
2943 |
||
2944 |
||
2945 |
ac_config_headers="$ac_config_headers config.h" |
|
2946 |
||
6
by edam
- fixed .am files so the library gets built! |
2947 |
case `pwd` in |
2948 |
*\ * | *\ *) |
|
2949 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
|
2950 |
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
|
2951 |
esac |
|
2952 |
||
2953 |
||
2954 |
||
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
2955 |
macro_version='2.2.6b' |
2956 |
macro_revision='1.3017' |
|
6
by edam
- fixed .am files so the library gets built! |
2957 |
|
2958 |
||
2959 |
||
2960 |
||
2961 |
||
2962 |
||
2963 |
||
2964 |
||
2965 |
||
2966 |
||
2967 |
||
2968 |
||
2969 |
||
2970 |
ltmain="$ac_aux_dir/ltmain.sh" |
|
2971 |
||
2972 |
# Make sure we can run config.sub. |
|
2973 |
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
|
2974 |
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
|
2975 |
||
2976 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
|
2977 |
$as_echo_n "checking build system type... " >&6; } |
|
2978 |
if test "${ac_cv_build+set}" = set; then : |
|
2979 |
$as_echo_n "(cached) " >&6 |
|
2980 |
else |
|
2981 |
ac_build_alias=$build_alias |
|
2982 |
test "x$ac_build_alias" = x && |
|
2983 |
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
|
2984 |
test "x$ac_build_alias" = x && |
|
2985 |
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
|
2986 |
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
|
2987 |
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
|
2988 |
||
2989 |
fi |
|
2990 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
|
2991 |
$as_echo "$ac_cv_build" >&6; } |
|
2992 |
case $ac_cv_build in |
|
2993 |
*-*-*) ;; |
|
2994 |
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
|
2995 |
esac |
|
2996 |
build=$ac_cv_build |
|
2997 |
ac_save_IFS=$IFS; IFS='-' |
|
2998 |
set x $ac_cv_build |
|
2999 |
shift |
|
3000 |
build_cpu=$1 |
|
3001 |
build_vendor=$2 |
|
3002 |
shift; shift |
|
3003 |
# Remember, the first character of IFS is used to create $*, |
|
3004 |
# except with old shells: |
|
3005 |
build_os=$* |
|
3006 |
IFS=$ac_save_IFS |
|
3007 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
|
3008 |
||
3009 |
||
3010 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
|
3011 |
$as_echo_n "checking host system type... " >&6; } |
|
3012 |
if test "${ac_cv_host+set}" = set; then : |
|
3013 |
$as_echo_n "(cached) " >&6 |
|
3014 |
else |
|
3015 |
if test "x$host_alias" = x; then |
|
3016 |
ac_cv_host=$ac_cv_build |
|
3017 |
else |
|
3018 |
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
|
3019 |
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
|
3020 |
fi |
|
3021 |
||
3022 |
fi |
|
3023 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
|
3024 |
$as_echo "$ac_cv_host" >&6; } |
|
3025 |
case $ac_cv_host in |
|
3026 |
*-*-*) ;; |
|
3027 |
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
|
3028 |
esac |
|
3029 |
host=$ac_cv_host |
|
3030 |
ac_save_IFS=$IFS; IFS='-' |
|
3031 |
set x $ac_cv_host |
|
3032 |
shift |
|
3033 |
host_cpu=$1 |
|
3034 |
host_vendor=$2 |
|
3035 |
shift; shift |
|
3036 |
# Remember, the first character of IFS is used to create $*, |
|
3037 |
# except with old shells: |
|
3038 |
host_os=$* |
|
3039 |
IFS=$ac_save_IFS |
|
3040 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
|
3041 |
||
3042 |
||
3043 |
DEPDIR="${am__leading_dot}deps" |
|
3044 |
||
3045 |
ac_config_commands="$ac_config_commands depfiles" |
|
3046 |
||
3047 |
||
3048 |
am_make=${MAKE-make} |
|
3049 |
cat > confinc << 'END' |
|
3050 |
am__doit: |
|
3051 |
@echo this is the am__doit target |
|
3052 |
.PHONY: am__doit |
|
3053 |
END |
|
3054 |
# If we don't find an include directive, just comment out the code. |
|
3055 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
|
3056 |
$as_echo_n "checking for style of include used by $am_make... " >&6; } |
|
3057 |
am__include="#" |
|
3058 |
am__quote= |
|
3059 |
_am_result=none |
|
3060 |
# First try GNU make style include. |
|
3061 |
echo "include confinc" > confmf |
|
3062 |
# Ignore all kinds of additional output from `make'. |
|
3063 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
|
3064 |
*the\ am__doit\ target*) |
|
3065 |
am__include=include |
|
3066 |
am__quote= |
|
3067 |
_am_result=GNU |
|
3068 |
;; |
|
3069 |
esac |
|
3070 |
# Now try BSD make style include. |
|
3071 |
if test "$am__include" = "#"; then |
|
3072 |
echo '.include "confinc"' > confmf |
|
3073 |
case `$am_make -s -f confmf 2> /dev/null` in #( |
|
3074 |
*the\ am__doit\ target*) |
|
3075 |
am__include=.include |
|
3076 |
am__quote="\"" |
|
3077 |
_am_result=BSD |
|
3078 |
;; |
|
3079 |
esac |
|
3080 |
fi |
|
3081 |
||
3082 |
||
3083 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
|
3084 |
$as_echo "$_am_result" >&6; } |
|
3085 |
rm -f confinc confmf |
|
3086 |
||
3087 |
# Check whether --enable-dependency-tracking was given. |
|
3088 |
if test "${enable_dependency_tracking+set}" = set; then : |
|
3089 |
enableval=$enable_dependency_tracking; |
|
3090 |
fi |
|
3091 |
||
3092 |
if test "x$enable_dependency_tracking" != xno; then |
|
3093 |
am_depcomp="$ac_aux_dir/depcomp" |
|
3094 |
AMDEPBACKSLASH='\' |
|
3095 |
fi |
|
3096 |
if test "x$enable_dependency_tracking" != xno; then |
|
3097 |
AMDEP_TRUE= |
|
3098 |
AMDEP_FALSE='#' |
|
3099 |
else |
|
3100 |
AMDEP_TRUE='#' |
|
3101 |
AMDEP_FALSE= |
|
3102 |
fi |
|
3103 |
||
3104 |
||
3105 |
ac_ext=c |
|
3106 |
ac_cpp='$CPP $CPPFLAGS' |
|
3107 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3108 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3109 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3110 |
if test -n "$ac_tool_prefix"; then |
|
3111 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
|
3112 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
|
3113 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3114 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
3115 |
if test "${ac_cv_prog_CC+set}" = set; then : |
|
3116 |
$as_echo_n "(cached) " >&6 |
|
3117 |
else |
|
3118 |
if test -n "$CC"; then |
|
3119 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
3120 |
else |
|
3121 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3122 |
for as_dir in $PATH |
|
3123 |
do |
|
3124 |
IFS=$as_save_IFS |
|
3125 |
test -z "$as_dir" && as_dir=. |
|
3126 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3127 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
3128 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
|
3129 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3130 |
break 2 |
|
3131 |
fi |
|
3132 |
done |
|
3133 |
done |
|
3134 |
IFS=$as_save_IFS |
|
3135 |
||
3136 |
fi |
|
3137 |
fi |
|
3138 |
CC=$ac_cv_prog_CC |
|
3139 |
if test -n "$CC"; then |
|
3140 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
3141 |
$as_echo "$CC" >&6; } |
|
3142 |
else |
|
3143 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3144 |
$as_echo "no" >&6; } |
|
3145 |
fi |
|
3146 |
||
3147 |
||
3148 |
fi |
|
3149 |
if test -z "$ac_cv_prog_CC"; then |
|
3150 |
ac_ct_CC=$CC |
|
3151 |
# Extract the first word of "gcc", so it can be a program name with args. |
|
3152 |
set dummy gcc; ac_word=$2 |
|
3153 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3154 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
3155 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
|
3156 |
$as_echo_n "(cached) " >&6 |
|
3157 |
else |
|
3158 |
if test -n "$ac_ct_CC"; then |
|
3159 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
3160 |
else |
|
3161 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3162 |
for as_dir in $PATH |
|
3163 |
do |
|
3164 |
IFS=$as_save_IFS |
|
3165 |
test -z "$as_dir" && as_dir=. |
|
3166 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3167 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
3168 |
ac_cv_prog_ac_ct_CC="gcc" |
|
3169 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3170 |
break 2 |
|
3171 |
fi |
|
3172 |
done |
|
3173 |
done |
|
3174 |
IFS=$as_save_IFS |
|
3175 |
||
3176 |
fi |
|
3177 |
fi |
|
3178 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
3179 |
if test -n "$ac_ct_CC"; then |
|
3180 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
3181 |
$as_echo "$ac_ct_CC" >&6; } |
|
3182 |
else |
|
3183 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3184 |
$as_echo "no" >&6; } |
|
3185 |
fi |
|
3186 |
||
3187 |
if test "x$ac_ct_CC" = x; then |
|
3188 |
CC="" |
|
5
by edam
- updated README |
3189 |
else |
6
by edam
- fixed .am files so the library gets built! |
3190 |
case $cross_compiling:$ac_tool_warned in |
3191 |
yes:) |
|
3192 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
3193 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
3194 |
ac_tool_warned=yes ;; |
|
3195 |
esac |
|
3196 |
CC=$ac_ct_CC |
|
3197 |
fi |
|
3198 |
else |
|
3199 |
CC="$ac_cv_prog_CC" |
|
3200 |
fi |
|
3201 |
||
3202 |
if test -z "$CC"; then |
|
3203 |
if test -n "$ac_tool_prefix"; then |
|
3204 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
|
3205 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
|
3206 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3207 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
3208 |
if test "${ac_cv_prog_CC+set}" = set; then : |
|
3209 |
$as_echo_n "(cached) " >&6 |
|
3210 |
else |
|
3211 |
if test -n "$CC"; then |
|
3212 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
3213 |
else |
|
3214 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3215 |
for as_dir in $PATH |
|
3216 |
do |
|
3217 |
IFS=$as_save_IFS |
|
3218 |
test -z "$as_dir" && as_dir=. |
|
3219 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3220 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
3221 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
|
3222 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3223 |
break 2 |
|
3224 |
fi |
|
3225 |
done |
|
3226 |
done |
|
3227 |
IFS=$as_save_IFS |
|
3228 |
||
3229 |
fi |
|
3230 |
fi |
|
3231 |
CC=$ac_cv_prog_CC |
|
3232 |
if test -n "$CC"; then |
|
3233 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
3234 |
$as_echo "$CC" >&6; } |
|
3235 |
else |
|
3236 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3237 |
$as_echo "no" >&6; } |
|
3238 |
fi |
|
3239 |
||
3240 |
||
3241 |
fi |
|
3242 |
fi |
|
3243 |
if test -z "$CC"; then |
|
3244 |
# Extract the first word of "cc", so it can be a program name with args. |
|
3245 |
set dummy cc; ac_word=$2 |
|
3246 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3247 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
3248 |
if test "${ac_cv_prog_CC+set}" = set; then : |
|
3249 |
$as_echo_n "(cached) " >&6 |
|
3250 |
else |
|
3251 |
if test -n "$CC"; then |
|
3252 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
3253 |
else |
|
3254 |
ac_prog_rejected=no |
|
3255 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3256 |
for as_dir in $PATH |
|
3257 |
do |
|
3258 |
IFS=$as_save_IFS |
|
3259 |
test -z "$as_dir" && as_dir=. |
|
3260 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3261 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
3262 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
|
3263 |
ac_prog_rejected=yes |
|
3264 |
continue |
|
3265 |
fi |
|
3266 |
ac_cv_prog_CC="cc" |
|
3267 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
3268 |
break 2 |
|
3269 |
fi |
|
3270 |
done |
|
3271 |
done |
|
3272 |
IFS=$as_save_IFS |
|
3273 |
||
3274 |
if test $ac_prog_rejected = yes; then |
|
3275 |
# We found a bogon in the path, so make sure we never use it. |
|
3276 |
set dummy $ac_cv_prog_CC |
|
3277 |
shift |
|
3278 |
if test $# != 0; then |
|
3279 |
# We chose a different compiler from the bogus one. |
|
3280 |
# However, it has the same basename, so the bogon will be chosen |
|
3281 |
# first if we set CC to just the basename; use the full file name. |
|
3282 |
shift |
|
3283 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|
3284 |
fi |
|
3285 |
fi |
|
3286 |
fi |
|
3287 |
fi |
|
3288 |
CC=$ac_cv_prog_CC |
|
3289 |
if test -n "$CC"; then |
|
3290 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
3291 |
$as_echo "$CC" >&6; } |
|
3292 |
else |
|
3293 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3294 |
$as_echo "no" >&6; } |
|
3295 |
fi |
|
3296 |
||
3297 |
||
3298 |
fi |
|
3299 |
if test -z "$CC"; then |
|
3300 |
if test -n "$ac_tool_prefix"; then |
|
3301 |
for ac_prog in cl.exe |
|
5
by edam
- updated README |
3302 |
do |
3303 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
3304 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
3305 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3306 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6
by edam
- fixed .am files so the library gets built! |
3307 |
if test "${ac_cv_prog_CC+set}" = set; then : |
5
by edam
- updated README |
3308 |
$as_echo_n "(cached) " >&6 |
3309 |
else |
|
6
by edam
- fixed .am files so the library gets built! |
3310 |
if test -n "$CC"; then |
3311 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
|
5
by edam
- updated README |
3312 |
else |
3313 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3314 |
for as_dir in $PATH |
|
3315 |
do |
|
3316 |
IFS=$as_save_IFS |
|
3317 |
test -z "$as_dir" && as_dir=. |
|
3318 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3319 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6
by edam
- fixed .am files so the library gets built! |
3320 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
5
by edam
- updated README |
3321 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3322 |
break 2 |
|
3323 |
fi |
|
3324 |
done |
|
3325 |
done |
|
3326 |
IFS=$as_save_IFS |
|
3327 |
||
3328 |
fi |
|
3329 |
fi |
|
6
by edam
- fixed .am files so the library gets built! |
3330 |
CC=$ac_cv_prog_CC |
3331 |
if test -n "$CC"; then |
|
3332 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
3333 |
$as_echo "$CC" >&6; } |
|
5
by edam
- updated README |
3334 |
else |
3335 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3336 |
$as_echo "no" >&6; } |
|
3337 |
fi |
|
3338 |
||
3339 |
||
6
by edam
- fixed .am files so the library gets built! |
3340 |
test -n "$CC" && break |
5
by edam
- updated README |
3341 |
done |
3342 |
fi |
|
6
by edam
- fixed .am files so the library gets built! |
3343 |
if test -z "$CC"; then |
3344 |
ac_ct_CC=$CC |
|
3345 |
for ac_prog in cl.exe |
|
5
by edam
- updated README |
3346 |
do |
3347 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
3348 |
set dummy $ac_prog; ac_word=$2 |
|
3349 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
3350 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6
by edam
- fixed .am files so the library gets built! |
3351 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
5
by edam
- updated README |
3352 |
$as_echo_n "(cached) " >&6 |
3353 |
else |
|
6
by edam
- fixed .am files so the library gets built! |
3354 |
if test -n "$ac_ct_CC"; then |
3355 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
5
by edam
- updated README |
3356 |
else |
3357 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
3358 |
for as_dir in $PATH |
|
3359 |
do |
|
3360 |
IFS=$as_save_IFS |
|
3361 |
test -z "$as_dir" && as_dir=. |
|
3362 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
3363 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6
by edam
- fixed .am files so the library gets built! |
3364 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
5
by edam
- updated README |
3365 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3366 |
break 2 |
|
3367 |
fi |
|
3368 |
done |
|
3369 |
done |
|
3370 |
IFS=$as_save_IFS |
|
3371 |
||
3372 |
fi |
|
3373 |
fi |
|
6
by edam
- fixed .am files so the library gets built! |
3374 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3375 |
if test -n "$ac_ct_CC"; then |
|
3376 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
3377 |
$as_echo "$ac_ct_CC" >&6; } |
|
5
by edam
- updated README |
3378 |
else |
3379 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
3380 |
$as_echo "no" >&6; } |
|
3381 |
fi |
|
3382 |
||
3383 |
||
6
by edam
- fixed .am files so the library gets built! |
3384 |
test -n "$ac_ct_CC" && break |
5
by edam
- updated README |
3385 |
done |
3386 |
||
6
by edam
- fixed .am files so the library gets built! |
3387 |
if test "x$ac_ct_CC" = x; then |
3388 |
CC="" |
|
5
by edam
- updated README |
3389 |
else |
3390 |
case $cross_compiling:$ac_tool_warned in |
|
3391 |
yes:) |
|
3392 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
3393 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
3394 |
ac_tool_warned=yes ;; |
|
3395 |
esac |
|
6
by edam
- fixed .am files so the library gets built! |
3396 |
CC=$ac_ct_CC |
3397 |
fi |
|
3398 |
fi |
|
3399 |
||
3400 |
fi |
|
3401 |
||
3402 |
||
3403 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3404 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3405 |
as_fn_error "no acceptable C compiler found in \$PATH |
|
3406 |
See \`config.log' for more details." "$LINENO" 5; } |
|
3407 |
||
5
by edam
- updated README |
3408 |
# Provide some information about the compiler. |
6
by edam
- fixed .am files so the library gets built! |
3409 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
5
by edam
- updated README |
3410 |
set X $ac_compile |
3411 |
ac_compiler=$2 |
|
3412 |
for ac_option in --version -v -V -qversion; do |
|
3413 |
{ { ac_try="$ac_compiler $ac_option >&5" |
|
3414 |
case "(($ac_try" in |
|
3415 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3416 |
*) ac_try_echo=$ac_try;; |
|
3417 |
esac |
|
3418 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3419 |
$as_echo "$ac_try_echo"; } >&5 |
|
3420 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
|
3421 |
ac_status=$? |
|
3422 |
if test -s conftest.err; then |
|
3423 |
sed '10a\ |
|
3424 |
... rest of stderr output deleted ... |
|
3425 |
10q' conftest.err >conftest.er1 |
|
3426 |
cat conftest.er1 >&5 |
|
3427 |
fi |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
3428 |
rm -f conftest.er1 conftest.err |
5
by edam
- updated README |
3429 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3430 |
test $ac_status = 0; } |
|
3431 |
done |
|
3432 |
||
3433 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3434 |
/* end confdefs.h. */ |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
3435 |
|
5
by edam
- updated README |
3436 |
int |
3437 |
main () |
|
3438 |
{ |
|
3439 |
||
3440 |
; |
|
3441 |
return 0; |
|
3442 |
} |
|
3443 |
_ACEOF |
|
3444 |
ac_clean_files_save=$ac_clean_files |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
3445 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
5
by edam
- updated README |
3446 |
# Try to create an executable without -o first, disregard a.out. |
3447 |
# It will help us diagnose broken compilers, and finding out an intuition |
|
3448 |
# of exeext. |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
3449 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3450 |
$as_echo_n "checking whether the C compiler works... " >&6; } |
|
5
by edam
- updated README |
3451 |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3452 |
||
3453 |
# The possible output files: |
|
3454 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
|
3455 |
||
3456 |
ac_rmfiles= |
|
3457 |
for ac_file in $ac_files |
|
3458 |
do |
|
3459 |
case $ac_file in |
|
3460 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
3461 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
|
3462 |
esac |
|
3463 |
done |
|
3464 |
rm -f $ac_rmfiles |
|
3465 |
||
3466 |
if { { ac_try="$ac_link_default" |
|
3467 |
case "(($ac_try" in |
|
3468 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3469 |
*) ac_try_echo=$ac_try;; |
|
3470 |
esac |
|
3471 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3472 |
$as_echo "$ac_try_echo"; } >&5 |
|
3473 |
(eval "$ac_link_default") 2>&5 |
|
3474 |
ac_status=$? |
|
3475 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3476 |
test $ac_status = 0; }; then : |
|
3477 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
|
3478 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
|
3479 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
|
3480 |
# so that the user can short-circuit this test for compilers unknown to |
|
3481 |
# Autoconf. |
|
3482 |
for ac_file in $ac_files '' |
|
3483 |
do |
|
3484 |
test -f "$ac_file" || continue |
|
3485 |
case $ac_file in |
|
3486 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
|
3487 |
;; |
|
3488 |
[ab].out ) |
|
3489 |
# We found the default executable, but exeext='' is most |
|
3490 |
# certainly right. |
|
3491 |
break;; |
|
3492 |
*.* ) |
|
3493 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
|
3494 |
then :; else |
|
3495 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
3496 |
fi |
|
3497 |
# We set ac_cv_exeext here because the later test for it is not |
|
3498 |
# safe: cross compilers may not add the suffix if given an `-o' |
|
3499 |
# argument, so we may need to know it at that point already. |
|
3500 |
# Even if this section looks crufty: it has the advantage of |
|
3501 |
# actually working. |
|
3502 |
break;; |
|
3503 |
* ) |
|
3504 |
break;; |
|
3505 |
esac |
|
3506 |
done |
|
3507 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
|
3508 |
||
3509 |
else |
|
3510 |
ac_file='' |
|
3511 |
fi |
|
3512 |
if test -z "$ac_file"; then : |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
3513 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3514 |
$as_echo "no" >&6; } |
|
3515 |
$as_echo "$as_me: failed program was:" >&5 |
|
5
by edam
- updated README |
3516 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3517 |
||
3518 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3519 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3520 |
{ as_fn_set_status 77 |
|
6
by edam
- fixed .am files so the library gets built! |
3521 |
as_fn_error "C compiler cannot create executables |
5
by edam
- updated README |
3522 |
See \`config.log' for more details." "$LINENO" 5; }; } |
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
3523 |
else |
3524 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
3525 |
$as_echo "yes" >&6; } |
|
5
by edam
- updated README |
3526 |
fi |
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
3527 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3528 |
$as_echo_n "checking for C compiler default output file name... " >&6; } |
|
3529 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
|
3530 |
$as_echo "$ac_file" >&6; } |
|
5
by edam
- updated README |
3531 |
ac_exeext=$ac_cv_exeext |
3532 |
||
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
3533 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
5
by edam
- updated README |
3534 |
ac_clean_files=$ac_clean_files_save |
3535 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
|
3536 |
$as_echo_n "checking for suffix of executables... " >&6; } |
|
3537 |
if { { ac_try="$ac_link" |
|
3538 |
case "(($ac_try" in |
|
3539 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3540 |
*) ac_try_echo=$ac_try;; |
|
3541 |
esac |
|
3542 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3543 |
$as_echo "$ac_try_echo"; } >&5 |
|
3544 |
(eval "$ac_link") 2>&5 |
|
3545 |
ac_status=$? |
|
3546 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3547 |
test $ac_status = 0; }; then : |
|
3548 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
|
3549 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
|
3550 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
|
3551 |
# `rm'. |
|
3552 |
for ac_file in conftest.exe conftest conftest.*; do |
|
3553 |
test -f "$ac_file" || continue |
|
3554 |
case $ac_file in |
|
3555 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
|
3556 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
|
3557 |
break;; |
|
3558 |
* ) break;; |
|
3559 |
esac |
|
3560 |
done |
|
3561 |
else |
|
3562 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3563 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3564 |
as_fn_error "cannot compute suffix of executables: cannot compile and link |
|
3565 |
See \`config.log' for more details." "$LINENO" 5; } |
|
3566 |
fi |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
3567 |
rm -f conftest conftest$ac_cv_exeext |
5
by edam
- updated README |
3568 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
3569 |
$as_echo "$ac_cv_exeext" >&6; } |
|
3570 |
||
3571 |
rm -f conftest.$ac_ext |
|
3572 |
EXEEXT=$ac_cv_exeext |
|
3573 |
ac_exeext=$EXEEXT |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
3574 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3575 |
/* end confdefs.h. */ |
|
3576 |
#include <stdio.h> |
|
3577 |
int |
|
3578 |
main () |
|
3579 |
{ |
|
3580 |
FILE *f = fopen ("conftest.out", "w"); |
|
3581 |
return ferror (f) || fclose (f) != 0; |
|
3582 |
||
3583 |
; |
|
3584 |
return 0; |
|
3585 |
} |
|
3586 |
_ACEOF |
|
3587 |
ac_clean_files="$ac_clean_files conftest.out" |
|
3588 |
# Check that the compiler produces executables we can run. If not, either |
|
3589 |
# the compiler is broken, or we cross compile. |
|
3590 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
|
3591 |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
|
3592 |
if test "$cross_compiling" != yes; then |
|
3593 |
{ { ac_try="$ac_link" |
|
3594 |
case "(($ac_try" in |
|
3595 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3596 |
*) ac_try_echo=$ac_try;; |
|
3597 |
esac |
|
3598 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3599 |
$as_echo "$ac_try_echo"; } >&5 |
|
3600 |
(eval "$ac_link") 2>&5 |
|
3601 |
ac_status=$? |
|
3602 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3603 |
test $ac_status = 0; } |
|
3604 |
if { ac_try='./conftest$ac_cv_exeext' |
|
3605 |
{ { case "(($ac_try" in |
|
3606 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3607 |
*) ac_try_echo=$ac_try;; |
|
3608 |
esac |
|
3609 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3610 |
$as_echo "$ac_try_echo"; } >&5 |
|
3611 |
(eval "$ac_try") 2>&5 |
|
3612 |
ac_status=$? |
|
3613 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3614 |
test $ac_status = 0; }; }; then |
|
3615 |
cross_compiling=no |
|
3616 |
else |
|
3617 |
if test "$cross_compiling" = maybe; then |
|
3618 |
cross_compiling=yes |
|
3619 |
else |
|
3620 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3621 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3622 |
as_fn_error "cannot run C compiled programs. |
|
3623 |
If you meant to cross compile, use \`--host'. |
|
3624 |
See \`config.log' for more details." "$LINENO" 5; } |
|
3625 |
fi |
|
3626 |
fi |
|
3627 |
fi |
|
3628 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
|
3629 |
$as_echo "$cross_compiling" >&6; } |
|
3630 |
||
3631 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
|
3632 |
ac_clean_files=$ac_clean_files_save |
|
5
by edam
- updated README |
3633 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3634 |
$as_echo_n "checking for suffix of object files... " >&6; } |
|
3635 |
if test "${ac_cv_objext+set}" = set; then : |
|
3636 |
$as_echo_n "(cached) " >&6 |
|
3637 |
else |
|
3638 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3639 |
/* end confdefs.h. */ |
|
3640 |
||
3641 |
int |
|
3642 |
main () |
|
3643 |
{ |
|
3644 |
||
3645 |
; |
|
3646 |
return 0; |
|
3647 |
} |
|
3648 |
_ACEOF |
|
3649 |
rm -f conftest.o conftest.obj |
|
3650 |
if { { ac_try="$ac_compile" |
|
3651 |
case "(($ac_try" in |
|
3652 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
3653 |
*) ac_try_echo=$ac_try;; |
|
3654 |
esac |
|
3655 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
3656 |
$as_echo "$ac_try_echo"; } >&5 |
|
3657 |
(eval "$ac_compile") 2>&5 |
|
3658 |
ac_status=$? |
|
3659 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
3660 |
test $ac_status = 0; }; then : |
|
3661 |
for ac_file in conftest.o conftest.obj conftest.*; do |
|
3662 |
test -f "$ac_file" || continue; |
|
3663 |
case $ac_file in |
|
3664 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
|
3665 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
|
3666 |
break;; |
|
3667 |
esac |
|
3668 |
done |
|
3669 |
else |
|
3670 |
$as_echo "$as_me: failed program was:" >&5 |
|
3671 |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
3672 |
||
3673 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
3674 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
3675 |
as_fn_error "cannot compute suffix of object files: cannot compile |
|
3676 |
See \`config.log' for more details." "$LINENO" 5; } |
|
3677 |
fi |
|
3678 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
|
3679 |
fi |
|
3680 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
|
3681 |
$as_echo "$ac_cv_objext" >&6; } |
|
3682 |
OBJEXT=$ac_cv_objext |
|
3683 |
ac_objext=$OBJEXT |
|
3684 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
|
3685 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
|
3686 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
|
3687 |
$as_echo_n "(cached) " >&6 |
|
3688 |
else |
|
3689 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3690 |
/* end confdefs.h. */ |
|
3691 |
||
3692 |
int |
|
3693 |
main () |
|
3694 |
{ |
|
3695 |
#ifndef __GNUC__ |
|
3696 |
choke me |
|
3697 |
#endif |
|
3698 |
||
3699 |
; |
|
3700 |
return 0; |
|
3701 |
} |
|
3702 |
_ACEOF |
|
3703 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
3704 |
ac_compiler_gnu=yes |
|
3705 |
else |
|
3706 |
ac_compiler_gnu=no |
|
3707 |
fi |
|
3708 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3709 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
|
3710 |
||
3711 |
fi |
|
3712 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
|
3713 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
|
3714 |
if test $ac_compiler_gnu = yes; then |
|
3715 |
GCC=yes |
|
3716 |
else |
|
3717 |
GCC= |
|
3718 |
fi |
|
3719 |
ac_test_CFLAGS=${CFLAGS+set} |
|
3720 |
ac_save_CFLAGS=$CFLAGS |
|
3721 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
|
3722 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
|
3723 |
if test "${ac_cv_prog_cc_g+set}" = set; then : |
|
3724 |
$as_echo_n "(cached) " >&6 |
|
3725 |
else |
|
3726 |
ac_save_c_werror_flag=$ac_c_werror_flag |
|
3727 |
ac_c_werror_flag=yes |
|
3728 |
ac_cv_prog_cc_g=no |
|
3729 |
CFLAGS="-g" |
|
3730 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3731 |
/* end confdefs.h. */ |
|
3732 |
||
3733 |
int |
|
3734 |
main () |
|
3735 |
{ |
|
3736 |
||
3737 |
; |
|
3738 |
return 0; |
|
3739 |
} |
|
3740 |
_ACEOF |
|
3741 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
3742 |
ac_cv_prog_cc_g=yes |
|
3743 |
else |
|
3744 |
CFLAGS="" |
|
3745 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3746 |
/* end confdefs.h. */ |
|
3747 |
||
3748 |
int |
|
3749 |
main () |
|
3750 |
{ |
|
3751 |
||
3752 |
; |
|
3753 |
return 0; |
|
3754 |
} |
|
3755 |
_ACEOF |
|
3756 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
3757 |
||
3758 |
else |
|
3759 |
ac_c_werror_flag=$ac_save_c_werror_flag |
|
3760 |
CFLAGS="-g" |
|
3761 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3762 |
/* end confdefs.h. */ |
|
3763 |
||
3764 |
int |
|
3765 |
main () |
|
3766 |
{ |
|
3767 |
||
3768 |
; |
|
3769 |
return 0; |
|
3770 |
} |
|
3771 |
_ACEOF |
|
3772 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
3773 |
ac_cv_prog_cc_g=yes |
|
3774 |
fi |
|
3775 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3776 |
fi |
|
3777 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3778 |
fi |
|
3779 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
3780 |
ac_c_werror_flag=$ac_save_c_werror_flag |
|
3781 |
fi |
|
3782 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
|
3783 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
|
3784 |
if test "$ac_test_CFLAGS" = set; then |
|
3785 |
CFLAGS=$ac_save_CFLAGS |
|
3786 |
elif test $ac_cv_prog_cc_g = yes; then |
|
3787 |
if test "$GCC" = yes; then |
|
3788 |
CFLAGS="-g -O2" |
|
3789 |
else |
|
3790 |
CFLAGS="-g" |
|
3791 |
fi |
|
3792 |
else |
|
3793 |
if test "$GCC" = yes; then |
|
3794 |
CFLAGS="-O2" |
|
3795 |
else |
|
3796 |
CFLAGS= |
|
3797 |
fi |
|
3798 |
fi |
|
3799 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
|
3800 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
|
3801 |
if test "${ac_cv_prog_cc_c89+set}" = set; then : |
|
3802 |
$as_echo_n "(cached) " >&6 |
|
3803 |
else |
|
3804 |
ac_cv_prog_cc_c89=no |
|
3805 |
ac_save_CC=$CC |
|
3806 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
3807 |
/* end confdefs.h. */ |
|
3808 |
#include <stdarg.h> |
|
3809 |
#include <stdio.h> |
|
3810 |
#include <sys/types.h> |
|
3811 |
#include <sys/stat.h> |
|
3812 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
3813 |
struct buf { int x; }; |
|
3814 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
3815 |
static char *e (p, i) |
|
3816 |
char **p; |
|
3817 |
int i; |
|
3818 |
{ |
|
3819 |
return p[i]; |
|
3820 |
} |
|
3821 |
static char *f (char * (*g) (char **, int), char **p, ...) |
|
3822 |
{ |
|
3823 |
char *s; |
|
3824 |
va_list v; |
|
3825 |
va_start (v,p); |
|
3826 |
s = g (p, va_arg (v,int)); |
|
3827 |
va_end (v); |
|
3828 |
return s; |
|
3829 |
} |
|
3830 |
||
3831 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
3832 |
function prototypes and stuff, but not '\xHH' hex character constants. |
|
3833 |
These don't provoke an error unfortunately, instead are silently treated |
|
3834 |
as 'x'. The following induces an error, until -std is added to get |
|
3835 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
3836 |
array size at least. It's necessary to write '\x00'==0 to get something |
|
3837 |
that's true only with -std. */ |
|
3838 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
3839 |
||
3840 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
3841 |
inside strings and character constants. */ |
|
3842 |
#define FOO(x) 'x' |
|
3843 |
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|
3844 |
||
3845 |
int test (int i, double x); |
|
3846 |
struct s1 {int (*f) (int a);}; |
|
3847 |
struct s2 {int (*f) (double a);}; |
|
3848 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
3849 |
int argc; |
|
3850 |
char **argv; |
|
3851 |
int |
|
3852 |
main () |
|
3853 |
{ |
|
3854 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
3855 |
; |
|
3856 |
return 0; |
|
3857 |
} |
|
3858 |
_ACEOF |
|
3859 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
|
3860 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
3861 |
do |
|
3862 |
CC="$ac_save_CC $ac_arg" |
|
3863 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
3864 |
ac_cv_prog_cc_c89=$ac_arg |
|
3865 |
fi |
|
3866 |
rm -f core conftest.err conftest.$ac_objext |
|
3867 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
|
3868 |
done |
|
3869 |
rm -f conftest.$ac_ext |
|
3870 |
CC=$ac_save_CC |
|
3871 |
||
3872 |
fi |
|
3873 |
# AC_CACHE_VAL |
|
3874 |
case "x$ac_cv_prog_cc_c89" in |
|
3875 |
x) |
|
3876 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
3877 |
$as_echo "none needed" >&6; } ;; |
|
3878 |
xno) |
|
3879 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
3880 |
$as_echo "unsupported" >&6; } ;; |
|
3881 |
*) |
|
3882 |
CC="$CC $ac_cv_prog_cc_c89" |
|
3883 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
|
3884 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
|
3885 |
esac |
|
3886 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
|
3887 |
||
3888 |
fi |
|
3889 |
||
3890 |
ac_ext=c |
|
3891 |
ac_cpp='$CPP $CPPFLAGS' |
|
3892 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
3893 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
3894 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
3895 |
||
3896 |
depcc="$CC" am_compiler_list= |
|
3897 |
||
3898 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
|
3899 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
|
3900 |
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
|
3901 |
$as_echo_n "(cached) " >&6 |
|
3902 |
else |
|
3903 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
3904 |
# We make a subdir and do the tests there. Otherwise we can end up |
|
3905 |
# making bogus files that we don't know about and never remove. For |
|
3906 |
# instance it was reported that on HP-UX the gcc test will end up |
|
3907 |
# making a dummy file named `D' -- because `-MD' means `put the output |
|
3908 |
# in D'. |
|
3909 |
mkdir conftest.dir |
|
3910 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
|
3911 |
# using a relative directory. |
|
3912 |
cp "$am_depcomp" conftest.dir |
|
3913 |
cd conftest.dir |
|
3914 |
# We will build objects and dependencies in a subdirectory because |
|
3915 |
# it helps to detect inapplicable dependency modes. For instance |
|
3916 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
|
3917 |
# side effect of compilation, but ICC will put the dependencies in |
|
3918 |
# the current directory while Tru64 will put them in the object |
|
3919 |
# directory. |
|
3920 |
mkdir sub |
|
3921 |
||
3922 |
am_cv_CC_dependencies_compiler_type=none |
|
3923 |
if test "$am_compiler_list" = ""; then |
|
3924 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
|
3925 |
fi |
|
3926 |
am__universal=false |
|
3927 |
case " $depcc " in #( |
|
3928 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
|
3929 |
esac |
|
3930 |
||
3931 |
for depmode in $am_compiler_list; do |
|
3932 |
# Setup a source with many dependencies, because some compilers |
|
3933 |
# like to wrap large dependency lists on column 80 (with \), and |
|
3934 |
# we should not choose a depcomp mode which is confused by this. |
|
3935 |
# |
|
3936 |
# We need to recreate these files for each test, as the compiler may |
|
3937 |
# overwrite some of them when testing with obscure command lines. |
|
3938 |
# This happens at least with the AIX C compiler. |
|
3939 |
: > sub/conftest.c |
|
3940 |
for i in 1 2 3 4 5 6; do |
|
3941 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
3942 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
|
3943 |
# Solaris 8's {/usr,}/bin/sh. |
|
3944 |
touch sub/conftst$i.h |
|
3945 |
done |
|
3946 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
3947 |
||
3948 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
3949 |
# mode. It turns out that the SunPro C++ compiler does not properly |
|
3950 |
# handle `-M -o', and we need to detect this. Also, some Intel |
|
3951 |
# versions had trouble with output in subdirs |
|
3952 |
am__obj=sub/conftest.${OBJEXT-o} |
|
3953 |
am__minus_obj="-o $am__obj" |
|
3954 |
case $depmode in |
|
3955 |
gcc) |
|
3956 |
# This depmode causes a compiler race in universal mode. |
|
3957 |
test "$am__universal" = false || continue |
|
3958 |
;; |
|
3959 |
nosideeffect) |
|
3960 |
# after this tag, mechanisms are not by side-effect, so they'll |
|
3961 |
# only be used when explicitly requested |
|
3962 |
if test "x$enable_dependency_tracking" = xyes; then |
|
3963 |
continue |
|
3964 |
else |
|
3965 |
break |
|
3966 |
fi |
|
3967 |
;; |
|
3968 |
msvisualcpp | msvcmsys) |
|
3969 |
# This compiler won't grok `-c -o', but also, the minuso test has |
|
3970 |
# not run yet. These depmodes are late enough in the game, and |
|
3971 |
# so weak that their functioning should not be impacted. |
|
3972 |
am__obj=conftest.${OBJEXT-o} |
|
3973 |
am__minus_obj= |
|
3974 |
;; |
|
3975 |
none) break ;; |
|
3976 |
esac |
|
3977 |
if depmode=$depmode \ |
|
3978 |
source=sub/conftest.c object=$am__obj \ |
|
3979 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
3980 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
|
3981 |
>/dev/null 2>conftest.err && |
|
3982 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
|
3983 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
3984 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
|
3985 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
3986 |
# icc doesn't choke on unknown options, it will just issue warnings |
|
3987 |
# or remarks (even with -Werror). So we grep stderr for any message |
|
3988 |
# that says an option was ignored or not supported. |
|
3989 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
|
3990 |
# icc: Command line warning: ignoring option '-M'; no argument required |
|
3991 |
# The diagnosis changed in icc 8.0: |
|
3992 |
# icc: Command line remark: option '-MP' not supported |
|
3993 |
if (grep 'ignoring option' conftest.err || |
|
3994 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
3995 |
am_cv_CC_dependencies_compiler_type=$depmode |
|
3996 |
break |
|
3997 |
fi |
|
3998 |
fi |
|
3999 |
done |
|
4000 |
||
4001 |
cd .. |
|
4002 |
rm -rf conftest.dir |
|
4003 |
else |
|
4004 |
am_cv_CC_dependencies_compiler_type=none |
|
4005 |
fi |
|
4006 |
||
4007 |
fi |
|
4008 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
|
4009 |
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
|
4010 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
|
4011 |
||
4012 |
if |
|
4013 |
test "x$enable_dependency_tracking" != xno \ |
|
4014 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
|
4015 |
am__fastdepCC_TRUE= |
|
4016 |
am__fastdepCC_FALSE='#' |
|
4017 |
else |
|
4018 |
am__fastdepCC_TRUE='#' |
|
4019 |
am__fastdepCC_FALSE= |
|
4020 |
fi |
|
4021 |
||
4022 |
||
4023 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
|
4024 |
$as_echo_n "checking for a sed that does not truncate output... " >&6; } |
|
4025 |
if test "${ac_cv_path_SED+set}" = set; then : |
|
4026 |
$as_echo_n "(cached) " >&6 |
|
4027 |
else |
|
4028 |
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
|
4029 |
for ac_i in 1 2 3 4 5 6 7; do |
|
4030 |
ac_script="$ac_script$as_nl$ac_script" |
|
4031 |
done |
|
4032 |
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
|
4033 |
{ ac_script=; unset ac_script;} |
|
4034 |
if test -z "$SED"; then |
|
4035 |
ac_path_SED_found=false |
|
4036 |
# Loop through the user's path and test for each of PROGNAME-LIST |
|
4037 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4038 |
for as_dir in $PATH |
|
4039 |
do |
|
4040 |
IFS=$as_save_IFS |
|
4041 |
test -z "$as_dir" && as_dir=. |
|
4042 |
for ac_prog in sed gsed; do |
|
4043 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4044 |
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
|
4045 |
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
|
4046 |
# Check for GNU ac_path_SED and select it if it is found. |
|
4047 |
# Check for GNU $ac_path_SED |
|
4048 |
case `"$ac_path_SED" --version 2>&1` in |
|
4049 |
*GNU*) |
|
4050 |
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
|
4051 |
*) |
|
4052 |
ac_count=0 |
|
4053 |
$as_echo_n 0123456789 >"conftest.in" |
|
4054 |
while : |
|
4055 |
do |
|
4056 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
4057 |
mv "conftest.tmp" "conftest.in" |
|
4058 |
cp "conftest.in" "conftest.nl" |
|
4059 |
$as_echo '' >> "conftest.nl" |
|
4060 |
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
4061 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
4062 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
4063 |
if test $ac_count -gt ${ac_path_SED_max-0}; then |
|
4064 |
# Best one so far, save it but keep looking for a better one |
|
4065 |
ac_cv_path_SED="$ac_path_SED" |
|
4066 |
ac_path_SED_max=$ac_count |
|
4067 |
fi |
|
4068 |
# 10*(2^10) chars as input seems more than enough |
|
4069 |
test $ac_count -gt 10 && break |
|
4070 |
done |
|
4071 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
4072 |
esac |
|
4073 |
||
4074 |
$ac_path_SED_found && break 3 |
|
4075 |
done |
|
4076 |
done |
|
4077 |
done |
|
4078 |
IFS=$as_save_IFS |
|
4079 |
if test -z "$ac_cv_path_SED"; then |
|
4080 |
as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
|
4081 |
fi |
|
4082 |
else |
|
4083 |
ac_cv_path_SED=$SED |
|
4084 |
fi |
|
4085 |
||
4086 |
fi |
|
4087 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
|
4088 |
$as_echo "$ac_cv_path_SED" >&6; } |
|
4089 |
SED="$ac_cv_path_SED" |
|
4090 |
rm -f conftest.sed |
|
4091 |
||
4092 |
test -z "$SED" && SED=sed |
|
4093 |
Xsed="$SED -e 1s/^X//" |
|
4094 |
||
4095 |
||
4096 |
||
4097 |
||
4098 |
||
4099 |
||
4100 |
||
4101 |
||
4102 |
||
4103 |
||
4104 |
||
4105 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
|
4106 |
$as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
|
4107 |
if test "${ac_cv_path_GREP+set}" = set; then : |
|
4108 |
$as_echo_n "(cached) " >&6 |
|
4109 |
else |
|
4110 |
if test -z "$GREP"; then |
|
4111 |
ac_path_GREP_found=false |
|
4112 |
# Loop through the user's path and test for each of PROGNAME-LIST |
|
4113 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4114 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
4115 |
do |
|
4116 |
IFS=$as_save_IFS |
|
4117 |
test -z "$as_dir" && as_dir=. |
|
4118 |
for ac_prog in grep ggrep; do |
|
4119 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4120 |
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
|
4121 |
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
|
4122 |
# Check for GNU ac_path_GREP and select it if it is found. |
|
4123 |
# Check for GNU $ac_path_GREP |
|
4124 |
case `"$ac_path_GREP" --version 2>&1` in |
|
4125 |
*GNU*) |
|
4126 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|
4127 |
*) |
|
4128 |
ac_count=0 |
|
4129 |
$as_echo_n 0123456789 >"conftest.in" |
|
4130 |
while : |
|
4131 |
do |
|
4132 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
4133 |
mv "conftest.tmp" "conftest.in" |
|
4134 |
cp "conftest.in" "conftest.nl" |
|
4135 |
$as_echo 'GREP' >> "conftest.nl" |
|
4136 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
4137 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
4138 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
4139 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|
4140 |
# Best one so far, save it but keep looking for a better one |
|
4141 |
ac_cv_path_GREP="$ac_path_GREP" |
|
4142 |
ac_path_GREP_max=$ac_count |
|
4143 |
fi |
|
4144 |
# 10*(2^10) chars as input seems more than enough |
|
4145 |
test $ac_count -gt 10 && break |
|
4146 |
done |
|
4147 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
4148 |
esac |
|
4149 |
||
4150 |
$ac_path_GREP_found && break 3 |
|
4151 |
done |
|
4152 |
done |
|
4153 |
done |
|
4154 |
IFS=$as_save_IFS |
|
4155 |
if test -z "$ac_cv_path_GREP"; then |
|
4156 |
as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
4157 |
fi |
|
4158 |
else |
|
4159 |
ac_cv_path_GREP=$GREP |
|
4160 |
fi |
|
4161 |
||
4162 |
fi |
|
4163 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
|
4164 |
$as_echo "$ac_cv_path_GREP" >&6; } |
|
4165 |
GREP="$ac_cv_path_GREP" |
|
4166 |
||
4167 |
||
4168 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
|
4169 |
$as_echo_n "checking for egrep... " >&6; } |
|
4170 |
if test "${ac_cv_path_EGREP+set}" = set; then : |
|
4171 |
$as_echo_n "(cached) " >&6 |
|
4172 |
else |
|
4173 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|
4174 |
then ac_cv_path_EGREP="$GREP -E" |
|
4175 |
else |
|
4176 |
if test -z "$EGREP"; then |
|
4177 |
ac_path_EGREP_found=false |
|
4178 |
# Loop through the user's path and test for each of PROGNAME-LIST |
|
4179 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4180 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
4181 |
do |
|
4182 |
IFS=$as_save_IFS |
|
4183 |
test -z "$as_dir" && as_dir=. |
|
4184 |
for ac_prog in egrep; do |
|
4185 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4186 |
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
4187 |
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
|
4188 |
# Check for GNU ac_path_EGREP and select it if it is found. |
|
4189 |
# Check for GNU $ac_path_EGREP |
|
4190 |
case `"$ac_path_EGREP" --version 2>&1` in |
|
4191 |
*GNU*) |
|
4192 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|
4193 |
*) |
|
4194 |
ac_count=0 |
|
4195 |
$as_echo_n 0123456789 >"conftest.in" |
|
4196 |
while : |
|
4197 |
do |
|
4198 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
4199 |
mv "conftest.tmp" "conftest.in" |
|
4200 |
cp "conftest.in" "conftest.nl" |
|
4201 |
$as_echo 'EGREP' >> "conftest.nl" |
|
4202 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
4203 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
4204 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
4205 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|
4206 |
# Best one so far, save it but keep looking for a better one |
|
4207 |
ac_cv_path_EGREP="$ac_path_EGREP" |
|
4208 |
ac_path_EGREP_max=$ac_count |
|
4209 |
fi |
|
4210 |
# 10*(2^10) chars as input seems more than enough |
|
4211 |
test $ac_count -gt 10 && break |
|
4212 |
done |
|
4213 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
4214 |
esac |
|
4215 |
||
4216 |
$ac_path_EGREP_found && break 3 |
|
4217 |
done |
|
4218 |
done |
|
4219 |
done |
|
4220 |
IFS=$as_save_IFS |
|
4221 |
if test -z "$ac_cv_path_EGREP"; then |
|
4222 |
as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
4223 |
fi |
|
4224 |
else |
|
4225 |
ac_cv_path_EGREP=$EGREP |
|
4226 |
fi |
|
4227 |
||
4228 |
fi |
|
4229 |
fi |
|
4230 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
|
4231 |
$as_echo "$ac_cv_path_EGREP" >&6; } |
|
4232 |
EGREP="$ac_cv_path_EGREP" |
|
4233 |
||
4234 |
||
4235 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
|
4236 |
$as_echo_n "checking for fgrep... " >&6; } |
|
4237 |
if test "${ac_cv_path_FGREP+set}" = set; then : |
|
4238 |
$as_echo_n "(cached) " >&6 |
|
4239 |
else |
|
4240 |
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
|
4241 |
then ac_cv_path_FGREP="$GREP -F" |
|
4242 |
else |
|
4243 |
if test -z "$FGREP"; then |
|
4244 |
ac_path_FGREP_found=false |
|
4245 |
# Loop through the user's path and test for each of PROGNAME-LIST |
|
4246 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4247 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
4248 |
do |
|
4249 |
IFS=$as_save_IFS |
|
4250 |
test -z "$as_dir" && as_dir=. |
|
4251 |
for ac_prog in fgrep; do |
|
4252 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4253 |
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
4254 |
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
|
4255 |
# Check for GNU ac_path_FGREP and select it if it is found. |
|
4256 |
# Check for GNU $ac_path_FGREP |
|
4257 |
case `"$ac_path_FGREP" --version 2>&1` in |
|
4258 |
*GNU*) |
|
4259 |
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
|
4260 |
*) |
|
4261 |
ac_count=0 |
|
4262 |
$as_echo_n 0123456789 >"conftest.in" |
|
4263 |
while : |
|
4264 |
do |
|
4265 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
4266 |
mv "conftest.tmp" "conftest.in" |
|
4267 |
cp "conftest.in" "conftest.nl" |
|
4268 |
$as_echo 'FGREP' >> "conftest.nl" |
|
4269 |
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
4270 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
4271 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
4272 |
if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
|
4273 |
# Best one so far, save it but keep looking for a better one |
|
4274 |
ac_cv_path_FGREP="$ac_path_FGREP" |
|
4275 |
ac_path_FGREP_max=$ac_count |
|
4276 |
fi |
|
4277 |
# 10*(2^10) chars as input seems more than enough |
|
4278 |
test $ac_count -gt 10 && break |
|
4279 |
done |
|
4280 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
4281 |
esac |
|
4282 |
||
4283 |
$ac_path_FGREP_found && break 3 |
|
4284 |
done |
|
4285 |
done |
|
4286 |
done |
|
4287 |
IFS=$as_save_IFS |
|
4288 |
if test -z "$ac_cv_path_FGREP"; then |
|
4289 |
as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
4290 |
fi |
|
4291 |
else |
|
4292 |
ac_cv_path_FGREP=$FGREP |
|
4293 |
fi |
|
4294 |
||
4295 |
fi |
|
4296 |
fi |
|
4297 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
|
4298 |
$as_echo "$ac_cv_path_FGREP" >&6; } |
|
4299 |
FGREP="$ac_cv_path_FGREP" |
|
4300 |
||
4301 |
||
4302 |
test -z "$GREP" && GREP=grep |
|
4303 |
||
4304 |
||
4305 |
||
4306 |
||
4307 |
||
4308 |
||
4309 |
||
4310 |
||
4311 |
||
4312 |
||
4313 |
||
4314 |
||
4315 |
||
4316 |
||
4317 |
||
4318 |
||
4319 |
||
4320 |
||
4321 |
||
4322 |
# Check whether --with-gnu-ld was given. |
|
4323 |
if test "${with_gnu_ld+set}" = set; then : |
|
4324 |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
|
4325 |
else |
|
4326 |
with_gnu_ld=no |
|
4327 |
fi |
|
4328 |
||
4329 |
ac_prog=ld |
|
4330 |
if test "$GCC" = yes; then |
|
4331 |
# Check if gcc -print-prog-name=ld gives a path. |
|
4332 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
|
4333 |
$as_echo_n "checking for ld used by $CC... " >&6; } |
|
4334 |
case $host in |
|
4335 |
*-*-mingw*) |
|
4336 |
# gcc leaves a trailing carriage return which upsets mingw |
|
4337 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
4338 |
*) |
|
4339 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
4340 |
esac |
|
4341 |
case $ac_prog in |
|
4342 |
# Accept absolute paths. |
|
4343 |
[\\/]* | ?:[\\/]*) |
|
4344 |
re_direlt='/[^/][^/]*/\.\./' |
|
4345 |
# Canonicalize the pathname of ld |
|
4346 |
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
|
4347 |
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
|
4348 |
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
|
4349 |
done |
|
4350 |
test -z "$LD" && LD="$ac_prog" |
|
4351 |
;; |
|
4352 |
"") |
|
4353 |
# If it fails, then pretend we aren't using GCC. |
|
4354 |
ac_prog=ld |
|
4355 |
;; |
|
4356 |
*) |
|
4357 |
# If it is relative, then search for the first ld in PATH. |
|
4358 |
with_gnu_ld=unknown |
|
4359 |
;; |
|
4360 |
esac |
|
4361 |
elif test "$with_gnu_ld" = yes; then |
|
4362 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
|
4363 |
$as_echo_n "checking for GNU ld... " >&6; } |
|
4364 |
else |
|
4365 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
|
4366 |
$as_echo_n "checking for non-GNU ld... " >&6; } |
|
4367 |
fi |
|
4368 |
if test "${lt_cv_path_LD+set}" = set; then : |
|
4369 |
$as_echo_n "(cached) " >&6 |
|
4370 |
else |
|
4371 |
if test -z "$LD"; then |
|
4372 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
4373 |
for ac_dir in $PATH; do |
|
4374 |
IFS="$lt_save_ifs" |
|
4375 |
test -z "$ac_dir" && ac_dir=. |
|
4376 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
4377 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
|
4378 |
# Check to see if the program is GNU ld. I'd rather use --version, |
|
4379 |
# but apparently some variants of GNU ld only accept -v. |
|
4380 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
|
4381 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
|
4382 |
*GNU* | *'with BFD'*) |
|
4383 |
test "$with_gnu_ld" != no && break |
|
4384 |
;; |
|
4385 |
*) |
|
4386 |
test "$with_gnu_ld" != yes && break |
|
4387 |
;; |
|
4388 |
esac |
|
4389 |
fi |
|
4390 |
done |
|
4391 |
IFS="$lt_save_ifs" |
|
4392 |
else |
|
4393 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
4394 |
fi |
|
4395 |
fi |
|
4396 |
||
4397 |
LD="$lt_cv_path_LD" |
|
4398 |
if test -n "$LD"; then |
|
4399 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
|
4400 |
$as_echo "$LD" >&6; } |
|
4401 |
else |
|
4402 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4403 |
$as_echo "no" >&6; } |
|
4404 |
fi |
|
4405 |
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
|
4406 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
|
4407 |
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
|
4408 |
if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
|
4409 |
$as_echo_n "(cached) " >&6 |
|
4410 |
else |
|
4411 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
|
4412 |
case `$LD -v 2>&1 </dev/null` in |
|
4413 |
*GNU* | *'with BFD'*) |
|
4414 |
lt_cv_prog_gnu_ld=yes |
|
4415 |
;; |
|
4416 |
*) |
|
4417 |
lt_cv_prog_gnu_ld=no |
|
4418 |
;; |
|
4419 |
esac |
|
4420 |
fi |
|
4421 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
|
4422 |
$as_echo "$lt_cv_prog_gnu_ld" >&6; } |
|
4423 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
|
4424 |
||
4425 |
||
4426 |
||
4427 |
||
4428 |
||
4429 |
||
4430 |
||
4431 |
||
4432 |
||
4433 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
|
4434 |
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
|
4435 |
if test "${lt_cv_path_NM+set}" = set; then : |
|
4436 |
$as_echo_n "(cached) " >&6 |
|
4437 |
else |
|
4438 |
if test -n "$NM"; then |
|
4439 |
# Let the user override the test. |
|
4440 |
lt_cv_path_NM="$NM" |
|
4441 |
else |
|
4442 |
lt_nm_to_check="${ac_tool_prefix}nm" |
|
4443 |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
|
4444 |
lt_nm_to_check="$lt_nm_to_check nm" |
|
4445 |
fi |
|
4446 |
for lt_tmp_nm in $lt_nm_to_check; do |
|
4447 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
4448 |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
|
4449 |
IFS="$lt_save_ifs" |
|
4450 |
test -z "$ac_dir" && ac_dir=. |
|
4451 |
tmp_nm="$ac_dir/$lt_tmp_nm" |
|
4452 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
|
4453 |
# Check to see if the nm accepts a BSD-compat flag. |
|
4454 |
# Adding the `sed 1q' prevents false positives on HP-UX, which says: |
|
4455 |
# nm: unknown option "B" ignored |
|
4456 |
# Tru64's nm complains that /dev/null is an invalid object file |
|
4457 |
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
|
4458 |
*/dev/null* | *'Invalid file or object type'*) |
|
4459 |
lt_cv_path_NM="$tmp_nm -B" |
|
4460 |
break |
|
4461 |
;; |
|
4462 |
*) |
|
4463 |
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
|
4464 |
*/dev/null*) |
|
4465 |
lt_cv_path_NM="$tmp_nm -p" |
|
4466 |
break |
|
4467 |
;; |
|
4468 |
*) |
|
4469 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
|
4470 |
continue # so that we can try to find one that supports BSD flags |
|
4471 |
;; |
|
4472 |
esac |
|
4473 |
;; |
|
4474 |
esac |
|
4475 |
fi |
|
4476 |
done |
|
4477 |
IFS="$lt_save_ifs" |
|
4478 |
done |
|
4479 |
: ${lt_cv_path_NM=no} |
|
4480 |
fi |
|
4481 |
fi |
|
4482 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
|
4483 |
$as_echo "$lt_cv_path_NM" >&6; } |
|
4484 |
if test "$lt_cv_path_NM" != "no"; then |
|
4485 |
NM="$lt_cv_path_NM" |
|
4486 |
else |
|
4487 |
# Didn't find any BSD compatible name lister, look for dumpbin. |
|
4488 |
if test -n "$ac_tool_prefix"; then |
|
4489 |
for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
|
4490 |
do |
|
4491 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
4492 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
4493 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4494 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
4495 |
if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
|
4496 |
$as_echo_n "(cached) " >&6 |
|
4497 |
else |
|
4498 |
if test -n "$DUMPBIN"; then |
|
4499 |
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
|
4500 |
else |
|
4501 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4502 |
for as_dir in $PATH |
|
4503 |
do |
|
4504 |
IFS=$as_save_IFS |
|
4505 |
test -z "$as_dir" && as_dir=. |
|
4506 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4507 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
4508 |
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
|
4509 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4510 |
break 2 |
|
4511 |
fi |
|
4512 |
done |
|
4513 |
done |
|
4514 |
IFS=$as_save_IFS |
|
4515 |
||
4516 |
fi |
|
4517 |
fi |
|
4518 |
DUMPBIN=$ac_cv_prog_DUMPBIN |
|
4519 |
if test -n "$DUMPBIN"; then |
|
4520 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
|
4521 |
$as_echo "$DUMPBIN" >&6; } |
|
4522 |
else |
|
4523 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4524 |
$as_echo "no" >&6; } |
|
4525 |
fi |
|
4526 |
||
4527 |
||
4528 |
test -n "$DUMPBIN" && break |
|
4529 |
done |
|
4530 |
fi |
|
4531 |
if test -z "$DUMPBIN"; then |
|
4532 |
ac_ct_DUMPBIN=$DUMPBIN |
|
4533 |
for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
|
4534 |
do |
|
4535 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
4536 |
set dummy $ac_prog; ac_word=$2 |
|
4537 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4538 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
4539 |
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
|
4540 |
$as_echo_n "(cached) " >&6 |
|
4541 |
else |
|
4542 |
if test -n "$ac_ct_DUMPBIN"; then |
|
4543 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
|
4544 |
else |
|
4545 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4546 |
for as_dir in $PATH |
|
4547 |
do |
|
4548 |
IFS=$as_save_IFS |
|
4549 |
test -z "$as_dir" && as_dir=. |
|
4550 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4551 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
4552 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
|
4553 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4554 |
break 2 |
|
4555 |
fi |
|
4556 |
done |
|
4557 |
done |
|
4558 |
IFS=$as_save_IFS |
|
4559 |
||
4560 |
fi |
|
4561 |
fi |
|
4562 |
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
|
4563 |
if test -n "$ac_ct_DUMPBIN"; then |
|
4564 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
|
4565 |
$as_echo "$ac_ct_DUMPBIN" >&6; } |
|
4566 |
else |
|
4567 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4568 |
$as_echo "no" >&6; } |
|
4569 |
fi |
|
4570 |
||
4571 |
||
4572 |
test -n "$ac_ct_DUMPBIN" && break |
|
4573 |
done |
|
4574 |
||
4575 |
if test "x$ac_ct_DUMPBIN" = x; then |
|
4576 |
DUMPBIN=":" |
|
4577 |
else |
|
4578 |
case $cross_compiling:$ac_tool_warned in |
|
4579 |
yes:) |
|
4580 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
4581 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
4582 |
ac_tool_warned=yes ;; |
|
4583 |
esac |
|
4584 |
DUMPBIN=$ac_ct_DUMPBIN |
|
4585 |
fi |
|
4586 |
fi |
|
4587 |
||
4588 |
||
4589 |
if test "$DUMPBIN" != ":"; then |
|
4590 |
NM="$DUMPBIN" |
|
4591 |
fi |
|
4592 |
fi |
|
4593 |
test -z "$NM" && NM=nm |
|
4594 |
||
4595 |
||
4596 |
||
4597 |
||
4598 |
||
4599 |
||
4600 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
|
4601 |
$as_echo_n "checking the name lister ($NM) interface... " >&6; } |
|
4602 |
if test "${lt_cv_nm_interface+set}" = set; then : |
|
4603 |
$as_echo_n "(cached) " >&6 |
|
4604 |
else |
|
4605 |
lt_cv_nm_interface="BSD nm" |
|
4606 |
echo "int some_variable = 0;" > conftest.$ac_ext |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
4607 |
(eval echo "\"\$as_me:4607: $ac_compile\"" >&5) |
5
by edam
- updated README |
4608 |
(eval "$ac_compile" 2>conftest.err) |
4609 |
cat conftest.err >&5 |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
4610 |
(eval echo "\"\$as_me:4610: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
5
by edam
- updated README |
4611 |
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4612 |
cat conftest.err >&5 |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
4613 |
(eval echo "\"\$as_me:4613: output\"" >&5) |
5
by edam
- updated README |
4614 |
cat conftest.out >&5 |
4615 |
if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
|
4616 |
lt_cv_nm_interface="MS dumpbin" |
|
4617 |
fi |
|
4618 |
rm -f conftest* |
|
4619 |
fi |
|
4620 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
|
4621 |
$as_echo "$lt_cv_nm_interface" >&6; } |
|
4622 |
||
4623 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
|
4624 |
$as_echo_n "checking whether ln -s works... " >&6; } |
|
4625 |
LN_S=$as_ln_s |
|
4626 |
if test "$LN_S" = "ln -s"; then |
|
4627 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
4628 |
$as_echo "yes" >&6; } |
|
4629 |
else |
|
4630 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
|
4631 |
$as_echo "no, using $LN_S" >&6; } |
|
4632 |
fi |
|
4633 |
||
4634 |
# find the maximum length of command line arguments |
|
4635 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
|
4636 |
$as_echo_n "checking the maximum length of command line arguments... " >&6; } |
|
4637 |
if test "${lt_cv_sys_max_cmd_len+set}" = set; then : |
|
4638 |
$as_echo_n "(cached) " >&6 |
|
4639 |
else |
|
4640 |
i=0 |
|
4641 |
teststring="ABCD" |
|
4642 |
||
4643 |
case $build_os in |
|
4644 |
msdosdjgpp*) |
|
4645 |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
|
4646 |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
|
4647 |
# during glob expansion). Even if it were fixed, the result of this |
|
4648 |
# check would be larger than it should be. |
|
4649 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
|
4650 |
;; |
|
4651 |
||
4652 |
gnu*) |
|
4653 |
# Under GNU Hurd, this test is not required because there is |
|
4654 |
# no limit to the length of command line arguments. |
|
4655 |
# Libtool will interpret -1 as no limit whatsoever |
|
4656 |
lt_cv_sys_max_cmd_len=-1; |
|
4657 |
;; |
|
4658 |
||
4659 |
cygwin* | mingw* | cegcc*) |
|
4660 |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
|
4661 |
# about 5 minutes as the teststring grows exponentially. |
|
4662 |
# Worse, since 9x/ME are not pre-emptively multitasking, |
|
4663 |
# you end up with a "frozen" computer, even though with patience |
|
4664 |
# the test eventually succeeds (with a max line length of 256k). |
|
4665 |
# Instead, let's just punt: use the minimum linelength reported by |
|
4666 |
# all of the supported platforms: 8192 (on NT/2K/XP). |
|
4667 |
lt_cv_sys_max_cmd_len=8192; |
|
4668 |
;; |
|
4669 |
||
4670 |
amigaos*) |
|
4671 |
# On AmigaOS with pdksh, this test takes hours, literally. |
|
4672 |
# So we just punt and use a minimum line length of 8192. |
|
4673 |
lt_cv_sys_max_cmd_len=8192; |
|
4674 |
;; |
|
4675 |
||
4676 |
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
|
4677 |
# This has been around since 386BSD, at least. Likely further. |
|
4678 |
if test -x /sbin/sysctl; then |
|
4679 |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
|
4680 |
elif test -x /usr/sbin/sysctl; then |
|
4681 |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
|
4682 |
else |
|
4683 |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
|
4684 |
fi |
|
4685 |
# And add a safety zone |
|
4686 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
|
4687 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
|
4688 |
;; |
|
4689 |
||
4690 |
interix*) |
|
4691 |
# We know the value 262144 and hardcode it with a safety zone (like BSD) |
|
4692 |
lt_cv_sys_max_cmd_len=196608 |
|
4693 |
;; |
|
4694 |
||
4695 |
osf*) |
|
4696 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
|
4697 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
|
4698 |
# nice to cause kernel panics so lets avoid the loop below. |
|
4699 |
# First set a reasonable default. |
|
4700 |
lt_cv_sys_max_cmd_len=16384 |
|
4701 |
# |
|
4702 |
if test -x /sbin/sysconfig; then |
|
4703 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
|
4704 |
*1*) lt_cv_sys_max_cmd_len=-1 ;; |
|
4705 |
esac |
|
4706 |
fi |
|
4707 |
;; |
|
4708 |
sco3.2v5*) |
|
4709 |
lt_cv_sys_max_cmd_len=102400 |
|
4710 |
;; |
|
4711 |
sysv5* | sco5v6* | sysv4.2uw2*) |
|
4712 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
|
4713 |
if test -n "$kargmax"; then |
|
4714 |
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
|
4715 |
else |
|
4716 |
lt_cv_sys_max_cmd_len=32768 |
|
4717 |
fi |
|
4718 |
;; |
|
4719 |
*) |
|
4720 |
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
|
4721 |
if test -n "$lt_cv_sys_max_cmd_len"; then |
|
4722 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
|
4723 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
|
4724 |
else |
|
4725 |
# Make teststring a little bigger before we do anything with it. |
|
4726 |
# a 1K string should be a reasonable start. |
|
4727 |
for i in 1 2 3 4 5 6 7 8 ; do |
|
4728 |
teststring=$teststring$teststring |
|
4729 |
done |
|
4730 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
|
4731 |
# If test is not a shell built-in, we'll probably end up computing a |
|
4732 |
# maximum length that is only half of the actual maximum length, but |
|
4733 |
# we can't tell. |
|
4734 |
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
|
4735 |
= "XX$teststring$teststring"; } >/dev/null 2>&1 && |
|
4736 |
test $i != 17 # 1/2 MB should be enough |
|
4737 |
do |
|
4738 |
i=`expr $i + 1` |
|
4739 |
teststring=$teststring$teststring |
|
4740 |
done |
|
4741 |
# Only check the string length outside the loop. |
|
4742 |
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
|
4743 |
teststring= |
|
4744 |
# Add a significant safety factor because C++ compilers can tack on |
|
4745 |
# massive amounts of additional arguments before passing them to the |
|
4746 |
# linker. It appears as though 1/2 is a usable value. |
|
4747 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
|
4748 |
fi |
|
4749 |
;; |
|
4750 |
esac |
|
4751 |
||
4752 |
fi |
|
4753 |
||
4754 |
if test -n $lt_cv_sys_max_cmd_len ; then |
|
4755 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
|
4756 |
$as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
|
4757 |
else |
|
4758 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
|
4759 |
$as_echo "none" >&6; } |
|
4760 |
fi |
|
4761 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
|
4762 |
||
4763 |
||
4764 |
||
4765 |
||
4766 |
||
4767 |
||
4768 |
: ${CP="cp -f"} |
|
4769 |
: ${MV="mv -f"} |
|
4770 |
: ${RM="rm -f"} |
|
4771 |
||
4772 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
|
4773 |
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
|
4774 |
# Try some XSI features |
|
4775 |
xsi_shell=no |
|
4776 |
( _lt_dummy="a/b/c" |
|
4777 |
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
|
4778 |
= c,a/b,, \ |
|
4779 |
&& eval 'test $(( 1 + 1 )) -eq 2 \ |
|
4780 |
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
|
4781 |
&& xsi_shell=yes |
|
4782 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
|
4783 |
$as_echo "$xsi_shell" >&6; } |
|
4784 |
||
4785 |
||
4786 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
|
4787 |
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
|
4788 |
lt_shell_append=no |
|
4789 |
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
|
4790 |
>/dev/null 2>&1 \ |
|
4791 |
&& lt_shell_append=yes |
|
4792 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
|
4793 |
$as_echo "$lt_shell_append" >&6; } |
|
4794 |
||
4795 |
||
4796 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
|
4797 |
lt_unset=unset |
|
4798 |
else |
|
4799 |
lt_unset=false |
|
4800 |
fi |
|
4801 |
||
4802 |
||
4803 |
||
4804 |
||
4805 |
||
4806 |
# test EBCDIC or ASCII |
|
4807 |
case `echo X|tr X '\101'` in |
|
4808 |
A) # ASCII based system |
|
4809 |
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
|
4810 |
lt_SP2NL='tr \040 \012' |
|
4811 |
lt_NL2SP='tr \015\012 \040\040' |
|
4812 |
;; |
|
4813 |
*) # EBCDIC based system |
|
4814 |
lt_SP2NL='tr \100 \n' |
|
4815 |
lt_NL2SP='tr \r\n \100\100' |
|
4816 |
;; |
|
4817 |
esac |
|
4818 |
||
4819 |
||
4820 |
||
4821 |
||
4822 |
||
4823 |
||
4824 |
||
4825 |
||
4826 |
||
4827 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
|
4828 |
$as_echo_n "checking for $LD option to reload object files... " >&6; } |
|
4829 |
if test "${lt_cv_ld_reload_flag+set}" = set; then : |
|
4830 |
$as_echo_n "(cached) " >&6 |
|
4831 |
else |
|
4832 |
lt_cv_ld_reload_flag='-r' |
|
4833 |
fi |
|
4834 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
|
4835 |
$as_echo "$lt_cv_ld_reload_flag" >&6; } |
|
4836 |
reload_flag=$lt_cv_ld_reload_flag |
|
4837 |
case $reload_flag in |
|
4838 |
"" | " "*) ;; |
|
4839 |
*) reload_flag=" $reload_flag" ;; |
|
4840 |
esac |
|
4841 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
4842 |
case $host_os in |
|
4843 |
darwin*) |
|
4844 |
if test "$GCC" = yes; then |
|
4845 |
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
|
4846 |
else |
|
4847 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
|
4848 |
fi |
|
4849 |
;; |
|
4850 |
esac |
|
4851 |
||
4852 |
||
4853 |
||
4854 |
||
4855 |
||
4856 |
||
4857 |
||
4858 |
||
4859 |
||
4860 |
if test -n "$ac_tool_prefix"; then |
|
4861 |
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
|
4862 |
set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
|
4863 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4864 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
4865 |
if test "${ac_cv_prog_OBJDUMP+set}" = set; then : |
|
4866 |
$as_echo_n "(cached) " >&6 |
|
4867 |
else |
|
4868 |
if test -n "$OBJDUMP"; then |
|
4869 |
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
|
4870 |
else |
|
4871 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4872 |
for as_dir in $PATH |
|
4873 |
do |
|
4874 |
IFS=$as_save_IFS |
|
4875 |
test -z "$as_dir" && as_dir=. |
|
4876 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4877 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
4878 |
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
|
4879 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4880 |
break 2 |
|
4881 |
fi |
|
4882 |
done |
|
4883 |
done |
|
4884 |
IFS=$as_save_IFS |
|
4885 |
||
4886 |
fi |
|
4887 |
fi |
|
4888 |
OBJDUMP=$ac_cv_prog_OBJDUMP |
|
4889 |
if test -n "$OBJDUMP"; then |
|
4890 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
|
4891 |
$as_echo "$OBJDUMP" >&6; } |
|
4892 |
else |
|
4893 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4894 |
$as_echo "no" >&6; } |
|
4895 |
fi |
|
4896 |
||
4897 |
||
4898 |
fi |
|
4899 |
if test -z "$ac_cv_prog_OBJDUMP"; then |
|
4900 |
ac_ct_OBJDUMP=$OBJDUMP |
|
4901 |
# Extract the first word of "objdump", so it can be a program name with args. |
|
4902 |
set dummy objdump; ac_word=$2 |
|
4903 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4904 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
4905 |
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : |
|
4906 |
$as_echo_n "(cached) " >&6 |
|
4907 |
else |
|
4908 |
if test -n "$ac_ct_OBJDUMP"; then |
|
4909 |
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
|
4910 |
else |
|
4911 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4912 |
for as_dir in $PATH |
|
4913 |
do |
|
4914 |
IFS=$as_save_IFS |
|
4915 |
test -z "$as_dir" && as_dir=. |
|
4916 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
4917 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
4918 |
ac_cv_prog_ac_ct_OBJDUMP="objdump" |
|
4919 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4920 |
break 2 |
|
4921 |
fi |
|
4922 |
done |
|
4923 |
done |
|
4924 |
IFS=$as_save_IFS |
|
4925 |
||
4926 |
fi |
|
4927 |
fi |
|
4928 |
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
|
4929 |
if test -n "$ac_ct_OBJDUMP"; then |
|
4930 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
|
4931 |
$as_echo "$ac_ct_OBJDUMP" >&6; } |
|
4932 |
else |
|
4933 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4934 |
$as_echo "no" >&6; } |
|
4935 |
fi |
|
4936 |
||
4937 |
if test "x$ac_ct_OBJDUMP" = x; then |
|
4938 |
OBJDUMP="false" |
|
4939 |
else |
|
4940 |
case $cross_compiling:$ac_tool_warned in |
|
4941 |
yes:) |
|
4942 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
4943 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
4944 |
ac_tool_warned=yes ;; |
|
4945 |
esac |
|
4946 |
OBJDUMP=$ac_ct_OBJDUMP |
|
4947 |
fi |
|
4948 |
else |
|
4949 |
OBJDUMP="$ac_cv_prog_OBJDUMP" |
|
4950 |
fi |
|
4951 |
||
4952 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
|
4953 |
||
4954 |
||
4955 |
||
4956 |
||
4957 |
||
4958 |
||
4959 |
||
4960 |
||
4961 |
||
4962 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
|
4963 |
$as_echo_n "checking how to recognize dependent libraries... " >&6; } |
|
4964 |
if test "${lt_cv_deplibs_check_method+set}" = set; then : |
|
4965 |
$as_echo_n "(cached) " >&6 |
|
4966 |
else |
|
4967 |
lt_cv_file_magic_cmd='$MAGIC_CMD' |
|
4968 |
lt_cv_file_magic_test_file= |
|
4969 |
lt_cv_deplibs_check_method='unknown' |
|
4970 |
# Need to set the preceding variable on all platforms that support |
|
4971 |
# interlibrary dependencies. |
|
4972 |
# 'none' -- dependencies not supported. |
|
4973 |
# `unknown' -- same as none, but documents that we really don't know. |
|
4974 |
# 'pass_all' -- all dependencies passed with no checks. |
|
4975 |
# 'test_compile' -- check by making test program. |
|
4976 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
|
4977 |
# which responds to the $file_magic_cmd with a given extended regex. |
|
4978 |
# If you have `file' or equivalent on your system and you're not sure |
|
4979 |
# whether `pass_all' will *always* work, you probably want this one. |
|
4980 |
||
4981 |
case $host_os in |
|
4982 |
aix[4-9]*) |
|
4983 |
lt_cv_deplibs_check_method=pass_all |
|
4984 |
;; |
|
4985 |
||
4986 |
beos*) |
|
4987 |
lt_cv_deplibs_check_method=pass_all |
|
4988 |
;; |
|
4989 |
||
4990 |
bsdi[45]*) |
|
4991 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
|
4992 |
lt_cv_file_magic_cmd='/usr/bin/file -L' |
|
4993 |
lt_cv_file_magic_test_file=/shlib/libc.so |
|
4994 |
;; |
|
4995 |
||
4996 |
cygwin*) |
|
4997 |
# func_win32_libid is a shell function defined in ltmain.sh |
|
4998 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
|
4999 |
lt_cv_file_magic_cmd='func_win32_libid' |
|
5000 |
;; |
|
5001 |
||
5002 |
mingw* | pw32*) |
|
5003 |
# Base MSYS/MinGW do not provide the 'file' command needed by |
|
5004 |
# func_win32_libid shell function, so use a weaker test based on 'objdump', |
|
5005 |
# unless we find 'file', for example because we are cross-compiling. |
|
5006 |
if ( file / ) >/dev/null 2>&1; then |
|
5007 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
|
5008 |
lt_cv_file_magic_cmd='func_win32_libid' |
|
5009 |
else |
|
5010 |
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
|
5011 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
|
5012 |
fi |
|
5013 |
;; |
|
5014 |
||
5015 |
cegcc) |
|
5016 |
# use the weaker test based on 'objdump'. See mingw*. |
|
5017 |
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
|
5018 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
|
5019 |
;; |
|
5020 |
||
5021 |
darwin* | rhapsody*) |
|
5022 |
lt_cv_deplibs_check_method=pass_all |
|
5023 |
;; |
|
5024 |
||
5025 |
freebsd* | dragonfly*) |
|
5026 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
|
5027 |
case $host_cpu in |
|
5028 |
i*86 ) |
|
5029 |
# Not sure whether the presence of OpenBSD here was a mistake. |
|
5030 |
# Let's accept both of them until this is cleared up. |
|
5031 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
|
5032 |
lt_cv_file_magic_cmd=/usr/bin/file |
|
5033 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
|
5034 |
;; |
|
5035 |
esac |
|
5036 |
else |
|
5037 |
lt_cv_deplibs_check_method=pass_all |
|
5038 |
fi |
|
5039 |
;; |
|
5040 |
||
5041 |
gnu*) |
|
5042 |
lt_cv_deplibs_check_method=pass_all |
|
5043 |
;; |
|
5044 |
||
5045 |
hpux10.20* | hpux11*) |
|
5046 |
lt_cv_file_magic_cmd=/usr/bin/file |
|
5047 |
case $host_cpu in |
|
5048 |
ia64*) |
|
5049 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
|
5050 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
|
5051 |
;; |
|
5052 |
hppa*64*) |
|
5053 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
|
5054 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
|
5055 |
;; |
|
5056 |
*) |
|
5057 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
|
5058 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
|
5059 |
;; |
|
5060 |
esac |
|
5061 |
;; |
|
5062 |
||
5063 |
interix[3-9]*) |
|
5064 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
|
5065 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
|
5066 |
;; |
|
5067 |
||
5068 |
irix5* | irix6* | nonstopux*) |
|
5069 |
case $LD in |
|
5070 |
*-32|*"-32 ") libmagic=32-bit;; |
|
5071 |
*-n32|*"-n32 ") libmagic=N32;; |
|
5072 |
*-64|*"-64 ") libmagic=64-bit;; |
|
5073 |
*) libmagic=never-match;; |
|
5074 |
esac |
|
5075 |
lt_cv_deplibs_check_method=pass_all |
|
5076 |
;; |
|
5077 |
||
5078 |
# This must be Linux ELF. |
|
5079 |
linux* | k*bsd*-gnu) |
|
5080 |
lt_cv_deplibs_check_method=pass_all |
|
5081 |
;; |
|
5082 |
||
5083 |
netbsd* | netbsdelf*-gnu) |
|
5084 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
|
5085 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
|
5086 |
else |
|
5087 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
|
5088 |
fi |
|
5089 |
;; |
|
5090 |
||
5091 |
newos6*) |
|
5092 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
|
5093 |
lt_cv_file_magic_cmd=/usr/bin/file |
|
5094 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
|
5095 |
;; |
|
5096 |
||
5097 |
*nto* | *qnx*) |
|
5098 |
lt_cv_deplibs_check_method=pass_all |
|
5099 |
;; |
|
5100 |
||
5101 |
openbsd*) |
|
5102 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
5103 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
|
5104 |
else |
|
5105 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
|
5106 |
fi |
|
5107 |
;; |
|
5108 |
||
5109 |
osf3* | osf4* | osf5*) |
|
5110 |
lt_cv_deplibs_check_method=pass_all |
|
5111 |
;; |
|
5112 |
||
5113 |
rdos*) |
|
5114 |
lt_cv_deplibs_check_method=pass_all |
|
5115 |
;; |
|
5116 |
||
5117 |
solaris*) |
|
5118 |
lt_cv_deplibs_check_method=pass_all |
|
5119 |
;; |
|
5120 |
||
5121 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
5122 |
lt_cv_deplibs_check_method=pass_all |
|
5123 |
;; |
|
5124 |
||
5125 |
sysv4 | sysv4.3*) |
|
5126 |
case $host_vendor in |
|
5127 |
motorola) |
|
5128 |
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]' |
|
5129 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
|
5130 |
;; |
|
5131 |
ncr) |
|
5132 |
lt_cv_deplibs_check_method=pass_all |
|
5133 |
;; |
|
5134 |
sequent) |
|
5135 |
lt_cv_file_magic_cmd='/bin/file' |
|
5136 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
|
5137 |
;; |
|
5138 |
sni) |
|
5139 |
lt_cv_file_magic_cmd='/bin/file' |
|
5140 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
|
5141 |
lt_cv_file_magic_test_file=/lib/libc.so |
|
5142 |
;; |
|
5143 |
siemens) |
|
5144 |
lt_cv_deplibs_check_method=pass_all |
|
5145 |
;; |
|
5146 |
pc) |
|
5147 |
lt_cv_deplibs_check_method=pass_all |
|
5148 |
;; |
|
5149 |
esac |
|
5150 |
;; |
|
5151 |
||
5152 |
tpf*) |
|
5153 |
lt_cv_deplibs_check_method=pass_all |
|
5154 |
;; |
|
5155 |
esac |
|
5156 |
||
5157 |
fi |
|
5158 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
|
5159 |
$as_echo "$lt_cv_deplibs_check_method" >&6; } |
|
5160 |
file_magic_cmd=$lt_cv_file_magic_cmd |
|
5161 |
deplibs_check_method=$lt_cv_deplibs_check_method |
|
5162 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
|
5163 |
||
5164 |
||
5165 |
||
5166 |
||
5167 |
||
5168 |
||
5169 |
||
5170 |
||
5171 |
||
5172 |
||
5173 |
||
5174 |
||
5175 |
if test -n "$ac_tool_prefix"; then |
|
5176 |
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
|
5177 |
set dummy ${ac_tool_prefix}ar; ac_word=$2 |
|
5178 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5179 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
5180 |
if test "${ac_cv_prog_AR+set}" = set; then : |
|
5181 |
$as_echo_n "(cached) " >&6 |
|
5182 |
else |
|
5183 |
if test -n "$AR"; then |
|
5184 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
|
5185 |
else |
|
5186 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5187 |
for as_dir in $PATH |
|
5188 |
do |
|
5189 |
IFS=$as_save_IFS |
|
5190 |
test -z "$as_dir" && as_dir=. |
|
5191 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
5192 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
5193 |
ac_cv_prog_AR="${ac_tool_prefix}ar" |
|
5194 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5195 |
break 2 |
|
5196 |
fi |
|
5197 |
done |
|
5198 |
done |
|
5199 |
IFS=$as_save_IFS |
|
5200 |
||
5201 |
fi |
|
5202 |
fi |
|
5203 |
AR=$ac_cv_prog_AR |
|
5204 |
if test -n "$AR"; then |
|
5205 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
|
5206 |
$as_echo "$AR" >&6; } |
|
5207 |
else |
|
5208 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5209 |
$as_echo "no" >&6; } |
|
5210 |
fi |
|
5211 |
||
5212 |
||
5213 |
fi |
|
5214 |
if test -z "$ac_cv_prog_AR"; then |
|
5215 |
ac_ct_AR=$AR |
|
5216 |
# Extract the first word of "ar", so it can be a program name with args. |
|
5217 |
set dummy ar; ac_word=$2 |
|
5218 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5219 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
5220 |
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
|
5221 |
$as_echo_n "(cached) " >&6 |
|
5222 |
else |
|
5223 |
if test -n "$ac_ct_AR"; then |
|
5224 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
|
5225 |
else |
|
5226 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5227 |
for as_dir in $PATH |
|
5228 |
do |
|
5229 |
IFS=$as_save_IFS |
|
5230 |
test -z "$as_dir" && as_dir=. |
|
5231 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
5232 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
5233 |
ac_cv_prog_ac_ct_AR="ar" |
|
5234 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5235 |
break 2 |
|
5236 |
fi |
|
5237 |
done |
|
5238 |
done |
|
5239 |
IFS=$as_save_IFS |
|
5240 |
||
5241 |
fi |
|
5242 |
fi |
|
5243 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
|
5244 |
if test -n "$ac_ct_AR"; then |
|
5245 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
|
5246 |
$as_echo "$ac_ct_AR" >&6; } |
|
5247 |
else |
|
5248 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5249 |
$as_echo "no" >&6; } |
|
5250 |
fi |
|
5251 |
||
5252 |
if test "x$ac_ct_AR" = x; then |
|
5253 |
AR="false" |
|
5254 |
else |
|
5255 |
case $cross_compiling:$ac_tool_warned in |
|
5256 |
yes:) |
|
5257 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
5258 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
5259 |
ac_tool_warned=yes ;; |
|
5260 |
esac |
|
5261 |
AR=$ac_ct_AR |
|
5262 |
fi |
|
5263 |
else |
|
5264 |
AR="$ac_cv_prog_AR" |
|
5265 |
fi |
|
5266 |
||
5267 |
test -z "$AR" && AR=ar |
|
5268 |
test -z "$AR_FLAGS" && AR_FLAGS=cru |
|
5269 |
||
5270 |
||
5271 |
||
5272 |
||
5273 |
||
5274 |
||
5275 |
||
5276 |
||
5277 |
||
5278 |
||
5279 |
||
5280 |
if test -n "$ac_tool_prefix"; then |
|
5281 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
|
5282 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
|
5283 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5284 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
5285 |
if test "${ac_cv_prog_STRIP+set}" = set; then : |
|
5286 |
$as_echo_n "(cached) " >&6 |
|
5287 |
else |
|
5288 |
if test -n "$STRIP"; then |
|
5289 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
|
5290 |
else |
|
5291 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5292 |
for as_dir in $PATH |
|
5293 |
do |
|
5294 |
IFS=$as_save_IFS |
|
5295 |
test -z "$as_dir" && as_dir=. |
|
5296 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
5297 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
5298 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
|
5299 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5300 |
break 2 |
|
5301 |
fi |
|
5302 |
done |
|
5303 |
done |
|
5304 |
IFS=$as_save_IFS |
|
5305 |
||
5306 |
fi |
|
5307 |
fi |
|
5308 |
STRIP=$ac_cv_prog_STRIP |
|
5309 |
if test -n "$STRIP"; then |
|
5310 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
|
5311 |
$as_echo "$STRIP" >&6; } |
|
5312 |
else |
|
5313 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5314 |
$as_echo "no" >&6; } |
|
5315 |
fi |
|
5316 |
||
5317 |
||
5318 |
fi |
|
5319 |
if test -z "$ac_cv_prog_STRIP"; then |
|
5320 |
ac_ct_STRIP=$STRIP |
|
5321 |
# Extract the first word of "strip", so it can be a program name with args. |
|
5322 |
set dummy strip; ac_word=$2 |
|
5323 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5324 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
5325 |
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
|
5326 |
$as_echo_n "(cached) " >&6 |
|
5327 |
else |
|
5328 |
if test -n "$ac_ct_STRIP"; then |
|
5329 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
|
5330 |
else |
|
5331 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5332 |
for as_dir in $PATH |
|
5333 |
do |
|
5334 |
IFS=$as_save_IFS |
|
5335 |
test -z "$as_dir" && as_dir=. |
|
5336 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
5337 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
5338 |
ac_cv_prog_ac_ct_STRIP="strip" |
|
5339 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5340 |
break 2 |
|
5341 |
fi |
|
5342 |
done |
|
5343 |
done |
|
5344 |
IFS=$as_save_IFS |
|
5345 |
||
5346 |
fi |
|
5347 |
fi |
|
5348 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
|
5349 |
if test -n "$ac_ct_STRIP"; then |
|
5350 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
|
5351 |
$as_echo "$ac_ct_STRIP" >&6; } |
|
5352 |
else |
|
5353 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5354 |
$as_echo "no" >&6; } |
|
5355 |
fi |
|
5356 |
||
5357 |
if test "x$ac_ct_STRIP" = x; then |
|
5358 |
STRIP=":" |
|
5359 |
else |
|
5360 |
case $cross_compiling:$ac_tool_warned in |
|
5361 |
yes:) |
|
5362 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
5363 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
5364 |
ac_tool_warned=yes ;; |
|
5365 |
esac |
|
5366 |
STRIP=$ac_ct_STRIP |
|
5367 |
fi |
|
5368 |
else |
|
5369 |
STRIP="$ac_cv_prog_STRIP" |
|
5370 |
fi |
|
5371 |
||
5372 |
test -z "$STRIP" && STRIP=: |
|
5373 |
||
5374 |
||
5375 |
||
5376 |
||
5377 |
||
5378 |
||
5379 |
if test -n "$ac_tool_prefix"; then |
|
5380 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
|
5381 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
|
5382 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5383 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
5384 |
if test "${ac_cv_prog_RANLIB+set}" = set; then : |
|
5385 |
$as_echo_n "(cached) " >&6 |
|
5386 |
else |
|
5387 |
if test -n "$RANLIB"; then |
|
5388 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
|
5389 |
else |
|
5390 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5391 |
for as_dir in $PATH |
|
5392 |
do |
|
5393 |
IFS=$as_save_IFS |
|
5394 |
test -z "$as_dir" && as_dir=. |
|
5395 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
5396 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
5397 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
|
5398 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5399 |
break 2 |
|
5400 |
fi |
|
5401 |
done |
|
5402 |
done |
|
5403 |
IFS=$as_save_IFS |
|
5404 |
||
5405 |
fi |
|
5406 |
fi |
|
5407 |
RANLIB=$ac_cv_prog_RANLIB |
|
5408 |
if test -n "$RANLIB"; then |
|
5409 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
|
5410 |
$as_echo "$RANLIB" >&6; } |
|
5411 |
else |
|
5412 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5413 |
$as_echo "no" >&6; } |
|
5414 |
fi |
|
5415 |
||
5416 |
||
5417 |
fi |
|
5418 |
if test -z "$ac_cv_prog_RANLIB"; then |
|
5419 |
ac_ct_RANLIB=$RANLIB |
|
5420 |
# Extract the first word of "ranlib", so it can be a program name with args. |
|
5421 |
set dummy ranlib; ac_word=$2 |
|
5422 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5423 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
5424 |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
|
5425 |
$as_echo_n "(cached) " >&6 |
|
5426 |
else |
|
5427 |
if test -n "$ac_ct_RANLIB"; then |
|
5428 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
|
5429 |
else |
|
5430 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5431 |
for as_dir in $PATH |
|
5432 |
do |
|
5433 |
IFS=$as_save_IFS |
|
5434 |
test -z "$as_dir" && as_dir=. |
|
5435 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
5436 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
5437 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
|
5438 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
5439 |
break 2 |
|
5440 |
fi |
|
5441 |
done |
|
5442 |
done |
|
5443 |
IFS=$as_save_IFS |
|
5444 |
||
5445 |
fi |
|
5446 |
fi |
|
5447 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
|
5448 |
if test -n "$ac_ct_RANLIB"; then |
|
5449 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
|
5450 |
$as_echo "$ac_ct_RANLIB" >&6; } |
|
5451 |
else |
|
5452 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
5453 |
$as_echo "no" >&6; } |
|
5454 |
fi |
|
5455 |
||
5456 |
if test "x$ac_ct_RANLIB" = x; then |
|
5457 |
RANLIB=":" |
|
5458 |
else |
|
5459 |
case $cross_compiling:$ac_tool_warned in |
|
5460 |
yes:) |
|
5461 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
5462 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
5463 |
ac_tool_warned=yes ;; |
|
5464 |
esac |
|
5465 |
RANLIB=$ac_ct_RANLIB |
|
5466 |
fi |
|
5467 |
else |
|
5468 |
RANLIB="$ac_cv_prog_RANLIB" |
|
5469 |
fi |
|
5470 |
||
5471 |
test -z "$RANLIB" && RANLIB=: |
|
5472 |
||
5473 |
||
5474 |
||
5475 |
||
5476 |
||
5477 |
||
5478 |
# Determine commands to create old-style static archives. |
|
5479 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
|
5480 |
old_postinstall_cmds='chmod 644 $oldlib' |
|
5481 |
old_postuninstall_cmds= |
|
5482 |
||
5483 |
if test -n "$RANLIB"; then |
|
5484 |
case $host_os in |
|
5485 |
openbsd*) |
|
5486 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
|
5487 |
;; |
|
5488 |
*) |
|
5489 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
|
5490 |
;; |
|
5491 |
esac |
|
5492 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
|
5493 |
fi |
|
5494 |
||
5495 |
||
5496 |
||
5497 |
||
5498 |
||
5499 |
||
5500 |
||
5501 |
||
5502 |
||
5503 |
||
5504 |
||
5505 |
||
5506 |
||
5507 |
||
5508 |
||
5509 |
||
5510 |
||
5511 |
||
5512 |
||
5513 |
||
5514 |
||
5515 |
||
5516 |
||
5517 |
||
5518 |
||
5519 |
||
5520 |
||
5521 |
||
5522 |
||
5523 |
||
5524 |
||
5525 |
||
5526 |
||
5527 |
||
5528 |
# If no C compiler was specified, use CC. |
|
5529 |
LTCC=${LTCC-"$CC"} |
|
5530 |
||
5531 |
# If no C compiler flags were specified, use CFLAGS. |
|
5532 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
5533 |
||
5534 |
# Allow CC to be a program name with arguments. |
|
5535 |
compiler=$CC |
|
5536 |
||
5537 |
||
5538 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
|
5539 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
|
5540 |
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
|
5541 |
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : |
|
5542 |
$as_echo_n "(cached) " >&6 |
|
5543 |
else |
|
5544 |
||
5545 |
# These are sane defaults that work on at least a few old systems. |
|
5546 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
|
5547 |
||
5548 |
# Character class describing NM global symbol codes. |
|
5549 |
symcode='[BCDEGRST]' |
|
5550 |
||
5551 |
# Regexp to match symbols that can be accessed directly from C. |
|
5552 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
|
5553 |
||
5554 |
# Define system-specific variables. |
|
5555 |
case $host_os in |
|
5556 |
aix*) |
|
5557 |
symcode='[BCDT]' |
|
5558 |
;; |
|
5559 |
cygwin* | mingw* | pw32* | cegcc*) |
|
5560 |
symcode='[ABCDGISTW]' |
|
5561 |
;; |
|
5562 |
hpux*) |
|
5563 |
if test "$host_cpu" = ia64; then |
|
5564 |
symcode='[ABCDEGRST]' |
|
5565 |
fi |
|
5566 |
;; |
|
5567 |
irix* | nonstopux*) |
|
5568 |
symcode='[BCDEGRST]' |
|
5569 |
;; |
|
5570 |
osf*) |
|
5571 |
symcode='[BCDEGQRST]' |
|
5572 |
;; |
|
5573 |
solaris*) |
|
5574 |
symcode='[BDRT]' |
|
5575 |
;; |
|
5576 |
sco3.2v5*) |
|
5577 |
symcode='[DT]' |
|
5578 |
;; |
|
5579 |
sysv4.2uw2*) |
|
5580 |
symcode='[DT]' |
|
5581 |
;; |
|
5582 |
sysv5* | sco5v6* | unixware* | OpenUNIX*) |
|
5583 |
symcode='[ABDT]' |
|
5584 |
;; |
|
5585 |
sysv4) |
|
5586 |
symcode='[DFNSTU]' |
|
5587 |
;; |
|
5588 |
esac |
|
5589 |
||
5590 |
# If we're using GNU nm, then use its standard symbol codes. |
|
5591 |
case `$NM -V 2>&1` in |
|
5592 |
*GNU* | *'with BFD'*) |
|
5593 |
symcode='[ABCDGIRSTW]' ;; |
|
5594 |
esac |
|
5595 |
||
5596 |
# Transform an extracted symbol line into a proper C declaration. |
|
5597 |
# Some systems (esp. on ia64) link data and code symbols differently, |
|
5598 |
# so use this general approach. |
|
5599 |
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
|
5600 |
||
5601 |
# Transform an extracted symbol line into symbol name and symbol address |
|
5602 |
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
|
5603 |
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'" |
|
5604 |
||
5605 |
# Handle CRLF in mingw tool chain |
|
5606 |
opt_cr= |
|
5607 |
case $build_os in |
|
5608 |
mingw*) |
|
5609 |
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
|
5610 |
;; |
|
5611 |
esac |
|
5612 |
||
5613 |
# Try without a prefix underscore, then with it. |
|
5614 |
for ac_symprfx in "" "_"; do |
|
5615 |
||
5616 |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
|
5617 |
symxfrm="\\1 $ac_symprfx\\2 \\2" |
|
5618 |
||
5619 |
# Write the raw and C identifiers. |
|
5620 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
|
5621 |
# Fake it for dumpbin and say T for any non-static function |
|
5622 |
# and D for any global variable. |
|
5623 |
# Also find C++ and __fastcall symbols from MSVC++, |
|
5624 |
# which start with @ or ?. |
|
5625 |
lt_cv_sys_global_symbol_pipe="$AWK '"\ |
|
5626 |
" {last_section=section; section=\$ 3};"\ |
|
5627 |
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
|
5628 |
" \$ 0!~/External *\|/{next};"\ |
|
5629 |
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
|
5630 |
" {if(hide[section]) next};"\ |
|
5631 |
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
|
5632 |
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
|
5633 |
" s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
|
5634 |
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
|
5635 |
" ' prfx=^$ac_symprfx" |
|
5636 |
else |
|
5637 |
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
|
5638 |
fi |
|
5639 |
||
5640 |
# Check to see that the pipe works correctly. |
|
5641 |
pipe_works=no |
|
5642 |
||
5643 |
rm -f conftest* |
|
5644 |
cat > conftest.$ac_ext <<_LT_EOF |
|
5645 |
#ifdef __cplusplus |
|
5646 |
extern "C" { |
|
5647 |
#endif |
|
5648 |
char nm_test_var; |
|
5649 |
void nm_test_func(void); |
|
5650 |
void nm_test_func(void){} |
|
5651 |
#ifdef __cplusplus |
|
5652 |
} |
|
5653 |
#endif |
|
5654 |
int main(){nm_test_var='a';nm_test_func();return(0);} |
|
5655 |
_LT_EOF |
|
5656 |
||
5657 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
|
5658 |
(eval $ac_compile) 2>&5 |
|
5659 |
ac_status=$? |
|
5660 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
5661 |
test $ac_status = 0; }; then |
|
5662 |
# Now try to grab the symbols. |
|
5663 |
nlist=conftest.nm |
|
5664 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 |
|
5665 |
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
|
5666 |
ac_status=$? |
|
5667 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
5668 |
test $ac_status = 0; } && test -s "$nlist"; then |
|
5669 |
# Try sorting and uniquifying the output. |
|
5670 |
if sort "$nlist" | uniq > "$nlist"T; then |
|
5671 |
mv -f "$nlist"T "$nlist" |
|
5672 |
else |
|
5673 |
rm -f "$nlist"T |
|
5674 |
fi |
|
5675 |
||
5676 |
# Make sure that we snagged all the symbols we need. |
|
5677 |
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
|
5678 |
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
|
5679 |
cat <<_LT_EOF > conftest.$ac_ext |
|
5680 |
#ifdef __cplusplus |
|
5681 |
extern "C" { |
|
5682 |
#endif |
|
5683 |
||
5684 |
_LT_EOF |
|
5685 |
# Now generate the symbol file. |
|
5686 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
|
5687 |
||
5688 |
cat <<_LT_EOF >> conftest.$ac_ext |
|
5689 |
||
5690 |
/* The mapping between symbol names and symbols. */ |
|
5691 |
const struct { |
|
5692 |
const char *name; |
|
5693 |
void *address; |
|
5694 |
} |
|
5695 |
lt__PROGRAM__LTX_preloaded_symbols[] = |
|
5696 |
{ |
|
5697 |
{ "@PROGRAM@", (void *) 0 }, |
|
5698 |
_LT_EOF |
|
5699 |
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
|
5700 |
cat <<\_LT_EOF >> conftest.$ac_ext |
|
5701 |
{0, (void *) 0} |
|
5702 |
}; |
|
5703 |
||
5704 |
/* This works around a problem in FreeBSD linker */ |
|
5705 |
#ifdef FREEBSD_WORKAROUND |
|
5706 |
static const void *lt_preloaded_setup() { |
|
5707 |
return lt__PROGRAM__LTX_preloaded_symbols; |
|
5708 |
} |
|
5709 |
#endif |
|
5710 |
||
5711 |
#ifdef __cplusplus |
|
5712 |
} |
|
5713 |
#endif |
|
5714 |
_LT_EOF |
|
5715 |
# Now try linking the two files. |
|
5716 |
mv conftest.$ac_objext conftstm.$ac_objext |
|
5717 |
lt_save_LIBS="$LIBS" |
|
5718 |
lt_save_CFLAGS="$CFLAGS" |
|
5719 |
LIBS="conftstm.$ac_objext" |
|
5720 |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
|
5721 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
|
5722 |
(eval $ac_link) 2>&5 |
|
5723 |
ac_status=$? |
|
5724 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
5725 |
test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
|
5726 |
pipe_works=yes |
|
5727 |
fi |
|
5728 |
LIBS="$lt_save_LIBS" |
|
5729 |
CFLAGS="$lt_save_CFLAGS" |
|
5730 |
else |
|
5731 |
echo "cannot find nm_test_func in $nlist" >&5 |
|
5732 |
fi |
|
5733 |
else |
|
5734 |
echo "cannot find nm_test_var in $nlist" >&5 |
|
5735 |
fi |
|
5736 |
else |
|
5737 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
|
5738 |
fi |
|
5739 |
else |
|
5740 |
echo "$progname: failed program was:" >&5 |
|
5741 |
cat conftest.$ac_ext >&5 |
|
5742 |
fi |
|
5743 |
rm -rf conftest* conftst* |
|
5744 |
||
5745 |
# Do not use the global_symbol_pipe unless it works. |
|
5746 |
if test "$pipe_works" = yes; then |
|
5747 |
break |
|
5748 |
else |
|
5749 |
lt_cv_sys_global_symbol_pipe= |
|
5750 |
fi |
|
5751 |
done |
|
5752 |
||
5753 |
fi |
|
5754 |
||
5755 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
|
5756 |
lt_cv_sys_global_symbol_to_cdecl= |
|
5757 |
fi |
|
5758 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
|
5759 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
|
5760 |
$as_echo "failed" >&6; } |
|
5761 |
else |
|
5762 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
|
5763 |
$as_echo "ok" >&6; } |
|
5764 |
fi |
|
5765 |
||
5766 |
||
5767 |
||
5768 |
||
5769 |
||
5770 |
||
5771 |
||
5772 |
||
5773 |
||
5774 |
||
5775 |
||
5776 |
||
5777 |
||
5778 |
||
5779 |
||
5780 |
||
5781 |
||
5782 |
||
5783 |
||
5784 |
||
5785 |
||
5786 |
||
5787 |
||
5788 |
# Check whether --enable-libtool-lock was given. |
|
5789 |
if test "${enable_libtool_lock+set}" = set; then : |
|
5790 |
enableval=$enable_libtool_lock; |
|
5791 |
fi |
|
5792 |
||
5793 |
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
|
5794 |
||
5795 |
# Some flags need to be propagated to the compiler or linker for good |
|
5796 |
# libtool support. |
|
5797 |
case $host in |
|
5798 |
ia64-*-hpux*) |
|
5799 |
# Find out which ABI we are using. |
|
5800 |
echo 'int i;' > conftest.$ac_ext |
|
5801 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
|
5802 |
(eval $ac_compile) 2>&5 |
|
5803 |
ac_status=$? |
|
5804 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
5805 |
test $ac_status = 0; }; then |
|
5806 |
case `/usr/bin/file conftest.$ac_objext` in |
|
5807 |
*ELF-32*) |
|
5808 |
HPUX_IA64_MODE="32" |
|
5809 |
;; |
|
5810 |
*ELF-64*) |
|
5811 |
HPUX_IA64_MODE="64" |
|
5812 |
;; |
|
5813 |
esac |
|
5814 |
fi |
|
5815 |
rm -rf conftest* |
|
5816 |
;; |
|
5817 |
*-*-irix6*) |
|
5818 |
# Find out which ABI we are using. |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
5819 |
echo '#line 5819 "configure"' > conftest.$ac_ext |
5
by edam
- updated README |
5820 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
5821 |
(eval $ac_compile) 2>&5 |
|
5822 |
ac_status=$? |
|
5823 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
5824 |
test $ac_status = 0; }; then |
|
5825 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
5826 |
case `/usr/bin/file conftest.$ac_objext` in |
|
5827 |
*32-bit*) |
|
5828 |
LD="${LD-ld} -melf32bsmip" |
|
5829 |
;; |
|
5830 |
*N32*) |
|
5831 |
LD="${LD-ld} -melf32bmipn32" |
|
5832 |
;; |
|
5833 |
*64-bit*) |
|
5834 |
LD="${LD-ld} -melf64bmip" |
|
5835 |
;; |
|
5836 |
esac |
|
5837 |
else |
|
5838 |
case `/usr/bin/file conftest.$ac_objext` in |
|
5839 |
*32-bit*) |
|
5840 |
LD="${LD-ld} -32" |
|
5841 |
;; |
|
5842 |
*N32*) |
|
5843 |
LD="${LD-ld} -n32" |
|
5844 |
;; |
|
5845 |
*64-bit*) |
|
5846 |
LD="${LD-ld} -64" |
|
5847 |
;; |
|
5848 |
esac |
|
5849 |
fi |
|
5850 |
fi |
|
5851 |
rm -rf conftest* |
|
5852 |
;; |
|
5853 |
||
5854 |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
|
5855 |
s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
|
5856 |
# Find out which ABI we are using. |
|
5857 |
echo 'int i;' > conftest.$ac_ext |
|
5858 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
|
5859 |
(eval $ac_compile) 2>&5 |
|
5860 |
ac_status=$? |
|
5861 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
5862 |
test $ac_status = 0; }; then |
|
5863 |
case `/usr/bin/file conftest.o` in |
|
5864 |
*32-bit*) |
|
5865 |
case $host in |
|
5866 |
x86_64-*kfreebsd*-gnu) |
|
5867 |
LD="${LD-ld} -m elf_i386_fbsd" |
|
5868 |
;; |
|
5869 |
x86_64-*linux*) |
|
5870 |
LD="${LD-ld} -m elf_i386" |
|
5871 |
;; |
|
5872 |
ppc64-*linux*|powerpc64-*linux*) |
|
5873 |
LD="${LD-ld} -m elf32ppclinux" |
|
5874 |
;; |
|
5875 |
s390x-*linux*) |
|
5876 |
LD="${LD-ld} -m elf_s390" |
|
5877 |
;; |
|
5878 |
sparc64-*linux*) |
|
5879 |
LD="${LD-ld} -m elf32_sparc" |
|
5880 |
;; |
|
5881 |
esac |
|
5882 |
;; |
|
5883 |
*64-bit*) |
|
5884 |
case $host in |
|
5885 |
x86_64-*kfreebsd*-gnu) |
|
5886 |
LD="${LD-ld} -m elf_x86_64_fbsd" |
|
5887 |
;; |
|
5888 |
x86_64-*linux*) |
|
5889 |
LD="${LD-ld} -m elf_x86_64" |
|
5890 |
;; |
|
5891 |
ppc*-*linux*|powerpc*-*linux*) |
|
5892 |
LD="${LD-ld} -m elf64ppc" |
|
5893 |
;; |
|
5894 |
s390*-*linux*|s390*-*tpf*) |
|
5895 |
LD="${LD-ld} -m elf64_s390" |
|
5896 |
;; |
|
5897 |
sparc*-*linux*) |
|
5898 |
LD="${LD-ld} -m elf64_sparc" |
|
5899 |
;; |
|
5900 |
esac |
|
5901 |
;; |
|
5902 |
esac |
|
5903 |
fi |
|
5904 |
rm -rf conftest* |
|
5905 |
;; |
|
5906 |
||
5907 |
*-*-sco3.2v5*) |
|
5908 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
|
5909 |
SAVE_CFLAGS="$CFLAGS" |
|
5910 |
CFLAGS="$CFLAGS -belf" |
|
5911 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
|
5912 |
$as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
|
5913 |
if test "${lt_cv_cc_needs_belf+set}" = set; then : |
|
5914 |
$as_echo_n "(cached) " >&6 |
|
5915 |
else |
|
5916 |
ac_ext=c |
|
5917 |
ac_cpp='$CPP $CPPFLAGS' |
|
5918 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5919 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5920 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5921 |
||
5922 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
5923 |
/* end confdefs.h. */ |
|
5924 |
||
5925 |
int |
|
5926 |
main () |
|
5927 |
{ |
|
5928 |
||
5929 |
; |
|
5930 |
return 0; |
|
5931 |
} |
|
5932 |
_ACEOF |
|
5933 |
if ac_fn_c_try_link "$LINENO"; then : |
|
5934 |
lt_cv_cc_needs_belf=yes |
|
5935 |
else |
|
5936 |
lt_cv_cc_needs_belf=no |
|
5937 |
fi |
|
5938 |
rm -f core conftest.err conftest.$ac_objext \ |
|
5939 |
conftest$ac_exeext conftest.$ac_ext |
|
5940 |
ac_ext=c |
|
5941 |
ac_cpp='$CPP $CPPFLAGS' |
|
5942 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
5943 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
5944 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
5945 |
||
5946 |
fi |
|
5947 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
|
5948 |
$as_echo "$lt_cv_cc_needs_belf" >&6; } |
|
5949 |
if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
|
5950 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
|
5951 |
CFLAGS="$SAVE_CFLAGS" |
|
5952 |
fi |
|
5953 |
;; |
|
5954 |
sparc*-*solaris*) |
|
5955 |
# Find out which ABI we are using. |
|
5956 |
echo 'int i;' > conftest.$ac_ext |
|
5957 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
|
5958 |
(eval $ac_compile) 2>&5 |
|
5959 |
ac_status=$? |
|
5960 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
5961 |
test $ac_status = 0; }; then |
|
5962 |
case `/usr/bin/file conftest.o` in |
|
5963 |
*64-bit*) |
|
5964 |
case $lt_cv_prog_gnu_ld in |
|
5965 |
yes*) LD="${LD-ld} -m elf64_sparc" ;; |
|
5966 |
*) |
|
5967 |
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
|
5968 |
LD="${LD-ld} -64" |
|
5969 |
fi |
|
5970 |
;; |
|
5971 |
esac |
|
5972 |
;; |
|
5973 |
esac |
|
5974 |
fi |
|
5975 |
rm -rf conftest* |
|
5976 |
;; |
|
5977 |
esac |
|
5978 |
||
5979 |
need_locks="$enable_libtool_lock" |
|
5980 |
||
5981 |
||
5982 |
case $host_os in |
|
5983 |
rhapsody* | darwin*) |
|
5984 |
if test -n "$ac_tool_prefix"; then |
|
5985 |
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
|
5986 |
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
|
5987 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
5988 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
5989 |
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : |
|
5990 |
$as_echo_n "(cached) " >&6 |
|
5991 |
else |
|
5992 |
if test -n "$DSYMUTIL"; then |
|
5993 |
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
|
5994 |
else |
|
5995 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
5996 |
for as_dir in $PATH |
|
5997 |
do |
|
5998 |
IFS=$as_save_IFS |
|
5999 |
test -z "$as_dir" && as_dir=. |
|
6000 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6001 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6002 |
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
|
6003 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6004 |
break 2 |
|
6005 |
fi |
|
6006 |
done |
|
6007 |
done |
|
6008 |
IFS=$as_save_IFS |
|
6009 |
||
6010 |
fi |
|
6011 |
fi |
|
6012 |
DSYMUTIL=$ac_cv_prog_DSYMUTIL |
|
6013 |
if test -n "$DSYMUTIL"; then |
|
6014 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
|
6015 |
$as_echo "$DSYMUTIL" >&6; } |
|
6016 |
else |
|
6017 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6018 |
$as_echo "no" >&6; } |
|
6019 |
fi |
|
6020 |
||
6021 |
||
6022 |
fi |
|
6023 |
if test -z "$ac_cv_prog_DSYMUTIL"; then |
|
6024 |
ac_ct_DSYMUTIL=$DSYMUTIL |
|
6025 |
# Extract the first word of "dsymutil", so it can be a program name with args. |
|
6026 |
set dummy dsymutil; ac_word=$2 |
|
6027 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6028 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6029 |
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : |
|
6030 |
$as_echo_n "(cached) " >&6 |
|
6031 |
else |
|
6032 |
if test -n "$ac_ct_DSYMUTIL"; then |
|
6033 |
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
|
6034 |
else |
|
6035 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6036 |
for as_dir in $PATH |
|
6037 |
do |
|
6038 |
IFS=$as_save_IFS |
|
6039 |
test -z "$as_dir" && as_dir=. |
|
6040 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6041 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6042 |
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
|
6043 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6044 |
break 2 |
|
6045 |
fi |
|
6046 |
done |
|
6047 |
done |
|
6048 |
IFS=$as_save_IFS |
|
6049 |
||
6050 |
fi |
|
6051 |
fi |
|
6052 |
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
|
6053 |
if test -n "$ac_ct_DSYMUTIL"; then |
|
6054 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
|
6055 |
$as_echo "$ac_ct_DSYMUTIL" >&6; } |
|
6056 |
else |
|
6057 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6058 |
$as_echo "no" >&6; } |
|
6059 |
fi |
|
6060 |
||
6061 |
if test "x$ac_ct_DSYMUTIL" = x; then |
|
6062 |
DSYMUTIL=":" |
|
6063 |
else |
|
6064 |
case $cross_compiling:$ac_tool_warned in |
|
6065 |
yes:) |
|
6066 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
6067 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
6068 |
ac_tool_warned=yes ;; |
|
6069 |
esac |
|
6070 |
DSYMUTIL=$ac_ct_DSYMUTIL |
|
6071 |
fi |
|
6072 |
else |
|
6073 |
DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
|
6074 |
fi |
|
6075 |
||
6076 |
if test -n "$ac_tool_prefix"; then |
|
6077 |
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
|
6078 |
set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
|
6079 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6080 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6081 |
if test "${ac_cv_prog_NMEDIT+set}" = set; then : |
|
6082 |
$as_echo_n "(cached) " >&6 |
|
6083 |
else |
|
6084 |
if test -n "$NMEDIT"; then |
|
6085 |
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
|
6086 |
else |
|
6087 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6088 |
for as_dir in $PATH |
|
6089 |
do |
|
6090 |
IFS=$as_save_IFS |
|
6091 |
test -z "$as_dir" && as_dir=. |
|
6092 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6093 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6094 |
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
|
6095 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6096 |
break 2 |
|
6097 |
fi |
|
6098 |
done |
|
6099 |
done |
|
6100 |
IFS=$as_save_IFS |
|
6101 |
||
6102 |
fi |
|
6103 |
fi |
|
6104 |
NMEDIT=$ac_cv_prog_NMEDIT |
|
6105 |
if test -n "$NMEDIT"; then |
|
6106 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
|
6107 |
$as_echo "$NMEDIT" >&6; } |
|
6108 |
else |
|
6109 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6110 |
$as_echo "no" >&6; } |
|
6111 |
fi |
|
6112 |
||
6113 |
||
6114 |
fi |
|
6115 |
if test -z "$ac_cv_prog_NMEDIT"; then |
|
6116 |
ac_ct_NMEDIT=$NMEDIT |
|
6117 |
# Extract the first word of "nmedit", so it can be a program name with args. |
|
6118 |
set dummy nmedit; ac_word=$2 |
|
6119 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6120 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6121 |
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : |
|
6122 |
$as_echo_n "(cached) " >&6 |
|
6123 |
else |
|
6124 |
if test -n "$ac_ct_NMEDIT"; then |
|
6125 |
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
|
6126 |
else |
|
6127 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6128 |
for as_dir in $PATH |
|
6129 |
do |
|
6130 |
IFS=$as_save_IFS |
|
6131 |
test -z "$as_dir" && as_dir=. |
|
6132 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6133 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6134 |
ac_cv_prog_ac_ct_NMEDIT="nmedit" |
|
6135 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6136 |
break 2 |
|
6137 |
fi |
|
6138 |
done |
|
6139 |
done |
|
6140 |
IFS=$as_save_IFS |
|
6141 |
||
6142 |
fi |
|
6143 |
fi |
|
6144 |
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
|
6145 |
if test -n "$ac_ct_NMEDIT"; then |
|
6146 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
|
6147 |
$as_echo "$ac_ct_NMEDIT" >&6; } |
|
6148 |
else |
|
6149 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6150 |
$as_echo "no" >&6; } |
|
6151 |
fi |
|
6152 |
||
6153 |
if test "x$ac_ct_NMEDIT" = x; then |
|
6154 |
NMEDIT=":" |
|
6155 |
else |
|
6156 |
case $cross_compiling:$ac_tool_warned in |
|
6157 |
yes:) |
|
6158 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
6159 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
6160 |
ac_tool_warned=yes ;; |
|
6161 |
esac |
|
6162 |
NMEDIT=$ac_ct_NMEDIT |
|
6163 |
fi |
|
6164 |
else |
|
6165 |
NMEDIT="$ac_cv_prog_NMEDIT" |
|
6166 |
fi |
|
6167 |
||
6168 |
if test -n "$ac_tool_prefix"; then |
|
6169 |
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
|
6170 |
set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
|
6171 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6172 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6173 |
if test "${ac_cv_prog_LIPO+set}" = set; then : |
|
6174 |
$as_echo_n "(cached) " >&6 |
|
6175 |
else |
|
6176 |
if test -n "$LIPO"; then |
|
6177 |
ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
|
6178 |
else |
|
6179 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6180 |
for as_dir in $PATH |
|
6181 |
do |
|
6182 |
IFS=$as_save_IFS |
|
6183 |
test -z "$as_dir" && as_dir=. |
|
6184 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6185 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6186 |
ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
|
6187 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6188 |
break 2 |
|
6189 |
fi |
|
6190 |
done |
|
6191 |
done |
|
6192 |
IFS=$as_save_IFS |
|
6193 |
||
6194 |
fi |
|
6195 |
fi |
|
6196 |
LIPO=$ac_cv_prog_LIPO |
|
6197 |
if test -n "$LIPO"; then |
|
6198 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
|
6199 |
$as_echo "$LIPO" >&6; } |
|
6200 |
else |
|
6201 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6202 |
$as_echo "no" >&6; } |
|
6203 |
fi |
|
6204 |
||
6205 |
||
6206 |
fi |
|
6207 |
if test -z "$ac_cv_prog_LIPO"; then |
|
6208 |
ac_ct_LIPO=$LIPO |
|
6209 |
# Extract the first word of "lipo", so it can be a program name with args. |
|
6210 |
set dummy lipo; ac_word=$2 |
|
6211 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6212 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6213 |
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : |
|
6214 |
$as_echo_n "(cached) " >&6 |
|
6215 |
else |
|
6216 |
if test -n "$ac_ct_LIPO"; then |
|
6217 |
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
|
6218 |
else |
|
6219 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6220 |
for as_dir in $PATH |
|
6221 |
do |
|
6222 |
IFS=$as_save_IFS |
|
6223 |
test -z "$as_dir" && as_dir=. |
|
6224 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6225 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6226 |
ac_cv_prog_ac_ct_LIPO="lipo" |
|
6227 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6228 |
break 2 |
|
6229 |
fi |
|
6230 |
done |
|
6231 |
done |
|
6232 |
IFS=$as_save_IFS |
|
6233 |
||
6234 |
fi |
|
6235 |
fi |
|
6236 |
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
|
6237 |
if test -n "$ac_ct_LIPO"; then |
|
6238 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
|
6239 |
$as_echo "$ac_ct_LIPO" >&6; } |
|
6240 |
else |
|
6241 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6242 |
$as_echo "no" >&6; } |
|
6243 |
fi |
|
6244 |
||
6245 |
if test "x$ac_ct_LIPO" = x; then |
|
6246 |
LIPO=":" |
|
6247 |
else |
|
6248 |
case $cross_compiling:$ac_tool_warned in |
|
6249 |
yes:) |
|
6250 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
6251 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
6252 |
ac_tool_warned=yes ;; |
|
6253 |
esac |
|
6254 |
LIPO=$ac_ct_LIPO |
|
6255 |
fi |
|
6256 |
else |
|
6257 |
LIPO="$ac_cv_prog_LIPO" |
|
6258 |
fi |
|
6259 |
||
6260 |
if test -n "$ac_tool_prefix"; then |
|
6261 |
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
|
6262 |
set dummy ${ac_tool_prefix}otool; ac_word=$2 |
|
6263 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6264 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6265 |
if test "${ac_cv_prog_OTOOL+set}" = set; then : |
|
6266 |
$as_echo_n "(cached) " >&6 |
|
6267 |
else |
|
6268 |
if test -n "$OTOOL"; then |
|
6269 |
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
|
6270 |
else |
|
6271 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6272 |
for as_dir in $PATH |
|
6273 |
do |
|
6274 |
IFS=$as_save_IFS |
|
6275 |
test -z "$as_dir" && as_dir=. |
|
6276 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6277 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6278 |
ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
|
6279 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6280 |
break 2 |
|
6281 |
fi |
|
6282 |
done |
|
6283 |
done |
|
6284 |
IFS=$as_save_IFS |
|
6285 |
||
6286 |
fi |
|
6287 |
fi |
|
6288 |
OTOOL=$ac_cv_prog_OTOOL |
|
6289 |
if test -n "$OTOOL"; then |
|
6290 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
|
6291 |
$as_echo "$OTOOL" >&6; } |
|
6292 |
else |
|
6293 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6294 |
$as_echo "no" >&6; } |
|
6295 |
fi |
|
6296 |
||
6297 |
||
6298 |
fi |
|
6299 |
if test -z "$ac_cv_prog_OTOOL"; then |
|
6300 |
ac_ct_OTOOL=$OTOOL |
|
6301 |
# Extract the first word of "otool", so it can be a program name with args. |
|
6302 |
set dummy otool; ac_word=$2 |
|
6303 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6304 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6305 |
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : |
|
6306 |
$as_echo_n "(cached) " >&6 |
|
6307 |
else |
|
6308 |
if test -n "$ac_ct_OTOOL"; then |
|
6309 |
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
|
6310 |
else |
|
6311 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6312 |
for as_dir in $PATH |
|
6313 |
do |
|
6314 |
IFS=$as_save_IFS |
|
6315 |
test -z "$as_dir" && as_dir=. |
|
6316 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6317 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6318 |
ac_cv_prog_ac_ct_OTOOL="otool" |
|
6319 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6320 |
break 2 |
|
6321 |
fi |
|
6322 |
done |
|
6323 |
done |
|
6324 |
IFS=$as_save_IFS |
|
6325 |
||
6326 |
fi |
|
6327 |
fi |
|
6328 |
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
|
6329 |
if test -n "$ac_ct_OTOOL"; then |
|
6330 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
|
6331 |
$as_echo "$ac_ct_OTOOL" >&6; } |
|
6332 |
else |
|
6333 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6334 |
$as_echo "no" >&6; } |
|
6335 |
fi |
|
6336 |
||
6337 |
if test "x$ac_ct_OTOOL" = x; then |
|
6338 |
OTOOL=":" |
|
6339 |
else |
|
6340 |
case $cross_compiling:$ac_tool_warned in |
|
6341 |
yes:) |
|
6342 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
6343 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
6344 |
ac_tool_warned=yes ;; |
|
6345 |
esac |
|
6346 |
OTOOL=$ac_ct_OTOOL |
|
6347 |
fi |
|
6348 |
else |
|
6349 |
OTOOL="$ac_cv_prog_OTOOL" |
|
6350 |
fi |
|
6351 |
||
6352 |
if test -n "$ac_tool_prefix"; then |
|
6353 |
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
|
6354 |
set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
|
6355 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6356 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6357 |
if test "${ac_cv_prog_OTOOL64+set}" = set; then : |
|
6358 |
$as_echo_n "(cached) " >&6 |
|
6359 |
else |
|
6360 |
if test -n "$OTOOL64"; then |
|
6361 |
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
|
6362 |
else |
|
6363 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6364 |
for as_dir in $PATH |
|
6365 |
do |
|
6366 |
IFS=$as_save_IFS |
|
6367 |
test -z "$as_dir" && as_dir=. |
|
6368 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6369 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6370 |
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
|
6371 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6372 |
break 2 |
|
6373 |
fi |
|
6374 |
done |
|
6375 |
done |
|
6376 |
IFS=$as_save_IFS |
|
6377 |
||
6378 |
fi |
|
6379 |
fi |
|
6380 |
OTOOL64=$ac_cv_prog_OTOOL64 |
|
6381 |
if test -n "$OTOOL64"; then |
|
6382 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
|
6383 |
$as_echo "$OTOOL64" >&6; } |
|
6384 |
else |
|
6385 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6386 |
$as_echo "no" >&6; } |
|
6387 |
fi |
|
6388 |
||
6389 |
||
6390 |
fi |
|
6391 |
if test -z "$ac_cv_prog_OTOOL64"; then |
|
6392 |
ac_ct_OTOOL64=$OTOOL64 |
|
6393 |
# Extract the first word of "otool64", so it can be a program name with args. |
|
6394 |
set dummy otool64; ac_word=$2 |
|
6395 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
6396 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
6397 |
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : |
|
6398 |
$as_echo_n "(cached) " >&6 |
|
6399 |
else |
|
6400 |
if test -n "$ac_ct_OTOOL64"; then |
|
6401 |
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
|
6402 |
else |
|
6403 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
6404 |
for as_dir in $PATH |
|
6405 |
do |
|
6406 |
IFS=$as_save_IFS |
|
6407 |
test -z "$as_dir" && as_dir=. |
|
6408 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
6409 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
6410 |
ac_cv_prog_ac_ct_OTOOL64="otool64" |
|
6411 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
6412 |
break 2 |
|
6413 |
fi |
|
6414 |
done |
|
6415 |
done |
|
6416 |
IFS=$as_save_IFS |
|
6417 |
||
6418 |
fi |
|
6419 |
fi |
|
6420 |
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
|
6421 |
if test -n "$ac_ct_OTOOL64"; then |
|
6422 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
|
6423 |
$as_echo "$ac_ct_OTOOL64" >&6; } |
|
6424 |
else |
|
6425 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
6426 |
$as_echo "no" >&6; } |
|
6427 |
fi |
|
6428 |
||
6429 |
if test "x$ac_ct_OTOOL64" = x; then |
|
6430 |
OTOOL64=":" |
|
6431 |
else |
|
6432 |
case $cross_compiling:$ac_tool_warned in |
|
6433 |
yes:) |
|
6434 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
6435 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
6436 |
ac_tool_warned=yes ;; |
|
6437 |
esac |
|
6438 |
OTOOL64=$ac_ct_OTOOL64 |
|
6439 |
fi |
|
6440 |
else |
|
6441 |
OTOOL64="$ac_cv_prog_OTOOL64" |
|
6442 |
fi |
|
6443 |
||
6444 |
||
6445 |
||
6446 |
||
6447 |
||
6448 |
||
6449 |
||
6450 |
||
6451 |
||
6452 |
||
6453 |
||
6454 |
||
6455 |
||
6456 |
||
6457 |
||
6458 |
||
6459 |
||
6460 |
||
6461 |
||
6462 |
||
6463 |
||
6464 |
||
6465 |
||
6466 |
||
6467 |
||
6468 |
||
6469 |
||
6470 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
|
6471 |
$as_echo_n "checking for -single_module linker flag... " >&6; } |
|
6472 |
if test "${lt_cv_apple_cc_single_mod+set}" = set; then : |
|
6473 |
$as_echo_n "(cached) " >&6 |
|
6474 |
else |
|
6475 |
lt_cv_apple_cc_single_mod=no |
|
6476 |
if test -z "${LT_MULTI_MODULE}"; then |
|
6477 |
# By default we will add the -single_module flag. You can override |
|
6478 |
# by either setting the environment variable LT_MULTI_MODULE |
|
6479 |
# non-empty at configure time, or by adding -multi_module to the |
|
6480 |
# link flags. |
|
6481 |
rm -rf libconftest.dylib* |
|
6482 |
echo "int foo(void){return 1;}" > conftest.c |
|
6483 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
|
6484 |
-dynamiclib -Wl,-single_module conftest.c" >&5 |
|
6485 |
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
|
6486 |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
|
6487 |
_lt_result=$? |
|
6488 |
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
|
6489 |
lt_cv_apple_cc_single_mod=yes |
|
6490 |
else |
|
6491 |
cat conftest.err >&5 |
|
6492 |
fi |
|
6493 |
rm -rf libconftest.dylib* |
|
6494 |
rm -f conftest.* |
|
6495 |
fi |
|
6496 |
fi |
|
6497 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
|
6498 |
$as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
|
6499 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
|
6500 |
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
|
6501 |
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : |
|
6502 |
$as_echo_n "(cached) " >&6 |
|
6503 |
else |
|
6504 |
lt_cv_ld_exported_symbols_list=no |
|
6505 |
save_LDFLAGS=$LDFLAGS |
|
6506 |
echo "_main" > conftest.sym |
|
6507 |
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
|
6508 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6509 |
/* end confdefs.h. */ |
|
6510 |
||
6511 |
int |
|
6512 |
main () |
|
6513 |
{ |
|
6514 |
||
6515 |
; |
|
6516 |
return 0; |
|
6517 |
} |
|
6518 |
_ACEOF |
|
6519 |
if ac_fn_c_try_link "$LINENO"; then : |
|
6520 |
lt_cv_ld_exported_symbols_list=yes |
|
6521 |
else |
|
6522 |
lt_cv_ld_exported_symbols_list=no |
|
6523 |
fi |
|
6524 |
rm -f core conftest.err conftest.$ac_objext \ |
|
6525 |
conftest$ac_exeext conftest.$ac_ext |
|
6526 |
LDFLAGS="$save_LDFLAGS" |
|
6527 |
||
6528 |
fi |
|
6529 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
|
6530 |
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
|
6531 |
case $host_os in |
|
6532 |
rhapsody* | darwin1.[012]) |
|
6533 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
|
6534 |
darwin1.*) |
|
6535 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
|
6536 |
darwin*) # darwin 5.x on |
|
6537 |
# if running on 10.5 or later, the deployment target defaults |
|
6538 |
# to the OS version, if on x86, and 10.4, the deployment |
|
6539 |
# target defaults to 10.4. Don't you love it? |
|
6540 |
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
|
6541 |
10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
|
6542 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
|
6543 |
10.[012]*) |
|
6544 |
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
|
6545 |
10.*) |
|
6546 |
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
|
6547 |
esac |
|
6548 |
;; |
|
6549 |
esac |
|
6550 |
if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
|
6551 |
_lt_dar_single_mod='$single_module' |
|
6552 |
fi |
|
6553 |
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
|
6554 |
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
|
6555 |
else |
|
6556 |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
|
6557 |
fi |
|
6558 |
if test "$DSYMUTIL" != ":"; then |
|
6559 |
_lt_dsymutil='~$DSYMUTIL $lib || :' |
|
6560 |
else |
|
6561 |
_lt_dsymutil= |
|
6562 |
fi |
|
6563 |
;; |
|
6564 |
esac |
|
6565 |
||
6566 |
ac_ext=c |
|
6567 |
ac_cpp='$CPP $CPPFLAGS' |
|
6568 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6569 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6570 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
6571 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
|
6572 |
$as_echo_n "checking how to run the C preprocessor... " >&6; } |
|
6573 |
# On Suns, sometimes $CPP names a directory. |
|
6574 |
if test -n "$CPP" && test -d "$CPP"; then |
|
6575 |
CPP= |
|
6576 |
fi |
|
6577 |
if test -z "$CPP"; then |
|
6578 |
if test "${ac_cv_prog_CPP+set}" = set; then : |
|
6579 |
$as_echo_n "(cached) " >&6 |
|
6580 |
else |
|
6581 |
# Double quotes because CPP needs to be expanded |
|
6582 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
6583 |
do |
|
6584 |
ac_preproc_ok=false |
|
6585 |
for ac_c_preproc_warn_flag in '' yes |
|
6586 |
do |
|
6587 |
# Use a header file that comes with gcc, so configuring glibc |
|
6588 |
# with a fresh cross-compiler works. |
|
6589 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
6590 |
# <limits.h> exists even on freestanding compilers. |
|
6591 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
6592 |
# not just through cpp. "Syntax error" is here to catch this case. |
|
6593 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6594 |
/* end confdefs.h. */ |
|
6595 |
#ifdef __STDC__ |
|
6596 |
# include <limits.h> |
|
6597 |
#else |
|
6598 |
# include <assert.h> |
|
6599 |
#endif |
|
6600 |
Syntax error |
|
6601 |
_ACEOF |
|
6602 |
if ac_fn_c_try_cpp "$LINENO"; then : |
|
6603 |
||
6604 |
else |
|
6605 |
# Broken: fails on valid input. |
|
6606 |
continue |
|
6607 |
fi |
|
6608 |
rm -f conftest.err conftest.$ac_ext |
|
6609 |
||
6610 |
# OK, works on sane cases. Now check whether nonexistent headers |
|
6611 |
# can be detected and how. |
|
6612 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6613 |
/* end confdefs.h. */ |
|
6614 |
#include <ac_nonexistent.h> |
|
6615 |
_ACEOF |
|
6616 |
if ac_fn_c_try_cpp "$LINENO"; then : |
|
6617 |
# Broken: success on invalid input. |
|
6618 |
continue |
|
6619 |
else |
|
6620 |
# Passes both tests. |
|
6621 |
ac_preproc_ok=: |
|
6622 |
break |
|
6623 |
fi |
|
6624 |
rm -f conftest.err conftest.$ac_ext |
|
6625 |
||
6626 |
done |
|
6627 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
6628 |
rm -f conftest.err conftest.$ac_ext |
|
6629 |
if $ac_preproc_ok; then : |
|
6630 |
break |
|
6631 |
fi |
|
6632 |
||
6633 |
done |
|
6634 |
ac_cv_prog_CPP=$CPP |
|
6635 |
||
6636 |
fi |
|
6637 |
CPP=$ac_cv_prog_CPP |
|
6638 |
else |
|
6639 |
ac_cv_prog_CPP=$CPP |
|
6640 |
fi |
|
6641 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|
6642 |
$as_echo "$CPP" >&6; } |
|
6643 |
ac_preproc_ok=false |
|
6644 |
for ac_c_preproc_warn_flag in '' yes |
|
6645 |
do |
|
6646 |
# Use a header file that comes with gcc, so configuring glibc |
|
6647 |
# with a fresh cross-compiler works. |
|
6648 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
6649 |
# <limits.h> exists even on freestanding compilers. |
|
6650 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
6651 |
# not just through cpp. "Syntax error" is here to catch this case. |
|
6652 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6653 |
/* end confdefs.h. */ |
|
6654 |
#ifdef __STDC__ |
|
6655 |
# include <limits.h> |
|
6656 |
#else |
|
6657 |
# include <assert.h> |
|
6658 |
#endif |
|
6659 |
Syntax error |
|
6660 |
_ACEOF |
|
6661 |
if ac_fn_c_try_cpp "$LINENO"; then : |
|
6662 |
||
6663 |
else |
|
6664 |
# Broken: fails on valid input. |
|
6665 |
continue |
|
6666 |
fi |
|
6667 |
rm -f conftest.err conftest.$ac_ext |
|
6668 |
||
6669 |
# OK, works on sane cases. Now check whether nonexistent headers |
|
6670 |
# can be detected and how. |
|
6671 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6672 |
/* end confdefs.h. */ |
|
6673 |
#include <ac_nonexistent.h> |
|
6674 |
_ACEOF |
|
6675 |
if ac_fn_c_try_cpp "$LINENO"; then : |
|
6676 |
# Broken: success on invalid input. |
|
6677 |
continue |
|
6678 |
else |
|
6679 |
# Passes both tests. |
|
6680 |
ac_preproc_ok=: |
|
6681 |
break |
|
6682 |
fi |
|
6683 |
rm -f conftest.err conftest.$ac_ext |
|
6684 |
||
6685 |
done |
|
6686 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
6687 |
rm -f conftest.err conftest.$ac_ext |
|
6688 |
if $ac_preproc_ok; then : |
|
6689 |
||
6690 |
else |
|
6691 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
6692 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
6693 |
as_fn_error "C preprocessor \"$CPP\" fails sanity check |
|
6694 |
See \`config.log' for more details." "$LINENO" 5; } |
|
6695 |
fi |
|
6696 |
||
6697 |
ac_ext=c |
|
6698 |
ac_cpp='$CPP $CPPFLAGS' |
|
6699 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
6700 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
6701 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
6702 |
||
6703 |
||
6704 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
|
6705 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
|
6706 |
if test "${ac_cv_header_stdc+set}" = set; then : |
|
6707 |
$as_echo_n "(cached) " >&6 |
|
6708 |
else |
|
6709 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6710 |
/* end confdefs.h. */ |
|
6711 |
#include <stdlib.h> |
|
6712 |
#include <stdarg.h> |
|
6713 |
#include <string.h> |
|
6714 |
#include <float.h> |
|
6715 |
||
6716 |
int |
|
6717 |
main () |
|
6718 |
{ |
|
6719 |
||
6720 |
; |
|
6721 |
return 0; |
|
6722 |
} |
|
6723 |
_ACEOF |
|
6724 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
6725 |
ac_cv_header_stdc=yes |
|
6726 |
else |
|
6727 |
ac_cv_header_stdc=no |
|
6728 |
fi |
|
6729 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
6730 |
||
6731 |
if test $ac_cv_header_stdc = yes; then |
|
6732 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
6733 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6734 |
/* end confdefs.h. */ |
|
6735 |
#include <string.h> |
|
6736 |
||
6737 |
_ACEOF |
|
6738 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
6739 |
$EGREP "memchr" >/dev/null 2>&1; then : |
|
6740 |
||
6741 |
else |
|
6742 |
ac_cv_header_stdc=no |
|
6743 |
fi |
|
6744 |
rm -f conftest* |
|
6745 |
||
6746 |
fi |
|
6747 |
||
6748 |
if test $ac_cv_header_stdc = yes; then |
|
6749 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
6750 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6751 |
/* end confdefs.h. */ |
|
6752 |
#include <stdlib.h> |
|
6753 |
||
6754 |
_ACEOF |
|
6755 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
6756 |
$EGREP "free" >/dev/null 2>&1; then : |
|
6757 |
||
6758 |
else |
|
6759 |
ac_cv_header_stdc=no |
|
6760 |
fi |
|
6761 |
rm -f conftest* |
|
6762 |
||
6763 |
fi |
|
6764 |
||
6765 |
if test $ac_cv_header_stdc = yes; then |
|
6766 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
6767 |
if test "$cross_compiling" = yes; then : |
|
6768 |
: |
|
6769 |
else |
|
6770 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
6771 |
/* end confdefs.h. */ |
|
6772 |
#include <ctype.h> |
|
6773 |
#include <stdlib.h> |
|
6774 |
#if ((' ' & 0x0FF) == 0x020) |
|
6775 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
6776 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
6777 |
#else |
|
6778 |
# define ISLOWER(c) \ |
|
6779 |
(('a' <= (c) && (c) <= 'i') \ |
|
6780 |
|| ('j' <= (c) && (c) <= 'r') \ |
|
6781 |
|| ('s' <= (c) && (c) <= 'z')) |
|
6782 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
6783 |
#endif |
|
6784 |
||
6785 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
6786 |
int |
|
6787 |
main () |
|
6788 |
{ |
|
6789 |
int i; |
|
6790 |
for (i = 0; i < 256; i++) |
|
6791 |
if (XOR (islower (i), ISLOWER (i)) |
|
6792 |
|| toupper (i) != TOUPPER (i)) |
|
6793 |
return 2; |
|
6794 |
return 0; |
|
6795 |
} |
|
6796 |
_ACEOF |
|
6797 |
if ac_fn_c_try_run "$LINENO"; then : |
|
6798 |
||
6799 |
else |
|
6800 |
ac_cv_header_stdc=no |
|
6801 |
fi |
|
6802 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
6803 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
6804 |
fi |
|
6805 |
||
6806 |
fi |
|
6807 |
fi |
|
6808 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
|
6809 |
$as_echo "$ac_cv_header_stdc" >&6; } |
|
6810 |
if test $ac_cv_header_stdc = yes; then |
|
6811 |
||
6812 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
|
6813 |
||
6814 |
fi |
|
6815 |
||
6816 |
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
6817 |
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
6818 |
inttypes.h stdint.h unistd.h |
|
6819 |
do : |
|
6820 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
6821 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
|
6822 |
" |
|
6823 |
eval as_val=\$$as_ac_Header |
|
6824 |
if test "x$as_val" = x""yes; then : |
|
6825 |
cat >>confdefs.h <<_ACEOF |
|
6826 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
6827 |
_ACEOF |
|
6828 |
||
6829 |
fi |
|
6830 |
||
6831 |
done |
|
6832 |
||
6833 |
||
6834 |
for ac_header in dlfcn.h |
|
6835 |
do : |
|
6836 |
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
|
6837 |
" |
|
6838 |
if test "x$ac_cv_header_dlfcn_h" = x""yes; then : |
|
6839 |
cat >>confdefs.h <<_ACEOF |
|
6840 |
#define HAVE_DLFCN_H 1 |
|
6841 |
_ACEOF |
|
6842 |
||
6843 |
fi |
|
6844 |
||
6845 |
done |
|
6846 |
||
6847 |
||
6848 |
||
6849 |
# Set options |
|
6850 |
||
6851 |
||
6852 |
||
6853 |
enable_dlopen=no |
|
6854 |
||
6855 |
||
6856 |
enable_win32_dll=no |
|
6857 |
||
6858 |
||
6859 |
# Check whether --enable-shared was given. |
|
6860 |
if test "${enable_shared+set}" = set; then : |
|
6861 |
enableval=$enable_shared; p=${PACKAGE-default} |
|
6862 |
case $enableval in |
|
6863 |
yes) enable_shared=yes ;; |
|
6864 |
no) enable_shared=no ;; |
|
6865 |
*) |
|
6866 |
enable_shared=no |
|
6867 |
# Look at the argument we got. We use all the common list separators. |
|
6868 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
6869 |
for pkg in $enableval; do |
|
6870 |
IFS="$lt_save_ifs" |
|
6871 |
if test "X$pkg" = "X$p"; then |
|
6872 |
enable_shared=yes |
|
6873 |
fi |
|
6874 |
done |
|
6875 |
IFS="$lt_save_ifs" |
|
6876 |
;; |
|
6877 |
esac |
|
6878 |
else |
|
6879 |
enable_shared=yes |
|
6880 |
fi |
|
6881 |
||
6882 |
||
6883 |
||
6884 |
||
6885 |
||
6886 |
||
6887 |
||
6888 |
||
6889 |
||
6890 |
# Check whether --enable-static was given. |
|
6891 |
if test "${enable_static+set}" = set; then : |
|
6892 |
enableval=$enable_static; p=${PACKAGE-default} |
|
6893 |
case $enableval in |
|
6894 |
yes) enable_static=yes ;; |
|
6895 |
no) enable_static=no ;; |
|
6896 |
*) |
|
6897 |
enable_static=no |
|
6898 |
# Look at the argument we got. We use all the common list separators. |
|
6899 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
6900 |
for pkg in $enableval; do |
|
6901 |
IFS="$lt_save_ifs" |
|
6902 |
if test "X$pkg" = "X$p"; then |
|
6903 |
enable_static=yes |
|
6904 |
fi |
|
6905 |
done |
|
6906 |
IFS="$lt_save_ifs" |
|
6907 |
;; |
|
6908 |
esac |
|
6909 |
else |
|
6910 |
enable_static=yes |
|
6911 |
fi |
|
6912 |
||
6913 |
||
6914 |
||
6915 |
||
6916 |
||
6917 |
||
6918 |
||
6919 |
||
6920 |
||
6921 |
||
6922 |
# Check whether --with-pic was given. |
|
6923 |
if test "${with_pic+set}" = set; then : |
|
6924 |
withval=$with_pic; pic_mode="$withval" |
|
6925 |
else |
|
6926 |
pic_mode=default |
|
6927 |
fi |
|
6928 |
||
6929 |
||
6930 |
test -z "$pic_mode" && pic_mode=default |
|
6931 |
||
6932 |
||
6933 |
||
6934 |
||
6935 |
||
6936 |
||
6937 |
||
6938 |
# Check whether --enable-fast-install was given. |
|
6939 |
if test "${enable_fast_install+set}" = set; then : |
|
6940 |
enableval=$enable_fast_install; p=${PACKAGE-default} |
|
6941 |
case $enableval in |
|
6942 |
yes) enable_fast_install=yes ;; |
|
6943 |
no) enable_fast_install=no ;; |
|
6944 |
*) |
|
6945 |
enable_fast_install=no |
|
6946 |
# Look at the argument we got. We use all the common list separators. |
|
6947 |
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
|
6948 |
for pkg in $enableval; do |
|
6949 |
IFS="$lt_save_ifs" |
|
6950 |
if test "X$pkg" = "X$p"; then |
|
6951 |
enable_fast_install=yes |
|
6952 |
fi |
|
6953 |
done |
|
6954 |
IFS="$lt_save_ifs" |
|
6955 |
;; |
|
6956 |
esac |
|
6957 |
else |
|
6958 |
enable_fast_install=yes |
|
6959 |
fi |
|
6960 |
||
6961 |
||
6962 |
||
6963 |
||
6964 |
||
6965 |
||
6966 |
||
6967 |
||
6968 |
||
6969 |
||
6970 |
||
6971 |
# This can be used to rebuild libtool when needed |
|
6972 |
LIBTOOL_DEPS="$ltmain" |
|
6973 |
||
6974 |
# Always use our own libtool. |
|
6975 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
|
6976 |
||
6977 |
||
6978 |
||
6979 |
||
6980 |
||
6981 |
||
6982 |
||
6983 |
||
6984 |
||
6985 |
||
6986 |
||
6987 |
||
6988 |
||
6989 |
||
6990 |
||
6991 |
||
6992 |
||
6993 |
||
6994 |
||
6995 |
||
6996 |
||
6997 |
||
6998 |
||
6999 |
||
7000 |
||
7001 |
test -z "$LN_S" && LN_S="ln -s" |
|
7002 |
||
7003 |
||
7004 |
||
7005 |
||
7006 |
||
7007 |
||
7008 |
||
7009 |
||
7010 |
||
7011 |
||
7012 |
||
7013 |
||
7014 |
||
7015 |
||
7016 |
if test -n "${ZSH_VERSION+set}" ; then |
|
7017 |
setopt NO_GLOB_SUBST |
|
7018 |
fi |
|
7019 |
||
7020 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
|
7021 |
$as_echo_n "checking for objdir... " >&6; } |
|
7022 |
if test "${lt_cv_objdir+set}" = set; then : |
|
7023 |
$as_echo_n "(cached) " >&6 |
|
7024 |
else |
|
7025 |
rm -f .libs 2>/dev/null |
|
7026 |
mkdir .libs 2>/dev/null |
|
7027 |
if test -d .libs; then |
|
7028 |
lt_cv_objdir=.libs |
|
7029 |
else |
|
7030 |
# MS-DOS does not allow filenames that begin with a dot. |
|
7031 |
lt_cv_objdir=_libs |
|
7032 |
fi |
|
7033 |
rmdir .libs 2>/dev/null |
|
7034 |
fi |
|
7035 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
|
7036 |
$as_echo "$lt_cv_objdir" >&6; } |
|
7037 |
objdir=$lt_cv_objdir |
|
7038 |
||
7039 |
||
7040 |
||
7041 |
||
7042 |
||
7043 |
cat >>confdefs.h <<_ACEOF |
|
7044 |
#define LT_OBJDIR "$lt_cv_objdir/" |
|
7045 |
_ACEOF |
|
7046 |
||
7047 |
||
7048 |
||
7049 |
||
7050 |
||
7051 |
||
7052 |
||
7053 |
||
7054 |
||
7055 |
||
7056 |
||
7057 |
||
7058 |
||
7059 |
||
7060 |
||
7061 |
||
7062 |
||
7063 |
case $host_os in |
|
7064 |
aix3*) |
|
7065 |
# AIX sometimes has problems with the GCC collect2 program. For some |
|
7066 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
|
7067 |
# vanish in a puff of smoke. |
|
7068 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
|
7069 |
COLLECT_NAMES= |
|
7070 |
export COLLECT_NAMES |
|
7071 |
fi |
|
7072 |
;; |
|
7073 |
esac |
|
7074 |
||
7075 |
# Sed substitution that helps us do robust quoting. It backslashifies |
|
7076 |
# metacharacters that are still active within double-quoted strings. |
|
7077 |
sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
|
7078 |
||
7079 |
# Same as above, but do not quote variable references. |
|
7080 |
double_quote_subst='s/\(["`\\]\)/\\\1/g' |
|
7081 |
||
7082 |
# Sed substitution to delay expansion of an escaped shell variable in a |
|
7083 |
# double_quote_subst'ed string. |
|
7084 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
|
7085 |
||
7086 |
# Sed substitution to delay expansion of an escaped single quote. |
|
7087 |
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
|
7088 |
||
7089 |
# Sed substitution to avoid accidental globbing in evaled expressions |
|
7090 |
no_glob_subst='s/\*/\\\*/g' |
|
7091 |
||
7092 |
# Global variables: |
|
7093 |
ofile=libtool |
|
7094 |
can_build_shared=yes |
|
7095 |
||
7096 |
# All known linkers require a `.a' archive for static linking (except MSVC, |
|
7097 |
# which needs '.lib'). |
|
7098 |
libext=a |
|
7099 |
||
7100 |
with_gnu_ld="$lt_cv_prog_gnu_ld" |
|
7101 |
||
7102 |
old_CC="$CC" |
|
7103 |
old_CFLAGS="$CFLAGS" |
|
7104 |
||
7105 |
# Set sane defaults for various variables |
|
7106 |
test -z "$CC" && CC=cc |
|
7107 |
test -z "$LTCC" && LTCC=$CC |
|
7108 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
|
7109 |
test -z "$LD" && LD=ld |
|
7110 |
test -z "$ac_objext" && ac_objext=o |
|
7111 |
||
7112 |
for cc_temp in $compiler""; do |
|
7113 |
case $cc_temp in |
|
7114 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
7115 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
7116 |
\-*) ;; |
|
7117 |
*) break;; |
|
7118 |
esac |
|
7119 |
done |
|
7120 |
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
7121 |
||
7122 |
||
7123 |
# Only perform the check for file, if the check method requires it |
|
7124 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
|
7125 |
case $deplibs_check_method in |
|
7126 |
file_magic*) |
|
7127 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
|
7128 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
|
7129 |
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
|
7130 |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
|
7131 |
$as_echo_n "(cached) " >&6 |
|
7132 |
else |
|
7133 |
case $MAGIC_CMD in |
|
7134 |
[\\/*] | ?:[\\/]*) |
|
7135 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
7136 |
;; |
|
7137 |
*) |
|
7138 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
|
7139 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
7140 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
|
7141 |
for ac_dir in $ac_dummy; do |
|
7142 |
IFS="$lt_save_ifs" |
|
7143 |
test -z "$ac_dir" && ac_dir=. |
|
7144 |
if test -f $ac_dir/${ac_tool_prefix}file; then |
|
7145 |
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
|
7146 |
if test -n "$file_magic_test_file"; then |
|
7147 |
case $deplibs_check_method in |
|
7148 |
"file_magic "*) |
|
7149 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
|
7150 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
7151 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
7152 |
$EGREP "$file_magic_regex" > /dev/null; then |
|
7153 |
: |
|
7154 |
else |
|
7155 |
cat <<_LT_EOF 1>&2 |
|
7156 |
||
7157 |
*** Warning: the command libtool uses to detect shared libraries, |
|
7158 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
|
7159 |
*** The result is that libtool may fail to recognize shared libraries |
|
7160 |
*** as such. This will affect the creation of libtool libraries that |
|
7161 |
*** depend on shared libraries, but programs linked with such libtool |
|
7162 |
*** libraries will work regardless of this problem. Nevertheless, you |
|
7163 |
*** may want to report the problem to your system manager and/or to |
|
7164 |
*** bug-libtool@gnu.org |
|
7165 |
||
7166 |
_LT_EOF |
|
7167 |
fi ;; |
|
7168 |
esac |
|
7169 |
fi |
|
7170 |
break |
|
7171 |
fi |
|
7172 |
done |
|
7173 |
IFS="$lt_save_ifs" |
|
7174 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
|
7175 |
;; |
|
7176 |
esac |
|
7177 |
fi |
|
7178 |
||
7179 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
7180 |
if test -n "$MAGIC_CMD"; then |
|
7181 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
|
7182 |
$as_echo "$MAGIC_CMD" >&6; } |
|
7183 |
else |
|
7184 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
7185 |
$as_echo "no" >&6; } |
|
7186 |
fi |
|
7187 |
||
7188 |
||
7189 |
||
7190 |
||
7191 |
||
7192 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
|
7193 |
if test -n "$ac_tool_prefix"; then |
|
7194 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
|
7195 |
$as_echo_n "checking for file... " >&6; } |
|
7196 |
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
|
7197 |
$as_echo_n "(cached) " >&6 |
|
7198 |
else |
|
7199 |
case $MAGIC_CMD in |
|
7200 |
[\\/*] | ?:[\\/]*) |
|
7201 |
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
|
7202 |
;; |
|
7203 |
*) |
|
7204 |
lt_save_MAGIC_CMD="$MAGIC_CMD" |
|
7205 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
7206 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
|
7207 |
for ac_dir in $ac_dummy; do |
|
7208 |
IFS="$lt_save_ifs" |
|
7209 |
test -z "$ac_dir" && ac_dir=. |
|
7210 |
if test -f $ac_dir/file; then |
|
7211 |
lt_cv_path_MAGIC_CMD="$ac_dir/file" |
|
7212 |
if test -n "$file_magic_test_file"; then |
|
7213 |
case $deplibs_check_method in |
|
7214 |
"file_magic "*) |
|
7215 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
|
7216 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
7217 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
|
7218 |
$EGREP "$file_magic_regex" > /dev/null; then |
|
7219 |
: |
|
7220 |
else |
|
7221 |
cat <<_LT_EOF 1>&2 |
|
7222 |
||
7223 |
*** Warning: the command libtool uses to detect shared libraries, |
|
7224 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
|
7225 |
*** The result is that libtool may fail to recognize shared libraries |
|
7226 |
*** as such. This will affect the creation of libtool libraries that |
|
7227 |
*** depend on shared libraries, but programs linked with such libtool |
|
7228 |
*** libraries will work regardless of this problem. Nevertheless, you |
|
7229 |
*** may want to report the problem to your system manager and/or to |
|
7230 |
*** bug-libtool@gnu.org |
|
7231 |
||
7232 |
_LT_EOF |
|
7233 |
fi ;; |
|
7234 |
esac |
|
7235 |
fi |
|
7236 |
break |
|
7237 |
fi |
|
7238 |
done |
|
7239 |
IFS="$lt_save_ifs" |
|
7240 |
MAGIC_CMD="$lt_save_MAGIC_CMD" |
|
7241 |
;; |
|
7242 |
esac |
|
7243 |
fi |
|
7244 |
||
7245 |
MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
|
7246 |
if test -n "$MAGIC_CMD"; then |
|
7247 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
|
7248 |
$as_echo "$MAGIC_CMD" >&6; } |
|
7249 |
else |
|
7250 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
7251 |
$as_echo "no" >&6; } |
|
7252 |
fi |
|
7253 |
||
7254 |
||
7255 |
else |
|
7256 |
MAGIC_CMD=: |
|
7257 |
fi |
|
7258 |
fi |
|
7259 |
||
7260 |
fi |
|
7261 |
;; |
|
7262 |
esac |
|
7263 |
||
7264 |
# Use C for the default configuration in the libtool script |
|
7265 |
||
7266 |
lt_save_CC="$CC" |
|
7267 |
ac_ext=c |
|
7268 |
ac_cpp='$CPP $CPPFLAGS' |
|
7269 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
7270 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
7271 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
7272 |
||
7273 |
||
7274 |
# Source file extension for C test sources. |
|
7275 |
ac_ext=c |
|
7276 |
||
7277 |
# Object file extension for compiled C test sources. |
|
7278 |
objext=o |
|
7279 |
objext=$objext |
|
7280 |
||
7281 |
# Code to be used in simple compile tests |
|
7282 |
lt_simple_compile_test_code="int some_variable = 0;" |
|
7283 |
||
7284 |
# Code to be used in simple link tests |
|
7285 |
lt_simple_link_test_code='int main(){return(0);}' |
|
7286 |
||
7287 |
||
7288 |
||
7289 |
||
7290 |
||
7291 |
||
7292 |
||
7293 |
# If no C compiler was specified, use CC. |
|
7294 |
LTCC=${LTCC-"$CC"} |
|
7295 |
||
7296 |
# If no C compiler flags were specified, use CFLAGS. |
|
7297 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
7298 |
||
7299 |
# Allow CC to be a program name with arguments. |
|
7300 |
compiler=$CC |
|
7301 |
||
7302 |
# Save the default compiler, since it gets overwritten when the other |
|
7303 |
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
|
7304 |
compiler_DEFAULT=$CC |
|
7305 |
||
7306 |
# save warnings/boilerplate of simple test code |
|
7307 |
ac_outfile=conftest.$ac_objext |
|
7308 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
7309 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
7310 |
_lt_compiler_boilerplate=`cat conftest.err` |
|
7311 |
$RM conftest* |
|
7312 |
||
7313 |
ac_outfile=conftest.$ac_objext |
|
7314 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext |
|
7315 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
7316 |
_lt_linker_boilerplate=`cat conftest.err` |
|
7317 |
$RM -r conftest* |
|
7318 |
||
7319 |
||
7320 |
## CAVEAT EMPTOR: |
|
7321 |
## There is no encapsulation within the following macros, do not change |
|
7322 |
## the running order or otherwise move them around unless you know exactly |
|
7323 |
## what you are doing... |
|
7324 |
if test -n "$compiler"; then |
|
7325 |
||
7326 |
lt_prog_compiler_no_builtin_flag= |
|
7327 |
||
7328 |
if test "$GCC" = yes; then |
|
7329 |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
|
7330 |
||
7331 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
|
7332 |
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
|
7333 |
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : |
|
7334 |
$as_echo_n "(cached) " >&6 |
|
7335 |
else |
|
7336 |
lt_cv_prog_compiler_rtti_exceptions=no |
|
7337 |
ac_outfile=conftest.$ac_objext |
|
7338 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
7339 |
lt_compiler_flag="-fno-rtti -fno-exceptions" |
|
7340 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
7341 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
7342 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
7343 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
7344 |
# The option is referenced via a variable to avoid confusing sed. |
|
7345 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
7346 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
7347 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
7348 |
-e 's:$: $lt_compiler_flag:'` |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
7349 |
(eval echo "\"\$as_me:7349: $lt_compile\"" >&5) |
5
by edam
- updated README |
7350 |
(eval "$lt_compile" 2>conftest.err) |
7351 |
ac_status=$? |
|
7352 |
cat conftest.err >&5 |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
7353 |
echo "$as_me:7353: \$? = $ac_status" >&5 |
5
by edam
- updated README |
7354 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
7355 |
# The compiler can only warn and ignore the option if not recognized |
|
7356 |
# So say no if there are warnings other than the usual output. |
|
7357 |
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
7358 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
7359 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
7360 |
lt_cv_prog_compiler_rtti_exceptions=yes |
|
7361 |
fi |
|
7362 |
fi |
|
7363 |
$RM conftest* |
|
7364 |
||
7365 |
fi |
|
7366 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
|
7367 |
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
|
7368 |
||
7369 |
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
|
7370 |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
|
7371 |
else |
|
7372 |
: |
|
7373 |
fi |
|
7374 |
||
7375 |
fi |
|
7376 |
||
7377 |
||
7378 |
||
7379 |
||
7380 |
||
7381 |
||
7382 |
lt_prog_compiler_wl= |
|
7383 |
lt_prog_compiler_pic= |
|
7384 |
lt_prog_compiler_static= |
|
7385 |
||
7386 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
|
7387 |
$as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
|
7388 |
||
7389 |
if test "$GCC" = yes; then |
|
7390 |
lt_prog_compiler_wl='-Wl,' |
|
7391 |
lt_prog_compiler_static='-static' |
|
7392 |
||
7393 |
case $host_os in |
|
7394 |
aix*) |
|
7395 |
# All AIX code is PIC. |
|
7396 |
if test "$host_cpu" = ia64; then |
|
7397 |
# AIX 5 now supports IA64 processor |
|
7398 |
lt_prog_compiler_static='-Bstatic' |
|
7399 |
fi |
|
7400 |
;; |
|
7401 |
||
7402 |
amigaos*) |
|
7403 |
case $host_cpu in |
|
7404 |
powerpc) |
|
7405 |
# see comment about AmigaOS4 .so support |
|
7406 |
lt_prog_compiler_pic='-fPIC' |
|
7407 |
;; |
|
7408 |
m68k) |
|
7409 |
# FIXME: we need at least 68020 code to build shared libraries, but |
|
7410 |
# adding the `-m68020' flag to GCC prevents building anything better, |
|
7411 |
# like `-m68040'. |
|
7412 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
|
7413 |
;; |
|
7414 |
esac |
|
7415 |
;; |
|
7416 |
||
7417 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
7418 |
# PIC is the default for these OSes. |
|
7419 |
;; |
|
7420 |
||
7421 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
|
7422 |
# This hack is so that the source file can tell whether it is being |
|
7423 |
# built for inclusion in a dll (and should export symbols for example). |
|
7424 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
|
7425 |
# (--disable-auto-import) libraries |
|
7426 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
|
7427 |
;; |
|
7428 |
||
7429 |
darwin* | rhapsody*) |
|
7430 |
# PIC is the default on this platform |
|
7431 |
# Common symbols not allowed in MH_DYLIB files |
|
7432 |
lt_prog_compiler_pic='-fno-common' |
|
7433 |
;; |
|
7434 |
||
7435 |
hpux*) |
|
7436 |
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
|
7437 |
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
|
7438 |
# sets the default TLS model and affects inlining. |
|
7439 |
case $host_cpu in |
|
7440 |
hppa*64*) |
|
7441 |
# +Z the default |
|
7442 |
;; |
|
7443 |
*) |
|
7444 |
lt_prog_compiler_pic='-fPIC' |
|
7445 |
;; |
|
7446 |
esac |
|
7447 |
;; |
|
7448 |
||
7449 |
interix[3-9]*) |
|
7450 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
7451 |
# Instead, we relocate shared libraries at runtime. |
|
7452 |
;; |
|
7453 |
||
7454 |
msdosdjgpp*) |
|
7455 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
|
7456 |
# on systems that don't support them. |
|
7457 |
lt_prog_compiler_can_build_shared=no |
|
7458 |
enable_shared=no |
|
7459 |
;; |
|
7460 |
||
7461 |
*nto* | *qnx*) |
|
7462 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
|
7463 |
# it will coredump. |
|
7464 |
lt_prog_compiler_pic='-fPIC -shared' |
|
7465 |
;; |
|
7466 |
||
7467 |
sysv4*MP*) |
|
7468 |
if test -d /usr/nec; then |
|
7469 |
lt_prog_compiler_pic=-Kconform_pic |
|
7470 |
fi |
|
7471 |
;; |
|
7472 |
||
7473 |
*) |
|
7474 |
lt_prog_compiler_pic='-fPIC' |
|
7475 |
;; |
|
7476 |
esac |
|
7477 |
else |
|
7478 |
# PORTME Check for flag to pass linker flags through the system compiler. |
|
7479 |
case $host_os in |
|
7480 |
aix*) |
|
7481 |
lt_prog_compiler_wl='-Wl,' |
|
7482 |
if test "$host_cpu" = ia64; then |
|
7483 |
# AIX 5 now supports IA64 processor |
|
7484 |
lt_prog_compiler_static='-Bstatic' |
|
7485 |
else |
|
7486 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
|
7487 |
fi |
|
7488 |
;; |
|
7489 |
||
7490 |
mingw* | cygwin* | pw32* | os2* | cegcc*) |
|
7491 |
# This hack is so that the source file can tell whether it is being |
|
7492 |
# built for inclusion in a dll (and should export symbols for example). |
|
7493 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
|
7494 |
;; |
|
7495 |
||
7496 |
hpux9* | hpux10* | hpux11*) |
|
7497 |
lt_prog_compiler_wl='-Wl,' |
|
7498 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
|
7499 |
# not for PA HP-UX. |
|
7500 |
case $host_cpu in |
|
7501 |
hppa*64*|ia64*) |
|
7502 |
# +Z the default |
|
7503 |
;; |
|
7504 |
*) |
|
7505 |
lt_prog_compiler_pic='+Z' |
|
7506 |
;; |
|
7507 |
esac |
|
7508 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
|
7509 |
lt_prog_compiler_static='${wl}-a ${wl}archive' |
|
7510 |
;; |
|
7511 |
||
7512 |
irix5* | irix6* | nonstopux*) |
|
7513 |
lt_prog_compiler_wl='-Wl,' |
|
7514 |
# PIC (with -KPIC) is the default. |
|
7515 |
lt_prog_compiler_static='-non_shared' |
|
7516 |
;; |
|
7517 |
||
7518 |
linux* | k*bsd*-gnu) |
|
7519 |
case $cc_basename in |
|
7520 |
# old Intel for x86_64 which still supported -KPIC. |
|
7521 |
ecc*) |
|
7522 |
lt_prog_compiler_wl='-Wl,' |
|
7523 |
lt_prog_compiler_pic='-KPIC' |
|
7524 |
lt_prog_compiler_static='-static' |
|
7525 |
;; |
|
7526 |
# icc used to be incompatible with GCC. |
|
7527 |
# ICC 10 doesn't accept -KPIC any more. |
|
7528 |
icc* | ifort*) |
|
7529 |
lt_prog_compiler_wl='-Wl,' |
|
7530 |
lt_prog_compiler_pic='-fPIC' |
|
7531 |
lt_prog_compiler_static='-static' |
|
7532 |
;; |
|
7533 |
# Lahey Fortran 8.1. |
|
7534 |
lf95*) |
|
7535 |
lt_prog_compiler_wl='-Wl,' |
|
7536 |
lt_prog_compiler_pic='--shared' |
|
7537 |
lt_prog_compiler_static='--static' |
|
7538 |
;; |
|
7539 |
pgcc* | pgf77* | pgf90* | pgf95*) |
|
7540 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
|
7541 |
# which looks to be a dead project) |
|
7542 |
lt_prog_compiler_wl='-Wl,' |
|
7543 |
lt_prog_compiler_pic='-fpic' |
|
7544 |
lt_prog_compiler_static='-Bstatic' |
|
7545 |
;; |
|
7546 |
ccc*) |
|
7547 |
lt_prog_compiler_wl='-Wl,' |
|
7548 |
# All Alpha code is PIC. |
|
7549 |
lt_prog_compiler_static='-non_shared' |
|
7550 |
;; |
|
7551 |
xl*) |
|
7552 |
# IBM XL C 8.0/Fortran 10.1 on PPC |
|
7553 |
lt_prog_compiler_wl='-Wl,' |
|
7554 |
lt_prog_compiler_pic='-qpic' |
|
7555 |
lt_prog_compiler_static='-qstaticlink' |
|
7556 |
;; |
|
7557 |
*) |
|
7558 |
case `$CC -V 2>&1 | sed 5q` in |
|
7559 |
*Sun\ C*) |
|
7560 |
# Sun C 5.9 |
|
7561 |
lt_prog_compiler_pic='-KPIC' |
|
7562 |
lt_prog_compiler_static='-Bstatic' |
|
7563 |
lt_prog_compiler_wl='-Wl,' |
|
7564 |
;; |
|
7565 |
*Sun\ F*) |
|
7566 |
# Sun Fortran 8.3 passes all unrecognized flags to the linker |
|
7567 |
lt_prog_compiler_pic='-KPIC' |
|
7568 |
lt_prog_compiler_static='-Bstatic' |
|
7569 |
lt_prog_compiler_wl='' |
|
7570 |
;; |
|
7571 |
esac |
|
7572 |
;; |
|
7573 |
esac |
|
7574 |
;; |
|
7575 |
||
7576 |
newsos6) |
|
7577 |
lt_prog_compiler_pic='-KPIC' |
|
7578 |
lt_prog_compiler_static='-Bstatic' |
|
7579 |
;; |
|
7580 |
||
7581 |
*nto* | *qnx*) |
|
7582 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
|
7583 |
# it will coredump. |
|
7584 |
lt_prog_compiler_pic='-fPIC -shared' |
|
7585 |
;; |
|
7586 |
||
7587 |
osf3* | osf4* | osf5*) |
|
7588 |
lt_prog_compiler_wl='-Wl,' |
|
7589 |
# All OSF/1 code is PIC. |
|
7590 |
lt_prog_compiler_static='-non_shared' |
|
7591 |
;; |
|
7592 |
||
7593 |
rdos*) |
|
7594 |
lt_prog_compiler_static='-non_shared' |
|
7595 |
;; |
|
7596 |
||
7597 |
solaris*) |
|
7598 |
lt_prog_compiler_pic='-KPIC' |
|
7599 |
lt_prog_compiler_static='-Bstatic' |
|
7600 |
case $cc_basename in |
|
7601 |
f77* | f90* | f95*) |
|
7602 |
lt_prog_compiler_wl='-Qoption ld ';; |
|
7603 |
*) |
|
7604 |
lt_prog_compiler_wl='-Wl,';; |
|
7605 |
esac |
|
7606 |
;; |
|
7607 |
||
7608 |
sunos4*) |
|
7609 |
lt_prog_compiler_wl='-Qoption ld ' |
|
7610 |
lt_prog_compiler_pic='-PIC' |
|
7611 |
lt_prog_compiler_static='-Bstatic' |
|
7612 |
;; |
|
7613 |
||
7614 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
|
7615 |
lt_prog_compiler_wl='-Wl,' |
|
7616 |
lt_prog_compiler_pic='-KPIC' |
|
7617 |
lt_prog_compiler_static='-Bstatic' |
|
7618 |
;; |
|
7619 |
||
7620 |
sysv4*MP*) |
|
7621 |
if test -d /usr/nec ;then |
|
7622 |
lt_prog_compiler_pic='-Kconform_pic' |
|
7623 |
lt_prog_compiler_static='-Bstatic' |
|
7624 |
fi |
|
7625 |
;; |
|
7626 |
||
7627 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
7628 |
lt_prog_compiler_wl='-Wl,' |
|
7629 |
lt_prog_compiler_pic='-KPIC' |
|
7630 |
lt_prog_compiler_static='-Bstatic' |
|
7631 |
;; |
|
7632 |
||
7633 |
unicos*) |
|
7634 |
lt_prog_compiler_wl='-Wl,' |
|
7635 |
lt_prog_compiler_can_build_shared=no |
|
7636 |
;; |
|
7637 |
||
7638 |
uts4*) |
|
7639 |
lt_prog_compiler_pic='-pic' |
|
7640 |
lt_prog_compiler_static='-Bstatic' |
|
7641 |
;; |
|
7642 |
||
7643 |
*) |
|
7644 |
lt_prog_compiler_can_build_shared=no |
|
7645 |
;; |
|
7646 |
esac |
|
7647 |
fi |
|
7648 |
||
7649 |
case $host_os in |
|
7650 |
# For platforms which do not support PIC, -DPIC is meaningless: |
|
7651 |
*djgpp*) |
|
7652 |
lt_prog_compiler_pic= |
|
7653 |
;; |
|
7654 |
*) |
|
7655 |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
|
7656 |
;; |
|
7657 |
esac |
|
7658 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
|
7659 |
$as_echo "$lt_prog_compiler_pic" >&6; } |
|
7660 |
||
7661 |
||
7662 |
||
7663 |
||
7664 |
||
7665 |
||
7666 |
# |
|
7667 |
# Check to make sure the PIC flag actually works. |
|
7668 |
# |
|
7669 |
if test -n "$lt_prog_compiler_pic"; then |
|
7670 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
|
7671 |
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
|
7672 |
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : |
|
7673 |
$as_echo_n "(cached) " >&6 |
|
7674 |
else |
|
7675 |
lt_cv_prog_compiler_pic_works=no |
|
7676 |
ac_outfile=conftest.$ac_objext |
|
7677 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
7678 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
|
7679 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
7680 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
7681 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
7682 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
7683 |
# The option is referenced via a variable to avoid confusing sed. |
|
7684 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
7685 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
7686 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
7687 |
-e 's:$: $lt_compiler_flag:'` |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
7688 |
(eval echo "\"\$as_me:7688: $lt_compile\"" >&5) |
5
by edam
- updated README |
7689 |
(eval "$lt_compile" 2>conftest.err) |
7690 |
ac_status=$? |
|
7691 |
cat conftest.err >&5 |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
7692 |
echo "$as_me:7692: \$? = $ac_status" >&5 |
5
by edam
- updated README |
7693 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
7694 |
# The compiler can only warn and ignore the option if not recognized |
|
7695 |
# So say no if there are warnings other than the usual output. |
|
7696 |
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
7697 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
7698 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
7699 |
lt_cv_prog_compiler_pic_works=yes |
|
7700 |
fi |
|
7701 |
fi |
|
7702 |
$RM conftest* |
|
7703 |
||
7704 |
fi |
|
7705 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
|
7706 |
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
|
7707 |
||
7708 |
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
|
7709 |
case $lt_prog_compiler_pic in |
|
7710 |
"" | " "*) ;; |
|
7711 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
|
7712 |
esac |
|
7713 |
else |
|
7714 |
lt_prog_compiler_pic= |
|
7715 |
lt_prog_compiler_can_build_shared=no |
|
7716 |
fi |
|
7717 |
||
7718 |
fi |
|
7719 |
||
7720 |
||
7721 |
||
7722 |
||
7723 |
||
7724 |
||
7725 |
# |
|
7726 |
# Check to make sure the static flag actually works. |
|
7727 |
# |
|
7728 |
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
|
7729 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
7730 |
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
|
7731 |
if test "${lt_cv_prog_compiler_static_works+set}" = set; then : |
|
7732 |
$as_echo_n "(cached) " >&6 |
|
7733 |
else |
|
7734 |
lt_cv_prog_compiler_static_works=no |
|
7735 |
save_LDFLAGS="$LDFLAGS" |
|
7736 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
7737 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
|
7738 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
7739 |
# The linker can only warn and ignore the option if not recognized |
|
7740 |
# So say no if there are warnings |
|
7741 |
if test -s conftest.err; then |
|
7742 |
# Append any errors to the config.log. |
|
7743 |
cat conftest.err 1>&5 |
|
7744 |
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
7745 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
7746 |
if diff conftest.exp conftest.er2 >/dev/null; then |
|
7747 |
lt_cv_prog_compiler_static_works=yes |
|
7748 |
fi |
|
7749 |
else |
|
7750 |
lt_cv_prog_compiler_static_works=yes |
|
7751 |
fi |
|
7752 |
fi |
|
7753 |
$RM -r conftest* |
|
7754 |
LDFLAGS="$save_LDFLAGS" |
|
7755 |
||
7756 |
fi |
|
7757 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
|
7758 |
$as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
|
7759 |
||
7760 |
if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
|
7761 |
: |
|
7762 |
else |
|
7763 |
lt_prog_compiler_static= |
|
7764 |
fi |
|
7765 |
||
7766 |
||
7767 |
||
7768 |
||
7769 |
||
7770 |
||
7771 |
||
7772 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
7773 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
|
7774 |
if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
|
7775 |
$as_echo_n "(cached) " >&6 |
|
7776 |
else |
|
7777 |
lt_cv_prog_compiler_c_o=no |
|
7778 |
$RM -r conftest 2>/dev/null |
|
7779 |
mkdir conftest |
|
7780 |
cd conftest |
|
7781 |
mkdir out |
|
7782 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
7783 |
||
7784 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
7785 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
7786 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
7787 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
7788 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
7789 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
7790 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
7791 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
7792 |
-e 's:$: $lt_compiler_flag:'` |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
7793 |
(eval echo "\"\$as_me:7793: $lt_compile\"" >&5) |
5
by edam
- updated README |
7794 |
(eval "$lt_compile" 2>out/conftest.err) |
7795 |
ac_status=$? |
|
7796 |
cat out/conftest.err >&5 |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
7797 |
echo "$as_me:7797: \$? = $ac_status" >&5 |
5
by edam
- updated README |
7798 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7799 |
then |
|
7800 |
# The compiler can only warn and ignore the option if not recognized |
|
7801 |
# So say no if there are warnings |
|
7802 |
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
7803 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
7804 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
7805 |
lt_cv_prog_compiler_c_o=yes |
|
7806 |
fi |
|
7807 |
fi |
|
7808 |
chmod u+w . 2>&5 |
|
7809 |
$RM conftest* |
|
7810 |
# SGI C++ compiler will create directory out/ii_files/ for |
|
7811 |
# template instantiation |
|
7812 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
|
7813 |
$RM out/* && rmdir out |
|
7814 |
cd .. |
|
7815 |
$RM -r conftest |
|
7816 |
$RM conftest* |
|
7817 |
||
7818 |
fi |
|
7819 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
|
7820 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
|
7821 |
||
7822 |
||
7823 |
||
7824 |
||
7825 |
||
7826 |
||
7827 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
7828 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
|
7829 |
if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
|
7830 |
$as_echo_n "(cached) " >&6 |
|
7831 |
else |
|
7832 |
lt_cv_prog_compiler_c_o=no |
|
7833 |
$RM -r conftest 2>/dev/null |
|
7834 |
mkdir conftest |
|
7835 |
cd conftest |
|
7836 |
mkdir out |
|
7837 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
7838 |
||
7839 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
7840 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
7841 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
7842 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
7843 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
7844 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
7845 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
7846 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
7847 |
-e 's:$: $lt_compiler_flag:'` |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
7848 |
(eval echo "\"\$as_me:7848: $lt_compile\"" >&5) |
5
by edam
- updated README |
7849 |
(eval "$lt_compile" 2>out/conftest.err) |
7850 |
ac_status=$? |
|
7851 |
cat out/conftest.err >&5 |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
7852 |
echo "$as_me:7852: \$? = $ac_status" >&5 |
5
by edam
- updated README |
7853 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7854 |
then |
|
7855 |
# The compiler can only warn and ignore the option if not recognized |
|
7856 |
# So say no if there are warnings |
|
7857 |
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
7858 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
7859 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
7860 |
lt_cv_prog_compiler_c_o=yes |
|
7861 |
fi |
|
7862 |
fi |
|
7863 |
chmod u+w . 2>&5 |
|
7864 |
$RM conftest* |
|
7865 |
# SGI C++ compiler will create directory out/ii_files/ for |
|
7866 |
# template instantiation |
|
7867 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
|
7868 |
$RM out/* && rmdir out |
|
7869 |
cd .. |
|
7870 |
$RM -r conftest |
|
7871 |
$RM conftest* |
|
7872 |
||
7873 |
fi |
|
7874 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
|
7875 |
$as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
|
7876 |
||
7877 |
||
7878 |
||
7879 |
||
7880 |
hard_links="nottested" |
|
7881 |
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
|
7882 |
# do not overwrite the value of need_locks provided by the user |
|
7883 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
|
7884 |
$as_echo_n "checking if we can lock with hard links... " >&6; } |
|
7885 |
hard_links=yes |
|
7886 |
$RM conftest* |
|
7887 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
7888 |
touch conftest.a |
|
7889 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
|
7890 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
7891 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
|
7892 |
$as_echo "$hard_links" >&6; } |
|
7893 |
if test "$hard_links" = no; then |
|
7894 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
7895 |
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
7896 |
need_locks=warn |
|
7897 |
fi |
|
7898 |
else |
|
7899 |
need_locks=no |
|
7900 |
fi |
|
7901 |
||
7902 |
||
7903 |
||
7904 |
||
7905 |
||
7906 |
||
7907 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
7908 |
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
|
7909 |
||
7910 |
runpath_var= |
|
7911 |
allow_undefined_flag= |
|
7912 |
always_export_symbols=no |
|
7913 |
archive_cmds= |
|
7914 |
archive_expsym_cmds= |
|
7915 |
compiler_needs_object=no |
|
7916 |
enable_shared_with_static_runtimes=no |
|
7917 |
export_dynamic_flag_spec= |
|
7918 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
7919 |
hardcode_automatic=no |
|
7920 |
hardcode_direct=no |
|
7921 |
hardcode_direct_absolute=no |
|
7922 |
hardcode_libdir_flag_spec= |
|
7923 |
hardcode_libdir_flag_spec_ld= |
|
7924 |
hardcode_libdir_separator= |
|
7925 |
hardcode_minus_L=no |
|
7926 |
hardcode_shlibpath_var=unsupported |
|
7927 |
inherit_rpath=no |
|
7928 |
link_all_deplibs=unknown |
|
7929 |
module_cmds= |
|
7930 |
module_expsym_cmds= |
|
7931 |
old_archive_from_new_cmds= |
|
7932 |
old_archive_from_expsyms_cmds= |
|
7933 |
thread_safe_flag_spec= |
|
7934 |
whole_archive_flag_spec= |
|
7935 |
# include_expsyms should be a list of space-separated symbols to be *always* |
|
7936 |
# included in the symbol list |
|
7937 |
include_expsyms= |
|
7938 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
|
7939 |
# it will be wrapped by ` (' and `)$', so one must not match beginning or |
|
7940 |
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
|
7941 |
# as well as any symbol that contains `d'. |
|
7942 |
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
|
7943 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
|
7944 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
|
7945 |
# the symbol is explicitly referenced. Since portable code cannot |
|
7946 |
# rely on this symbol name, it's probably fine to never include it in |
|
7947 |
# preloaded symbol tables. |
|
7948 |
# Exclude shared library initialization/finalization symbols. |
|
7949 |
extract_expsyms_cmds= |
|
7950 |
||
7951 |
case $host_os in |
|
7952 |
cygwin* | mingw* | pw32* | cegcc*) |
|
7953 |
# FIXME: the MSVC++ port hasn't been tested in a loooong time |
|
7954 |
# When not using gcc, we currently assume that we are using |
|
7955 |
# Microsoft Visual C++. |
|
7956 |
if test "$GCC" != yes; then |
|
7957 |
with_gnu_ld=no |
|
7958 |
fi |
|
7959 |
;; |
|
7960 |
interix*) |
|
7961 |
# we just hope/assume this is gcc and not c89 (= MSVC++) |
|
7962 |
with_gnu_ld=yes |
|
7963 |
;; |
|
7964 |
openbsd*) |
|
7965 |
with_gnu_ld=no |
|
7966 |
;; |
|
7967 |
linux* | k*bsd*-gnu) |
|
7968 |
link_all_deplibs=no |
|
7969 |
;; |
|
7970 |
esac |
|
7971 |
||
7972 |
ld_shlibs=yes |
|
7973 |
if test "$with_gnu_ld" = yes; then |
|
7974 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
|
7975 |
wlarc='${wl}' |
|
7976 |
||
7977 |
# Set some defaults for GNU ld with shared library support. These |
|
7978 |
# are reset later if shared libraries are not supported. Putting them |
|
7979 |
# here allows them to be overridden if necessary. |
|
7980 |
runpath_var=LD_RUN_PATH |
|
7981 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
7982 |
export_dynamic_flag_spec='${wl}--export-dynamic' |
|
7983 |
# ancient GNU ld didn't support --whole-archive et. al. |
|
7984 |
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
|
7985 |
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
7986 |
else |
|
7987 |
whole_archive_flag_spec= |
|
7988 |
fi |
|
7989 |
supports_anon_versioning=no |
|
7990 |
case `$LD -v 2>&1` in |
|
7991 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
|
7992 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
|
7993 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
|
7994 |
*\ 2.11.*) ;; # other 2.11 versions |
|
7995 |
*) supports_anon_versioning=yes ;; |
|
7996 |
esac |
|
7997 |
||
7998 |
# See if GNU ld supports shared libraries. |
|
7999 |
case $host_os in |
|
8000 |
aix[3-9]*) |
|
8001 |
# On AIX/PPC, the GNU linker is very broken |
|
8002 |
if test "$host_cpu" != ia64; then |
|
8003 |
ld_shlibs=no |
|
8004 |
cat <<_LT_EOF 1>&2 |
|
8005 |
||
8006 |
*** Warning: the GNU linker, at least up to release 2.9.1, is reported |
|
8007 |
*** to be unable to reliably create shared libraries on AIX. |
|
8008 |
*** Therefore, libtool is disabling shared libraries support. If you |
|
8009 |
*** really care for shared libraries, you may want to modify your PATH |
|
8010 |
*** so that a non-GNU linker is found, and then restart. |
|
8011 |
||
8012 |
_LT_EOF |
|
8013 |
fi |
|
8014 |
;; |
|
8015 |
||
8016 |
amigaos*) |
|
8017 |
case $host_cpu in |
|
8018 |
powerpc) |
|
8019 |
# see comment about AmigaOS4 .so support |
|
8020 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8021 |
archive_expsym_cmds='' |
|
8022 |
;; |
|
8023 |
m68k) |
|
8024 |
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)' |
|
8025 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8026 |
hardcode_minus_L=yes |
|
8027 |
;; |
|
8028 |
esac |
|
8029 |
;; |
|
8030 |
||
8031 |
beos*) |
|
8032 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
|
8033 |
allow_undefined_flag=unsupported |
|
8034 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
8035 |
# support --undefined. This deserves some investigation. FIXME |
|
8036 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8037 |
else |
|
8038 |
ld_shlibs=no |
|
8039 |
fi |
|
8040 |
;; |
|
8041 |
||
8042 |
cygwin* | mingw* | pw32* | cegcc*) |
|
8043 |
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
|
8044 |
# as there is no search path for DLLs. |
|
8045 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8046 |
allow_undefined_flag=unsupported |
|
8047 |
always_export_symbols=no |
|
8048 |
enable_shared_with_static_runtimes=yes |
|
8049 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
|
8050 |
||
8051 |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
|
8052 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
8053 |
# If the export-symbols file already is a .def file (1st line |
|
8054 |
# is EXPORTS), use it as is; otherwise, prepend... |
|
8055 |
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
8056 |
cp $export_symbols $output_objdir/$soname.def; |
|
8057 |
else |
|
8058 |
echo EXPORTS > $output_objdir/$soname.def; |
|
8059 |
cat $export_symbols >> $output_objdir/$soname.def; |
|
8060 |
fi~ |
|
8061 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
8062 |
else |
|
8063 |
ld_shlibs=no |
|
8064 |
fi |
|
8065 |
;; |
|
8066 |
||
8067 |
interix[3-9]*) |
|
8068 |
hardcode_direct=no |
|
8069 |
hardcode_shlibpath_var=no |
|
8070 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
8071 |
export_dynamic_flag_spec='${wl}-E' |
|
8072 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
8073 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
|
8074 |
# default) and relocated if they conflict, which is a slow very memory |
|
8075 |
# consuming and fragmenting process. To avoid this, we pick a random, |
|
8076 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
8077 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
8078 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
8079 |
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' |
|
8080 |
;; |
|
8081 |
||
8082 |
gnu* | linux* | tpf* | k*bsd*-gnu) |
|
8083 |
tmp_diet=no |
|
8084 |
if test "$host_os" = linux-dietlibc; then |
|
8085 |
case $cc_basename in |
|
8086 |
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
|
8087 |
esac |
|
8088 |
fi |
|
8089 |
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
|
8090 |
&& test "$tmp_diet" = no |
|
8091 |
then |
|
8092 |
tmp_addflag= |
|
8093 |
tmp_sharedflag='-shared' |
|
8094 |
case $cc_basename,$host_cpu in |
|
8095 |
pgcc*) # Portland Group C compiler |
|
8096 |
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
|
8097 |
tmp_addflag=' $pic_flag' |
|
8098 |
;; |
|
8099 |
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
|
8100 |
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
|
8101 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
|
8102 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
|
8103 |
tmp_addflag=' -i_dynamic' ;; |
|
8104 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
|
8105 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
|
8106 |
ifc* | ifort*) # Intel Fortran compiler |
|
8107 |
tmp_addflag=' -nofor_main' ;; |
|
8108 |
lf95*) # Lahey Fortran 8.1 |
|
8109 |
whole_archive_flag_spec= |
|
8110 |
tmp_sharedflag='--shared' ;; |
|
8111 |
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
|
8112 |
tmp_sharedflag='-qmkshrobj' |
|
8113 |
tmp_addflag= ;; |
|
8114 |
esac |
|
8115 |
case `$CC -V 2>&1 | sed 5q` in |
|
8116 |
*Sun\ C*) # Sun C 5.9 |
|
8117 |
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
|
8118 |
compiler_needs_object=yes |
|
8119 |
tmp_sharedflag='-G' ;; |
|
8120 |
*Sun\ F*) # Sun Fortran 8.3 |
|
8121 |
tmp_sharedflag='-G' ;; |
|
8122 |
esac |
|
8123 |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8124 |
||
8125 |
if test "x$supports_anon_versioning" = xyes; then |
|
8126 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
|
8127 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
8128 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
8129 |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
8130 |
fi |
|
8131 |
||
8132 |
case $cc_basename in |
|
8133 |
xlf*) |
|
8134 |
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
|
8135 |
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
|
8136 |
hardcode_libdir_flag_spec= |
|
8137 |
hardcode_libdir_flag_spec_ld='-rpath $libdir' |
|
8138 |
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
|
8139 |
if test "x$supports_anon_versioning" = xyes; then |
|
8140 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
|
8141 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
8142 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
8143 |
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
|
8144 |
fi |
|
8145 |
;; |
|
8146 |
esac |
|
8147 |
else |
|
8148 |
ld_shlibs=no |
|
8149 |
fi |
|
8150 |
;; |
|
8151 |
||
8152 |
netbsd* | netbsdelf*-gnu) |
|
8153 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
|
8154 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
|
8155 |
wlarc= |
|
8156 |
else |
|
8157 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8158 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
8159 |
fi |
|
8160 |
;; |
|
8161 |
||
8162 |
solaris*) |
|
8163 |
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
|
8164 |
ld_shlibs=no |
|
8165 |
cat <<_LT_EOF 1>&2 |
|
8166 |
||
8167 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
|
8168 |
*** create shared libraries on Solaris systems. Therefore, libtool |
|
8169 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
|
8170 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
|
8171 |
*** your PATH or compiler configuration so that the native linker is |
|
8172 |
*** used, and then restart. |
|
8173 |
||
8174 |
_LT_EOF |
|
8175 |
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
|
8176 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8177 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
8178 |
else |
|
8179 |
ld_shlibs=no |
|
8180 |
fi |
|
8181 |
;; |
|
8182 |
||
8183 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
|
8184 |
case `$LD -v 2>&1` in |
|
8185 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
|
8186 |
ld_shlibs=no |
|
8187 |
cat <<_LT_EOF 1>&2 |
|
8188 |
||
8189 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
|
8190 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
|
8191 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
|
8192 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
|
8193 |
*** your PATH or compiler configuration so that the native linker is |
|
8194 |
*** used, and then restart. |
|
8195 |
||
8196 |
_LT_EOF |
|
8197 |
;; |
|
8198 |
*) |
|
8199 |
# For security reasons, it is highly recommended that you always |
|
8200 |
# use absolute paths for naming shared libraries, and exclude the |
|
8201 |
# DT_RUNPATH tag from executables and libraries. But doing so |
|
8202 |
# requires that you compile everything twice, which is a pain. |
|
8203 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
|
8204 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
8205 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8206 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
8207 |
else |
|
8208 |
ld_shlibs=no |
|
8209 |
fi |
|
8210 |
;; |
|
8211 |
esac |
|
8212 |
;; |
|
8213 |
||
8214 |
sunos4*) |
|
8215 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
8216 |
wlarc= |
|
8217 |
hardcode_direct=yes |
|
8218 |
hardcode_shlibpath_var=no |
|
8219 |
;; |
|
8220 |
||
8221 |
*) |
|
8222 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
|
8223 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8224 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
8225 |
else |
|
8226 |
ld_shlibs=no |
|
8227 |
fi |
|
8228 |
;; |
|
8229 |
esac |
|
8230 |
||
8231 |
if test "$ld_shlibs" = no; then |
|
8232 |
runpath_var= |
|
8233 |
hardcode_libdir_flag_spec= |
|
8234 |
export_dynamic_flag_spec= |
|
8235 |
whole_archive_flag_spec= |
|
8236 |
fi |
|
8237 |
else |
|
8238 |
# PORTME fill in a description of your system's linker (not GNU ld) |
|
8239 |
case $host_os in |
|
8240 |
aix3*) |
|
8241 |
allow_undefined_flag=unsupported |
|
8242 |
always_export_symbols=yes |
|
8243 |
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' |
|
8244 |
# Note: this linker hardcodes the directories in LIBPATH if there |
|
8245 |
# are no directories specified by -L. |
|
8246 |
hardcode_minus_L=yes |
|
8247 |
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
|
8248 |
# Neither direct hardcoding nor static linking is supported with a |
|
8249 |
# broken collect2. |
|
8250 |
hardcode_direct=unsupported |
|
8251 |
fi |
|
8252 |
;; |
|
8253 |
||
8254 |
aix[4-9]*) |
|
8255 |
if test "$host_cpu" = ia64; then |
|
8256 |
# On IA64, the linker does run time linking by default, so we don't |
|
8257 |
# have to do anything special. |
|
8258 |
aix_use_runtimelinking=no |
|
8259 |
exp_sym_flag='-Bexport' |
|
8260 |
no_entry_flag="" |
|
8261 |
else |
|
8262 |
# If we're using GNU nm, then we don't want the "-C" option. |
|
8263 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
8264 |
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
|
8265 |
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
|
8266 |
else |
|
8267 |
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' |
|
8268 |
fi |
|
8269 |
aix_use_runtimelinking=no |
|
8270 |
||
8271 |
# Test if we are trying to use run time linking or normal |
|
8272 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
8273 |
# need to do runtime linking. |
|
8274 |
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
|
8275 |
for ld_flag in $LDFLAGS; do |
|
8276 |
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
|
8277 |
aix_use_runtimelinking=yes |
|
8278 |
break |
|
8279 |
fi |
|
8280 |
done |
|
8281 |
;; |
|
8282 |
esac |
|
8283 |
||
8284 |
exp_sym_flag='-bexport' |
|
8285 |
no_entry_flag='-bnoentry' |
|
8286 |
fi |
|
8287 |
||
8288 |
# When large executables or shared objects are built, AIX ld can |
|
8289 |
# have problems creating the table of contents. If linking a library |
|
8290 |
# or program results in "error TOC overflow" add -mminimal-toc to |
|
8291 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
8292 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
8293 |
||
8294 |
archive_cmds='' |
|
8295 |
hardcode_direct=yes |
|
8296 |
hardcode_direct_absolute=yes |
|
8297 |
hardcode_libdir_separator=':' |
|
8298 |
link_all_deplibs=yes |
|
8299 |
file_list_spec='${wl}-f,' |
|
8300 |
||
8301 |
if test "$GCC" = yes; then |
|
8302 |
case $host_os in aix4.[012]|aix4.[012].*) |
|
8303 |
# We only want to do this on AIX 4.2 and lower, the check |
|
8304 |
# below for broken collect2 doesn't work under 4.3+ |
|
8305 |
collect2name=`${CC} -print-prog-name=collect2` |
|
8306 |
if test -f "$collect2name" && |
|
8307 |
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
|
8308 |
then |
|
8309 |
# We have reworked collect2 |
|
8310 |
: |
|
8311 |
else |
|
8312 |
# We have old collect2 |
|
8313 |
hardcode_direct=unsupported |
|
8314 |
# It fails to find uninstalled libraries when the uninstalled |
|
8315 |
# path is not listed in the libpath. Setting hardcode_minus_L |
|
8316 |
# to unsupported forces relinking |
|
8317 |
hardcode_minus_L=yes |
|
8318 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8319 |
hardcode_libdir_separator= |
|
8320 |
fi |
|
8321 |
;; |
|
8322 |
esac |
|
8323 |
shared_flag='-shared' |
|
8324 |
if test "$aix_use_runtimelinking" = yes; then |
|
8325 |
shared_flag="$shared_flag "'${wl}-G' |
|
8326 |
fi |
|
8327 |
link_all_deplibs=no |
|
8328 |
else |
|
8329 |
# not using gcc |
|
8330 |
if test "$host_cpu" = ia64; then |
|
8331 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
8332 |
# chokes on -Wl,-G. The following line is correct: |
|
8333 |
shared_flag='-G' |
|
8334 |
else |
|
8335 |
if test "$aix_use_runtimelinking" = yes; then |
|
8336 |
shared_flag='${wl}-G' |
|
8337 |
else |
|
8338 |
shared_flag='${wl}-bM:SRE' |
|
8339 |
fi |
|
8340 |
fi |
|
8341 |
fi |
|
8342 |
||
8343 |
export_dynamic_flag_spec='${wl}-bexpall' |
|
8344 |
# It seems that -bexpall does not export symbols beginning with |
|
8345 |
# underscore (_), so it is better to generate a list of symbols to export. |
|
8346 |
always_export_symbols=yes |
|
8347 |
if test "$aix_use_runtimelinking" = yes; then |
|
8348 |
# Warning - without using the other runtime loading flags (-brtl), |
|
8349 |
# -berok will link without error, but may produce a broken library. |
|
8350 |
allow_undefined_flag='-berok' |
|
8351 |
# Determine the default libpath from the value encoded in an |
|
8352 |
# empty executable. |
|
8353 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
8354 |
/* end confdefs.h. */ |
|
8355 |
||
8356 |
int |
|
8357 |
main () |
|
8358 |
{ |
|
8359 |
||
8360 |
; |
|
8361 |
return 0; |
|
8362 |
} |
|
8363 |
_ACEOF |
|
8364 |
if ac_fn_c_try_link "$LINENO"; then : |
|
8365 |
||
8366 |
lt_aix_libpath_sed=' |
|
8367 |
/Import File Strings/,/^$/ { |
|
8368 |
/^0/ { |
|
8369 |
s/^0 *\(.*\)$/\1/ |
|
8370 |
p |
|
8371 |
} |
|
8372 |
}' |
|
8373 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
8374 |
# Check for a 64-bit object if we didn't find anything. |
|
8375 |
if test -z "$aix_libpath"; then |
|
8376 |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
8377 |
fi |
|
8378 |
fi |
|
8379 |
rm -f core conftest.err conftest.$ac_objext \ |
|
8380 |
conftest$ac_exeext conftest.$ac_ext |
|
8381 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
8382 |
||
8383 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
8384 |
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
8385 |
else |
|
8386 |
if test "$host_cpu" = ia64; then |
|
8387 |
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
|
8388 |
allow_undefined_flag="-z nodefs" |
|
8389 |
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" |
|
8390 |
else |
|
8391 |
# Determine the default libpath from the value encoded in an |
|
8392 |
# empty executable. |
|
8393 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
8394 |
/* end confdefs.h. */ |
|
8395 |
||
8396 |
int |
|
8397 |
main () |
|
8398 |
{ |
|
8399 |
||
8400 |
; |
|
8401 |
return 0; |
|
8402 |
} |
|
8403 |
_ACEOF |
|
8404 |
if ac_fn_c_try_link "$LINENO"; then : |
|
8405 |
||
8406 |
lt_aix_libpath_sed=' |
|
8407 |
/Import File Strings/,/^$/ { |
|
8408 |
/^0/ { |
|
8409 |
s/^0 *\(.*\)$/\1/ |
|
8410 |
p |
|
8411 |
} |
|
8412 |
}' |
|
8413 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
8414 |
# Check for a 64-bit object if we didn't find anything. |
|
8415 |
if test -z "$aix_libpath"; then |
|
8416 |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
8417 |
fi |
|
8418 |
fi |
|
8419 |
rm -f core conftest.err conftest.$ac_objext \ |
|
8420 |
conftest$ac_exeext conftest.$ac_ext |
|
8421 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
8422 |
||
8423 |
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
8424 |
# Warning - without using the other run time loading flags, |
|
8425 |
# -berok will link without error, but may produce a broken library. |
|
8426 |
no_undefined_flag=' ${wl}-bernotok' |
|
8427 |
allow_undefined_flag=' ${wl}-berok' |
|
8428 |
# Exported symbols can be pulled into shared objects from archives |
|
8429 |
whole_archive_flag_spec='$convenience' |
|
8430 |
archive_cmds_need_lc=yes |
|
8431 |
# This is similar to how AIX traditionally builds its shared libraries. |
|
8432 |
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' |
|
8433 |
fi |
|
8434 |
fi |
|
8435 |
;; |
|
8436 |
||
8437 |
amigaos*) |
|
8438 |
case $host_cpu in |
|
8439 |
powerpc) |
|
8440 |
# see comment about AmigaOS4 .so support |
|
8441 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
8442 |
archive_expsym_cmds='' |
|
8443 |
;; |
|
8444 |
m68k) |
|
8445 |
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)' |
|
8446 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8447 |
hardcode_minus_L=yes |
|
8448 |
;; |
|
8449 |
esac |
|
8450 |
;; |
|
8451 |
||
8452 |
bsdi[45]*) |
|
8453 |
export_dynamic_flag_spec=-rdynamic |
|
8454 |
;; |
|
8455 |
||
8456 |
cygwin* | mingw* | pw32* | cegcc*) |
|
8457 |
# When not using gcc, we currently assume that we are using |
|
8458 |
# Microsoft Visual C++. |
|
8459 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
|
8460 |
# no search path for DLLs. |
|
8461 |
hardcode_libdir_flag_spec=' ' |
|
8462 |
allow_undefined_flag=unsupported |
|
8463 |
# Tell ltmain to make .lib files, not .a files. |
|
8464 |
libext=lib |
|
8465 |
# Tell ltmain to make .dll files, not .so files. |
|
8466 |
shrext_cmds=".dll" |
|
8467 |
# FIXME: Setting linknames here is a bad hack. |
|
8468 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
|
8469 |
# The linker will automatically build a .lib file if we build a DLL. |
|
8470 |
old_archive_from_new_cmds='true' |
|
8471 |
# FIXME: Should let the user specify the lib program. |
|
8472 |
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
|
8473 |
fix_srcfile_path='`cygpath -w "$srcfile"`' |
|
8474 |
enable_shared_with_static_runtimes=yes |
|
8475 |
;; |
|
8476 |
||
8477 |
darwin* | rhapsody*) |
|
8478 |
||
8479 |
||
8480 |
archive_cmds_need_lc=no |
|
8481 |
hardcode_direct=no |
|
8482 |
hardcode_automatic=yes |
|
8483 |
hardcode_shlibpath_var=unsupported |
|
8484 |
whole_archive_flag_spec='' |
|
8485 |
link_all_deplibs=yes |
|
8486 |
allow_undefined_flag="$_lt_dar_allow_undefined" |
|
8487 |
case $cc_basename in |
|
8488 |
ifort*) _lt_dar_can_shared=yes ;; |
|
8489 |
*) _lt_dar_can_shared=$GCC ;; |
|
8490 |
esac |
|
8491 |
if test "$_lt_dar_can_shared" = "yes"; then |
|
8492 |
output_verbose_link_cmd=echo |
|
8493 |
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
|
8494 |
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
|
8495 |
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}" |
|
8496 |
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}" |
|
8497 |
||
8498 |
else |
|
8499 |
ld_shlibs=no |
|
8500 |
fi |
|
8501 |
||
8502 |
;; |
|
8503 |
||
8504 |
dgux*) |
|
8505 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8506 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8507 |
hardcode_shlibpath_var=no |
|
8508 |
;; |
|
8509 |
||
8510 |
freebsd1*) |
|
8511 |
ld_shlibs=no |
|
8512 |
;; |
|
8513 |
||
8514 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
|
8515 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
|
8516 |
# does not break anything, and helps significantly (at the cost of a little |
|
8517 |
# extra space). |
|
8518 |
freebsd2.2*) |
|
8519 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
|
8520 |
hardcode_libdir_flag_spec='-R$libdir' |
|
8521 |
hardcode_direct=yes |
|
8522 |
hardcode_shlibpath_var=no |
|
8523 |
;; |
|
8524 |
||
8525 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
|
8526 |
freebsd2*) |
|
8527 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
8528 |
hardcode_direct=yes |
|
8529 |
hardcode_minus_L=yes |
|
8530 |
hardcode_shlibpath_var=no |
|
8531 |
;; |
|
8532 |
||
8533 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
|
8534 |
freebsd* | dragonfly*) |
|
8535 |
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
|
8536 |
hardcode_libdir_flag_spec='-R$libdir' |
|
8537 |
hardcode_direct=yes |
|
8538 |
hardcode_shlibpath_var=no |
|
8539 |
;; |
|
8540 |
||
8541 |
hpux9*) |
|
8542 |
if test "$GCC" = yes; then |
|
8543 |
archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
8544 |
else |
|
8545 |
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' |
|
8546 |
fi |
|
8547 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
8548 |
hardcode_libdir_separator=: |
|
8549 |
hardcode_direct=yes |
|
8550 |
||
8551 |
# hardcode_minus_L: Not really in the search PATH, |
|
8552 |
# but as the default location of the library. |
|
8553 |
hardcode_minus_L=yes |
|
8554 |
export_dynamic_flag_spec='${wl}-E' |
|
8555 |
;; |
|
8556 |
||
8557 |
hpux10*) |
|
8558 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
8559 |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
8560 |
else |
|
8561 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
|
8562 |
fi |
|
8563 |
if test "$with_gnu_ld" = no; then |
|
8564 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
8565 |
hardcode_libdir_flag_spec_ld='+b $libdir' |
|
8566 |
hardcode_libdir_separator=: |
|
8567 |
hardcode_direct=yes |
|
8568 |
hardcode_direct_absolute=yes |
|
8569 |
export_dynamic_flag_spec='${wl}-E' |
|
8570 |
# hardcode_minus_L: Not really in the search PATH, |
|
8571 |
# but as the default location of the library. |
|
8572 |
hardcode_minus_L=yes |
|
8573 |
fi |
|
8574 |
;; |
|
8575 |
||
8576 |
hpux11*) |
|
8577 |
if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
|
8578 |
case $host_cpu in |
|
8579 |
hppa*64*) |
|
8580 |
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8581 |
;; |
|
8582 |
ia64*) |
|
8583 |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
8584 |
;; |
|
8585 |
*) |
|
8586 |
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
8587 |
;; |
|
8588 |
esac |
|
8589 |
else |
|
8590 |
case $host_cpu in |
|
8591 |
hppa*64*) |
|
8592 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8593 |
;; |
|
8594 |
ia64*) |
|
8595 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
|
8596 |
;; |
|
8597 |
*) |
|
8598 |
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
|
8599 |
;; |
|
8600 |
esac |
|
8601 |
fi |
|
8602 |
if test "$with_gnu_ld" = no; then |
|
8603 |
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
|
8604 |
hardcode_libdir_separator=: |
|
8605 |
||
8606 |
case $host_cpu in |
|
8607 |
hppa*64*|ia64*) |
|
8608 |
hardcode_direct=no |
|
8609 |
hardcode_shlibpath_var=no |
|
8610 |
;; |
|
8611 |
*) |
|
8612 |
hardcode_direct=yes |
|
8613 |
hardcode_direct_absolute=yes |
|
8614 |
export_dynamic_flag_spec='${wl}-E' |
|
8615 |
||
8616 |
# hardcode_minus_L: Not really in the search PATH, |
|
8617 |
# but as the default location of the library. |
|
8618 |
hardcode_minus_L=yes |
|
8619 |
;; |
|
8620 |
esac |
|
8621 |
fi |
|
8622 |
;; |
|
8623 |
||
8624 |
irix5* | irix6* | nonstopux*) |
|
8625 |
if test "$GCC" = yes; then |
|
8626 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
8627 |
# Try to use the -exported_symbol ld option, if it does not |
|
8628 |
# work, assume that -exports_file does not work either and |
|
8629 |
# implicitly export all symbols. |
|
8630 |
save_LDFLAGS="$LDFLAGS" |
|
8631 |
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
|
8632 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
8633 |
/* end confdefs.h. */ |
|
8634 |
int foo(void) {} |
|
8635 |
_ACEOF |
|
8636 |
if ac_fn_c_try_link "$LINENO"; then : |
|
8637 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
|
8638 |
||
8639 |
fi |
|
8640 |
rm -f core conftest.err conftest.$ac_objext \ |
|
8641 |
conftest$ac_exeext conftest.$ac_ext |
|
8642 |
LDFLAGS="$save_LDFLAGS" |
|
8643 |
else |
|
8644 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
|
8645 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
|
8646 |
fi |
|
8647 |
archive_cmds_need_lc='no' |
|
8648 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
8649 |
hardcode_libdir_separator=: |
|
8650 |
inherit_rpath=yes |
|
8651 |
link_all_deplibs=yes |
|
8652 |
;; |
|
8653 |
||
8654 |
netbsd* | netbsdelf*-gnu) |
|
8655 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
|
8656 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
|
8657 |
else |
|
8658 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
|
8659 |
fi |
|
8660 |
hardcode_libdir_flag_spec='-R$libdir' |
|
8661 |
hardcode_direct=yes |
|
8662 |
hardcode_shlibpath_var=no |
|
8663 |
;; |
|
8664 |
||
8665 |
newsos6) |
|
8666 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8667 |
hardcode_direct=yes |
|
8668 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
8669 |
hardcode_libdir_separator=: |
|
8670 |
hardcode_shlibpath_var=no |
|
8671 |
;; |
|
8672 |
||
8673 |
*nto* | *qnx*) |
|
8674 |
;; |
|
8675 |
||
8676 |
openbsd*) |
|
8677 |
if test -f /usr/libexec/ld.so; then |
|
8678 |
hardcode_direct=yes |
|
8679 |
hardcode_shlibpath_var=no |
|
8680 |
hardcode_direct_absolute=yes |
|
8681 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
8682 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
8683 |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
|
8684 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
8685 |
export_dynamic_flag_spec='${wl}-E' |
|
8686 |
else |
|
8687 |
case $host_os in |
|
8688 |
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
|
8689 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
|
8690 |
hardcode_libdir_flag_spec='-R$libdir' |
|
8691 |
;; |
|
8692 |
*) |
|
8693 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
|
8694 |
hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
|
8695 |
;; |
|
8696 |
esac |
|
8697 |
fi |
|
8698 |
else |
|
8699 |
ld_shlibs=no |
|
8700 |
fi |
|
8701 |
;; |
|
8702 |
||
8703 |
os2*) |
|
8704 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8705 |
hardcode_minus_L=yes |
|
8706 |
allow_undefined_flag=unsupported |
|
8707 |
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' |
|
8708 |
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
|
8709 |
;; |
|
8710 |
||
8711 |
osf3*) |
|
8712 |
if test "$GCC" = yes; then |
|
8713 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
8714 |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
8715 |
else |
|
8716 |
allow_undefined_flag=' -expect_unresolved \*' |
|
8717 |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
|
8718 |
fi |
|
8719 |
archive_cmds_need_lc='no' |
|
8720 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
8721 |
hardcode_libdir_separator=: |
|
8722 |
;; |
|
8723 |
||
8724 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
|
8725 |
if test "$GCC" = yes; then |
|
8726 |
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
|
8727 |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
8728 |
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
|
8729 |
else |
|
8730 |
allow_undefined_flag=' -expect_unresolved \*' |
|
8731 |
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
|
8732 |
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~ |
|
8733 |
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
|
8734 |
||
8735 |
# Both c and cxx compiler support -rpath directly |
|
8736 |
hardcode_libdir_flag_spec='-rpath $libdir' |
|
8737 |
fi |
|
8738 |
archive_cmds_need_lc='no' |
|
8739 |
hardcode_libdir_separator=: |
|
8740 |
;; |
|
8741 |
||
8742 |
solaris*) |
|
8743 |
no_undefined_flag=' -z defs' |
|
8744 |
if test "$GCC" = yes; then |
|
8745 |
wlarc='${wl}' |
|
8746 |
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8747 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
|
8748 |
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
|
8749 |
else |
|
8750 |
case `$CC -V 2>&1` in |
|
8751 |
*"Compilers 5.0"*) |
|
8752 |
wlarc='' |
|
8753 |
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8754 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
|
8755 |
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
|
8756 |
;; |
|
8757 |
*) |
|
8758 |
wlarc='${wl}' |
|
8759 |
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8760 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
|
8761 |
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
|
8762 |
;; |
|
8763 |
esac |
|
8764 |
fi |
|
8765 |
hardcode_libdir_flag_spec='-R$libdir' |
|
8766 |
hardcode_shlibpath_var=no |
|
8767 |
case $host_os in |
|
8768 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
8769 |
*) |
|
8770 |
# The compiler driver will combine and reorder linker options, |
|
8771 |
# but understands `-z linker_flag'. GCC discards it without `$wl', |
|
8772 |
# but is careful enough not to reorder. |
|
8773 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
|
8774 |
if test "$GCC" = yes; then |
|
8775 |
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
|
8776 |
else |
|
8777 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
|
8778 |
fi |
|
8779 |
;; |
|
8780 |
esac |
|
8781 |
link_all_deplibs=yes |
|
8782 |
;; |
|
8783 |
||
8784 |
sunos4*) |
|
8785 |
if test "x$host_vendor" = xsequent; then |
|
8786 |
# Use $CC to link under sequent, because it throws in some extra .o |
|
8787 |
# files that make .init and .fini sections work. |
|
8788 |
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8789 |
else |
|
8790 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
|
8791 |
fi |
|
8792 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8793 |
hardcode_direct=yes |
|
8794 |
hardcode_minus_L=yes |
|
8795 |
hardcode_shlibpath_var=no |
|
8796 |
;; |
|
8797 |
||
8798 |
sysv4) |
|
8799 |
case $host_vendor in |
|
8800 |
sni) |
|
8801 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8802 |
hardcode_direct=yes # is this really true??? |
|
8803 |
;; |
|
8804 |
siemens) |
|
8805 |
## LD is ld it makes a PLAMLIB |
|
8806 |
## CC just makes a GrossModule. |
|
8807 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
|
8808 |
reload_cmds='$CC -r -o $output$reload_objs' |
|
8809 |
hardcode_direct=no |
|
8810 |
;; |
|
8811 |
motorola) |
|
8812 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8813 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
|
8814 |
;; |
|
8815 |
esac |
|
8816 |
runpath_var='LD_RUN_PATH' |
|
8817 |
hardcode_shlibpath_var=no |
|
8818 |
;; |
|
8819 |
||
8820 |
sysv4.3*) |
|
8821 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8822 |
hardcode_shlibpath_var=no |
|
8823 |
export_dynamic_flag_spec='-Bexport' |
|
8824 |
;; |
|
8825 |
||
8826 |
sysv4*MP*) |
|
8827 |
if test -d /usr/nec; then |
|
8828 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8829 |
hardcode_shlibpath_var=no |
|
8830 |
runpath_var=LD_RUN_PATH |
|
8831 |
hardcode_runpath_var=yes |
|
8832 |
ld_shlibs=yes |
|
8833 |
fi |
|
8834 |
;; |
|
8835 |
||
8836 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
|
8837 |
no_undefined_flag='${wl}-z,text' |
|
8838 |
archive_cmds_need_lc=no |
|
8839 |
hardcode_shlibpath_var=no |
|
8840 |
runpath_var='LD_RUN_PATH' |
|
8841 |
||
8842 |
if test "$GCC" = yes; then |
|
8843 |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8844 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8845 |
else |
|
8846 |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8847 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8848 |
fi |
|
8849 |
;; |
|
8850 |
||
8851 |
sysv5* | sco3.2v5* | sco5v6*) |
|
8852 |
# Note: We can NOT use -z defs as we might desire, because we do not |
|
8853 |
# link with -lc, and that would cause any symbols used from libc to |
|
8854 |
# always be unresolved, which means just about no library would |
|
8855 |
# ever link correctly. If we're not using GNU ld we use -z text |
|
8856 |
# though, which does catch some bad symbols but isn't as heavy-handed |
|
8857 |
# as -z defs. |
|
8858 |
no_undefined_flag='${wl}-z,text' |
|
8859 |
allow_undefined_flag='${wl}-z,nodefs' |
|
8860 |
archive_cmds_need_lc=no |
|
8861 |
hardcode_shlibpath_var=no |
|
8862 |
hardcode_libdir_flag_spec='${wl}-R,$libdir' |
|
8863 |
hardcode_libdir_separator=':' |
|
8864 |
link_all_deplibs=yes |
|
8865 |
export_dynamic_flag_spec='${wl}-Bexport' |
|
8866 |
runpath_var='LD_RUN_PATH' |
|
8867 |
||
8868 |
if test "$GCC" = yes; then |
|
8869 |
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8870 |
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8871 |
else |
|
8872 |
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8873 |
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
8874 |
fi |
|
8875 |
;; |
|
8876 |
||
8877 |
uts4*) |
|
8878 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
|
8879 |
hardcode_libdir_flag_spec='-L$libdir' |
|
8880 |
hardcode_shlibpath_var=no |
|
8881 |
;; |
|
8882 |
||
8883 |
*) |
|
8884 |
ld_shlibs=no |
|
8885 |
;; |
|
8886 |
esac |
|
8887 |
||
8888 |
if test x$host_vendor = xsni; then |
|
8889 |
case $host in |
|
8890 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
|
8891 |
export_dynamic_flag_spec='${wl}-Blargedynsym' |
|
8892 |
;; |
|
8893 |
esac |
|
8894 |
fi |
|
8895 |
fi |
|
8896 |
||
8897 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
|
8898 |
$as_echo "$ld_shlibs" >&6; } |
|
8899 |
test "$ld_shlibs" = no && can_build_shared=no |
|
8900 |
||
8901 |
with_gnu_ld=$with_gnu_ld |
|
8902 |
||
8903 |
||
8904 |
||
8905 |
||
8906 |
||
8907 |
||
8908 |
||
8909 |
||
8910 |
||
8911 |
||
8912 |
||
8913 |
||
8914 |
||
8915 |
||
8916 |
||
8917 |
# |
|
8918 |
# Do we need to explicitly link libc? |
|
8919 |
# |
|
8920 |
case "x$archive_cmds_need_lc" in |
|
8921 |
x|xyes) |
|
8922 |
# Assume -lc should be added |
|
8923 |
archive_cmds_need_lc=yes |
|
8924 |
||
8925 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
8926 |
case $archive_cmds in |
|
8927 |
*'~'*) |
|
8928 |
# FIXME: we may have to deal with multi-command sequences. |
|
8929 |
;; |
|
8930 |
'$CC '*) |
|
8931 |
# Test whether the compiler implicitly links with -lc since on some |
|
8932 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
8933 |
# to ld, don't add -lc before -lgcc. |
|
8934 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
|
8935 |
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
|
8936 |
$RM conftest* |
|
8937 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
8938 |
||
8939 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
|
8940 |
(eval $ac_compile) 2>&5 |
|
8941 |
ac_status=$? |
|
8942 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
8943 |
test $ac_status = 0; } 2>conftest.err; then |
|
8944 |
soname=conftest |
|
8945 |
lib=conftest |
|
8946 |
libobjs=conftest.$ac_objext |
|
8947 |
deplibs= |
|
8948 |
wl=$lt_prog_compiler_wl |
|
8949 |
pic_flag=$lt_prog_compiler_pic |
|
8950 |
compiler_flags=-v |
|
8951 |
linker_flags=-v |
|
8952 |
verstring= |
|
8953 |
output_objdir=. |
|
8954 |
libname=conftest |
|
8955 |
lt_save_allow_undefined_flag=$allow_undefined_flag |
|
8956 |
allow_undefined_flag= |
|
8957 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
|
8958 |
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
8959 |
ac_status=$? |
|
8960 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
8961 |
test $ac_status = 0; } |
|
8962 |
then |
|
8963 |
archive_cmds_need_lc=no |
|
8964 |
else |
|
8965 |
archive_cmds_need_lc=yes |
|
8966 |
fi |
|
8967 |
allow_undefined_flag=$lt_save_allow_undefined_flag |
|
8968 |
else |
|
8969 |
cat conftest.err 1>&5 |
|
8970 |
fi |
|
8971 |
$RM conftest* |
|
8972 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 |
|
8973 |
$as_echo "$archive_cmds_need_lc" >&6; } |
|
8974 |
;; |
|
8975 |
esac |
|
8976 |
fi |
|
8977 |
;; |
|
8978 |
esac |
|
8979 |
||
8980 |
||
8981 |
||
8982 |
||
8983 |
||
8984 |
||
8985 |
||
8986 |
||
8987 |
||
8988 |
||
8989 |
||
8990 |
||
8991 |
||
8992 |
||
8993 |
||
8994 |
||
8995 |
||
8996 |
||
8997 |
||
8998 |
||
8999 |
||
9000 |
||
9001 |
||
9002 |
||
9003 |
||
9004 |
||
9005 |
||
9006 |
||
9007 |
||
9008 |
||
9009 |
||
9010 |
||
9011 |
||
9012 |
||
9013 |
||
9014 |
||
9015 |
||
9016 |
||
9017 |
||
9018 |
||
9019 |
||
9020 |
||
9021 |
||
9022 |
||
9023 |
||
9024 |
||
9025 |
||
9026 |
||
9027 |
||
9028 |
||
9029 |
||
9030 |
||
9031 |
||
9032 |
||
9033 |
||
9034 |
||
9035 |
||
9036 |
||
9037 |
||
9038 |
||
9039 |
||
9040 |
||
9041 |
||
9042 |
||
9043 |
||
9044 |
||
9045 |
||
9046 |
||
9047 |
||
9048 |
||
9049 |
||
9050 |
||
9051 |
||
9052 |
||
9053 |
||
9054 |
||
9055 |
||
9056 |
||
9057 |
||
9058 |
||
9059 |
||
9060 |
||
9061 |
||
9062 |
||
9063 |
||
9064 |
||
9065 |
||
9066 |
||
9067 |
||
9068 |
||
9069 |
||
9070 |
||
9071 |
||
9072 |
||
9073 |
||
9074 |
||
9075 |
||
9076 |
||
9077 |
||
9078 |
||
9079 |
||
9080 |
||
9081 |
||
9082 |
||
9083 |
||
9084 |
||
9085 |
||
9086 |
||
9087 |
||
9088 |
||
9089 |
||
9090 |
||
9091 |
||
9092 |
||
9093 |
||
9094 |
||
9095 |
||
9096 |
||
9097 |
||
9098 |
||
9099 |
||
9100 |
||
9101 |
||
9102 |
||
9103 |
||
9104 |
||
9105 |
||
9106 |
||
9107 |
||
9108 |
||
9109 |
||
9110 |
||
9111 |
||
9112 |
||
9113 |
||
9114 |
||
9115 |
||
9116 |
||
9117 |
||
9118 |
||
9119 |
||
9120 |
||
9121 |
||
9122 |
||
9123 |
||
9124 |
||
9125 |
||
9126 |
||
9127 |
||
9128 |
||
9129 |
||
9130 |
||
9131 |
||
9132 |
||
9133 |
||
9134 |
||
9135 |
||
9136 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
|
9137 |
$as_echo_n "checking dynamic linker characteristics... " >&6; } |
|
9138 |
||
9139 |
if test "$GCC" = yes; then |
|
9140 |
case $host_os in |
|
9141 |
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
|
9142 |
*) lt_awk_arg="/^libraries:/" ;; |
|
9143 |
esac |
|
9144 |
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
9145 |
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
|
9146 |
# if the path contains ";" then we assume it to be the separator |
|
9147 |
# otherwise default to the standard path separator (i.e. ":") - it is |
|
9148 |
# assumed that no part of a normal pathname contains ";" but that should |
|
9149 |
# okay in the real world where ";" in dirpaths is itself problematic. |
|
9150 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
|
9151 |
else |
|
9152 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
9153 |
fi |
|
9154 |
# Ok, now we have the path, separated by spaces, we can step through it |
|
9155 |
# and add multilib dir if necessary. |
|
9156 |
lt_tmp_lt_search_path_spec= |
|
9157 |
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
|
9158 |
for lt_sys_path in $lt_search_path_spec; do |
|
9159 |
if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
|
9160 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
|
9161 |
else |
|
9162 |
test -d "$lt_sys_path" && \ |
|
9163 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
|
9164 |
fi |
|
9165 |
done |
|
9166 |
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
|
9167 |
BEGIN {RS=" "; FS="/|\n";} { |
|
9168 |
lt_foo=""; |
|
9169 |
lt_count=0; |
|
9170 |
for (lt_i = NF; lt_i > 0; lt_i--) { |
|
9171 |
if ($lt_i != "" && $lt_i != ".") { |
|
9172 |
if ($lt_i == "..") { |
|
9173 |
lt_count++; |
|
9174 |
} else { |
|
9175 |
if (lt_count == 0) { |
|
9176 |
lt_foo="/" $lt_i lt_foo; |
|
9177 |
} else { |
|
9178 |
lt_count--; |
|
9179 |
} |
|
9180 |
} |
|
9181 |
} |
|
9182 |
} |
|
9183 |
if (lt_foo != "") { lt_freq[lt_foo]++; } |
|
9184 |
if (lt_freq[lt_foo] == 1) { print lt_foo; } |
|
9185 |
}'` |
|
9186 |
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
|
9187 |
else |
|
9188 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
|
9189 |
fi |
|
9190 |
library_names_spec= |
|
9191 |
libname_spec='lib$name' |
|
9192 |
soname_spec= |
|
9193 |
shrext_cmds=".so" |
|
9194 |
postinstall_cmds= |
|
9195 |
postuninstall_cmds= |
|
9196 |
finish_cmds= |
|
9197 |
finish_eval= |
|
9198 |
shlibpath_var= |
|
9199 |
shlibpath_overrides_runpath=unknown |
|
9200 |
version_type=none |
|
9201 |
dynamic_linker="$host_os ld.so" |
|
9202 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
9203 |
need_lib_prefix=unknown |
|
9204 |
hardcode_into_libs=no |
|
9205 |
||
9206 |
# when you set need_version to no, make sure it does not cause -set_version |
|
9207 |
# flags to be left without arguments |
|
9208 |
need_version=unknown |
|
9209 |
||
9210 |
case $host_os in |
|
9211 |
aix3*) |
|
9212 |
version_type=linux |
|
9213 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
9214 |
shlibpath_var=LIBPATH |
|
9215 |
||
9216 |
# AIX 3 has no versioning support, so we append a major version to the name. |
|
9217 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9218 |
;; |
|
9219 |
||
9220 |
aix[4-9]*) |
|
9221 |
version_type=linux |
|
9222 |
need_lib_prefix=no |
|
9223 |
need_version=no |
|
9224 |
hardcode_into_libs=yes |
|
9225 |
if test "$host_cpu" = ia64; then |
|
9226 |
# AIX 5 supports IA64 |
|
9227 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
9228 |
shlibpath_var=LD_LIBRARY_PATH |
|
9229 |
else |
|
9230 |
# With GCC up to 2.95.x, collect2 would create an import file |
|
9231 |
# for dependence libraries. The import file would start with |
|
9232 |
# the line `#! .'. This would cause the generated library to |
|
9233 |
# depend on `.', always an invalid library. This was fixed in |
|
9234 |
# development snapshots of GCC prior to 3.0. |
|
9235 |
case $host_os in |
|
9236 |
aix4 | aix4.[01] | aix4.[01].*) |
|
9237 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
9238 |
echo ' yes ' |
|
9239 |
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
|
9240 |
: |
|
9241 |
else |
|
9242 |
can_build_shared=no |
|
9243 |
fi |
|
9244 |
;; |
|
9245 |
esac |
|
9246 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
9247 |
# soname into executable. Probably we can add versioning support to |
|
9248 |
# collect2, so additional links can be useful in future. |
|
9249 |
if test "$aix_use_runtimelinking" = yes; then |
|
9250 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
9251 |
# instead of lib<name>.a to let people know that these are not |
|
9252 |
# typical AIX shared libraries. |
|
9253 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9254 |
else |
|
9255 |
# We preserve .a as extension for shared libraries through AIX4.2 |
|
9256 |
# and later when we are not doing run time linking. |
|
9257 |
library_names_spec='${libname}${release}.a $libname.a' |
|
9258 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9259 |
fi |
|
9260 |
shlibpath_var=LIBPATH |
|
9261 |
fi |
|
9262 |
;; |
|
9263 |
||
9264 |
amigaos*) |
|
9265 |
case $host_cpu in |
|
9266 |
powerpc) |
|
9267 |
# Since July 2007 AmigaOS4 officially supports .so libraries. |
|
9268 |
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
|
9269 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9270 |
;; |
|
9271 |
m68k) |
|
9272 |
library_names_spec='$libname.ixlibrary $libname.a' |
|
9273 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
9274 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
|
9275 |
;; |
|
9276 |
esac |
|
9277 |
;; |
|
9278 |
||
9279 |
beos*) |
|
9280 |
library_names_spec='${libname}${shared_ext}' |
|
9281 |
dynamic_linker="$host_os ld.so" |
|
9282 |
shlibpath_var=LIBRARY_PATH |
|
9283 |
;; |
|
9284 |
||
9285 |
bsdi[45]*) |
|
9286 |
version_type=linux |
|
9287 |
need_version=no |
|
9288 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9289 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9290 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
9291 |
shlibpath_var=LD_LIBRARY_PATH |
|
9292 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
9293 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
9294 |
# the default ld.so.conf also contains /usr/contrib/lib and |
|
9295 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
9296 |
# libtool to hard-code these into programs |
|
9297 |
;; |
|
9298 |
||
9299 |
cygwin* | mingw* | pw32* | cegcc*) |
|
9300 |
version_type=windows |
|
9301 |
shrext_cmds=".dll" |
|
9302 |
need_version=no |
|
9303 |
need_lib_prefix=no |
|
9304 |
||
9305 |
case $GCC,$host_os in |
|
9306 |
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
|
9307 |
library_names_spec='$libname.dll.a' |
|
9308 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
9309 |
postinstall_cmds='base_file=`basename \${file}`~ |
|
9310 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
|
9311 |
dldir=$destdir/`dirname \$dlpath`~ |
|
9312 |
test -d \$dldir || mkdir -p \$dldir~ |
|
9313 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
|
9314 |
chmod a+x \$dldir/$dlname~ |
|
9315 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
|
9316 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
|
9317 |
fi' |
|
9318 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
9319 |
dlpath=$dir/\$dldll~ |
|
9320 |
$RM \$dlpath' |
|
9321 |
shlibpath_overrides_runpath=yes |
|
9322 |
||
9323 |
case $host_os in |
|
9324 |
cygwin*) |
|
9325 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
9326 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
9327 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
9328 |
;; |
|
9329 |
mingw* | cegcc*) |
|
9330 |
# MinGW DLLs use traditional 'lib' prefix |
|
9331 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
9332 |
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
9333 |
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
|
9334 |
# It is most probably a Windows format PATH printed by |
|
9335 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
9336 |
# path with ; separators, and with drive letters. We can handle the |
|
9337 |
# drive letters (cygwin fileutils understands them), so leave them, |
|
9338 |
# especially as we might pass files found there to a mingw objdump, |
|
9339 |
# which wouldn't understand a cygwinified path. Ahh. |
|
9340 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
9341 |
else |
|
9342 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
9343 |
fi |
|
9344 |
;; |
|
9345 |
pw32*) |
|
9346 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
|
9347 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
9348 |
;; |
|
9349 |
esac |
|
9350 |
;; |
|
9351 |
||
9352 |
*) |
|
9353 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
9354 |
;; |
|
9355 |
esac |
|
9356 |
dynamic_linker='Win32 ld.exe' |
|
9357 |
# FIXME: first we should search . and the directory the executable is in |
|
9358 |
shlibpath_var=PATH |
|
9359 |
;; |
|
9360 |
||
9361 |
darwin* | rhapsody*) |
|
9362 |
dynamic_linker="$host_os dyld" |
|
9363 |
version_type=darwin |
|
9364 |
need_lib_prefix=no |
|
9365 |
need_version=no |
|
9366 |
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
9367 |
soname_spec='${libname}${release}${major}$shared_ext' |
|
9368 |
shlibpath_overrides_runpath=yes |
|
9369 |
shlibpath_var=DYLD_LIBRARY_PATH |
|
9370 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
|
9371 |
||
9372 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
|
9373 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
9374 |
;; |
|
9375 |
||
9376 |
dgux*) |
|
9377 |
version_type=linux |
|
9378 |
need_lib_prefix=no |
|
9379 |
need_version=no |
|
9380 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
9381 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9382 |
shlibpath_var=LD_LIBRARY_PATH |
|
9383 |
;; |
|
9384 |
||
9385 |
freebsd1*) |
|
9386 |
dynamic_linker=no |
|
9387 |
;; |
|
9388 |
||
9389 |
freebsd* | dragonfly*) |
|
9390 |
# DragonFly does not have aout. When/if they implement a new |
|
9391 |
# versioning mechanism, adjust this. |
|
9392 |
if test -x /usr/bin/objformat; then |
|
9393 |
objformat=`/usr/bin/objformat` |
|
9394 |
else |
|
9395 |
case $host_os in |
|
9396 |
freebsd[123]*) objformat=aout ;; |
|
9397 |
*) objformat=elf ;; |
|
9398 |
esac |
|
9399 |
fi |
|
9400 |
version_type=freebsd-$objformat |
|
9401 |
case $version_type in |
|
9402 |
freebsd-elf*) |
|
9403 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
9404 |
need_version=no |
|
9405 |
need_lib_prefix=no |
|
9406 |
;; |
|
9407 |
freebsd-*) |
|
9408 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
9409 |
need_version=yes |
|
9410 |
;; |
|
9411 |
esac |
|
9412 |
shlibpath_var=LD_LIBRARY_PATH |
|
9413 |
case $host_os in |
|
9414 |
freebsd2*) |
|
9415 |
shlibpath_overrides_runpath=yes |
|
9416 |
;; |
|
9417 |
freebsd3.[01]* | freebsdelf3.[01]*) |
|
9418 |
shlibpath_overrides_runpath=yes |
|
9419 |
hardcode_into_libs=yes |
|
9420 |
;; |
|
9421 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
9422 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
9423 |
shlibpath_overrides_runpath=no |
|
9424 |
hardcode_into_libs=yes |
|
9425 |
;; |
|
9426 |
*) # from 4.6 on, and DragonFly |
|
9427 |
shlibpath_overrides_runpath=yes |
|
9428 |
hardcode_into_libs=yes |
|
9429 |
;; |
|
9430 |
esac |
|
9431 |
;; |
|
9432 |
||
9433 |
gnu*) |
|
9434 |
version_type=linux |
|
9435 |
need_lib_prefix=no |
|
9436 |
need_version=no |
|
9437 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
9438 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9439 |
shlibpath_var=LD_LIBRARY_PATH |
|
9440 |
hardcode_into_libs=yes |
|
9441 |
;; |
|
9442 |
||
9443 |
hpux9* | hpux10* | hpux11*) |
|
9444 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
|
9445 |
# link against other versions. |
|
9446 |
version_type=sunos |
|
9447 |
need_lib_prefix=no |
|
9448 |
need_version=no |
|
9449 |
case $host_cpu in |
|
9450 |
ia64*) |
|
9451 |
shrext_cmds='.so' |
|
9452 |
hardcode_into_libs=yes |
|
9453 |
dynamic_linker="$host_os dld.so" |
|
9454 |
shlibpath_var=LD_LIBRARY_PATH |
|
9455 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
9456 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9457 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9458 |
if test "X$HPUX_IA64_MODE" = X32; then |
|
9459 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
9460 |
else |
|
9461 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
9462 |
fi |
|
9463 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
9464 |
;; |
|
9465 |
hppa*64*) |
|
9466 |
shrext_cmds='.sl' |
|
9467 |
hardcode_into_libs=yes |
|
9468 |
dynamic_linker="$host_os dld.sl" |
|
9469 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
9470 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
9471 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9472 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9473 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
9474 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
9475 |
;; |
|
9476 |
*) |
|
9477 |
shrext_cmds='.sl' |
|
9478 |
dynamic_linker="$host_os dld.sl" |
|
9479 |
shlibpath_var=SHLIB_PATH |
|
9480 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
9481 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9482 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9483 |
;; |
|
9484 |
esac |
|
9485 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
9486 |
postinstall_cmds='chmod 555 $lib' |
|
9487 |
;; |
|
9488 |
||
9489 |
interix[3-9]*) |
|
9490 |
version_type=linux |
|
9491 |
need_lib_prefix=no |
|
9492 |
need_version=no |
|
9493 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
9494 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9495 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
9496 |
shlibpath_var=LD_LIBRARY_PATH |
|
9497 |
shlibpath_overrides_runpath=no |
|
9498 |
hardcode_into_libs=yes |
|
9499 |
;; |
|
9500 |
||
9501 |
irix5* | irix6* | nonstopux*) |
|
9502 |
case $host_os in |
|
9503 |
nonstopux*) version_type=nonstopux ;; |
|
9504 |
*) |
|
9505 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
9506 |
version_type=linux |
|
9507 |
else |
|
9508 |
version_type=irix |
|
9509 |
fi ;; |
|
9510 |
esac |
|
9511 |
need_lib_prefix=no |
|
9512 |
need_version=no |
|
9513 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9514 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
9515 |
case $host_os in |
|
9516 |
irix5* | nonstopux*) |
|
9517 |
libsuff= shlibsuff= |
|
9518 |
;; |
|
9519 |
*) |
|
9520 |
case $LD in # libtool.m4 will add one of these switches to LD |
|
9521 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
9522 |
libsuff= shlibsuff= libmagic=32-bit;; |
|
9523 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
9524 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
9525 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
9526 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
9527 |
*) libsuff= shlibsuff= libmagic=never-match;; |
|
9528 |
esac |
|
9529 |
;; |
|
9530 |
esac |
|
9531 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
9532 |
shlibpath_overrides_runpath=no |
|
9533 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
9534 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
9535 |
hardcode_into_libs=yes |
|
9536 |
;; |
|
9537 |
||
9538 |
# No shared lib support for Linux oldld, aout, or coff. |
|
9539 |
linux*oldld* | linux*aout* | linux*coff*) |
|
9540 |
dynamic_linker=no |
|
9541 |
;; |
|
9542 |
||
9543 |
# This must be Linux ELF. |
|
9544 |
linux* | k*bsd*-gnu) |
|
9545 |
version_type=linux |
|
9546 |
need_lib_prefix=no |
|
9547 |
need_version=no |
|
9548 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9549 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9550 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
9551 |
shlibpath_var=LD_LIBRARY_PATH |
|
9552 |
shlibpath_overrides_runpath=no |
|
9553 |
# Some binutils ld are patched to set DT_RUNPATH |
|
9554 |
save_LDFLAGS=$LDFLAGS |
|
9555 |
save_libdir=$libdir |
|
9556 |
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
|
9557 |
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
|
9558 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
9559 |
/* end confdefs.h. */ |
|
9560 |
||
9561 |
int |
|
9562 |
main () |
|
9563 |
{ |
|
9564 |
||
9565 |
; |
|
9566 |
return 0; |
|
9567 |
} |
|
9568 |
_ACEOF |
|
9569 |
if ac_fn_c_try_link "$LINENO"; then : |
|
9570 |
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
|
9571 |
shlibpath_overrides_runpath=yes |
|
9572 |
fi |
|
9573 |
fi |
|
9574 |
rm -f core conftest.err conftest.$ac_objext \ |
|
9575 |
conftest$ac_exeext conftest.$ac_ext |
|
9576 |
LDFLAGS=$save_LDFLAGS |
|
9577 |
libdir=$save_libdir |
|
9578 |
||
9579 |
# This implies no fast_install, which is unacceptable. |
|
9580 |
# Some rework will be needed to allow for fast_install |
|
9581 |
# before this can be enabled. |
|
9582 |
hardcode_into_libs=yes |
|
9583 |
||
9584 |
# Append ld.so.conf contents to the search path |
|
9585 |
if test -f /etc/ld.so.conf; then |
|
9586 |
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
|
9587 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
9588 |
fi |
|
9589 |
||
9590 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
|
9591 |
# powerpc, because MkLinux only supported shared libraries with the |
|
9592 |
# GNU dynamic linker. Since this was broken with cross compilers, |
|
9593 |
# most powerpc-linux boxes support dynamic linking these days and |
|
9594 |
# people can always --disable-shared, the test was removed, and we |
|
9595 |
# assume the GNU/Linux dynamic linker is in use. |
|
9596 |
dynamic_linker='GNU/Linux ld.so' |
|
9597 |
;; |
|
9598 |
||
9599 |
netbsdelf*-gnu) |
|
9600 |
version_type=linux |
|
9601 |
need_lib_prefix=no |
|
9602 |
need_version=no |
|
9603 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
9604 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9605 |
shlibpath_var=LD_LIBRARY_PATH |
|
9606 |
shlibpath_overrides_runpath=no |
|
9607 |
hardcode_into_libs=yes |
|
9608 |
dynamic_linker='NetBSD ld.elf_so' |
|
9609 |
;; |
|
9610 |
||
9611 |
netbsd*) |
|
9612 |
version_type=sunos |
|
9613 |
need_lib_prefix=no |
|
9614 |
need_version=no |
|
9615 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
|
9616 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
9617 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
9618 |
dynamic_linker='NetBSD (a.out) ld.so' |
|
9619 |
else |
|
9620 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
9621 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9622 |
dynamic_linker='NetBSD ld.elf_so' |
|
9623 |
fi |
|
9624 |
shlibpath_var=LD_LIBRARY_PATH |
|
9625 |
shlibpath_overrides_runpath=yes |
|
9626 |
hardcode_into_libs=yes |
|
9627 |
;; |
|
9628 |
||
9629 |
newsos6) |
|
9630 |
version_type=linux |
|
9631 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9632 |
shlibpath_var=LD_LIBRARY_PATH |
|
9633 |
shlibpath_overrides_runpath=yes |
|
9634 |
;; |
|
9635 |
||
9636 |
*nto* | *qnx*) |
|
9637 |
version_type=qnx |
|
9638 |
need_lib_prefix=no |
|
9639 |
need_version=no |
|
9640 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9641 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9642 |
shlibpath_var=LD_LIBRARY_PATH |
|
9643 |
shlibpath_overrides_runpath=no |
|
9644 |
hardcode_into_libs=yes |
|
9645 |
dynamic_linker='ldqnx.so' |
|
9646 |
;; |
|
9647 |
||
9648 |
openbsd*) |
|
9649 |
version_type=sunos |
|
9650 |
sys_lib_dlsearch_path_spec="/usr/lib" |
|
9651 |
need_lib_prefix=no |
|
9652 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
9653 |
case $host_os in |
|
9654 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
9655 |
*) need_version=no ;; |
|
9656 |
esac |
|
9657 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
9658 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
9659 |
shlibpath_var=LD_LIBRARY_PATH |
|
9660 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
9661 |
case $host_os in |
|
9662 |
openbsd2.[89] | openbsd2.[89].*) |
|
9663 |
shlibpath_overrides_runpath=no |
|
9664 |
;; |
|
9665 |
*) |
|
9666 |
shlibpath_overrides_runpath=yes |
|
9667 |
;; |
|
9668 |
esac |
|
9669 |
else |
|
9670 |
shlibpath_overrides_runpath=yes |
|
9671 |
fi |
|
9672 |
;; |
|
9673 |
||
9674 |
os2*) |
|
9675 |
libname_spec='$name' |
|
9676 |
shrext_cmds=".dll" |
|
9677 |
need_lib_prefix=no |
|
9678 |
library_names_spec='$libname${shared_ext} $libname.a' |
|
9679 |
dynamic_linker='OS/2 ld.exe' |
|
9680 |
shlibpath_var=LIBPATH |
|
9681 |
;; |
|
9682 |
||
9683 |
osf3* | osf4* | osf5*) |
|
9684 |
version_type=osf |
|
9685 |
need_lib_prefix=no |
|
9686 |
need_version=no |
|
9687 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9688 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9689 |
shlibpath_var=LD_LIBRARY_PATH |
|
9690 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
9691 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
9692 |
;; |
|
9693 |
||
9694 |
rdos*) |
|
9695 |
dynamic_linker=no |
|
9696 |
;; |
|
9697 |
||
9698 |
solaris*) |
|
9699 |
version_type=linux |
|
9700 |
need_lib_prefix=no |
|
9701 |
need_version=no |
|
9702 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9703 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9704 |
shlibpath_var=LD_LIBRARY_PATH |
|
9705 |
shlibpath_overrides_runpath=yes |
|
9706 |
hardcode_into_libs=yes |
|
9707 |
# ldd complains unless libraries are executable |
|
9708 |
postinstall_cmds='chmod +x $lib' |
|
9709 |
;; |
|
9710 |
||
9711 |
sunos4*) |
|
9712 |
version_type=sunos |
|
9713 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
9714 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
9715 |
shlibpath_var=LD_LIBRARY_PATH |
|
9716 |
shlibpath_overrides_runpath=yes |
|
9717 |
if test "$with_gnu_ld" = yes; then |
|
9718 |
need_lib_prefix=no |
|
9719 |
fi |
|
9720 |
need_version=yes |
|
9721 |
;; |
|
9722 |
||
9723 |
sysv4 | sysv4.3*) |
|
9724 |
version_type=linux |
|
9725 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9726 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9727 |
shlibpath_var=LD_LIBRARY_PATH |
|
9728 |
case $host_vendor in |
|
9729 |
sni) |
|
9730 |
shlibpath_overrides_runpath=no |
|
9731 |
need_lib_prefix=no |
|
9732 |
runpath_var=LD_RUN_PATH |
|
9733 |
;; |
|
9734 |
siemens) |
|
9735 |
need_lib_prefix=no |
|
9736 |
;; |
|
9737 |
motorola) |
|
9738 |
need_lib_prefix=no |
|
9739 |
need_version=no |
|
9740 |
shlibpath_overrides_runpath=no |
|
9741 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
9742 |
;; |
|
9743 |
esac |
|
9744 |
;; |
|
9745 |
||
9746 |
sysv4*MP*) |
|
9747 |
if test -d /usr/nec ;then |
|
9748 |
version_type=linux |
|
9749 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
9750 |
soname_spec='$libname${shared_ext}.$major' |
|
9751 |
shlibpath_var=LD_LIBRARY_PATH |
|
9752 |
fi |
|
9753 |
;; |
|
9754 |
||
9755 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
9756 |
version_type=freebsd-elf |
|
9757 |
need_lib_prefix=no |
|
9758 |
need_version=no |
|
9759 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
9760 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9761 |
shlibpath_var=LD_LIBRARY_PATH |
|
9762 |
shlibpath_overrides_runpath=yes |
|
9763 |
hardcode_into_libs=yes |
|
9764 |
if test "$with_gnu_ld" = yes; then |
|
9765 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
9766 |
else |
|
9767 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
9768 |
case $host_os in |
|
9769 |
sco3.2v5*) |
|
9770 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
9771 |
;; |
|
9772 |
esac |
|
9773 |
fi |
|
9774 |
sys_lib_dlsearch_path_spec='/usr/lib' |
|
9775 |
;; |
|
9776 |
||
9777 |
tpf*) |
|
9778 |
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
|
9779 |
version_type=linux |
|
9780 |
need_lib_prefix=no |
|
9781 |
need_version=no |
|
9782 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9783 |
shlibpath_var=LD_LIBRARY_PATH |
|
9784 |
shlibpath_overrides_runpath=no |
|
9785 |
hardcode_into_libs=yes |
|
9786 |
;; |
|
9787 |
||
9788 |
uts4*) |
|
9789 |
version_type=linux |
|
9790 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
9791 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
9792 |
shlibpath_var=LD_LIBRARY_PATH |
|
9793 |
;; |
|
9794 |
||
9795 |
*) |
|
9796 |
dynamic_linker=no |
|
9797 |
;; |
|
9798 |
esac |
|
9799 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
|
9800 |
$as_echo "$dynamic_linker" >&6; } |
|
9801 |
test "$dynamic_linker" = no && can_build_shared=no |
|
9802 |
||
9803 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
9804 |
if test "$GCC" = yes; then |
|
9805 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
9806 |
fi |
|
9807 |
||
9808 |
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
|
9809 |
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
|
9810 |
fi |
|
9811 |
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
|
9812 |
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
|
9813 |
fi |
|
9814 |
||
9815 |
||
9816 |
||
9817 |
||
9818 |
||
9819 |
||
9820 |
||
9821 |
||
9822 |
||
9823 |
||
9824 |
||
9825 |
||
9826 |
||
9827 |
||
9828 |
||
9829 |
||
9830 |
||
9831 |
||
9832 |
||
9833 |
||
9834 |
||
9835 |
||
9836 |
||
9837 |
||
9838 |
||
9839 |
||
9840 |
||
9841 |
||
9842 |
||
9843 |
||
9844 |
||
9845 |
||
9846 |
||
9847 |
||
9848 |
||
9849 |
||
9850 |
||
9851 |
||
9852 |
||
9853 |
||
9854 |
||
9855 |
||
9856 |
||
9857 |
||
9858 |
||
9859 |
||
9860 |
||
9861 |
||
9862 |
||
9863 |
||
9864 |
||
9865 |
||
9866 |
||
9867 |
||
9868 |
||
9869 |
||
9870 |
||
9871 |
||
9872 |
||
9873 |
||
9874 |
||
9875 |
||
9876 |
||
9877 |
||
9878 |
||
9879 |
||
9880 |
||
9881 |
||
9882 |
||
9883 |
||
9884 |
||
9885 |
||
9886 |
||
9887 |
||
9888 |
||
9889 |
||
9890 |
||
9891 |
||
9892 |
||
9893 |
||
9894 |
||
9895 |
||
9896 |
||
9897 |
||
9898 |
||
9899 |
||
9900 |
||
9901 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
|
9902 |
$as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
|
9903 |
hardcode_action= |
|
9904 |
if test -n "$hardcode_libdir_flag_spec" || |
|
9905 |
test -n "$runpath_var" || |
|
9906 |
test "X$hardcode_automatic" = "Xyes" ; then |
|
9907 |
||
9908 |
# We can hardcode non-existent directories. |
|
9909 |
if test "$hardcode_direct" != no && |
|
9910 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
9911 |
# have to relink, otherwise we might link with an installed library |
|
9912 |
# when we should be linking with a yet-to-be-installed one |
|
9913 |
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
|
9914 |
test "$hardcode_minus_L" != no; then |
|
9915 |
# Linking always hardcodes the temporary library directory. |
|
9916 |
hardcode_action=relink |
|
9917 |
else |
|
9918 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
9919 |
hardcode_action=immediate |
|
9920 |
fi |
|
9921 |
else |
|
9922 |
# We cannot hardcode anything, or else we can only hardcode existing |
|
9923 |
# directories. |
|
9924 |
hardcode_action=unsupported |
|
9925 |
fi |
|
9926 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
|
9927 |
$as_echo "$hardcode_action" >&6; } |
|
9928 |
||
9929 |
if test "$hardcode_action" = relink || |
|
9930 |
test "$inherit_rpath" = yes; then |
|
9931 |
# Fast installation is not supported |
|
9932 |
enable_fast_install=no |
|
9933 |
elif test "$shlibpath_overrides_runpath" = yes || |
|
9934 |
test "$enable_shared" = no; then |
|
9935 |
# Fast installation is not necessary |
|
9936 |
enable_fast_install=needless |
|
9937 |
fi |
|
9938 |
||
9939 |
||
9940 |
||
9941 |
||
9942 |
||
9943 |
||
9944 |
if test "x$enable_dlopen" != xyes; then |
|
9945 |
enable_dlopen=unknown |
|
9946 |
enable_dlopen_self=unknown |
|
9947 |
enable_dlopen_self_static=unknown |
|
9948 |
else |
|
9949 |
lt_cv_dlopen=no |
|
9950 |
lt_cv_dlopen_libs= |
|
9951 |
||
9952 |
case $host_os in |
|
9953 |
beos*) |
|
9954 |
lt_cv_dlopen="load_add_on" |
|
9955 |
lt_cv_dlopen_libs= |
|
9956 |
lt_cv_dlopen_self=yes |
|
9957 |
;; |
|
9958 |
||
9959 |
mingw* | pw32* | cegcc*) |
|
9960 |
lt_cv_dlopen="LoadLibrary" |
|
9961 |
lt_cv_dlopen_libs= |
|
9962 |
;; |
|
9963 |
||
9964 |
cygwin*) |
|
9965 |
lt_cv_dlopen="dlopen" |
|
9966 |
lt_cv_dlopen_libs= |
|
9967 |
;; |
|
9968 |
||
9969 |
darwin*) |
|
9970 |
# if libdl is installed we need to link against it |
|
9971 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
|
9972 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
|
9973 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
|
9974 |
$as_echo_n "(cached) " >&6 |
|
9975 |
else |
|
9976 |
ac_check_lib_save_LIBS=$LIBS |
|
9977 |
LIBS="-ldl $LIBS" |
|
9978 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
9979 |
/* end confdefs.h. */ |
|
9980 |
||
9981 |
/* Override any GCC internal prototype to avoid an error. |
|
9982 |
Use char because int might match the return type of a GCC |
|
9983 |
builtin and then its argument prototype would still apply. */ |
|
9984 |
#ifdef __cplusplus |
|
9985 |
extern "C" |
|
9986 |
#endif |
|
9987 |
char dlopen (); |
|
9988 |
int |
|
9989 |
main () |
|
9990 |
{ |
|
9991 |
return dlopen (); |
|
9992 |
; |
|
9993 |
return 0; |
|
9994 |
} |
|
9995 |
_ACEOF |
|
9996 |
if ac_fn_c_try_link "$LINENO"; then : |
|
9997 |
ac_cv_lib_dl_dlopen=yes |
|
9998 |
else |
|
9999 |
ac_cv_lib_dl_dlopen=no |
|
10000 |
fi |
|
10001 |
rm -f core conftest.err conftest.$ac_objext \ |
|
10002 |
conftest$ac_exeext conftest.$ac_ext |
|
10003 |
LIBS=$ac_check_lib_save_LIBS |
|
10004 |
fi |
|
10005 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
|
10006 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
|
10007 |
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
|
10008 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
10009 |
else |
|
10010 |
||
10011 |
lt_cv_dlopen="dyld" |
|
10012 |
lt_cv_dlopen_libs= |
|
10013 |
lt_cv_dlopen_self=yes |
|
10014 |
||
10015 |
fi |
|
10016 |
||
10017 |
;; |
|
10018 |
||
10019 |
*) |
|
10020 |
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
|
10021 |
if test "x$ac_cv_func_shl_load" = x""yes; then : |
|
10022 |
lt_cv_dlopen="shl_load" |
|
10023 |
else |
|
10024 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
|
10025 |
$as_echo_n "checking for shl_load in -ldld... " >&6; } |
|
10026 |
if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
|
10027 |
$as_echo_n "(cached) " >&6 |
|
10028 |
else |
|
10029 |
ac_check_lib_save_LIBS=$LIBS |
|
10030 |
LIBS="-ldld $LIBS" |
|
10031 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
10032 |
/* end confdefs.h. */ |
|
10033 |
||
10034 |
/* Override any GCC internal prototype to avoid an error. |
|
10035 |
Use char because int might match the return type of a GCC |
|
10036 |
builtin and then its argument prototype would still apply. */ |
|
10037 |
#ifdef __cplusplus |
|
10038 |
extern "C" |
|
10039 |
#endif |
|
10040 |
char shl_load (); |
|
10041 |
int |
|
10042 |
main () |
|
10043 |
{ |
|
10044 |
return shl_load (); |
|
10045 |
; |
|
10046 |
return 0; |
|
10047 |
} |
|
10048 |
_ACEOF |
|
10049 |
if ac_fn_c_try_link "$LINENO"; then : |
|
10050 |
ac_cv_lib_dld_shl_load=yes |
|
10051 |
else |
|
10052 |
ac_cv_lib_dld_shl_load=no |
|
10053 |
fi |
|
10054 |
rm -f core conftest.err conftest.$ac_objext \ |
|
10055 |
conftest$ac_exeext conftest.$ac_ext |
|
10056 |
LIBS=$ac_check_lib_save_LIBS |
|
10057 |
fi |
|
10058 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
|
10059 |
$as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
|
10060 |
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : |
|
10061 |
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
|
10062 |
else |
|
10063 |
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
|
10064 |
if test "x$ac_cv_func_dlopen" = x""yes; then : |
|
10065 |
lt_cv_dlopen="dlopen" |
|
10066 |
else |
|
10067 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
|
10068 |
$as_echo_n "checking for dlopen in -ldl... " >&6; } |
|
10069 |
if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
|
10070 |
$as_echo_n "(cached) " >&6 |
|
10071 |
else |
|
10072 |
ac_check_lib_save_LIBS=$LIBS |
|
10073 |
LIBS="-ldl $LIBS" |
|
10074 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
10075 |
/* end confdefs.h. */ |
|
10076 |
||
10077 |
/* Override any GCC internal prototype to avoid an error. |
|
10078 |
Use char because int might match the return type of a GCC |
|
10079 |
builtin and then its argument prototype would still apply. */ |
|
10080 |
#ifdef __cplusplus |
|
10081 |
extern "C" |
|
10082 |
#endif |
|
10083 |
char dlopen (); |
|
10084 |
int |
|
10085 |
main () |
|
10086 |
{ |
|
10087 |
return dlopen (); |
|
10088 |
; |
|
10089 |
return 0; |
|
10090 |
} |
|
10091 |
_ACEOF |
|
10092 |
if ac_fn_c_try_link "$LINENO"; then : |
|
10093 |
ac_cv_lib_dl_dlopen=yes |
|
10094 |
else |
|
10095 |
ac_cv_lib_dl_dlopen=no |
|
10096 |
fi |
|
10097 |
rm -f core conftest.err conftest.$ac_objext \ |
|
10098 |
conftest$ac_exeext conftest.$ac_ext |
|
10099 |
LIBS=$ac_check_lib_save_LIBS |
|
10100 |
fi |
|
10101 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
|
10102 |
$as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
|
10103 |
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
|
10104 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
|
10105 |
else |
|
10106 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
|
10107 |
$as_echo_n "checking for dlopen in -lsvld... " >&6; } |
|
10108 |
if test "${ac_cv_lib_svld_dlopen+set}" = set; then : |
|
10109 |
$as_echo_n "(cached) " >&6 |
|
10110 |
else |
|
10111 |
ac_check_lib_save_LIBS=$LIBS |
|
10112 |
LIBS="-lsvld $LIBS" |
|
10113 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
10114 |
/* end confdefs.h. */ |
|
10115 |
||
10116 |
/* Override any GCC internal prototype to avoid an error. |
|
10117 |
Use char because int might match the return type of a GCC |
|
10118 |
builtin and then its argument prototype would still apply. */ |
|
10119 |
#ifdef __cplusplus |
|
10120 |
extern "C" |
|
10121 |
#endif |
|
10122 |
char dlopen (); |
|
10123 |
int |
|
10124 |
main () |
|
10125 |
{ |
|
10126 |
return dlopen (); |
|
10127 |
; |
|
10128 |
return 0; |
|
10129 |
} |
|
10130 |
_ACEOF |
|
10131 |
if ac_fn_c_try_link "$LINENO"; then : |
|
10132 |
ac_cv_lib_svld_dlopen=yes |
|
10133 |
else |
|
10134 |
ac_cv_lib_svld_dlopen=no |
|
10135 |
fi |
|
10136 |
rm -f core conftest.err conftest.$ac_objext \ |
|
10137 |
conftest$ac_exeext conftest.$ac_ext |
|
10138 |
LIBS=$ac_check_lib_save_LIBS |
|
10139 |
fi |
|
10140 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
|
10141 |
$as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
|
10142 |
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : |
|
10143 |
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
|
10144 |
else |
|
10145 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
|
10146 |
$as_echo_n "checking for dld_link in -ldld... " >&6; } |
|
10147 |
if test "${ac_cv_lib_dld_dld_link+set}" = set; then : |
|
10148 |
$as_echo_n "(cached) " >&6 |
|
10149 |
else |
|
10150 |
ac_check_lib_save_LIBS=$LIBS |
|
10151 |
LIBS="-ldld $LIBS" |
|
10152 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
10153 |
/* end confdefs.h. */ |
|
10154 |
||
10155 |
/* Override any GCC internal prototype to avoid an error. |
|
10156 |
Use char because int might match the return type of a GCC |
|
10157 |
builtin and then its argument prototype would still apply. */ |
|
10158 |
#ifdef __cplusplus |
|
10159 |
extern "C" |
|
10160 |
#endif |
|
10161 |
char dld_link (); |
|
10162 |
int |
|
10163 |
main () |
|
10164 |
{ |
|
10165 |
return dld_link (); |
|
10166 |
; |
|
10167 |
return 0; |
|
10168 |
} |
|
10169 |
_ACEOF |
|
10170 |
if ac_fn_c_try_link "$LINENO"; then : |
|
10171 |
ac_cv_lib_dld_dld_link=yes |
|
10172 |
else |
|
10173 |
ac_cv_lib_dld_dld_link=no |
|
10174 |
fi |
|
10175 |
rm -f core conftest.err conftest.$ac_objext \ |
|
10176 |
conftest$ac_exeext conftest.$ac_ext |
|
10177 |
LIBS=$ac_check_lib_save_LIBS |
|
10178 |
fi |
|
10179 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
|
10180 |
$as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
|
10181 |
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : |
|
10182 |
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
|
10183 |
fi |
|
10184 |
||
10185 |
||
10186 |
fi |
|
10187 |
||
10188 |
||
10189 |
fi |
|
10190 |
||
10191 |
||
10192 |
fi |
|
10193 |
||
10194 |
||
10195 |
fi |
|
10196 |
||
10197 |
||
10198 |
fi |
|
10199 |
||
10200 |
;; |
|
10201 |
esac |
|
10202 |
||
10203 |
if test "x$lt_cv_dlopen" != xno; then |
|
10204 |
enable_dlopen=yes |
|
10205 |
else |
|
10206 |
enable_dlopen=no |
|
10207 |
fi |
|
10208 |
||
10209 |
case $lt_cv_dlopen in |
|
10210 |
dlopen) |
|
10211 |
save_CPPFLAGS="$CPPFLAGS" |
|
10212 |
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
|
10213 |
||
10214 |
save_LDFLAGS="$LDFLAGS" |
|
10215 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
|
10216 |
||
10217 |
save_LIBS="$LIBS" |
|
10218 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
|
10219 |
||
10220 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
|
10221 |
$as_echo_n "checking whether a program can dlopen itself... " >&6; } |
|
10222 |
if test "${lt_cv_dlopen_self+set}" = set; then : |
|
10223 |
$as_echo_n "(cached) " >&6 |
|
10224 |
else |
|
10225 |
if test "$cross_compiling" = yes; then : |
|
10226 |
lt_cv_dlopen_self=cross |
|
10227 |
else |
|
10228 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
10229 |
lt_status=$lt_dlunknown |
|
10230 |
cat > conftest.$ac_ext <<_LT_EOF |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
10231 |
#line 10231 "configure" |
5
by edam
- updated README |
10232 |
#include "confdefs.h" |
10233 |
||
10234 |
#if HAVE_DLFCN_H |
|
10235 |
#include <dlfcn.h> |
|
10236 |
#endif |
|
10237 |
||
10238 |
#include <stdio.h> |
|
10239 |
||
10240 |
#ifdef RTLD_GLOBAL |
|
10241 |
# define LT_DLGLOBAL RTLD_GLOBAL |
|
10242 |
#else |
|
10243 |
# ifdef DL_GLOBAL |
|
10244 |
# define LT_DLGLOBAL DL_GLOBAL |
|
10245 |
# else |
|
10246 |
# define LT_DLGLOBAL 0 |
|
10247 |
# endif |
|
10248 |
#endif |
|
10249 |
||
10250 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
10251 |
find out it does not work in some platform. */ |
|
10252 |
#ifndef LT_DLLAZY_OR_NOW |
|
10253 |
# ifdef RTLD_LAZY |
|
10254 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
10255 |
# else |
|
10256 |
# ifdef DL_LAZY |
|
10257 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
10258 |
# else |
|
10259 |
# ifdef RTLD_NOW |
|
10260 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
10261 |
# else |
|
10262 |
# ifdef DL_NOW |
|
10263 |
# define LT_DLLAZY_OR_NOW DL_NOW |
|
10264 |
# else |
|
10265 |
# define LT_DLLAZY_OR_NOW 0 |
|
10266 |
# endif |
|
10267 |
# endif |
|
10268 |
# endif |
|
10269 |
# endif |
|
10270 |
#endif |
|
10271 |
||
10272 |
void fnord() { int i=42;} |
|
10273 |
int main () |
|
10274 |
{ |
|
10275 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
10276 |
int status = $lt_dlunknown; |
|
10277 |
||
10278 |
if (self) |
|
10279 |
{ |
|
10280 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
10281 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
10282 |
/* dlclose (self); */ |
|
10283 |
} |
|
10284 |
else |
|
10285 |
puts (dlerror ()); |
|
10286 |
||
10287 |
return status; |
|
10288 |
} |
|
10289 |
_LT_EOF |
|
10290 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
|
10291 |
(eval $ac_link) 2>&5 |
|
10292 |
ac_status=$? |
|
10293 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
10294 |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
10295 |
(./conftest; exit; ) >&5 2>/dev/null |
|
10296 |
lt_status=$? |
|
10297 |
case x$lt_status in |
|
10298 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
|
10299 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
|
10300 |
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
|
10301 |
esac |
|
10302 |
else : |
|
10303 |
# compilation failed |
|
10304 |
lt_cv_dlopen_self=no |
|
10305 |
fi |
|
10306 |
fi |
|
10307 |
rm -fr conftest* |
|
10308 |
||
10309 |
||
10310 |
fi |
|
10311 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
|
10312 |
$as_echo "$lt_cv_dlopen_self" >&6; } |
|
10313 |
||
10314 |
if test "x$lt_cv_dlopen_self" = xyes; then |
|
10315 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
|
10316 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
|
10317 |
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
|
10318 |
if test "${lt_cv_dlopen_self_static+set}" = set; then : |
|
10319 |
$as_echo_n "(cached) " >&6 |
|
10320 |
else |
|
10321 |
if test "$cross_compiling" = yes; then : |
|
10322 |
lt_cv_dlopen_self_static=cross |
|
10323 |
else |
|
10324 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
|
10325 |
lt_status=$lt_dlunknown |
|
10326 |
cat > conftest.$ac_ext <<_LT_EOF |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
10327 |
#line 10327 "configure" |
5
by edam
- updated README |
10328 |
#include "confdefs.h" |
10329 |
||
10330 |
#if HAVE_DLFCN_H |
|
10331 |
#include <dlfcn.h> |
|
10332 |
#endif |
|
10333 |
||
10334 |
#include <stdio.h> |
|
10335 |
||
10336 |
#ifdef RTLD_GLOBAL |
|
10337 |
# define LT_DLGLOBAL RTLD_GLOBAL |
|
10338 |
#else |
|
10339 |
# ifdef DL_GLOBAL |
|
10340 |
# define LT_DLGLOBAL DL_GLOBAL |
|
10341 |
# else |
|
10342 |
# define LT_DLGLOBAL 0 |
|
10343 |
# endif |
|
10344 |
#endif |
|
10345 |
||
10346 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
|
10347 |
find out it does not work in some platform. */ |
|
10348 |
#ifndef LT_DLLAZY_OR_NOW |
|
10349 |
# ifdef RTLD_LAZY |
|
10350 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
|
10351 |
# else |
|
10352 |
# ifdef DL_LAZY |
|
10353 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
|
10354 |
# else |
|
10355 |
# ifdef RTLD_NOW |
|
10356 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
|
10357 |
# else |
|
10358 |
# ifdef DL_NOW |
|
10359 |
# define LT_DLLAZY_OR_NOW DL_NOW |
|
10360 |
# else |
|
10361 |
# define LT_DLLAZY_OR_NOW 0 |
|
10362 |
# endif |
|
10363 |
# endif |
|
10364 |
# endif |
|
10365 |
# endif |
|
10366 |
#endif |
|
10367 |
||
10368 |
void fnord() { int i=42;} |
|
10369 |
int main () |
|
10370 |
{ |
|
10371 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
|
10372 |
int status = $lt_dlunknown; |
|
10373 |
||
10374 |
if (self) |
|
10375 |
{ |
|
10376 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
|
10377 |
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
|
10378 |
/* dlclose (self); */ |
|
10379 |
} |
|
10380 |
else |
|
10381 |
puts (dlerror ()); |
|
10382 |
||
10383 |
return status; |
|
10384 |
} |
|
10385 |
_LT_EOF |
|
10386 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
|
10387 |
(eval $ac_link) 2>&5 |
|
10388 |
ac_status=$? |
|
10389 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
10390 |
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
|
10391 |
(./conftest; exit; ) >&5 2>/dev/null |
|
10392 |
lt_status=$? |
|
10393 |
case x$lt_status in |
|
10394 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
|
10395 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
|
10396 |
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
|
10397 |
esac |
|
10398 |
else : |
|
10399 |
# compilation failed |
|
10400 |
lt_cv_dlopen_self_static=no |
|
10401 |
fi |
|
10402 |
fi |
|
10403 |
rm -fr conftest* |
|
10404 |
||
10405 |
||
10406 |
fi |
|
10407 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
|
10408 |
$as_echo "$lt_cv_dlopen_self_static" >&6; } |
|
10409 |
fi |
|
10410 |
||
10411 |
CPPFLAGS="$save_CPPFLAGS" |
|
10412 |
LDFLAGS="$save_LDFLAGS" |
|
10413 |
LIBS="$save_LIBS" |
|
10414 |
;; |
|
10415 |
esac |
|
10416 |
||
10417 |
case $lt_cv_dlopen_self in |
|
10418 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
|
10419 |
*) enable_dlopen_self=unknown ;; |
|
10420 |
esac |
|
10421 |
||
10422 |
case $lt_cv_dlopen_self_static in |
|
10423 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
|
10424 |
*) enable_dlopen_self_static=unknown ;; |
|
10425 |
esac |
|
10426 |
fi |
|
10427 |
||
10428 |
||
10429 |
||
10430 |
||
10431 |
||
10432 |
||
10433 |
||
10434 |
||
10435 |
||
10436 |
||
10437 |
||
10438 |
||
10439 |
||
10440 |
||
10441 |
||
10442 |
||
10443 |
||
10444 |
striplib= |
|
10445 |
old_striplib= |
|
10446 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
|
10447 |
$as_echo_n "checking whether stripping libraries is possible... " >&6; } |
|
10448 |
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
|
10449 |
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
|
10450 |
test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
|
10451 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
10452 |
$as_echo "yes" >&6; } |
|
10453 |
else |
|
10454 |
# FIXME - insert some real tests, host_os isn't really good enough |
|
10455 |
case $host_os in |
|
10456 |
darwin*) |
|
10457 |
if test -n "$STRIP" ; then |
|
10458 |
striplib="$STRIP -x" |
|
10459 |
old_striplib="$STRIP -S" |
|
10460 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
|
10461 |
$as_echo "yes" >&6; } |
|
10462 |
else |
|
10463 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
10464 |
$as_echo "no" >&6; } |
|
10465 |
fi |
|
10466 |
;; |
|
10467 |
*) |
|
10468 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
10469 |
$as_echo "no" >&6; } |
|
10470 |
;; |
|
10471 |
esac |
|
10472 |
fi |
|
10473 |
||
10474 |
||
10475 |
||
10476 |
||
10477 |
||
10478 |
||
10479 |
||
10480 |
||
10481 |
||
10482 |
||
10483 |
||
10484 |
||
10485 |
# Report which library types will actually be built |
|
10486 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
|
10487 |
$as_echo_n "checking if libtool supports shared libraries... " >&6; } |
|
10488 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
|
10489 |
$as_echo "$can_build_shared" >&6; } |
|
10490 |
||
10491 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
|
10492 |
$as_echo_n "checking whether to build shared libraries... " >&6; } |
|
10493 |
test "$can_build_shared" = "no" && enable_shared=no |
|
10494 |
||
10495 |
# On AIX, shared libraries and static libraries use the same namespace, and |
|
10496 |
# are all built from PIC. |
|
10497 |
case $host_os in |
|
10498 |
aix3*) |
|
10499 |
test "$enable_shared" = yes && enable_static=no |
|
10500 |
if test -n "$RANLIB"; then |
|
10501 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
|
10502 |
postinstall_cmds='$RANLIB $lib' |
|
10503 |
fi |
|
10504 |
;; |
|
10505 |
||
10506 |
aix[4-9]*) |
|
10507 |
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
|
10508 |
test "$enable_shared" = yes && enable_static=no |
|
10509 |
fi |
|
10510 |
;; |
|
10511 |
esac |
|
10512 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
|
10513 |
$as_echo "$enable_shared" >&6; } |
|
10514 |
||
10515 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
|
10516 |
$as_echo_n "checking whether to build static libraries... " >&6; } |
|
10517 |
# Make sure either enable_shared or enable_static is yes. |
|
10518 |
test "$enable_shared" = yes || enable_static=yes |
|
10519 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
|
10520 |
$as_echo "$enable_static" >&6; } |
|
10521 |
||
10522 |
||
10523 |
||
10524 |
||
10525 |
fi |
|
10526 |
ac_ext=c |
|
10527 |
ac_cpp='$CPP $CPPFLAGS' |
|
10528 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
10529 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
10530 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
10531 |
||
10532 |
CC="$lt_save_CC" |
|
10533 |
||
10534 |
||
6
by edam
- fixed .am files so the library gets built! |
10535 |
|
10536 |
||
10537 |
||
10538 |
||
10539 |
||
10540 |
||
10541 |
||
10542 |
||
10543 |
||
10544 |
||
10545 |
||
10546 |
ac_config_commands="$ac_config_commands libtool" |
|
10547 |
||
10548 |
||
10549 |
||
10550 |
||
10551 |
# Only expand once: |
|
10552 |
||
10553 |
||
10554 |
||
10555 |
# checks for programs. |
|
10556 |
ac_ext=cpp |
|
10557 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
10558 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
10559 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
10560 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
10561 |
if test -z "$CXX"; then |
|
10562 |
if test -n "$CCC"; then |
|
10563 |
CXX=$CCC |
|
10564 |
else |
|
10565 |
if test -n "$ac_tool_prefix"; then |
|
10566 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
|
10567 |
do |
|
10568 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
10569 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
10570 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
10571 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
10572 |
if test "${ac_cv_prog_CXX+set}" = set; then : |
|
10573 |
$as_echo_n "(cached) " >&6 |
|
10574 |
else |
|
10575 |
if test -n "$CXX"; then |
|
10576 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
|
10577 |
else |
|
10578 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
10579 |
for as_dir in $PATH |
|
10580 |
do |
|
10581 |
IFS=$as_save_IFS |
|
10582 |
test -z "$as_dir" && as_dir=. |
|
10583 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
10584 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
10585 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
|
10586 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
10587 |
break 2 |
|
10588 |
fi |
|
10589 |
done |
|
10590 |
done |
|
10591 |
IFS=$as_save_IFS |
|
10592 |
||
10593 |
fi |
|
10594 |
fi |
|
10595 |
CXX=$ac_cv_prog_CXX |
|
10596 |
if test -n "$CXX"; then |
|
10597 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
|
10598 |
$as_echo "$CXX" >&6; } |
|
10599 |
else |
|
10600 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
10601 |
$as_echo "no" >&6; } |
|
10602 |
fi |
|
10603 |
||
10604 |
||
10605 |
test -n "$CXX" && break |
|
10606 |
done |
|
10607 |
fi |
|
10608 |
if test -z "$CXX"; then |
|
10609 |
ac_ct_CXX=$CXX |
|
10610 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
|
10611 |
do |
|
10612 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
10613 |
set dummy $ac_prog; ac_word=$2 |
|
10614 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
10615 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
10616 |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
|
10617 |
$as_echo_n "(cached) " >&6 |
|
10618 |
else |
|
10619 |
if test -n "$ac_ct_CXX"; then |
|
10620 |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
|
10621 |
else |
|
10622 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
10623 |
for as_dir in $PATH |
|
10624 |
do |
|
10625 |
IFS=$as_save_IFS |
|
10626 |
test -z "$as_dir" && as_dir=. |
|
10627 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
10628 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
10629 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
|
10630 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
10631 |
break 2 |
|
10632 |
fi |
|
10633 |
done |
|
10634 |
done |
|
10635 |
IFS=$as_save_IFS |
|
10636 |
||
10637 |
fi |
|
10638 |
fi |
|
10639 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
|
10640 |
if test -n "$ac_ct_CXX"; then |
|
10641 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
|
10642 |
$as_echo "$ac_ct_CXX" >&6; } |
|
10643 |
else |
|
10644 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
10645 |
$as_echo "no" >&6; } |
|
10646 |
fi |
|
10647 |
||
10648 |
||
10649 |
test -n "$ac_ct_CXX" && break |
|
10650 |
done |
|
10651 |
||
10652 |
if test "x$ac_ct_CXX" = x; then |
|
10653 |
CXX="g++" |
|
10654 |
else |
|
10655 |
case $cross_compiling:$ac_tool_warned in |
|
10656 |
yes:) |
|
10657 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
10658 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
10659 |
ac_tool_warned=yes ;; |
|
10660 |
esac |
|
10661 |
CXX=$ac_ct_CXX |
|
10662 |
fi |
|
10663 |
fi |
|
10664 |
||
10665 |
fi |
|
10666 |
fi |
|
10667 |
# Provide some information about the compiler. |
|
10668 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
|
10669 |
set X $ac_compile |
|
10670 |
ac_compiler=$2 |
|
10671 |
for ac_option in --version -v -V -qversion; do |
|
10672 |
{ { ac_try="$ac_compiler $ac_option >&5" |
|
10673 |
case "(($ac_try" in |
|
10674 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
10675 |
*) ac_try_echo=$ac_try;; |
|
10676 |
esac |
|
10677 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
10678 |
$as_echo "$ac_try_echo"; } >&5 |
|
10679 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
|
10680 |
ac_status=$? |
|
10681 |
if test -s conftest.err; then |
|
10682 |
sed '10a\ |
|
10683 |
... rest of stderr output deleted ... |
|
10684 |
10q' conftest.err >conftest.er1 |
|
10685 |
cat conftest.er1 >&5 |
|
10686 |
fi |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
10687 |
rm -f conftest.er1 conftest.err |
6
by edam
- fixed .am files so the library gets built! |
10688 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10689 |
test $ac_status = 0; } |
|
10690 |
done |
|
10691 |
||
10692 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
|
10693 |
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
|
10694 |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
|
10695 |
$as_echo_n "(cached) " >&6 |
|
10696 |
else |
|
10697 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
10698 |
/* end confdefs.h. */ |
|
10699 |
||
10700 |
int |
|
10701 |
main () |
|
10702 |
{ |
|
10703 |
#ifndef __GNUC__ |
|
10704 |
choke me |
|
10705 |
#endif |
|
10706 |
||
10707 |
; |
|
10708 |
return 0; |
|
10709 |
} |
|
10710 |
_ACEOF |
|
10711 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
|
10712 |
ac_compiler_gnu=yes |
|
10713 |
else |
|
10714 |
ac_compiler_gnu=no |
|
10715 |
fi |
|
10716 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
10717 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
|
10718 |
||
10719 |
fi |
|
10720 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
|
10721 |
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
|
10722 |
if test $ac_compiler_gnu = yes; then |
|
10723 |
GXX=yes |
|
10724 |
else |
|
10725 |
GXX= |
|
10726 |
fi |
|
10727 |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
|
10728 |
ac_save_CXXFLAGS=$CXXFLAGS |
|
10729 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
|
10730 |
$as_echo_n "checking whether $CXX accepts -g... " >&6; } |
|
10731 |
if test "${ac_cv_prog_cxx_g+set}" = set; then : |
|
10732 |
$as_echo_n "(cached) " >&6 |
|
10733 |
else |
|
10734 |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
|
10735 |
ac_cxx_werror_flag=yes |
|
10736 |
ac_cv_prog_cxx_g=no |
|
10737 |
CXXFLAGS="-g" |
|
10738 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
10739 |
/* end confdefs.h. */ |
|
10740 |
||
10741 |
int |
|
10742 |
main () |
|
10743 |
{ |
|
10744 |
||
10745 |
; |
|
10746 |
return 0; |
|
10747 |
} |
|
10748 |
_ACEOF |
|
10749 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
|
10750 |
ac_cv_prog_cxx_g=yes |
|
10751 |
else |
|
10752 |
CXXFLAGS="" |
|
10753 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
10754 |
/* end confdefs.h. */ |
|
10755 |
||
10756 |
int |
|
10757 |
main () |
|
10758 |
{ |
|
10759 |
||
10760 |
; |
|
10761 |
return 0; |
|
10762 |
} |
|
10763 |
_ACEOF |
|
10764 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
|
10765 |
||
10766 |
else |
|
10767 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|
10768 |
CXXFLAGS="-g" |
|
10769 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
10770 |
/* end confdefs.h. */ |
|
10771 |
||
10772 |
int |
|
10773 |
main () |
|
10774 |
{ |
|
10775 |
||
10776 |
; |
|
10777 |
return 0; |
|
10778 |
} |
|
10779 |
_ACEOF |
|
10780 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
|
10781 |
ac_cv_prog_cxx_g=yes |
|
10782 |
fi |
|
10783 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
10784 |
fi |
|
10785 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
10786 |
fi |
|
10787 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
10788 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|
10789 |
fi |
|
10790 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
|
10791 |
$as_echo "$ac_cv_prog_cxx_g" >&6; } |
|
10792 |
if test "$ac_test_CXXFLAGS" = set; then |
|
10793 |
CXXFLAGS=$ac_save_CXXFLAGS |
|
10794 |
elif test $ac_cv_prog_cxx_g = yes; then |
|
10795 |
if test "$GXX" = yes; then |
|
10796 |
CXXFLAGS="-g -O2" |
|
10797 |
else |
|
10798 |
CXXFLAGS="-g" |
|
10799 |
fi |
|
10800 |
else |
|
10801 |
if test "$GXX" = yes; then |
|
10802 |
CXXFLAGS="-O2" |
|
10803 |
else |
|
10804 |
CXXFLAGS= |
|
10805 |
fi |
|
10806 |
fi |
|
10807 |
ac_ext=c |
|
10808 |
ac_cpp='$CPP $CPPFLAGS' |
|
10809 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
10810 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
10811 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
10812 |
||
10813 |
depcc="$CXX" am_compiler_list= |
|
10814 |
||
10815 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
|
10816 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
|
10817 |
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
|
10818 |
$as_echo_n "(cached) " >&6 |
|
10819 |
else |
|
10820 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
10821 |
# We make a subdir and do the tests there. Otherwise we can end up |
|
10822 |
# making bogus files that we don't know about and never remove. For |
|
10823 |
# instance it was reported that on HP-UX the gcc test will end up |
|
10824 |
# making a dummy file named `D' -- because `-MD' means `put the output |
|
10825 |
# in D'. |
|
10826 |
mkdir conftest.dir |
|
10827 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
|
10828 |
# using a relative directory. |
|
10829 |
cp "$am_depcomp" conftest.dir |
|
10830 |
cd conftest.dir |
|
10831 |
# We will build objects and dependencies in a subdirectory because |
|
10832 |
# it helps to detect inapplicable dependency modes. For instance |
|
10833 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
|
10834 |
# side effect of compilation, but ICC will put the dependencies in |
|
10835 |
# the current directory while Tru64 will put them in the object |
|
10836 |
# directory. |
|
10837 |
mkdir sub |
|
10838 |
||
10839 |
am_cv_CXX_dependencies_compiler_type=none |
|
10840 |
if test "$am_compiler_list" = ""; then |
|
10841 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
|
10842 |
fi |
|
10843 |
am__universal=false |
|
10844 |
case " $depcc " in #( |
|
10845 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
|
10846 |
esac |
|
10847 |
||
10848 |
for depmode in $am_compiler_list; do |
|
10849 |
# Setup a source with many dependencies, because some compilers |
|
10850 |
# like to wrap large dependency lists on column 80 (with \), and |
|
10851 |
# we should not choose a depcomp mode which is confused by this. |
|
10852 |
# |
|
10853 |
# We need to recreate these files for each test, as the compiler may |
|
10854 |
# overwrite some of them when testing with obscure command lines. |
|
10855 |
# This happens at least with the AIX C compiler. |
|
10856 |
: > sub/conftest.c |
|
10857 |
for i in 1 2 3 4 5 6; do |
|
10858 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
10859 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
|
10860 |
# Solaris 8's {/usr,}/bin/sh. |
|
10861 |
touch sub/conftst$i.h |
|
10862 |
done |
|
10863 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
10864 |
||
10865 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
10866 |
# mode. It turns out that the SunPro C++ compiler does not properly |
|
10867 |
# handle `-M -o', and we need to detect this. Also, some Intel |
|
10868 |
# versions had trouble with output in subdirs |
|
10869 |
am__obj=sub/conftest.${OBJEXT-o} |
|
10870 |
am__minus_obj="-o $am__obj" |
|
10871 |
case $depmode in |
|
10872 |
gcc) |
|
10873 |
# This depmode causes a compiler race in universal mode. |
|
10874 |
test "$am__universal" = false || continue |
|
10875 |
;; |
|
10876 |
nosideeffect) |
|
10877 |
# after this tag, mechanisms are not by side-effect, so they'll |
|
10878 |
# only be used when explicitly requested |
|
10879 |
if test "x$enable_dependency_tracking" = xyes; then |
|
10880 |
continue |
|
10881 |
else |
|
10882 |
break |
|
10883 |
fi |
|
10884 |
;; |
|
10885 |
msvisualcpp | msvcmsys) |
|
10886 |
# This compiler won't grok `-c -o', but also, the minuso test has |
|
10887 |
# not run yet. These depmodes are late enough in the game, and |
|
10888 |
# so weak that their functioning should not be impacted. |
|
10889 |
am__obj=conftest.${OBJEXT-o} |
|
10890 |
am__minus_obj= |
|
10891 |
;; |
|
10892 |
none) break ;; |
|
10893 |
esac |
|
10894 |
if depmode=$depmode \ |
|
10895 |
source=sub/conftest.c object=$am__obj \ |
|
10896 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
10897 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
|
10898 |
>/dev/null 2>conftest.err && |
|
10899 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
|
10900 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
10901 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
|
10902 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
10903 |
# icc doesn't choke on unknown options, it will just issue warnings |
|
10904 |
# or remarks (even with -Werror). So we grep stderr for any message |
|
10905 |
# that says an option was ignored or not supported. |
|
10906 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
|
10907 |
# icc: Command line warning: ignoring option '-M'; no argument required |
|
10908 |
# The diagnosis changed in icc 8.0: |
|
10909 |
# icc: Command line remark: option '-MP' not supported |
|
10910 |
if (grep 'ignoring option' conftest.err || |
|
10911 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
10912 |
am_cv_CXX_dependencies_compiler_type=$depmode |
|
10913 |
break |
|
10914 |
fi |
|
10915 |
fi |
|
10916 |
done |
|
10917 |
||
10918 |
cd .. |
|
10919 |
rm -rf conftest.dir |
|
10920 |
else |
|
10921 |
am_cv_CXX_dependencies_compiler_type=none |
|
10922 |
fi |
|
10923 |
||
10924 |
fi |
|
10925 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
|
10926 |
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
|
10927 |
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
|
10928 |
||
10929 |
if |
|
10930 |
test "x$enable_dependency_tracking" != xno \ |
|
10931 |
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
|
10932 |
am__fastdepCXX_TRUE= |
|
10933 |
am__fastdepCXX_FALSE='#' |
|
10934 |
else |
|
10935 |
am__fastdepCXX_TRUE='#' |
|
10936 |
am__fastdepCXX_FALSE= |
|
10937 |
fi |
|
10938 |
||
10939 |
||
10940 |
||
10941 |
ac_ext=cpp |
|
10942 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
10943 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
10944 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
10945 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
10946 |
if test -z "$CXX"; then |
|
10947 |
if test -n "$CCC"; then |
|
10948 |
CXX=$CCC |
|
10949 |
else |
|
10950 |
if test -n "$ac_tool_prefix"; then |
|
10951 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
|
10952 |
do |
|
10953 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
|
10954 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
|
10955 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
10956 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
10957 |
if test "${ac_cv_prog_CXX+set}" = set; then : |
|
10958 |
$as_echo_n "(cached) " >&6 |
|
10959 |
else |
|
10960 |
if test -n "$CXX"; then |
|
10961 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
|
10962 |
else |
|
10963 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
10964 |
for as_dir in $PATH |
|
10965 |
do |
|
10966 |
IFS=$as_save_IFS |
|
10967 |
test -z "$as_dir" && as_dir=. |
|
10968 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
10969 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
10970 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
|
10971 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
10972 |
break 2 |
|
10973 |
fi |
|
10974 |
done |
|
10975 |
done |
|
10976 |
IFS=$as_save_IFS |
|
10977 |
||
10978 |
fi |
|
10979 |
fi |
|
10980 |
CXX=$ac_cv_prog_CXX |
|
10981 |
if test -n "$CXX"; then |
|
10982 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
|
10983 |
$as_echo "$CXX" >&6; } |
|
10984 |
else |
|
10985 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
10986 |
$as_echo "no" >&6; } |
|
10987 |
fi |
|
10988 |
||
10989 |
||
10990 |
test -n "$CXX" && break |
|
10991 |
done |
|
10992 |
fi |
|
10993 |
if test -z "$CXX"; then |
|
10994 |
ac_ct_CXX=$CXX |
|
10995 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
|
10996 |
do |
|
10997 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
|
10998 |
set dummy $ac_prog; ac_word=$2 |
|
10999 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
11000 |
$as_echo_n "checking for $ac_word... " >&6; } |
|
11001 |
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
|
11002 |
$as_echo_n "(cached) " >&6 |
|
11003 |
else |
|
11004 |
if test -n "$ac_ct_CXX"; then |
|
11005 |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
|
11006 |
else |
|
11007 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
11008 |
for as_dir in $PATH |
|
11009 |
do |
|
11010 |
IFS=$as_save_IFS |
|
11011 |
test -z "$as_dir" && as_dir=. |
|
11012 |
for ac_exec_ext in '' $ac_executable_extensions; do |
|
11013 |
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
11014 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
|
11015 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
11016 |
break 2 |
|
11017 |
fi |
|
11018 |
done |
|
11019 |
done |
|
11020 |
IFS=$as_save_IFS |
|
11021 |
||
11022 |
fi |
|
11023 |
fi |
|
11024 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
|
11025 |
if test -n "$ac_ct_CXX"; then |
|
11026 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
|
11027 |
$as_echo "$ac_ct_CXX" >&6; } |
|
11028 |
else |
|
11029 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
11030 |
$as_echo "no" >&6; } |
|
11031 |
fi |
|
11032 |
||
11033 |
||
11034 |
test -n "$ac_ct_CXX" && break |
|
11035 |
done |
|
11036 |
||
11037 |
if test "x$ac_ct_CXX" = x; then |
|
11038 |
CXX="g++" |
|
11039 |
else |
|
11040 |
case $cross_compiling:$ac_tool_warned in |
|
11041 |
yes:) |
|
11042 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
11043 |
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
11044 |
ac_tool_warned=yes ;; |
|
11045 |
esac |
|
11046 |
CXX=$ac_ct_CXX |
|
11047 |
fi |
|
11048 |
fi |
|
11049 |
||
11050 |
fi |
|
11051 |
fi |
|
11052 |
# Provide some information about the compiler. |
|
11053 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
|
11054 |
set X $ac_compile |
|
11055 |
ac_compiler=$2 |
|
11056 |
for ac_option in --version -v -V -qversion; do |
|
11057 |
{ { ac_try="$ac_compiler $ac_option >&5" |
|
11058 |
case "(($ac_try" in |
|
11059 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
11060 |
*) ac_try_echo=$ac_try;; |
|
11061 |
esac |
|
11062 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
11063 |
$as_echo "$ac_try_echo"; } >&5 |
|
11064 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
|
11065 |
ac_status=$? |
|
11066 |
if test -s conftest.err; then |
|
11067 |
sed '10a\ |
|
11068 |
... rest of stderr output deleted ... |
|
11069 |
10q' conftest.err >conftest.er1 |
|
11070 |
cat conftest.er1 >&5 |
|
11071 |
fi |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
11072 |
rm -f conftest.er1 conftest.err |
6
by edam
- fixed .am files so the library gets built! |
11073 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11074 |
test $ac_status = 0; } |
|
11075 |
done |
|
11076 |
||
11077 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
|
11078 |
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
|
11079 |
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
|
11080 |
$as_echo_n "(cached) " >&6 |
|
11081 |
else |
|
11082 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
11083 |
/* end confdefs.h. */ |
|
11084 |
||
11085 |
int |
|
11086 |
main () |
|
11087 |
{ |
|
11088 |
#ifndef __GNUC__ |
|
11089 |
choke me |
|
11090 |
#endif |
|
11091 |
||
11092 |
; |
|
11093 |
return 0; |
|
11094 |
} |
|
11095 |
_ACEOF |
|
11096 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
|
11097 |
ac_compiler_gnu=yes |
|
11098 |
else |
|
11099 |
ac_compiler_gnu=no |
|
11100 |
fi |
|
11101 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
11102 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
|
11103 |
||
11104 |
fi |
|
11105 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
|
11106 |
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
|
11107 |
if test $ac_compiler_gnu = yes; then |
|
11108 |
GXX=yes |
|
11109 |
else |
|
11110 |
GXX= |
|
11111 |
fi |
|
11112 |
ac_test_CXXFLAGS=${CXXFLAGS+set} |
|
11113 |
ac_save_CXXFLAGS=$CXXFLAGS |
|
11114 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
|
11115 |
$as_echo_n "checking whether $CXX accepts -g... " >&6; } |
|
11116 |
if test "${ac_cv_prog_cxx_g+set}" = set; then : |
|
11117 |
$as_echo_n "(cached) " >&6 |
|
11118 |
else |
|
11119 |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
|
11120 |
ac_cxx_werror_flag=yes |
|
11121 |
ac_cv_prog_cxx_g=no |
|
11122 |
CXXFLAGS="-g" |
|
11123 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
11124 |
/* end confdefs.h. */ |
|
11125 |
||
11126 |
int |
|
11127 |
main () |
|
11128 |
{ |
|
11129 |
||
11130 |
; |
|
11131 |
return 0; |
|
11132 |
} |
|
11133 |
_ACEOF |
|
11134 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
|
11135 |
ac_cv_prog_cxx_g=yes |
|
11136 |
else |
|
11137 |
CXXFLAGS="" |
|
11138 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
11139 |
/* end confdefs.h. */ |
|
11140 |
||
11141 |
int |
|
11142 |
main () |
|
11143 |
{ |
|
11144 |
||
11145 |
; |
|
11146 |
return 0; |
|
11147 |
} |
|
11148 |
_ACEOF |
|
11149 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
|
11150 |
||
11151 |
else |
|
11152 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|
11153 |
CXXFLAGS="-g" |
|
11154 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
11155 |
/* end confdefs.h. */ |
|
11156 |
||
11157 |
int |
|
11158 |
main () |
|
11159 |
{ |
|
11160 |
||
11161 |
; |
|
11162 |
return 0; |
|
11163 |
} |
|
11164 |
_ACEOF |
|
11165 |
if ac_fn_cxx_try_compile "$LINENO"; then : |
|
11166 |
ac_cv_prog_cxx_g=yes |
|
11167 |
fi |
|
11168 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
11169 |
fi |
|
11170 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
11171 |
fi |
|
11172 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
11173 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
|
11174 |
fi |
|
11175 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
|
11176 |
$as_echo "$ac_cv_prog_cxx_g" >&6; } |
|
11177 |
if test "$ac_test_CXXFLAGS" = set; then |
|
11178 |
CXXFLAGS=$ac_save_CXXFLAGS |
|
11179 |
elif test $ac_cv_prog_cxx_g = yes; then |
|
11180 |
if test "$GXX" = yes; then |
|
11181 |
CXXFLAGS="-g -O2" |
|
11182 |
else |
|
11183 |
CXXFLAGS="-g" |
|
11184 |
fi |
|
11185 |
else |
|
11186 |
if test "$GXX" = yes; then |
|
11187 |
CXXFLAGS="-O2" |
|
11188 |
else |
|
11189 |
CXXFLAGS= |
|
11190 |
fi |
|
11191 |
fi |
|
11192 |
ac_ext=c |
|
11193 |
ac_cpp='$CPP $CPPFLAGS' |
|
11194 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
11195 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
11196 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
11197 |
||
11198 |
depcc="$CXX" am_compiler_list= |
|
11199 |
||
11200 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
|
11201 |
$as_echo_n "checking dependency style of $depcc... " >&6; } |
|
11202 |
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
|
11203 |
$as_echo_n "(cached) " >&6 |
|
11204 |
else |
|
11205 |
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
|
11206 |
# We make a subdir and do the tests there. Otherwise we can end up |
|
11207 |
# making bogus files that we don't know about and never remove. For |
|
11208 |
# instance it was reported that on HP-UX the gcc test will end up |
|
11209 |
# making a dummy file named `D' -- because `-MD' means `put the output |
|
11210 |
# in D'. |
|
11211 |
mkdir conftest.dir |
|
11212 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
|
11213 |
# using a relative directory. |
|
11214 |
cp "$am_depcomp" conftest.dir |
|
11215 |
cd conftest.dir |
|
11216 |
# We will build objects and dependencies in a subdirectory because |
|
11217 |
# it helps to detect inapplicable dependency modes. For instance |
|
11218 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
|
11219 |
# side effect of compilation, but ICC will put the dependencies in |
|
11220 |
# the current directory while Tru64 will put them in the object |
|
11221 |
# directory. |
|
11222 |
mkdir sub |
|
11223 |
||
11224 |
am_cv_CXX_dependencies_compiler_type=none |
|
11225 |
if test "$am_compiler_list" = ""; then |
|
11226 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
|
11227 |
fi |
|
11228 |
am__universal=false |
|
11229 |
case " $depcc " in #( |
|
11230 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
|
11231 |
esac |
|
11232 |
||
11233 |
for depmode in $am_compiler_list; do |
|
11234 |
# Setup a source with many dependencies, because some compilers |
|
11235 |
# like to wrap large dependency lists on column 80 (with \), and |
|
11236 |
# we should not choose a depcomp mode which is confused by this. |
|
11237 |
# |
|
11238 |
# We need to recreate these files for each test, as the compiler may |
|
11239 |
# overwrite some of them when testing with obscure command lines. |
|
11240 |
# This happens at least with the AIX C compiler. |
|
11241 |
: > sub/conftest.c |
|
11242 |
for i in 1 2 3 4 5 6; do |
|
11243 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
|
11244 |
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
|
11245 |
# Solaris 8's {/usr,}/bin/sh. |
|
11246 |
touch sub/conftst$i.h |
|
11247 |
done |
|
11248 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
|
11249 |
||
11250 |
# We check with `-c' and `-o' for the sake of the "dashmstdout" |
|
11251 |
# mode. It turns out that the SunPro C++ compiler does not properly |
|
11252 |
# handle `-M -o', and we need to detect this. Also, some Intel |
|
11253 |
# versions had trouble with output in subdirs |
|
11254 |
am__obj=sub/conftest.${OBJEXT-o} |
|
11255 |
am__minus_obj="-o $am__obj" |
|
11256 |
case $depmode in |
|
11257 |
gcc) |
|
11258 |
# This depmode causes a compiler race in universal mode. |
|
11259 |
test "$am__universal" = false || continue |
|
11260 |
;; |
|
11261 |
nosideeffect) |
|
11262 |
# after this tag, mechanisms are not by side-effect, so they'll |
|
11263 |
# only be used when explicitly requested |
|
11264 |
if test "x$enable_dependency_tracking" = xyes; then |
|
11265 |
continue |
|
11266 |
else |
|
11267 |
break |
|
11268 |
fi |
|
11269 |
;; |
|
11270 |
msvisualcpp | msvcmsys) |
|
11271 |
# This compiler won't grok `-c -o', but also, the minuso test has |
|
11272 |
# not run yet. These depmodes are late enough in the game, and |
|
11273 |
# so weak that their functioning should not be impacted. |
|
11274 |
am__obj=conftest.${OBJEXT-o} |
|
11275 |
am__minus_obj= |
|
11276 |
;; |
|
11277 |
none) break ;; |
|
11278 |
esac |
|
11279 |
if depmode=$depmode \ |
|
11280 |
source=sub/conftest.c object=$am__obj \ |
|
11281 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
|
11282 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
|
11283 |
>/dev/null 2>conftest.err && |
|
11284 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
|
11285 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
|
11286 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
|
11287 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
|
11288 |
# icc doesn't choke on unknown options, it will just issue warnings |
|
11289 |
# or remarks (even with -Werror). So we grep stderr for any message |
|
11290 |
# that says an option was ignored or not supported. |
|
11291 |
# When given -MP, icc 7.0 and 7.1 complain thusly: |
|
11292 |
# icc: Command line warning: ignoring option '-M'; no argument required |
|
11293 |
# The diagnosis changed in icc 8.0: |
|
11294 |
# icc: Command line remark: option '-MP' not supported |
|
11295 |
if (grep 'ignoring option' conftest.err || |
|
11296 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
|
11297 |
am_cv_CXX_dependencies_compiler_type=$depmode |
|
11298 |
break |
|
11299 |
fi |
|
11300 |
fi |
|
11301 |
done |
|
11302 |
||
11303 |
cd .. |
|
11304 |
rm -rf conftest.dir |
|
11305 |
else |
|
11306 |
am_cv_CXX_dependencies_compiler_type=none |
|
11307 |
fi |
|
11308 |
||
11309 |
fi |
|
11310 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
|
11311 |
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
|
11312 |
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
|
11313 |
||
11314 |
if |
|
11315 |
test "x$enable_dependency_tracking" != xno \ |
|
11316 |
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
|
11317 |
am__fastdepCXX_TRUE= |
|
11318 |
am__fastdepCXX_FALSE='#' |
|
11319 |
else |
|
11320 |
am__fastdepCXX_TRUE='#' |
|
11321 |
am__fastdepCXX_FALSE= |
|
11322 |
fi |
|
11323 |
||
11324 |
||
11325 |
if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
|
11326 |
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
|
11327 |
(test "X$CXX" != "Xg++"))) ; then |
|
11328 |
ac_ext=cpp |
|
11329 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
11330 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
11331 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
11332 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
11333 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
|
11334 |
$as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
|
11335 |
if test -z "$CXXCPP"; then |
|
11336 |
if test "${ac_cv_prog_CXXCPP+set}" = set; then : |
|
11337 |
$as_echo_n "(cached) " >&6 |
|
11338 |
else |
|
11339 |
# Double quotes because CXXCPP needs to be expanded |
|
11340 |
for CXXCPP in "$CXX -E" "/lib/cpp" |
|
11341 |
do |
|
11342 |
ac_preproc_ok=false |
|
11343 |
for ac_cxx_preproc_warn_flag in '' yes |
|
11344 |
do |
|
11345 |
# Use a header file that comes with gcc, so configuring glibc |
|
11346 |
# with a fresh cross-compiler works. |
|
11347 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
11348 |
# <limits.h> exists even on freestanding compilers. |
|
11349 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
11350 |
# not just through cpp. "Syntax error" is here to catch this case. |
|
11351 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
11352 |
/* end confdefs.h. */ |
|
11353 |
#ifdef __STDC__ |
|
11354 |
# include <limits.h> |
|
11355 |
#else |
|
11356 |
# include <assert.h> |
|
11357 |
#endif |
|
11358 |
Syntax error |
|
11359 |
_ACEOF |
|
11360 |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
|
11361 |
||
11362 |
else |
|
11363 |
# Broken: fails on valid input. |
|
11364 |
continue |
|
11365 |
fi |
|
11366 |
rm -f conftest.err conftest.$ac_ext |
|
11367 |
||
11368 |
# OK, works on sane cases. Now check whether nonexistent headers |
|
11369 |
# can be detected and how. |
|
11370 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
11371 |
/* end confdefs.h. */ |
|
11372 |
#include <ac_nonexistent.h> |
|
11373 |
_ACEOF |
|
11374 |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
|
11375 |
# Broken: success on invalid input. |
|
11376 |
continue |
|
11377 |
else |
|
11378 |
# Passes both tests. |
|
11379 |
ac_preproc_ok=: |
|
11380 |
break |
|
11381 |
fi |
|
11382 |
rm -f conftest.err conftest.$ac_ext |
|
11383 |
||
11384 |
done |
|
11385 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
11386 |
rm -f conftest.err conftest.$ac_ext |
|
11387 |
if $ac_preproc_ok; then : |
|
11388 |
break |
|
11389 |
fi |
|
11390 |
||
11391 |
done |
|
11392 |
ac_cv_prog_CXXCPP=$CXXCPP |
|
11393 |
||
11394 |
fi |
|
11395 |
CXXCPP=$ac_cv_prog_CXXCPP |
|
11396 |
else |
|
11397 |
ac_cv_prog_CXXCPP=$CXXCPP |
|
11398 |
fi |
|
11399 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
|
11400 |
$as_echo "$CXXCPP" >&6; } |
|
11401 |
ac_preproc_ok=false |
|
11402 |
for ac_cxx_preproc_warn_flag in '' yes |
|
11403 |
do |
|
11404 |
# Use a header file that comes with gcc, so configuring glibc |
|
11405 |
# with a fresh cross-compiler works. |
|
11406 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
11407 |
# <limits.h> exists even on freestanding compilers. |
|
11408 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
11409 |
# not just through cpp. "Syntax error" is here to catch this case. |
|
11410 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
11411 |
/* end confdefs.h. */ |
|
11412 |
#ifdef __STDC__ |
|
11413 |
# include <limits.h> |
|
11414 |
#else |
|
11415 |
# include <assert.h> |
|
11416 |
#endif |
|
11417 |
Syntax error |
|
11418 |
_ACEOF |
|
11419 |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
|
11420 |
||
11421 |
else |
|
11422 |
# Broken: fails on valid input. |
|
11423 |
continue |
|
11424 |
fi |
|
11425 |
rm -f conftest.err conftest.$ac_ext |
|
11426 |
||
11427 |
# OK, works on sane cases. Now check whether nonexistent headers |
|
11428 |
# can be detected and how. |
|
11429 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
11430 |
/* end confdefs.h. */ |
|
11431 |
#include <ac_nonexistent.h> |
|
11432 |
_ACEOF |
|
11433 |
if ac_fn_cxx_try_cpp "$LINENO"; then : |
|
11434 |
# Broken: success on invalid input. |
|
11435 |
continue |
|
11436 |
else |
|
11437 |
# Passes both tests. |
|
11438 |
ac_preproc_ok=: |
|
11439 |
break |
|
11440 |
fi |
|
11441 |
rm -f conftest.err conftest.$ac_ext |
|
11442 |
||
11443 |
done |
|
11444 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
11445 |
rm -f conftest.err conftest.$ac_ext |
|
11446 |
if $ac_preproc_ok; then : |
|
11447 |
||
11448 |
else |
|
11449 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
11450 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
11451 |
_lt_caught_CXX_error=yes; } |
|
11452 |
fi |
|
11453 |
||
11454 |
ac_ext=c |
|
11455 |
ac_cpp='$CPP $CPPFLAGS' |
|
11456 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
11457 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
11458 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
11459 |
||
11460 |
else |
|
11461 |
_lt_caught_CXX_error=yes |
|
11462 |
fi |
|
11463 |
||
11464 |
||
11465 |
||
11466 |
||
5
by edam
- updated README |
11467 |
ac_ext=cpp |
11468 |
ac_cpp='$CXXCPP $CPPFLAGS' |
|
11469 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
11470 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
11471 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
|
11472 |
||
11473 |
archive_cmds_need_lc_CXX=no |
|
11474 |
allow_undefined_flag_CXX= |
|
11475 |
always_export_symbols_CXX=no |
|
11476 |
archive_expsym_cmds_CXX= |
|
11477 |
compiler_needs_object_CXX=no |
|
11478 |
export_dynamic_flag_spec_CXX= |
|
11479 |
hardcode_direct_CXX=no |
|
11480 |
hardcode_direct_absolute_CXX=no |
|
11481 |
hardcode_libdir_flag_spec_CXX= |
|
11482 |
hardcode_libdir_flag_spec_ld_CXX= |
|
11483 |
hardcode_libdir_separator_CXX= |
|
11484 |
hardcode_minus_L_CXX=no |
|
11485 |
hardcode_shlibpath_var_CXX=unsupported |
|
11486 |
hardcode_automatic_CXX=no |
|
11487 |
inherit_rpath_CXX=no |
|
11488 |
module_cmds_CXX= |
|
11489 |
module_expsym_cmds_CXX= |
|
11490 |
link_all_deplibs_CXX=unknown |
|
11491 |
old_archive_cmds_CXX=$old_archive_cmds |
|
11492 |
no_undefined_flag_CXX= |
|
11493 |
whole_archive_flag_spec_CXX= |
|
11494 |
enable_shared_with_static_runtimes_CXX=no |
|
11495 |
||
11496 |
# Source file extension for C++ test sources. |
|
11497 |
ac_ext=cpp |
|
11498 |
||
11499 |
# Object file extension for compiled C++ test sources. |
|
11500 |
objext=o |
|
11501 |
objext_CXX=$objext |
|
11502 |
||
11503 |
# No sense in running all these tests if we already determined that |
|
11504 |
# the CXX compiler isn't working. Some variables (like enable_shared) |
|
11505 |
# are currently assumed to apply to all compilers on this platform, |
|
11506 |
# and will be corrupted by setting them based on a non-working compiler. |
|
11507 |
if test "$_lt_caught_CXX_error" != yes; then |
|
11508 |
# Code to be used in simple compile tests |
|
11509 |
lt_simple_compile_test_code="int some_variable = 0;" |
|
11510 |
||
11511 |
# Code to be used in simple link tests |
|
11512 |
lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
|
11513 |
||
11514 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
|
11515 |
||
11516 |
||
11517 |
||
11518 |
||
11519 |
||
11520 |
||
11521 |
# If no C compiler was specified, use CC. |
|
11522 |
LTCC=${LTCC-"$CC"} |
|
11523 |
||
11524 |
# If no C compiler flags were specified, use CFLAGS. |
|
11525 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
|
11526 |
||
11527 |
# Allow CC to be a program name with arguments. |
|
11528 |
compiler=$CC |
|
11529 |
||
11530 |
||
11531 |
# save warnings/boilerplate of simple test code |
|
11532 |
ac_outfile=conftest.$ac_objext |
|
11533 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
|
11534 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
11535 |
_lt_compiler_boilerplate=`cat conftest.err` |
|
11536 |
$RM conftest* |
|
11537 |
||
11538 |
ac_outfile=conftest.$ac_objext |
|
11539 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext |
|
11540 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
|
11541 |
_lt_linker_boilerplate=`cat conftest.err` |
|
11542 |
$RM -r conftest* |
|
11543 |
||
11544 |
||
11545 |
# Allow CC to be a program name with arguments. |
|
11546 |
lt_save_CC=$CC |
|
11547 |
lt_save_LD=$LD |
|
11548 |
lt_save_GCC=$GCC |
|
11549 |
GCC=$GXX |
|
11550 |
lt_save_with_gnu_ld=$with_gnu_ld |
|
11551 |
lt_save_path_LD=$lt_cv_path_LD |
|
11552 |
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
|
11553 |
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
|
11554 |
else |
|
11555 |
$as_unset lt_cv_prog_gnu_ld |
|
11556 |
fi |
|
11557 |
if test -n "${lt_cv_path_LDCXX+set}"; then |
|
11558 |
lt_cv_path_LD=$lt_cv_path_LDCXX |
|
11559 |
else |
|
11560 |
$as_unset lt_cv_path_LD |
|
11561 |
fi |
|
11562 |
test -z "${LDCXX+set}" || LD=$LDCXX |
|
11563 |
CC=${CXX-"c++"} |
|
11564 |
compiler=$CC |
|
11565 |
compiler_CXX=$CC |
|
11566 |
for cc_temp in $compiler""; do |
|
11567 |
case $cc_temp in |
|
11568 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
|
11569 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
|
11570 |
\-*) ;; |
|
11571 |
*) break;; |
|
11572 |
esac |
|
11573 |
done |
|
11574 |
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
|
11575 |
||
11576 |
||
11577 |
if test -n "$compiler"; then |
|
11578 |
# We don't want -fno-exception when compiling C++ code, so set the |
|
11579 |
# no_builtin_flag separately |
|
11580 |
if test "$GXX" = yes; then |
|
11581 |
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
|
11582 |
else |
|
11583 |
lt_prog_compiler_no_builtin_flag_CXX= |
|
11584 |
fi |
|
11585 |
||
11586 |
if test "$GXX" = yes; then |
|
11587 |
# Set up default GNU C++ configuration |
|
11588 |
||
11589 |
||
11590 |
||
11591 |
# Check whether --with-gnu-ld was given. |
|
11592 |
if test "${with_gnu_ld+set}" = set; then : |
|
11593 |
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
|
11594 |
else |
|
11595 |
with_gnu_ld=no |
|
11596 |
fi |
|
11597 |
||
11598 |
ac_prog=ld |
|
11599 |
if test "$GCC" = yes; then |
|
11600 |
# Check if gcc -print-prog-name=ld gives a path. |
|
11601 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
|
11602 |
$as_echo_n "checking for ld used by $CC... " >&6; } |
|
11603 |
case $host in |
|
11604 |
*-*-mingw*) |
|
11605 |
# gcc leaves a trailing carriage return which upsets mingw |
|
11606 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
|
11607 |
*) |
|
11608 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
|
11609 |
esac |
|
11610 |
case $ac_prog in |
|
11611 |
# Accept absolute paths. |
|
11612 |
[\\/]* | ?:[\\/]*) |
|
11613 |
re_direlt='/[^/][^/]*/\.\./' |
|
11614 |
# Canonicalize the pathname of ld |
|
11615 |
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
|
11616 |
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
|
11617 |
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
|
11618 |
done |
|
11619 |
test -z "$LD" && LD="$ac_prog" |
|
11620 |
;; |
|
11621 |
"") |
|
11622 |
# If it fails, then pretend we aren't using GCC. |
|
11623 |
ac_prog=ld |
|
11624 |
;; |
|
11625 |
*) |
|
11626 |
# If it is relative, then search for the first ld in PATH. |
|
11627 |
with_gnu_ld=unknown |
|
11628 |
;; |
|
11629 |
esac |
|
11630 |
elif test "$with_gnu_ld" = yes; then |
|
11631 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
|
11632 |
$as_echo_n "checking for GNU ld... " >&6; } |
|
11633 |
else |
|
11634 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
|
11635 |
$as_echo_n "checking for non-GNU ld... " >&6; } |
|
11636 |
fi |
|
11637 |
if test "${lt_cv_path_LD+set}" = set; then : |
|
11638 |
$as_echo_n "(cached) " >&6 |
|
11639 |
else |
|
11640 |
if test -z "$LD"; then |
|
11641 |
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
|
11642 |
for ac_dir in $PATH; do |
|
11643 |
IFS="$lt_save_ifs" |
|
11644 |
test -z "$ac_dir" && ac_dir=. |
|
11645 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
|
11646 |
lt_cv_path_LD="$ac_dir/$ac_prog" |
|
11647 |
# Check to see if the program is GNU ld. I'd rather use --version, |
|
11648 |
# but apparently some variants of GNU ld only accept -v. |
|
11649 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
|
11650 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
|
11651 |
*GNU* | *'with BFD'*) |
|
11652 |
test "$with_gnu_ld" != no && break |
|
11653 |
;; |
|
11654 |
*) |
|
11655 |
test "$with_gnu_ld" != yes && break |
|
11656 |
;; |
|
11657 |
esac |
|
11658 |
fi |
|
11659 |
done |
|
11660 |
IFS="$lt_save_ifs" |
|
11661 |
else |
|
11662 |
lt_cv_path_LD="$LD" # Let the user override the test with a path. |
|
11663 |
fi |
|
11664 |
fi |
|
11665 |
||
11666 |
LD="$lt_cv_path_LD" |
|
11667 |
if test -n "$LD"; then |
|
11668 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
|
11669 |
$as_echo "$LD" >&6; } |
|
11670 |
else |
|
11671 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
11672 |
$as_echo "no" >&6; } |
|
11673 |
fi |
|
11674 |
test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
|
11675 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
|
11676 |
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
|
11677 |
if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
|
11678 |
$as_echo_n "(cached) " >&6 |
|
11679 |
else |
|
11680 |
# I'd rather use --version here, but apparently some GNU lds only accept -v. |
|
11681 |
case `$LD -v 2>&1 </dev/null` in |
|
11682 |
*GNU* | *'with BFD'*) |
|
11683 |
lt_cv_prog_gnu_ld=yes |
|
11684 |
;; |
|
11685 |
*) |
|
11686 |
lt_cv_prog_gnu_ld=no |
|
11687 |
;; |
|
11688 |
esac |
|
11689 |
fi |
|
11690 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
|
11691 |
$as_echo "$lt_cv_prog_gnu_ld" >&6; } |
|
11692 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
|
11693 |
||
11694 |
||
11695 |
||
11696 |
||
11697 |
||
11698 |
||
11699 |
||
11700 |
# Check if GNU C++ uses GNU ld as the underlying linker, since the |
|
11701 |
# archiving commands below assume that GNU ld is being used. |
|
11702 |
if test "$with_gnu_ld" = yes; then |
|
11703 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
11704 |
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
11705 |
||
11706 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
11707 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
11708 |
||
11709 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
|
11710 |
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
|
11711 |
# investigate it a little bit more. (MM) |
|
11712 |
wlarc='${wl}' |
|
11713 |
||
11714 |
# ancient GNU ld didn't support --whole-archive et. al. |
|
11715 |
if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
|
11716 |
$GREP 'no-whole-archive' > /dev/null; then |
|
11717 |
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
11718 |
else |
|
11719 |
whole_archive_flag_spec_CXX= |
|
11720 |
fi |
|
11721 |
else |
|
11722 |
with_gnu_ld=no |
|
11723 |
wlarc= |
|
11724 |
||
11725 |
# A generic and very simple default shared library creation |
|
11726 |
# command for GNU C++ for the case where it uses the native |
|
11727 |
# linker, instead of GNU ld. If possible, this setting should |
|
11728 |
# overridden to take advantage of the native linker features on |
|
11729 |
# the platform it is being used on. |
|
11730 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
|
11731 |
fi |
|
11732 |
||
11733 |
# Commands to make compiler produce verbose output that lists |
|
11734 |
# what "hidden" libraries, object files and flags are used when |
|
11735 |
# linking a shared library. |
|
11736 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
|
11737 |
||
11738 |
else |
|
11739 |
GXX=no |
|
11740 |
with_gnu_ld=no |
|
11741 |
wlarc= |
|
11742 |
fi |
|
11743 |
||
11744 |
# PORTME: fill in a description of your system's C++ link characteristics |
|
11745 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
11746 |
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
|
11747 |
ld_shlibs_CXX=yes |
|
11748 |
case $host_os in |
|
11749 |
aix3*) |
|
11750 |
# FIXME: insert proper C++ library support |
|
11751 |
ld_shlibs_CXX=no |
|
11752 |
;; |
|
11753 |
aix[4-9]*) |
|
11754 |
if test "$host_cpu" = ia64; then |
|
11755 |
# On IA64, the linker does run time linking by default, so we don't |
|
11756 |
# have to do anything special. |
|
11757 |
aix_use_runtimelinking=no |
|
11758 |
exp_sym_flag='-Bexport' |
|
11759 |
no_entry_flag="" |
|
11760 |
else |
|
11761 |
aix_use_runtimelinking=no |
|
11762 |
||
11763 |
# Test if we are trying to use run time linking or normal |
|
11764 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
|
11765 |
# need to do runtime linking. |
|
11766 |
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
|
11767 |
for ld_flag in $LDFLAGS; do |
|
11768 |
case $ld_flag in |
|
11769 |
*-brtl*) |
|
11770 |
aix_use_runtimelinking=yes |
|
11771 |
break |
|
11772 |
;; |
|
11773 |
esac |
|
11774 |
done |
|
11775 |
;; |
|
11776 |
esac |
|
11777 |
||
11778 |
exp_sym_flag='-bexport' |
|
11779 |
no_entry_flag='-bnoentry' |
|
11780 |
fi |
|
11781 |
||
11782 |
# When large executables or shared objects are built, AIX ld can |
|
11783 |
# have problems creating the table of contents. If linking a library |
|
11784 |
# or program results in "error TOC overflow" add -mminimal-toc to |
|
11785 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
|
11786 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
|
11787 |
||
11788 |
archive_cmds_CXX='' |
|
11789 |
hardcode_direct_CXX=yes |
|
11790 |
hardcode_direct_absolute_CXX=yes |
|
11791 |
hardcode_libdir_separator_CXX=':' |
|
11792 |
link_all_deplibs_CXX=yes |
|
11793 |
file_list_spec_CXX='${wl}-f,' |
|
11794 |
||
11795 |
if test "$GXX" = yes; then |
|
11796 |
case $host_os in aix4.[012]|aix4.[012].*) |
|
11797 |
# We only want to do this on AIX 4.2 and lower, the check |
|
11798 |
# below for broken collect2 doesn't work under 4.3+ |
|
11799 |
collect2name=`${CC} -print-prog-name=collect2` |
|
11800 |
if test -f "$collect2name" && |
|
11801 |
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
|
11802 |
then |
|
11803 |
# We have reworked collect2 |
|
11804 |
: |
|
11805 |
else |
|
11806 |
# We have old collect2 |
|
11807 |
hardcode_direct_CXX=unsupported |
|
11808 |
# It fails to find uninstalled libraries when the uninstalled |
|
11809 |
# path is not listed in the libpath. Setting hardcode_minus_L |
|
11810 |
# to unsupported forces relinking |
|
11811 |
hardcode_minus_L_CXX=yes |
|
11812 |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
11813 |
hardcode_libdir_separator_CXX= |
|
11814 |
fi |
|
11815 |
esac |
|
11816 |
shared_flag='-shared' |
|
11817 |
if test "$aix_use_runtimelinking" = yes; then |
|
11818 |
shared_flag="$shared_flag "'${wl}-G' |
|
11819 |
fi |
|
11820 |
else |
|
11821 |
# not using gcc |
|
11822 |
if test "$host_cpu" = ia64; then |
|
11823 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
|
11824 |
# chokes on -Wl,-G. The following line is correct: |
|
11825 |
shared_flag='-G' |
|
11826 |
else |
|
11827 |
if test "$aix_use_runtimelinking" = yes; then |
|
11828 |
shared_flag='${wl}-G' |
|
11829 |
else |
|
11830 |
shared_flag='${wl}-bM:SRE' |
|
11831 |
fi |
|
11832 |
fi |
|
11833 |
fi |
|
11834 |
||
11835 |
export_dynamic_flag_spec_CXX='${wl}-bexpall' |
|
11836 |
# It seems that -bexpall does not export symbols beginning with |
|
11837 |
# underscore (_), so it is better to generate a list of symbols to |
|
11838 |
# export. |
|
11839 |
always_export_symbols_CXX=yes |
|
11840 |
if test "$aix_use_runtimelinking" = yes; then |
|
11841 |
# Warning - without using the other runtime loading flags (-brtl), |
|
11842 |
# -berok will link without error, but may produce a broken library. |
|
11843 |
allow_undefined_flag_CXX='-berok' |
|
11844 |
# Determine the default libpath from the value encoded in an empty |
|
11845 |
# executable. |
|
11846 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
11847 |
/* end confdefs.h. */ |
|
11848 |
||
11849 |
int |
|
11850 |
main () |
|
11851 |
{ |
|
11852 |
||
11853 |
; |
|
11854 |
return 0; |
|
11855 |
} |
|
11856 |
_ACEOF |
|
11857 |
if ac_fn_cxx_try_link "$LINENO"; then : |
|
11858 |
||
11859 |
lt_aix_libpath_sed=' |
|
11860 |
/Import File Strings/,/^$/ { |
|
11861 |
/^0/ { |
|
11862 |
s/^0 *\(.*\)$/\1/ |
|
11863 |
p |
|
11864 |
} |
|
11865 |
}' |
|
11866 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
11867 |
# Check for a 64-bit object if we didn't find anything. |
|
11868 |
if test -z "$aix_libpath"; then |
|
11869 |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
11870 |
fi |
|
11871 |
fi |
|
11872 |
rm -f core conftest.err conftest.$ac_objext \ |
|
11873 |
conftest$ac_exeext conftest.$ac_ext |
|
11874 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
11875 |
||
11876 |
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
11877 |
||
11878 |
archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
|
11879 |
else |
|
11880 |
if test "$host_cpu" = ia64; then |
|
11881 |
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
|
11882 |
allow_undefined_flag_CXX="-z nodefs" |
|
11883 |
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
|
11884 |
else |
|
11885 |
# Determine the default libpath from the value encoded in an |
|
11886 |
# empty executable. |
|
11887 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
11888 |
/* end confdefs.h. */ |
|
11889 |
||
11890 |
int |
|
11891 |
main () |
|
11892 |
{ |
|
11893 |
||
11894 |
; |
|
11895 |
return 0; |
|
11896 |
} |
|
11897 |
_ACEOF |
|
11898 |
if ac_fn_cxx_try_link "$LINENO"; then : |
|
11899 |
||
11900 |
lt_aix_libpath_sed=' |
|
11901 |
/Import File Strings/,/^$/ { |
|
11902 |
/^0/ { |
|
11903 |
s/^0 *\(.*\)$/\1/ |
|
11904 |
p |
|
11905 |
} |
|
11906 |
}' |
|
11907 |
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
11908 |
# Check for a 64-bit object if we didn't find anything. |
|
11909 |
if test -z "$aix_libpath"; then |
|
11910 |
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
|
11911 |
fi |
|
11912 |
fi |
|
11913 |
rm -f core conftest.err conftest.$ac_objext \ |
|
11914 |
conftest$ac_exeext conftest.$ac_ext |
|
11915 |
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
|
11916 |
||
11917 |
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
|
11918 |
# Warning - without using the other run time loading flags, |
|
11919 |
# -berok will link without error, but may produce a broken library. |
|
11920 |
no_undefined_flag_CXX=' ${wl}-bernotok' |
|
11921 |
allow_undefined_flag_CXX=' ${wl}-berok' |
|
11922 |
# Exported symbols can be pulled into shared objects from archives |
|
11923 |
whole_archive_flag_spec_CXX='$convenience' |
|
11924 |
archive_cmds_need_lc_CXX=yes |
|
11925 |
# This is similar to how AIX traditionally builds its shared |
|
11926 |
# libraries. |
|
11927 |
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
|
11928 |
fi |
|
11929 |
fi |
|
11930 |
;; |
|
11931 |
||
11932 |
beos*) |
|
11933 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
|
11934 |
allow_undefined_flag_CXX=unsupported |
|
11935 |
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
|
11936 |
# support --undefined. This deserves some investigation. FIXME |
|
11937 |
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
11938 |
else |
|
11939 |
ld_shlibs_CXX=no |
|
11940 |
fi |
|
11941 |
;; |
|
11942 |
||
11943 |
chorus*) |
|
11944 |
case $cc_basename in |
|
11945 |
*) |
|
11946 |
# FIXME: insert proper C++ library support |
|
11947 |
ld_shlibs_CXX=no |
|
11948 |
;; |
|
11949 |
esac |
|
11950 |
;; |
|
11951 |
||
11952 |
cygwin* | mingw* | pw32* | cegcc*) |
|
11953 |
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
|
11954 |
# as there is no search path for DLLs. |
|
11955 |
hardcode_libdir_flag_spec_CXX='-L$libdir' |
|
11956 |
allow_undefined_flag_CXX=unsupported |
|
11957 |
always_export_symbols_CXX=no |
|
11958 |
enable_shared_with_static_runtimes_CXX=yes |
|
11959 |
||
11960 |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
|
11961 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
11962 |
# If the export-symbols file already is a .def file (1st line |
|
11963 |
# is EXPORTS), use it as is; otherwise, prepend... |
|
11964 |
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
|
11965 |
cp $export_symbols $output_objdir/$soname.def; |
|
11966 |
else |
|
11967 |
echo EXPORTS > $output_objdir/$soname.def; |
|
11968 |
cat $export_symbols >> $output_objdir/$soname.def; |
|
11969 |
fi~ |
|
11970 |
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
|
11971 |
else |
|
11972 |
ld_shlibs_CXX=no |
|
11973 |
fi |
|
11974 |
;; |
|
11975 |
darwin* | rhapsody*) |
|
11976 |
||
11977 |
||
11978 |
archive_cmds_need_lc_CXX=no |
|
11979 |
hardcode_direct_CXX=no |
|
11980 |
hardcode_automatic_CXX=yes |
|
11981 |
hardcode_shlibpath_var_CXX=unsupported |
|
11982 |
whole_archive_flag_spec_CXX='' |
|
11983 |
link_all_deplibs_CXX=yes |
|
11984 |
allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
|
11985 |
case $cc_basename in |
|
11986 |
ifort*) _lt_dar_can_shared=yes ;; |
|
11987 |
*) _lt_dar_can_shared=$GCC ;; |
|
11988 |
esac |
|
11989 |
if test "$_lt_dar_can_shared" = "yes"; then |
|
11990 |
output_verbose_link_cmd=echo |
|
11991 |
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
|
11992 |
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
|
11993 |
archive_expsym_cmds_CXX="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}" |
|
11994 |
module_expsym_cmds_CXX="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}" |
|
11995 |
if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
|
11996 |
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" |
|
11997 |
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" |
|
11998 |
fi |
|
11999 |
||
12000 |
else |
|
12001 |
ld_shlibs_CXX=no |
|
12002 |
fi |
|
12003 |
||
12004 |
;; |
|
12005 |
||
12006 |
dgux*) |
|
12007 |
case $cc_basename in |
|
12008 |
ec++*) |
|
12009 |
# FIXME: insert proper C++ library support |
|
12010 |
ld_shlibs_CXX=no |
|
12011 |
;; |
|
12012 |
ghcx*) |
|
12013 |
# Green Hills C++ Compiler |
|
12014 |
# FIXME: insert proper C++ library support |
|
12015 |
ld_shlibs_CXX=no |
|
12016 |
;; |
|
12017 |
*) |
|
12018 |
# FIXME: insert proper C++ library support |
|
12019 |
ld_shlibs_CXX=no |
|
12020 |
;; |
|
12021 |
esac |
|
12022 |
;; |
|
12023 |
||
12024 |
freebsd[12]*) |
|
12025 |
# C++ shared libraries reported to be fairly broken before |
|
12026 |
# switch to ELF |
|
12027 |
ld_shlibs_CXX=no |
|
12028 |
;; |
|
12029 |
||
12030 |
freebsd-elf*) |
|
12031 |
archive_cmds_need_lc_CXX=no |
|
12032 |
;; |
|
12033 |
||
12034 |
freebsd* | dragonfly*) |
|
12035 |
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
|
12036 |
# conventions |
|
12037 |
ld_shlibs_CXX=yes |
|
12038 |
;; |
|
12039 |
||
12040 |
gnu*) |
|
12041 |
;; |
|
12042 |
||
12043 |
hpux9*) |
|
12044 |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
12045 |
hardcode_libdir_separator_CXX=: |
|
12046 |
export_dynamic_flag_spec_CXX='${wl}-E' |
|
12047 |
hardcode_direct_CXX=yes |
|
12048 |
hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
12049 |
# but as the default |
|
12050 |
# location of the library. |
|
12051 |
||
12052 |
case $cc_basename in |
|
12053 |
CC*) |
|
12054 |
# FIXME: insert proper C++ library support |
|
12055 |
ld_shlibs_CXX=no |
|
12056 |
;; |
|
12057 |
aCC*) |
|
12058 |
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
12059 |
# Commands to make compiler produce verbose output that lists |
|
12060 |
# what "hidden" libraries, object files and flags are used when |
|
12061 |
# linking a shared library. |
|
12062 |
# |
|
12063 |
# There doesn't appear to be a way to prevent this compiler from |
|
12064 |
# explicitly linking system object files so we need to strip them |
|
12065 |
# from the output so that they don't get included in the library |
|
12066 |
# dependencies. |
|
12067 |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
|
12068 |
;; |
|
12069 |
*) |
|
12070 |
if test "$GXX" = yes; then |
|
12071 |
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
|
12072 |
else |
|
12073 |
# FIXME: insert proper C++ library support |
|
12074 |
ld_shlibs_CXX=no |
|
12075 |
fi |
|
12076 |
;; |
|
12077 |
esac |
|
12078 |
;; |
|
12079 |
||
12080 |
hpux10*|hpux11*) |
|
12081 |
if test $with_gnu_ld = no; then |
|
12082 |
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
|
12083 |
hardcode_libdir_separator_CXX=: |
|
12084 |
||
12085 |
case $host_cpu in |
|
12086 |
hppa*64*|ia64*) |
|
12087 |
;; |
|
12088 |
*) |
|
12089 |
export_dynamic_flag_spec_CXX='${wl}-E' |
|
12090 |
;; |
|
12091 |
esac |
|
12092 |
fi |
|
12093 |
case $host_cpu in |
|
12094 |
hppa*64*|ia64*) |
|
12095 |
hardcode_direct_CXX=no |
|
12096 |
hardcode_shlibpath_var_CXX=no |
|
12097 |
;; |
|
12098 |
*) |
|
12099 |
hardcode_direct_CXX=yes |
|
12100 |
hardcode_direct_absolute_CXX=yes |
|
12101 |
hardcode_minus_L_CXX=yes # Not in the search PATH, |
|
12102 |
# but as the default |
|
12103 |
# location of the library. |
|
12104 |
;; |
|
12105 |
esac |
|
12106 |
||
12107 |
case $cc_basename in |
|
12108 |
CC*) |
|
12109 |
# FIXME: insert proper C++ library support |
|
12110 |
ld_shlibs_CXX=no |
|
12111 |
;; |
|
12112 |
aCC*) |
|
12113 |
case $host_cpu in |
|
12114 |
hppa*64*) |
|
12115 |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
12116 |
;; |
|
12117 |
ia64*) |
|
12118 |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
12119 |
;; |
|
12120 |
*) |
|
12121 |
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
12122 |
;; |
|
12123 |
esac |
|
12124 |
# Commands to make compiler produce verbose output that lists |
|
12125 |
# what "hidden" libraries, object files and flags are used when |
|
12126 |
# linking a shared library. |
|
12127 |
# |
|
12128 |
# There doesn't appear to be a way to prevent this compiler from |
|
12129 |
# explicitly linking system object files so we need to strip them |
|
12130 |
# from the output so that they don't get included in the library |
|
12131 |
# dependencies. |
|
12132 |
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
|
12133 |
;; |
|
12134 |
*) |
|
12135 |
if test "$GXX" = yes; then |
|
12136 |
if test $with_gnu_ld = no; then |
|
12137 |
case $host_cpu in |
|
12138 |
hppa*64*) |
|
12139 |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
12140 |
;; |
|
12141 |
ia64*) |
|
12142 |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
12143 |
;; |
|
12144 |
*) |
|
12145 |
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
12146 |
;; |
|
12147 |
esac |
|
12148 |
fi |
|
12149 |
else |
|
12150 |
# FIXME: insert proper C++ library support |
|
12151 |
ld_shlibs_CXX=no |
|
12152 |
fi |
|
12153 |
;; |
|
12154 |
esac |
|
12155 |
;; |
|
12156 |
||
12157 |
interix[3-9]*) |
|
12158 |
hardcode_direct_CXX=no |
|
12159 |
hardcode_shlibpath_var_CXX=no |
|
12160 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
12161 |
export_dynamic_flag_spec_CXX='${wl}-E' |
|
12162 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
|
12163 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
|
12164 |
# default) and relocated if they conflict, which is a slow very memory |
|
12165 |
# consuming and fragmenting process. To avoid this, we pick a random, |
|
12166 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
|
12167 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
|
12168 |
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
12169 |
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
|
12170 |
;; |
|
12171 |
irix5* | irix6*) |
|
12172 |
case $cc_basename in |
|
12173 |
CC*) |
|
12174 |
# SGI C++ |
|
12175 |
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
|
12176 |
||
12177 |
# Archives containing C++ object files must be created using |
|
12178 |
# "CC -ar", where "CC" is the IRIX C++ compiler. This is |
|
12179 |
# necessary to make sure instantiated templates are included |
|
12180 |
# in the archive. |
|
12181 |
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
|
12182 |
;; |
|
12183 |
*) |
|
12184 |
if test "$GXX" = yes; then |
|
12185 |
if test "$with_gnu_ld" = no; then |
|
12186 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
12187 |
else |
|
12188 |
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' |
|
12189 |
fi |
|
12190 |
fi |
|
12191 |
link_all_deplibs_CXX=yes |
|
12192 |
;; |
|
12193 |
esac |
|
12194 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
12195 |
hardcode_libdir_separator_CXX=: |
|
12196 |
inherit_rpath_CXX=yes |
|
12197 |
;; |
|
12198 |
||
12199 |
linux* | k*bsd*-gnu) |
|
12200 |
case $cc_basename in |
|
12201 |
KCC*) |
|
12202 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
|
12203 |
||
12204 |
# KCC will only create a shared library if the output file |
|
12205 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
12206 |
# to its proper name (with version) after linking. |
|
12207 |
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
|
12208 |
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
|
12209 |
# Commands to make compiler produce verbose output that lists |
|
12210 |
# what "hidden" libraries, object files and flags are used when |
|
12211 |
# linking a shared library. |
|
12212 |
# |
|
12213 |
# There doesn't appear to be a way to prevent this compiler from |
|
12214 |
# explicitly linking system object files so we need to strip them |
|
12215 |
# from the output so that they don't get included in the library |
|
12216 |
# dependencies. |
|
12217 |
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
|
12218 |
||
12219 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
12220 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
12221 |
||
12222 |
# Archives containing C++ object files must be created using |
|
12223 |
# "CC -Bstatic", where "CC" is the KAI C++ compiler. |
|
12224 |
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
|
12225 |
;; |
|
12226 |
icpc* | ecpc* ) |
|
12227 |
# Intel C++ |
|
12228 |
with_gnu_ld=yes |
|
12229 |
# version 8.0 and above of icpc choke on multiply defined symbols |
|
12230 |
# if we add $predep_objects and $postdep_objects, however 7.1 and |
|
12231 |
# earlier do not add the objects themselves. |
|
12232 |
case `$CC -V 2>&1` in |
|
12233 |
*"Version 7."*) |
|
12234 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
12235 |
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
12236 |
;; |
|
12237 |
*) # Version 8.0 or newer |
|
12238 |
tmp_idyn= |
|
12239 |
case $host_cpu in |
|
12240 |
ia64*) tmp_idyn=' -i_dynamic';; |
|
12241 |
esac |
|
12242 |
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
12243 |
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
|
12244 |
;; |
|
12245 |
esac |
|
12246 |
archive_cmds_need_lc_CXX=no |
|
12247 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
12248 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
12249 |
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
|
12250 |
;; |
|
12251 |
pgCC* | pgcpp*) |
|
12252 |
# Portland Group C++ compiler |
|
12253 |
case `$CC -V` in |
|
12254 |
*pgCC\ [1-5]* | *pgcpp\ [1-5]*) |
|
12255 |
prelink_cmds_CXX='tpldir=Template.dir~ |
|
12256 |
rm -rf $tpldir~ |
|
12257 |
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
|
12258 |
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' |
|
12259 |
old_archive_cmds_CXX='tpldir=Template.dir~ |
|
12260 |
rm -rf $tpldir~ |
|
12261 |
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
|
12262 |
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ |
|
12263 |
$RANLIB $oldlib' |
|
12264 |
archive_cmds_CXX='tpldir=Template.dir~ |
|
12265 |
rm -rf $tpldir~ |
|
12266 |
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
|
12267 |
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
|
12268 |
archive_expsym_cmds_CXX='tpldir=Template.dir~ |
|
12269 |
rm -rf $tpldir~ |
|
12270 |
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
|
12271 |
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
|
12272 |
;; |
|
12273 |
*) # Version 6 will use weak symbols |
|
12274 |
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
|
12275 |
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
|
12276 |
;; |
|
12277 |
esac |
|
12278 |
||
12279 |
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
|
12280 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
12281 |
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
|
12282 |
;; |
|
12283 |
cxx*) |
|
12284 |
# Compaq C++ |
|
12285 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
12286 |
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
|
12287 |
||
12288 |
runpath_var=LD_RUN_PATH |
|
12289 |
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
|
12290 |
hardcode_libdir_separator_CXX=: |
|
12291 |
||
12292 |
# Commands to make compiler produce verbose output that lists |
|
12293 |
# what "hidden" libraries, object files and flags are used when |
|
12294 |
# linking a shared library. |
|
12295 |
# |
|
12296 |
# There doesn't appear to be a way to prevent this compiler from |
|
12297 |
# explicitly linking system object files so we need to strip them |
|
12298 |
# from the output so that they don't get included in the library |
|
12299 |
# dependencies. |
|
12300 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
|
12301 |
;; |
|
12302 |
xl*) |
|
12303 |
# IBM XL 8.0 on PPC, with GNU ld |
|
12304 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
12305 |
export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
|
12306 |
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
|
12307 |
if test "x$supports_anon_versioning" = xyes; then |
|
12308 |
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
|
12309 |
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
|
12310 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
|
12311 |
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
|
12312 |
fi |
|
12313 |
;; |
|
12314 |
*) |
|
12315 |
case `$CC -V 2>&1 | sed 5q` in |
|
12316 |
*Sun\ C*) |
|
12317 |
# Sun C++ 5.9 |
|
12318 |
no_undefined_flag_CXX=' -zdefs' |
|
12319 |
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
12320 |
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
|
12321 |
hardcode_libdir_flag_spec_CXX='-R$libdir' |
|
12322 |
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
|
12323 |
compiler_needs_object_CXX=yes |
|
12324 |
||
12325 |
# Not sure whether something based on |
|
12326 |
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
|
12327 |
# would be better. |
|
12328 |
output_verbose_link_cmd='echo' |
|
12329 |
||
12330 |
# Archives containing C++ object files must be created using |
|
12331 |
# "CC -xar", where "CC" is the Sun C++ compiler. This is |
|
12332 |
# necessary to make sure instantiated templates are included |
|
12333 |
# in the archive. |
|
12334 |
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
|
12335 |
;; |
|
12336 |
esac |
|
12337 |
;; |
|
12338 |
esac |
|
12339 |
;; |
|
12340 |
||
12341 |
lynxos*) |
|
12342 |
# FIXME: insert proper C++ library support |
|
12343 |
ld_shlibs_CXX=no |
|
12344 |
;; |
|
12345 |
||
12346 |
m88k*) |
|
12347 |
# FIXME: insert proper C++ library support |
|
12348 |
ld_shlibs_CXX=no |
|
12349 |
;; |
|
12350 |
||
12351 |
mvs*) |
|
12352 |
case $cc_basename in |
|
12353 |
cxx*) |
|
12354 |
# FIXME: insert proper C++ library support |
|
12355 |
ld_shlibs_CXX=no |
|
12356 |
;; |
|
12357 |
*) |
|
12358 |
# FIXME: insert proper C++ library support |
|
12359 |
ld_shlibs_CXX=no |
|
12360 |
;; |
|
12361 |
esac |
|
12362 |
;; |
|
12363 |
||
12364 |
netbsd*) |
|
12365 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
|
12366 |
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
|
12367 |
wlarc= |
|
12368 |
hardcode_libdir_flag_spec_CXX='-R$libdir' |
|
12369 |
hardcode_direct_CXX=yes |
|
12370 |
hardcode_shlibpath_var_CXX=no |
|
12371 |
fi |
|
12372 |
# Workaround some broken pre-1.5 toolchains |
|
12373 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
|
12374 |
;; |
|
12375 |
||
12376 |
*nto* | *qnx*) |
|
12377 |
ld_shlibs_CXX=yes |
|
12378 |
;; |
|
12379 |
||
12380 |
openbsd2*) |
|
12381 |
# C++ shared libraries are fairly broken |
|
12382 |
ld_shlibs_CXX=no |
|
12383 |
;; |
|
12384 |
||
12385 |
openbsd*) |
|
12386 |
if test -f /usr/libexec/ld.so; then |
|
12387 |
hardcode_direct_CXX=yes |
|
12388 |
hardcode_shlibpath_var_CXX=no |
|
12389 |
hardcode_direct_absolute_CXX=yes |
|
12390 |
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
|
12391 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
12392 |
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
12393 |
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
|
12394 |
export_dynamic_flag_spec_CXX='${wl}-E' |
|
12395 |
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
|
12396 |
fi |
|
12397 |
output_verbose_link_cmd=echo |
|
12398 |
else |
|
12399 |
ld_shlibs_CXX=no |
|
12400 |
fi |
|
12401 |
;; |
|
12402 |
||
12403 |
osf3* | osf4* | osf5*) |
|
12404 |
case $cc_basename in |
|
12405 |
KCC*) |
|
12406 |
# Kuck and Associates, Inc. (KAI) C++ Compiler |
|
12407 |
||
12408 |
# KCC will only create a shared library if the output file |
|
12409 |
# ends with ".so" (or ".sl" for HP-UX), so rename the library |
|
12410 |
# to its proper name (with version) after linking. |
|
12411 |
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
|
12412 |
||
12413 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
|
12414 |
hardcode_libdir_separator_CXX=: |
|
12415 |
||
12416 |
# Archives containing C++ object files must be created using |
|
12417 |
# the KAI C++ compiler. |
|
12418 |
case $host in |
|
12419 |
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
|
12420 |
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
|
12421 |
esac |
|
12422 |
;; |
|
12423 |
RCC*) |
|
12424 |
# Rational C++ 2.4.1 |
|
12425 |
# FIXME: insert proper C++ library support |
|
12426 |
ld_shlibs_CXX=no |
|
12427 |
;; |
|
12428 |
cxx*) |
|
12429 |
case $host in |
|
12430 |
osf3*) |
|
12431 |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
12432 |
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
|
12433 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
12434 |
;; |
|
12435 |
*) |
|
12436 |
allow_undefined_flag_CXX=' -expect_unresolved \*' |
|
12437 |
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
|
12438 |
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
|
12439 |
echo "-hidden">> $lib.exp~ |
|
12440 |
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ |
|
12441 |
$RM $lib.exp' |
|
12442 |
hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
|
12443 |
;; |
|
12444 |
esac |
|
12445 |
||
12446 |
hardcode_libdir_separator_CXX=: |
|
12447 |
||
12448 |
# Commands to make compiler produce verbose output that lists |
|
12449 |
# what "hidden" libraries, object files and flags are used when |
|
12450 |
# linking a shared library. |
|
12451 |
# |
|
12452 |
# There doesn't appear to be a way to prevent this compiler from |
|
12453 |
# explicitly linking system object files so we need to strip them |
|
12454 |
# from the output so that they don't get included in the library |
|
12455 |
# dependencies. |
|
12456 |
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
|
12457 |
;; |
|
12458 |
*) |
|
12459 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
12460 |
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
|
12461 |
case $host in |
|
12462 |
osf3*) |
|
12463 |
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
12464 |
;; |
|
12465 |
*) |
|
12466 |
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
|
12467 |
;; |
|
12468 |
esac |
|
12469 |
||
12470 |
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
|
12471 |
hardcode_libdir_separator_CXX=: |
|
12472 |
||
12473 |
# Commands to make compiler produce verbose output that lists |
|
12474 |
# what "hidden" libraries, object files and flags are used when |
|
12475 |
# linking a shared library. |
|
12476 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
|
12477 |
||
12478 |
else |
|
12479 |
# FIXME: insert proper C++ library support |
|
12480 |
ld_shlibs_CXX=no |
|
12481 |
fi |
|
12482 |
;; |
|
12483 |
esac |
|
12484 |
;; |
|
12485 |
||
12486 |
psos*) |
|
12487 |
# FIXME: insert proper C++ library support |
|
12488 |
ld_shlibs_CXX=no |
|
12489 |
;; |
|
12490 |
||
12491 |
sunos4*) |
|
12492 |
case $cc_basename in |
|
12493 |
CC*) |
|
12494 |
# Sun C++ 4.x |
|
12495 |
# FIXME: insert proper C++ library support |
|
12496 |
ld_shlibs_CXX=no |
|
12497 |
;; |
|
12498 |
lcc*) |
|
12499 |
# Lucid |
|
12500 |
# FIXME: insert proper C++ library support |
|
12501 |
ld_shlibs_CXX=no |
|
12502 |
;; |
|
12503 |
*) |
|
12504 |
# FIXME: insert proper C++ library support |
|
12505 |
ld_shlibs_CXX=no |
|
12506 |
;; |
|
12507 |
esac |
|
12508 |
;; |
|
12509 |
||
12510 |
solaris*) |
|
12511 |
case $cc_basename in |
|
12512 |
CC*) |
|
12513 |
# Sun C++ 4.2, 5.x and Centerline C++ |
|
12514 |
archive_cmds_need_lc_CXX=yes |
|
12515 |
no_undefined_flag_CXX=' -zdefs' |
|
12516 |
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
|
12517 |
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
|
12518 |
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
|
12519 |
||
12520 |
hardcode_libdir_flag_spec_CXX='-R$libdir' |
|
12521 |
hardcode_shlibpath_var_CXX=no |
|
12522 |
case $host_os in |
|
12523 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
12524 |
*) |
|
12525 |
# The compiler driver will combine and reorder linker options, |
|
12526 |
# but understands `-z linker_flag'. |
|
12527 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
|
12528 |
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
|
12529 |
;; |
|
12530 |
esac |
|
12531 |
link_all_deplibs_CXX=yes |
|
12532 |
||
12533 |
output_verbose_link_cmd='echo' |
|
12534 |
||
12535 |
# Archives containing C++ object files must be created using |
|
12536 |
# "CC -xar", where "CC" is the Sun C++ compiler. This is |
|
12537 |
# necessary to make sure instantiated templates are included |
|
12538 |
# in the archive. |
|
12539 |
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
|
12540 |
;; |
|
12541 |
gcx*) |
|
12542 |
# Green Hills C++ Compiler |
|
12543 |
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
12544 |
||
12545 |
# The C++ compiler must be used to create the archive. |
|
12546 |
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
|
12547 |
;; |
|
12548 |
*) |
|
12549 |
# GNU C++ compiler with Solaris linker |
|
12550 |
if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
|
12551 |
no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
|
12552 |
if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
|
12553 |
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
12554 |
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
|
12555 |
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
|
12556 |
||
12557 |
# Commands to make compiler produce verbose output that lists |
|
12558 |
# what "hidden" libraries, object files and flags are used when |
|
12559 |
# linking a shared library. |
|
12560 |
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
|
12561 |
else |
|
12562 |
# g++ 2.7 appears to require `-G' NOT `-shared' on this |
|
12563 |
# platform. |
|
12564 |
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
|
12565 |
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
|
12566 |
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
|
12567 |
||
12568 |
# Commands to make compiler produce verbose output that lists |
|
12569 |
# what "hidden" libraries, object files and flags are used when |
|
12570 |
# linking a shared library. |
|
12571 |
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
|
12572 |
fi |
|
12573 |
||
12574 |
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
|
12575 |
case $host_os in |
|
12576 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
|
12577 |
*) |
|
12578 |
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
|
12579 |
;; |
|
12580 |
esac |
|
12581 |
fi |
|
12582 |
;; |
|
12583 |
esac |
|
12584 |
;; |
|
12585 |
||
12586 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
|
12587 |
no_undefined_flag_CXX='${wl}-z,text' |
|
12588 |
archive_cmds_need_lc_CXX=no |
|
12589 |
hardcode_shlibpath_var_CXX=no |
|
12590 |
runpath_var='LD_RUN_PATH' |
|
12591 |
||
12592 |
case $cc_basename in |
|
12593 |
CC*) |
|
12594 |
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
12595 |
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
12596 |
;; |
|
12597 |
*) |
|
12598 |
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
12599 |
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
12600 |
;; |
|
12601 |
esac |
|
12602 |
;; |
|
12603 |
||
12604 |
sysv5* | sco3.2v5* | sco5v6*) |
|
12605 |
# Note: We can NOT use -z defs as we might desire, because we do not |
|
12606 |
# link with -lc, and that would cause any symbols used from libc to |
|
12607 |
# always be unresolved, which means just about no library would |
|
12608 |
# ever link correctly. If we're not using GNU ld we use -z text |
|
12609 |
# though, which does catch some bad symbols but isn't as heavy-handed |
|
12610 |
# as -z defs. |
|
12611 |
no_undefined_flag_CXX='${wl}-z,text' |
|
12612 |
allow_undefined_flag_CXX='${wl}-z,nodefs' |
|
12613 |
archive_cmds_need_lc_CXX=no |
|
12614 |
hardcode_shlibpath_var_CXX=no |
|
12615 |
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
|
12616 |
hardcode_libdir_separator_CXX=':' |
|
12617 |
link_all_deplibs_CXX=yes |
|
12618 |
export_dynamic_flag_spec_CXX='${wl}-Bexport' |
|
12619 |
runpath_var='LD_RUN_PATH' |
|
12620 |
||
12621 |
case $cc_basename in |
|
12622 |
CC*) |
|
12623 |
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
12624 |
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
12625 |
;; |
|
12626 |
*) |
|
12627 |
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
12628 |
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
|
12629 |
;; |
|
12630 |
esac |
|
12631 |
;; |
|
12632 |
||
12633 |
tandem*) |
|
12634 |
case $cc_basename in |
|
12635 |
NCC*) |
|
12636 |
# NonStop-UX NCC 3.20 |
|
12637 |
# FIXME: insert proper C++ library support |
|
12638 |
ld_shlibs_CXX=no |
|
12639 |
;; |
|
12640 |
*) |
|
12641 |
# FIXME: insert proper C++ library support |
|
12642 |
ld_shlibs_CXX=no |
|
12643 |
;; |
|
12644 |
esac |
|
12645 |
;; |
|
12646 |
||
12647 |
vxworks*) |
|
12648 |
# FIXME: insert proper C++ library support |
|
12649 |
ld_shlibs_CXX=no |
|
12650 |
;; |
|
12651 |
||
12652 |
*) |
|
12653 |
# FIXME: insert proper C++ library support |
|
12654 |
ld_shlibs_CXX=no |
|
12655 |
;; |
|
12656 |
esac |
|
12657 |
||
12658 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
|
12659 |
$as_echo "$ld_shlibs_CXX" >&6; } |
|
12660 |
test "$ld_shlibs_CXX" = no && can_build_shared=no |
|
12661 |
||
12662 |
GCC_CXX="$GXX" |
|
12663 |
LD_CXX="$LD" |
|
12664 |
||
12665 |
## CAVEAT EMPTOR: |
|
12666 |
## There is no encapsulation within the following macros, do not change |
|
12667 |
## the running order or otherwise move them around unless you know exactly |
|
12668 |
## what you are doing... |
|
12669 |
# Dependencies to place before and after the object being linked: |
|
12670 |
predep_objects_CXX= |
|
12671 |
postdep_objects_CXX= |
|
12672 |
predeps_CXX= |
|
12673 |
postdeps_CXX= |
|
12674 |
compiler_lib_search_path_CXX= |
|
12675 |
||
12676 |
cat > conftest.$ac_ext <<_LT_EOF |
|
12677 |
class Foo |
|
12678 |
{ |
|
12679 |
public: |
|
12680 |
Foo (void) { a = 0; } |
|
12681 |
private: |
|
12682 |
int a; |
|
12683 |
}; |
|
12684 |
_LT_EOF |
|
12685 |
||
12686 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
|
12687 |
(eval $ac_compile) 2>&5 |
|
12688 |
ac_status=$? |
|
12689 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
12690 |
test $ac_status = 0; }; then |
|
12691 |
# Parse the compiler output and extract the necessary |
|
12692 |
# objects, libraries and library flags. |
|
12693 |
||
12694 |
# Sentinel used to keep track of whether or not we are before |
|
12695 |
# the conftest object file. |
|
12696 |
pre_test_object_deps_done=no |
|
12697 |
||
12698 |
for p in `eval "$output_verbose_link_cmd"`; do |
|
12699 |
case $p in |
|
12700 |
||
12701 |
-L* | -R* | -l*) |
|
12702 |
# Some compilers place space between "-{L,R}" and the path. |
|
12703 |
# Remove the space. |
|
12704 |
if test $p = "-L" || |
|
12705 |
test $p = "-R"; then |
|
12706 |
prev=$p |
|
12707 |
continue |
|
12708 |
else |
|
12709 |
prev= |
|
12710 |
fi |
|
12711 |
||
12712 |
if test "$pre_test_object_deps_done" = no; then |
|
12713 |
case $p in |
|
12714 |
-L* | -R*) |
|
12715 |
# Internal compiler library paths should come after those |
|
12716 |
# provided the user. The postdeps already come after the |
|
12717 |
# user supplied libs so there is no need to process them. |
|
12718 |
if test -z "$compiler_lib_search_path_CXX"; then |
|
12719 |
compiler_lib_search_path_CXX="${prev}${p}" |
|
12720 |
else |
|
12721 |
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
|
12722 |
fi |
|
12723 |
;; |
|
12724 |
# The "-l" case would never come before the object being |
|
12725 |
# linked, so don't bother handling this case. |
|
12726 |
esac |
|
12727 |
else |
|
12728 |
if test -z "$postdeps_CXX"; then |
|
12729 |
postdeps_CXX="${prev}${p}" |
|
12730 |
else |
|
12731 |
postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
|
12732 |
fi |
|
12733 |
fi |
|
12734 |
;; |
|
12735 |
||
12736 |
*.$objext) |
|
12737 |
# This assumes that the test object file only shows up |
|
12738 |
# once in the compiler output. |
|
12739 |
if test "$p" = "conftest.$objext"; then |
|
12740 |
pre_test_object_deps_done=yes |
|
12741 |
continue |
|
12742 |
fi |
|
12743 |
||
12744 |
if test "$pre_test_object_deps_done" = no; then |
|
12745 |
if test -z "$predep_objects_CXX"; then |
|
12746 |
predep_objects_CXX="$p" |
|
12747 |
else |
|
12748 |
predep_objects_CXX="$predep_objects_CXX $p" |
|
12749 |
fi |
|
12750 |
else |
|
12751 |
if test -z "$postdep_objects_CXX"; then |
|
12752 |
postdep_objects_CXX="$p" |
|
12753 |
else |
|
12754 |
postdep_objects_CXX="$postdep_objects_CXX $p" |
|
12755 |
fi |
|
12756 |
fi |
|
12757 |
;; |
|
12758 |
||
12759 |
*) ;; # Ignore the rest. |
|
12760 |
||
12761 |
esac |
|
12762 |
done |
|
12763 |
||
12764 |
# Clean up. |
|
12765 |
rm -f a.out a.exe |
|
12766 |
else |
|
12767 |
echo "libtool.m4: error: problem compiling CXX test program" |
|
12768 |
fi |
|
12769 |
||
12770 |
$RM -f confest.$objext |
|
12771 |
||
12772 |
# PORTME: override above test on systems where it is broken |
|
12773 |
case $host_os in |
|
12774 |
interix[3-9]*) |
|
12775 |
# Interix 3.5 installs completely hosed .la files for C++, so rather than |
|
12776 |
# hack all around it, let's just trust "g++" to DTRT. |
|
12777 |
predep_objects_CXX= |
|
12778 |
postdep_objects_CXX= |
|
12779 |
postdeps_CXX= |
|
12780 |
;; |
|
12781 |
||
12782 |
linux*) |
|
12783 |
case `$CC -V 2>&1 | sed 5q` in |
|
12784 |
*Sun\ C*) |
|
12785 |
# Sun C++ 5.9 |
|
12786 |
||
12787 |
# The more standards-conforming stlport4 library is |
|
12788 |
# incompatible with the Cstd library. Avoid specifying |
|
12789 |
# it if it's in CXXFLAGS. Ignore libCrun as |
|
12790 |
# -library=stlport4 depends on it. |
|
12791 |
case " $CXX $CXXFLAGS " in |
|
12792 |
*" -library=stlport4 "*) |
|
12793 |
solaris_use_stlport4=yes |
|
12794 |
;; |
|
12795 |
esac |
|
12796 |
||
12797 |
if test "$solaris_use_stlport4" != yes; then |
|
12798 |
postdeps_CXX='-library=Cstd -library=Crun' |
|
12799 |
fi |
|
12800 |
;; |
|
12801 |
esac |
|
12802 |
;; |
|
12803 |
||
12804 |
solaris*) |
|
12805 |
case $cc_basename in |
|
12806 |
CC*) |
|
12807 |
# The more standards-conforming stlport4 library is |
|
12808 |
# incompatible with the Cstd library. Avoid specifying |
|
12809 |
# it if it's in CXXFLAGS. Ignore libCrun as |
|
12810 |
# -library=stlport4 depends on it. |
|
12811 |
case " $CXX $CXXFLAGS " in |
|
12812 |
*" -library=stlport4 "*) |
|
12813 |
solaris_use_stlport4=yes |
|
12814 |
;; |
|
12815 |
esac |
|
12816 |
||
12817 |
# Adding this requires a known-good setup of shared libraries for |
|
12818 |
# Sun compiler versions before 5.6, else PIC objects from an old |
|
12819 |
# archive will be linked into the output, leading to subtle bugs. |
|
12820 |
if test "$solaris_use_stlport4" != yes; then |
|
12821 |
postdeps_CXX='-library=Cstd -library=Crun' |
|
12822 |
fi |
|
12823 |
;; |
|
12824 |
esac |
|
12825 |
;; |
|
12826 |
esac |
|
12827 |
||
12828 |
||
12829 |
case " $postdeps_CXX " in |
|
12830 |
*" -lc "*) archive_cmds_need_lc_CXX=no ;; |
|
12831 |
esac |
|
12832 |
compiler_lib_search_dirs_CXX= |
|
12833 |
if test -n "${compiler_lib_search_path_CXX}"; then |
|
12834 |
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
|
12835 |
fi |
|
12836 |
||
12837 |
||
12838 |
||
12839 |
||
12840 |
||
12841 |
||
12842 |
||
12843 |
||
12844 |
||
12845 |
||
12846 |
||
12847 |
||
12848 |
||
12849 |
||
12850 |
||
12851 |
||
12852 |
||
12853 |
||
12854 |
||
12855 |
||
12856 |
||
12857 |
||
12858 |
||
12859 |
||
12860 |
||
12861 |
||
12862 |
||
12863 |
||
12864 |
||
12865 |
||
12866 |
||
12867 |
lt_prog_compiler_wl_CXX= |
|
12868 |
lt_prog_compiler_pic_CXX= |
|
12869 |
lt_prog_compiler_static_CXX= |
|
12870 |
||
12871 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
|
12872 |
$as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
|
12873 |
||
12874 |
# C++ specific cases for pic, static, wl, etc. |
|
12875 |
if test "$GXX" = yes; then |
|
12876 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
12877 |
lt_prog_compiler_static_CXX='-static' |
|
12878 |
||
12879 |
case $host_os in |
|
12880 |
aix*) |
|
12881 |
# All AIX code is PIC. |
|
12882 |
if test "$host_cpu" = ia64; then |
|
12883 |
# AIX 5 now supports IA64 processor |
|
12884 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
12885 |
fi |
|
12886 |
;; |
|
12887 |
||
12888 |
amigaos*) |
|
12889 |
case $host_cpu in |
|
12890 |
powerpc) |
|
12891 |
# see comment about AmigaOS4 .so support |
|
12892 |
lt_prog_compiler_pic_CXX='-fPIC' |
|
12893 |
;; |
|
12894 |
m68k) |
|
12895 |
# FIXME: we need at least 68020 code to build shared libraries, but |
|
12896 |
# adding the `-m68020' flag to GCC prevents building anything better, |
|
12897 |
# like `-m68040'. |
|
12898 |
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
|
12899 |
;; |
|
12900 |
esac |
|
12901 |
;; |
|
12902 |
||
12903 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
|
12904 |
# PIC is the default for these OSes. |
|
12905 |
;; |
|
12906 |
mingw* | cygwin* | os2* | pw32* | cegcc*) |
|
12907 |
# This hack is so that the source file can tell whether it is being |
|
12908 |
# built for inclusion in a dll (and should export symbols for example). |
|
12909 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
|
12910 |
# (--disable-auto-import) libraries |
|
12911 |
lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
|
12912 |
;; |
|
12913 |
darwin* | rhapsody*) |
|
12914 |
# PIC is the default on this platform |
|
12915 |
# Common symbols not allowed in MH_DYLIB files |
|
12916 |
lt_prog_compiler_pic_CXX='-fno-common' |
|
12917 |
;; |
|
12918 |
*djgpp*) |
|
12919 |
# DJGPP does not support shared libraries at all |
|
12920 |
lt_prog_compiler_pic_CXX= |
|
12921 |
;; |
|
12922 |
interix[3-9]*) |
|
12923 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
|
12924 |
# Instead, we relocate shared libraries at runtime. |
|
12925 |
;; |
|
12926 |
sysv4*MP*) |
|
12927 |
if test -d /usr/nec; then |
|
12928 |
lt_prog_compiler_pic_CXX=-Kconform_pic |
|
12929 |
fi |
|
12930 |
;; |
|
12931 |
hpux*) |
|
12932 |
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
|
12933 |
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
|
12934 |
# sets the default TLS model and affects inlining. |
|
12935 |
case $host_cpu in |
|
12936 |
hppa*64*) |
|
12937 |
;; |
|
12938 |
*) |
|
12939 |
lt_prog_compiler_pic_CXX='-fPIC' |
|
12940 |
;; |
|
12941 |
esac |
|
12942 |
;; |
|
12943 |
*qnx* | *nto*) |
|
12944 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
|
12945 |
# it will coredump. |
|
12946 |
lt_prog_compiler_pic_CXX='-fPIC -shared' |
|
12947 |
;; |
|
12948 |
*) |
|
12949 |
lt_prog_compiler_pic_CXX='-fPIC' |
|
12950 |
;; |
|
12951 |
esac |
|
12952 |
else |
|
12953 |
case $host_os in |
|
12954 |
aix[4-9]*) |
|
12955 |
# All AIX code is PIC. |
|
12956 |
if test "$host_cpu" = ia64; then |
|
12957 |
# AIX 5 now supports IA64 processor |
|
12958 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
12959 |
else |
|
12960 |
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
|
12961 |
fi |
|
12962 |
;; |
|
12963 |
chorus*) |
|
12964 |
case $cc_basename in |
|
12965 |
cxch68*) |
|
12966 |
# Green Hills C++ Compiler |
|
12967 |
# _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
|
12968 |
;; |
|
12969 |
esac |
|
12970 |
;; |
|
12971 |
dgux*) |
|
12972 |
case $cc_basename in |
|
12973 |
ec++*) |
|
12974 |
lt_prog_compiler_pic_CXX='-KPIC' |
|
12975 |
;; |
|
12976 |
ghcx*) |
|
12977 |
# Green Hills C++ Compiler |
|
12978 |
lt_prog_compiler_pic_CXX='-pic' |
|
12979 |
;; |
|
12980 |
*) |
|
12981 |
;; |
|
12982 |
esac |
|
12983 |
;; |
|
12984 |
freebsd* | dragonfly*) |
|
12985 |
# FreeBSD uses GNU C++ |
|
12986 |
;; |
|
12987 |
hpux9* | hpux10* | hpux11*) |
|
12988 |
case $cc_basename in |
|
12989 |
CC*) |
|
12990 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
12991 |
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
|
12992 |
if test "$host_cpu" != ia64; then |
|
12993 |
lt_prog_compiler_pic_CXX='+Z' |
|
12994 |
fi |
|
12995 |
;; |
|
12996 |
aCC*) |
|
12997 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
12998 |
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
|
12999 |
case $host_cpu in |
|
13000 |
hppa*64*|ia64*) |
|
13001 |
# +Z the default |
|
13002 |
;; |
|
13003 |
*) |
|
13004 |
lt_prog_compiler_pic_CXX='+Z' |
|
13005 |
;; |
|
13006 |
esac |
|
13007 |
;; |
|
13008 |
*) |
|
13009 |
;; |
|
13010 |
esac |
|
13011 |
;; |
|
13012 |
interix*) |
|
13013 |
# This is c89, which is MS Visual C++ (no shared libs) |
|
13014 |
# Anyone wants to do a port? |
|
13015 |
;; |
|
13016 |
irix5* | irix6* | nonstopux*) |
|
13017 |
case $cc_basename in |
|
13018 |
CC*) |
|
13019 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
13020 |
lt_prog_compiler_static_CXX='-non_shared' |
|
13021 |
# CC pic flag -KPIC is the default. |
|
13022 |
;; |
|
13023 |
*) |
|
13024 |
;; |
|
13025 |
esac |
|
13026 |
;; |
|
13027 |
linux* | k*bsd*-gnu) |
|
13028 |
case $cc_basename in |
|
13029 |
KCC*) |
|
13030 |
# KAI C++ Compiler |
|
13031 |
lt_prog_compiler_wl_CXX='--backend -Wl,' |
|
13032 |
lt_prog_compiler_pic_CXX='-fPIC' |
|
13033 |
;; |
|
13034 |
ecpc* ) |
|
13035 |
# old Intel C++ for x86_64 which still supported -KPIC. |
|
13036 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
13037 |
lt_prog_compiler_pic_CXX='-KPIC' |
|
13038 |
lt_prog_compiler_static_CXX='-static' |
|
13039 |
;; |
|
13040 |
icpc* ) |
|
13041 |
# Intel C++, used to be incompatible with GCC. |
|
13042 |
# ICC 10 doesn't accept -KPIC any more. |
|
13043 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
13044 |
lt_prog_compiler_pic_CXX='-fPIC' |
|
13045 |
lt_prog_compiler_static_CXX='-static' |
|
13046 |
;; |
|
13047 |
pgCC* | pgcpp*) |
|
13048 |
# Portland Group C++ compiler |
|
13049 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
13050 |
lt_prog_compiler_pic_CXX='-fpic' |
|
13051 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
13052 |
;; |
|
13053 |
cxx*) |
|
13054 |
# Compaq C++ |
|
13055 |
# Make sure the PIC flag is empty. It appears that all Alpha |
|
13056 |
# Linux and Compaq Tru64 Unix objects are PIC. |
|
13057 |
lt_prog_compiler_pic_CXX= |
|
13058 |
lt_prog_compiler_static_CXX='-non_shared' |
|
13059 |
;; |
|
13060 |
xlc* | xlC*) |
|
13061 |
# IBM XL 8.0 on PPC |
|
13062 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
13063 |
lt_prog_compiler_pic_CXX='-qpic' |
|
13064 |
lt_prog_compiler_static_CXX='-qstaticlink' |
|
13065 |
;; |
|
13066 |
*) |
|
13067 |
case `$CC -V 2>&1 | sed 5q` in |
|
13068 |
*Sun\ C*) |
|
13069 |
# Sun C++ 5.9 |
|
13070 |
lt_prog_compiler_pic_CXX='-KPIC' |
|
13071 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
13072 |
lt_prog_compiler_wl_CXX='-Qoption ld ' |
|
13073 |
;; |
|
13074 |
esac |
|
13075 |
;; |
|
13076 |
esac |
|
13077 |
;; |
|
13078 |
lynxos*) |
|
13079 |
;; |
|
13080 |
m88k*) |
|
13081 |
;; |
|
13082 |
mvs*) |
|
13083 |
case $cc_basename in |
|
13084 |
cxx*) |
|
13085 |
lt_prog_compiler_pic_CXX='-W c,exportall' |
|
13086 |
;; |
|
13087 |
*) |
|
13088 |
;; |
|
13089 |
esac |
|
13090 |
;; |
|
13091 |
netbsd* | netbsdelf*-gnu) |
|
13092 |
;; |
|
13093 |
*qnx* | *nto*) |
|
13094 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
|
13095 |
# it will coredump. |
|
13096 |
lt_prog_compiler_pic_CXX='-fPIC -shared' |
|
13097 |
;; |
|
13098 |
osf3* | osf4* | osf5*) |
|
13099 |
case $cc_basename in |
|
13100 |
KCC*) |
|
13101 |
lt_prog_compiler_wl_CXX='--backend -Wl,' |
|
13102 |
;; |
|
13103 |
RCC*) |
|
13104 |
# Rational C++ 2.4.1 |
|
13105 |
lt_prog_compiler_pic_CXX='-pic' |
|
13106 |
;; |
|
13107 |
cxx*) |
|
13108 |
# Digital/Compaq C++ |
|
13109 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
13110 |
# Make sure the PIC flag is empty. It appears that all Alpha |
|
13111 |
# Linux and Compaq Tru64 Unix objects are PIC. |
|
13112 |
lt_prog_compiler_pic_CXX= |
|
13113 |
lt_prog_compiler_static_CXX='-non_shared' |
|
13114 |
;; |
|
13115 |
*) |
|
13116 |
;; |
|
13117 |
esac |
|
13118 |
;; |
|
13119 |
psos*) |
|
13120 |
;; |
|
13121 |
solaris*) |
|
13122 |
case $cc_basename in |
|
13123 |
CC*) |
|
13124 |
# Sun C++ 4.2, 5.x and Centerline C++ |
|
13125 |
lt_prog_compiler_pic_CXX='-KPIC' |
|
13126 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
13127 |
lt_prog_compiler_wl_CXX='-Qoption ld ' |
|
13128 |
;; |
|
13129 |
gcx*) |
|
13130 |
# Green Hills C++ Compiler |
|
13131 |
lt_prog_compiler_pic_CXX='-PIC' |
|
13132 |
;; |
|
13133 |
*) |
|
13134 |
;; |
|
13135 |
esac |
|
13136 |
;; |
|
13137 |
sunos4*) |
|
13138 |
case $cc_basename in |
|
13139 |
CC*) |
|
13140 |
# Sun C++ 4.x |
|
13141 |
lt_prog_compiler_pic_CXX='-pic' |
|
13142 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
13143 |
;; |
|
13144 |
lcc*) |
|
13145 |
# Lucid |
|
13146 |
lt_prog_compiler_pic_CXX='-pic' |
|
13147 |
;; |
|
13148 |
*) |
|
13149 |
;; |
|
13150 |
esac |
|
13151 |
;; |
|
13152 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
|
13153 |
case $cc_basename in |
|
13154 |
CC*) |
|
13155 |
lt_prog_compiler_wl_CXX='-Wl,' |
|
13156 |
lt_prog_compiler_pic_CXX='-KPIC' |
|
13157 |
lt_prog_compiler_static_CXX='-Bstatic' |
|
13158 |
;; |
|
13159 |
esac |
|
13160 |
;; |
|
13161 |
tandem*) |
|
13162 |
case $cc_basename in |
|
13163 |
NCC*) |
|
13164 |
# NonStop-UX NCC 3.20 |
|
13165 |
lt_prog_compiler_pic_CXX='-KPIC' |
|
13166 |
;; |
|
13167 |
*) |
|
13168 |
;; |
|
13169 |
esac |
|
13170 |
;; |
|
13171 |
vxworks*) |
|
13172 |
;; |
|
13173 |
*) |
|
13174 |
lt_prog_compiler_can_build_shared_CXX=no |
|
13175 |
;; |
|
13176 |
esac |
|
13177 |
fi |
|
13178 |
||
13179 |
case $host_os in |
|
13180 |
# For platforms which do not support PIC, -DPIC is meaningless: |
|
13181 |
*djgpp*) |
|
13182 |
lt_prog_compiler_pic_CXX= |
|
13183 |
;; |
|
13184 |
*) |
|
13185 |
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
|
13186 |
;; |
|
13187 |
esac |
|
13188 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 |
|
13189 |
$as_echo "$lt_prog_compiler_pic_CXX" >&6; } |
|
13190 |
||
13191 |
||
13192 |
||
13193 |
# |
|
13194 |
# Check to make sure the PIC flag actually works. |
|
13195 |
# |
|
13196 |
if test -n "$lt_prog_compiler_pic_CXX"; then |
|
13197 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
|
13198 |
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
|
13199 |
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : |
|
13200 |
$as_echo_n "(cached) " >&6 |
|
13201 |
else |
|
13202 |
lt_cv_prog_compiler_pic_works_CXX=no |
|
13203 |
ac_outfile=conftest.$ac_objext |
|
13204 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
13205 |
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
|
13206 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
13207 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
13208 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
13209 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
13210 |
# The option is referenced via a variable to avoid confusing sed. |
|
13211 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
13212 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
13213 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
13214 |
-e 's:$: $lt_compiler_flag:'` |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
13215 |
(eval echo "\"\$as_me:13215: $lt_compile\"" >&5) |
5
by edam
- updated README |
13216 |
(eval "$lt_compile" 2>conftest.err) |
13217 |
ac_status=$? |
|
13218 |
cat conftest.err >&5 |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
13219 |
echo "$as_me:13219: \$? = $ac_status" >&5 |
5
by edam
- updated README |
13220 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
13221 |
# The compiler can only warn and ignore the option if not recognized |
|
13222 |
# So say no if there are warnings other than the usual output. |
|
13223 |
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
|
13224 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
13225 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
|
13226 |
lt_cv_prog_compiler_pic_works_CXX=yes |
|
13227 |
fi |
|
13228 |
fi |
|
13229 |
$RM conftest* |
|
13230 |
||
13231 |
fi |
|
13232 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
|
13233 |
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
|
13234 |
||
13235 |
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
|
13236 |
case $lt_prog_compiler_pic_CXX in |
|
13237 |
"" | " "*) ;; |
|
13238 |
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
|
13239 |
esac |
|
13240 |
else |
|
13241 |
lt_prog_compiler_pic_CXX= |
|
13242 |
lt_prog_compiler_can_build_shared_CXX=no |
|
13243 |
fi |
|
13244 |
||
13245 |
fi |
|
13246 |
||
13247 |
||
13248 |
||
13249 |
# |
|
13250 |
# Check to make sure the static flag actually works. |
|
13251 |
# |
|
13252 |
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
|
13253 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
|
13254 |
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
|
13255 |
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : |
|
13256 |
$as_echo_n "(cached) " >&6 |
|
13257 |
else |
|
13258 |
lt_cv_prog_compiler_static_works_CXX=no |
|
13259 |
save_LDFLAGS="$LDFLAGS" |
|
13260 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
|
13261 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
|
13262 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
|
13263 |
# The linker can only warn and ignore the option if not recognized |
|
13264 |
# So say no if there are warnings |
|
13265 |
if test -s conftest.err; then |
|
13266 |
# Append any errors to the config.log. |
|
13267 |
cat conftest.err 1>&5 |
|
13268 |
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
|
13269 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
|
13270 |
if diff conftest.exp conftest.er2 >/dev/null; then |
|
13271 |
lt_cv_prog_compiler_static_works_CXX=yes |
|
13272 |
fi |
|
13273 |
else |
|
13274 |
lt_cv_prog_compiler_static_works_CXX=yes |
|
13275 |
fi |
|
13276 |
fi |
|
13277 |
$RM -r conftest* |
|
13278 |
LDFLAGS="$save_LDFLAGS" |
|
13279 |
||
13280 |
fi |
|
13281 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
|
13282 |
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
|
13283 |
||
13284 |
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
|
13285 |
: |
|
13286 |
else |
|
13287 |
lt_prog_compiler_static_CXX= |
|
13288 |
fi |
|
13289 |
||
13290 |
||
13291 |
||
13292 |
||
13293 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
13294 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
|
13295 |
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : |
|
13296 |
$as_echo_n "(cached) " >&6 |
|
13297 |
else |
|
13298 |
lt_cv_prog_compiler_c_o_CXX=no |
|
13299 |
$RM -r conftest 2>/dev/null |
|
13300 |
mkdir conftest |
|
13301 |
cd conftest |
|
13302 |
mkdir out |
|
13303 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
13304 |
||
13305 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
13306 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
13307 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
13308 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
13309 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
13310 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
13311 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
13312 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
13313 |
-e 's:$: $lt_compiler_flag:'` |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
13314 |
(eval echo "\"\$as_me:13314: $lt_compile\"" >&5) |
5
by edam
- updated README |
13315 |
(eval "$lt_compile" 2>out/conftest.err) |
13316 |
ac_status=$? |
|
13317 |
cat out/conftest.err >&5 |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
13318 |
echo "$as_me:13318: \$? = $ac_status" >&5 |
5
by edam
- updated README |
13319 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13320 |
then |
|
13321 |
# The compiler can only warn and ignore the option if not recognized |
|
13322 |
# So say no if there are warnings |
|
13323 |
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
13324 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
13325 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
13326 |
lt_cv_prog_compiler_c_o_CXX=yes |
|
13327 |
fi |
|
13328 |
fi |
|
13329 |
chmod u+w . 2>&5 |
|
13330 |
$RM conftest* |
|
13331 |
# SGI C++ compiler will create directory out/ii_files/ for |
|
13332 |
# template instantiation |
|
13333 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
|
13334 |
$RM out/* && rmdir out |
|
13335 |
cd .. |
|
13336 |
$RM -r conftest |
|
13337 |
$RM conftest* |
|
13338 |
||
13339 |
fi |
|
13340 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
|
13341 |
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
|
13342 |
||
13343 |
||
13344 |
||
13345 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
|
13346 |
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
|
13347 |
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : |
|
13348 |
$as_echo_n "(cached) " >&6 |
|
13349 |
else |
|
13350 |
lt_cv_prog_compiler_c_o_CXX=no |
|
13351 |
$RM -r conftest 2>/dev/null |
|
13352 |
mkdir conftest |
|
13353 |
cd conftest |
|
13354 |
mkdir out |
|
13355 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
13356 |
||
13357 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
|
13358 |
# Insert the option either (1) after the last *FLAGS variable, or |
|
13359 |
# (2) before a word containing "conftest.", or (3) at the end. |
|
13360 |
# Note that $ac_compile itself does not contain backslashes and begins |
|
13361 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
|
13362 |
lt_compile=`echo "$ac_compile" | $SED \ |
|
13363 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
|
13364 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
|
13365 |
-e 's:$: $lt_compiler_flag:'` |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
13366 |
(eval echo "\"\$as_me:13366: $lt_compile\"" >&5) |
5
by edam
- updated README |
13367 |
(eval "$lt_compile" 2>out/conftest.err) |
13368 |
ac_status=$? |
|
13369 |
cat out/conftest.err >&5 |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
13370 |
echo "$as_me:13370: \$? = $ac_status" >&5 |
5
by edam
- updated README |
13371 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13372 |
then |
|
13373 |
# The compiler can only warn and ignore the option if not recognized |
|
13374 |
# So say no if there are warnings |
|
13375 |
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
|
13376 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
|
13377 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
|
13378 |
lt_cv_prog_compiler_c_o_CXX=yes |
|
13379 |
fi |
|
13380 |
fi |
|
13381 |
chmod u+w . 2>&5 |
|
13382 |
$RM conftest* |
|
13383 |
# SGI C++ compiler will create directory out/ii_files/ for |
|
13384 |
# template instantiation |
|
13385 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
|
13386 |
$RM out/* && rmdir out |
|
13387 |
cd .. |
|
13388 |
$RM -r conftest |
|
13389 |
$RM conftest* |
|
13390 |
||
13391 |
fi |
|
13392 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
|
13393 |
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
|
13394 |
||
13395 |
||
13396 |
||
13397 |
||
13398 |
hard_links="nottested" |
|
13399 |
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
|
13400 |
# do not overwrite the value of need_locks provided by the user |
|
13401 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
|
13402 |
$as_echo_n "checking if we can lock with hard links... " >&6; } |
|
13403 |
hard_links=yes |
|
13404 |
$RM conftest* |
|
13405 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
13406 |
touch conftest.a |
|
13407 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
|
13408 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
|
13409 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
|
13410 |
$as_echo "$hard_links" >&6; } |
|
13411 |
if test "$hard_links" = no; then |
|
13412 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
|
13413 |
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
|
13414 |
need_locks=warn |
|
13415 |
fi |
|
13416 |
else |
|
13417 |
need_locks=no |
|
13418 |
fi |
|
13419 |
||
13420 |
||
13421 |
||
13422 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
|
13423 |
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
|
13424 |
||
13425 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
13426 |
case $host_os in |
|
13427 |
aix[4-9]*) |
|
13428 |
# If we're using GNU nm, then we don't want the "-C" option. |
|
13429 |
# -C means demangle to AIX nm, but means don't demangle with GNU nm |
|
13430 |
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
|
13431 |
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
|
13432 |
else |
|
13433 |
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
|
13434 |
fi |
|
13435 |
;; |
|
13436 |
pw32*) |
|
13437 |
export_symbols_cmds_CXX="$ltdll_cmds" |
|
13438 |
;; |
|
13439 |
cygwin* | mingw* | cegcc*) |
|
13440 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
|
13441 |
;; |
|
13442 |
linux* | k*bsd*-gnu) |
|
13443 |
link_all_deplibs_CXX=no |
|
13444 |
;; |
|
13445 |
*) |
|
13446 |
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
|
13447 |
;; |
|
13448 |
esac |
|
13449 |
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
|
13450 |
||
13451 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
|
13452 |
$as_echo "$ld_shlibs_CXX" >&6; } |
|
13453 |
test "$ld_shlibs_CXX" = no && can_build_shared=no |
|
13454 |
||
13455 |
with_gnu_ld_CXX=$with_gnu_ld |
|
13456 |
||
13457 |
||
13458 |
||
13459 |
||
13460 |
||
13461 |
||
13462 |
# |
|
13463 |
# Do we need to explicitly link libc? |
|
13464 |
# |
|
13465 |
case "x$archive_cmds_need_lc_CXX" in |
|
13466 |
x|xyes) |
|
13467 |
# Assume -lc should be added |
|
13468 |
archive_cmds_need_lc_CXX=yes |
|
13469 |
||
13470 |
if test "$enable_shared" = yes && test "$GCC" = yes; then |
|
13471 |
case $archive_cmds_CXX in |
|
13472 |
*'~'*) |
|
13473 |
# FIXME: we may have to deal with multi-command sequences. |
|
13474 |
;; |
|
13475 |
'$CC '*) |
|
13476 |
# Test whether the compiler implicitly links with -lc since on some |
|
13477 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
|
13478 |
# to ld, don't add -lc before -lgcc. |
|
13479 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
|
13480 |
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
|
13481 |
$RM conftest* |
|
13482 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
|
13483 |
||
13484 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
|
13485 |
(eval $ac_compile) 2>&5 |
|
13486 |
ac_status=$? |
|
13487 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
13488 |
test $ac_status = 0; } 2>conftest.err; then |
|
13489 |
soname=conftest |
|
13490 |
lib=conftest |
|
13491 |
libobjs=conftest.$ac_objext |
|
13492 |
deplibs= |
|
13493 |
wl=$lt_prog_compiler_wl_CXX |
|
13494 |
pic_flag=$lt_prog_compiler_pic_CXX |
|
13495 |
compiler_flags=-v |
|
13496 |
linker_flags=-v |
|
13497 |
verstring= |
|
13498 |
output_objdir=. |
|
13499 |
libname=conftest |
|
13500 |
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
|
13501 |
allow_undefined_flag_CXX= |
|
13502 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
|
13503 |
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
|
13504 |
ac_status=$? |
|
13505 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
13506 |
test $ac_status = 0; } |
|
13507 |
then |
|
13508 |
archive_cmds_need_lc_CXX=no |
|
13509 |
else |
|
13510 |
archive_cmds_need_lc_CXX=yes |
|
13511 |
fi |
|
13512 |
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
|
13513 |
else |
|
13514 |
cat conftest.err 1>&5 |
|
13515 |
fi |
|
13516 |
$RM conftest* |
|
13517 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 |
|
13518 |
$as_echo "$archive_cmds_need_lc_CXX" >&6; } |
|
13519 |
;; |
|
13520 |
esac |
|
13521 |
fi |
|
13522 |
;; |
|
13523 |
esac |
|
13524 |
||
13525 |
||
13526 |
||
13527 |
||
13528 |
||
13529 |
||
13530 |
||
13531 |
||
13532 |
||
13533 |
||
13534 |
||
13535 |
||
13536 |
||
13537 |
||
13538 |
||
13539 |
||
13540 |
||
13541 |
||
13542 |
||
13543 |
||
13544 |
||
13545 |
||
13546 |
||
13547 |
||
13548 |
||
13549 |
||
13550 |
||
13551 |
||
13552 |
||
13553 |
||
13554 |
||
13555 |
||
13556 |
||
13557 |
||
13558 |
||
13559 |
||
13560 |
||
13561 |
||
13562 |
||
13563 |
||
13564 |
||
13565 |
||
13566 |
||
13567 |
||
13568 |
||
13569 |
||
13570 |
||
13571 |
||
13572 |
||
13573 |
||
13574 |
||
13575 |
||
13576 |
||
13577 |
||
13578 |
||
13579 |
||
13580 |
||
13581 |
||
13582 |
||
13583 |
||
13584 |
||
13585 |
||
13586 |
||
13587 |
||
13588 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
|
13589 |
$as_echo_n "checking dynamic linker characteristics... " >&6; } |
|
13590 |
||
13591 |
library_names_spec= |
|
13592 |
libname_spec='lib$name' |
|
13593 |
soname_spec= |
|
13594 |
shrext_cmds=".so" |
|
13595 |
postinstall_cmds= |
|
13596 |
postuninstall_cmds= |
|
13597 |
finish_cmds= |
|
13598 |
finish_eval= |
|
13599 |
shlibpath_var= |
|
13600 |
shlibpath_overrides_runpath=unknown |
|
13601 |
version_type=none |
|
13602 |
dynamic_linker="$host_os ld.so" |
|
13603 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
|
13604 |
need_lib_prefix=unknown |
|
13605 |
hardcode_into_libs=no |
|
13606 |
||
13607 |
# when you set need_version to no, make sure it does not cause -set_version |
|
13608 |
# flags to be left without arguments |
|
13609 |
need_version=unknown |
|
13610 |
||
13611 |
case $host_os in |
|
13612 |
aix3*) |
|
13613 |
version_type=linux |
|
13614 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
|
13615 |
shlibpath_var=LIBPATH |
|
13616 |
||
13617 |
# AIX 3 has no versioning support, so we append a major version to the name. |
|
13618 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
13619 |
;; |
|
13620 |
||
13621 |
aix[4-9]*) |
|
13622 |
version_type=linux |
|
13623 |
need_lib_prefix=no |
|
13624 |
need_version=no |
|
13625 |
hardcode_into_libs=yes |
|
13626 |
if test "$host_cpu" = ia64; then |
|
13627 |
# AIX 5 supports IA64 |
|
13628 |
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
|
13629 |
shlibpath_var=LD_LIBRARY_PATH |
|
13630 |
else |
|
13631 |
# With GCC up to 2.95.x, collect2 would create an import file |
|
13632 |
# for dependence libraries. The import file would start with |
|
13633 |
# the line `#! .'. This would cause the generated library to |
|
13634 |
# depend on `.', always an invalid library. This was fixed in |
|
13635 |
# development snapshots of GCC prior to 3.0. |
|
13636 |
case $host_os in |
|
13637 |
aix4 | aix4.[01] | aix4.[01].*) |
|
13638 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
|
13639 |
echo ' yes ' |
|
13640 |
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
|
13641 |
: |
|
13642 |
else |
|
13643 |
can_build_shared=no |
|
13644 |
fi |
|
13645 |
;; |
|
13646 |
esac |
|
13647 |
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
|
13648 |
# soname into executable. Probably we can add versioning support to |
|
13649 |
# collect2, so additional links can be useful in future. |
|
13650 |
if test "$aix_use_runtimelinking" = yes; then |
|
13651 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
|
13652 |
# instead of lib<name>.a to let people know that these are not |
|
13653 |
# typical AIX shared libraries. |
|
13654 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13655 |
else |
|
13656 |
# We preserve .a as extension for shared libraries through AIX4.2 |
|
13657 |
# and later when we are not doing run time linking. |
|
13658 |
library_names_spec='${libname}${release}.a $libname.a' |
|
13659 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
13660 |
fi |
|
13661 |
shlibpath_var=LIBPATH |
|
13662 |
fi |
|
13663 |
;; |
|
13664 |
||
13665 |
amigaos*) |
|
13666 |
case $host_cpu in |
|
13667 |
powerpc) |
|
13668 |
# Since July 2007 AmigaOS4 officially supports .so libraries. |
|
13669 |
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
|
13670 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13671 |
;; |
|
13672 |
m68k) |
|
13673 |
library_names_spec='$libname.ixlibrary $libname.a' |
|
13674 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
|
13675 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
|
13676 |
;; |
|
13677 |
esac |
|
13678 |
;; |
|
13679 |
||
13680 |
beos*) |
|
13681 |
library_names_spec='${libname}${shared_ext}' |
|
13682 |
dynamic_linker="$host_os ld.so" |
|
13683 |
shlibpath_var=LIBRARY_PATH |
|
13684 |
;; |
|
13685 |
||
13686 |
bsdi[45]*) |
|
13687 |
version_type=linux |
|
13688 |
need_version=no |
|
13689 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13690 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
13691 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
|
13692 |
shlibpath_var=LD_LIBRARY_PATH |
|
13693 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
|
13694 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
|
13695 |
# the default ld.so.conf also contains /usr/contrib/lib and |
|
13696 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
|
13697 |
# libtool to hard-code these into programs |
|
13698 |
;; |
|
13699 |
||
13700 |
cygwin* | mingw* | pw32* | cegcc*) |
|
13701 |
version_type=windows |
|
13702 |
shrext_cmds=".dll" |
|
13703 |
need_version=no |
|
13704 |
need_lib_prefix=no |
|
13705 |
||
13706 |
case $GCC,$host_os in |
|
13707 |
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
|
13708 |
library_names_spec='$libname.dll.a' |
|
13709 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
|
13710 |
postinstall_cmds='base_file=`basename \${file}`~ |
|
13711 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
|
13712 |
dldir=$destdir/`dirname \$dlpath`~ |
|
13713 |
test -d \$dldir || mkdir -p \$dldir~ |
|
13714 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
|
13715 |
chmod a+x \$dldir/$dlname~ |
|
13716 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
|
13717 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
|
13718 |
fi' |
|
13719 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
|
13720 |
dlpath=$dir/\$dldll~ |
|
13721 |
$RM \$dlpath' |
|
13722 |
shlibpath_overrides_runpath=yes |
|
13723 |
||
13724 |
case $host_os in |
|
13725 |
cygwin*) |
|
13726 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
|
13727 |
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
13728 |
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
|
13729 |
;; |
|
13730 |
mingw* | cegcc*) |
|
13731 |
# MinGW DLLs use traditional 'lib' prefix |
|
13732 |
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
13733 |
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
|
13734 |
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
|
13735 |
# It is most probably a Windows format PATH printed by |
|
13736 |
# mingw gcc, but we are running on Cygwin. Gcc prints its search |
|
13737 |
# path with ; separators, and with drive letters. We can handle the |
|
13738 |
# drive letters (cygwin fileutils understands them), so leave them, |
|
13739 |
# especially as we might pass files found there to a mingw objdump, |
|
13740 |
# which wouldn't understand a cygwinified path. Ahh. |
|
13741 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
|
13742 |
else |
|
13743 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
|
13744 |
fi |
|
13745 |
;; |
|
13746 |
pw32*) |
|
13747 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
|
13748 |
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
|
13749 |
;; |
|
13750 |
esac |
|
13751 |
;; |
|
13752 |
||
13753 |
*) |
|
13754 |
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
|
13755 |
;; |
|
13756 |
esac |
|
13757 |
dynamic_linker='Win32 ld.exe' |
|
13758 |
# FIXME: first we should search . and the directory the executable is in |
|
13759 |
shlibpath_var=PATH |
|
13760 |
;; |
|
13761 |
||
13762 |
darwin* | rhapsody*) |
|
13763 |
dynamic_linker="$host_os dyld" |
|
13764 |
version_type=darwin |
|
13765 |
need_lib_prefix=no |
|
13766 |
need_version=no |
|
13767 |
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
|
13768 |
soname_spec='${libname}${release}${major}$shared_ext' |
|
13769 |
shlibpath_overrides_runpath=yes |
|
13770 |
shlibpath_var=DYLD_LIBRARY_PATH |
|
13771 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
|
13772 |
||
13773 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
|
13774 |
;; |
|
13775 |
||
13776 |
dgux*) |
|
13777 |
version_type=linux |
|
13778 |
need_lib_prefix=no |
|
13779 |
need_version=no |
|
13780 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
|
13781 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
13782 |
shlibpath_var=LD_LIBRARY_PATH |
|
13783 |
;; |
|
13784 |
||
13785 |
freebsd1*) |
|
13786 |
dynamic_linker=no |
|
13787 |
;; |
|
13788 |
||
13789 |
freebsd* | dragonfly*) |
|
13790 |
# DragonFly does not have aout. When/if they implement a new |
|
13791 |
# versioning mechanism, adjust this. |
|
13792 |
if test -x /usr/bin/objformat; then |
|
13793 |
objformat=`/usr/bin/objformat` |
|
13794 |
else |
|
13795 |
case $host_os in |
|
13796 |
freebsd[123]*) objformat=aout ;; |
|
13797 |
*) objformat=elf ;; |
|
13798 |
esac |
|
13799 |
fi |
|
13800 |
version_type=freebsd-$objformat |
|
13801 |
case $version_type in |
|
13802 |
freebsd-elf*) |
|
13803 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
13804 |
need_version=no |
|
13805 |
need_lib_prefix=no |
|
13806 |
;; |
|
13807 |
freebsd-*) |
|
13808 |
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
|
13809 |
need_version=yes |
|
13810 |
;; |
|
13811 |
esac |
|
13812 |
shlibpath_var=LD_LIBRARY_PATH |
|
13813 |
case $host_os in |
|
13814 |
freebsd2*) |
|
13815 |
shlibpath_overrides_runpath=yes |
|
13816 |
;; |
|
13817 |
freebsd3.[01]* | freebsdelf3.[01]*) |
|
13818 |
shlibpath_overrides_runpath=yes |
|
13819 |
hardcode_into_libs=yes |
|
13820 |
;; |
|
13821 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
|
13822 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
|
13823 |
shlibpath_overrides_runpath=no |
|
13824 |
hardcode_into_libs=yes |
|
13825 |
;; |
|
13826 |
*) # from 4.6 on, and DragonFly |
|
13827 |
shlibpath_overrides_runpath=yes |
|
13828 |
hardcode_into_libs=yes |
|
13829 |
;; |
|
13830 |
esac |
|
13831 |
;; |
|
13832 |
||
13833 |
gnu*) |
|
13834 |
version_type=linux |
|
13835 |
need_lib_prefix=no |
|
13836 |
need_version=no |
|
13837 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
|
13838 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
13839 |
shlibpath_var=LD_LIBRARY_PATH |
|
13840 |
hardcode_into_libs=yes |
|
13841 |
;; |
|
13842 |
||
13843 |
hpux9* | hpux10* | hpux11*) |
|
13844 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
|
13845 |
# link against other versions. |
|
13846 |
version_type=sunos |
|
13847 |
need_lib_prefix=no |
|
13848 |
need_version=no |
|
13849 |
case $host_cpu in |
|
13850 |
ia64*) |
|
13851 |
shrext_cmds='.so' |
|
13852 |
hardcode_into_libs=yes |
|
13853 |
dynamic_linker="$host_os dld.so" |
|
13854 |
shlibpath_var=LD_LIBRARY_PATH |
|
13855 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
13856 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13857 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
13858 |
if test "X$HPUX_IA64_MODE" = X32; then |
|
13859 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
|
13860 |
else |
|
13861 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
|
13862 |
fi |
|
13863 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
13864 |
;; |
|
13865 |
hppa*64*) |
|
13866 |
shrext_cmds='.sl' |
|
13867 |
hardcode_into_libs=yes |
|
13868 |
dynamic_linker="$host_os dld.sl" |
|
13869 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
|
13870 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
|
13871 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13872 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
13873 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
|
13874 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
|
13875 |
;; |
|
13876 |
*) |
|
13877 |
shrext_cmds='.sl' |
|
13878 |
dynamic_linker="$host_os dld.sl" |
|
13879 |
shlibpath_var=SHLIB_PATH |
|
13880 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
|
13881 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13882 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
13883 |
;; |
|
13884 |
esac |
|
13885 |
# HP-UX runs *really* slowly unless shared libraries are mode 555. |
|
13886 |
postinstall_cmds='chmod 555 $lib' |
|
13887 |
;; |
|
13888 |
||
13889 |
interix[3-9]*) |
|
13890 |
version_type=linux |
|
13891 |
need_lib_prefix=no |
|
13892 |
need_version=no |
|
13893 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
13894 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
13895 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
|
13896 |
shlibpath_var=LD_LIBRARY_PATH |
|
13897 |
shlibpath_overrides_runpath=no |
|
13898 |
hardcode_into_libs=yes |
|
13899 |
;; |
|
13900 |
||
13901 |
irix5* | irix6* | nonstopux*) |
|
13902 |
case $host_os in |
|
13903 |
nonstopux*) version_type=nonstopux ;; |
|
13904 |
*) |
|
13905 |
if test "$lt_cv_prog_gnu_ld" = yes; then |
|
13906 |
version_type=linux |
|
13907 |
else |
|
13908 |
version_type=irix |
|
13909 |
fi ;; |
|
13910 |
esac |
|
13911 |
need_lib_prefix=no |
|
13912 |
need_version=no |
|
13913 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
13914 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
13915 |
case $host_os in |
|
13916 |
irix5* | nonstopux*) |
|
13917 |
libsuff= shlibsuff= |
|
13918 |
;; |
|
13919 |
*) |
|
13920 |
case $LD in # libtool.m4 will add one of these switches to LD |
|
13921 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
|
13922 |
libsuff= shlibsuff= libmagic=32-bit;; |
|
13923 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
|
13924 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
|
13925 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
|
13926 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
|
13927 |
*) libsuff= shlibsuff= libmagic=never-match;; |
|
13928 |
esac |
|
13929 |
;; |
|
13930 |
esac |
|
13931 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
|
13932 |
shlibpath_overrides_runpath=no |
|
13933 |
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
|
13934 |
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
|
13935 |
hardcode_into_libs=yes |
|
13936 |
;; |
|
13937 |
||
13938 |
# No shared lib support for Linux oldld, aout, or coff. |
|
13939 |
linux*oldld* | linux*aout* | linux*coff*) |
|
13940 |
dynamic_linker=no |
|
13941 |
;; |
|
13942 |
||
13943 |
# This must be Linux ELF. |
|
13944 |
linux* | k*bsd*-gnu) |
|
13945 |
version_type=linux |
|
13946 |
need_lib_prefix=no |
|
13947 |
need_version=no |
|
13948 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
13949 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
13950 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
|
13951 |
shlibpath_var=LD_LIBRARY_PATH |
|
13952 |
shlibpath_overrides_runpath=no |
|
13953 |
# Some binutils ld are patched to set DT_RUNPATH |
|
13954 |
save_LDFLAGS=$LDFLAGS |
|
13955 |
save_libdir=$libdir |
|
13956 |
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
|
13957 |
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
|
13958 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
13959 |
/* end confdefs.h. */ |
|
13960 |
||
13961 |
int |
|
13962 |
main () |
|
13963 |
{ |
|
13964 |
||
13965 |
; |
|
13966 |
return 0; |
|
13967 |
} |
|
13968 |
_ACEOF |
|
13969 |
if ac_fn_cxx_try_link "$LINENO"; then : |
|
13970 |
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
|
13971 |
shlibpath_overrides_runpath=yes |
|
13972 |
fi |
|
13973 |
fi |
|
13974 |
rm -f core conftest.err conftest.$ac_objext \ |
|
13975 |
conftest$ac_exeext conftest.$ac_ext |
|
13976 |
LDFLAGS=$save_LDFLAGS |
|
13977 |
libdir=$save_libdir |
|
13978 |
||
13979 |
# This implies no fast_install, which is unacceptable. |
|
13980 |
# Some rework will be needed to allow for fast_install |
|
13981 |
# before this can be enabled. |
|
13982 |
hardcode_into_libs=yes |
|
13983 |
||
13984 |
# Append ld.so.conf contents to the search path |
|
13985 |
if test -f /etc/ld.so.conf; then |
|
13986 |
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
|
13987 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
|
13988 |
fi |
|
13989 |
||
13990 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
|
13991 |
# powerpc, because MkLinux only supported shared libraries with the |
|
13992 |
# GNU dynamic linker. Since this was broken with cross compilers, |
|
13993 |
# most powerpc-linux boxes support dynamic linking these days and |
|
13994 |
# people can always --disable-shared, the test was removed, and we |
|
13995 |
# assume the GNU/Linux dynamic linker is in use. |
|
13996 |
dynamic_linker='GNU/Linux ld.so' |
|
13997 |
;; |
|
13998 |
||
13999 |
netbsdelf*-gnu) |
|
14000 |
version_type=linux |
|
14001 |
need_lib_prefix=no |
|
14002 |
need_version=no |
|
14003 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
14004 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14005 |
shlibpath_var=LD_LIBRARY_PATH |
|
14006 |
shlibpath_overrides_runpath=no |
|
14007 |
hardcode_into_libs=yes |
|
14008 |
dynamic_linker='NetBSD ld.elf_so' |
|
14009 |
;; |
|
14010 |
||
14011 |
netbsd*) |
|
14012 |
version_type=sunos |
|
14013 |
need_lib_prefix=no |
|
14014 |
need_version=no |
|
14015 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
|
14016 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
14017 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
14018 |
dynamic_linker='NetBSD (a.out) ld.so' |
|
14019 |
else |
|
14020 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
|
14021 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14022 |
dynamic_linker='NetBSD ld.elf_so' |
|
14023 |
fi |
|
14024 |
shlibpath_var=LD_LIBRARY_PATH |
|
14025 |
shlibpath_overrides_runpath=yes |
|
14026 |
hardcode_into_libs=yes |
|
14027 |
;; |
|
14028 |
||
14029 |
newsos6) |
|
14030 |
version_type=linux |
|
14031 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14032 |
shlibpath_var=LD_LIBRARY_PATH |
|
14033 |
shlibpath_overrides_runpath=yes |
|
14034 |
;; |
|
14035 |
||
14036 |
*nto* | *qnx*) |
|
14037 |
version_type=qnx |
|
14038 |
need_lib_prefix=no |
|
14039 |
need_version=no |
|
14040 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14041 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14042 |
shlibpath_var=LD_LIBRARY_PATH |
|
14043 |
shlibpath_overrides_runpath=no |
|
14044 |
hardcode_into_libs=yes |
|
14045 |
dynamic_linker='ldqnx.so' |
|
14046 |
;; |
|
14047 |
||
14048 |
openbsd*) |
|
14049 |
version_type=sunos |
|
14050 |
sys_lib_dlsearch_path_spec="/usr/lib" |
|
14051 |
need_lib_prefix=no |
|
14052 |
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
|
14053 |
case $host_os in |
|
14054 |
openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
|
14055 |
*) need_version=no ;; |
|
14056 |
esac |
|
14057 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
14058 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
|
14059 |
shlibpath_var=LD_LIBRARY_PATH |
|
14060 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
|
14061 |
case $host_os in |
|
14062 |
openbsd2.[89] | openbsd2.[89].*) |
|
14063 |
shlibpath_overrides_runpath=no |
|
14064 |
;; |
|
14065 |
*) |
|
14066 |
shlibpath_overrides_runpath=yes |
|
14067 |
;; |
|
14068 |
esac |
|
14069 |
else |
|
14070 |
shlibpath_overrides_runpath=yes |
|
14071 |
fi |
|
14072 |
;; |
|
14073 |
||
14074 |
os2*) |
|
14075 |
libname_spec='$name' |
|
14076 |
shrext_cmds=".dll" |
|
14077 |
need_lib_prefix=no |
|
14078 |
library_names_spec='$libname${shared_ext} $libname.a' |
|
14079 |
dynamic_linker='OS/2 ld.exe' |
|
14080 |
shlibpath_var=LIBPATH |
|
14081 |
;; |
|
14082 |
||
14083 |
osf3* | osf4* | osf5*) |
|
14084 |
version_type=osf |
|
14085 |
need_lib_prefix=no |
|
14086 |
need_version=no |
|
14087 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14088 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14089 |
shlibpath_var=LD_LIBRARY_PATH |
|
14090 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
|
14091 |
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
|
14092 |
;; |
|
14093 |
||
14094 |
rdos*) |
|
14095 |
dynamic_linker=no |
|
14096 |
;; |
|
14097 |
||
14098 |
solaris*) |
|
14099 |
version_type=linux |
|
14100 |
need_lib_prefix=no |
|
14101 |
need_version=no |
|
14102 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14103 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14104 |
shlibpath_var=LD_LIBRARY_PATH |
|
14105 |
shlibpath_overrides_runpath=yes |
|
14106 |
hardcode_into_libs=yes |
|
14107 |
# ldd complains unless libraries are executable |
|
14108 |
postinstall_cmds='chmod +x $lib' |
|
14109 |
;; |
|
14110 |
||
14111 |
sunos4*) |
|
14112 |
version_type=sunos |
|
14113 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
|
14114 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
|
14115 |
shlibpath_var=LD_LIBRARY_PATH |
|
14116 |
shlibpath_overrides_runpath=yes |
|
14117 |
if test "$with_gnu_ld" = yes; then |
|
14118 |
need_lib_prefix=no |
|
14119 |
fi |
|
14120 |
need_version=yes |
|
14121 |
;; |
|
14122 |
||
14123 |
sysv4 | sysv4.3*) |
|
14124 |
version_type=linux |
|
14125 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14126 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14127 |
shlibpath_var=LD_LIBRARY_PATH |
|
14128 |
case $host_vendor in |
|
14129 |
sni) |
|
14130 |
shlibpath_overrides_runpath=no |
|
14131 |
need_lib_prefix=no |
|
14132 |
runpath_var=LD_RUN_PATH |
|
14133 |
;; |
|
14134 |
siemens) |
|
14135 |
need_lib_prefix=no |
|
14136 |
;; |
|
14137 |
motorola) |
|
14138 |
need_lib_prefix=no |
|
14139 |
need_version=no |
|
14140 |
shlibpath_overrides_runpath=no |
|
14141 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
|
14142 |
;; |
|
14143 |
esac |
|
14144 |
;; |
|
14145 |
||
14146 |
sysv4*MP*) |
|
14147 |
if test -d /usr/nec ;then |
|
14148 |
version_type=linux |
|
14149 |
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
|
14150 |
soname_spec='$libname${shared_ext}.$major' |
|
14151 |
shlibpath_var=LD_LIBRARY_PATH |
|
14152 |
fi |
|
14153 |
;; |
|
14154 |
||
14155 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
|
14156 |
version_type=freebsd-elf |
|
14157 |
need_lib_prefix=no |
|
14158 |
need_version=no |
|
14159 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
|
14160 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14161 |
shlibpath_var=LD_LIBRARY_PATH |
|
14162 |
shlibpath_overrides_runpath=yes |
|
14163 |
hardcode_into_libs=yes |
|
14164 |
if test "$with_gnu_ld" = yes; then |
|
14165 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
|
14166 |
else |
|
14167 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
|
14168 |
case $host_os in |
|
14169 |
sco3.2v5*) |
|
14170 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
|
14171 |
;; |
|
14172 |
esac |
|
14173 |
fi |
|
14174 |
sys_lib_dlsearch_path_spec='/usr/lib' |
|
14175 |
;; |
|
14176 |
||
14177 |
tpf*) |
|
14178 |
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
|
14179 |
version_type=linux |
|
14180 |
need_lib_prefix=no |
|
14181 |
need_version=no |
|
14182 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14183 |
shlibpath_var=LD_LIBRARY_PATH |
|
14184 |
shlibpath_overrides_runpath=no |
|
14185 |
hardcode_into_libs=yes |
|
14186 |
;; |
|
14187 |
||
14188 |
uts4*) |
|
14189 |
version_type=linux |
|
14190 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
|
14191 |
soname_spec='${libname}${release}${shared_ext}$major' |
|
14192 |
shlibpath_var=LD_LIBRARY_PATH |
|
14193 |
;; |
|
14194 |
||
14195 |
*) |
|
14196 |
dynamic_linker=no |
|
14197 |
;; |
|
14198 |
esac |
|
14199 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
|
14200 |
$as_echo "$dynamic_linker" >&6; } |
|
14201 |
test "$dynamic_linker" = no && can_build_shared=no |
|
14202 |
||
14203 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
|
14204 |
if test "$GCC" = yes; then |
|
14205 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
|
14206 |
fi |
|
14207 |
||
14208 |
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
|
14209 |
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
|
14210 |
fi |
|
14211 |
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
|
14212 |
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
|
14213 |
fi |
|
14214 |
||
14215 |
||
14216 |
||
14217 |
||
14218 |
||
14219 |
||
14220 |
||
14221 |
||
14222 |
||
14223 |
||
14224 |
||
14225 |
||
14226 |
||
14227 |
||
14228 |
||
14229 |
||
14230 |
||
14231 |
||
14232 |
||
14233 |
||
14234 |
||
14235 |
||
14236 |
||
14237 |
||
14238 |
||
14239 |
||
14240 |
||
14241 |
||
14242 |
||
14243 |
||
14244 |
||
14245 |
||
14246 |
||
14247 |
||
14248 |
||
14249 |
||
14250 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
|
14251 |
$as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
|
14252 |
hardcode_action_CXX= |
|
14253 |
if test -n "$hardcode_libdir_flag_spec_CXX" || |
|
14254 |
test -n "$runpath_var_CXX" || |
|
14255 |
test "X$hardcode_automatic_CXX" = "Xyes" ; then |
|
14256 |
||
14257 |
# We can hardcode non-existent directories. |
|
14258 |
if test "$hardcode_direct_CXX" != no && |
|
14259 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
|
14260 |
# have to relink, otherwise we might link with an installed library |
|
14261 |
# when we should be linking with a yet-to-be-installed one |
|
14262 |
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
|
14263 |
test "$hardcode_minus_L_CXX" != no; then |
|
14264 |
# Linking always hardcodes the temporary library directory. |
|
14265 |
hardcode_action_CXX=relink |
|
14266 |
else |
|
14267 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
|
14268 |
hardcode_action_CXX=immediate |
|
14269 |
fi |
|
14270 |
else |
|
14271 |
# We cannot hardcode anything, or else we can only hardcode existing |
|
14272 |
# directories. |
|
14273 |
hardcode_action_CXX=unsupported |
|
14274 |
fi |
|
14275 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
|
14276 |
$as_echo "$hardcode_action_CXX" >&6; } |
|
14277 |
||
14278 |
if test "$hardcode_action_CXX" = relink || |
|
14279 |
test "$inherit_rpath_CXX" = yes; then |
|
14280 |
# Fast installation is not supported |
|
14281 |
enable_fast_install=no |
|
14282 |
elif test "$shlibpath_overrides_runpath" = yes || |
|
14283 |
test "$enable_shared" = no; then |
|
14284 |
# Fast installation is not necessary |
|
14285 |
enable_fast_install=needless |
|
14286 |
fi |
|
14287 |
||
14288 |
||
14289 |
||
14290 |
||
14291 |
||
14292 |
||
14293 |
||
14294 |
fi # test -n "$compiler" |
|
14295 |
||
14296 |
CC=$lt_save_CC |
|
14297 |
LDCXX=$LD |
|
14298 |
LD=$lt_save_LD |
|
14299 |
GCC=$lt_save_GCC |
|
14300 |
with_gnu_ld=$lt_save_with_gnu_ld |
|
14301 |
lt_cv_path_LDCXX=$lt_cv_path_LD |
|
14302 |
lt_cv_path_LD=$lt_save_path_LD |
|
14303 |
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
|
14304 |
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
|
14305 |
fi # test "$_lt_caught_CXX_error" != yes |
|
14306 |
||
14307 |
ac_ext=c |
|
14308 |
ac_cpp='$CPP $CPPFLAGS' |
|
14309 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
14310 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
14311 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
14312 |
||
14313 |
||
14314 |
||
14315 |
||
14316 |
# checks for libraries. |
|
9
by edam
- added NEWS |
14317 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_filesystem-mt" >&5 |
14318 |
$as_echo_n "checking for main in -lboost_filesystem-mt... " >&6; } |
|
14319 |
if test "${ac_cv_lib_boost_filesystem_mt_main+set}" = set; then : |
|
14320 |
$as_echo_n "(cached) " >&6 |
|
14321 |
else |
|
14322 |
ac_check_lib_save_LIBS=$LIBS |
|
14323 |
LIBS="-lboost_filesystem-mt $LIBS" |
|
14324 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
14325 |
/* end confdefs.h. */ |
|
14326 |
||
14327 |
||
14328 |
int |
|
14329 |
main () |
|
14330 |
{ |
|
14331 |
return main (); |
|
14332 |
; |
|
14333 |
return 0; |
|
14334 |
} |
|
14335 |
_ACEOF |
|
14336 |
if ac_fn_c_try_link "$LINENO"; then : |
|
14337 |
ac_cv_lib_boost_filesystem_mt_main=yes |
|
14338 |
else |
|
14339 |
ac_cv_lib_boost_filesystem_mt_main=no |
|
14340 |
fi |
|
14341 |
rm -f core conftest.err conftest.$ac_objext \ |
|
14342 |
conftest$ac_exeext conftest.$ac_ext |
|
14343 |
LIBS=$ac_check_lib_save_LIBS |
|
14344 |
fi |
|
14345 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_filesystem_mt_main" >&5 |
|
14346 |
$as_echo "$ac_cv_lib_boost_filesystem_mt_main" >&6; } |
|
14347 |
if test "x$ac_cv_lib_boost_filesystem_mt_main" = x""yes; then : |
|
14348 |
cat >>confdefs.h <<_ACEOF |
|
14349 |
#define HAVE_LIBBOOST_FILESYSTEM_MT 1 |
|
14350 |
_ACEOF |
|
14351 |
||
14352 |
LIBS="-lboost_filesystem-mt $LIBS" |
|
14353 |
||
14354 |
else |
|
14355 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find Boost Filesystem library - the library tests may not compile!" >&5 |
|
14356 |
$as_echo "$as_me: WARNING: Unable to find Boost Filesystem library - the library tests may not compile!" >&2;} |
|
14357 |
fi |
|
14358 |
||
14359 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_thread-mt" >&5 |
|
14360 |
$as_echo_n "checking for main in -lboost_thread-mt... " >&6; } |
|
14361 |
if test "${ac_cv_lib_boost_thread_mt_main+set}" = set; then : |
|
14362 |
$as_echo_n "(cached) " >&6 |
|
14363 |
else |
|
14364 |
ac_check_lib_save_LIBS=$LIBS |
|
14365 |
LIBS="-lboost_thread-mt $LIBS" |
|
14366 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
14367 |
/* end confdefs.h. */ |
|
14368 |
||
14369 |
||
14370 |
int |
|
14371 |
main () |
|
14372 |
{ |
|
14373 |
return main (); |
|
14374 |
; |
|
14375 |
return 0; |
|
14376 |
} |
|
14377 |
_ACEOF |
|
14378 |
if ac_fn_c_try_link "$LINENO"; then : |
|
14379 |
ac_cv_lib_boost_thread_mt_main=yes |
|
14380 |
else |
|
14381 |
ac_cv_lib_boost_thread_mt_main=no |
|
14382 |
fi |
|
14383 |
rm -f core conftest.err conftest.$ac_objext \ |
|
14384 |
conftest$ac_exeext conftest.$ac_ext |
|
14385 |
LIBS=$ac_check_lib_save_LIBS |
|
14386 |
fi |
|
14387 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_thread_mt_main" >&5 |
|
14388 |
$as_echo "$ac_cv_lib_boost_thread_mt_main" >&6; } |
|
14389 |
if test "x$ac_cv_lib_boost_thread_mt_main" = x""yes; then : |
|
14390 |
cat >>confdefs.h <<_ACEOF |
|
14391 |
#define HAVE_LIBBOOST_THREAD_MT 1 |
|
14392 |
_ACEOF |
|
14393 |
||
14394 |
LIBS="-lboost_thread-mt $LIBS" |
|
14395 |
||
14396 |
else |
|
14397 |
as_fn_error "Unable to find Boost Thread library" "$LINENO" 5 |
|
14398 |
fi |
|
14399 |
||
14400 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_initialize in -lsqlite3" >&5 |
|
14401 |
$as_echo_n "checking for sqlite3_initialize in -lsqlite3... " >&6; } |
|
14402 |
if test "${ac_cv_lib_sqlite3_sqlite3_initialize+set}" = set; then : |
|
14403 |
$as_echo_n "(cached) " >&6 |
|
14404 |
else |
|
14405 |
ac_check_lib_save_LIBS=$LIBS |
|
14406 |
LIBS="-lsqlite3 $LIBS" |
|
14407 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
14408 |
/* end confdefs.h. */ |
|
14409 |
||
14410 |
/* Override any GCC internal prototype to avoid an error. |
|
14411 |
Use char because int might match the return type of a GCC |
|
14412 |
builtin and then its argument prototype would still apply. */ |
|
14413 |
#ifdef __cplusplus |
|
14414 |
extern "C" |
|
14415 |
#endif |
|
14416 |
char sqlite3_initialize (); |
|
14417 |
int |
|
14418 |
main () |
|
14419 |
{ |
|
14420 |
return sqlite3_initialize (); |
|
14421 |
; |
|
14422 |
return 0; |
|
14423 |
} |
|
14424 |
_ACEOF |
|
14425 |
if ac_fn_c_try_link "$LINENO"; then : |
|
14426 |
ac_cv_lib_sqlite3_sqlite3_initialize=yes |
|
14427 |
else |
|
14428 |
ac_cv_lib_sqlite3_sqlite3_initialize=no |
|
14429 |
fi |
|
14430 |
rm -f core conftest.err conftest.$ac_objext \ |
|
14431 |
conftest$ac_exeext conftest.$ac_ext |
|
14432 |
LIBS=$ac_check_lib_save_LIBS |
|
14433 |
fi |
|
14434 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_initialize" >&5 |
|
14435 |
$as_echo "$ac_cv_lib_sqlite3_sqlite3_initialize" >&6; } |
|
14436 |
if test "x$ac_cv_lib_sqlite3_sqlite3_initialize" = x""yes; then : |
|
14437 |
cat >>confdefs.h <<_ACEOF |
|
14438 |
#define HAVE_LIBSQLITE3 1 |
|
14439 |
_ACEOF |
|
14440 |
||
14441 |
LIBS="-lsqlite3 $LIBS" |
|
14442 |
||
14443 |
else |
|
14444 |
as_fn_error "Unable to find SQLite3 library" "$LINENO" 5 |
|
14445 |
fi |
|
14446 |
||
5
by edam
- updated README |
14447 |
|
14448 |
# checks for header files. |
|
14449 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
|
14450 |
$as_echo_n "checking for ANSI C header files... " >&6; } |
|
14451 |
if test "${ac_cv_header_stdc+set}" = set; then : |
|
14452 |
$as_echo_n "(cached) " >&6 |
|
14453 |
else |
|
14454 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
14455 |
/* end confdefs.h. */ |
|
14456 |
#include <stdlib.h> |
|
14457 |
#include <stdarg.h> |
|
14458 |
#include <string.h> |
|
14459 |
#include <float.h> |
|
14460 |
||
14461 |
int |
|
14462 |
main () |
|
14463 |
{ |
|
14464 |
||
14465 |
; |
|
14466 |
return 0; |
|
14467 |
} |
|
14468 |
_ACEOF |
|
14469 |
if ac_fn_c_try_compile "$LINENO"; then : |
|
14470 |
ac_cv_header_stdc=yes |
|
14471 |
else |
|
14472 |
ac_cv_header_stdc=no |
|
14473 |
fi |
|
14474 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
14475 |
||
14476 |
if test $ac_cv_header_stdc = yes; then |
|
14477 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
|
14478 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
14479 |
/* end confdefs.h. */ |
|
14480 |
#include <string.h> |
|
14481 |
||
14482 |
_ACEOF |
|
14483 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
14484 |
$EGREP "memchr" >/dev/null 2>&1; then : |
|
14485 |
||
14486 |
else |
|
14487 |
ac_cv_header_stdc=no |
|
14488 |
fi |
|
14489 |
rm -f conftest* |
|
14490 |
||
14491 |
fi |
|
14492 |
||
14493 |
if test $ac_cv_header_stdc = yes; then |
|
14494 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
14495 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
14496 |
/* end confdefs.h. */ |
|
14497 |
#include <stdlib.h> |
|
14498 |
||
14499 |
_ACEOF |
|
14500 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
14501 |
$EGREP "free" >/dev/null 2>&1; then : |
|
14502 |
||
14503 |
else |
|
14504 |
ac_cv_header_stdc=no |
|
14505 |
fi |
|
14506 |
rm -f conftest* |
|
14507 |
||
14508 |
fi |
|
14509 |
||
14510 |
if test $ac_cv_header_stdc = yes; then |
|
14511 |
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
14512 |
if test "$cross_compiling" = yes; then : |
|
14513 |
: |
|
14514 |
else |
|
14515 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
14516 |
/* end confdefs.h. */ |
|
14517 |
#include <ctype.h> |
|
14518 |
#include <stdlib.h> |
|
14519 |
#if ((' ' & 0x0FF) == 0x020) |
|
14520 |
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
14521 |
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
14522 |
#else |
|
14523 |
# define ISLOWER(c) \ |
|
14524 |
(('a' <= (c) && (c) <= 'i') \ |
|
14525 |
|| ('j' <= (c) && (c) <= 'r') \ |
|
14526 |
|| ('s' <= (c) && (c) <= 'z')) |
|
14527 |
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
14528 |
#endif |
|
14529 |
||
14530 |
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
14531 |
int |
|
14532 |
main () |
|
14533 |
{ |
|
14534 |
int i; |
|
14535 |
for (i = 0; i < 256; i++) |
|
14536 |
if (XOR (islower (i), ISLOWER (i)) |
|
14537 |
|| toupper (i) != TOUPPER (i)) |
|
14538 |
return 2; |
|
14539 |
return 0; |
|
14540 |
} |
|
14541 |
_ACEOF |
|
14542 |
if ac_fn_c_try_run "$LINENO"; then : |
|
14543 |
||
14544 |
else |
|
14545 |
ac_cv_header_stdc=no |
|
14546 |
fi |
|
14547 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
14548 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
14549 |
fi |
|
14550 |
||
14551 |
fi |
|
14552 |
fi |
|
14553 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
|
14554 |
$as_echo "$ac_cv_header_stdc" >&6; } |
|
14555 |
if test $ac_cv_header_stdc = yes; then |
|
14556 |
||
14557 |
$as_echo "#define STDC_HEADERS 1" >>confdefs.h |
|
14558 |
||
14559 |
fi |
|
14560 |
||
14561 |
for ac_header in string.h |
|
14562 |
do : |
|
14563 |
ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" |
|
14564 |
if test "x$ac_cv_header_string_h" = x""yes; then : |
|
14565 |
cat >>confdefs.h <<_ACEOF |
|
14566 |
#define HAVE_STRING_H 1 |
|
14567 |
_ACEOF |
|
14568 |
||
14569 |
fi |
|
14570 |
||
14571 |
done |
|
14572 |
||
14573 |
||
14574 |
# checks for typedefs, structures, and compiler characteristics. |
|
14575 |
||
14576 |
# checks for library functions. |
|
14577 |
||
7
by edam
- removed "OK" from test-main when test is successful |
14578 |
ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile test/Makefile" |
5
by edam
- updated README |
14579 |
|
14580 |
cat >confcache <<\_ACEOF |
|
14581 |
# This file is a shell script that caches the results of configure |
|
14582 |
# tests run on this system so they can be shared between configure |
|
14583 |
# scripts and configure runs, see configure's option --config-cache. |
|
14584 |
# It is not useful on other systems. If it contains results you don't |
|
14585 |
# want to keep, you may remove or edit it. |
|
14586 |
# |
|
14587 |
# config.status only pays attention to the cache file if you give it |
|
14588 |
# the --recheck option to rerun configure. |
|
14589 |
# |
|
14590 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
|
14591 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
|
14592 |
# following values. |
|
14593 |
||
14594 |
_ACEOF |
|
14595 |
||
14596 |
# The following way of writing the cache mishandles newlines in values, |
|
14597 |
# but we know of no workaround that is simple, portable, and efficient. |
|
14598 |
# So, we kill variables containing newlines. |
|
14599 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
|
14600 |
# and sets the high bit in the cache file unless we assign to the vars. |
|
14601 |
( |
|
14602 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
|
14603 |
eval ac_val=\$$ac_var |
|
14604 |
case $ac_val in #( |
|
14605 |
*${as_nl}*) |
|
14606 |
case $ac_var in #( |
|
14607 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
|
14608 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
|
14609 |
esac |
|
14610 |
case $ac_var in #( |
|
14611 |
_ | IFS | as_nl) ;; #( |
|
14612 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
|
14613 |
*) { eval $ac_var=; unset $ac_var;} ;; |
|
14614 |
esac ;; |
|
14615 |
esac |
|
14616 |
done |
|
14617 |
||
14618 |
(set) 2>&1 | |
|
14619 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
|
14620 |
*${as_nl}ac_space=\ *) |
|
14621 |
# `set' does not quote correctly, so add quotes: double-quote |
|
14622 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
|
14623 |
sed -n \ |
|
14624 |
"s/'/'\\\\''/g; |
|
14625 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
|
14626 |
;; #( |
|
14627 |
*) |
|
14628 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
|
14629 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
|
14630 |
;; |
|
14631 |
esac | |
|
14632 |
sort |
|
14633 |
) | |
|
14634 |
sed ' |
|
14635 |
/^ac_cv_env_/b end |
|
14636 |
t clear |
|
14637 |
:clear |
|
14638 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
|
14639 |
t end |
|
14640 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
|
14641 |
:end' >>confcache |
|
14642 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
|
14643 |
if test -w "$cache_file"; then |
|
14644 |
test "x$cache_file" != "x/dev/null" && |
|
14645 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
|
14646 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
|
14647 |
cat confcache >$cache_file |
|
14648 |
else |
|
14649 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
|
14650 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
|
14651 |
fi |
|
14652 |
fi |
|
14653 |
rm -f confcache |
|
14654 |
||
14655 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|
14656 |
# Let make expand exec_prefix. |
|
14657 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
|
14658 |
||
14659 |
DEFS=-DHAVE_CONFIG_H |
|
14660 |
||
14661 |
ac_libobjs= |
|
14662 |
ac_ltlibobjs= |
|
14663 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
|
14664 |
# 1. Remove the extension, and $U if already installed. |
|
14665 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
|
14666 |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
|
14667 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
|
14668 |
# will be set to the directory where LIBOBJS objects are built. |
|
14669 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
|
14670 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
|
14671 |
done |
|
14672 |
LIBOBJS=$ac_libobjs |
|
14673 |
||
14674 |
LTLIBOBJS=$ac_ltlibobjs |
|
14675 |
||
14676 |
||
14677 |
if test -n "$EXEEXT"; then |
|
14678 |
am__EXEEXT_TRUE= |
|
14679 |
am__EXEEXT_FALSE='#' |
|
14680 |
else |
|
14681 |
am__EXEEXT_TRUE='#' |
|
14682 |
am__EXEEXT_FALSE= |
|
14683 |
fi |
|
14684 |
||
14685 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
|
14686 |
as_fn_error "conditional \"AMDEP\" was never defined. |
|
14687 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
|
14688 |
fi |
|
14689 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
|
14690 |
as_fn_error "conditional \"am__fastdepCC\" was never defined. |
|
14691 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
|
14692 |
fi |
|
14693 |
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
|
14694 |
as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
|
14695 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
|
14696 |
fi |
|
6
by edam
- fixed .am files so the library gets built! |
14697 |
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
14698 |
as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
|
14699 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
|
14700 |
fi |
|
5
by edam
- updated README |
14701 |
|
14702 |
: ${CONFIG_STATUS=./config.status} |
|
14703 |
ac_write_fail=0 |
|
14704 |
ac_clean_files_save=$ac_clean_files |
|
14705 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
|
14706 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
|
14707 |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
|
14708 |
as_write_fail=0 |
|
14709 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
|
14710 |
#! $SHELL |
|
14711 |
# Generated by $as_me. |
|
14712 |
# Run this file to recreate the current configuration. |
|
14713 |
# Compiler output produced by configure, useful for debugging |
|
14714 |
# configure, is in config.log if it exists. |
|
14715 |
||
14716 |
debug=false |
|
14717 |
ac_cs_recheck=false |
|
14718 |
ac_cs_silent=false |
|
14719 |
||
14720 |
SHELL=\${CONFIG_SHELL-$SHELL} |
|
14721 |
export SHELL |
|
14722 |
_ASEOF |
|
14723 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
|
14724 |
## -------------------- ## |
|
14725 |
## M4sh Initialization. ## |
|
14726 |
## -------------------- ## |
|
14727 |
||
14728 |
# Be more Bourne compatible |
|
14729 |
DUALCASE=1; export DUALCASE # for MKS sh |
|
14730 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
|
14731 |
emulate sh |
|
14732 |
NULLCMD=: |
|
14733 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
|
14734 |
# is contrary to our usage. Disable this feature. |
|
14735 |
alias -g '${1+"$@"}'='"$@"' |
|
14736 |
setopt NO_GLOB_SUBST |
|
14737 |
else |
|
14738 |
case `(set -o) 2>/dev/null` in #( |
|
14739 |
*posix*) : |
|
14740 |
set -o posix ;; #( |
|
14741 |
*) : |
|
14742 |
;; |
|
14743 |
esac |
|
14744 |
fi |
|
14745 |
||
14746 |
||
14747 |
as_nl=' |
|
14748 |
' |
|
14749 |
export as_nl |
|
14750 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
|
14751 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
|
14752 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
|
14753 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
|
14754 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
|
14755 |
# but without wasting forks for bash or zsh. |
|
14756 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
|
14757 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
14758 |
as_echo='print -r --' |
|
14759 |
as_echo_n='print -rn --' |
|
14760 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
|
14761 |
as_echo='printf %s\n' |
|
14762 |
as_echo_n='printf %s' |
|
14763 |
else |
|
14764 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
|
14765 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
|
14766 |
as_echo_n='/usr/ucb/echo -n' |
|
14767 |
else |
|
14768 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
|
14769 |
as_echo_n_body='eval |
|
14770 |
arg=$1; |
|
14771 |
case $arg in #( |
|
14772 |
*"$as_nl"*) |
|
14773 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
|
14774 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
|
14775 |
esac; |
|
14776 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
|
14777 |
' |
|
14778 |
export as_echo_n_body |
|
14779 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
|
14780 |
fi |
|
14781 |
export as_echo_body |
|
14782 |
as_echo='sh -c $as_echo_body as_echo' |
|
14783 |
fi |
|
14784 |
||
14785 |
# The user is always right. |
|
14786 |
if test "${PATH_SEPARATOR+set}" != set; then |
|
14787 |
PATH_SEPARATOR=: |
|
14788 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
|
14789 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
|
14790 |
PATH_SEPARATOR=';' |
|
14791 |
} |
|
14792 |
fi |
|
14793 |
||
14794 |
||
14795 |
# IFS |
|
14796 |
# We need space, tab and new line, in precisely that order. Quoting is |
|
14797 |
# there to prevent editors from complaining about space-tab. |
|
14798 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
14799 |
# splitting by setting IFS to empty value.) |
|
14800 |
IFS=" "" $as_nl" |
|
14801 |
||
14802 |
# Find who we are. Look in the path if we contain no directory separator. |
|
14803 |
case $0 in #(( |
|
14804 |
*[\\/]* ) as_myself=$0 ;; |
|
14805 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
14806 |
for as_dir in $PATH |
|
14807 |
do |
|
14808 |
IFS=$as_save_IFS |
|
14809 |
test -z "$as_dir" && as_dir=. |
|
14810 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
|
14811 |
done |
|
14812 |
IFS=$as_save_IFS |
|
14813 |
||
14814 |
;; |
|
14815 |
esac |
|
14816 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
|
14817 |
# in which case we are not to be found in the path. |
|
14818 |
if test "x$as_myself" = x; then |
|
14819 |
as_myself=$0 |
|
14820 |
fi |
|
14821 |
if test ! -f "$as_myself"; then |
|
14822 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
|
14823 |
exit 1 |
|
14824 |
fi |
|
14825 |
||
14826 |
# Unset variables that we do not need and which cause bugs (e.g. in |
|
14827 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
|
14828 |
# suppresses any "Segmentation fault" message there. '((' could |
|
14829 |
# trigger a bug in pdksh 5.2.14. |
|
14830 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
|
14831 |
do eval test x\${$as_var+set} = xset \ |
|
14832 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
14833 |
done |
|
14834 |
PS1='$ ' |
|
14835 |
PS2='> ' |
|
14836 |
PS4='+ ' |
|
14837 |
||
14838 |
# NLS nuisances. |
|
14839 |
LC_ALL=C |
|
14840 |
export LC_ALL |
|
14841 |
LANGUAGE=C |
|
14842 |
export LANGUAGE |
|
14843 |
||
14844 |
# CDPATH. |
|
14845 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
14846 |
||
14847 |
||
14848 |
# as_fn_error ERROR [LINENO LOG_FD] |
|
14849 |
# --------------------------------- |
|
14850 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
|
14851 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
|
14852 |
# script with status $?, using 1 if that was 0. |
|
14853 |
as_fn_error () |
|
14854 |
{ |
|
14855 |
as_status=$?; test $as_status -eq 0 && as_status=1 |
|
14856 |
if test "$3"; then |
|
14857 |
as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
14858 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
|
14859 |
fi |
|
14860 |
$as_echo "$as_me: error: $1" >&2 |
|
14861 |
as_fn_exit $as_status |
|
14862 |
} # as_fn_error |
|
14863 |
||
14864 |
||
14865 |
# as_fn_set_status STATUS |
|
14866 |
# ----------------------- |
|
14867 |
# Set $? to STATUS, without forking. |
|
14868 |
as_fn_set_status () |
|
14869 |
{ |
|
14870 |
return $1 |
|
14871 |
} # as_fn_set_status |
|
14872 |
||
14873 |
# as_fn_exit STATUS |
|
14874 |
# ----------------- |
|
14875 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
|
14876 |
as_fn_exit () |
|
14877 |
{ |
|
14878 |
set +e |
|
14879 |
as_fn_set_status $1 |
|
14880 |
exit $1 |
|
14881 |
} # as_fn_exit |
|
14882 |
||
14883 |
# as_fn_unset VAR |
|
14884 |
# --------------- |
|
14885 |
# Portably unset VAR. |
|
14886 |
as_fn_unset () |
|
14887 |
{ |
|
14888 |
{ eval $1=; unset $1;} |
|
14889 |
} |
|
14890 |
as_unset=as_fn_unset |
|
14891 |
# as_fn_append VAR VALUE |
|
14892 |
# ---------------------- |
|
14893 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
|
14894 |
# advantage of any shell optimizations that allow amortized linear growth over |
|
14895 |
# repeated appends, instead of the typical quadratic growth present in naive |
|
14896 |
# implementations. |
|
14897 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
|
14898 |
eval 'as_fn_append () |
|
14899 |
{ |
|
14900 |
eval $1+=\$2 |
|
14901 |
}' |
|
14902 |
else |
|
14903 |
as_fn_append () |
|
14904 |
{ |
|
14905 |
eval $1=\$$1\$2 |
|
14906 |
} |
|
14907 |
fi # as_fn_append |
|
14908 |
||
14909 |
# as_fn_arith ARG... |
|
14910 |
# ------------------ |
|
14911 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
|
14912 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
|
14913 |
# must be portable across $(()) and expr. |
|
14914 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
|
14915 |
eval 'as_fn_arith () |
|
14916 |
{ |
|
14917 |
as_val=$(( $* )) |
|
14918 |
}' |
|
14919 |
else |
|
14920 |
as_fn_arith () |
|
14921 |
{ |
|
14922 |
as_val=`expr "$@" || test $? -eq 1` |
|
14923 |
} |
|
14924 |
fi # as_fn_arith |
|
14925 |
||
14926 |
||
14927 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
|
14928 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
|
14929 |
as_expr=expr |
|
14930 |
else |
|
14931 |
as_expr=false |
|
14932 |
fi |
|
14933 |
||
14934 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
|
14935 |
as_basename=basename |
|
14936 |
else |
|
14937 |
as_basename=false |
|
14938 |
fi |
|
14939 |
||
14940 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
|
14941 |
as_dirname=dirname |
|
14942 |
else |
|
14943 |
as_dirname=false |
|
14944 |
fi |
|
14945 |
||
14946 |
as_me=`$as_basename -- "$0" || |
|
14947 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
|
14948 |
X"$0" : 'X\(//\)$' \| \ |
|
14949 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
|
14950 |
$as_echo X/"$0" | |
|
14951 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
|
14952 |
s//\1/ |
|
14953 |
q |
|
14954 |
} |
|
14955 |
/^X\/\(\/\/\)$/{ |
|
14956 |
s//\1/ |
|
14957 |
q |
|
14958 |
} |
|
14959 |
/^X\/\(\/\).*/{ |
|
14960 |
s//\1/ |
|
14961 |
q |
|
14962 |
} |
|
14963 |
s/.*/./; q'` |
|
14964 |
||
14965 |
# Avoid depending upon Character Ranges. |
|
14966 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
|
14967 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
|
14968 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
|
14969 |
as_cr_digits='0123456789' |
|
14970 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
|
14971 |
||
14972 |
ECHO_C= ECHO_N= ECHO_T= |
|
14973 |
case `echo -n x` in #((((( |
|
14974 |
-n*) |
|
14975 |
case `echo 'xy\c'` in |
|
14976 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
|
14977 |
xy) ECHO_C='\c';; |
|
14978 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
|
14979 |
ECHO_T=' ';; |
|
14980 |
esac;; |
|
14981 |
*) |
|
14982 |
ECHO_N='-n';; |
|
14983 |
esac |
|
14984 |
||
14985 |
rm -f conf$$ conf$$.exe conf$$.file |
|
14986 |
if test -d conf$$.dir; then |
|
14987 |
rm -f conf$$.dir/conf$$.file |
|
14988 |
else |
|
14989 |
rm -f conf$$.dir |
|
14990 |
mkdir conf$$.dir 2>/dev/null |
|
14991 |
fi |
|
14992 |
if (echo >conf$$.file) 2>/dev/null; then |
|
14993 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
|
14994 |
as_ln_s='ln -s' |
|
14995 |
# ... but there are two gotchas: |
|
14996 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
|
14997 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
|
14998 |
# In both cases, we have to default to `cp -p'. |
|
14999 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
|
15000 |
as_ln_s='cp -p' |
|
15001 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
|
15002 |
as_ln_s=ln |
|
15003 |
else |
|
15004 |
as_ln_s='cp -p' |
|
15005 |
fi |
|
15006 |
else |
|
15007 |
as_ln_s='cp -p' |
|
15008 |
fi |
|
15009 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
|
15010 |
rmdir conf$$.dir 2>/dev/null |
|
15011 |
||
15012 |
||
15013 |
# as_fn_mkdir_p |
|
15014 |
# ------------- |
|
15015 |
# Create "$as_dir" as a directory, including parents if necessary. |
|
15016 |
as_fn_mkdir_p () |
|
15017 |
{ |
|
15018 |
||
15019 |
case $as_dir in #( |
|
15020 |
-*) as_dir=./$as_dir;; |
|
15021 |
esac |
|
15022 |
test -d "$as_dir" || eval $as_mkdir_p || { |
|
15023 |
as_dirs= |
|
15024 |
while :; do |
|
15025 |
case $as_dir in #( |
|
15026 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
|
15027 |
*) as_qdir=$as_dir;; |
|
15028 |
esac |
|
15029 |
as_dirs="'$as_qdir' $as_dirs" |
|
15030 |
as_dir=`$as_dirname -- "$as_dir" || |
|
15031 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
15032 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
|
15033 |
X"$as_dir" : 'X\(//\)$' \| \ |
|
15034 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
|
15035 |
$as_echo X"$as_dir" | |
|
15036 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
15037 |
s//\1/ |
|
15038 |
q |
|
15039 |
} |
|
15040 |
/^X\(\/\/\)[^/].*/{ |
|
15041 |
s//\1/ |
|
15042 |
q |
|
15043 |
} |
|
15044 |
/^X\(\/\/\)$/{ |
|
15045 |
s//\1/ |
|
15046 |
q |
|
15047 |
} |
|
15048 |
/^X\(\/\).*/{ |
|
15049 |
s//\1/ |
|
15050 |
q |
|
15051 |
} |
|
15052 |
s/.*/./; q'` |
|
15053 |
test -d "$as_dir" && break |
|
15054 |
done |
|
15055 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
|
15056 |
} || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
|
15057 |
||
15058 |
||
15059 |
} # as_fn_mkdir_p |
|
15060 |
if mkdir -p . 2>/dev/null; then |
|
15061 |
as_mkdir_p='mkdir -p "$as_dir"' |
|
15062 |
else |
|
15063 |
test -d ./-p && rmdir ./-p |
|
15064 |
as_mkdir_p=false |
|
15065 |
fi |
|
15066 |
||
15067 |
if test -x / >/dev/null 2>&1; then |
|
15068 |
as_test_x='test -x' |
|
15069 |
else |
|
15070 |
if ls -dL / >/dev/null 2>&1; then |
|
15071 |
as_ls_L_option=L |
|
15072 |
else |
|
15073 |
as_ls_L_option= |
|
15074 |
fi |
|
15075 |
as_test_x=' |
|
15076 |
eval sh -c '\'' |
|
15077 |
if test -d "$1"; then |
|
15078 |
test -d "$1/."; |
|
15079 |
else |
|
15080 |
case $1 in #( |
|
15081 |
-*)set "./$1";; |
|
15082 |
esac; |
|
15083 |
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
|
15084 |
???[sx]*):;;*)false;;esac;fi |
|
15085 |
'\'' sh |
|
15086 |
' |
|
15087 |
fi |
|
15088 |
as_executable_p=$as_test_x |
|
15089 |
||
15090 |
# Sed expression to map a string onto a valid CPP name. |
|
15091 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
|
15092 |
||
15093 |
# Sed expression to map a string onto a valid variable name. |
|
15094 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
|
15095 |
||
15096 |
||
15097 |
exec 6>&1 |
|
15098 |
## ----------------------------------- ## |
|
15099 |
## Main body of $CONFIG_STATUS script. ## |
|
15100 |
## ----------------------------------- ## |
|
15101 |
_ASEOF |
|
15102 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
|
15103 |
||
15104 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
15105 |
# Save the log message, to keep $0 and so on meaningful, and to |
|
15106 |
# report actual input values of CONFIG_FILES etc. instead of their |
|
15107 |
# values after options handling. |
|
15108 |
ac_log=" |
|
15109 |
This file was extended by sqlite3cc $as_me 0.1.0, which was |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
15110 |
generated by GNU Autoconf 2.65. Invocation command line was |
5
by edam
- updated README |
15111 |
|
15112 |
CONFIG_FILES = $CONFIG_FILES |
|
15113 |
CONFIG_HEADERS = $CONFIG_HEADERS |
|
15114 |
CONFIG_LINKS = $CONFIG_LINKS |
|
15115 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
|
15116 |
$ $0 $@ |
|
15117 |
||
15118 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
|
15119 |
" |
|
15120 |
||
15121 |
_ACEOF |
|
15122 |
||
15123 |
case $ac_config_files in *" |
|
15124 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
|
15125 |
esac |
|
15126 |
||
15127 |
case $ac_config_headers in *" |
|
15128 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
|
15129 |
esac |
|
15130 |
||
15131 |
||
15132 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
15133 |
# Files that config.status was made for. |
|
15134 |
config_files="$ac_config_files" |
|
15135 |
config_headers="$ac_config_headers" |
|
15136 |
config_commands="$ac_config_commands" |
|
15137 |
||
15138 |
_ACEOF |
|
15139 |
||
15140 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
15141 |
ac_cs_usage="\ |
|
15142 |
\`$as_me' instantiates files and other configuration actions |
|
15143 |
from templates according to the current configuration. Unless the files |
|
15144 |
and actions are specified as TAGs, all are instantiated by default. |
|
15145 |
||
15146 |
Usage: $0 [OPTION]... [TAG]... |
|
15147 |
||
15148 |
-h, --help print this help, then exit |
|
15149 |
-V, --version print version number and configuration settings, then exit |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
15150 |
--config print configuration, then exit |
5
by edam
- updated README |
15151 |
-q, --quiet, --silent |
15152 |
do not print progress messages |
|
15153 |
-d, --debug don't remove temporary files |
|
15154 |
--recheck update $as_me by reconfiguring in the same conditions |
|
15155 |
--file=FILE[:TEMPLATE] |
|
15156 |
instantiate the configuration file FILE |
|
15157 |
--header=FILE[:TEMPLATE] |
|
15158 |
instantiate the configuration header FILE |
|
15159 |
||
15160 |
Configuration files: |
|
15161 |
$config_files |
|
15162 |
||
15163 |
Configuration headers: |
|
15164 |
$config_headers |
|
15165 |
||
15166 |
Configuration commands: |
|
15167 |
$config_commands |
|
15168 |
||
7
by edam
- removed "OK" from test-main when test is successful |
15169 |
Report bugs to <edam@waxworlds.org>. |
15170 |
sqlite3cc home page: <http://www.waxworlds.org/edam/software/sqlite3cc>." |
|
5
by edam
- updated README |
15171 |
|
15172 |
_ACEOF |
|
15173 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
15174 |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
5
by edam
- updated README |
15175 |
ac_cs_version="\\ |
15176 |
sqlite3cc config.status 0.1.0 |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
15177 |
configured by $0, generated by GNU Autoconf 2.65, |
15178 |
with options \\"\$ac_cs_config\\" |
|
5
by edam
- updated README |
15179 |
|
15180 |
Copyright (C) 2009 Free Software Foundation, Inc. |
|
15181 |
This config.status script is free software; the Free Software Foundation |
|
15182 |
gives unlimited permission to copy, distribute and modify it." |
|
15183 |
||
15184 |
ac_pwd='$ac_pwd' |
|
15185 |
srcdir='$srcdir' |
|
15186 |
INSTALL='$INSTALL' |
|
15187 |
MKDIR_P='$MKDIR_P' |
|
15188 |
AWK='$AWK' |
|
15189 |
test -n "\$AWK" || AWK=awk |
|
15190 |
_ACEOF |
|
15191 |
||
15192 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
15193 |
# The default lists apply if the user does not specify any file. |
|
15194 |
ac_need_defaults=: |
|
15195 |
while test $# != 0 |
|
15196 |
do |
|
15197 |
case $1 in |
|
15198 |
--*=*) |
|
15199 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
|
15200 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
|
15201 |
ac_shift=: |
|
15202 |
;; |
|
15203 |
*) |
|
15204 |
ac_option=$1 |
|
15205 |
ac_optarg=$2 |
|
15206 |
ac_shift=shift |
|
15207 |
;; |
|
15208 |
esac |
|
15209 |
||
15210 |
case $ac_option in |
|
15211 |
# Handling of the options. |
|
15212 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
|
15213 |
ac_cs_recheck=: ;; |
|
15214 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
|
15215 |
$as_echo "$ac_cs_version"; exit ;; |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
15216 |
--config | --confi | --conf | --con | --co | --c ) |
15217 |
$as_echo "$ac_cs_config"; exit ;; |
|
5
by edam
- updated README |
15218 |
--debug | --debu | --deb | --de | --d | -d ) |
15219 |
debug=: ;; |
|
15220 |
--file | --fil | --fi | --f ) |
|
15221 |
$ac_shift |
|
15222 |
case $ac_optarg in |
|
15223 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
15224 |
esac |
|
15225 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
|
15226 |
ac_need_defaults=false;; |
|
15227 |
--header | --heade | --head | --hea ) |
|
15228 |
$ac_shift |
|
15229 |
case $ac_optarg in |
|
15230 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
15231 |
esac |
|
15232 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
|
15233 |
ac_need_defaults=false;; |
|
15234 |
--he | --h) |
|
15235 |
# Conflict between --help and --header |
|
15236 |
as_fn_error "ambiguous option: \`$1' |
|
15237 |
Try \`$0 --help' for more information.";; |
|
15238 |
--help | --hel | -h ) |
|
15239 |
$as_echo "$ac_cs_usage"; exit ;; |
|
15240 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|
15241 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
|
15242 |
ac_cs_silent=: ;; |
|
15243 |
||
15244 |
# This is an error. |
|
15245 |
-*) as_fn_error "unrecognized option: \`$1' |
|
15246 |
Try \`$0 --help' for more information." ;; |
|
15247 |
||
15248 |
*) as_fn_append ac_config_targets " $1" |
|
15249 |
ac_need_defaults=false ;; |
|
15250 |
||
15251 |
esac |
|
15252 |
shift |
|
15253 |
done |
|
15254 |
||
15255 |
ac_configure_extra_args= |
|
15256 |
||
15257 |
if $ac_cs_silent; then |
|
15258 |
exec 6>/dev/null |
|
15259 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
|
15260 |
fi |
|
15261 |
||
15262 |
_ACEOF |
|
15263 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
15264 |
if \$ac_cs_recheck; then |
|
15265 |
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
|
15266 |
shift |
|
15267 |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
|
15268 |
CONFIG_SHELL='$SHELL' |
|
15269 |
export CONFIG_SHELL |
|
15270 |
exec "\$@" |
|
15271 |
fi |
|
15272 |
||
15273 |
_ACEOF |
|
15274 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
15275 |
exec 5>>config.log |
|
15276 |
{ |
|
15277 |
echo |
|
15278 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
|
15279 |
## Running $as_me. ## |
|
15280 |
_ASBOX |
|
15281 |
$as_echo "$ac_log" |
|
15282 |
} >&5 |
|
15283 |
||
15284 |
_ACEOF |
|
15285 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
15286 |
# |
|
15287 |
# INIT-COMMANDS |
|
15288 |
# |
|
15289 |
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
|
15290 |
||
15291 |
||
15292 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
|
15293 |
# if CDPATH is set. |
|
15294 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
15295 |
||
15296 |
sed_quote_subst='$sed_quote_subst' |
|
15297 |
double_quote_subst='$double_quote_subst' |
|
15298 |
delay_variable_subst='$delay_variable_subst' |
|
15299 |
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
|
15300 |
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
|
15301 |
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
|
15302 |
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
|
15303 |
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
|
15304 |
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
|
15305 |
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
|
15306 |
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
|
15307 |
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
|
15308 |
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
|
15309 |
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
|
15310 |
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
|
15311 |
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
|
15312 |
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
|
15313 |
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
|
15314 |
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
|
15315 |
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
|
15316 |
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
|
15317 |
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
|
15318 |
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
|
15319 |
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
|
15320 |
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
|
15321 |
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
|
15322 |
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
|
15323 |
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
|
15324 |
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
|
15325 |
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
|
15326 |
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
15327 |
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
|
15328 |
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
|
15329 |
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
|
15330 |
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
|
15331 |
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
|
15332 |
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
|
15333 |
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
|
15334 |
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
15335 |
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
15336 |
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
15337 |
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
|
15338 |
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
|
15339 |
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
|
15340 |
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
|
15341 |
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
|
15342 |
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
|
15343 |
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' |
|
15344 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
|
15345 |
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
|
15346 |
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
|
15347 |
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
|
15348 |
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
|
15349 |
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
|
15350 |
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
|
15351 |
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
|
15352 |
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
|
15353 |
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
|
15354 |
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
|
15355 |
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
|
15356 |
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
|
15357 |
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
|
15358 |
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
|
15359 |
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
|
15360 |
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
|
15361 |
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
15362 |
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
15363 |
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
|
15364 |
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
|
15365 |
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
15366 |
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
15367 |
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
|
15368 |
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
15369 |
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
15370 |
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
15371 |
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
15372 |
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
15373 |
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
15374 |
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
|
15375 |
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
|
15376 |
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
|
15377 |
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
15378 |
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
|
15379 |
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
|
15380 |
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
|
15381 |
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
|
15382 |
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
|
15383 |
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
|
15384 |
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
|
15385 |
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
|
15386 |
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
|
15387 |
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
|
15388 |
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
|
15389 |
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
15390 |
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
|
15391 |
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
|
15392 |
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
15393 |
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
15394 |
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
|
15395 |
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
|
15396 |
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
|
15397 |
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
|
15398 |
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
|
15399 |
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
|
15400 |
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
|
15401 |
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
15402 |
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
15403 |
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
15404 |
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
15405 |
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
15406 |
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
|
15407 |
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
|
15408 |
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
|
15409 |
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
15410 |
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
|
15411 |
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
|
15412 |
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
|
15413 |
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
|
15414 |
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
|
15415 |
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
|
15416 |
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
|
15417 |
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' |
|
15418 |
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
|
15419 |
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
|
15420 |
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' |
|
15421 |
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' |
|
15422 |
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' |
|
15423 |
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15424 |
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15425 |
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15426 |
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15427 |
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15428 |
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15429 |
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15430 |
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15431 |
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15432 |
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15433 |
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15434 |
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15435 |
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15436 |
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15437 |
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15438 |
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15439 |
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15440 |
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15441 |
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15442 |
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15443 |
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15444 |
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15445 |
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15446 |
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15447 |
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15448 |
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15449 |
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15450 |
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15451 |
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15452 |
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15453 |
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15454 |
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15455 |
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15456 |
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15457 |
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15458 |
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15459 |
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15460 |
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15461 |
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15462 |
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15463 |
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15464 |
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15465 |
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15466 |
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15467 |
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15468 |
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15469 |
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
|
15470 |
||
15471 |
LTCC='$LTCC' |
|
15472 |
LTCFLAGS='$LTCFLAGS' |
|
15473 |
compiler='$compiler_DEFAULT' |
|
15474 |
||
15475 |
# Quote evaled strings. |
|
15476 |
for var in SED \ |
|
15477 |
GREP \ |
|
15478 |
EGREP \ |
|
15479 |
FGREP \ |
|
15480 |
LD \ |
|
15481 |
NM \ |
|
15482 |
LN_S \ |
|
15483 |
lt_SP2NL \ |
|
15484 |
lt_NL2SP \ |
|
15485 |
reload_flag \ |
|
15486 |
OBJDUMP \ |
|
15487 |
deplibs_check_method \ |
|
15488 |
file_magic_cmd \ |
|
15489 |
AR \ |
|
15490 |
AR_FLAGS \ |
|
15491 |
STRIP \ |
|
15492 |
RANLIB \ |
|
15493 |
CC \ |
|
15494 |
CFLAGS \ |
|
15495 |
compiler \ |
|
15496 |
lt_cv_sys_global_symbol_pipe \ |
|
15497 |
lt_cv_sys_global_symbol_to_cdecl \ |
|
15498 |
lt_cv_sys_global_symbol_to_c_name_address \ |
|
15499 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
|
15500 |
SHELL \ |
|
15501 |
ECHO \ |
|
15502 |
lt_prog_compiler_no_builtin_flag \ |
|
15503 |
lt_prog_compiler_wl \ |
|
15504 |
lt_prog_compiler_pic \ |
|
15505 |
lt_prog_compiler_static \ |
|
15506 |
lt_cv_prog_compiler_c_o \ |
|
15507 |
need_locks \ |
|
15508 |
DSYMUTIL \ |
|
15509 |
NMEDIT \ |
|
15510 |
LIPO \ |
|
15511 |
OTOOL \ |
|
15512 |
OTOOL64 \ |
|
15513 |
shrext_cmds \ |
|
15514 |
export_dynamic_flag_spec \ |
|
15515 |
whole_archive_flag_spec \ |
|
15516 |
compiler_needs_object \ |
|
15517 |
with_gnu_ld \ |
|
15518 |
allow_undefined_flag \ |
|
15519 |
no_undefined_flag \ |
|
15520 |
hardcode_libdir_flag_spec \ |
|
15521 |
hardcode_libdir_flag_spec_ld \ |
|
15522 |
hardcode_libdir_separator \ |
|
15523 |
fix_srcfile_path \ |
|
15524 |
exclude_expsyms \ |
|
15525 |
include_expsyms \ |
|
15526 |
file_list_spec \ |
|
15527 |
variables_saved_for_relink \ |
|
15528 |
libname_spec \ |
|
15529 |
library_names_spec \ |
|
15530 |
soname_spec \ |
|
15531 |
finish_eval \ |
|
15532 |
old_striplib \ |
|
15533 |
striplib \ |
|
15534 |
compiler_lib_search_dirs \ |
|
15535 |
predep_objects \ |
|
15536 |
postdep_objects \ |
|
15537 |
predeps \ |
|
15538 |
postdeps \ |
|
15539 |
compiler_lib_search_path \ |
|
15540 |
LD_CXX \ |
|
15541 |
compiler_CXX \ |
|
15542 |
lt_prog_compiler_no_builtin_flag_CXX \ |
|
15543 |
lt_prog_compiler_wl_CXX \ |
|
15544 |
lt_prog_compiler_pic_CXX \ |
|
15545 |
lt_prog_compiler_static_CXX \ |
|
15546 |
lt_cv_prog_compiler_c_o_CXX \ |
|
15547 |
export_dynamic_flag_spec_CXX \ |
|
15548 |
whole_archive_flag_spec_CXX \ |
|
15549 |
compiler_needs_object_CXX \ |
|
15550 |
with_gnu_ld_CXX \ |
|
15551 |
allow_undefined_flag_CXX \ |
|
15552 |
no_undefined_flag_CXX \ |
|
15553 |
hardcode_libdir_flag_spec_CXX \ |
|
15554 |
hardcode_libdir_flag_spec_ld_CXX \ |
|
15555 |
hardcode_libdir_separator_CXX \ |
|
15556 |
fix_srcfile_path_CXX \ |
|
15557 |
exclude_expsyms_CXX \ |
|
15558 |
include_expsyms_CXX \ |
|
15559 |
file_list_spec_CXX \ |
|
15560 |
compiler_lib_search_dirs_CXX \ |
|
15561 |
predep_objects_CXX \ |
|
15562 |
postdep_objects_CXX \ |
|
15563 |
predeps_CXX \ |
|
15564 |
postdeps_CXX \ |
|
15565 |
compiler_lib_search_path_CXX; do |
|
15566 |
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
|
15567 |
*[\\\\\\\`\\"\\\$]*) |
|
15568 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
|
15569 |
;; |
|
15570 |
*) |
|
15571 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
|
15572 |
;; |
|
15573 |
esac |
|
15574 |
done |
|
15575 |
||
15576 |
# Double-quote double-evaled strings. |
|
15577 |
for var in reload_cmds \ |
|
15578 |
old_postinstall_cmds \ |
|
15579 |
old_postuninstall_cmds \ |
|
15580 |
old_archive_cmds \ |
|
15581 |
extract_expsyms_cmds \ |
|
15582 |
old_archive_from_new_cmds \ |
|
15583 |
old_archive_from_expsyms_cmds \ |
|
15584 |
archive_cmds \ |
|
15585 |
archive_expsym_cmds \ |
|
15586 |
module_cmds \ |
|
15587 |
module_expsym_cmds \ |
|
15588 |
export_symbols_cmds \ |
|
15589 |
prelink_cmds \ |
|
15590 |
postinstall_cmds \ |
|
15591 |
postuninstall_cmds \ |
|
15592 |
finish_cmds \ |
|
15593 |
sys_lib_search_path_spec \ |
|
15594 |
sys_lib_dlsearch_path_spec \ |
|
15595 |
old_archive_cmds_CXX \ |
|
15596 |
old_archive_from_new_cmds_CXX \ |
|
15597 |
old_archive_from_expsyms_cmds_CXX \ |
|
15598 |
archive_cmds_CXX \ |
|
15599 |
archive_expsym_cmds_CXX \ |
|
15600 |
module_cmds_CXX \ |
|
15601 |
module_expsym_cmds_CXX \ |
|
15602 |
export_symbols_cmds_CXX \ |
|
15603 |
prelink_cmds_CXX; do |
|
15604 |
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
|
15605 |
*[\\\\\\\`\\"\\\$]*) |
|
15606 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
|
15607 |
;; |
|
15608 |
*) |
|
15609 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
|
15610 |
;; |
|
15611 |
esac |
|
15612 |
done |
|
15613 |
||
15614 |
# Fix-up fallback echo if it was mangled by the above quoting rules. |
|
15615 |
case \$lt_ECHO in |
|
15616 |
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
|
15617 |
;; |
|
15618 |
esac |
|
15619 |
||
15620 |
ac_aux_dir='$ac_aux_dir' |
|
15621 |
xsi_shell='$xsi_shell' |
|
15622 |
lt_shell_append='$lt_shell_append' |
|
15623 |
||
15624 |
# See if we are running on zsh, and set the options which allow our |
|
15625 |
# commands through without removal of \ escapes INIT. |
|
15626 |
if test -n "\${ZSH_VERSION+set}" ; then |
|
15627 |
setopt NO_GLOB_SUBST |
|
15628 |
fi |
|
15629 |
||
15630 |
||
15631 |
PACKAGE='$PACKAGE' |
|
15632 |
VERSION='$VERSION' |
|
15633 |
TIMESTAMP='$TIMESTAMP' |
|
15634 |
RM='$RM' |
|
15635 |
ofile='$ofile' |
|
15636 |
||
15637 |
||
15638 |
||
15639 |
||
15640 |
||
15641 |
||
15642 |
_ACEOF |
|
15643 |
||
15644 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
15645 |
||
15646 |
# Handling of arguments. |
|
15647 |
for ac_config_target in $ac_config_targets |
|
15648 |
do |
|
15649 |
case $ac_config_target in |
|
15650 |
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
|
15651 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
|
15652 |
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
|
15653 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
|
15654 |
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
|
7
by edam
- removed "OK" from test-main when test is successful |
15655 |
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
5
by edam
- updated README |
15656 |
"test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
15657 |
||
15658 |
*) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
|
15659 |
esac |
|
15660 |
done |
|
15661 |
||
15662 |
||
15663 |
# If the user did not use the arguments to specify the items to instantiate, |
|
15664 |
# then the envvar interface is used. Set only those that are not. |
|
15665 |
# We use the long form for the default assignment because of an extremely |
|
15666 |
# bizarre bug on SunOS 4.1.3. |
|
15667 |
if $ac_need_defaults; then |
|
15668 |
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
|
15669 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
|
15670 |
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
|
15671 |
fi |
|
15672 |
||
15673 |
# Have a temporary directory for convenience. Make it in the build tree |
|
15674 |
# simply because there is no reason against having it here, and in addition, |
|
15675 |
# creating and moving files from /tmp can sometimes cause problems. |
|
15676 |
# Hook for its removal unless debugging. |
|
15677 |
# Note that there is a small window in which the directory will not be cleaned: |
|
15678 |
# after its creation but before its name has been assigned to `$tmp'. |
|
15679 |
$debug || |
|
15680 |
{ |
|
15681 |
tmp= |
|
15682 |
trap 'exit_status=$? |
|
15683 |
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
|
15684 |
' 0 |
|
15685 |
trap 'as_fn_exit 1' 1 2 13 15 |
|
15686 |
} |
|
15687 |
# Create a (secure) tmp directory for tmp files. |
|
15688 |
||
15689 |
{ |
|
15690 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
|
15691 |
test -n "$tmp" && test -d "$tmp" |
|
15692 |
} || |
|
15693 |
{ |
|
15694 |
tmp=./conf$$-$RANDOM |
|
15695 |
(umask 077 && mkdir "$tmp") |
|
15696 |
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
|
15697 |
||
15698 |
# Set up the scripts for CONFIG_FILES section. |
|
15699 |
# No need to generate them if there are no CONFIG_FILES. |
|
15700 |
# This happens for instance with `./config.status config.h'. |
|
15701 |
if test -n "$CONFIG_FILES"; then |
|
15702 |
||
15703 |
||
15704 |
ac_cr=`echo X | tr X '\015'` |
|
15705 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
|
15706 |
# But we know of no other shell where ac_cr would be empty at this |
|
15707 |
# point, so we can use a bashism as a fallback. |
|
15708 |
if test "x$ac_cr" = x; then |
|
15709 |
eval ac_cr=\$\'\\r\' |
|
15710 |
fi |
|
15711 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
|
15712 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
|
15713 |
ac_cs_awk_cr='\r' |
|
15714 |
else |
|
15715 |
ac_cs_awk_cr=$ac_cr |
|
15716 |
fi |
|
15717 |
||
15718 |
echo 'BEGIN {' >"$tmp/subs1.awk" && |
|
15719 |
_ACEOF |
|
15720 |
||
15721 |
||
15722 |
{ |
|
15723 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
|
15724 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
|
15725 |
echo "_ACEOF" |
|
15726 |
} >conf$$subs.sh || |
|
15727 |
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
15728 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
|
15729 |
ac_delim='%!_!# ' |
|
15730 |
for ac_last_try in false false false false false :; do |
|
15731 |
. ./conf$$subs.sh || |
|
15732 |
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
15733 |
||
15734 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
|
15735 |
if test $ac_delim_n = $ac_delim_num; then |
|
15736 |
break |
|
15737 |
elif $ac_last_try; then |
|
15738 |
as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
|
15739 |
else |
|
15740 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
15741 |
fi |
|
15742 |
done |
|
15743 |
rm -f conf$$subs.sh |
|
15744 |
||
15745 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
15746 |
cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
|
15747 |
_ACEOF |
|
15748 |
sed -n ' |
|
15749 |
h |
|
15750 |
s/^/S["/; s/!.*/"]=/ |
|
15751 |
p |
|
15752 |
g |
|
15753 |
s/^[^!]*!// |
|
15754 |
:repl |
|
15755 |
t repl |
|
15756 |
s/'"$ac_delim"'$// |
|
15757 |
t delim |
|
15758 |
:nl |
|
15759 |
h |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
15760 |
s/\(.\{148\}\)..*/\1/ |
5
by edam
- updated README |
15761 |
t more1 |
15762 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
|
15763 |
p |
|
15764 |
n |
|
15765 |
b repl |
|
15766 |
:more1 |
|
15767 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
|
15768 |
p |
|
15769 |
g |
|
15770 |
s/.\{148\}// |
|
15771 |
t nl |
|
15772 |
:delim |
|
15773 |
h |
|
16
by edam
- renamed database to connection to better identify what it is (would database_connection be better though?) |
15774 |
s/\(.\{148\}\)..*/\1/ |
5
by edam
- updated README |
15775 |
t more2 |
15776 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
|
15777 |
p |
|
15778 |
b |
|
15779 |
:more2 |
|
15780 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
|
15781 |
p |
|
15782 |
g |
|
15783 |
s/.\{148\}// |
|
15784 |
t delim |
|
15785 |
' <conf$$subs.awk | sed ' |
|
15786 |
/^[^""]/{ |
|
15787 |
N |
|
15788 |
s/\n// |
|
15789 |
} |
|
15790 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
|
15791 |
rm -f conf$$subs.awk |
|
15792 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
15793 |
_ACAWK |
|
15794 |
cat >>"\$tmp/subs1.awk" <<_ACAWK && |
|
15795 |
for (key in S) S_is_set[key] = 1 |
|
15796 |
FS = "" |
|
15797 |
||
15798 |
} |
|
15799 |
{ |
|
15800 |
line = $ 0 |
|
15801 |
nfields = split(line, field, "@") |
|
15802 |
substed = 0 |
|
15803 |
len = length(field[1]) |
|
15804 |
for (i = 2; i < nfields; i++) { |
|
15805 |
key = field[i] |
|
15806 |
keylen = length(key) |
|
15807 |
if (S_is_set[key]) { |
|
15808 |
value = S[key] |
|
15809 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
|
15810 |
len += length(value) + length(field[++i]) |
|
15811 |
substed = 1 |
|
15812 |
} else |
|
15813 |
len += 1 + keylen |
|
15814 |
} |
|
15815 |
||
15816 |
print line |
|
15817 |
} |
|
15818 |
||
15819 |
_ACAWK |
|
15820 |
_ACEOF |
|
15821 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
15822 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
|
15823 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
|
15824 |
else |
|
15825 |
cat |
|
15826 |
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
|
15827 |
|| as_fn_error "could not setup config files machinery" "$LINENO" 5 |
|
15828 |
_ACEOF |
|
15829 |
||
15830 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
|
15831 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
|
15832 |
# trailing colons and then remove the whole line if VPATH becomes empty |
|
15833 |
# (actually we leave an empty line to preserve line numbers). |
|
15834 |
if test "x$srcdir" = x.; then |
|
15835 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
|
15836 |
s/:*\$(srcdir):*/:/ |
|
15837 |
s/:*\${srcdir}:*/:/ |
|
15838 |
s/:*@srcdir@:*/:/ |
|
15839 |
s/^\([^=]*=[ ]*\):*/\1/ |
|
15840 |
s/:*$// |
|
15841 |
s/^[^=]*=[ ]*$// |
|
15842 |
}' |
|
15843 |
fi |
|
15844 |
||
15845 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
15846 |
fi # test -n "$CONFIG_FILES" |
|
15847 |
||
15848 |
# Set up the scripts for CONFIG_HEADERS section. |
|
15849 |
# No need to generate them if there are no CONFIG_HEADERS. |
|
15850 |
# This happens for instance with `./config.status Makefile'. |
|
15851 |
if test -n "$CONFIG_HEADERS"; then |
|
15852 |
cat >"$tmp/defines.awk" <<\_ACAWK || |
|
15853 |
BEGIN { |
|
15854 |
_ACEOF |
|
15855 |
||
15856 |
# Transform confdefs.h into an awk script `defines.awk', embedded as |
|
15857 |
# here-document in config.status, that substitutes the proper values into |
|
15858 |
# config.h.in to produce config.h. |
|
15859 |
||
15860 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
|
15861 |
# handling of long lines. |
|
15862 |
ac_delim='%!_!# ' |
|
15863 |
for ac_last_try in false false :; do |
|
15864 |
ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
|
15865 |
if test -z "$ac_t"; then |
|
15866 |
break |
|
15867 |
elif $ac_last_try; then |
|
15868 |
as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
|
15869 |
else |
|
15870 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
|
15871 |
fi |
|
15872 |
done |
|
15873 |
||
15874 |
# For the awk script, D is an array of macro values keyed by name, |
|
15875 |
# likewise P contains macro parameters if any. Preserve backslash |
|
15876 |
# newline sequences. |
|
15877 |
||
15878 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
|
15879 |
sed -n ' |
|
15880 |
s/.\{148\}/&'"$ac_delim"'/g |
|
15881 |
t rset |
|
15882 |
:rset |
|
15883 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
|
15884 |
t def |
|
15885 |
d |
|
15886 |
:def |
|
15887 |
s/\\$// |
|
15888 |
t bsnl |
|
15889 |
s/["\\]/\\&/g |
|
15890 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
|
15891 |
D["\1"]=" \3"/p |
|
15892 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
|
15893 |
d |
|
15894 |
:bsnl |
|
15895 |
s/["\\]/\\&/g |
|
15896 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
|
15897 |
D["\1"]=" \3\\\\\\n"\\/p |
|
15898 |
t cont |
|
15899 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
|
15900 |
t cont |
|
15901 |
d |
|
15902 |
:cont |
|
15903 |
n |
|
15904 |
s/.\{148\}/&'"$ac_delim"'/g |
|
15905 |
t clear |
|
15906 |
:clear |
|
15907 |
s/\\$// |
|
15908 |
t bsnlc |
|
15909 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
|
15910 |
d |
|
15911 |
:bsnlc |
|
15912 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
|
15913 |
b cont |
|
15914 |
' <confdefs.h | sed ' |
|
15915 |
s/'"$ac_delim"'/"\\\ |
|
15916 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
|
15917 |
||
15918 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
15919 |
for (key in D) D_is_set[key] = 1 |
|
15920 |
FS = "" |
|
15921 |
} |
|
15922 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
|
15923 |
line = \$ 0 |
|
15924 |
split(line, arg, " ") |
|
15925 |
if (arg[1] == "#") { |
|
15926 |
defundef = arg[2] |
|
15927 |
mac1 = arg[3] |
|
15928 |
} else { |
|
15929 |
defundef = substr(arg[1], 2) |
|
15930 |
mac1 = arg[2] |
|
15931 |
} |
|
15932 |
split(mac1, mac2, "(") #) |
|
15933 |
macro = mac2[1] |
|
15934 |
prefix = substr(line, 1, index(line, defundef) - 1) |
|
15935 |
if (D_is_set[macro]) { |
|
15936 |
# Preserve the white space surrounding the "#". |
|
15937 |
print prefix "define", macro P[macro] D[macro] |
|
15938 |
next |
|
15939 |
} else { |
|
15940 |
# Replace #undef with comments. This is necessary, for example, |
|
15941 |
# in the case of _POSIX_SOURCE, which is predefined and required |
|
15942 |
# on some systems where configure will not decide to define it. |
|
15943 |
if (defundef == "undef") { |
|
15944 |
print "/*", prefix defundef, macro, "*/" |
|
15945 |
next |
|
15946 |
} |
|
15947 |
} |
|
15948 |
} |
|
15949 |
{ print } |
|
15950 |
_ACAWK |
|
15951 |
_ACEOF |
|
15952 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
15953 |
as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
|
15954 |
fi # test -n "$CONFIG_HEADERS" |
|
15955 |
||
15956 |
||
15957 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
|
15958 |
shift |
|
15959 |
for ac_tag |
|
15960 |
do |
|
15961 |
case $ac_tag in |
|
15962 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
|
15963 |
esac |
|
15964 |
case $ac_mode$ac_tag in |
|
15965 |
:[FHL]*:*);; |
|
15966 |
:L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
|
15967 |
:[FH]-) ac_tag=-:-;; |
|
15968 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
|
15969 |
esac |
|
15970 |
ac_save_IFS=$IFS |
|
15971 |
IFS=: |
|
15972 |
set x $ac_tag |
|
15973 |
IFS=$ac_save_IFS |
|
15974 |
shift |
|
15975 |
ac_file=$1 |
|
15976 |
shift |
|
15977 |
||
15978 |
case $ac_mode in |
|
15979 |
:L) ac_source=$1;; |
|
15980 |
:[FH]) |
|
15981 |
ac_file_inputs= |
|
15982 |
for ac_f |
|
15983 |
do |
|
15984 |
case $ac_f in |
|
15985 |
-) ac_f="$tmp/stdin";; |
|
15986 |
*) # Look for the file first in the build tree, then in the source tree |
|
15987 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
|
15988 |
# because $ac_f cannot contain `:'. |
|
15989 |
test -f "$ac_f" || |
|
15990 |
case $ac_f in |
|
15991 |
[\\/$]*) false;; |
|
15992 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
|
15993 |
esac || |
|
15994 |
as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
|
15995 |
esac |
|
15996 |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
|
15997 |
as_fn_append ac_file_inputs " '$ac_f'" |
|
15998 |
done |
|
15999 |
||
16000 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
|
16001 |
# use $as_me), people would be surprised to read: |
|
16002 |
# /* config.h. Generated by config.status. */ |
|
16003 |
configure_input='Generated from '` |
|
16004 |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
|
16005 |
`' by configure.' |
|
16006 |
if test x"$ac_file" != x-; then |
|
16007 |
configure_input="$ac_file. $configure_input" |
|
16008 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
|
16009 |
$as_echo "$as_me: creating $ac_file" >&6;} |
|
16010 |
fi |
|
16011 |
# Neutralize special characters interpreted by sed in replacement strings. |
|
16012 |
case $configure_input in #( |
|
16013 |
*\&* | *\|* | *\\* ) |
|
16014 |
ac_sed_conf_input=`$as_echo "$configure_input" | |
|
16015 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
|
16016 |
*) ac_sed_conf_input=$configure_input;; |
|
16017 |
esac |
|
16018 |
||
16019 |
case $ac_tag in |
|
16020 |
*:-:* | *:-) cat >"$tmp/stdin" \ |
|
16021 |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
|
16022 |
esac |
|
16023 |
;; |
|
16024 |
esac |
|
16025 |
||
16026 |
ac_dir=`$as_dirname -- "$ac_file" || |
|
16027 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
16028 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
|
16029 |
X"$ac_file" : 'X\(//\)$' \| \ |
|
16030 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
|
16031 |
$as_echo X"$ac_file" | |
|
16032 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
16033 |
s//\1/ |
|
16034 |
q |
|
16035 |
} |
|
16036 |
/^X\(\/\/\)[^/].*/{ |
|
16037 |
s//\1/ |
|
16038 |
q |
|
16039 |
} |
|
16040 |
/^X\(\/\/\)$/{ |
|
16041 |
s//\1/ |
|
16042 |
q |
|
16043 |
} |
|
16044 |
/^X\(\/\).*/{ |
|
16045 |
s//\1/ |
|
16046 |
q |
|
16047 |
} |
|
16048 |
s/.*/./; q'` |
|
16049 |
as_dir="$ac_dir"; as_fn_mkdir_p |
|
16050 |
ac_builddir=. |
|
16051 |
||
16052 |
case "$ac_dir" in |
|
16053 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
16054 |
*) |
|
16055 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
|
16056 |
# A ".." for each directory in $ac_dir_suffix. |
|
16057 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
|
16058 |
case $ac_top_builddir_sub in |
|
16059 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
|
16060 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
|
16061 |
esac ;; |
|
16062 |
esac |
|
16063 |
ac_abs_top_builddir=$ac_pwd |
|
16064 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
|
16065 |
# for backward compatibility: |
|
16066 |
ac_top_builddir=$ac_top_build_prefix |
|
16067 |
||
16068 |
case $srcdir in |
|
16069 |
.) # We are building in place. |
|
16070 |
ac_srcdir=. |
|
16071 |
ac_top_srcdir=$ac_top_builddir_sub |
|
16072 |
ac_abs_top_srcdir=$ac_pwd ;; |
|
16073 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
|
16074 |
ac_srcdir=$srcdir$ac_dir_suffix; |
|
16075 |
ac_top_srcdir=$srcdir |
|
16076 |
ac_abs_top_srcdir=$srcdir ;; |
|
16077 |
*) # Relative name. |
|
16078 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
|
16079 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
|
16080 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
|
16081 |
esac |
|
16082 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
|
16083 |
||
16084 |
||
16085 |
case $ac_mode in |
|
16086 |
:F) |
|
16087 |
# |
|
16088 |
# CONFIG_FILE |
|
16089 |
# |
|
16090 |
||
16091 |
case $INSTALL in |
|
16092 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
|
16093 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
|
16094 |
esac |
|
16095 |
ac_MKDIR_P=$MKDIR_P |
|
16096 |
case $MKDIR_P in |
|
16097 |
[\\/$]* | ?:[\\/]* ) ;; |
|
16098 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
|
16099 |
esac |
|
16100 |
_ACEOF |
|
16101 |
||
16102 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
16103 |
# If the template does not know about datarootdir, expand it. |
|
16104 |
# FIXME: This hack should be removed a few years after 2.60. |
|
16105 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
|
16106 |
ac_sed_dataroot=' |
|
16107 |
/datarootdir/ { |
|
16108 |
p |
|
16109 |
q |
|
16110 |
} |
|
16111 |
/@datadir@/p |
|
16112 |
/@docdir@/p |
|
16113 |
/@infodir@/p |
|
16114 |
/@localedir@/p |
|
16115 |
/@mandir@/p' |
|
16116 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
|
16117 |
*datarootdir*) ac_datarootdir_seen=yes;; |
|
16118 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
|
16119 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
|
16120 |
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
|
16121 |
_ACEOF |
|
16122 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
16123 |
ac_datarootdir_hack=' |
|
16124 |
s&@datadir@&$datadir&g |
|
16125 |
s&@docdir@&$docdir&g |
|
16126 |
s&@infodir@&$infodir&g |
|
16127 |
s&@localedir@&$localedir&g |
|
16128 |
s&@mandir@&$mandir&g |
|
16129 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
|
16130 |
esac |
|
16131 |
_ACEOF |
|
16132 |
||
16133 |
# Neutralize VPATH when `$srcdir' = `.'. |
|
16134 |
# Shell code in configure.ac might set extrasub. |
|
16135 |
# FIXME: do we really want to maintain this feature? |
|
16136 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
|
16137 |
ac_sed_extra="$ac_vpsub |
|
16138 |
$extrasub |
|
16139 |
_ACEOF |
|
16140 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
|
16141 |
:t |
|
16142 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
|
16143 |
s|@configure_input@|$ac_sed_conf_input|;t t |
|
16144 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
|
16145 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
|
16146 |
s&@srcdir@&$ac_srcdir&;t t |
|
16147 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
|
16148 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
|
16149 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
|
16150 |
s&@builddir@&$ac_builddir&;t t |
|
16151 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
|
16152 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
|
16153 |
s&@INSTALL@&$ac_INSTALL&;t t |
|
16154 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t |
|
16155 |
$ac_datarootdir_hack |
|
16156 |
" |
|
16157 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
|
16158 |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
|
16159 |
||
16160 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
|
16161 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
|
16162 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
|
16163 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
16164 |
which seems to be undefined. Please make sure it is defined." >&5 |
|
16165 |
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
|
16166 |
which seems to be undefined. Please make sure it is defined." >&2;} |
|
16167 |
||
16168 |
rm -f "$tmp/stdin" |
|
16169 |
case $ac_file in |
|
16170 |
-) cat "$tmp/out" && rm -f "$tmp/out";; |
|
16171 |
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
|
16172 |
esac \ |
|
16173 |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
|
16174 |
;; |
|
16175 |
:H) |
|
16176 |
# |
|
16177 |
# CONFIG_HEADER |
|
16178 |
# |
|
16179 |
if test x"$ac_file" != x-; then |
|
16180 |
{ |
|
16181 |
$as_echo "/* $configure_input */" \ |
|
16182 |
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
|
16183 |
} >"$tmp/config.h" \ |
|
16184 |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
|
16185 |
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
|
16186 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
|
16187 |
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
|
16188 |
else |
|
16189 |
rm -f "$ac_file" |
|
16190 |
mv "$tmp/config.h" "$ac_file" \ |
|
16191 |
|| as_fn_error "could not create $ac_file" "$LINENO" 5 |
|
16192 |
fi |
|
16193 |
else |
|
16194 |
$as_echo "/* $configure_input */" \ |
|
16195 |
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
|
16196 |
|| as_fn_error "could not create -" "$LINENO" 5 |
|
16197 |
fi |
|
16198 |
# Compute "$ac_file"'s index in $config_headers. |
|
16199 |
_am_arg="$ac_file" |
|
16200 |
_am_stamp_count=1 |
|
16201 |
for _am_header in $config_headers :; do |
|
16202 |
case $_am_header in |
|
16203 |
$_am_arg | $_am_arg:* ) |
|
16204 |
break ;; |
|
16205 |
* ) |
|
16206 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
|
16207 |
esac |
|
16208 |
done |
|
16209 |
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
|
16210 |
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
16211 |
X"$_am_arg" : 'X\(//\)[^/]' \| \ |
|
16212 |
X"$_am_arg" : 'X\(//\)$' \| \ |
|
16213 |
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
|
16214 |
$as_echo X"$_am_arg" | |
|
16215 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
16216 |
s//\1/ |
|
16217 |
q |
|
16218 |
} |
|
16219 |
/^X\(\/\/\)[^/].*/{ |
|
16220 |
s//\1/ |
|
16221 |
q |
|
16222 |
} |
|
16223 |
/^X\(\/\/\)$/{ |
|
16224 |
s//\1/ |
|
16225 |
q |
|
16226 |
} |
|
16227 |
/^X\(\/\).*/{ |
|
16228 |
s//\1/ |
|
16229 |
q |
|
16230 |
} |
|
16231 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
|
16232 |
;; |
|
16233 |
||
16234 |
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
|
16235 |
$as_echo "$as_me: executing $ac_file commands" >&6;} |
|
16236 |
;; |
|
16237 |
esac |
|
16238 |
||
16239 |
||
16240 |
case $ac_file$ac_mode in |
|
16241 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
|
16242 |
# Autoconf 2.62 quotes --file arguments for eval, but not when files |
|
16243 |
# are listed without --file. Let's play safe and only enable the eval |
|
16244 |
# if we detect the quoting. |
|
16245 |
case $CONFIG_FILES in |
|
16246 |
*\'*) eval set x "$CONFIG_FILES" ;; |
|
16247 |
*) set x $CONFIG_FILES ;; |
|
16248 |
esac |
|
16249 |
shift |
|
16250 |
for mf |
|
16251 |
do |
|
16252 |
# Strip MF so we end up with the name of the file. |
|
16253 |
mf=`echo "$mf" | sed -e 's/:.*$//'` |
|
16254 |
# Check whether this is an Automake generated Makefile or not. |
|
16255 |
# We used to match only the files named `Makefile.in', but |
|
16256 |
# some people rename them; so instead we look at the file content. |
|
16257 |
# Grep'ing the first line is not enough: some people post-process |
|
16258 |
# each Makefile.in and add a new line on top of each file to say so. |
|
16259 |
# Grep'ing the whole file is not good either: AIX grep has a line |
|
16260 |
# limit of 2048, but all sed's we know have understand at least 4000. |
|
16261 |
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
|
16262 |
dirpart=`$as_dirname -- "$mf" || |
|
16263 |
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
16264 |
X"$mf" : 'X\(//\)[^/]' \| \ |
|
16265 |
X"$mf" : 'X\(//\)$' \| \ |
|
16266 |
X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
|
16267 |
$as_echo X"$mf" | |
|
16268 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
16269 |
s//\1/ |
|
16270 |
q |
|
16271 |
} |
|
16272 |
/^X\(\/\/\)[^/].*/{ |
|
16273 |
s//\1/ |
|
16274 |
q |
|
16275 |
} |
|
16276 |
/^X\(\/\/\)$/{ |
|
16277 |
s//\1/ |
|
16278 |
q |
|
16279 |
} |
|
16280 |
/^X\(\/\).*/{ |
|
16281 |
s//\1/ |
|
16282 |
q |
|
16283 |
} |
|
16284 |
s/.*/./; q'` |
|
16285 |
else |
|
16286 |
continue |
|
16287 |
fi |
|
16288 |
# Extract the definition of DEPDIR, am__include, and am__quote |
|
16289 |
# from the Makefile without running `make'. |
|
16290 |
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
|
16291 |
test -z "$DEPDIR" && continue |
|
16292 |
am__include=`sed -n 's/^am__include = //p' < "$mf"` |
|
16293 |
test -z "am__include" && continue |
|
16294 |
am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
|
16295 |
# When using ansi2knr, U may be empty or an underscore; expand it |
|
16296 |
U=`sed -n 's/^U = //p' < "$mf"` |
|
16297 |
# Find all dependency output files, they are included files with |
|
16298 |
# $(DEPDIR) in their names. We invoke sed twice because it is the |
|
16299 |
# simplest approach to changing $(DEPDIR) to its actual value in the |
|
16300 |
# expansion. |
|
16301 |
for file in `sed -n " |
|
16302 |
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
|
16303 |
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
|
16304 |
# Make sure the directory exists. |
|
16305 |
test -f "$dirpart/$file" && continue |
|
16306 |
fdir=`$as_dirname -- "$file" || |
|
16307 |
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
|
16308 |
X"$file" : 'X\(//\)[^/]' \| \ |
|
16309 |
X"$file" : 'X\(//\)$' \| \ |
|
16310 |
X"$file" : 'X\(/\)' \| . 2>/dev/null || |
|
16311 |
$as_echo X"$file" | |
|
16312 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
|
16313 |
s//\1/ |
|
16314 |
q |
|
16315 |
} |
|
16316 |
/^X\(\/\/\)[^/].*/{ |
|
16317 |
s//\1/ |
|
16318 |
q |
|
16319 |
} |
|
16320 |
/^X\(\/\/\)$/{ |
|
16321 |
s//\1/ |
|
16322 |
q |
|
16323 |
} |
|
16324 |
/^X\(\/\).*/{ |
|
16325 |
s//\1/ |
|
16326 |
q |
|
16327 |
} |
|
16328 |
s/.*/./; q'` |
|
16329 |
as_dir=$dirpart/$fdir; as_fn_mkdir_p |
|
16330 |
# echo "creating $dirpart/$file" |
|
16331 |
echo '# dummy' > "$dirpart/$file" |
|
16332 |
done |
|
16333 |
done |
|
16334 |
} |
|
16335 |
;; |
|
16336 |
"libtool":C) |
|
16337 |
||
16338 |
# See if we are running on zsh, and set the options which allow our |
|
16339 |
# commands through without removal of \ escapes. |
|
16340 |
if test -n "${ZSH_VERSION+set}" ; then |
|
16341 |
setopt NO_GLOB_SUBST |
|
16342 |
fi |
|
16343 |
||
16344 |
cfgfile="${ofile}T" |
|
16345 |
trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
|
16346 |
$RM "$cfgfile" |
|
16347 |
||
16348 |
cat <<_LT_EOF >> "$cfgfile" |
|
16349 |
#! $SHELL |
|
16350 |
||
16351 |
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
|
16352 |
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
|
16353 |
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
16354 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
|
16355 |
# |
|
16356 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
|
16357 |
# 2006, 2007, 2008 Free Software Foundation, Inc. |
|
16358 |
# Written by Gordon Matzigkeit, 1996 |
|
16359 |
# |
|
16360 |
# This file is part of GNU Libtool. |
|
16361 |
# |
|
16362 |
# GNU Libtool is free software; you can redistribute it and/or |
|
16363 |
# modify it under the terms of the GNU General Public License as |
|
16364 |
# published by the Free Software Foundation; either version 2 of |
|
16365 |
# the License, or (at your option) any later version. |
|
16366 |
# |
|
16367 |
# As a special exception to the GNU General Public License, |
|
16368 |
# if you distribute this file as part of a program or library that |
|
16369 |
# is built using GNU Libtool, you may include this file under the |
|
16370 |
# same distribution terms that you use for the rest of that program. |
|
16371 |
# |
|
16372 |
# GNU Libtool is distributed in the hope that it will be useful, |
|
16373 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
16374 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16375 |
# GNU General Public License for more details. |
|
16376 |
# |
|
16377 |
# You should have received a copy of the GNU General Public License |
|
16378 |
# along with GNU Libtool; see the file COPYING. If not, a copy |
|
16379 |
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
|
16380 |
# obtained by writing to the Free Software Foundation, Inc., |
|
16381 |
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
16382 |
||
16383 |
||
16384 |
# The names of the tagged configurations supported by this script. |
|
16385 |
available_tags="CXX " |
|
16386 |
||
16387 |
# ### BEGIN LIBTOOL CONFIG |
|
16388 |
||
16389 |
# Which release of libtool.m4 was used? |
|
16390 |
macro_version=$macro_version |
|
16391 |
macro_revision=$macro_revision |
|
16392 |
||
16393 |
# Whether or not to build shared libraries. |
|
16394 |
build_libtool_libs=$enable_shared |
|
16395 |
||
16396 |
# Whether or not to build static libraries. |
|
16397 |
build_old_libs=$enable_static |
|
16398 |
||
16399 |
# What type of objects to build. |
|
16400 |
pic_mode=$pic_mode |
|
16401 |
||
16402 |
# Whether or not to optimize for fast installation. |
|
16403 |
fast_install=$enable_fast_install |
|
16404 |
||
16405 |
# The host system. |
|
16406 |
host_alias=$host_alias |
|
16407 |
host=$host |
|
16408 |
host_os=$host_os |
|
16409 |
||
16410 |
# The build system. |
|
16411 |
build_alias=$build_alias |
|
16412 |
build=$build |
|
16413 |
build_os=$build_os |
|
16414 |
||
16415 |
# A sed program that does not truncate output. |
|
16416 |
SED=$lt_SED |
|
16417 |
||
16418 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
|
16419 |
Xsed="\$SED -e 1s/^X//" |
|
16420 |
||
16421 |
# A grep program that handles long lines. |
|
16422 |
GREP=$lt_GREP |
|
16423 |
||
16424 |
# An ERE matcher. |
|
16425 |
EGREP=$lt_EGREP |
|
16426 |
||
16427 |
# A literal string matcher. |
|
16428 |
FGREP=$lt_FGREP |
|
16429 |
||
16430 |
# A BSD- or MS-compatible name lister. |
|
16431 |
NM=$lt_NM |
|
16432 |
||
16433 |
# Whether we need soft or hard links. |
|
16434 |
LN_S=$lt_LN_S |
|
16435 |
||
16436 |
# What is the maximum length of a command? |
|
16437 |
max_cmd_len=$max_cmd_len |
|
16438 |
||
16439 |
# Object file suffix (normally "o"). |
|
16440 |
objext=$ac_objext |
|
16441 |
||
16442 |
# Executable file suffix (normally ""). |
|
16443 |
exeext=$exeext |
|
16444 |
||
16445 |
# whether the shell understands "unset". |
|
16446 |
lt_unset=$lt_unset |
|
16447 |
||
16448 |
# turn spaces into newlines. |
|
16449 |
SP2NL=$lt_lt_SP2NL |
|
16450 |
||
16451 |
# turn newlines into spaces. |
|
16452 |
NL2SP=$lt_lt_NL2SP |
|
16453 |
||
16454 |
# How to create reloadable object files. |
|
16455 |
reload_flag=$lt_reload_flag |
|
16456 |
reload_cmds=$lt_reload_cmds |
|
16457 |
||
16458 |
# An object symbol dumper. |
|
16459 |
OBJDUMP=$lt_OBJDUMP |
|
16460 |
||
16461 |
# Method to check whether dependent libraries are shared objects. |
|
16462 |
deplibs_check_method=$lt_deplibs_check_method |
|
16463 |
||
16464 |
# Command to use when deplibs_check_method == "file_magic". |
|
16465 |
file_magic_cmd=$lt_file_magic_cmd |
|
16466 |
||
16467 |
# The archiver. |
|
16468 |
AR=$lt_AR |
|
16469 |
AR_FLAGS=$lt_AR_FLAGS |
|
16470 |
||
16471 |
# A symbol stripping program. |
|
16472 |
STRIP=$lt_STRIP |
|
16473 |
||
16474 |
# Commands used to install an old-style archive. |
|
16475 |
RANLIB=$lt_RANLIB |
|
16476 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
|
16477 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
|
16478 |
||
16479 |
# A C compiler. |
|
16480 |
LTCC=$lt_CC |
|
16481 |
||
16482 |
# LTCC compiler flags. |
|
16483 |
LTCFLAGS=$lt_CFLAGS |
|
16484 |
||
16485 |
# Take the output of nm and produce a listing of raw symbols and C names. |
|
16486 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
|
16487 |
||
16488 |
# Transform the output of nm in a proper C declaration. |
|
16489 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
|
16490 |
||
16491 |
# Transform the output of nm in a C name address pair. |
|
16492 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
|
16493 |
||
16494 |
# Transform the output of nm in a C name address pair when lib prefix is needed. |
|
16495 |
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
|
16496 |
||
16497 |
# The name of the directory that contains temporary libtool files. |
|
16498 |
objdir=$objdir |
|
16499 |
||
16500 |
# Shell to use when invoking shell scripts. |
|
16501 |
SHELL=$lt_SHELL |
|
16502 |
||
16503 |
# An echo program that does not interpret backslashes. |
|
16504 |
ECHO=$lt_ECHO |
|
16505 |
||
16506 |
# Used to examine libraries when file_magic_cmd begins with "file". |
|
16507 |
MAGIC_CMD=$MAGIC_CMD |
|
16508 |
||
16509 |
# Must we lock files when doing compilation? |
|
16510 |
need_locks=$lt_need_locks |
|
16511 |
||
16512 |
# Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
|
16513 |
DSYMUTIL=$lt_DSYMUTIL |
|
16514 |
||
16515 |
# Tool to change global to local symbols on Mac OS X. |
|
16516 |
NMEDIT=$lt_NMEDIT |
|
16517 |
||
16518 |
# Tool to manipulate fat objects and archives on Mac OS X. |
|
16519 |
LIPO=$lt_LIPO |
|
16520 |
||
16521 |
# ldd/readelf like tool for Mach-O binaries on Mac OS X. |
|
16522 |
OTOOL=$lt_OTOOL |
|
16523 |
||
16524 |
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
|
16525 |
OTOOL64=$lt_OTOOL64 |
|
16526 |
||
16527 |
# Old archive suffix (normally "a"). |
|
16528 |
libext=$libext |
|
16529 |
||
16530 |
# Shared library suffix (normally ".so"). |
|
16531 |
shrext_cmds=$lt_shrext_cmds |
|
16532 |
||
16533 |
# The commands to extract the exported symbol list from a shared archive. |
|
16534 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
|
16535 |
||
16536 |
# Variables whose values should be saved in libtool wrapper scripts and |
|
16537 |
# restored at link time. |
|
16538 |
variables_saved_for_relink=$lt_variables_saved_for_relink |
|
16539 |
||
16540 |
# Do we need the "lib" prefix for modules? |
|
16541 |
need_lib_prefix=$need_lib_prefix |
|
16542 |
||
16543 |
# Do we need a version for libraries? |
|
16544 |
need_version=$need_version |
|
16545 |
||
16546 |
# Library versioning type. |
|
16547 |
version_type=$version_type |
|
16548 |
||
16549 |
# Shared library runtime path variable. |
|
16550 |
runpath_var=$runpath_var |
|
16551 |
||
16552 |
# Shared library path variable. |
|
16553 |
shlibpath_var=$shlibpath_var |
|
16554 |
||
16555 |
# Is shlibpath searched before the hard-coded library search path? |
|
16556 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
|
16557 |
||
16558 |
# Format of library name prefix. |
|
16559 |
libname_spec=$lt_libname_spec |
|
16560 |
||
16561 |
# List of archive names. First name is the real one, the rest are links. |
|
16562 |
# The last name is the one that the linker finds with -lNAME |
|
16563 |
library_names_spec=$lt_library_names_spec |
|
16564 |
||
16565 |
# The coded name of the library, if different from the real name. |
|
16566 |
soname_spec=$lt_soname_spec |
|
16567 |
||
16568 |
# Command to use after installation of a shared archive. |
|
16569 |
postinstall_cmds=$lt_postinstall_cmds |
|
16570 |
||
16571 |
# Command to use after uninstallation of a shared archive. |
|
16572 |
postuninstall_cmds=$lt_postuninstall_cmds |
|
16573 |
||
16574 |
# Commands used to finish a libtool library installation in a directory. |
|
16575 |
finish_cmds=$lt_finish_cmds |
|
16576 |
||
16577 |
# As "finish_cmds", except a single script fragment to be evaled but |
|
16578 |
# not shown. |
|
16579 |
finish_eval=$lt_finish_eval |
|
16580 |
||
16581 |
# Whether we should hardcode library paths into libraries. |
|
16582 |
hardcode_into_libs=$hardcode_into_libs |
|
16583 |
||
16584 |
# Compile-time system search path for libraries. |
|
16585 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
|
16586 |
||
16587 |
# Run-time system search path for libraries. |
|
16588 |
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
|
16589 |
||
16590 |
# Whether dlopen is supported. |
|
16591 |
dlopen_support=$enable_dlopen |
|
16592 |
||
16593 |
# Whether dlopen of programs is supported. |
|
16594 |
dlopen_self=$enable_dlopen_self |
|
16595 |
||
16596 |
# Whether dlopen of statically linked programs is supported. |
|
16597 |
dlopen_self_static=$enable_dlopen_self_static |
|
16598 |
||
16599 |
# Commands to strip libraries. |
|
16600 |
old_striplib=$lt_old_striplib |
|
16601 |
striplib=$lt_striplib |
|
16602 |
||
16603 |
||
16604 |
# The linker used to build libraries. |
|
16605 |
LD=$lt_LD |
|
16606 |
||
16607 |
# Commands used to build an old-style archive. |
|
16608 |
old_archive_cmds=$lt_old_archive_cmds |
|
16609 |
||
16610 |
# A language specific compiler. |
|
16611 |
CC=$lt_compiler |
|
16612 |
||
16613 |
# Is the compiler the GNU compiler? |
|
16614 |
with_gcc=$GCC |
|
16615 |
||
16616 |
# Compiler flag to turn off builtin functions. |
|
16617 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
|
16618 |
||
16619 |
# How to pass a linker flag through the compiler. |
|
16620 |
wl=$lt_lt_prog_compiler_wl |
|
16621 |
||
16622 |
# Additional compiler flags for building library objects. |
|
16623 |
pic_flag=$lt_lt_prog_compiler_pic |
|
16624 |
||
16625 |
# Compiler flag to prevent dynamic linking. |
|
16626 |
link_static_flag=$lt_lt_prog_compiler_static |
|
16627 |
||
16628 |
# Does compiler simultaneously support -c and -o options? |
|
16629 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
|
16630 |
||
16631 |
# Whether or not to add -lc for building shared libraries. |
|
16632 |
build_libtool_need_lc=$archive_cmds_need_lc |
|
16633 |
||
16634 |
# Whether or not to disallow shared libs when runtime libs are static. |
|
16635 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
|
16636 |
||
16637 |
# Compiler flag to allow reflexive dlopens. |
|
16638 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
|
16639 |
||
16640 |
# Compiler flag to generate shared objects directly from archives. |
|
16641 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
|
16642 |
||
16643 |
# Whether the compiler copes with passing no objects directly. |
|
16644 |
compiler_needs_object=$lt_compiler_needs_object |
|
16645 |
||
16646 |
# Create an old-style archive from a shared archive. |
|
16647 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
|
16648 |
||
16649 |
# Create a temporary old-style archive to link instead of a shared archive. |
|
16650 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
|
16651 |
||
16652 |
# Commands used to build a shared archive. |
|
16653 |
archive_cmds=$lt_archive_cmds |
|
16654 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
|
16655 |
||
16656 |
# Commands used to build a loadable module if different from building |
|
16657 |
# a shared archive. |
|
16658 |
module_cmds=$lt_module_cmds |
|
16659 |
module_expsym_cmds=$lt_module_expsym_cmds |
|
16660 |
||
16661 |
# Whether we are building with GNU ld or not. |
|
16662 |
with_gnu_ld=$lt_with_gnu_ld |
|
16663 |
||
16664 |
# Flag that allows shared libraries with undefined symbols to be built. |
|
16665 |
allow_undefined_flag=$lt_allow_undefined_flag |
|
16666 |
||
16667 |
# Flag that enforces no undefined symbols. |
|
16668 |
no_undefined_flag=$lt_no_undefined_flag |
|
16669 |
||
16670 |
# Flag to hardcode \$libdir into a binary during linking. |
|
16671 |
# This must work even if \$libdir does not exist |
|
16672 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
|
16673 |
||
16674 |
# If ld is used when linking, flag to hardcode \$libdir into a binary |
|
16675 |
# during linking. This must work even if \$libdir does not exist. |
|
16676 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
|
16677 |
||
16678 |
# Whether we need a single "-rpath" flag with a separated argument. |
|
16679 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
|
16680 |
||
16681 |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
|
16682 |
# DIR into the resulting binary. |
|
16683 |
hardcode_direct=$hardcode_direct |
|
16684 |
||
16685 |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
|
16686 |
# DIR into the resulting binary and the resulting library dependency is |
|
16687 |
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
|
16688 |
# library is relocated. |
|
16689 |
hardcode_direct_absolute=$hardcode_direct_absolute |
|
16690 |
||
16691 |
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
|
16692 |
# into the resulting binary. |
|
16693 |
hardcode_minus_L=$hardcode_minus_L |
|
16694 |
||
16695 |
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
|
16696 |
# into the resulting binary. |
|
16697 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
|
16698 |
||
16699 |
# Set to "yes" if building a shared library automatically hardcodes DIR |
|
16700 |
# into the library and all subsequent libraries and executables linked |
|
16701 |
# against it. |
|
16702 |
hardcode_automatic=$hardcode_automatic |
|
16703 |
||
16704 |
# Set to yes if linker adds runtime paths of dependent libraries |
|
16705 |
# to runtime path list. |
|
16706 |
inherit_rpath=$inherit_rpath |
|
16707 |
||
16708 |
# Whether libtool must link a program against all its dependency libraries. |
|
16709 |
link_all_deplibs=$link_all_deplibs |
|
16710 |
||
16711 |
# Fix the shell variable \$srcfile for the compiler. |
|
16712 |
fix_srcfile_path=$lt_fix_srcfile_path |
|
16713 |
||
16714 |
# Set to "yes" if exported symbols are required. |
|
16715 |
always_export_symbols=$always_export_symbols |
|
16716 |
||
16717 |
# The commands to list exported symbols. |
|
16718 |
export_symbols_cmds=$lt_export_symbols_cmds |
|
16719 |
||
16720 |
# Symbols that should not be listed in the preloaded symbols. |
|
16721 |
exclude_expsyms=$lt_exclude_expsyms |
|
16722 |
||
16723 |
# Symbols that must always be exported. |
|
16724 |
include_expsyms=$lt_include_expsyms |
|
16725 |
||
16726 |
# Commands necessary for linking programs (against libraries) with templates. |
|
16727 |
prelink_cmds=$lt_prelink_cmds |
|
16728 |
||
16729 |
# Specify filename containing input files. |
|
16730 |
file_list_spec=$lt_file_list_spec |
|
16731 |
||
16732 |
# How to hardcode a shared library path into an executable. |
|
16733 |
hardcode_action=$hardcode_action |
|
16734 |
||
16735 |
# The directories searched by this compiler when creating a shared library. |
|
16736 |
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
|
16737 |
||
16738 |
# Dependencies to place before and after the objects being linked to |
|
16739 |
# create a shared library. |
|
16740 |
predep_objects=$lt_predep_objects |
|
16741 |
postdep_objects=$lt_postdep_objects |
|
16742 |
predeps=$lt_predeps |
|
16743 |
postdeps=$lt_postdeps |
|
16744 |
||
16745 |
# The library search path used internally by the compiler when linking |
|
16746 |
# a shared library. |
|
16747 |
compiler_lib_search_path=$lt_compiler_lib_search_path |
|
16748 |
||
16749 |
# ### END LIBTOOL CONFIG |
|
16750 |
||
16751 |
_LT_EOF |
|
16752 |
||
16753 |
case $host_os in |
|
16754 |
aix3*) |
|
16755 |
cat <<\_LT_EOF >> "$cfgfile" |
|
16756 |
# AIX sometimes has problems with the GCC collect2 program. For some |
|
16757 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
|
16758 |
# vanish in a puff of smoke. |
|
16759 |
if test "X${COLLECT_NAMES+set}" != Xset; then |
|
16760 |
COLLECT_NAMES= |
|
16761 |
export COLLECT_NAMES |
|
16762 |
fi |
|
16763 |
_LT_EOF |
|
16764 |
;; |
|
16765 |
esac |
|
16766 |
||
16767 |
||
16768 |
ltmain="$ac_aux_dir/ltmain.sh" |
|
16769 |
||
16770 |
||
16771 |
# We use sed instead of cat because bash on DJGPP gets confused if |
|
16772 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
|
16773 |
# text mode, it properly converts lines to CR/LF. This bash problem |
|
16774 |
# is reportedly fixed, but why not run on old versions too? |
|
16775 |
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
|
16776 |
|| (rm -f "$cfgfile"; exit 1) |
|
16777 |
||
16778 |
case $xsi_shell in |
|
16779 |
yes) |
|
16780 |
cat << \_LT_EOF >> "$cfgfile" |
|
16781 |
||
16782 |
# func_dirname file append nondir_replacement |
|
16783 |
# Compute the dirname of FILE. If nonempty, add APPEND to the result, |
|
16784 |
# otherwise set result to NONDIR_REPLACEMENT. |
|
16785 |
func_dirname () |
|
16786 |
{ |
|
16787 |
case ${1} in |
|
16788 |
*/*) func_dirname_result="${1%/*}${2}" ;; |
|
16789 |
* ) func_dirname_result="${3}" ;; |
|
16790 |
esac |
|
16791 |
} |
|
16792 |
||
16793 |
# func_basename file |
|
16794 |
func_basename () |
|
16795 |
{ |
|
16796 |
func_basename_result="${1##*/}" |
|
16797 |
} |
|
16798 |
||
16799 |
# func_dirname_and_basename file append nondir_replacement |
|
16800 |
# perform func_basename and func_dirname in a single function |
|
16801 |
# call: |
|
16802 |
# dirname: Compute the dirname of FILE. If nonempty, |
|
16803 |
# add APPEND to the result, otherwise set result |
|
16804 |
# to NONDIR_REPLACEMENT. |
|
16805 |
# value returned in "$func_dirname_result" |
|
16806 |
# basename: Compute filename of FILE. |
|
16807 |
# value retuned in "$func_basename_result" |
|
16808 |
# Implementation must be kept synchronized with func_dirname |
|
16809 |
# and func_basename. For efficiency, we do not delegate to |
|
16810 |
# those functions but instead duplicate the functionality here. |
|
16811 |
func_dirname_and_basename () |
|
16812 |
{ |
|
16813 |
case ${1} in |
|
16814 |
*/*) func_dirname_result="${1%/*}${2}" ;; |
|
16815 |
* ) func_dirname_result="${3}" ;; |
|
16816 |
esac |
|
16817 |
func_basename_result="${1##*/}" |
|
16818 |
} |
|
16819 |
||
16820 |
# func_stripname prefix suffix name |
|
16821 |
# strip PREFIX and SUFFIX off of NAME. |
|
16822 |
# PREFIX and SUFFIX must not contain globbing or regex special |
|
16823 |
# characters, hashes, percent signs, but SUFFIX may contain a leading |
|
16824 |
# dot (in which case that matches only a dot). |
|
16825 |
func_stripname () |
|
16826 |
{ |
|
16827 |
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
|
16828 |
# positional parameters, so assign one to ordinary parameter first. |
|
16829 |
func_stripname_result=${3} |
|
16830 |
func_stripname_result=${func_stripname_result#"${1}"} |
|
16831 |
func_stripname_result=${func_stripname_result%"${2}"} |
|
16832 |
} |
|
16833 |
||
16834 |
# func_opt_split |
|
16835 |
func_opt_split () |
|
16836 |
{ |
|
16837 |
func_opt_split_opt=${1%%=*} |
|
16838 |
func_opt_split_arg=${1#*=} |
|
16839 |
} |
|
16840 |
||
16841 |
# func_lo2o object |
|
16842 |
func_lo2o () |
|
16843 |
{ |
|
16844 |
case ${1} in |
|
16845 |
*.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
|
16846 |
*) func_lo2o_result=${1} ;; |
|
16847 |
esac |
|
16848 |
} |
|
16849 |
||
16850 |
# func_xform libobj-or-source |
|
16851 |
func_xform () |
|
16852 |
{ |
|
16853 |
func_xform_result=${1%.*}.lo |
|
16854 |
} |
|
16855 |
||
16856 |
# func_arith arithmetic-term... |
|
16857 |
func_arith () |
|
16858 |
{ |
|
16859 |
func_arith_result=$(( $* )) |
|
16860 |
} |
|
16861 |
||
16862 |
# func_len string |
|
16863 |
# STRING may not start with a hyphen. |
|
16864 |
func_len () |
|
16865 |
{ |
|
16866 |
func_len_result=${#1} |
|
16867 |
} |
|
16868 |
||
16869 |
_LT_EOF |
|
16870 |
;; |
|
16871 |
*) # Bourne compatible functions. |
|
16872 |
cat << \_LT_EOF >> "$cfgfile" |
|
16873 |
||
16874 |
# func_dirname file append nondir_replacement |
|
16875 |
# Compute the dirname of FILE. If nonempty, add APPEND to the result, |
|
16876 |
# otherwise set result to NONDIR_REPLACEMENT. |
|
16877 |
func_dirname () |
|
16878 |
{ |
|
16879 |
# Extract subdirectory from the argument. |
|
16880 |
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
|
16881 |
if test "X$func_dirname_result" = "X${1}"; then |
|
16882 |
func_dirname_result="${3}" |
|
16883 |
else |
|
16884 |
func_dirname_result="$func_dirname_result${2}" |
|
16885 |
fi |
|
16886 |
} |
|
16887 |
||
16888 |
# func_basename file |
|
16889 |
func_basename () |
|
16890 |
{ |
|
16891 |
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
|
16892 |
} |
|
16893 |
||
16894 |
||
16895 |
# func_stripname prefix suffix name |
|
16896 |
# strip PREFIX and SUFFIX off of NAME. |
|
16897 |
# PREFIX and SUFFIX must not contain globbing or regex special |
|
16898 |
# characters, hashes, percent signs, but SUFFIX may contain a leading |
|
16899 |
# dot (in which case that matches only a dot). |
|
16900 |
# func_strip_suffix prefix name |
|
16901 |
func_stripname () |
|
16902 |
{ |
|
16903 |
case ${2} in |
|
16904 |
.*) func_stripname_result=`$ECHO "X${3}" \ |
|
16905 |
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
|
16906 |
*) func_stripname_result=`$ECHO "X${3}" \ |
|
16907 |
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
|
16908 |
esac |
|
16909 |
} |
|
16910 |
||
16911 |
# sed scripts: |
|
16912 |
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
|
16913 |
my_sed_long_arg='1s/^-[^=]*=//' |
|
16914 |
||
16915 |
# func_opt_split |
|
16916 |
func_opt_split () |
|
16917 |
{ |
|
16918 |
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
|
16919 |
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
|
16920 |
} |
|
16921 |
||
16922 |
# func_lo2o object |
|
16923 |
func_lo2o () |
|
16924 |
{ |
|
16925 |
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
|
16926 |
} |
|
16927 |
||
16928 |
# func_xform libobj-or-source |
|
16929 |
func_xform () |
|
16930 |
{ |
|
16931 |
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
|
16932 |
} |
|
16933 |
||
16934 |
# func_arith arithmetic-term... |
|
16935 |
func_arith () |
|
16936 |
{ |
|
16937 |
func_arith_result=`expr "$@"` |
|
16938 |
} |
|
16939 |
||
16940 |
# func_len string |
|
16941 |
# STRING may not start with a hyphen. |
|
16942 |
func_len () |
|
16943 |
{ |
|
16944 |
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
|
16945 |
} |
|
16946 |
||
16947 |
_LT_EOF |
|
16948 |
esac |
|
16949 |
||
16950 |
case $lt_shell_append in |
|
16951 |
yes) |
|
16952 |
cat << \_LT_EOF >> "$cfgfile" |
|
16953 |
||
16954 |
# func_append var value |
|
16955 |
# Append VALUE to the end of shell variable VAR. |
|
16956 |
func_append () |
|
16957 |
{ |
|
16958 |
eval "$1+=\$2" |
|
16959 |
} |
|
16960 |
_LT_EOF |
|
16961 |
;; |
|
16962 |
*) |
|
16963 |
cat << \_LT_EOF >> "$cfgfile" |
|
16964 |
||
16965 |
# func_append var value |
|
16966 |
# Append VALUE to the end of shell variable VAR. |
|
16967 |
func_append () |
|
16968 |
{ |
|
16969 |
eval "$1=\$$1\$2" |
|
16970 |
} |
|
16971 |
||
16972 |
_LT_EOF |
|
16973 |
;; |
|
16974 |
esac |
|
16975 |
||
16976 |
||
16977 |
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
|
16978 |
|| (rm -f "$cfgfile"; exit 1) |
|
16979 |
||
16980 |
mv -f "$cfgfile" "$ofile" || |
|
16981 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
|
16982 |
chmod +x "$ofile" |
|
16983 |
||
16984 |
||
16985 |
cat <<_LT_EOF >> "$ofile" |
|
16986 |
||
16987 |
# ### BEGIN LIBTOOL TAG CONFIG: CXX |
|
16988 |
||
16989 |
# The linker used to build libraries. |
|
16990 |
LD=$lt_LD_CXX |
|
16991 |
||
16992 |
# Commands used to build an old-style archive. |
|
16993 |
old_archive_cmds=$lt_old_archive_cmds_CXX |
|
16994 |
||
16995 |
# A language specific compiler. |
|
16996 |
CC=$lt_compiler_CXX |
|
16997 |
||
16998 |
# Is the compiler the GNU compiler? |
|
16999 |
with_gcc=$GCC_CXX |
|
17000 |
||
17001 |
# Compiler flag to turn off builtin functions. |
|
17002 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
|
17003 |
||
17004 |
# How to pass a linker flag through the compiler. |
|
17005 |
wl=$lt_lt_prog_compiler_wl_CXX |
|
17006 |
||
17007 |
# Additional compiler flags for building library objects. |
|
17008 |
pic_flag=$lt_lt_prog_compiler_pic_CXX |
|
17009 |
||
17010 |
# Compiler flag to prevent dynamic linking. |
|
17011 |
link_static_flag=$lt_lt_prog_compiler_static_CXX |
|
17012 |
||
17013 |
# Does compiler simultaneously support -c and -o options? |
|
17014 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
|
17015 |
||
17016 |
# Whether or not to add -lc for building shared libraries. |
|
17017 |
build_libtool_need_lc=$archive_cmds_need_lc_CXX |
|
17018 |
||
17019 |
# Whether or not to disallow shared libs when runtime libs are static. |
|
17020 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
|
17021 |
||
17022 |
# Compiler flag to allow reflexive dlopens. |
|
17023 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
|
17024 |
||
17025 |
# Compiler flag to generate shared objects directly from archives. |
|
17026 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
|
17027 |
||
17028 |
# Whether the compiler copes with passing no objects directly. |
|
17029 |
compiler_needs_object=$lt_compiler_needs_object_CXX |
|
17030 |
||
17031 |
# Create an old-style archive from a shared archive. |
|
17032 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
|
17033 |
||
17034 |
# Create a temporary old-style archive to link instead of a shared archive. |
|
17035 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
|
17036 |
||
17037 |
# Commands used to build a shared archive. |
|
17038 |
archive_cmds=$lt_archive_cmds_CXX |
|
17039 |
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
|
17040 |
||
17041 |
# Commands used to build a loadable module if different from building |
|
17042 |
# a shared archive. |
|
17043 |
module_cmds=$lt_module_cmds_CXX |
|
17044 |
module_expsym_cmds=$lt_module_expsym_cmds_CXX |
|
17045 |
||
17046 |
# Whether we are building with GNU ld or not. |
|
17047 |
with_gnu_ld=$lt_with_gnu_ld_CXX |
|
17048 |
||
17049 |
# Flag that allows shared libraries with undefined symbols to be built. |
|
17050 |
allow_undefined_flag=$lt_allow_undefined_flag_CXX |
|
17051 |
||
17052 |
# Flag that enforces no undefined symbols. |
|
17053 |
no_undefined_flag=$lt_no_undefined_flag_CXX |
|
17054 |
||
17055 |
# Flag to hardcode \$libdir into a binary during linking. |
|
17056 |
# This must work even if \$libdir does not exist |
|
17057 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
|
17058 |
||
17059 |
# If ld is used when linking, flag to hardcode \$libdir into a binary |
|
17060 |
# during linking. This must work even if \$libdir does not exist. |
|
17061 |
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
|
17062 |
||
17063 |
# Whether we need a single "-rpath" flag with a separated argument. |
|
17064 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
|
17065 |
||
17066 |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
|
17067 |
# DIR into the resulting binary. |
|
17068 |
hardcode_direct=$hardcode_direct_CXX |
|
17069 |
||
17070 |
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
|
17071 |
# DIR into the resulting binary and the resulting library dependency is |
|
17072 |
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
|
17073 |
# library is relocated. |
|
17074 |
hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
|
17075 |
||
17076 |
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
|
17077 |
# into the resulting binary. |
|
17078 |
hardcode_minus_L=$hardcode_minus_L_CXX |
|
17079 |
||
17080 |
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
|
17081 |
# into the resulting binary. |
|
17082 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
|
17083 |
||
17084 |
# Set to "yes" if building a shared library automatically hardcodes DIR |
|
17085 |
# into the library and all subsequent libraries and executables linked |
|
17086 |
# against it. |
|
17087 |
hardcode_automatic=$hardcode_automatic_CXX |
|
17088 |
||
17089 |
# Set to yes if linker adds runtime paths of dependent libraries |
|
17090 |
# to runtime path list. |
|
17091 |
inherit_rpath=$inherit_rpath_CXX |
|
17092 |
||
17093 |
# Whether libtool must link a program against all its dependency libraries. |
|
17094 |
link_all_deplibs=$link_all_deplibs_CXX |
|
17095 |
||
17096 |
# Fix the shell variable \$srcfile for the compiler. |
|
17097 |
fix_srcfile_path=$lt_fix_srcfile_path_CXX |
|
17098 |
||
17099 |
# Set to "yes" if exported symbols are required. |
|
17100 |
always_export_symbols=$always_export_symbols_CXX |
|
17101 |
||
17102 |
# The commands to list exported symbols. |
|
17103 |
export_symbols_cmds=$lt_export_symbols_cmds_CXX |
|
17104 |
||
17105 |
# Symbols that should not be listed in the preloaded symbols. |
|
17106 |
exclude_expsyms=$lt_exclude_expsyms_CXX |
|
17107 |
||
17108 |
# Symbols that must always be exported. |
|
17109 |
include_expsyms=$lt_include_expsyms_CXX |
|
17110 |
||
17111 |
# Commands necessary for linking programs (against libraries) with templates. |
|
17112 |
prelink_cmds=$lt_prelink_cmds_CXX |
|
17113 |
||
17114 |
# Specify filename containing input files. |
|
17115 |
file_list_spec=$lt_file_list_spec_CXX |
|
17116 |
||
17117 |
# How to hardcode a shared library path into an executable. |
|
17118 |
hardcode_action=$hardcode_action_CXX |
|
17119 |
||
17120 |
# The directories searched by this compiler when creating a shared library. |
|
17121 |
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
|
17122 |
||
17123 |
# Dependencies to place before and after the objects being linked to |
|
17124 |
# create a shared library. |
|
17125 |
predep_objects=$lt_predep_objects_CXX |
|
17126 |
postdep_objects=$lt_postdep_objects_CXX |
|
17127 |
predeps=$lt_predeps_CXX |
|
17128 |
postdeps=$lt_postdeps_CXX |
|
17129 |
||
17130 |
# The library search path used internally by the compiler when linking |
|
17131 |
# a shared library. |
|
17132 |
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
|
17133 |
||
17134 |
# ### END LIBTOOL TAG CONFIG: CXX |
|
17135 |
_LT_EOF |
|
17136 |
||
17137 |
;; |
|
17138 |
||
17139 |
esac |
|
17140 |
done # for ac_tag |
|
17141 |
||
17142 |
||
17143 |
as_fn_exit 0 |
|
17144 |
_ACEOF |
|
17145 |
ac_clean_files=$ac_clean_files_save |
|
17146 |
||
17147 |
test $ac_write_fail = 0 || |
|
17148 |
as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
|
17149 |
||
17150 |
||
17151 |
# configure is writing to config.log, and then calls config.status. |
|
17152 |
# config.status does its own redirection, appending to config.log. |
|
17153 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
|
17154 |
# by configure, so config.status won't be able to write to it; its |
|
17155 |
# output is simply discarded. So we exec the FD to /dev/null, |
|
17156 |
# effectively closing config.log, so it can be properly (re)opened and |
|
17157 |
# appended to by config.status. When coming back to configure, we |
|
17158 |
# need to make the FD available again. |
|
17159 |
if test "$no_create" != yes; then |
|
17160 |
ac_cs_success=: |
|
17161 |
ac_config_status_args= |
|
17162 |
test "$silent" = yes && |
|
17163 |
ac_config_status_args="$ac_config_status_args --quiet" |
|
17164 |
exec 5>/dev/null |
|
17165 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
|
17166 |
exec 5>>config.log |
|
17167 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
|
17168 |
# would make configure fail if this is the last instruction. |
|
17169 |
$ac_cs_success || as_fn_exit $? |
|
17170 |
fi |
|
17171 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
|
17172 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
|
17173 |
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
|
17174 |
fi |
|
17175 |