1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.68 for dspam 3.10.2. |
---|
4 | # |
---|
5 | # Report bugs to <dspam-devel@lists.sourceforge.net>. |
---|
6 | # |
---|
7 | # Copyright (C) 2002-2012 DSPAM Project |
---|
8 | # |
---|
9 | # |
---|
10 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
11 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
---|
12 | # Foundation, Inc. |
---|
13 | # |
---|
14 | # |
---|
15 | # This configure script is free software; the Free Software Foundation |
---|
16 | # gives unlimited permission to copy, distribute and modify it. |
---|
17 | ## -------------------- ## |
---|
18 | ## M4sh Initialization. ## |
---|
19 | ## -------------------- ## |
---|
20 | |
---|
21 | # Be more Bourne compatible |
---|
22 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
23 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
24 | emulate sh |
---|
25 | NULLCMD=: |
---|
26 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
27 | # is contrary to our usage. Disable this feature. |
---|
28 | alias -g '${1+"$@"}'='"$@"' |
---|
29 | setopt NO_GLOB_SUBST |
---|
30 | else |
---|
31 | case `(set -o) 2>/dev/null` in #( |
---|
32 | *posix*) : |
---|
33 | set -o posix ;; #( |
---|
34 | *) : |
---|
35 | ;; |
---|
36 | esac |
---|
37 | fi |
---|
38 | |
---|
39 | |
---|
40 | as_nl=' |
---|
41 | ' |
---|
42 | export as_nl |
---|
43 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
44 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
46 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
47 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
48 | # but without wasting forks for bash or zsh. |
---|
49 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
50 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
51 | as_echo='print -r --' |
---|
52 | as_echo_n='print -rn --' |
---|
53 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
54 | as_echo='printf %s\n' |
---|
55 | as_echo_n='printf %s' |
---|
56 | else |
---|
57 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
58 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
59 | as_echo_n='/usr/ucb/echo -n' |
---|
60 | else |
---|
61 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
62 | as_echo_n_body='eval |
---|
63 | arg=$1; |
---|
64 | case $arg in #( |
---|
65 | *"$as_nl"*) |
---|
66 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
67 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
68 | esac; |
---|
69 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
70 | ' |
---|
71 | export as_echo_n_body |
---|
72 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
73 | fi |
---|
74 | export as_echo_body |
---|
75 | as_echo='sh -c $as_echo_body as_echo' |
---|
76 | fi |
---|
77 | |
---|
78 | # The user is always right. |
---|
79 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
80 | PATH_SEPARATOR=: |
---|
81 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
82 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
83 | PATH_SEPARATOR=';' |
---|
84 | } |
---|
85 | fi |
---|
86 | |
---|
87 | |
---|
88 | # IFS |
---|
89 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
90 | # there to prevent editors from complaining about space-tab. |
---|
91 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
92 | # splitting by setting IFS to empty value.) |
---|
93 | IFS=" "" $as_nl" |
---|
94 | |
---|
95 | # Find who we are. Look in the path if we contain no directory separator. |
---|
96 | as_myself= |
---|
97 | case $0 in #(( |
---|
98 | *[\\/]* ) as_myself=$0 ;; |
---|
99 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
100 | for as_dir in $PATH |
---|
101 | do |
---|
102 | IFS=$as_save_IFS |
---|
103 | test -z "$as_dir" && as_dir=. |
---|
104 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
105 | done |
---|
106 | IFS=$as_save_IFS |
---|
107 | |
---|
108 | ;; |
---|
109 | esac |
---|
110 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
111 | # in which case we are not to be found in the path. |
---|
112 | if test "x$as_myself" = x; then |
---|
113 | as_myself=$0 |
---|
114 | fi |
---|
115 | if test ! -f "$as_myself"; then |
---|
116 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
117 | exit 1 |
---|
118 | fi |
---|
119 | |
---|
120 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
121 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
122 | # suppresses any "Segmentation fault" message there. '((' could |
---|
123 | # trigger a bug in pdksh 5.2.14. |
---|
124 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
125 | do eval test x\${$as_var+set} = xset \ |
---|
126 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
127 | done |
---|
128 | PS1='$ ' |
---|
129 | PS2='> ' |
---|
130 | PS4='+ ' |
---|
131 | |
---|
132 | # NLS nuisances. |
---|
133 | LC_ALL=C |
---|
134 | export LC_ALL |
---|
135 | LANGUAGE=C |
---|
136 | export LANGUAGE |
---|
137 | |
---|
138 | # CDPATH. |
---|
139 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
140 | |
---|
141 | if test "x$CONFIG_SHELL" = x; then |
---|
142 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
---|
143 | emulate sh |
---|
144 | NULLCMD=: |
---|
145 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
146 | # is contrary to our usage. Disable this feature. |
---|
147 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
148 | setopt NO_GLOB_SUBST |
---|
149 | else |
---|
150 | case \`(set -o) 2>/dev/null\` in #( |
---|
151 | *posix*) : |
---|
152 | set -o posix ;; #( |
---|
153 | *) : |
---|
154 | ;; |
---|
155 | esac |
---|
156 | fi |
---|
157 | " |
---|
158 | as_required="as_fn_return () { (exit \$1); } |
---|
159 | as_fn_success () { as_fn_return 0; } |
---|
160 | as_fn_failure () { as_fn_return 1; } |
---|
161 | as_fn_ret_success () { return 0; } |
---|
162 | as_fn_ret_failure () { return 1; } |
---|
163 | |
---|
164 | exitcode=0 |
---|
165 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
166 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
167 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
168 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
169 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
---|
170 | |
---|
171 | else |
---|
172 | exitcode=1; echo positional parameters were not saved. |
---|
173 | fi |
---|
174 | test x\$exitcode = x0 || exit 1" |
---|
175 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
176 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
177 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
178 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
179 | |
---|
180 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
---|
181 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
182 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
---|
183 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
---|
184 | PATH=/empty FPATH=/empty; export PATH FPATH |
---|
185 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
---|
186 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 |
---|
187 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
188 | if (eval "$as_required") 2>/dev/null; then : |
---|
189 | as_have_required=yes |
---|
190 | else |
---|
191 | as_have_required=no |
---|
192 | fi |
---|
193 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
194 | |
---|
195 | else |
---|
196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
197 | as_found=false |
---|
198 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
199 | do |
---|
200 | IFS=$as_save_IFS |
---|
201 | test -z "$as_dir" && as_dir=. |
---|
202 | as_found=: |
---|
203 | case $as_dir in #( |
---|
204 | /*) |
---|
205 | for as_base in sh bash ksh sh5; do |
---|
206 | # Try only shells that exist, to save several forks. |
---|
207 | as_shell=$as_dir/$as_base |
---|
208 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
210 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
211 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
212 | break 2 |
---|
213 | fi |
---|
214 | fi |
---|
215 | done;; |
---|
216 | esac |
---|
217 | as_found=false |
---|
218 | done |
---|
219 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
220 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
221 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
222 | fi; } |
---|
223 | IFS=$as_save_IFS |
---|
224 | |
---|
225 | |
---|
226 | if test "x$CONFIG_SHELL" != x; then : |
---|
227 | # We cannot yet assume a decent shell, so we have to provide a |
---|
228 | # neutralization value for shells without unset; and this also |
---|
229 | # works around shells that cannot unset nonexistent variables. |
---|
230 | # Preserve -v and -x to the replacement shell. |
---|
231 | BASH_ENV=/dev/null |
---|
232 | ENV=/dev/null |
---|
233 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
234 | export CONFIG_SHELL |
---|
235 | case $- in # (((( |
---|
236 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
237 | *v* ) as_opts=-v ;; |
---|
238 | *x* ) as_opts=-x ;; |
---|
239 | * ) as_opts= ;; |
---|
240 | esac |
---|
241 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
---|
242 | fi |
---|
243 | |
---|
244 | if test x$as_have_required = xno; then : |
---|
245 | $as_echo "$0: This script requires a shell more modern than all" |
---|
246 | $as_echo "$0: the shells that I found on your system." |
---|
247 | if test x${ZSH_VERSION+set} = xset ; then |
---|
248 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
249 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
250 | else |
---|
251 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
---|
252 | $0: dspam-devel@lists.sourceforge.net about your system, |
---|
253 | $0: including any error possibly output before this |
---|
254 | $0: message. Then install a modern shell, or manually run |
---|
255 | $0: the script under such a shell if you do have one." |
---|
256 | fi |
---|
257 | exit 1 |
---|
258 | fi |
---|
259 | fi |
---|
260 | fi |
---|
261 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
262 | export SHELL |
---|
263 | # Unset more variables known to interfere with behavior of common tools. |
---|
264 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
265 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
266 | |
---|
267 | ## --------------------- ## |
---|
268 | ## M4sh Shell Functions. ## |
---|
269 | ## --------------------- ## |
---|
270 | # as_fn_unset VAR |
---|
271 | # --------------- |
---|
272 | # Portably unset VAR. |
---|
273 | as_fn_unset () |
---|
274 | { |
---|
275 | { eval $1=; unset $1;} |
---|
276 | } |
---|
277 | as_unset=as_fn_unset |
---|
278 | |
---|
279 | # as_fn_set_status STATUS |
---|
280 | # ----------------------- |
---|
281 | # Set $? to STATUS, without forking. |
---|
282 | as_fn_set_status () |
---|
283 | { |
---|
284 | return $1 |
---|
285 | } # as_fn_set_status |
---|
286 | |
---|
287 | # as_fn_exit STATUS |
---|
288 | # ----------------- |
---|
289 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
290 | as_fn_exit () |
---|
291 | { |
---|
292 | set +e |
---|
293 | as_fn_set_status $1 |
---|
294 | exit $1 |
---|
295 | } # as_fn_exit |
---|
296 | |
---|
297 | # as_fn_mkdir_p |
---|
298 | # ------------- |
---|
299 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
300 | as_fn_mkdir_p () |
---|
301 | { |
---|
302 | |
---|
303 | case $as_dir in #( |
---|
304 | -*) as_dir=./$as_dir;; |
---|
305 | esac |
---|
306 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
307 | as_dirs= |
---|
308 | while :; do |
---|
309 | case $as_dir in #( |
---|
310 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
311 | *) as_qdir=$as_dir;; |
---|
312 | esac |
---|
313 | as_dirs="'$as_qdir' $as_dirs" |
---|
314 | as_dir=`$as_dirname -- "$as_dir" || |
---|
315 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
316 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
317 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
318 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
319 | $as_echo X"$as_dir" | |
---|
320 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
321 | s//\1/ |
---|
322 | q |
---|
323 | } |
---|
324 | /^X\(\/\/\)[^/].*/{ |
---|
325 | s//\1/ |
---|
326 | q |
---|
327 | } |
---|
328 | /^X\(\/\/\)$/{ |
---|
329 | s//\1/ |
---|
330 | q |
---|
331 | } |
---|
332 | /^X\(\/\).*/{ |
---|
333 | s//\1/ |
---|
334 | q |
---|
335 | } |
---|
336 | s/.*/./; q'` |
---|
337 | test -d "$as_dir" && break |
---|
338 | done |
---|
339 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
340 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
341 | |
---|
342 | |
---|
343 | } # as_fn_mkdir_p |
---|
344 | # as_fn_append VAR VALUE |
---|
345 | # ---------------------- |
---|
346 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
347 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
348 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
349 | # implementations. |
---|
350 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
351 | eval 'as_fn_append () |
---|
352 | { |
---|
353 | eval $1+=\$2 |
---|
354 | }' |
---|
355 | else |
---|
356 | as_fn_append () |
---|
357 | { |
---|
358 | eval $1=\$$1\$2 |
---|
359 | } |
---|
360 | fi # as_fn_append |
---|
361 | |
---|
362 | # as_fn_arith ARG... |
---|
363 | # ------------------ |
---|
364 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
365 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
366 | # must be portable across $(()) and expr. |
---|
367 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
368 | eval 'as_fn_arith () |
---|
369 | { |
---|
370 | as_val=$(( $* )) |
---|
371 | }' |
---|
372 | else |
---|
373 | as_fn_arith () |
---|
374 | { |
---|
375 | as_val=`expr "$@" || test $? -eq 1` |
---|
376 | } |
---|
377 | fi # as_fn_arith |
---|
378 | |
---|
379 | |
---|
380 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
381 | # ---------------------------------------- |
---|
382 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
383 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
384 | # script with STATUS, using 1 if that was 0. |
---|
385 | as_fn_error () |
---|
386 | { |
---|
387 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
388 | if test "$4"; then |
---|
389 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
390 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
391 | fi |
---|
392 | $as_echo "$as_me: error: $2" >&2 |
---|
393 | as_fn_exit $as_status |
---|
394 | } # as_fn_error |
---|
395 | |
---|
396 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
397 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
398 | as_expr=expr |
---|
399 | else |
---|
400 | as_expr=false |
---|
401 | fi |
---|
402 | |
---|
403 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
404 | as_basename=basename |
---|
405 | else |
---|
406 | as_basename=false |
---|
407 | fi |
---|
408 | |
---|
409 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
410 | as_dirname=dirname |
---|
411 | else |
---|
412 | as_dirname=false |
---|
413 | fi |
---|
414 | |
---|
415 | as_me=`$as_basename -- "$0" || |
---|
416 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
417 | X"$0" : 'X\(//\)$' \| \ |
---|
418 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
419 | $as_echo X/"$0" | |
---|
420 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
421 | s//\1/ |
---|
422 | q |
---|
423 | } |
---|
424 | /^X\/\(\/\/\)$/{ |
---|
425 | s//\1/ |
---|
426 | q |
---|
427 | } |
---|
428 | /^X\/\(\/\).*/{ |
---|
429 | s//\1/ |
---|
430 | q |
---|
431 | } |
---|
432 | s/.*/./; q'` |
---|
433 | |
---|
434 | # Avoid depending upon Character Ranges. |
---|
435 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
436 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
437 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
438 | as_cr_digits='0123456789' |
---|
439 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
440 | |
---|
441 | |
---|
442 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
443 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
444 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
445 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
446 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
447 | sed -n ' |
---|
448 | p |
---|
449 | /[$]LINENO/= |
---|
450 | ' <$as_myself | |
---|
451 | sed ' |
---|
452 | s/[$]LINENO.*/&-/ |
---|
453 | t lineno |
---|
454 | b |
---|
455 | :lineno |
---|
456 | N |
---|
457 | :loop |
---|
458 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
459 | t loop |
---|
460 | s/-\n.*// |
---|
461 | ' >$as_me.lineno && |
---|
462 | chmod +x "$as_me.lineno" || |
---|
463 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
464 | |
---|
465 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
466 | # (the dirname of $[0] is not the place where we might find the |
---|
467 | # original and so on. Autoconf is especially sensitive to this). |
---|
468 | . "./$as_me.lineno" |
---|
469 | # Exit status is that of the last command. |
---|
470 | exit |
---|
471 | } |
---|
472 | |
---|
473 | ECHO_C= ECHO_N= ECHO_T= |
---|
474 | case `echo -n x` in #((((( |
---|
475 | -n*) |
---|
476 | case `echo 'xy\c'` in |
---|
477 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
478 | xy) ECHO_C='\c';; |
---|
479 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
480 | ECHO_T=' ';; |
---|
481 | esac;; |
---|
482 | *) |
---|
483 | ECHO_N='-n';; |
---|
484 | esac |
---|
485 | |
---|
486 | rm -f conf$$ conf$$.exe conf$$.file |
---|
487 | if test -d conf$$.dir; then |
---|
488 | rm -f conf$$.dir/conf$$.file |
---|
489 | else |
---|
490 | rm -f conf$$.dir |
---|
491 | mkdir conf$$.dir 2>/dev/null |
---|
492 | fi |
---|
493 | if (echo >conf$$.file) 2>/dev/null; then |
---|
494 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
495 | as_ln_s='ln -s' |
---|
496 | # ... but there are two gotchas: |
---|
497 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
498 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
499 | # In both cases, we have to default to `cp -p'. |
---|
500 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
501 | as_ln_s='cp -p' |
---|
502 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
503 | as_ln_s=ln |
---|
504 | else |
---|
505 | as_ln_s='cp -p' |
---|
506 | fi |
---|
507 | else |
---|
508 | as_ln_s='cp -p' |
---|
509 | fi |
---|
510 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
511 | rmdir conf$$.dir 2>/dev/null |
---|
512 | |
---|
513 | if mkdir -p . 2>/dev/null; then |
---|
514 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
515 | else |
---|
516 | test -d ./-p && rmdir ./-p |
---|
517 | as_mkdir_p=false |
---|
518 | fi |
---|
519 | |
---|
520 | if test -x / >/dev/null 2>&1; then |
---|
521 | as_test_x='test -x' |
---|
522 | else |
---|
523 | if ls -dL / >/dev/null 2>&1; then |
---|
524 | as_ls_L_option=L |
---|
525 | else |
---|
526 | as_ls_L_option= |
---|
527 | fi |
---|
528 | as_test_x=' |
---|
529 | eval sh -c '\'' |
---|
530 | if test -d "$1"; then |
---|
531 | test -d "$1/."; |
---|
532 | else |
---|
533 | case $1 in #( |
---|
534 | -*)set "./$1";; |
---|
535 | esac; |
---|
536 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
537 | ???[sx]*):;;*)false;;esac;fi |
---|
538 | '\'' sh |
---|
539 | ' |
---|
540 | fi |
---|
541 | as_executable_p=$as_test_x |
---|
542 | |
---|
543 | # Sed expression to map a string onto a valid CPP name. |
---|
544 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
545 | |
---|
546 | # Sed expression to map a string onto a valid variable name. |
---|
547 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
548 | |
---|
549 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
550 | |
---|
551 | |
---|
552 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
553 | exec 6>&1 |
---|
554 | |
---|
555 | # Name of the host. |
---|
556 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
557 | # so uname gets run too. |
---|
558 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
559 | |
---|
560 | # |
---|
561 | # Initializations. |
---|
562 | # |
---|
563 | ac_default_prefix=/usr/local |
---|
564 | ac_clean_files= |
---|
565 | ac_config_libobj_dir=. |
---|
566 | LIBOBJS= |
---|
567 | cross_compiling=no |
---|
568 | subdirs= |
---|
569 | MFLAGS= |
---|
570 | MAKEFLAGS= |
---|
571 | |
---|
572 | # Identity of this package. |
---|
573 | PACKAGE_NAME='dspam' |
---|
574 | PACKAGE_TARNAME='dspam' |
---|
575 | PACKAGE_VERSION='3.10.2' |
---|
576 | PACKAGE_STRING='dspam 3.10.2' |
---|
577 | PACKAGE_BUGREPORT='dspam-devel@lists.sourceforge.net' |
---|
578 | PACKAGE_URL='' |
---|
579 | |
---|
580 | ac_unique_file="./src" |
---|
581 | # Factoring default headers for most tests. |
---|
582 | ac_includes_default="\ |
---|
583 | #include <stdio.h> |
---|
584 | #ifdef HAVE_SYS_TYPES_H |
---|
585 | # include <sys/types.h> |
---|
586 | #endif |
---|
587 | #ifdef HAVE_SYS_STAT_H |
---|
588 | # include <sys/stat.h> |
---|
589 | #endif |
---|
590 | #ifdef STDC_HEADERS |
---|
591 | # include <stdlib.h> |
---|
592 | # include <stddef.h> |
---|
593 | #else |
---|
594 | # ifdef HAVE_STDLIB_H |
---|
595 | # include <stdlib.h> |
---|
596 | # endif |
---|
597 | #endif |
---|
598 | #ifdef HAVE_STRING_H |
---|
599 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
600 | # include <memory.h> |
---|
601 | # endif |
---|
602 | # include <string.h> |
---|
603 | #endif |
---|
604 | #ifdef HAVE_STRINGS_H |
---|
605 | # include <strings.h> |
---|
606 | #endif |
---|
607 | #ifdef HAVE_INTTYPES_H |
---|
608 | # include <inttypes.h> |
---|
609 | #endif |
---|
610 | #ifdef HAVE_STDINT_H |
---|
611 | # include <stdint.h> |
---|
612 | #endif |
---|
613 | #ifdef HAVE_UNISTD_H |
---|
614 | # include <unistd.h> |
---|
615 | #endif" |
---|
616 | |
---|
617 | ac_subst_vars='am__EXEEXT_FALSE |
---|
618 | am__EXEEXT_TRUE |
---|
619 | LTLIBOBJS |
---|
620 | LIBOBJS |
---|
621 | storage_drv_subdirs |
---|
622 | BUILD_EXT_LOOKUP_FALSE |
---|
623 | BUILD_EXT_LOOKUP_TRUE |
---|
624 | DYNAMIC_DRIVER_FALSE |
---|
625 | DYNAMIC_DRIVER_TRUE |
---|
626 | STATIC_DRIVER_FALSE |
---|
627 | STATIC_DRIVER_TRUE |
---|
628 | BUILD_PGSQL_DRV_FALSE |
---|
629 | BUILD_PGSQL_DRV_TRUE |
---|
630 | BUILD_MYSQL_DRV_FALSE |
---|
631 | BUILD_MYSQL_DRV_TRUE |
---|
632 | BUILD_SQLITE3_DRV_FALSE |
---|
633 | BUILD_SQLITE3_DRV_TRUE |
---|
634 | BUILD_SQLITE_DRV_FALSE |
---|
635 | BUILD_SQLITE_DRV_TRUE |
---|
636 | BUILD_HASH_DRV_FALSE |
---|
637 | BUILD_HASH_DRV_TRUE |
---|
638 | BUILD_DB3_DRV_FALSE |
---|
639 | BUILD_DB3_DRV_TRUE |
---|
640 | BUILD_DB4_DRV_FALSE |
---|
641 | BUILD_DB4_DRV_TRUE |
---|
642 | libsqlite3_drv_ldflags |
---|
643 | libsqlite3_drv_libs |
---|
644 | libsqlite3_drv_cppflags |
---|
645 | libsqlite_drv_ldflags |
---|
646 | libsqlite_drv_libs |
---|
647 | libsqlite_drv_cppflags |
---|
648 | libpgsql_drv_ldflags |
---|
649 | libpgsql_drv_libs |
---|
650 | libpgsql_drv_cppflags |
---|
651 | pgsql_pg_config |
---|
652 | libmysql_drv_ldflags |
---|
653 | libmysql_drv_libs |
---|
654 | libmysql_drv_cppflags |
---|
655 | active_driver |
---|
656 | logdir |
---|
657 | delivery_agent |
---|
658 | dspam_group |
---|
659 | dspam_owner |
---|
660 | dspam_mode |
---|
661 | dspam_home_group |
---|
662 | dspam_home_owner |
---|
663 | dspam_home_mode |
---|
664 | dspam_home |
---|
665 | external_lookup_libs |
---|
666 | DLLIBS |
---|
667 | NETLIBS |
---|
668 | CPP |
---|
669 | OTOOL64 |
---|
670 | OTOOL |
---|
671 | LIPO |
---|
672 | NMEDIT |
---|
673 | DSYMUTIL |
---|
674 | MANIFEST_TOOL |
---|
675 | RANLIB |
---|
676 | ac_ct_AR |
---|
677 | AR |
---|
678 | DLLTOOL |
---|
679 | OBJDUMP |
---|
680 | LN_S |
---|
681 | NM |
---|
682 | ac_ct_DUMPBIN |
---|
683 | DUMPBIN |
---|
684 | LD |
---|
685 | FGREP |
---|
686 | EGREP |
---|
687 | GREP |
---|
688 | SED |
---|
689 | LIBTOOL |
---|
690 | am__fastdepCC_FALSE |
---|
691 | am__fastdepCC_TRUE |
---|
692 | CCDEPMODE |
---|
693 | AMDEPBACKSLASH |
---|
694 | AMDEP_FALSE |
---|
695 | AMDEP_TRUE |
---|
696 | am__quote |
---|
697 | am__include |
---|
698 | DEPDIR |
---|
699 | OBJEXT |
---|
700 | EXEEXT |
---|
701 | ac_ct_CC |
---|
702 | CPPFLAGS |
---|
703 | LDFLAGS |
---|
704 | CFLAGS |
---|
705 | CC |
---|
706 | host_os |
---|
707 | host_vendor |
---|
708 | host_cpu |
---|
709 | host |
---|
710 | build_os |
---|
711 | build_vendor |
---|
712 | build_cpu |
---|
713 | build |
---|
714 | am__untar |
---|
715 | am__tar |
---|
716 | AMTAR |
---|
717 | am__leading_dot |
---|
718 | SET_MAKE |
---|
719 | AWK |
---|
720 | mkdir_p |
---|
721 | MKDIR_P |
---|
722 | INSTALL_STRIP_PROGRAM |
---|
723 | STRIP |
---|
724 | install_sh |
---|
725 | MAKEINFO |
---|
726 | AUTOHEADER |
---|
727 | AUTOMAKE |
---|
728 | AUTOCONF |
---|
729 | ACLOCAL |
---|
730 | VERSION |
---|
731 | PACKAGE |
---|
732 | CYGPATH_W |
---|
733 | am__isrc |
---|
734 | INSTALL_DATA |
---|
735 | INSTALL_SCRIPT |
---|
736 | INSTALL_PROGRAM |
---|
737 | target_alias |
---|
738 | host_alias |
---|
739 | build_alias |
---|
740 | LIBS |
---|
741 | ECHO_T |
---|
742 | ECHO_N |
---|
743 | ECHO_C |
---|
744 | DEFS |
---|
745 | mandir |
---|
746 | localedir |
---|
747 | libdir |
---|
748 | psdir |
---|
749 | pdfdir |
---|
750 | dvidir |
---|
751 | htmldir |
---|
752 | infodir |
---|
753 | docdir |
---|
754 | oldincludedir |
---|
755 | includedir |
---|
756 | localstatedir |
---|
757 | sharedstatedir |
---|
758 | sysconfdir |
---|
759 | datadir |
---|
760 | datarootdir |
---|
761 | libexecdir |
---|
762 | sbindir |
---|
763 | bindir |
---|
764 | program_transform_name |
---|
765 | prefix |
---|
766 | exec_prefix |
---|
767 | PACKAGE_URL |
---|
768 | PACKAGE_BUGREPORT |
---|
769 | PACKAGE_STRING |
---|
770 | PACKAGE_VERSION |
---|
771 | PACKAGE_TARNAME |
---|
772 | PACKAGE_NAME |
---|
773 | PATH_SEPARATOR |
---|
774 | SHELL' |
---|
775 | ac_subst_files='' |
---|
776 | ac_user_opts=' |
---|
777 | enable_option_checking |
---|
778 | enable_dependency_tracking |
---|
779 | enable_shared |
---|
780 | enable_static |
---|
781 | with_pic |
---|
782 | enable_fast_install |
---|
783 | with_gnu_ld |
---|
784 | with_sysroot |
---|
785 | enable_libtool_lock |
---|
786 | enable_daemon |
---|
787 | enable_split_configuration |
---|
788 | enable_external_lookup |
---|
789 | with_dspam_home |
---|
790 | with_dspam_home_mode |
---|
791 | with_dspam_home_owner |
---|
792 | with_dspam_home_group |
---|
793 | with_logfile |
---|
794 | with_dspam_mode |
---|
795 | with_dspam_owner |
---|
796 | with_dspam_group |
---|
797 | with_delivery_agent |
---|
798 | enable_trusted_user_security |
---|
799 | enable_clamav |
---|
800 | enable_debug |
---|
801 | enable_syslog |
---|
802 | enable_bnr_debug |
---|
803 | enable_homedir |
---|
804 | enable_mysql4_initialization |
---|
805 | enable_preferences_extension |
---|
806 | enable_verbose_debug |
---|
807 | enable_long_usernames |
---|
808 | enable_large_scale |
---|
809 | enable_domain_scale |
---|
810 | with_logdir |
---|
811 | with_storage_driver |
---|
812 | enable_virtual_users |
---|
813 | with_mysql_includes |
---|
814 | with_mysql_libraries |
---|
815 | with_pgsql_includes |
---|
816 | with_pgsql_libraries |
---|
817 | with_sqlite_includes |
---|
818 | with_sqlite_libraries |
---|
819 | enable_warnings |
---|
820 | enable_profiling |
---|
821 | ' |
---|
822 | ac_precious_vars='build_alias |
---|
823 | host_alias |
---|
824 | target_alias |
---|
825 | CC |
---|
826 | CFLAGS |
---|
827 | LDFLAGS |
---|
828 | LIBS |
---|
829 | CPPFLAGS |
---|
830 | CPP' |
---|
831 | |
---|
832 | |
---|
833 | # Initialize some variables set by options. |
---|
834 | ac_init_help= |
---|
835 | ac_init_version=false |
---|
836 | ac_unrecognized_opts= |
---|
837 | ac_unrecognized_sep= |
---|
838 | # The variables have the same names as the options, with |
---|
839 | # dashes changed to underlines. |
---|
840 | cache_file=/dev/null |
---|
841 | exec_prefix=NONE |
---|
842 | no_create= |
---|
843 | no_recursion= |
---|
844 | prefix=NONE |
---|
845 | program_prefix=NONE |
---|
846 | program_suffix=NONE |
---|
847 | program_transform_name=s,x,x, |
---|
848 | silent= |
---|
849 | site= |
---|
850 | srcdir= |
---|
851 | verbose= |
---|
852 | x_includes=NONE |
---|
853 | x_libraries=NONE |
---|
854 | |
---|
855 | # Installation directory options. |
---|
856 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
857 | # and all the variables that are supposed to be based on exec_prefix |
---|
858 | # by default will actually change. |
---|
859 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
860 | # (The list follows the same order as the GNU Coding Standards.) |
---|
861 | bindir='${exec_prefix}/bin' |
---|
862 | sbindir='${exec_prefix}/sbin' |
---|
863 | libexecdir='${exec_prefix}/libexec' |
---|
864 | datarootdir='${prefix}/share' |
---|
865 | datadir='${datarootdir}' |
---|
866 | sysconfdir='${prefix}/etc' |
---|
867 | sharedstatedir='${prefix}/com' |
---|
868 | localstatedir='${prefix}/var' |
---|
869 | includedir='${prefix}/include' |
---|
870 | oldincludedir='/usr/include' |
---|
871 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
872 | infodir='${datarootdir}/info' |
---|
873 | htmldir='${docdir}' |
---|
874 | dvidir='${docdir}' |
---|
875 | pdfdir='${docdir}' |
---|
876 | psdir='${docdir}' |
---|
877 | libdir='${exec_prefix}/lib' |
---|
878 | localedir='${datarootdir}/locale' |
---|
879 | mandir='${datarootdir}/man' |
---|
880 | |
---|
881 | ac_prev= |
---|
882 | ac_dashdash= |
---|
883 | for ac_option |
---|
884 | do |
---|
885 | # If the previous option needs an argument, assign it. |
---|
886 | if test -n "$ac_prev"; then |
---|
887 | eval $ac_prev=\$ac_option |
---|
888 | ac_prev= |
---|
889 | continue |
---|
890 | fi |
---|
891 | |
---|
892 | case $ac_option in |
---|
893 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
894 | *=) ac_optarg= ;; |
---|
895 | *) ac_optarg=yes ;; |
---|
896 | esac |
---|
897 | |
---|
898 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
899 | |
---|
900 | case $ac_dashdash$ac_option in |
---|
901 | --) |
---|
902 | ac_dashdash=yes ;; |
---|
903 | |
---|
904 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
905 | ac_prev=bindir ;; |
---|
906 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
907 | bindir=$ac_optarg ;; |
---|
908 | |
---|
909 | -build | --build | --buil | --bui | --bu) |
---|
910 | ac_prev=build_alias ;; |
---|
911 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
912 | build_alias=$ac_optarg ;; |
---|
913 | |
---|
914 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
915 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
916 | ac_prev=cache_file ;; |
---|
917 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
918 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
919 | cache_file=$ac_optarg ;; |
---|
920 | |
---|
921 | --config-cache | -C) |
---|
922 | cache_file=config.cache ;; |
---|
923 | |
---|
924 | -datadir | --datadir | --datadi | --datad) |
---|
925 | ac_prev=datadir ;; |
---|
926 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
927 | datadir=$ac_optarg ;; |
---|
928 | |
---|
929 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
930 | | --dataroo | --dataro | --datar) |
---|
931 | ac_prev=datarootdir ;; |
---|
932 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
933 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
934 | datarootdir=$ac_optarg ;; |
---|
935 | |
---|
936 | -disable-* | --disable-*) |
---|
937 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
938 | # Reject names that are not valid shell variable names. |
---|
939 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
940 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
941 | ac_useropt_orig=$ac_useropt |
---|
942 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
943 | case $ac_user_opts in |
---|
944 | *" |
---|
945 | "enable_$ac_useropt" |
---|
946 | "*) ;; |
---|
947 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
948 | ac_unrecognized_sep=', ';; |
---|
949 | esac |
---|
950 | eval enable_$ac_useropt=no ;; |
---|
951 | |
---|
952 | -docdir | --docdir | --docdi | --doc | --do) |
---|
953 | ac_prev=docdir ;; |
---|
954 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
955 | docdir=$ac_optarg ;; |
---|
956 | |
---|
957 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
958 | ac_prev=dvidir ;; |
---|
959 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
960 | dvidir=$ac_optarg ;; |
---|
961 | |
---|
962 | -enable-* | --enable-*) |
---|
963 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
964 | # Reject names that are not valid shell variable names. |
---|
965 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
966 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
967 | ac_useropt_orig=$ac_useropt |
---|
968 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
969 | case $ac_user_opts in |
---|
970 | *" |
---|
971 | "enable_$ac_useropt" |
---|
972 | "*) ;; |
---|
973 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
974 | ac_unrecognized_sep=', ';; |
---|
975 | esac |
---|
976 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
977 | |
---|
978 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
979 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
980 | | --exec | --exe | --ex) |
---|
981 | ac_prev=exec_prefix ;; |
---|
982 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
983 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
984 | | --exec=* | --exe=* | --ex=*) |
---|
985 | exec_prefix=$ac_optarg ;; |
---|
986 | |
---|
987 | -gas | --gas | --ga | --g) |
---|
988 | # Obsolete; use --with-gas. |
---|
989 | with_gas=yes ;; |
---|
990 | |
---|
991 | -help | --help | --hel | --he | -h) |
---|
992 | ac_init_help=long ;; |
---|
993 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
994 | ac_init_help=recursive ;; |
---|
995 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
996 | ac_init_help=short ;; |
---|
997 | |
---|
998 | -host | --host | --hos | --ho) |
---|
999 | ac_prev=host_alias ;; |
---|
1000 | -host=* | --host=* | --hos=* | --ho=*) |
---|
1001 | host_alias=$ac_optarg ;; |
---|
1002 | |
---|
1003 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
1004 | ac_prev=htmldir ;; |
---|
1005 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
1006 | | --ht=*) |
---|
1007 | htmldir=$ac_optarg ;; |
---|
1008 | |
---|
1009 | -includedir | --includedir | --includedi | --included | --include \ |
---|
1010 | | --includ | --inclu | --incl | --inc) |
---|
1011 | ac_prev=includedir ;; |
---|
1012 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
1013 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
1014 | includedir=$ac_optarg ;; |
---|
1015 | |
---|
1016 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
1017 | ac_prev=infodir ;; |
---|
1018 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
1019 | infodir=$ac_optarg ;; |
---|
1020 | |
---|
1021 | -libdir | --libdir | --libdi | --libd) |
---|
1022 | ac_prev=libdir ;; |
---|
1023 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
1024 | libdir=$ac_optarg ;; |
---|
1025 | |
---|
1026 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
1027 | | --libexe | --libex | --libe) |
---|
1028 | ac_prev=libexecdir ;; |
---|
1029 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
1030 | | --libexe=* | --libex=* | --libe=*) |
---|
1031 | libexecdir=$ac_optarg ;; |
---|
1032 | |
---|
1033 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
1034 | ac_prev=localedir ;; |
---|
1035 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
1036 | localedir=$ac_optarg ;; |
---|
1037 | |
---|
1038 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
1039 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
1040 | ac_prev=localstatedir ;; |
---|
1041 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
1042 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
1043 | localstatedir=$ac_optarg ;; |
---|
1044 | |
---|
1045 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
1046 | ac_prev=mandir ;; |
---|
1047 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
1048 | mandir=$ac_optarg ;; |
---|
1049 | |
---|
1050 | -nfp | --nfp | --nf) |
---|
1051 | # Obsolete; use --without-fp. |
---|
1052 | with_fp=no ;; |
---|
1053 | |
---|
1054 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
1055 | | --no-cr | --no-c | -n) |
---|
1056 | no_create=yes ;; |
---|
1057 | |
---|
1058 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
1059 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
1060 | no_recursion=yes ;; |
---|
1061 | |
---|
1062 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
1063 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
1064 | | --oldin | --oldi | --old | --ol | --o) |
---|
1065 | ac_prev=oldincludedir ;; |
---|
1066 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
1067 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
1068 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
1069 | oldincludedir=$ac_optarg ;; |
---|
1070 | |
---|
1071 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
1072 | ac_prev=prefix ;; |
---|
1073 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
1074 | prefix=$ac_optarg ;; |
---|
1075 | |
---|
1076 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
1077 | | --program-pre | --program-pr | --program-p) |
---|
1078 | ac_prev=program_prefix ;; |
---|
1079 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
1080 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
1081 | program_prefix=$ac_optarg ;; |
---|
1082 | |
---|
1083 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
1084 | | --program-suf | --program-su | --program-s) |
---|
1085 | ac_prev=program_suffix ;; |
---|
1086 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
1087 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
1088 | program_suffix=$ac_optarg ;; |
---|
1089 | |
---|
1090 | -program-transform-name | --program-transform-name \ |
---|
1091 | | --program-transform-nam | --program-transform-na \ |
---|
1092 | | --program-transform-n | --program-transform- \ |
---|
1093 | | --program-transform | --program-transfor \ |
---|
1094 | | --program-transfo | --program-transf \ |
---|
1095 | | --program-trans | --program-tran \ |
---|
1096 | | --progr-tra | --program-tr | --program-t) |
---|
1097 | ac_prev=program_transform_name ;; |
---|
1098 | -program-transform-name=* | --program-transform-name=* \ |
---|
1099 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
1100 | | --program-transform-n=* | --program-transform-=* \ |
---|
1101 | | --program-transform=* | --program-transfor=* \ |
---|
1102 | | --program-transfo=* | --program-transf=* \ |
---|
1103 | | --program-trans=* | --program-tran=* \ |
---|
1104 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
1105 | program_transform_name=$ac_optarg ;; |
---|
1106 | |
---|
1107 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1108 | ac_prev=pdfdir ;; |
---|
1109 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1110 | pdfdir=$ac_optarg ;; |
---|
1111 | |
---|
1112 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1113 | ac_prev=psdir ;; |
---|
1114 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1115 | psdir=$ac_optarg ;; |
---|
1116 | |
---|
1117 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1118 | | -silent | --silent | --silen | --sile | --sil) |
---|
1119 | silent=yes ;; |
---|
1120 | |
---|
1121 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1122 | ac_prev=sbindir ;; |
---|
1123 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1124 | | --sbi=* | --sb=*) |
---|
1125 | sbindir=$ac_optarg ;; |
---|
1126 | |
---|
1127 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1128 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1129 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1130 | | --sha | --sh) |
---|
1131 | ac_prev=sharedstatedir ;; |
---|
1132 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1133 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1134 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1135 | | --sha=* | --sh=*) |
---|
1136 | sharedstatedir=$ac_optarg ;; |
---|
1137 | |
---|
1138 | -site | --site | --sit) |
---|
1139 | ac_prev=site ;; |
---|
1140 | -site=* | --site=* | --sit=*) |
---|
1141 | site=$ac_optarg ;; |
---|
1142 | |
---|
1143 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1144 | ac_prev=srcdir ;; |
---|
1145 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1146 | srcdir=$ac_optarg ;; |
---|
1147 | |
---|
1148 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1149 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1150 | ac_prev=sysconfdir ;; |
---|
1151 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1152 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1153 | sysconfdir=$ac_optarg ;; |
---|
1154 | |
---|
1155 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1156 | ac_prev=target_alias ;; |
---|
1157 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1158 | target_alias=$ac_optarg ;; |
---|
1159 | |
---|
1160 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1161 | verbose=yes ;; |
---|
1162 | |
---|
1163 | -version | --version | --versio | --versi | --vers | -V) |
---|
1164 | ac_init_version=: ;; |
---|
1165 | |
---|
1166 | -with-* | --with-*) |
---|
1167 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1168 | # Reject names that are not valid shell variable names. |
---|
1169 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1170 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1171 | ac_useropt_orig=$ac_useropt |
---|
1172 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1173 | case $ac_user_opts in |
---|
1174 | *" |
---|
1175 | "with_$ac_useropt" |
---|
1176 | "*) ;; |
---|
1177 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1178 | ac_unrecognized_sep=', ';; |
---|
1179 | esac |
---|
1180 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1181 | |
---|
1182 | -without-* | --without-*) |
---|
1183 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1184 | # Reject names that are not valid shell variable names. |
---|
1185 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1186 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1187 | ac_useropt_orig=$ac_useropt |
---|
1188 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1189 | case $ac_user_opts in |
---|
1190 | *" |
---|
1191 | "with_$ac_useropt" |
---|
1192 | "*) ;; |
---|
1193 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1194 | ac_unrecognized_sep=', ';; |
---|
1195 | esac |
---|
1196 | eval with_$ac_useropt=no ;; |
---|
1197 | |
---|
1198 | --x) |
---|
1199 | # Obsolete; use --with-x. |
---|
1200 | with_x=yes ;; |
---|
1201 | |
---|
1202 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1203 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1204 | ac_prev=x_includes ;; |
---|
1205 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1206 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1207 | x_includes=$ac_optarg ;; |
---|
1208 | |
---|
1209 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1210 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1211 | ac_prev=x_libraries ;; |
---|
1212 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1213 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1214 | x_libraries=$ac_optarg ;; |
---|
1215 | |
---|
1216 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1217 | Try \`$0 --help' for more information" |
---|
1218 | ;; |
---|
1219 | |
---|
1220 | *=*) |
---|
1221 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1222 | # Reject names that are not valid shell variable names. |
---|
1223 | case $ac_envvar in #( |
---|
1224 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1225 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1226 | esac |
---|
1227 | eval $ac_envvar=\$ac_optarg |
---|
1228 | export $ac_envvar ;; |
---|
1229 | |
---|
1230 | *) |
---|
1231 | # FIXME: should be removed in autoconf 3.0. |
---|
1232 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1233 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1234 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1235 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1236 | ;; |
---|
1237 | |
---|
1238 | esac |
---|
1239 | done |
---|
1240 | |
---|
1241 | if test -n "$ac_prev"; then |
---|
1242 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1243 | as_fn_error $? "missing argument to $ac_option" |
---|
1244 | fi |
---|
1245 | |
---|
1246 | if test -n "$ac_unrecognized_opts"; then |
---|
1247 | case $enable_option_checking in |
---|
1248 | no) ;; |
---|
1249 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1250 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1251 | esac |
---|
1252 | fi |
---|
1253 | |
---|
1254 | # Check all directory arguments for consistency. |
---|
1255 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1256 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1257 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1258 | libdir localedir mandir |
---|
1259 | do |
---|
1260 | eval ac_val=\$$ac_var |
---|
1261 | # Remove trailing slashes. |
---|
1262 | case $ac_val in |
---|
1263 | */ ) |
---|
1264 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1265 | eval $ac_var=\$ac_val;; |
---|
1266 | esac |
---|
1267 | # Be sure to have absolute directory names. |
---|
1268 | case $ac_val in |
---|
1269 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1270 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1271 | esac |
---|
1272 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1273 | done |
---|
1274 | |
---|
1275 | # There might be people who depend on the old broken behavior: `$host' |
---|
1276 | # used to hold the argument of --host etc. |
---|
1277 | # FIXME: To remove some day. |
---|
1278 | build=$build_alias |
---|
1279 | host=$host_alias |
---|
1280 | target=$target_alias |
---|
1281 | |
---|
1282 | # FIXME: To remove some day. |
---|
1283 | if test "x$host_alias" != x; then |
---|
1284 | if test "x$build_alias" = x; then |
---|
1285 | cross_compiling=maybe |
---|
1286 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
---|
1287 | If a cross compiler is detected then cross compile mode will be used" >&2 |
---|
1288 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1289 | cross_compiling=yes |
---|
1290 | fi |
---|
1291 | fi |
---|
1292 | |
---|
1293 | ac_tool_prefix= |
---|
1294 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1295 | |
---|
1296 | test "$silent" = yes && exec 6>/dev/null |
---|
1297 | |
---|
1298 | |
---|
1299 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1300 | ac_ls_di=`ls -di .` && |
---|
1301 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1302 | as_fn_error $? "working directory cannot be determined" |
---|
1303 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1304 | as_fn_error $? "pwd does not report name of working directory" |
---|
1305 | |
---|
1306 | |
---|
1307 | # Find the source files, if location was not specified. |
---|
1308 | if test -z "$srcdir"; then |
---|
1309 | ac_srcdir_defaulted=yes |
---|
1310 | # Try the directory containing this script, then the parent directory. |
---|
1311 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1312 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1313 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1314 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1315 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1316 | $as_echo X"$as_myself" | |
---|
1317 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1318 | s//\1/ |
---|
1319 | q |
---|
1320 | } |
---|
1321 | /^X\(\/\/\)[^/].*/{ |
---|
1322 | s//\1/ |
---|
1323 | q |
---|
1324 | } |
---|
1325 | /^X\(\/\/\)$/{ |
---|
1326 | s//\1/ |
---|
1327 | q |
---|
1328 | } |
---|
1329 | /^X\(\/\).*/{ |
---|
1330 | s//\1/ |
---|
1331 | q |
---|
1332 | } |
---|
1333 | s/.*/./; q'` |
---|
1334 | srcdir=$ac_confdir |
---|
1335 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1336 | srcdir=.. |
---|
1337 | fi |
---|
1338 | else |
---|
1339 | ac_srcdir_defaulted=no |
---|
1340 | fi |
---|
1341 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1342 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1343 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1344 | fi |
---|
1345 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1346 | ac_abs_confdir=`( |
---|
1347 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1348 | pwd)` |
---|
1349 | # When building in place, set srcdir=. |
---|
1350 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1351 | srcdir=. |
---|
1352 | fi |
---|
1353 | # Remove unnecessary trailing slashes from srcdir. |
---|
1354 | # Double slashes in file names in object file debugging info |
---|
1355 | # mess up M-x gdb in Emacs. |
---|
1356 | case $srcdir in |
---|
1357 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1358 | esac |
---|
1359 | for ac_var in $ac_precious_vars; do |
---|
1360 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1361 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1362 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1363 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1364 | done |
---|
1365 | |
---|
1366 | # |
---|
1367 | # Report the --help message. |
---|
1368 | # |
---|
1369 | if test "$ac_init_help" = "long"; then |
---|
1370 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1371 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1372 | cat <<_ACEOF |
---|
1373 | \`configure' configures dspam 3.10.2 to adapt to many kinds of systems. |
---|
1374 | |
---|
1375 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1376 | |
---|
1377 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1378 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1379 | |
---|
1380 | Defaults for the options are specified in brackets. |
---|
1381 | |
---|
1382 | Configuration: |
---|
1383 | -h, --help display this help and exit |
---|
1384 | --help=short display options specific to this package |
---|
1385 | --help=recursive display the short help of all the included packages |
---|
1386 | -V, --version display version information and exit |
---|
1387 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1388 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1389 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1390 | -n, --no-create do not create output files |
---|
1391 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1392 | |
---|
1393 | Installation directories: |
---|
1394 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1395 | [$ac_default_prefix] |
---|
1396 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1397 | [PREFIX] |
---|
1398 | |
---|
1399 | By default, \`make install' will install all the files in |
---|
1400 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1401 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1402 | for instance \`--prefix=\$HOME'. |
---|
1403 | |
---|
1404 | For better control, use the options below. |
---|
1405 | |
---|
1406 | Fine tuning of the installation directories: |
---|
1407 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1408 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1409 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1410 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1411 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1412 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1413 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1414 | --includedir=DIR C header files [PREFIX/include] |
---|
1415 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1416 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1417 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1418 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1419 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1420 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1421 | --docdir=DIR documentation root [DATAROOTDIR/doc/dspam] |
---|
1422 | --htmldir=DIR html documentation [DOCDIR] |
---|
1423 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1424 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1425 | --psdir=DIR ps documentation [DOCDIR] |
---|
1426 | _ACEOF |
---|
1427 | |
---|
1428 | cat <<\_ACEOF |
---|
1429 | |
---|
1430 | Program names: |
---|
1431 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
1432 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
1433 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
---|
1434 | |
---|
1435 | System types: |
---|
1436 | --build=BUILD configure for building on BUILD [guessed] |
---|
1437 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1438 | _ACEOF |
---|
1439 | fi |
---|
1440 | |
---|
1441 | if test -n "$ac_init_help"; then |
---|
1442 | case $ac_init_help in |
---|
1443 | short | recursive ) echo "Configuration of dspam 3.10.2:";; |
---|
1444 | esac |
---|
1445 | cat <<\_ACEOF |
---|
1446 | |
---|
1447 | Optional Features: |
---|
1448 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1449 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1450 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1451 | --disable-dependency-tracking speeds up one-time build |
---|
1452 | --enable-dependency-tracking do not reject slow dependency extractors |
---|
1453 | --enable-shared[=PKGS] build shared libraries [default=yes] |
---|
1454 | --enable-static[=PKGS] build static libraries [default=yes] |
---|
1455 | --enable-fast-install[=PKGS] |
---|
1456 | optimize for fast installation [default=yes] |
---|
1457 | --disable-libtool-lock avoid locking (might break parallel builds) |
---|
1458 | --enable-daemon Enable support for DSPAM to run in --daemon mode |
---|
1459 | --enable-split-configuration |
---|
1460 | Enable split configuration file support |
---|
1461 | --enable-external-lookup |
---|
1462 | Enable external lookup support |
---|
1463 | --disable-trusted-user-security |
---|
1464 | Disable trusted user security (enabled by default) |
---|
1465 | --enable-clamav Enable Clam/AV support for DSPAM. |
---|
1466 | --enable-debug Enable debugging support for DSPAM. Don't enable |
---|
1467 | this unless something needs testing! |
---|
1468 | --enable-syslog Enable (or disable) syslog support |
---|
1469 | --enable-bnr-debug Activates debugging output for Bayesian Noise |
---|
1470 | Reduction |
---|
1471 | --enable-homedir Enable home directory filesystem storage. |
---|
1472 | --disable-mysql4-initialization |
---|
1473 | Performs Initialization and Cleanup of MySQL client |
---|
1474 | libraries v4.1+. |
---|
1475 | --enable-preferences-extension |
---|
1476 | Enable if storage driver supports preferences |
---|
1477 | extension |
---|
1478 | --enable-verbose-debug Cause DSPAM produce verbose debug output and write |
---|
1479 | them into LOGDIR/dspam.debug file. Implies |
---|
1480 | '--enable-debug'. Never enable this for production |
---|
1481 | builds! |
---|
1482 | --enable-long-usernames Cause DSPAM to support long usernames. The default |
---|
1483 | is to use the same length on usernames as the |
---|
1484 | operating system. |
---|
1485 | --enable-large-scale Manage file structure for a large scale |
---|
1486 | implementation |
---|
1487 | --enable-domain-scale Manage file structure to support a domain |
---|
1488 | implementation |
---|
1489 | --enable-virtual-users Cause mysql_drv to generate virtual uids for each |
---|
1490 | user |
---|
1491 | --enable-virtual-users Cause pgsql_drv to generate virtual uids for each |
---|
1492 | user |
---|
1493 | --enable-warnings[={no|[{yes|error}][,proto]}] |
---|
1494 | Disable (no) or enable (yes) more warnings |
---|
1495 | or enable and treat warnings as errors (error). |
---|
1496 | Simple --enable-warnings is the same |
---|
1497 | as --enable-warnings=yes. |
---|
1498 | You can add ',proto' to 'yes' or 'error' option |
---|
1499 | for turning on additional '-Wstrict-prototypes' |
---|
1500 | flag. |
---|
1501 | Have effect for GCC compilers only. |
---|
1502 | --disable-warnings Same as --enable-warnings=no [default] |
---|
1503 | --enable-profiling Disable (no) or enable (yes) performance profiling. |
---|
1504 | Generate extra code to write profile information |
---|
1505 | suitable for the analysis program gprof. Has effect |
---|
1506 | for GCC compilers only. |
---|
1507 | |
---|
1508 | Optional Packages: |
---|
1509 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1510 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1511 | --with-pic try to use only PIC/non-PIC objects [default=use |
---|
1512 | both] |
---|
1513 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
---|
1514 | --with-sysroot=DIR Search for dependent libraries within DIR |
---|
1515 | (or the compiler's sysroot if not specified). |
---|
1516 | --with-dspam-home=DIR Specify directory where per-user dictionaries, |
---|
1517 | signatures, etc. should be stored. [default: |
---|
1518 | /var/dspam] |
---|
1519 | --with-dspam-home-mode=MODE |
---|
1520 | Set access mode for DSPAM_HOME, default 770 |
---|
1521 | --with-dspam-home-owner=OWNER |
---|
1522 | Set owner for DSPAM_HOME, default root |
---|
1523 | --with-dspam-home-group=GROUP |
---|
1524 | Set group for DSPAM_HOME, default mail |
---|
1525 | --with-logfile=LOGFILE Set flat logfile pathname for logging |
---|
1526 | --with-dspam-mode=MODE Set access mode for dspam binary, default 2510 |
---|
1527 | --with-dspam-owner=OWNER |
---|
1528 | Set owner for dspam binary, default root |
---|
1529 | --with-dspam-group=GROUP |
---|
1530 | Set group for dspam binary, default mail |
---|
1531 | --with-delivery-agent=BINARY [ARGS] |
---|
1532 | Override the default delivery agent. This sets only |
---|
1533 | the default, which may be changed in dspam.conf. |
---|
1534 | --with-logdir=DIR Specify directory where logfiles are to be written. |
---|
1535 | [default: $dspam_home/log] |
---|
1536 | --with-storage-driver=LIST |
---|
1537 | Specify storage drivers to enable. [default: |
---|
1538 | hash_drv] |
---|
1539 | --with-mysql-includes=DIR |
---|
1540 | Where to find Mysql headers |
---|
1541 | --with-mysql-libraries=DIR |
---|
1542 | Where to find MySQL |
---|
1543 | --with-pgsql-includes=DIR |
---|
1544 | Where to find PostgreSQL headers |
---|
1545 | --with-pgsql-libraries=DIR |
---|
1546 | Where to find PostgreSQL libraries |
---|
1547 | --with-sqlite-includes=DIR |
---|
1548 | Where to find SQLite headers |
---|
1549 | --with-sqlite-libraries=DIR |
---|
1550 | Where to find SQLite libraries |
---|
1551 | |
---|
1552 | Some influential environment variables: |
---|
1553 | CC C compiler command |
---|
1554 | CFLAGS C compiler flags |
---|
1555 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1556 | nonstandard directory <lib dir> |
---|
1557 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1558 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1559 | you have headers in a nonstandard directory <include dir> |
---|
1560 | CPP C preprocessor |
---|
1561 | |
---|
1562 | Use these variables to override the choices made by `configure' or to help |
---|
1563 | it to find libraries and programs with nonstandard names/locations. |
---|
1564 | |
---|
1565 | Report bugs to <dspam-devel@lists.sourceforge.net>. |
---|
1566 | _ACEOF |
---|
1567 | ac_status=$? |
---|
1568 | fi |
---|
1569 | |
---|
1570 | if test "$ac_init_help" = "recursive"; then |
---|
1571 | # If there are subdirs, report their specific --help. |
---|
1572 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1573 | test -d "$ac_dir" || |
---|
1574 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1575 | continue |
---|
1576 | ac_builddir=. |
---|
1577 | |
---|
1578 | case "$ac_dir" in |
---|
1579 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1580 | *) |
---|
1581 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1582 | # A ".." for each directory in $ac_dir_suffix. |
---|
1583 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1584 | case $ac_top_builddir_sub in |
---|
1585 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1586 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1587 | esac ;; |
---|
1588 | esac |
---|
1589 | ac_abs_top_builddir=$ac_pwd |
---|
1590 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1591 | # for backward compatibility: |
---|
1592 | ac_top_builddir=$ac_top_build_prefix |
---|
1593 | |
---|
1594 | case $srcdir in |
---|
1595 | .) # We are building in place. |
---|
1596 | ac_srcdir=. |
---|
1597 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1598 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1599 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1600 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1601 | ac_top_srcdir=$srcdir |
---|
1602 | ac_abs_top_srcdir=$srcdir ;; |
---|
1603 | *) # Relative name. |
---|
1604 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1605 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1606 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1607 | esac |
---|
1608 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1609 | |
---|
1610 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1611 | # Check for guested configure. |
---|
1612 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1613 | echo && |
---|
1614 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1615 | elif test -f "$ac_srcdir/configure"; then |
---|
1616 | echo && |
---|
1617 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1618 | else |
---|
1619 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1620 | fi || ac_status=$? |
---|
1621 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1622 | done |
---|
1623 | fi |
---|
1624 | |
---|
1625 | test -n "$ac_init_help" && exit $ac_status |
---|
1626 | if $ac_init_version; then |
---|
1627 | cat <<\_ACEOF |
---|
1628 | dspam configure 3.10.2 |
---|
1629 | generated by GNU Autoconf 2.68 |
---|
1630 | |
---|
1631 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
1632 | This configure script is free software; the Free Software Foundation |
---|
1633 | gives unlimited permission to copy, distribute and modify it. |
---|
1634 | |
---|
1635 | Copyright (C) 2002-2012 DSPAM Project |
---|
1636 | _ACEOF |
---|
1637 | exit |
---|
1638 | fi |
---|
1639 | |
---|
1640 | ## ------------------------ ## |
---|
1641 | ## Autoconf initialization. ## |
---|
1642 | ## ------------------------ ## |
---|
1643 | |
---|
1644 | # ac_fn_c_try_compile LINENO |
---|
1645 | # -------------------------- |
---|
1646 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1647 | ac_fn_c_try_compile () |
---|
1648 | { |
---|
1649 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1650 | rm -f conftest.$ac_objext |
---|
1651 | if { { ac_try="$ac_compile" |
---|
1652 | case "(($ac_try" in |
---|
1653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1654 | *) ac_try_echo=$ac_try;; |
---|
1655 | esac |
---|
1656 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1657 | $as_echo "$ac_try_echo"; } >&5 |
---|
1658 | (eval "$ac_compile") 2>conftest.err |
---|
1659 | ac_status=$? |
---|
1660 | if test -s conftest.err; then |
---|
1661 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1662 | cat conftest.er1 >&5 |
---|
1663 | mv -f conftest.er1 conftest.err |
---|
1664 | fi |
---|
1665 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1666 | test $ac_status = 0; } && { |
---|
1667 | test -z "$ac_c_werror_flag" || |
---|
1668 | test ! -s conftest.err |
---|
1669 | } && test -s conftest.$ac_objext; then : |
---|
1670 | ac_retval=0 |
---|
1671 | else |
---|
1672 | $as_echo "$as_me: failed program was:" >&5 |
---|
1673 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1674 | |
---|
1675 | ac_retval=1 |
---|
1676 | fi |
---|
1677 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1678 | as_fn_set_status $ac_retval |
---|
1679 | |
---|
1680 | } # ac_fn_c_try_compile |
---|
1681 | |
---|
1682 | # ac_fn_c_try_link LINENO |
---|
1683 | # ----------------------- |
---|
1684 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1685 | ac_fn_c_try_link () |
---|
1686 | { |
---|
1687 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1688 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1689 | if { { ac_try="$ac_link" |
---|
1690 | case "(($ac_try" in |
---|
1691 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1692 | *) ac_try_echo=$ac_try;; |
---|
1693 | esac |
---|
1694 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1695 | $as_echo "$ac_try_echo"; } >&5 |
---|
1696 | (eval "$ac_link") 2>conftest.err |
---|
1697 | ac_status=$? |
---|
1698 | if test -s conftest.err; then |
---|
1699 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1700 | cat conftest.er1 >&5 |
---|
1701 | mv -f conftest.er1 conftest.err |
---|
1702 | fi |
---|
1703 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1704 | test $ac_status = 0; } && { |
---|
1705 | test -z "$ac_c_werror_flag" || |
---|
1706 | test ! -s conftest.err |
---|
1707 | } && test -s conftest$ac_exeext && { |
---|
1708 | test "$cross_compiling" = yes || |
---|
1709 | $as_test_x conftest$ac_exeext |
---|
1710 | }; then : |
---|
1711 | ac_retval=0 |
---|
1712 | else |
---|
1713 | $as_echo "$as_me: failed program was:" >&5 |
---|
1714 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1715 | |
---|
1716 | ac_retval=1 |
---|
1717 | fi |
---|
1718 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1719 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1720 | # interfere with the next link command; also delete a directory that is |
---|
1721 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1722 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1723 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1724 | as_fn_set_status $ac_retval |
---|
1725 | |
---|
1726 | } # ac_fn_c_try_link |
---|
1727 | |
---|
1728 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1729 | # ------------------------------------------------------- |
---|
1730 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1731 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1732 | ac_fn_c_check_header_compile () |
---|
1733 | { |
---|
1734 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1736 | $as_echo_n "checking for $2... " >&6; } |
---|
1737 | if eval \${$3+:} false; then : |
---|
1738 | $as_echo_n "(cached) " >&6 |
---|
1739 | else |
---|
1740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1741 | /* end confdefs.h. */ |
---|
1742 | $4 |
---|
1743 | #include <$2> |
---|
1744 | _ACEOF |
---|
1745 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1746 | eval "$3=yes" |
---|
1747 | else |
---|
1748 | eval "$3=no" |
---|
1749 | fi |
---|
1750 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1751 | fi |
---|
1752 | eval ac_res=\$$3 |
---|
1753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1754 | $as_echo "$ac_res" >&6; } |
---|
1755 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1756 | |
---|
1757 | } # ac_fn_c_check_header_compile |
---|
1758 | |
---|
1759 | # ac_fn_c_try_cpp LINENO |
---|
1760 | # ---------------------- |
---|
1761 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1762 | ac_fn_c_try_cpp () |
---|
1763 | { |
---|
1764 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1765 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1766 | case "(($ac_try" in |
---|
1767 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1768 | *) ac_try_echo=$ac_try;; |
---|
1769 | esac |
---|
1770 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1771 | $as_echo "$ac_try_echo"; } >&5 |
---|
1772 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1773 | ac_status=$? |
---|
1774 | if test -s conftest.err; then |
---|
1775 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1776 | cat conftest.er1 >&5 |
---|
1777 | mv -f conftest.er1 conftest.err |
---|
1778 | fi |
---|
1779 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1780 | test $ac_status = 0; } > conftest.i && { |
---|
1781 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1782 | test ! -s conftest.err |
---|
1783 | }; then : |
---|
1784 | ac_retval=0 |
---|
1785 | else |
---|
1786 | $as_echo "$as_me: failed program was:" >&5 |
---|
1787 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1788 | |
---|
1789 | ac_retval=1 |
---|
1790 | fi |
---|
1791 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1792 | as_fn_set_status $ac_retval |
---|
1793 | |
---|
1794 | } # ac_fn_c_try_cpp |
---|
1795 | |
---|
1796 | # ac_fn_c_try_run LINENO |
---|
1797 | # ---------------------- |
---|
1798 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1799 | # that executables *can* be run. |
---|
1800 | ac_fn_c_try_run () |
---|
1801 | { |
---|
1802 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1803 | if { { ac_try="$ac_link" |
---|
1804 | case "(($ac_try" in |
---|
1805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1806 | *) ac_try_echo=$ac_try;; |
---|
1807 | esac |
---|
1808 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1809 | $as_echo "$ac_try_echo"; } >&5 |
---|
1810 | (eval "$ac_link") 2>&5 |
---|
1811 | ac_status=$? |
---|
1812 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1813 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1814 | { { case "(($ac_try" in |
---|
1815 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1816 | *) ac_try_echo=$ac_try;; |
---|
1817 | esac |
---|
1818 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1819 | $as_echo "$ac_try_echo"; } >&5 |
---|
1820 | (eval "$ac_try") 2>&5 |
---|
1821 | ac_status=$? |
---|
1822 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1823 | test $ac_status = 0; }; }; then : |
---|
1824 | ac_retval=0 |
---|
1825 | else |
---|
1826 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1827 | $as_echo "$as_me: failed program was:" >&5 |
---|
1828 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1829 | |
---|
1830 | ac_retval=$ac_status |
---|
1831 | fi |
---|
1832 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1833 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1834 | as_fn_set_status $ac_retval |
---|
1835 | |
---|
1836 | } # ac_fn_c_try_run |
---|
1837 | |
---|
1838 | # ac_fn_c_check_func LINENO FUNC VAR |
---|
1839 | # ---------------------------------- |
---|
1840 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
---|
1841 | ac_fn_c_check_func () |
---|
1842 | { |
---|
1843 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1845 | $as_echo_n "checking for $2... " >&6; } |
---|
1846 | if eval \${$3+:} false; then : |
---|
1847 | $as_echo_n "(cached) " >&6 |
---|
1848 | else |
---|
1849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1850 | /* end confdefs.h. */ |
---|
1851 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
---|
1852 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
1853 | #define $2 innocuous_$2 |
---|
1854 | |
---|
1855 | /* System header to define __stub macros and hopefully few prototypes, |
---|
1856 | which can conflict with char $2 (); below. |
---|
1857 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
1858 | <limits.h> exists even on freestanding compilers. */ |
---|
1859 | |
---|
1860 | #ifdef __STDC__ |
---|
1861 | # include <limits.h> |
---|
1862 | #else |
---|
1863 | # include <assert.h> |
---|
1864 | #endif |
---|
1865 | |
---|
1866 | #undef $2 |
---|
1867 | |
---|
1868 | /* Override any GCC internal prototype to avoid an error. |
---|
1869 | Use char because int might match the return type of a GCC |
---|
1870 | builtin and then its argument prototype would still apply. */ |
---|
1871 | #ifdef __cplusplus |
---|
1872 | extern "C" |
---|
1873 | #endif |
---|
1874 | char $2 (); |
---|
1875 | /* The GNU C library defines this for functions which it implements |
---|
1876 | to always fail with ENOSYS. Some functions are actually named |
---|
1877 | something starting with __ and the normal name is an alias. */ |
---|
1878 | #if defined __stub_$2 || defined __stub___$2 |
---|
1879 | choke me |
---|
1880 | #endif |
---|
1881 | |
---|
1882 | int |
---|
1883 | main () |
---|
1884 | { |
---|
1885 | return $2 (); |
---|
1886 | ; |
---|
1887 | return 0; |
---|
1888 | } |
---|
1889 | _ACEOF |
---|
1890 | if ac_fn_c_try_link "$LINENO"; then : |
---|
1891 | eval "$3=yes" |
---|
1892 | else |
---|
1893 | eval "$3=no" |
---|
1894 | fi |
---|
1895 | rm -f core conftest.err conftest.$ac_objext \ |
---|
1896 | conftest$ac_exeext conftest.$ac_ext |
---|
1897 | fi |
---|
1898 | eval ac_res=\$$3 |
---|
1899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1900 | $as_echo "$ac_res" >&6; } |
---|
1901 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1902 | |
---|
1903 | } # ac_fn_c_check_func |
---|
1904 | |
---|
1905 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1906 | # ------------------------------------------------------- |
---|
1907 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1908 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1909 | # accordingly. |
---|
1910 | ac_fn_c_check_header_mongrel () |
---|
1911 | { |
---|
1912 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1913 | if eval \${$3+:} false; then : |
---|
1914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1915 | $as_echo_n "checking for $2... " >&6; } |
---|
1916 | if eval \${$3+:} false; then : |
---|
1917 | $as_echo_n "(cached) " >&6 |
---|
1918 | fi |
---|
1919 | eval ac_res=\$$3 |
---|
1920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1921 | $as_echo "$ac_res" >&6; } |
---|
1922 | else |
---|
1923 | # Is the header compilable? |
---|
1924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1925 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1927 | /* end confdefs.h. */ |
---|
1928 | $4 |
---|
1929 | #include <$2> |
---|
1930 | _ACEOF |
---|
1931 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1932 | ac_header_compiler=yes |
---|
1933 | else |
---|
1934 | ac_header_compiler=no |
---|
1935 | fi |
---|
1936 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1938 | $as_echo "$ac_header_compiler" >&6; } |
---|
1939 | |
---|
1940 | # Is the header present? |
---|
1941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1942 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1944 | /* end confdefs.h. */ |
---|
1945 | #include <$2> |
---|
1946 | _ACEOF |
---|
1947 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
1948 | ac_header_preproc=yes |
---|
1949 | else |
---|
1950 | ac_header_preproc=no |
---|
1951 | fi |
---|
1952 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
1953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1954 | $as_echo "$ac_header_preproc" >&6; } |
---|
1955 | |
---|
1956 | # So? What about this header? |
---|
1957 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
1958 | yes:no: ) |
---|
1959 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1960 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1961 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1962 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1963 | ;; |
---|
1964 | no:yes:* ) |
---|
1965 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1966 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1967 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1968 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1969 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1970 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1971 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1972 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
1973 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1974 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1975 | ( $as_echo "## ------------------------------------------------ ## |
---|
1976 | ## Report this to dspam-devel@lists.sourceforge.net ## |
---|
1977 | ## ------------------------------------------------ ##" |
---|
1978 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1979 | ;; |
---|
1980 | esac |
---|
1981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1982 | $as_echo_n "checking for $2... " >&6; } |
---|
1983 | if eval \${$3+:} false; then : |
---|
1984 | $as_echo_n "(cached) " >&6 |
---|
1985 | else |
---|
1986 | eval "$3=\$ac_header_compiler" |
---|
1987 | fi |
---|
1988 | eval ac_res=\$$3 |
---|
1989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1990 | $as_echo "$ac_res" >&6; } |
---|
1991 | fi |
---|
1992 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1993 | |
---|
1994 | } # ac_fn_c_check_header_mongrel |
---|
1995 | cat >config.log <<_ACEOF |
---|
1996 | This file contains any messages produced by compilers while |
---|
1997 | running configure, to aid debugging if configure makes a mistake. |
---|
1998 | |
---|
1999 | It was created by dspam $as_me 3.10.2, which was |
---|
2000 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
2001 | |
---|
2002 | $ $0 $@ |
---|
2003 | |
---|
2004 | _ACEOF |
---|
2005 | exec 5>>config.log |
---|
2006 | { |
---|
2007 | cat <<_ASUNAME |
---|
2008 | ## --------- ## |
---|
2009 | ## Platform. ## |
---|
2010 | ## --------- ## |
---|
2011 | |
---|
2012 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
2013 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
2014 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
2015 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
2016 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
2017 | |
---|
2018 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
2019 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
2020 | |
---|
2021 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
2022 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
2023 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
2024 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
2025 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
2026 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
2027 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
2028 | |
---|
2029 | _ASUNAME |
---|
2030 | |
---|
2031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2032 | for as_dir in $PATH |
---|
2033 | do |
---|
2034 | IFS=$as_save_IFS |
---|
2035 | test -z "$as_dir" && as_dir=. |
---|
2036 | $as_echo "PATH: $as_dir" |
---|
2037 | done |
---|
2038 | IFS=$as_save_IFS |
---|
2039 | |
---|
2040 | } >&5 |
---|
2041 | |
---|
2042 | cat >&5 <<_ACEOF |
---|
2043 | |
---|
2044 | |
---|
2045 | ## ----------- ## |
---|
2046 | ## Core tests. ## |
---|
2047 | ## ----------- ## |
---|
2048 | |
---|
2049 | _ACEOF |
---|
2050 | |
---|
2051 | |
---|
2052 | # Keep a trace of the command line. |
---|
2053 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
2054 | # Strip out --silent because we don't want to record it for future runs. |
---|
2055 | # Also quote any args containing shell meta-characters. |
---|
2056 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
2057 | ac_configure_args= |
---|
2058 | ac_configure_args0= |
---|
2059 | ac_configure_args1= |
---|
2060 | ac_must_keep_next=false |
---|
2061 | for ac_pass in 1 2 |
---|
2062 | do |
---|
2063 | for ac_arg |
---|
2064 | do |
---|
2065 | case $ac_arg in |
---|
2066 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
2067 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
2068 | | -silent | --silent | --silen | --sile | --sil) |
---|
2069 | continue ;; |
---|
2070 | *\'*) |
---|
2071 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2072 | esac |
---|
2073 | case $ac_pass in |
---|
2074 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
2075 | 2) |
---|
2076 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
2077 | if test $ac_must_keep_next = true; then |
---|
2078 | ac_must_keep_next=false # Got value, back to normal. |
---|
2079 | else |
---|
2080 | case $ac_arg in |
---|
2081 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
2082 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
2083 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
2084 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
2085 | case "$ac_configure_args0 " in |
---|
2086 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
2087 | esac |
---|
2088 | ;; |
---|
2089 | -* ) ac_must_keep_next=true ;; |
---|
2090 | esac |
---|
2091 | fi |
---|
2092 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
2093 | ;; |
---|
2094 | esac |
---|
2095 | done |
---|
2096 | done |
---|
2097 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
2098 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
2099 | |
---|
2100 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
2101 | # config.log. We remove comments because anyway the quotes in there |
---|
2102 | # would cause problems or look ugly. |
---|
2103 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
2104 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
2105 | trap 'exit_status=$? |
---|
2106 | # Save into config.log some information that might help in debugging. |
---|
2107 | { |
---|
2108 | echo |
---|
2109 | |
---|
2110 | $as_echo "## ---------------- ## |
---|
2111 | ## Cache variables. ## |
---|
2112 | ## ---------------- ##" |
---|
2113 | echo |
---|
2114 | # The following way of writing the cache mishandles newlines in values, |
---|
2115 | ( |
---|
2116 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
2117 | eval ac_val=\$$ac_var |
---|
2118 | case $ac_val in #( |
---|
2119 | *${as_nl}*) |
---|
2120 | case $ac_var in #( |
---|
2121 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
2122 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
2123 | esac |
---|
2124 | case $ac_var in #( |
---|
2125 | _ | IFS | as_nl) ;; #( |
---|
2126 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
2127 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
2128 | esac ;; |
---|
2129 | esac |
---|
2130 | done |
---|
2131 | (set) 2>&1 | |
---|
2132 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
2133 | *${as_nl}ac_space=\ *) |
---|
2134 | sed -n \ |
---|
2135 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
2136 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
2137 | ;; #( |
---|
2138 | *) |
---|
2139 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
2140 | ;; |
---|
2141 | esac | |
---|
2142 | sort |
---|
2143 | ) |
---|
2144 | echo |
---|
2145 | |
---|
2146 | $as_echo "## ----------------- ## |
---|
2147 | ## Output variables. ## |
---|
2148 | ## ----------------- ##" |
---|
2149 | echo |
---|
2150 | for ac_var in $ac_subst_vars |
---|
2151 | do |
---|
2152 | eval ac_val=\$$ac_var |
---|
2153 | case $ac_val in |
---|
2154 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2155 | esac |
---|
2156 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2157 | done | sort |
---|
2158 | echo |
---|
2159 | |
---|
2160 | if test -n "$ac_subst_files"; then |
---|
2161 | $as_echo "## ------------------- ## |
---|
2162 | ## File substitutions. ## |
---|
2163 | ## ------------------- ##" |
---|
2164 | echo |
---|
2165 | for ac_var in $ac_subst_files |
---|
2166 | do |
---|
2167 | eval ac_val=\$$ac_var |
---|
2168 | case $ac_val in |
---|
2169 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
2170 | esac |
---|
2171 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
2172 | done | sort |
---|
2173 | echo |
---|
2174 | fi |
---|
2175 | |
---|
2176 | if test -s confdefs.h; then |
---|
2177 | $as_echo "## ----------- ## |
---|
2178 | ## confdefs.h. ## |
---|
2179 | ## ----------- ##" |
---|
2180 | echo |
---|
2181 | cat confdefs.h |
---|
2182 | echo |
---|
2183 | fi |
---|
2184 | test "$ac_signal" != 0 && |
---|
2185 | $as_echo "$as_me: caught signal $ac_signal" |
---|
2186 | $as_echo "$as_me: exit $exit_status" |
---|
2187 | } >&5 |
---|
2188 | rm -f core *.core core.conftest.* && |
---|
2189 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
2190 | exit $exit_status |
---|
2191 | ' 0 |
---|
2192 | for ac_signal in 1 2 13 15; do |
---|
2193 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
2194 | done |
---|
2195 | ac_signal=0 |
---|
2196 | |
---|
2197 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
2198 | rm -f -r conftest* confdefs.h |
---|
2199 | |
---|
2200 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
2201 | |
---|
2202 | # Predefined preprocessor variables. |
---|
2203 | |
---|
2204 | cat >>confdefs.h <<_ACEOF |
---|
2205 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
2206 | _ACEOF |
---|
2207 | |
---|
2208 | cat >>confdefs.h <<_ACEOF |
---|
2209 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
2210 | _ACEOF |
---|
2211 | |
---|
2212 | cat >>confdefs.h <<_ACEOF |
---|
2213 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
2214 | _ACEOF |
---|
2215 | |
---|
2216 | cat >>confdefs.h <<_ACEOF |
---|
2217 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
2218 | _ACEOF |
---|
2219 | |
---|
2220 | cat >>confdefs.h <<_ACEOF |
---|
2221 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
2222 | _ACEOF |
---|
2223 | |
---|
2224 | cat >>confdefs.h <<_ACEOF |
---|
2225 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
2226 | _ACEOF |
---|
2227 | |
---|
2228 | |
---|
2229 | # Let the site file select an alternate cache file if it wants to. |
---|
2230 | # Prefer an explicitly selected file to automatically selected ones. |
---|
2231 | ac_site_file1=NONE |
---|
2232 | ac_site_file2=NONE |
---|
2233 | if test -n "$CONFIG_SITE"; then |
---|
2234 | # We do not want a PATH search for config.site. |
---|
2235 | case $CONFIG_SITE in #(( |
---|
2236 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
2237 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
2238 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
2239 | esac |
---|
2240 | elif test "x$prefix" != xNONE; then |
---|
2241 | ac_site_file1=$prefix/share/config.site |
---|
2242 | ac_site_file2=$prefix/etc/config.site |
---|
2243 | else |
---|
2244 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
2245 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
2246 | fi |
---|
2247 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
2248 | do |
---|
2249 | test "x$ac_site_file" = xNONE && continue |
---|
2250 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
2251 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
2252 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
2253 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
2254 | . "$ac_site_file" \ |
---|
2255 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2256 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2257 | as_fn_error $? "failed to load site script $ac_site_file |
---|
2258 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2259 | fi |
---|
2260 | done |
---|
2261 | |
---|
2262 | if test -r "$cache_file"; then |
---|
2263 | # Some versions of bash will fail to source /dev/null (special files |
---|
2264 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
2265 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
2266 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2267 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2268 | case $cache_file in |
---|
2269 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2270 | *) . "./$cache_file";; |
---|
2271 | esac |
---|
2272 | fi |
---|
2273 | else |
---|
2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2275 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2276 | >$cache_file |
---|
2277 | fi |
---|
2278 | |
---|
2279 | # Check that the precious variables saved in the cache have kept the same |
---|
2280 | # value. |
---|
2281 | ac_cache_corrupted=false |
---|
2282 | for ac_var in $ac_precious_vars; do |
---|
2283 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2284 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2285 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2286 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2287 | case $ac_old_set,$ac_new_set in |
---|
2288 | set,) |
---|
2289 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2290 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2291 | ac_cache_corrupted=: ;; |
---|
2292 | ,set) |
---|
2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2294 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2295 | ac_cache_corrupted=: ;; |
---|
2296 | ,);; |
---|
2297 | *) |
---|
2298 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2299 | # differences in whitespace do not lead to failure. |
---|
2300 | ac_old_val_w=`echo x $ac_old_val` |
---|
2301 | ac_new_val_w=`echo x $ac_new_val` |
---|
2302 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2303 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2304 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2305 | ac_cache_corrupted=: |
---|
2306 | else |
---|
2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2308 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2309 | eval $ac_var=\$ac_old_val |
---|
2310 | fi |
---|
2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2312 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2313 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2314 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2315 | fi;; |
---|
2316 | esac |
---|
2317 | # Pass precious variables to config.status. |
---|
2318 | if test "$ac_new_set" = set; then |
---|
2319 | case $ac_new_val in |
---|
2320 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2321 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2322 | esac |
---|
2323 | case " $ac_configure_args " in |
---|
2324 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2325 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2326 | esac |
---|
2327 | fi |
---|
2328 | done |
---|
2329 | if $ac_cache_corrupted; then |
---|
2330 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2331 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2332 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2333 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2334 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2335 | fi |
---|
2336 | ## -------------------- ## |
---|
2337 | ## Main body of script. ## |
---|
2338 | ## -------------------- ## |
---|
2339 | |
---|
2340 | ac_ext=c |
---|
2341 | ac_cpp='$CPP $CPPFLAGS' |
---|
2342 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2343 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2344 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2345 | |
---|
2346 | |
---|
2347 | |
---|
2348 | |
---|
2349 | am__api_version='1.11' |
---|
2350 | |
---|
2351 | ac_aux_dir= |
---|
2352 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
---|
2353 | if test -f "$ac_dir/install-sh"; then |
---|
2354 | ac_aux_dir=$ac_dir |
---|
2355 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2356 | break |
---|
2357 | elif test -f "$ac_dir/install.sh"; then |
---|
2358 | ac_aux_dir=$ac_dir |
---|
2359 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2360 | break |
---|
2361 | elif test -f "$ac_dir/shtool"; then |
---|
2362 | ac_aux_dir=$ac_dir |
---|
2363 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2364 | break |
---|
2365 | fi |
---|
2366 | done |
---|
2367 | if test -z "$ac_aux_dir"; then |
---|
2368 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
---|
2369 | fi |
---|
2370 | |
---|
2371 | # These three variables are undocumented and unsupported, |
---|
2372 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2373 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2374 | # whose full name contains unusual characters. |
---|
2375 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2376 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2377 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2378 | |
---|
2379 | |
---|
2380 | # Find a good install program. We prefer a C program (faster), |
---|
2381 | # so one script is as good as another. But avoid the broken or |
---|
2382 | # incompatible versions: |
---|
2383 | # SysV /etc/install, /usr/sbin/install |
---|
2384 | # SunOS /usr/etc/install |
---|
2385 | # IRIX /sbin/install |
---|
2386 | # AIX /bin/install |
---|
2387 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2388 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2389 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2390 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2391 | # OS/2's system install, which has a completely different semantic |
---|
2392 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2393 | # Reject install programs that cannot install multiple files. |
---|
2394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2395 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2396 | if test -z "$INSTALL"; then |
---|
2397 | if ${ac_cv_path_install+:} false; then : |
---|
2398 | $as_echo_n "(cached) " >&6 |
---|
2399 | else |
---|
2400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2401 | for as_dir in $PATH |
---|
2402 | do |
---|
2403 | IFS=$as_save_IFS |
---|
2404 | test -z "$as_dir" && as_dir=. |
---|
2405 | # Account for people who put trailing slashes in PATH elements. |
---|
2406 | case $as_dir/ in #(( |
---|
2407 | ./ | .// | /[cC]/* | \ |
---|
2408 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2409 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2410 | /usr/ucb/* ) ;; |
---|
2411 | *) |
---|
2412 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2413 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2414 | # by default. |
---|
2415 | for ac_prog in ginstall scoinst install; do |
---|
2416 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2417 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
2418 | if test $ac_prog = install && |
---|
2419 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2420 | # AIX install. It has an incompatible calling convention. |
---|
2421 | : |
---|
2422 | elif test $ac_prog = install && |
---|
2423 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2424 | # program-specific install script used by HP pwplus--don't use. |
---|
2425 | : |
---|
2426 | else |
---|
2427 | rm -rf conftest.one conftest.two conftest.dir |
---|
2428 | echo one > conftest.one |
---|
2429 | echo two > conftest.two |
---|
2430 | mkdir conftest.dir |
---|
2431 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2432 | test -s conftest.one && test -s conftest.two && |
---|
2433 | test -s conftest.dir/conftest.one && |
---|
2434 | test -s conftest.dir/conftest.two |
---|
2435 | then |
---|
2436 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2437 | break 3 |
---|
2438 | fi |
---|
2439 | fi |
---|
2440 | fi |
---|
2441 | done |
---|
2442 | done |
---|
2443 | ;; |
---|
2444 | esac |
---|
2445 | |
---|
2446 | done |
---|
2447 | IFS=$as_save_IFS |
---|
2448 | |
---|
2449 | rm -rf conftest.one conftest.two conftest.dir |
---|
2450 | |
---|
2451 | fi |
---|
2452 | if test "${ac_cv_path_install+set}" = set; then |
---|
2453 | INSTALL=$ac_cv_path_install |
---|
2454 | else |
---|
2455 | # As a last resort, use the slow shell script. Don't cache a |
---|
2456 | # value for INSTALL within a source directory, because that will |
---|
2457 | # break other packages using the cache if that directory is |
---|
2458 | # removed, or if the value is a relative name. |
---|
2459 | INSTALL=$ac_install_sh |
---|
2460 | fi |
---|
2461 | fi |
---|
2462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2463 | $as_echo "$INSTALL" >&6; } |
---|
2464 | |
---|
2465 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2466 | # It thinks the first close brace ends the variable substitution. |
---|
2467 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2468 | |
---|
2469 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2470 | |
---|
2471 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2472 | |
---|
2473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
---|
2474 | $as_echo_n "checking whether build environment is sane... " >&6; } |
---|
2475 | # Just in case |
---|
2476 | sleep 1 |
---|
2477 | echo timestamp > conftest.file |
---|
2478 | # Reject unsafe characters in $srcdir or the absolute working directory |
---|
2479 | # name. Accept space and tab only in the latter. |
---|
2480 | am_lf=' |
---|
2481 | ' |
---|
2482 | case `pwd` in |
---|
2483 | *[\\\"\#\$\&\'\`$am_lf]*) |
---|
2484 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
---|
2485 | esac |
---|
2486 | case $srcdir in |
---|
2487 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
---|
2488 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
---|
2489 | esac |
---|
2490 | |
---|
2491 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
2492 | # arguments. Must try -L first in case configure is actually a |
---|
2493 | # symlink; some systems play weird games with the mod time of symlinks |
---|
2494 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
2495 | # directory). |
---|
2496 | if ( |
---|
2497 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
---|
2498 | if test "$*" = "X"; then |
---|
2499 | # -L didn't work. |
---|
2500 | set X `ls -t "$srcdir/configure" conftest.file` |
---|
2501 | fi |
---|
2502 | rm -f conftest.file |
---|
2503 | if test "$*" != "X $srcdir/configure conftest.file" \ |
---|
2504 | && test "$*" != "X conftest.file $srcdir/configure"; then |
---|
2505 | |
---|
2506 | # If neither matched, then we have a broken ls. This can happen |
---|
2507 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
2508 | # broken ls alias from the environment. This has actually |
---|
2509 | # happened. Such a system could not be considered "sane". |
---|
2510 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
---|
2511 | alias in your environment" "$LINENO" 5 |
---|
2512 | fi |
---|
2513 | |
---|
2514 | test "$2" = conftest.file |
---|
2515 | ) |
---|
2516 | then |
---|
2517 | # Ok. |
---|
2518 | : |
---|
2519 | else |
---|
2520 | as_fn_error $? "newly created file is older than distributed files! |
---|
2521 | Check your system clock" "$LINENO" 5 |
---|
2522 | fi |
---|
2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2524 | $as_echo "yes" >&6; } |
---|
2525 | test "$program_prefix" != NONE && |
---|
2526 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
---|
2527 | # Use a double $ so make ignores it. |
---|
2528 | test "$program_suffix" != NONE && |
---|
2529 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
---|
2530 | # Double any \ or $. |
---|
2531 | # By default was `s,x,x', remove it if useless. |
---|
2532 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
---|
2533 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
---|
2534 | |
---|
2535 | # expand $ac_aux_dir to an absolute path |
---|
2536 | am_aux_dir=`cd $ac_aux_dir && pwd` |
---|
2537 | |
---|
2538 | if test x"${MISSING+set}" != xset; then |
---|
2539 | case $am_aux_dir in |
---|
2540 | *\ * | *\ *) |
---|
2541 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
---|
2542 | *) |
---|
2543 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
---|
2544 | esac |
---|
2545 | fi |
---|
2546 | # Use eval to expand $SHELL |
---|
2547 | if eval "$MISSING --run true"; then |
---|
2548 | am_missing_run="$MISSING --run " |
---|
2549 | else |
---|
2550 | am_missing_run= |
---|
2551 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
---|
2552 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
---|
2553 | fi |
---|
2554 | |
---|
2555 | if test x"${install_sh}" != xset; then |
---|
2556 | case $am_aux_dir in |
---|
2557 | *\ * | *\ *) |
---|
2558 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
---|
2559 | *) |
---|
2560 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
---|
2561 | esac |
---|
2562 | fi |
---|
2563 | |
---|
2564 | # Installed binaries are usually stripped using `strip' when the user |
---|
2565 | # run `make install-strip'. However `strip' might not be the right |
---|
2566 | # tool to use in cross-compilation environments, therefore Automake |
---|
2567 | # will honor the `STRIP' environment variable to overrule this program. |
---|
2568 | if test "$cross_compiling" != no; then |
---|
2569 | if test -n "$ac_tool_prefix"; then |
---|
2570 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
2571 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
2572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2573 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2574 | if ${ac_cv_prog_STRIP+:} false; then : |
---|
2575 | $as_echo_n "(cached) " >&6 |
---|
2576 | else |
---|
2577 | if test -n "$STRIP"; then |
---|
2578 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
2579 | else |
---|
2580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2581 | for as_dir in $PATH |
---|
2582 | do |
---|
2583 | IFS=$as_save_IFS |
---|
2584 | test -z "$as_dir" && as_dir=. |
---|
2585 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2586 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2587 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
2588 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2589 | break 2 |
---|
2590 | fi |
---|
2591 | done |
---|
2592 | done |
---|
2593 | IFS=$as_save_IFS |
---|
2594 | |
---|
2595 | fi |
---|
2596 | fi |
---|
2597 | STRIP=$ac_cv_prog_STRIP |
---|
2598 | if test -n "$STRIP"; then |
---|
2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
---|
2600 | $as_echo "$STRIP" >&6; } |
---|
2601 | else |
---|
2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2603 | $as_echo "no" >&6; } |
---|
2604 | fi |
---|
2605 | |
---|
2606 | |
---|
2607 | fi |
---|
2608 | if test -z "$ac_cv_prog_STRIP"; then |
---|
2609 | ac_ct_STRIP=$STRIP |
---|
2610 | # Extract the first word of "strip", so it can be a program name with args. |
---|
2611 | set dummy strip; ac_word=$2 |
---|
2612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2613 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2614 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
---|
2615 | $as_echo_n "(cached) " >&6 |
---|
2616 | else |
---|
2617 | if test -n "$ac_ct_STRIP"; then |
---|
2618 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
2619 | else |
---|
2620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2621 | for as_dir in $PATH |
---|
2622 | do |
---|
2623 | IFS=$as_save_IFS |
---|
2624 | test -z "$as_dir" && as_dir=. |
---|
2625 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2626 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2627 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
2628 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2629 | break 2 |
---|
2630 | fi |
---|
2631 | done |
---|
2632 | done |
---|
2633 | IFS=$as_save_IFS |
---|
2634 | |
---|
2635 | fi |
---|
2636 | fi |
---|
2637 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
2638 | if test -n "$ac_ct_STRIP"; then |
---|
2639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
---|
2640 | $as_echo "$ac_ct_STRIP" >&6; } |
---|
2641 | else |
---|
2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2643 | $as_echo "no" >&6; } |
---|
2644 | fi |
---|
2645 | |
---|
2646 | if test "x$ac_ct_STRIP" = x; then |
---|
2647 | STRIP=":" |
---|
2648 | else |
---|
2649 | case $cross_compiling:$ac_tool_warned in |
---|
2650 | yes:) |
---|
2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2652 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2653 | ac_tool_warned=yes ;; |
---|
2654 | esac |
---|
2655 | STRIP=$ac_ct_STRIP |
---|
2656 | fi |
---|
2657 | else |
---|
2658 | STRIP="$ac_cv_prog_STRIP" |
---|
2659 | fi |
---|
2660 | |
---|
2661 | fi |
---|
2662 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
---|
2663 | |
---|
2664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
2665 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
2666 | if test -z "$MKDIR_P"; then |
---|
2667 | if ${ac_cv_path_mkdir+:} false; then : |
---|
2668 | $as_echo_n "(cached) " >&6 |
---|
2669 | else |
---|
2670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2671 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
2672 | do |
---|
2673 | IFS=$as_save_IFS |
---|
2674 | test -z "$as_dir" && as_dir=. |
---|
2675 | for ac_prog in mkdir gmkdir; do |
---|
2676 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2677 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
---|
2678 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
2679 | 'mkdir (GNU coreutils) '* | \ |
---|
2680 | 'mkdir (coreutils) '* | \ |
---|
2681 | 'mkdir (fileutils) '4.1*) |
---|
2682 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
2683 | break 3;; |
---|
2684 | esac |
---|
2685 | done |
---|
2686 | done |
---|
2687 | done |
---|
2688 | IFS=$as_save_IFS |
---|
2689 | |
---|
2690 | fi |
---|
2691 | |
---|
2692 | test -d ./--version && rmdir ./--version |
---|
2693 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2694 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
2695 | else |
---|
2696 | # As a last resort, use the slow shell script. Don't cache a |
---|
2697 | # value for MKDIR_P within a source directory, because that will |
---|
2698 | # break other packages using the cache if that directory is |
---|
2699 | # removed, or if the value is a relative name. |
---|
2700 | MKDIR_P="$ac_install_sh -d" |
---|
2701 | fi |
---|
2702 | fi |
---|
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
2704 | $as_echo "$MKDIR_P" >&6; } |
---|
2705 | |
---|
2706 | mkdir_p="$MKDIR_P" |
---|
2707 | case $mkdir_p in |
---|
2708 | [\\/$]* | ?:[\\/]*) ;; |
---|
2709 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
---|
2710 | esac |
---|
2711 | |
---|
2712 | for ac_prog in gawk mawk nawk awk |
---|
2713 | do |
---|
2714 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2715 | set dummy $ac_prog; ac_word=$2 |
---|
2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2717 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2718 | if ${ac_cv_prog_AWK+:} false; then : |
---|
2719 | $as_echo_n "(cached) " >&6 |
---|
2720 | else |
---|
2721 | if test -n "$AWK"; then |
---|
2722 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
2723 | else |
---|
2724 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2725 | for as_dir in $PATH |
---|
2726 | do |
---|
2727 | IFS=$as_save_IFS |
---|
2728 | test -z "$as_dir" && as_dir=. |
---|
2729 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2730 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2731 | ac_cv_prog_AWK="$ac_prog" |
---|
2732 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2733 | break 2 |
---|
2734 | fi |
---|
2735 | done |
---|
2736 | done |
---|
2737 | IFS=$as_save_IFS |
---|
2738 | |
---|
2739 | fi |
---|
2740 | fi |
---|
2741 | AWK=$ac_cv_prog_AWK |
---|
2742 | if test -n "$AWK"; then |
---|
2743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
---|
2744 | $as_echo "$AWK" >&6; } |
---|
2745 | else |
---|
2746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2747 | $as_echo "no" >&6; } |
---|
2748 | fi |
---|
2749 | |
---|
2750 | |
---|
2751 | test -n "$AWK" && break |
---|
2752 | done |
---|
2753 | |
---|
2754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
2755 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
2756 | set x ${MAKE-make} |
---|
2757 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
2758 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
2759 | $as_echo_n "(cached) " >&6 |
---|
2760 | else |
---|
2761 | cat >conftest.make <<\_ACEOF |
---|
2762 | SHELL = /bin/sh |
---|
2763 | all: |
---|
2764 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
2765 | _ACEOF |
---|
2766 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
2767 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
2768 | *@@@%%%=?*=@@@%%%*) |
---|
2769 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
2770 | *) |
---|
2771 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
2772 | esac |
---|
2773 | rm -f conftest.make |
---|
2774 | fi |
---|
2775 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
2776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2777 | $as_echo "yes" >&6; } |
---|
2778 | SET_MAKE= |
---|
2779 | else |
---|
2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2781 | $as_echo "no" >&6; } |
---|
2782 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2783 | fi |
---|
2784 | |
---|
2785 | rm -rf .tst 2>/dev/null |
---|
2786 | mkdir .tst 2>/dev/null |
---|
2787 | if test -d .tst; then |
---|
2788 | am__leading_dot=. |
---|
2789 | else |
---|
2790 | am__leading_dot=_ |
---|
2791 | fi |
---|
2792 | rmdir .tst 2>/dev/null |
---|
2793 | |
---|
2794 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
---|
2795 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
---|
2796 | # is not polluted with repeated "-I." |
---|
2797 | am__isrc=' -I$(srcdir)' |
---|
2798 | # test to see if srcdir already configured |
---|
2799 | if test -f $srcdir/config.status; then |
---|
2800 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
---|
2801 | fi |
---|
2802 | fi |
---|
2803 | |
---|
2804 | # test whether we have cygpath |
---|
2805 | if test -z "$CYGPATH_W"; then |
---|
2806 | if (cygpath --version) >/dev/null 2>/dev/null; then |
---|
2807 | CYGPATH_W='cygpath -w' |
---|
2808 | else |
---|
2809 | CYGPATH_W=echo |
---|
2810 | fi |
---|
2811 | fi |
---|
2812 | |
---|
2813 | |
---|
2814 | # Define the identity of the package. |
---|
2815 | PACKAGE='dspam' |
---|
2816 | VERSION='3.10.2' |
---|
2817 | |
---|
2818 | |
---|
2819 | cat >>confdefs.h <<_ACEOF |
---|
2820 | #define PACKAGE "$PACKAGE" |
---|
2821 | _ACEOF |
---|
2822 | |
---|
2823 | |
---|
2824 | cat >>confdefs.h <<_ACEOF |
---|
2825 | #define VERSION "$VERSION" |
---|
2826 | _ACEOF |
---|
2827 | |
---|
2828 | # Some tools Automake needs. |
---|
2829 | |
---|
2830 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
---|
2831 | |
---|
2832 | |
---|
2833 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
---|
2834 | |
---|
2835 | |
---|
2836 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
---|
2837 | |
---|
2838 | |
---|
2839 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
---|
2840 | |
---|
2841 | |
---|
2842 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
---|
2843 | |
---|
2844 | # We need awk for the "check" target. The system "awk" is bad on |
---|
2845 | # some platforms. |
---|
2846 | # Always define AMTAR for backward compatibility. |
---|
2847 | |
---|
2848 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
---|
2849 | |
---|
2850 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
---|
2851 | |
---|
2852 | |
---|
2853 | |
---|
2854 | |
---|
2855 | |
---|
2856 | |
---|
2857 | # Make sure we can run config.sub. |
---|
2858 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
---|
2859 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
---|
2860 | |
---|
2861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
---|
2862 | $as_echo_n "checking build system type... " >&6; } |
---|
2863 | if ${ac_cv_build+:} false; then : |
---|
2864 | $as_echo_n "(cached) " >&6 |
---|
2865 | else |
---|
2866 | ac_build_alias=$build_alias |
---|
2867 | test "x$ac_build_alias" = x && |
---|
2868 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
---|
2869 | test "x$ac_build_alias" = x && |
---|
2870 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
---|
2871 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
---|
2872 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
---|
2873 | |
---|
2874 | fi |
---|
2875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
---|
2876 | $as_echo "$ac_cv_build" >&6; } |
---|
2877 | case $ac_cv_build in |
---|
2878 | *-*-*) ;; |
---|
2879 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
---|
2880 | esac |
---|
2881 | build=$ac_cv_build |
---|
2882 | ac_save_IFS=$IFS; IFS='-' |
---|
2883 | set x $ac_cv_build |
---|
2884 | shift |
---|
2885 | build_cpu=$1 |
---|
2886 | build_vendor=$2 |
---|
2887 | shift; shift |
---|
2888 | # Remember, the first character of IFS is used to create $*, |
---|
2889 | # except with old shells: |
---|
2890 | build_os=$* |
---|
2891 | IFS=$ac_save_IFS |
---|
2892 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
2893 | |
---|
2894 | |
---|
2895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
---|
2896 | $as_echo_n "checking host system type... " >&6; } |
---|
2897 | if ${ac_cv_host+:} false; then : |
---|
2898 | $as_echo_n "(cached) " >&6 |
---|
2899 | else |
---|
2900 | if test "x$host_alias" = x; then |
---|
2901 | ac_cv_host=$ac_cv_build |
---|
2902 | else |
---|
2903 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
---|
2904 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
---|
2905 | fi |
---|
2906 | |
---|
2907 | fi |
---|
2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
---|
2909 | $as_echo "$ac_cv_host" >&6; } |
---|
2910 | case $ac_cv_host in |
---|
2911 | *-*-*) ;; |
---|
2912 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
---|
2913 | esac |
---|
2914 | host=$ac_cv_host |
---|
2915 | ac_save_IFS=$IFS; IFS='-' |
---|
2916 | set x $ac_cv_host |
---|
2917 | shift |
---|
2918 | host_cpu=$1 |
---|
2919 | host_vendor=$2 |
---|
2920 | shift; shift |
---|
2921 | # Remember, the first character of IFS is used to create $*, |
---|
2922 | # except with old shells: |
---|
2923 | host_os=$* |
---|
2924 | IFS=$ac_save_IFS |
---|
2925 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
2926 | |
---|
2927 | |
---|
2928 | |
---|
2929 | #--------------------------------------------------------- |
---|
2930 | # C language relative |
---|
2931 | ac_ext=c |
---|
2932 | ac_cpp='$CPP $CPPFLAGS' |
---|
2933 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2934 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2935 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2936 | |
---|
2937 | ac_ext=c |
---|
2938 | ac_cpp='$CPP $CPPFLAGS' |
---|
2939 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2940 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2941 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2942 | if test -n "$ac_tool_prefix"; then |
---|
2943 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2944 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2946 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2947 | if ${ac_cv_prog_CC+:} false; then : |
---|
2948 | $as_echo_n "(cached) " >&6 |
---|
2949 | else |
---|
2950 | if test -n "$CC"; then |
---|
2951 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2952 | else |
---|
2953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2954 | for as_dir in $PATH |
---|
2955 | do |
---|
2956 | IFS=$as_save_IFS |
---|
2957 | test -z "$as_dir" && as_dir=. |
---|
2958 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2959 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2960 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2962 | break 2 |
---|
2963 | fi |
---|
2964 | done |
---|
2965 | done |
---|
2966 | IFS=$as_save_IFS |
---|
2967 | |
---|
2968 | fi |
---|
2969 | fi |
---|
2970 | CC=$ac_cv_prog_CC |
---|
2971 | if test -n "$CC"; then |
---|
2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2973 | $as_echo "$CC" >&6; } |
---|
2974 | else |
---|
2975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2976 | $as_echo "no" >&6; } |
---|
2977 | fi |
---|
2978 | |
---|
2979 | |
---|
2980 | fi |
---|
2981 | if test -z "$ac_cv_prog_CC"; then |
---|
2982 | ac_ct_CC=$CC |
---|
2983 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2984 | set dummy gcc; ac_word=$2 |
---|
2985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2986 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2987 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
2988 | $as_echo_n "(cached) " >&6 |
---|
2989 | else |
---|
2990 | if test -n "$ac_ct_CC"; then |
---|
2991 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2992 | else |
---|
2993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2994 | for as_dir in $PATH |
---|
2995 | do |
---|
2996 | IFS=$as_save_IFS |
---|
2997 | test -z "$as_dir" && as_dir=. |
---|
2998 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2999 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3000 | ac_cv_prog_ac_ct_CC="gcc" |
---|
3001 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3002 | break 2 |
---|
3003 | fi |
---|
3004 | done |
---|
3005 | done |
---|
3006 | IFS=$as_save_IFS |
---|
3007 | |
---|
3008 | fi |
---|
3009 | fi |
---|
3010 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
3011 | if test -n "$ac_ct_CC"; then |
---|
3012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
3013 | $as_echo "$ac_ct_CC" >&6; } |
---|
3014 | else |
---|
3015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3016 | $as_echo "no" >&6; } |
---|
3017 | fi |
---|
3018 | |
---|
3019 | if test "x$ac_ct_CC" = x; then |
---|
3020 | CC="" |
---|
3021 | else |
---|
3022 | case $cross_compiling:$ac_tool_warned in |
---|
3023 | yes:) |
---|
3024 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3025 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3026 | ac_tool_warned=yes ;; |
---|
3027 | esac |
---|
3028 | CC=$ac_ct_CC |
---|
3029 | fi |
---|
3030 | else |
---|
3031 | CC="$ac_cv_prog_CC" |
---|
3032 | fi |
---|
3033 | |
---|
3034 | if test -z "$CC"; then |
---|
3035 | if test -n "$ac_tool_prefix"; then |
---|
3036 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
3037 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
3038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3039 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3040 | if ${ac_cv_prog_CC+:} false; then : |
---|
3041 | $as_echo_n "(cached) " >&6 |
---|
3042 | else |
---|
3043 | if test -n "$CC"; then |
---|
3044 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3045 | else |
---|
3046 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3047 | for as_dir in $PATH |
---|
3048 | do |
---|
3049 | IFS=$as_save_IFS |
---|
3050 | test -z "$as_dir" && as_dir=. |
---|
3051 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3052 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3053 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
3054 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3055 | break 2 |
---|
3056 | fi |
---|
3057 | done |
---|
3058 | done |
---|
3059 | IFS=$as_save_IFS |
---|
3060 | |
---|
3061 | fi |
---|
3062 | fi |
---|
3063 | CC=$ac_cv_prog_CC |
---|
3064 | if test -n "$CC"; then |
---|
3065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3066 | $as_echo "$CC" >&6; } |
---|
3067 | else |
---|
3068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3069 | $as_echo "no" >&6; } |
---|
3070 | fi |
---|
3071 | |
---|
3072 | |
---|
3073 | fi |
---|
3074 | fi |
---|
3075 | if test -z "$CC"; then |
---|
3076 | # Extract the first word of "cc", so it can be a program name with args. |
---|
3077 | set dummy cc; ac_word=$2 |
---|
3078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3079 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3080 | if ${ac_cv_prog_CC+:} false; then : |
---|
3081 | $as_echo_n "(cached) " >&6 |
---|
3082 | else |
---|
3083 | if test -n "$CC"; then |
---|
3084 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3085 | else |
---|
3086 | ac_prog_rejected=no |
---|
3087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3088 | for as_dir in $PATH |
---|
3089 | do |
---|
3090 | IFS=$as_save_IFS |
---|
3091 | test -z "$as_dir" && as_dir=. |
---|
3092 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3093 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3094 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
3095 | ac_prog_rejected=yes |
---|
3096 | continue |
---|
3097 | fi |
---|
3098 | ac_cv_prog_CC="cc" |
---|
3099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3100 | break 2 |
---|
3101 | fi |
---|
3102 | done |
---|
3103 | done |
---|
3104 | IFS=$as_save_IFS |
---|
3105 | |
---|
3106 | if test $ac_prog_rejected = yes; then |
---|
3107 | # We found a bogon in the path, so make sure we never use it. |
---|
3108 | set dummy $ac_cv_prog_CC |
---|
3109 | shift |
---|
3110 | if test $# != 0; then |
---|
3111 | # We chose a different compiler from the bogus one. |
---|
3112 | # However, it has the same basename, so the bogon will be chosen |
---|
3113 | # first if we set CC to just the basename; use the full file name. |
---|
3114 | shift |
---|
3115 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
3116 | fi |
---|
3117 | fi |
---|
3118 | fi |
---|
3119 | fi |
---|
3120 | CC=$ac_cv_prog_CC |
---|
3121 | if test -n "$CC"; then |
---|
3122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3123 | $as_echo "$CC" >&6; } |
---|
3124 | else |
---|
3125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3126 | $as_echo "no" >&6; } |
---|
3127 | fi |
---|
3128 | |
---|
3129 | |
---|
3130 | fi |
---|
3131 | if test -z "$CC"; then |
---|
3132 | if test -n "$ac_tool_prefix"; then |
---|
3133 | for ac_prog in cl.exe |
---|
3134 | do |
---|
3135 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
3136 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
3137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3138 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3139 | if ${ac_cv_prog_CC+:} false; then : |
---|
3140 | $as_echo_n "(cached) " >&6 |
---|
3141 | else |
---|
3142 | if test -n "$CC"; then |
---|
3143 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
3144 | else |
---|
3145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3146 | for as_dir in $PATH |
---|
3147 | do |
---|
3148 | IFS=$as_save_IFS |
---|
3149 | test -z "$as_dir" && as_dir=. |
---|
3150 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3151 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3152 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
3153 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3154 | break 2 |
---|
3155 | fi |
---|
3156 | done |
---|
3157 | done |
---|
3158 | IFS=$as_save_IFS |
---|
3159 | |
---|
3160 | fi |
---|
3161 | fi |
---|
3162 | CC=$ac_cv_prog_CC |
---|
3163 | if test -n "$CC"; then |
---|
3164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
3165 | $as_echo "$CC" >&6; } |
---|
3166 | else |
---|
3167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3168 | $as_echo "no" >&6; } |
---|
3169 | fi |
---|
3170 | |
---|
3171 | |
---|
3172 | test -n "$CC" && break |
---|
3173 | done |
---|
3174 | fi |
---|
3175 | if test -z "$CC"; then |
---|
3176 | ac_ct_CC=$CC |
---|
3177 | for ac_prog in cl.exe |
---|
3178 | do |
---|
3179 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
3180 | set dummy $ac_prog; ac_word=$2 |
---|
3181 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3182 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3183 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
3184 | $as_echo_n "(cached) " >&6 |
---|
3185 | else |
---|
3186 | if test -n "$ac_ct_CC"; then |
---|
3187 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
3188 | else |
---|
3189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3190 | for as_dir in $PATH |
---|
3191 | do |
---|
3192 | IFS=$as_save_IFS |
---|
3193 | test -z "$as_dir" && as_dir=. |
---|
3194 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3195 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3196 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
3197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3198 | break 2 |
---|
3199 | fi |
---|
3200 | done |
---|
3201 | done |
---|
3202 | IFS=$as_save_IFS |
---|
3203 | |
---|
3204 | fi |
---|
3205 | fi |
---|
3206 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
3207 | if test -n "$ac_ct_CC"; then |
---|
3208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
3209 | $as_echo "$ac_ct_CC" >&6; } |
---|
3210 | else |
---|
3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3212 | $as_echo "no" >&6; } |
---|
3213 | fi |
---|
3214 | |
---|
3215 | |
---|
3216 | test -n "$ac_ct_CC" && break |
---|
3217 | done |
---|
3218 | |
---|
3219 | if test "x$ac_ct_CC" = x; then |
---|
3220 | CC="" |
---|
3221 | else |
---|
3222 | case $cross_compiling:$ac_tool_warned in |
---|
3223 | yes:) |
---|
3224 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
3225 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
3226 | ac_tool_warned=yes ;; |
---|
3227 | esac |
---|
3228 | CC=$ac_ct_CC |
---|
3229 | fi |
---|
3230 | fi |
---|
3231 | |
---|
3232 | fi |
---|
3233 | |
---|
3234 | |
---|
3235 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3236 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3237 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
3238 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3239 | |
---|
3240 | # Provide some information about the compiler. |
---|
3241 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
3242 | set X $ac_compile |
---|
3243 | ac_compiler=$2 |
---|
3244 | for ac_option in --version -v -V -qversion; do |
---|
3245 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
3246 | case "(($ac_try" in |
---|
3247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3248 | *) ac_try_echo=$ac_try;; |
---|
3249 | esac |
---|
3250 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3251 | $as_echo "$ac_try_echo"; } >&5 |
---|
3252 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
3253 | ac_status=$? |
---|
3254 | if test -s conftest.err; then |
---|
3255 | sed '10a\ |
---|
3256 | ... rest of stderr output deleted ... |
---|
3257 | 10q' conftest.err >conftest.er1 |
---|
3258 | cat conftest.er1 >&5 |
---|
3259 | fi |
---|
3260 | rm -f conftest.er1 conftest.err |
---|
3261 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3262 | test $ac_status = 0; } |
---|
3263 | done |
---|
3264 | |
---|
3265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3266 | /* end confdefs.h. */ |
---|
3267 | |
---|
3268 | int |
---|
3269 | main () |
---|
3270 | { |
---|
3271 | |
---|
3272 | ; |
---|
3273 | return 0; |
---|
3274 | } |
---|
3275 | _ACEOF |
---|
3276 | ac_clean_files_save=$ac_clean_files |
---|
3277 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
3278 | # Try to create an executable without -o first, disregard a.out. |
---|
3279 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
3280 | # of exeext. |
---|
3281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
---|
3282 | $as_echo_n "checking whether the C compiler works... " >&6; } |
---|
3283 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
3284 | |
---|
3285 | # The possible output files: |
---|
3286 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
3287 | |
---|
3288 | ac_rmfiles= |
---|
3289 | for ac_file in $ac_files |
---|
3290 | do |
---|
3291 | case $ac_file in |
---|
3292 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3293 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
3294 | esac |
---|
3295 | done |
---|
3296 | rm -f $ac_rmfiles |
---|
3297 | |
---|
3298 | if { { ac_try="$ac_link_default" |
---|
3299 | case "(($ac_try" in |
---|
3300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3301 | *) ac_try_echo=$ac_try;; |
---|
3302 | esac |
---|
3303 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3304 | $as_echo "$ac_try_echo"; } >&5 |
---|
3305 | (eval "$ac_link_default") 2>&5 |
---|
3306 | ac_status=$? |
---|
3307 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3308 | test $ac_status = 0; }; then : |
---|
3309 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
3310 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
3311 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
3312 | # so that the user can short-circuit this test for compilers unknown to |
---|
3313 | # Autoconf. |
---|
3314 | for ac_file in $ac_files '' |
---|
3315 | do |
---|
3316 | test -f "$ac_file" || continue |
---|
3317 | case $ac_file in |
---|
3318 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
3319 | ;; |
---|
3320 | [ab].out ) |
---|
3321 | # We found the default executable, but exeext='' is most |
---|
3322 | # certainly right. |
---|
3323 | break;; |
---|
3324 | *.* ) |
---|
3325 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
3326 | then :; else |
---|
3327 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3328 | fi |
---|
3329 | # We set ac_cv_exeext here because the later test for it is not |
---|
3330 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
3331 | # argument, so we may need to know it at that point already. |
---|
3332 | # Even if this section looks crufty: it has the advantage of |
---|
3333 | # actually working. |
---|
3334 | break;; |
---|
3335 | * ) |
---|
3336 | break;; |
---|
3337 | esac |
---|
3338 | done |
---|
3339 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
3340 | |
---|
3341 | else |
---|
3342 | ac_file='' |
---|
3343 | fi |
---|
3344 | if test -z "$ac_file"; then : |
---|
3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3346 | $as_echo "no" >&6; } |
---|
3347 | $as_echo "$as_me: failed program was:" >&5 |
---|
3348 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3349 | |
---|
3350 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3351 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3352 | as_fn_error 77 "C compiler cannot create executables |
---|
3353 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3354 | else |
---|
3355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
3356 | $as_echo "yes" >&6; } |
---|
3357 | fi |
---|
3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
---|
3359 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
---|
3360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
3361 | $as_echo "$ac_file" >&6; } |
---|
3362 | ac_exeext=$ac_cv_exeext |
---|
3363 | |
---|
3364 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
3365 | ac_clean_files=$ac_clean_files_save |
---|
3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
3367 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
3368 | if { { ac_try="$ac_link" |
---|
3369 | case "(($ac_try" in |
---|
3370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3371 | *) ac_try_echo=$ac_try;; |
---|
3372 | esac |
---|
3373 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3374 | $as_echo "$ac_try_echo"; } >&5 |
---|
3375 | (eval "$ac_link") 2>&5 |
---|
3376 | ac_status=$? |
---|
3377 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3378 | test $ac_status = 0; }; then : |
---|
3379 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
3380 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
3381 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
3382 | # `rm'. |
---|
3383 | for ac_file in conftest.exe conftest conftest.*; do |
---|
3384 | test -f "$ac_file" || continue |
---|
3385 | case $ac_file in |
---|
3386 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
3387 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
3388 | break;; |
---|
3389 | * ) break;; |
---|
3390 | esac |
---|
3391 | done |
---|
3392 | else |
---|
3393 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3394 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3395 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
3396 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3397 | fi |
---|
3398 | rm -f conftest conftest$ac_cv_exeext |
---|
3399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
3400 | $as_echo "$ac_cv_exeext" >&6; } |
---|
3401 | |
---|
3402 | rm -f conftest.$ac_ext |
---|
3403 | EXEEXT=$ac_cv_exeext |
---|
3404 | ac_exeext=$EXEEXT |
---|
3405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3406 | /* end confdefs.h. */ |
---|
3407 | #include <stdio.h> |
---|
3408 | int |
---|
3409 | main () |
---|
3410 | { |
---|
3411 | FILE *f = fopen ("conftest.out", "w"); |
---|
3412 | return ferror (f) || fclose (f) != 0; |
---|
3413 | |
---|
3414 | ; |
---|
3415 | return 0; |
---|
3416 | } |
---|
3417 | _ACEOF |
---|
3418 | ac_clean_files="$ac_clean_files conftest.out" |
---|
3419 | # Check that the compiler produces executables we can run. If not, either |
---|
3420 | # the compiler is broken, or we cross compile. |
---|
3421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
3422 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
3423 | if test "$cross_compiling" != yes; then |
---|
3424 | { { ac_try="$ac_link" |
---|
3425 | case "(($ac_try" in |
---|
3426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3427 | *) ac_try_echo=$ac_try;; |
---|
3428 | esac |
---|
3429 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3430 | $as_echo "$ac_try_echo"; } >&5 |
---|
3431 | (eval "$ac_link") 2>&5 |
---|
3432 | ac_status=$? |
---|
3433 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3434 | test $ac_status = 0; } |
---|
3435 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3436 | { { case "(($ac_try" in |
---|
3437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3438 | *) ac_try_echo=$ac_try;; |
---|
3439 | esac |
---|
3440 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3441 | $as_echo "$ac_try_echo"; } >&5 |
---|
3442 | (eval "$ac_try") 2>&5 |
---|
3443 | ac_status=$? |
---|
3444 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3445 | test $ac_status = 0; }; }; then |
---|
3446 | cross_compiling=no |
---|
3447 | else |
---|
3448 | if test "$cross_compiling" = maybe; then |
---|
3449 | cross_compiling=yes |
---|
3450 | else |
---|
3451 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3452 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3453 | as_fn_error $? "cannot run C compiled programs. |
---|
3454 | If you meant to cross compile, use \`--host'. |
---|
3455 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3456 | fi |
---|
3457 | fi |
---|
3458 | fi |
---|
3459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3460 | $as_echo "$cross_compiling" >&6; } |
---|
3461 | |
---|
3462 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3463 | ac_clean_files=$ac_clean_files_save |
---|
3464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3465 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3466 | if ${ac_cv_objext+:} false; then : |
---|
3467 | $as_echo_n "(cached) " >&6 |
---|
3468 | else |
---|
3469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3470 | /* end confdefs.h. */ |
---|
3471 | |
---|
3472 | int |
---|
3473 | main () |
---|
3474 | { |
---|
3475 | |
---|
3476 | ; |
---|
3477 | return 0; |
---|
3478 | } |
---|
3479 | _ACEOF |
---|
3480 | rm -f conftest.o conftest.obj |
---|
3481 | if { { ac_try="$ac_compile" |
---|
3482 | case "(($ac_try" in |
---|
3483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3484 | *) ac_try_echo=$ac_try;; |
---|
3485 | esac |
---|
3486 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3487 | $as_echo "$ac_try_echo"; } >&5 |
---|
3488 | (eval "$ac_compile") 2>&5 |
---|
3489 | ac_status=$? |
---|
3490 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3491 | test $ac_status = 0; }; then : |
---|
3492 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3493 | test -f "$ac_file" || continue; |
---|
3494 | case $ac_file in |
---|
3495 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3496 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3497 | break;; |
---|
3498 | esac |
---|
3499 | done |
---|
3500 | else |
---|
3501 | $as_echo "$as_me: failed program was:" >&5 |
---|
3502 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3503 | |
---|
3504 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3505 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3506 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3507 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3508 | fi |
---|
3509 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3510 | fi |
---|
3511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3512 | $as_echo "$ac_cv_objext" >&6; } |
---|
3513 | OBJEXT=$ac_cv_objext |
---|
3514 | ac_objext=$OBJEXT |
---|
3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
3516 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
3517 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
3518 | $as_echo_n "(cached) " >&6 |
---|
3519 | else |
---|
3520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3521 | /* end confdefs.h. */ |
---|
3522 | |
---|
3523 | int |
---|
3524 | main () |
---|
3525 | { |
---|
3526 | #ifndef __GNUC__ |
---|
3527 | choke me |
---|
3528 | #endif |
---|
3529 | |
---|
3530 | ; |
---|
3531 | return 0; |
---|
3532 | } |
---|
3533 | _ACEOF |
---|
3534 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3535 | ac_compiler_gnu=yes |
---|
3536 | else |
---|
3537 | ac_compiler_gnu=no |
---|
3538 | fi |
---|
3539 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3540 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3541 | |
---|
3542 | fi |
---|
3543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3544 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
3545 | if test $ac_compiler_gnu = yes; then |
---|
3546 | GCC=yes |
---|
3547 | else |
---|
3548 | GCC= |
---|
3549 | fi |
---|
3550 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3551 | ac_save_CFLAGS=$CFLAGS |
---|
3552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
3553 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
3554 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
3555 | $as_echo_n "(cached) " >&6 |
---|
3556 | else |
---|
3557 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
3558 | ac_c_werror_flag=yes |
---|
3559 | ac_cv_prog_cc_g=no |
---|
3560 | CFLAGS="-g" |
---|
3561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3562 | /* end confdefs.h. */ |
---|
3563 | |
---|
3564 | int |
---|
3565 | main () |
---|
3566 | { |
---|
3567 | |
---|
3568 | ; |
---|
3569 | return 0; |
---|
3570 | } |
---|
3571 | _ACEOF |
---|
3572 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3573 | ac_cv_prog_cc_g=yes |
---|
3574 | else |
---|
3575 | CFLAGS="" |
---|
3576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3577 | /* end confdefs.h. */ |
---|
3578 | |
---|
3579 | int |
---|
3580 | main () |
---|
3581 | { |
---|
3582 | |
---|
3583 | ; |
---|
3584 | return 0; |
---|
3585 | } |
---|
3586 | _ACEOF |
---|
3587 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3588 | |
---|
3589 | else |
---|
3590 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3591 | CFLAGS="-g" |
---|
3592 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3593 | /* end confdefs.h. */ |
---|
3594 | |
---|
3595 | int |
---|
3596 | main () |
---|
3597 | { |
---|
3598 | |
---|
3599 | ; |
---|
3600 | return 0; |
---|
3601 | } |
---|
3602 | _ACEOF |
---|
3603 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3604 | ac_cv_prog_cc_g=yes |
---|
3605 | fi |
---|
3606 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3607 | fi |
---|
3608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3609 | fi |
---|
3610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3611 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3612 | fi |
---|
3613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
3614 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
3615 | if test "$ac_test_CFLAGS" = set; then |
---|
3616 | CFLAGS=$ac_save_CFLAGS |
---|
3617 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3618 | if test "$GCC" = yes; then |
---|
3619 | CFLAGS="-g -O2" |
---|
3620 | else |
---|
3621 | CFLAGS="-g" |
---|
3622 | fi |
---|
3623 | else |
---|
3624 | if test "$GCC" = yes; then |
---|
3625 | CFLAGS="-O2" |
---|
3626 | else |
---|
3627 | CFLAGS= |
---|
3628 | fi |
---|
3629 | fi |
---|
3630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
3631 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
3632 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
3633 | $as_echo_n "(cached) " >&6 |
---|
3634 | else |
---|
3635 | ac_cv_prog_cc_c89=no |
---|
3636 | ac_save_CC=$CC |
---|
3637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3638 | /* end confdefs.h. */ |
---|
3639 | #include <stdarg.h> |
---|
3640 | #include <stdio.h> |
---|
3641 | #include <sys/types.h> |
---|
3642 | #include <sys/stat.h> |
---|
3643 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3644 | struct buf { int x; }; |
---|
3645 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3646 | static char *e (p, i) |
---|
3647 | char **p; |
---|
3648 | int i; |
---|
3649 | { |
---|
3650 | return p[i]; |
---|
3651 | } |
---|
3652 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3653 | { |
---|
3654 | char *s; |
---|
3655 | va_list v; |
---|
3656 | va_start (v,p); |
---|
3657 | s = g (p, va_arg (v,int)); |
---|
3658 | va_end (v); |
---|
3659 | return s; |
---|
3660 | } |
---|
3661 | |
---|
3662 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3663 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3664 | These don't provoke an error unfortunately, instead are silently treated |
---|
3665 | as 'x'. The following induces an error, until -std is added to get |
---|
3666 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3667 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3668 | that's true only with -std. */ |
---|
3669 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3670 | |
---|
3671 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
3672 | inside strings and character constants. */ |
---|
3673 | #define FOO(x) 'x' |
---|
3674 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
3675 | |
---|
3676 | int test (int i, double x); |
---|
3677 | struct s1 {int (*f) (int a);}; |
---|
3678 | struct s2 {int (*f) (double a);}; |
---|
3679 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3680 | int argc; |
---|
3681 | char **argv; |
---|
3682 | int |
---|
3683 | main () |
---|
3684 | { |
---|
3685 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3686 | ; |
---|
3687 | return 0; |
---|
3688 | } |
---|
3689 | _ACEOF |
---|
3690 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
3691 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3692 | do |
---|
3693 | CC="$ac_save_CC $ac_arg" |
---|
3694 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3695 | ac_cv_prog_cc_c89=$ac_arg |
---|
3696 | fi |
---|
3697 | rm -f core conftest.err conftest.$ac_objext |
---|
3698 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
3699 | done |
---|
3700 | rm -f conftest.$ac_ext |
---|
3701 | CC=$ac_save_CC |
---|
3702 | |
---|
3703 | fi |
---|
3704 | # AC_CACHE_VAL |
---|
3705 | case "x$ac_cv_prog_cc_c89" in |
---|
3706 | x) |
---|
3707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
3708 | $as_echo "none needed" >&6; } ;; |
---|
3709 | xno) |
---|
3710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
3711 | $as_echo "unsupported" >&6; } ;; |
---|
3712 | *) |
---|
3713 | CC="$CC $ac_cv_prog_cc_c89" |
---|
3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
3715 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
3716 | esac |
---|
3717 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
3718 | |
---|
3719 | fi |
---|
3720 | |
---|
3721 | ac_ext=c |
---|
3722 | ac_cpp='$CPP $CPPFLAGS' |
---|
3723 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3724 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3725 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3726 | DEPDIR="${am__leading_dot}deps" |
---|
3727 | |
---|
3728 | ac_config_commands="$ac_config_commands depfiles" |
---|
3729 | |
---|
3730 | |
---|
3731 | am_make=${MAKE-make} |
---|
3732 | cat > confinc << 'END' |
---|
3733 | am__doit: |
---|
3734 | @echo this is the am__doit target |
---|
3735 | .PHONY: am__doit |
---|
3736 | END |
---|
3737 | # If we don't find an include directive, just comment out the code. |
---|
3738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
---|
3739 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
---|
3740 | am__include="#" |
---|
3741 | am__quote= |
---|
3742 | _am_result=none |
---|
3743 | # First try GNU make style include. |
---|
3744 | echo "include confinc" > confmf |
---|
3745 | # Ignore all kinds of additional output from `make'. |
---|
3746 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
3747 | *the\ am__doit\ target*) |
---|
3748 | am__include=include |
---|
3749 | am__quote= |
---|
3750 | _am_result=GNU |
---|
3751 | ;; |
---|
3752 | esac |
---|
3753 | # Now try BSD make style include. |
---|
3754 | if test "$am__include" = "#"; then |
---|
3755 | echo '.include "confinc"' > confmf |
---|
3756 | case `$am_make -s -f confmf 2> /dev/null` in #( |
---|
3757 | *the\ am__doit\ target*) |
---|
3758 | am__include=.include |
---|
3759 | am__quote="\"" |
---|
3760 | _am_result=BSD |
---|
3761 | ;; |
---|
3762 | esac |
---|
3763 | fi |
---|
3764 | |
---|
3765 | |
---|
3766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
---|
3767 | $as_echo "$_am_result" >&6; } |
---|
3768 | rm -f confinc confmf |
---|
3769 | |
---|
3770 | # Check whether --enable-dependency-tracking was given. |
---|
3771 | if test "${enable_dependency_tracking+set}" = set; then : |
---|
3772 | enableval=$enable_dependency_tracking; |
---|
3773 | fi |
---|
3774 | |
---|
3775 | if test "x$enable_dependency_tracking" != xno; then |
---|
3776 | am_depcomp="$ac_aux_dir/depcomp" |
---|
3777 | AMDEPBACKSLASH='\' |
---|
3778 | fi |
---|
3779 | if test "x$enable_dependency_tracking" != xno; then |
---|
3780 | AMDEP_TRUE= |
---|
3781 | AMDEP_FALSE='#' |
---|
3782 | else |
---|
3783 | AMDEP_TRUE='#' |
---|
3784 | AMDEP_FALSE= |
---|
3785 | fi |
---|
3786 | |
---|
3787 | |
---|
3788 | |
---|
3789 | depcc="$CC" am_compiler_list= |
---|
3790 | |
---|
3791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
---|
3792 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
---|
3793 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
---|
3794 | $as_echo_n "(cached) " >&6 |
---|
3795 | else |
---|
3796 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
---|
3797 | # We make a subdir and do the tests there. Otherwise we can end up |
---|
3798 | # making bogus files that we don't know about and never remove. For |
---|
3799 | # instance it was reported that on HP-UX the gcc test will end up |
---|
3800 | # making a dummy file named `D' -- because `-MD' means `put the output |
---|
3801 | # in D'. |
---|
3802 | mkdir conftest.dir |
---|
3803 | # Copy depcomp to subdir because otherwise we won't find it if we're |
---|
3804 | # using a relative directory. |
---|
3805 | cp "$am_depcomp" conftest.dir |
---|
3806 | cd conftest.dir |
---|
3807 | # We will build objects and dependencies in a subdirectory because |
---|
3808 | # it helps to detect inapplicable dependency modes. For instance |
---|
3809 | # both Tru64's cc and ICC support -MD to output dependencies as a |
---|
3810 | # side effect of compilation, but ICC will put the dependencies in |
---|
3811 | # the current directory while Tru64 will put them in the object |
---|
3812 | # directory. |
---|
3813 | mkdir sub |
---|
3814 | |
---|
3815 | am_cv_CC_dependencies_compiler_type=none |
---|
3816 | if test "$am_compiler_list" = ""; then |
---|
3817 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
---|
3818 | fi |
---|
3819 | am__universal=false |
---|
3820 | case " $depcc " in #( |
---|
3821 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
---|
3822 | esac |
---|
3823 | |
---|
3824 | for depmode in $am_compiler_list; do |
---|
3825 | # Setup a source with many dependencies, because some compilers |
---|
3826 | # like to wrap large dependency lists on column 80 (with \), and |
---|
3827 | # we should not choose a depcomp mode which is confused by this. |
---|
3828 | # |
---|
3829 | # We need to recreate these files for each test, as the compiler may |
---|
3830 | # overwrite some of them when testing with obscure command lines. |
---|
3831 | # This happens at least with the AIX C compiler. |
---|
3832 | : > sub/conftest.c |
---|
3833 | for i in 1 2 3 4 5 6; do |
---|
3834 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
---|
3835 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
---|
3836 | # Solaris 8's {/usr,}/bin/sh. |
---|
3837 | touch sub/conftst$i.h |
---|
3838 | done |
---|
3839 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
---|
3840 | |
---|
3841 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
---|
3842 | # mode. It turns out that the SunPro C++ compiler does not properly |
---|
3843 | # handle `-M -o', and we need to detect this. Also, some Intel |
---|
3844 | # versions had trouble with output in subdirs |
---|
3845 | am__obj=sub/conftest.${OBJEXT-o} |
---|
3846 | am__minus_obj="-o $am__obj" |
---|
3847 | case $depmode in |
---|
3848 | gcc) |
---|
3849 | # This depmode causes a compiler race in universal mode. |
---|
3850 | test "$am__universal" = false || continue |
---|
3851 | ;; |
---|
3852 | nosideeffect) |
---|
3853 | # after this tag, mechanisms are not by side-effect, so they'll |
---|
3854 | # only be used when explicitly requested |
---|
3855 | if test "x$enable_dependency_tracking" = xyes; then |
---|
3856 | continue |
---|
3857 | else |
---|
3858 | break |
---|
3859 | fi |
---|
3860 | ;; |
---|
3861 | msvisualcpp | msvcmsys) |
---|
3862 | # This compiler won't grok `-c -o', but also, the minuso test has |
---|
3863 | # not run yet. These depmodes are late enough in the game, and |
---|
3864 | # so weak that their functioning should not be impacted. |
---|
3865 | am__obj=conftest.${OBJEXT-o} |
---|
3866 | am__minus_obj= |
---|
3867 | ;; |
---|
3868 | none) break ;; |
---|
3869 | esac |
---|
3870 | if depmode=$depmode \ |
---|
3871 | source=sub/conftest.c object=$am__obj \ |
---|
3872 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
---|
3873 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
---|
3874 | >/dev/null 2>conftest.err && |
---|
3875 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3876 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
---|
3877 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
---|
3878 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
---|
3879 | # icc doesn't choke on unknown options, it will just issue warnings |
---|
3880 | # or remarks (even with -Werror). So we grep stderr for any message |
---|
3881 | # that says an option was ignored or not supported. |
---|
3882 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
---|
3883 | # icc: Command line warning: ignoring option '-M'; no argument required |
---|
3884 | # The diagnosis changed in icc 8.0: |
---|
3885 | # icc: Command line remark: option '-MP' not supported |
---|
3886 | if (grep 'ignoring option' conftest.err || |
---|
3887 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
---|
3888 | am_cv_CC_dependencies_compiler_type=$depmode |
---|
3889 | break |
---|
3890 | fi |
---|
3891 | fi |
---|
3892 | done |
---|
3893 | |
---|
3894 | cd .. |
---|
3895 | rm -rf conftest.dir |
---|
3896 | else |
---|
3897 | am_cv_CC_dependencies_compiler_type=none |
---|
3898 | fi |
---|
3899 | |
---|
3900 | fi |
---|
3901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
---|
3902 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
---|
3903 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
---|
3904 | |
---|
3905 | if |
---|
3906 | test "x$enable_dependency_tracking" != xno \ |
---|
3907 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
---|
3908 | am__fastdepCC_TRUE= |
---|
3909 | am__fastdepCC_FALSE='#' |
---|
3910 | else |
---|
3911 | am__fastdepCC_TRUE='#' |
---|
3912 | am__fastdepCC_FALSE= |
---|
3913 | fi |
---|
3914 | |
---|
3915 | |
---|
3916 | #AC_PROG_CPP |
---|
3917 | case `pwd` in |
---|
3918 | *\ * | *\ *) |
---|
3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
---|
3920 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
---|
3921 | esac |
---|
3922 | |
---|
3923 | |
---|
3924 | |
---|
3925 | macro_version='2.4' |
---|
3926 | macro_revision='1.3293' |
---|
3927 | |
---|
3928 | |
---|
3929 | |
---|
3930 | |
---|
3931 | |
---|
3932 | |
---|
3933 | |
---|
3934 | |
---|
3935 | |
---|
3936 | |
---|
3937 | |
---|
3938 | |
---|
3939 | |
---|
3940 | ltmain="$ac_aux_dir/ltmain.sh" |
---|
3941 | |
---|
3942 | # Backslashify metacharacters that are still active within |
---|
3943 | # double-quoted strings. |
---|
3944 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
---|
3945 | |
---|
3946 | # Same as above, but do not quote variable references. |
---|
3947 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
---|
3948 | |
---|
3949 | # Sed substitution to delay expansion of an escaped shell variable in a |
---|
3950 | # double_quote_subst'ed string. |
---|
3951 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
---|
3952 | |
---|
3953 | # Sed substitution to delay expansion of an escaped single quote. |
---|
3954 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
---|
3955 | |
---|
3956 | # Sed substitution to avoid accidental globbing in evaled expressions |
---|
3957 | no_glob_subst='s/\*/\\\*/g' |
---|
3958 | |
---|
3959 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
3960 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
---|
3961 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
---|
3962 | |
---|
3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
---|
3964 | $as_echo_n "checking how to print strings... " >&6; } |
---|
3965 | # Test print first, because it will be a builtin if present. |
---|
3966 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
---|
3967 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
---|
3968 | ECHO='print -r --' |
---|
3969 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
---|
3970 | ECHO='printf %s\n' |
---|
3971 | else |
---|
3972 | # Use this function as a fallback that always works. |
---|
3973 | func_fallback_echo () |
---|
3974 | { |
---|
3975 | eval 'cat <<_LTECHO_EOF |
---|
3976 | $1 |
---|
3977 | _LTECHO_EOF' |
---|
3978 | } |
---|
3979 | ECHO='func_fallback_echo' |
---|
3980 | fi |
---|
3981 | |
---|
3982 | # func_echo_all arg... |
---|
3983 | # Invoke $ECHO with all args, space-separated. |
---|
3984 | func_echo_all () |
---|
3985 | { |
---|
3986 | $ECHO "" |
---|
3987 | } |
---|
3988 | |
---|
3989 | case "$ECHO" in |
---|
3990 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
---|
3991 | $as_echo "printf" >&6; } ;; |
---|
3992 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
---|
3993 | $as_echo "print -r" >&6; } ;; |
---|
3994 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
---|
3995 | $as_echo "cat" >&6; } ;; |
---|
3996 | esac |
---|
3997 | |
---|
3998 | |
---|
3999 | |
---|
4000 | |
---|
4001 | |
---|
4002 | |
---|
4003 | |
---|
4004 | |
---|
4005 | |
---|
4006 | |
---|
4007 | |
---|
4008 | |
---|
4009 | |
---|
4010 | |
---|
4011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
---|
4012 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
---|
4013 | if ${ac_cv_path_SED+:} false; then : |
---|
4014 | $as_echo_n "(cached) " >&6 |
---|
4015 | else |
---|
4016 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
---|
4017 | for ac_i in 1 2 3 4 5 6 7; do |
---|
4018 | ac_script="$ac_script$as_nl$ac_script" |
---|
4019 | done |
---|
4020 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
---|
4021 | { ac_script=; unset ac_script;} |
---|
4022 | if test -z "$SED"; then |
---|
4023 | ac_path_SED_found=false |
---|
4024 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4026 | for as_dir in $PATH |
---|
4027 | do |
---|
4028 | IFS=$as_save_IFS |
---|
4029 | test -z "$as_dir" && as_dir=. |
---|
4030 | for ac_prog in sed gsed; do |
---|
4031 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4032 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
---|
4033 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
---|
4034 | # Check for GNU ac_path_SED and select it if it is found. |
---|
4035 | # Check for GNU $ac_path_SED |
---|
4036 | case `"$ac_path_SED" --version 2>&1` in |
---|
4037 | *GNU*) |
---|
4038 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
---|
4039 | *) |
---|
4040 | ac_count=0 |
---|
4041 | $as_echo_n 0123456789 >"conftest.in" |
---|
4042 | while : |
---|
4043 | do |
---|
4044 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4045 | mv "conftest.tmp" "conftest.in" |
---|
4046 | cp "conftest.in" "conftest.nl" |
---|
4047 | $as_echo '' >> "conftest.nl" |
---|
4048 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4049 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4050 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4051 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
---|
4052 | # Best one so far, save it but keep looking for a better one |
---|
4053 | ac_cv_path_SED="$ac_path_SED" |
---|
4054 | ac_path_SED_max=$ac_count |
---|
4055 | fi |
---|
4056 | # 10*(2^10) chars as input seems more than enough |
---|
4057 | test $ac_count -gt 10 && break |
---|
4058 | done |
---|
4059 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4060 | esac |
---|
4061 | |
---|
4062 | $ac_path_SED_found && break 3 |
---|
4063 | done |
---|
4064 | done |
---|
4065 | done |
---|
4066 | IFS=$as_save_IFS |
---|
4067 | if test -z "$ac_cv_path_SED"; then |
---|
4068 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
---|
4069 | fi |
---|
4070 | else |
---|
4071 | ac_cv_path_SED=$SED |
---|
4072 | fi |
---|
4073 | |
---|
4074 | fi |
---|
4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
---|
4076 | $as_echo "$ac_cv_path_SED" >&6; } |
---|
4077 | SED="$ac_cv_path_SED" |
---|
4078 | rm -f conftest.sed |
---|
4079 | |
---|
4080 | test -z "$SED" && SED=sed |
---|
4081 | Xsed="$SED -e 1s/^X//" |
---|
4082 | |
---|
4083 | |
---|
4084 | |
---|
4085 | |
---|
4086 | |
---|
4087 | |
---|
4088 | |
---|
4089 | |
---|
4090 | |
---|
4091 | |
---|
4092 | |
---|
4093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
4094 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
4095 | if ${ac_cv_path_GREP+:} false; then : |
---|
4096 | $as_echo_n "(cached) " >&6 |
---|
4097 | else |
---|
4098 | if test -z "$GREP"; then |
---|
4099 | ac_path_GREP_found=false |
---|
4100 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4102 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4103 | do |
---|
4104 | IFS=$as_save_IFS |
---|
4105 | test -z "$as_dir" && as_dir=. |
---|
4106 | for ac_prog in grep ggrep; do |
---|
4107 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4108 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4109 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
4110 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
4111 | # Check for GNU $ac_path_GREP |
---|
4112 | case `"$ac_path_GREP" --version 2>&1` in |
---|
4113 | *GNU*) |
---|
4114 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
4115 | *) |
---|
4116 | ac_count=0 |
---|
4117 | $as_echo_n 0123456789 >"conftest.in" |
---|
4118 | while : |
---|
4119 | do |
---|
4120 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4121 | mv "conftest.tmp" "conftest.in" |
---|
4122 | cp "conftest.in" "conftest.nl" |
---|
4123 | $as_echo 'GREP' >> "conftest.nl" |
---|
4124 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4125 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4126 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4127 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
4128 | # Best one so far, save it but keep looking for a better one |
---|
4129 | ac_cv_path_GREP="$ac_path_GREP" |
---|
4130 | ac_path_GREP_max=$ac_count |
---|
4131 | fi |
---|
4132 | # 10*(2^10) chars as input seems more than enough |
---|
4133 | test $ac_count -gt 10 && break |
---|
4134 | done |
---|
4135 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4136 | esac |
---|
4137 | |
---|
4138 | $ac_path_GREP_found && break 3 |
---|
4139 | done |
---|
4140 | done |
---|
4141 | done |
---|
4142 | IFS=$as_save_IFS |
---|
4143 | if test -z "$ac_cv_path_GREP"; then |
---|
4144 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4145 | fi |
---|
4146 | else |
---|
4147 | ac_cv_path_GREP=$GREP |
---|
4148 | fi |
---|
4149 | |
---|
4150 | fi |
---|
4151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
4152 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
4153 | GREP="$ac_cv_path_GREP" |
---|
4154 | |
---|
4155 | |
---|
4156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
4157 | $as_echo_n "checking for egrep... " >&6; } |
---|
4158 | if ${ac_cv_path_EGREP+:} false; then : |
---|
4159 | $as_echo_n "(cached) " >&6 |
---|
4160 | else |
---|
4161 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
4162 | then ac_cv_path_EGREP="$GREP -E" |
---|
4163 | else |
---|
4164 | if test -z "$EGREP"; then |
---|
4165 | ac_path_EGREP_found=false |
---|
4166 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4168 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4169 | do |
---|
4170 | IFS=$as_save_IFS |
---|
4171 | test -z "$as_dir" && as_dir=. |
---|
4172 | for ac_prog in egrep; do |
---|
4173 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4174 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4175 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
4176 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
4177 | # Check for GNU $ac_path_EGREP |
---|
4178 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
4179 | *GNU*) |
---|
4180 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
4181 | *) |
---|
4182 | ac_count=0 |
---|
4183 | $as_echo_n 0123456789 >"conftest.in" |
---|
4184 | while : |
---|
4185 | do |
---|
4186 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4187 | mv "conftest.tmp" "conftest.in" |
---|
4188 | cp "conftest.in" "conftest.nl" |
---|
4189 | $as_echo 'EGREP' >> "conftest.nl" |
---|
4190 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4191 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4192 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4193 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
4194 | # Best one so far, save it but keep looking for a better one |
---|
4195 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
4196 | ac_path_EGREP_max=$ac_count |
---|
4197 | fi |
---|
4198 | # 10*(2^10) chars as input seems more than enough |
---|
4199 | test $ac_count -gt 10 && break |
---|
4200 | done |
---|
4201 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4202 | esac |
---|
4203 | |
---|
4204 | $ac_path_EGREP_found && break 3 |
---|
4205 | done |
---|
4206 | done |
---|
4207 | done |
---|
4208 | IFS=$as_save_IFS |
---|
4209 | if test -z "$ac_cv_path_EGREP"; then |
---|
4210 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4211 | fi |
---|
4212 | else |
---|
4213 | ac_cv_path_EGREP=$EGREP |
---|
4214 | fi |
---|
4215 | |
---|
4216 | fi |
---|
4217 | fi |
---|
4218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
4219 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
4220 | EGREP="$ac_cv_path_EGREP" |
---|
4221 | |
---|
4222 | |
---|
4223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
---|
4224 | $as_echo_n "checking for fgrep... " >&6; } |
---|
4225 | if ${ac_cv_path_FGREP+:} false; then : |
---|
4226 | $as_echo_n "(cached) " >&6 |
---|
4227 | else |
---|
4228 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
---|
4229 | then ac_cv_path_FGREP="$GREP -F" |
---|
4230 | else |
---|
4231 | if test -z "$FGREP"; then |
---|
4232 | ac_path_FGREP_found=false |
---|
4233 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
4234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4235 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
4236 | do |
---|
4237 | IFS=$as_save_IFS |
---|
4238 | test -z "$as_dir" && as_dir=. |
---|
4239 | for ac_prog in fgrep; do |
---|
4240 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4241 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
4242 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
---|
4243 | # Check for GNU ac_path_FGREP and select it if it is found. |
---|
4244 | # Check for GNU $ac_path_FGREP |
---|
4245 | case `"$ac_path_FGREP" --version 2>&1` in |
---|
4246 | *GNU*) |
---|
4247 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
---|
4248 | *) |
---|
4249 | ac_count=0 |
---|
4250 | $as_echo_n 0123456789 >"conftest.in" |
---|
4251 | while : |
---|
4252 | do |
---|
4253 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
4254 | mv "conftest.tmp" "conftest.in" |
---|
4255 | cp "conftest.in" "conftest.nl" |
---|
4256 | $as_echo 'FGREP' >> "conftest.nl" |
---|
4257 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
4258 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
4259 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
4260 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
---|
4261 | # Best one so far, save it but keep looking for a better one |
---|
4262 | ac_cv_path_FGREP="$ac_path_FGREP" |
---|
4263 | ac_path_FGREP_max=$ac_count |
---|
4264 | fi |
---|
4265 | # 10*(2^10) chars as input seems more than enough |
---|
4266 | test $ac_count -gt 10 && break |
---|
4267 | done |
---|
4268 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
4269 | esac |
---|
4270 | |
---|
4271 | $ac_path_FGREP_found && break 3 |
---|
4272 | done |
---|
4273 | done |
---|
4274 | done |
---|
4275 | IFS=$as_save_IFS |
---|
4276 | if test -z "$ac_cv_path_FGREP"; then |
---|
4277 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
4278 | fi |
---|
4279 | else |
---|
4280 | ac_cv_path_FGREP=$FGREP |
---|
4281 | fi |
---|
4282 | |
---|
4283 | fi |
---|
4284 | fi |
---|
4285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
---|
4286 | $as_echo "$ac_cv_path_FGREP" >&6; } |
---|
4287 | FGREP="$ac_cv_path_FGREP" |
---|
4288 | |
---|
4289 | |
---|
4290 | test -z "$GREP" && GREP=grep |
---|
4291 | |
---|
4292 | |
---|
4293 | |
---|
4294 | |
---|
4295 | |
---|
4296 | |
---|
4297 | |
---|
4298 | |
---|
4299 | |
---|
4300 | |
---|
4301 | |
---|
4302 | |
---|
4303 | |
---|
4304 | |
---|
4305 | |
---|
4306 | |
---|
4307 | |
---|
4308 | |
---|
4309 | |
---|
4310 | # Check whether --with-gnu-ld was given. |
---|
4311 | if test "${with_gnu_ld+set}" = set; then : |
---|
4312 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
---|
4313 | else |
---|
4314 | with_gnu_ld=no |
---|
4315 | fi |
---|
4316 | |
---|
4317 | ac_prog=ld |
---|
4318 | if test "$GCC" = yes; then |
---|
4319 | # Check if gcc -print-prog-name=ld gives a path. |
---|
4320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
---|
4321 | $as_echo_n "checking for ld used by $CC... " >&6; } |
---|
4322 | case $host in |
---|
4323 | *-*-mingw*) |
---|
4324 | # gcc leaves a trailing carriage return which upsets mingw |
---|
4325 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
---|
4326 | *) |
---|
4327 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
---|
4328 | esac |
---|
4329 | case $ac_prog in |
---|
4330 | # Accept absolute paths. |
---|
4331 | [\\/]* | ?:[\\/]*) |
---|
4332 | re_direlt='/[^/][^/]*/\.\./' |
---|
4333 | # Canonicalize the pathname of ld |
---|
4334 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
---|
4335 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
---|
4336 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
---|
4337 | done |
---|
4338 | test -z "$LD" && LD="$ac_prog" |
---|
4339 | ;; |
---|
4340 | "") |
---|
4341 | # If it fails, then pretend we aren't using GCC. |
---|
4342 | ac_prog=ld |
---|
4343 | ;; |
---|
4344 | *) |
---|
4345 | # If it is relative, then search for the first ld in PATH. |
---|
4346 | with_gnu_ld=unknown |
---|
4347 | ;; |
---|
4348 | esac |
---|
4349 | elif test "$with_gnu_ld" = yes; then |
---|
4350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
---|
4351 | $as_echo_n "checking for GNU ld... " >&6; } |
---|
4352 | else |
---|
4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
---|
4354 | $as_echo_n "checking for non-GNU ld... " >&6; } |
---|
4355 | fi |
---|
4356 | if ${lt_cv_path_LD+:} false; then : |
---|
4357 | $as_echo_n "(cached) " >&6 |
---|
4358 | else |
---|
4359 | if test -z "$LD"; then |
---|
4360 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
4361 | for ac_dir in $PATH; do |
---|
4362 | IFS="$lt_save_ifs" |
---|
4363 | test -z "$ac_dir" && ac_dir=. |
---|
4364 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
4365 | lt_cv_path_LD="$ac_dir/$ac_prog" |
---|
4366 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
4367 | # but apparently some variants of GNU ld only accept -v. |
---|
4368 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
4369 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
---|
4370 | *GNU* | *'with BFD'*) |
---|
4371 | test "$with_gnu_ld" != no && break |
---|
4372 | ;; |
---|
4373 | *) |
---|
4374 | test "$with_gnu_ld" != yes && break |
---|
4375 | ;; |
---|
4376 | esac |
---|
4377 | fi |
---|
4378 | done |
---|
4379 | IFS="$lt_save_ifs" |
---|
4380 | else |
---|
4381 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
4382 | fi |
---|
4383 | fi |
---|
4384 | |
---|
4385 | LD="$lt_cv_path_LD" |
---|
4386 | if test -n "$LD"; then |
---|
4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
---|
4388 | $as_echo "$LD" >&6; } |
---|
4389 | else |
---|
4390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4391 | $as_echo "no" >&6; } |
---|
4392 | fi |
---|
4393 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
---|
4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
---|
4395 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
---|
4396 | if ${lt_cv_prog_gnu_ld+:} false; then : |
---|
4397 | $as_echo_n "(cached) " >&6 |
---|
4398 | else |
---|
4399 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
---|
4400 | case `$LD -v 2>&1 </dev/null` in |
---|
4401 | *GNU* | *'with BFD'*) |
---|
4402 | lt_cv_prog_gnu_ld=yes |
---|
4403 | ;; |
---|
4404 | *) |
---|
4405 | lt_cv_prog_gnu_ld=no |
---|
4406 | ;; |
---|
4407 | esac |
---|
4408 | fi |
---|
4409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
---|
4410 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
---|
4411 | with_gnu_ld=$lt_cv_prog_gnu_ld |
---|
4412 | |
---|
4413 | |
---|
4414 | |
---|
4415 | |
---|
4416 | |
---|
4417 | |
---|
4418 | |
---|
4419 | |
---|
4420 | |
---|
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
---|
4422 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
---|
4423 | if ${lt_cv_path_NM+:} false; then : |
---|
4424 | $as_echo_n "(cached) " >&6 |
---|
4425 | else |
---|
4426 | if test -n "$NM"; then |
---|
4427 | # Let the user override the test. |
---|
4428 | lt_cv_path_NM="$NM" |
---|
4429 | else |
---|
4430 | lt_nm_to_check="${ac_tool_prefix}nm" |
---|
4431 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
---|
4432 | lt_nm_to_check="$lt_nm_to_check nm" |
---|
4433 | fi |
---|
4434 | for lt_tmp_nm in $lt_nm_to_check; do |
---|
4435 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
4436 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
---|
4437 | IFS="$lt_save_ifs" |
---|
4438 | test -z "$ac_dir" && ac_dir=. |
---|
4439 | tmp_nm="$ac_dir/$lt_tmp_nm" |
---|
4440 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
---|
4441 | # Check to see if the nm accepts a BSD-compat flag. |
---|
4442 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
4443 | # nm: unknown option "B" ignored |
---|
4444 | # Tru64's nm complains that /dev/null is an invalid object file |
---|
4445 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
---|
4446 | */dev/null* | *'Invalid file or object type'*) |
---|
4447 | lt_cv_path_NM="$tmp_nm -B" |
---|
4448 | break |
---|
4449 | ;; |
---|
4450 | *) |
---|
4451 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
---|
4452 | */dev/null*) |
---|
4453 | lt_cv_path_NM="$tmp_nm -p" |
---|
4454 | break |
---|
4455 | ;; |
---|
4456 | *) |
---|
4457 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
---|
4458 | continue # so that we can try to find one that supports BSD flags |
---|
4459 | ;; |
---|
4460 | esac |
---|
4461 | ;; |
---|
4462 | esac |
---|
4463 | fi |
---|
4464 | done |
---|
4465 | IFS="$lt_save_ifs" |
---|
4466 | done |
---|
4467 | : ${lt_cv_path_NM=no} |
---|
4468 | fi |
---|
4469 | fi |
---|
4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
---|
4471 | $as_echo "$lt_cv_path_NM" >&6; } |
---|
4472 | if test "$lt_cv_path_NM" != "no"; then |
---|
4473 | NM="$lt_cv_path_NM" |
---|
4474 | else |
---|
4475 | # Didn't find any BSD compatible name lister, look for dumpbin. |
---|
4476 | if test -n "$DUMPBIN"; then : |
---|
4477 | # Let the user override the test. |
---|
4478 | else |
---|
4479 | if test -n "$ac_tool_prefix"; then |
---|
4480 | for ac_prog in dumpbin "link -dump" |
---|
4481 | do |
---|
4482 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
4483 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
4484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4485 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4486 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
---|
4487 | $as_echo_n "(cached) " >&6 |
---|
4488 | else |
---|
4489 | if test -n "$DUMPBIN"; then |
---|
4490 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
---|
4491 | else |
---|
4492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4493 | for as_dir in $PATH |
---|
4494 | do |
---|
4495 | IFS=$as_save_IFS |
---|
4496 | test -z "$as_dir" && as_dir=. |
---|
4497 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4498 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4499 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
---|
4500 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4501 | break 2 |
---|
4502 | fi |
---|
4503 | done |
---|
4504 | done |
---|
4505 | IFS=$as_save_IFS |
---|
4506 | |
---|
4507 | fi |
---|
4508 | fi |
---|
4509 | DUMPBIN=$ac_cv_prog_DUMPBIN |
---|
4510 | if test -n "$DUMPBIN"; then |
---|
4511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
---|
4512 | $as_echo "$DUMPBIN" >&6; } |
---|
4513 | else |
---|
4514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4515 | $as_echo "no" >&6; } |
---|
4516 | fi |
---|
4517 | |
---|
4518 | |
---|
4519 | test -n "$DUMPBIN" && break |
---|
4520 | done |
---|
4521 | fi |
---|
4522 | if test -z "$DUMPBIN"; then |
---|
4523 | ac_ct_DUMPBIN=$DUMPBIN |
---|
4524 | for ac_prog in dumpbin "link -dump" |
---|
4525 | do |
---|
4526 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
4527 | set dummy $ac_prog; ac_word=$2 |
---|
4528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4529 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4530 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
---|
4531 | $as_echo_n "(cached) " >&6 |
---|
4532 | else |
---|
4533 | if test -n "$ac_ct_DUMPBIN"; then |
---|
4534 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
---|
4535 | else |
---|
4536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4537 | for as_dir in $PATH |
---|
4538 | do |
---|
4539 | IFS=$as_save_IFS |
---|
4540 | test -z "$as_dir" && as_dir=. |
---|
4541 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4542 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4543 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
---|
4544 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4545 | break 2 |
---|
4546 | fi |
---|
4547 | done |
---|
4548 | done |
---|
4549 | IFS=$as_save_IFS |
---|
4550 | |
---|
4551 | fi |
---|
4552 | fi |
---|
4553 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
---|
4554 | if test -n "$ac_ct_DUMPBIN"; then |
---|
4555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
---|
4556 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
---|
4557 | else |
---|
4558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4559 | $as_echo "no" >&6; } |
---|
4560 | fi |
---|
4561 | |
---|
4562 | |
---|
4563 | test -n "$ac_ct_DUMPBIN" && break |
---|
4564 | done |
---|
4565 | |
---|
4566 | if test "x$ac_ct_DUMPBIN" = x; then |
---|
4567 | DUMPBIN=":" |
---|
4568 | else |
---|
4569 | case $cross_compiling:$ac_tool_warned in |
---|
4570 | yes:) |
---|
4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
4572 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
4573 | ac_tool_warned=yes ;; |
---|
4574 | esac |
---|
4575 | DUMPBIN=$ac_ct_DUMPBIN |
---|
4576 | fi |
---|
4577 | fi |
---|
4578 | |
---|
4579 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
---|
4580 | *COFF*) |
---|
4581 | DUMPBIN="$DUMPBIN -symbols" |
---|
4582 | ;; |
---|
4583 | *) |
---|
4584 | DUMPBIN=: |
---|
4585 | ;; |
---|
4586 | esac |
---|
4587 | fi |
---|
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 ${lt_cv_nm_interface+:} false; 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 |
---|
4607 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
---|
4608 | (eval "$ac_compile" 2>conftest.err) |
---|
4609 | cat conftest.err >&5 |
---|
4610 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
---|
4611 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
---|
4612 | cat conftest.err >&5 |
---|
4613 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
---|
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 ${lt_cv_sys_max_cmd_len+:} false; 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 | mint*) |
---|
4671 | # On MiNT this can take a long time and run out of memory. |
---|
4672 | lt_cv_sys_max_cmd_len=8192; |
---|
4673 | ;; |
---|
4674 | |
---|
4675 | amigaos*) |
---|
4676 | # On AmigaOS with pdksh, this test takes hours, literally. |
---|
4677 | # So we just punt and use a minimum line length of 8192. |
---|
4678 | lt_cv_sys_max_cmd_len=8192; |
---|
4679 | ;; |
---|
4680 | |
---|
4681 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
---|
4682 | # This has been around since 386BSD, at least. Likely further. |
---|
4683 | if test -x /sbin/sysctl; then |
---|
4684 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
---|
4685 | elif test -x /usr/sbin/sysctl; then |
---|
4686 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
---|
4687 | else |
---|
4688 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
---|
4689 | fi |
---|
4690 | # And add a safety zone |
---|
4691 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
4692 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
---|
4693 | ;; |
---|
4694 | |
---|
4695 | interix*) |
---|
4696 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
---|
4697 | lt_cv_sys_max_cmd_len=196608 |
---|
4698 | ;; |
---|
4699 | |
---|
4700 | osf*) |
---|
4701 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
---|
4702 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
---|
4703 | # nice to cause kernel panics so lets avoid the loop below. |
---|
4704 | # First set a reasonable default. |
---|
4705 | lt_cv_sys_max_cmd_len=16384 |
---|
4706 | # |
---|
4707 | if test -x /sbin/sysconfig; then |
---|
4708 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
---|
4709 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
---|
4710 | esac |
---|
4711 | fi |
---|
4712 | ;; |
---|
4713 | sco3.2v5*) |
---|
4714 | lt_cv_sys_max_cmd_len=102400 |
---|
4715 | ;; |
---|
4716 | sysv5* | sco5v6* | sysv4.2uw2*) |
---|
4717 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
---|
4718 | if test -n "$kargmax"; then |
---|
4719 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
---|
4720 | else |
---|
4721 | lt_cv_sys_max_cmd_len=32768 |
---|
4722 | fi |
---|
4723 | ;; |
---|
4724 | *) |
---|
4725 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
---|
4726 | if test -n "$lt_cv_sys_max_cmd_len"; then |
---|
4727 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
---|
4728 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
---|
4729 | else |
---|
4730 | # Make teststring a little bigger before we do anything with it. |
---|
4731 | # a 1K string should be a reasonable start. |
---|
4732 | for i in 1 2 3 4 5 6 7 8 ; do |
---|
4733 | teststring=$teststring$teststring |
---|
4734 | done |
---|
4735 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
---|
4736 | # If test is not a shell built-in, we'll probably end up computing a |
---|
4737 | # maximum length that is only half of the actual maximum length, but |
---|
4738 | # we can't tell. |
---|
4739 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
---|
4740 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
---|
4741 | test $i != 17 # 1/2 MB should be enough |
---|
4742 | do |
---|
4743 | i=`expr $i + 1` |
---|
4744 | teststring=$teststring$teststring |
---|
4745 | done |
---|
4746 | # Only check the string length outside the loop. |
---|
4747 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
---|
4748 | teststring= |
---|
4749 | # Add a significant safety factor because C++ compilers can tack on |
---|
4750 | # massive amounts of additional arguments before passing them to the |
---|
4751 | # linker. It appears as though 1/2 is a usable value. |
---|
4752 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
---|
4753 | fi |
---|
4754 | ;; |
---|
4755 | esac |
---|
4756 | |
---|
4757 | fi |
---|
4758 | |
---|
4759 | if test -n $lt_cv_sys_max_cmd_len ; then |
---|
4760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
---|
4761 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
---|
4762 | else |
---|
4763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
---|
4764 | $as_echo "none" >&6; } |
---|
4765 | fi |
---|
4766 | max_cmd_len=$lt_cv_sys_max_cmd_len |
---|
4767 | |
---|
4768 | |
---|
4769 | |
---|
4770 | |
---|
4771 | |
---|
4772 | |
---|
4773 | : ${CP="cp -f"} |
---|
4774 | : ${MV="mv -f"} |
---|
4775 | : ${RM="rm -f"} |
---|
4776 | |
---|
4777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
---|
4778 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
---|
4779 | # Try some XSI features |
---|
4780 | xsi_shell=no |
---|
4781 | ( _lt_dummy="a/b/c" |
---|
4782 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
---|
4783 | = c,a/b,b/c, \ |
---|
4784 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
---|
4785 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
---|
4786 | && xsi_shell=yes |
---|
4787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
---|
4788 | $as_echo "$xsi_shell" >&6; } |
---|
4789 | |
---|
4790 | |
---|
4791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
---|
4792 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
---|
4793 | lt_shell_append=no |
---|
4794 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
---|
4795 | >/dev/null 2>&1 \ |
---|
4796 | && lt_shell_append=yes |
---|
4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
---|
4798 | $as_echo "$lt_shell_append" >&6; } |
---|
4799 | |
---|
4800 | |
---|
4801 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
4802 | lt_unset=unset |
---|
4803 | else |
---|
4804 | lt_unset=false |
---|
4805 | fi |
---|
4806 | |
---|
4807 | |
---|
4808 | |
---|
4809 | |
---|
4810 | |
---|
4811 | # test EBCDIC or ASCII |
---|
4812 | case `echo X|tr X '\101'` in |
---|
4813 | A) # ASCII based system |
---|
4814 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
---|
4815 | lt_SP2NL='tr \040 \012' |
---|
4816 | lt_NL2SP='tr \015\012 \040\040' |
---|
4817 | ;; |
---|
4818 | *) # EBCDIC based system |
---|
4819 | lt_SP2NL='tr \100 \n' |
---|
4820 | lt_NL2SP='tr \r\n \100\100' |
---|
4821 | ;; |
---|
4822 | esac |
---|
4823 | |
---|
4824 | |
---|
4825 | |
---|
4826 | |
---|
4827 | |
---|
4828 | |
---|
4829 | |
---|
4830 | |
---|
4831 | |
---|
4832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
---|
4833 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
---|
4834 | if ${lt_cv_to_host_file_cmd+:} false; then : |
---|
4835 | $as_echo_n "(cached) " >&6 |
---|
4836 | else |
---|
4837 | case $host in |
---|
4838 | *-*-mingw* ) |
---|
4839 | case $build in |
---|
4840 | *-*-mingw* ) # actually msys |
---|
4841 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
---|
4842 | ;; |
---|
4843 | *-*-cygwin* ) |
---|
4844 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
---|
4845 | ;; |
---|
4846 | * ) # otherwise, assume *nix |
---|
4847 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
---|
4848 | ;; |
---|
4849 | esac |
---|
4850 | ;; |
---|
4851 | *-*-cygwin* ) |
---|
4852 | case $build in |
---|
4853 | *-*-mingw* ) # actually msys |
---|
4854 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
---|
4855 | ;; |
---|
4856 | *-*-cygwin* ) |
---|
4857 | lt_cv_to_host_file_cmd=func_convert_file_noop |
---|
4858 | ;; |
---|
4859 | * ) # otherwise, assume *nix |
---|
4860 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
---|
4861 | ;; |
---|
4862 | esac |
---|
4863 | ;; |
---|
4864 | * ) # unhandled hosts (and "normal" native builds) |
---|
4865 | lt_cv_to_host_file_cmd=func_convert_file_noop |
---|
4866 | ;; |
---|
4867 | esac |
---|
4868 | |
---|
4869 | fi |
---|
4870 | |
---|
4871 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
---|
4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
---|
4873 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
---|
4874 | |
---|
4875 | |
---|
4876 | |
---|
4877 | |
---|
4878 | |
---|
4879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
---|
4880 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
---|
4881 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
---|
4882 | $as_echo_n "(cached) " >&6 |
---|
4883 | else |
---|
4884 | #assume ordinary cross tools, or native build. |
---|
4885 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
---|
4886 | case $host in |
---|
4887 | *-*-mingw* ) |
---|
4888 | case $build in |
---|
4889 | *-*-mingw* ) # actually msys |
---|
4890 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
---|
4891 | ;; |
---|
4892 | esac |
---|
4893 | ;; |
---|
4894 | esac |
---|
4895 | |
---|
4896 | fi |
---|
4897 | |
---|
4898 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
---|
4899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
---|
4900 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
---|
4901 | |
---|
4902 | |
---|
4903 | |
---|
4904 | |
---|
4905 | |
---|
4906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
---|
4907 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
---|
4908 | if ${lt_cv_ld_reload_flag+:} false; then : |
---|
4909 | $as_echo_n "(cached) " >&6 |
---|
4910 | else |
---|
4911 | lt_cv_ld_reload_flag='-r' |
---|
4912 | fi |
---|
4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
---|
4914 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
---|
4915 | reload_flag=$lt_cv_ld_reload_flag |
---|
4916 | case $reload_flag in |
---|
4917 | "" | " "*) ;; |
---|
4918 | *) reload_flag=" $reload_flag" ;; |
---|
4919 | esac |
---|
4920 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
4921 | case $host_os in |
---|
4922 | cygwin* | mingw* | pw32* | cegcc*) |
---|
4923 | if test "$GCC" != yes; then |
---|
4924 | reload_cmds=false |
---|
4925 | fi |
---|
4926 | ;; |
---|
4927 | darwin*) |
---|
4928 | if test "$GCC" = yes; then |
---|
4929 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
---|
4930 | else |
---|
4931 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
---|
4932 | fi |
---|
4933 | ;; |
---|
4934 | esac |
---|
4935 | |
---|
4936 | |
---|
4937 | |
---|
4938 | |
---|
4939 | |
---|
4940 | |
---|
4941 | |
---|
4942 | |
---|
4943 | |
---|
4944 | if test -n "$ac_tool_prefix"; then |
---|
4945 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
---|
4946 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
---|
4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4948 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4949 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
---|
4950 | $as_echo_n "(cached) " >&6 |
---|
4951 | else |
---|
4952 | if test -n "$OBJDUMP"; then |
---|
4953 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
---|
4954 | else |
---|
4955 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4956 | for as_dir in $PATH |
---|
4957 | do |
---|
4958 | IFS=$as_save_IFS |
---|
4959 | test -z "$as_dir" && as_dir=. |
---|
4960 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
4961 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
4962 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
---|
4963 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
4964 | break 2 |
---|
4965 | fi |
---|
4966 | done |
---|
4967 | done |
---|
4968 | IFS=$as_save_IFS |
---|
4969 | |
---|
4970 | fi |
---|
4971 | fi |
---|
4972 | OBJDUMP=$ac_cv_prog_OBJDUMP |
---|
4973 | if test -n "$OBJDUMP"; then |
---|
4974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
---|
4975 | $as_echo "$OBJDUMP" >&6; } |
---|
4976 | else |
---|
4977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
4978 | $as_echo "no" >&6; } |
---|
4979 | fi |
---|
4980 | |
---|
4981 | |
---|
4982 | fi |
---|
4983 | if test -z "$ac_cv_prog_OBJDUMP"; then |
---|
4984 | ac_ct_OBJDUMP=$OBJDUMP |
---|
4985 | # Extract the first word of "objdump", so it can be a program name with args. |
---|
4986 | set dummy objdump; ac_word=$2 |
---|
4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
4988 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
4989 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
---|
4990 | $as_echo_n "(cached) " >&6 |
---|
4991 | else |
---|
4992 | if test -n "$ac_ct_OBJDUMP"; then |
---|
4993 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
---|
4994 | else |
---|
4995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
4996 | for as_dir in $PATH |
---|
4997 | do |
---|
4998 | IFS=$as_save_IFS |
---|
4999 | test -z "$as_dir" && as_dir=. |
---|
5000 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5001 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5002 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
---|
5003 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5004 | break 2 |
---|
5005 | fi |
---|
5006 | done |
---|
5007 | done |
---|
5008 | IFS=$as_save_IFS |
---|
5009 | |
---|
5010 | fi |
---|
5011 | fi |
---|
5012 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
---|
5013 | if test -n "$ac_ct_OBJDUMP"; then |
---|
5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
---|
5015 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
---|
5016 | else |
---|
5017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5018 | $as_echo "no" >&6; } |
---|
5019 | fi |
---|
5020 | |
---|
5021 | if test "x$ac_ct_OBJDUMP" = x; then |
---|
5022 | OBJDUMP="false" |
---|
5023 | else |
---|
5024 | case $cross_compiling:$ac_tool_warned in |
---|
5025 | yes:) |
---|
5026 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
5027 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
5028 | ac_tool_warned=yes ;; |
---|
5029 | esac |
---|
5030 | OBJDUMP=$ac_ct_OBJDUMP |
---|
5031 | fi |
---|
5032 | else |
---|
5033 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
---|
5034 | fi |
---|
5035 | |
---|
5036 | test -z "$OBJDUMP" && OBJDUMP=objdump |
---|
5037 | |
---|
5038 | |
---|
5039 | |
---|
5040 | |
---|
5041 | |
---|
5042 | |
---|
5043 | |
---|
5044 | |
---|
5045 | |
---|
5046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
---|
5047 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
---|
5048 | if ${lt_cv_deplibs_check_method+:} false; then : |
---|
5049 | $as_echo_n "(cached) " >&6 |
---|
5050 | else |
---|
5051 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
---|
5052 | lt_cv_file_magic_test_file= |
---|
5053 | lt_cv_deplibs_check_method='unknown' |
---|
5054 | # Need to set the preceding variable on all platforms that support |
---|
5055 | # interlibrary dependencies. |
---|
5056 | # 'none' -- dependencies not supported. |
---|
5057 | # `unknown' -- same as none, but documents that we really don't know. |
---|
5058 | # 'pass_all' -- all dependencies passed with no checks. |
---|
5059 | # 'test_compile' -- check by making test program. |
---|
5060 | # 'file_magic [[regex]]' -- check by looking for files in library path |
---|
5061 | # which responds to the $file_magic_cmd with a given extended regex. |
---|
5062 | # If you have `file' or equivalent on your system and you're not sure |
---|
5063 | # whether `pass_all' will *always* work, you probably want this one. |
---|
5064 | |
---|
5065 | case $host_os in |
---|
5066 | aix[4-9]*) |
---|
5067 | lt_cv_deplibs_check_method=pass_all |
---|
5068 | ;; |
---|
5069 | |
---|
5070 | beos*) |
---|
5071 | lt_cv_deplibs_check_method=pass_all |
---|
5072 | ;; |
---|
5073 | |
---|
5074 | bsdi[45]*) |
---|
5075 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
---|
5076 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
---|
5077 | lt_cv_file_magic_test_file=/shlib/libc.so |
---|
5078 | ;; |
---|
5079 | |
---|
5080 | cygwin*) |
---|
5081 | # func_win32_libid is a shell function defined in ltmain.sh |
---|
5082 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
5083 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
5084 | ;; |
---|
5085 | |
---|
5086 | mingw* | pw32*) |
---|
5087 | # Base MSYS/MinGW do not provide the 'file' command needed by |
---|
5088 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
---|
5089 | # unless we find 'file', for example because we are cross-compiling. |
---|
5090 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
---|
5091 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
---|
5092 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
---|
5093 | lt_cv_file_magic_cmd='func_win32_libid' |
---|
5094 | else |
---|
5095 | # Keep this pattern in sync with the one in func_win32_libid. |
---|
5096 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
---|
5097 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
5098 | fi |
---|
5099 | ;; |
---|
5100 | |
---|
5101 | cegcc*) |
---|
5102 | # use the weaker test based on 'objdump'. See mingw*. |
---|
5103 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
---|
5104 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
---|
5105 | ;; |
---|
5106 | |
---|
5107 | darwin* | rhapsody*) |
---|
5108 | lt_cv_deplibs_check_method=pass_all |
---|
5109 | ;; |
---|
5110 | |
---|
5111 | freebsd* | dragonfly*) |
---|
5112 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
---|
5113 | case $host_cpu in |
---|
5114 | i*86 ) |
---|
5115 | # Not sure whether the presence of OpenBSD here was a mistake. |
---|
5116 | # Let's accept both of them until this is cleared up. |
---|
5117 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
---|
5118 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
5119 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
---|
5120 | ;; |
---|
5121 | esac |
---|
5122 | else |
---|
5123 | lt_cv_deplibs_check_method=pass_all |
---|
5124 | fi |
---|
5125 | ;; |
---|
5126 | |
---|
5127 | gnu*) |
---|
5128 | lt_cv_deplibs_check_method=pass_all |
---|
5129 | ;; |
---|
5130 | |
---|
5131 | haiku*) |
---|
5132 | lt_cv_deplibs_check_method=pass_all |
---|
5133 | ;; |
---|
5134 | |
---|
5135 | hpux10.20* | hpux11*) |
---|
5136 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
5137 | case $host_cpu in |
---|
5138 | ia64*) |
---|
5139 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
---|
5140 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
---|
5141 | ;; |
---|
5142 | hppa*64*) |
---|
5143 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
---|
5144 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
---|
5145 | ;; |
---|
5146 | *) |
---|
5147 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
---|
5148 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
---|
5149 | ;; |
---|
5150 | esac |
---|
5151 | ;; |
---|
5152 | |
---|
5153 | interix[3-9]*) |
---|
5154 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
---|
5155 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
---|
5156 | ;; |
---|
5157 | |
---|
5158 | irix5* | irix6* | nonstopux*) |
---|
5159 | case $LD in |
---|
5160 | *-32|*"-32 ") libmagic=32-bit;; |
---|
5161 | *-n32|*"-n32 ") libmagic=N32;; |
---|
5162 | *-64|*"-64 ") libmagic=64-bit;; |
---|
5163 | *) libmagic=never-match;; |
---|
5164 | esac |
---|
5165 | lt_cv_deplibs_check_method=pass_all |
---|
5166 | ;; |
---|
5167 | |
---|
5168 | # This must be Linux ELF. |
---|
5169 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
---|
5170 | lt_cv_deplibs_check_method=pass_all |
---|
5171 | ;; |
---|
5172 | |
---|
5173 | netbsd*) |
---|
5174 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
---|
5175 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
5176 | else |
---|
5177 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
---|
5178 | fi |
---|
5179 | ;; |
---|
5180 | |
---|
5181 | newos6*) |
---|
5182 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
---|
5183 | lt_cv_file_magic_cmd=/usr/bin/file |
---|
5184 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
---|
5185 | ;; |
---|
5186 | |
---|
5187 | *nto* | *qnx*) |
---|
5188 | lt_cv_deplibs_check_method=pass_all |
---|
5189 | ;; |
---|
5190 | |
---|
5191 | openbsd*) |
---|
5192 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
5193 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
---|
5194 | else |
---|
5195 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
---|
5196 | fi |
---|
5197 | ;; |
---|
5198 | |
---|
5199 | osf3* | osf4* | osf5*) |
---|
5200 | lt_cv_deplibs_check_method=pass_all |
---|
5201 | ;; |
---|
5202 | |
---|
5203 | rdos*) |
---|
5204 | lt_cv_deplibs_check_method=pass_all |
---|
5205 | ;; |
---|
5206 | |
---|
5207 | solaris*) |
---|
5208 | lt_cv_deplibs_check_method=pass_all |
---|
5209 | ;; |
---|
5210 | |
---|
5211 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
5212 | lt_cv_deplibs_check_method=pass_all |
---|
5213 | ;; |
---|
5214 | |
---|
5215 | sysv4 | sysv4.3*) |
---|
5216 | case $host_vendor in |
---|
5217 | motorola) |
---|
5218 | 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]' |
---|
5219 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
---|
5220 | ;; |
---|
5221 | ncr) |
---|
5222 | lt_cv_deplibs_check_method=pass_all |
---|
5223 | ;; |
---|
5224 | sequent) |
---|
5225 | lt_cv_file_magic_cmd='/bin/file' |
---|
5226 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
---|
5227 | ;; |
---|
5228 | sni) |
---|
5229 | lt_cv_file_magic_cmd='/bin/file' |
---|
5230 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
---|
5231 | lt_cv_file_magic_test_file=/lib/libc.so |
---|
5232 | ;; |
---|
5233 | siemens) |
---|
5234 | lt_cv_deplibs_check_method=pass_all |
---|
5235 | ;; |
---|
5236 | pc) |
---|
5237 | lt_cv_deplibs_check_method=pass_all |
---|
5238 | ;; |
---|
5239 | esac |
---|
5240 | ;; |
---|
5241 | |
---|
5242 | tpf*) |
---|
5243 | lt_cv_deplibs_check_method=pass_all |
---|
5244 | ;; |
---|
5245 | esac |
---|
5246 | |
---|
5247 | fi |
---|
5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
---|
5249 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
---|
5250 | |
---|
5251 | file_magic_glob= |
---|
5252 | want_nocaseglob=no |
---|
5253 | if test "$build" = "$host"; then |
---|
5254 | case $host_os in |
---|
5255 | mingw* | pw32*) |
---|
5256 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
---|
5257 | want_nocaseglob=yes |
---|
5258 | else |
---|
5259 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
---|
5260 | fi |
---|
5261 | ;; |
---|
5262 | esac |
---|
5263 | fi |
---|
5264 | |
---|
5265 | file_magic_cmd=$lt_cv_file_magic_cmd |
---|
5266 | deplibs_check_method=$lt_cv_deplibs_check_method |
---|
5267 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
---|
5268 | |
---|
5269 | |
---|
5270 | |
---|
5271 | |
---|
5272 | |
---|
5273 | |
---|
5274 | |
---|
5275 | |
---|
5276 | |
---|
5277 | |
---|
5278 | |
---|
5279 | |
---|
5280 | |
---|
5281 | |
---|
5282 | |
---|
5283 | |
---|
5284 | |
---|
5285 | |
---|
5286 | |
---|
5287 | |
---|
5288 | |
---|
5289 | |
---|
5290 | if test -n "$ac_tool_prefix"; then |
---|
5291 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
---|
5292 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
---|
5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5294 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5295 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
---|
5296 | $as_echo_n "(cached) " >&6 |
---|
5297 | else |
---|
5298 | if test -n "$DLLTOOL"; then |
---|
5299 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
---|
5300 | else |
---|
5301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5302 | for as_dir in $PATH |
---|
5303 | do |
---|
5304 | IFS=$as_save_IFS |
---|
5305 | test -z "$as_dir" && as_dir=. |
---|
5306 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5307 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5308 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
---|
5309 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5310 | break 2 |
---|
5311 | fi |
---|
5312 | done |
---|
5313 | done |
---|
5314 | IFS=$as_save_IFS |
---|
5315 | |
---|
5316 | fi |
---|
5317 | fi |
---|
5318 | DLLTOOL=$ac_cv_prog_DLLTOOL |
---|
5319 | if test -n "$DLLTOOL"; then |
---|
5320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
---|
5321 | $as_echo "$DLLTOOL" >&6; } |
---|
5322 | else |
---|
5323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5324 | $as_echo "no" >&6; } |
---|
5325 | fi |
---|
5326 | |
---|
5327 | |
---|
5328 | fi |
---|
5329 | if test -z "$ac_cv_prog_DLLTOOL"; then |
---|
5330 | ac_ct_DLLTOOL=$DLLTOOL |
---|
5331 | # Extract the first word of "dlltool", so it can be a program name with args. |
---|
5332 | set dummy dlltool; ac_word=$2 |
---|
5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5334 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5335 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
---|
5336 | $as_echo_n "(cached) " >&6 |
---|
5337 | else |
---|
5338 | if test -n "$ac_ct_DLLTOOL"; then |
---|
5339 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
---|
5340 | else |
---|
5341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5342 | for as_dir in $PATH |
---|
5343 | do |
---|
5344 | IFS=$as_save_IFS |
---|
5345 | test -z "$as_dir" && as_dir=. |
---|
5346 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5347 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5348 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
---|
5349 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5350 | break 2 |
---|
5351 | fi |
---|
5352 | done |
---|
5353 | done |
---|
5354 | IFS=$as_save_IFS |
---|
5355 | |
---|
5356 | fi |
---|
5357 | fi |
---|
5358 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
---|
5359 | if test -n "$ac_ct_DLLTOOL"; then |
---|
5360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
---|
5361 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
---|
5362 | else |
---|
5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5364 | $as_echo "no" >&6; } |
---|
5365 | fi |
---|
5366 | |
---|
5367 | if test "x$ac_ct_DLLTOOL" = x; then |
---|
5368 | DLLTOOL="false" |
---|
5369 | else |
---|
5370 | case $cross_compiling:$ac_tool_warned in |
---|
5371 | yes:) |
---|
5372 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
5373 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
5374 | ac_tool_warned=yes ;; |
---|
5375 | esac |
---|
5376 | DLLTOOL=$ac_ct_DLLTOOL |
---|
5377 | fi |
---|
5378 | else |
---|
5379 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
---|
5380 | fi |
---|
5381 | |
---|
5382 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
---|
5383 | |
---|
5384 | |
---|
5385 | |
---|
5386 | |
---|
5387 | |
---|
5388 | |
---|
5389 | |
---|
5390 | |
---|
5391 | |
---|
5392 | |
---|
5393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
---|
5394 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
---|
5395 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
---|
5396 | $as_echo_n "(cached) " >&6 |
---|
5397 | else |
---|
5398 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
---|
5399 | |
---|
5400 | case $host_os in |
---|
5401 | cygwin* | mingw* | pw32* | cegcc*) |
---|
5402 | # two different shell functions defined in ltmain.sh |
---|
5403 | # decide which to use based on capabilities of $DLLTOOL |
---|
5404 | case `$DLLTOOL --help 2>&1` in |
---|
5405 | *--identify-strict*) |
---|
5406 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
---|
5407 | ;; |
---|
5408 | *) |
---|
5409 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
---|
5410 | ;; |
---|
5411 | esac |
---|
5412 | ;; |
---|
5413 | *) |
---|
5414 | # fallback: assume linklib IS sharedlib |
---|
5415 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
---|
5416 | ;; |
---|
5417 | esac |
---|
5418 | |
---|
5419 | fi |
---|
5420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
---|
5421 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
---|
5422 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
---|
5423 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
---|
5424 | |
---|
5425 | |
---|
5426 | |
---|
5427 | |
---|
5428 | |
---|
5429 | |
---|
5430 | |
---|
5431 | |
---|
5432 | if test -n "$ac_tool_prefix"; then |
---|
5433 | for ac_prog in ar |
---|
5434 | do |
---|
5435 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
5436 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
5437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5438 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5439 | if ${ac_cv_prog_AR+:} false; then : |
---|
5440 | $as_echo_n "(cached) " >&6 |
---|
5441 | else |
---|
5442 | if test -n "$AR"; then |
---|
5443 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
5444 | else |
---|
5445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5446 | for as_dir in $PATH |
---|
5447 | do |
---|
5448 | IFS=$as_save_IFS |
---|
5449 | test -z "$as_dir" && as_dir=. |
---|
5450 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5451 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5452 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
---|
5453 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5454 | break 2 |
---|
5455 | fi |
---|
5456 | done |
---|
5457 | done |
---|
5458 | IFS=$as_save_IFS |
---|
5459 | |
---|
5460 | fi |
---|
5461 | fi |
---|
5462 | AR=$ac_cv_prog_AR |
---|
5463 | if test -n "$AR"; then |
---|
5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
---|
5465 | $as_echo "$AR" >&6; } |
---|
5466 | else |
---|
5467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5468 | $as_echo "no" >&6; } |
---|
5469 | fi |
---|
5470 | |
---|
5471 | |
---|
5472 | test -n "$AR" && break |
---|
5473 | done |
---|
5474 | fi |
---|
5475 | if test -z "$AR"; then |
---|
5476 | ac_ct_AR=$AR |
---|
5477 | for ac_prog in ar |
---|
5478 | do |
---|
5479 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
5480 | set dummy $ac_prog; ac_word=$2 |
---|
5481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5482 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5483 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
---|
5484 | $as_echo_n "(cached) " >&6 |
---|
5485 | else |
---|
5486 | if test -n "$ac_ct_AR"; then |
---|
5487 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
---|
5488 | else |
---|
5489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5490 | for as_dir in $PATH |
---|
5491 | do |
---|
5492 | IFS=$as_save_IFS |
---|
5493 | test -z "$as_dir" && as_dir=. |
---|
5494 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5495 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5496 | ac_cv_prog_ac_ct_AR="$ac_prog" |
---|
5497 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5498 | break 2 |
---|
5499 | fi |
---|
5500 | done |
---|
5501 | done |
---|
5502 | IFS=$as_save_IFS |
---|
5503 | |
---|
5504 | fi |
---|
5505 | fi |
---|
5506 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
---|
5507 | if test -n "$ac_ct_AR"; then |
---|
5508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
---|
5509 | $as_echo "$ac_ct_AR" >&6; } |
---|
5510 | else |
---|
5511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5512 | $as_echo "no" >&6; } |
---|
5513 | fi |
---|
5514 | |
---|
5515 | |
---|
5516 | test -n "$ac_ct_AR" && break |
---|
5517 | done |
---|
5518 | |
---|
5519 | if test "x$ac_ct_AR" = x; then |
---|
5520 | AR="false" |
---|
5521 | else |
---|
5522 | case $cross_compiling:$ac_tool_warned in |
---|
5523 | yes:) |
---|
5524 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
5525 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
5526 | ac_tool_warned=yes ;; |
---|
5527 | esac |
---|
5528 | AR=$ac_ct_AR |
---|
5529 | fi |
---|
5530 | fi |
---|
5531 | |
---|
5532 | : ${AR=ar} |
---|
5533 | : ${AR_FLAGS=cru} |
---|
5534 | |
---|
5535 | |
---|
5536 | |
---|
5537 | |
---|
5538 | |
---|
5539 | |
---|
5540 | |
---|
5541 | |
---|
5542 | |
---|
5543 | |
---|
5544 | |
---|
5545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
---|
5546 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
---|
5547 | if ${lt_cv_ar_at_file+:} false; then : |
---|
5548 | $as_echo_n "(cached) " >&6 |
---|
5549 | else |
---|
5550 | lt_cv_ar_at_file=no |
---|
5551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5552 | /* end confdefs.h. */ |
---|
5553 | |
---|
5554 | int |
---|
5555 | main () |
---|
5556 | { |
---|
5557 | |
---|
5558 | ; |
---|
5559 | return 0; |
---|
5560 | } |
---|
5561 | _ACEOF |
---|
5562 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5563 | echo conftest.$ac_objext > conftest.lst |
---|
5564 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
---|
5565 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
---|
5566 | (eval $lt_ar_try) 2>&5 |
---|
5567 | ac_status=$? |
---|
5568 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
5569 | test $ac_status = 0; } |
---|
5570 | if test "$ac_status" -eq 0; then |
---|
5571 | # Ensure the archiver fails upon bogus file names. |
---|
5572 | rm -f conftest.$ac_objext libconftest.a |
---|
5573 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
---|
5574 | (eval $lt_ar_try) 2>&5 |
---|
5575 | ac_status=$? |
---|
5576 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
5577 | test $ac_status = 0; } |
---|
5578 | if test "$ac_status" -ne 0; then |
---|
5579 | lt_cv_ar_at_file=@ |
---|
5580 | fi |
---|
5581 | fi |
---|
5582 | rm -f conftest.* libconftest.a |
---|
5583 | |
---|
5584 | fi |
---|
5585 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5586 | |
---|
5587 | fi |
---|
5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
---|
5589 | $as_echo "$lt_cv_ar_at_file" >&6; } |
---|
5590 | |
---|
5591 | if test "x$lt_cv_ar_at_file" = xno; then |
---|
5592 | archiver_list_spec= |
---|
5593 | else |
---|
5594 | archiver_list_spec=$lt_cv_ar_at_file |
---|
5595 | fi |
---|
5596 | |
---|
5597 | |
---|
5598 | |
---|
5599 | |
---|
5600 | |
---|
5601 | |
---|
5602 | |
---|
5603 | if test -n "$ac_tool_prefix"; then |
---|
5604 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
---|
5605 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
---|
5606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5607 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5608 | if ${ac_cv_prog_STRIP+:} false; then : |
---|
5609 | $as_echo_n "(cached) " >&6 |
---|
5610 | else |
---|
5611 | if test -n "$STRIP"; then |
---|
5612 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
---|
5613 | else |
---|
5614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5615 | for as_dir in $PATH |
---|
5616 | do |
---|
5617 | IFS=$as_save_IFS |
---|
5618 | test -z "$as_dir" && as_dir=. |
---|
5619 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5620 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5621 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
---|
5622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5623 | break 2 |
---|
5624 | fi |
---|
5625 | done |
---|
5626 | done |
---|
5627 | IFS=$as_save_IFS |
---|
5628 | |
---|
5629 | fi |
---|
5630 | fi |
---|
5631 | STRIP=$ac_cv_prog_STRIP |
---|
5632 | if test -n "$STRIP"; then |
---|
5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
---|
5634 | $as_echo "$STRIP" >&6; } |
---|
5635 | else |
---|
5636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5637 | $as_echo "no" >&6; } |
---|
5638 | fi |
---|
5639 | |
---|
5640 | |
---|
5641 | fi |
---|
5642 | if test -z "$ac_cv_prog_STRIP"; then |
---|
5643 | ac_ct_STRIP=$STRIP |
---|
5644 | # Extract the first word of "strip", so it can be a program name with args. |
---|
5645 | set dummy strip; ac_word=$2 |
---|
5646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5647 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5648 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
---|
5649 | $as_echo_n "(cached) " >&6 |
---|
5650 | else |
---|
5651 | if test -n "$ac_ct_STRIP"; then |
---|
5652 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
---|
5653 | else |
---|
5654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5655 | for as_dir in $PATH |
---|
5656 | do |
---|
5657 | IFS=$as_save_IFS |
---|
5658 | test -z "$as_dir" && as_dir=. |
---|
5659 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5660 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5661 | ac_cv_prog_ac_ct_STRIP="strip" |
---|
5662 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5663 | break 2 |
---|
5664 | fi |
---|
5665 | done |
---|
5666 | done |
---|
5667 | IFS=$as_save_IFS |
---|
5668 | |
---|
5669 | fi |
---|
5670 | fi |
---|
5671 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
---|
5672 | if test -n "$ac_ct_STRIP"; then |
---|
5673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
---|
5674 | $as_echo "$ac_ct_STRIP" >&6; } |
---|
5675 | else |
---|
5676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5677 | $as_echo "no" >&6; } |
---|
5678 | fi |
---|
5679 | |
---|
5680 | if test "x$ac_ct_STRIP" = x; then |
---|
5681 | STRIP=":" |
---|
5682 | else |
---|
5683 | case $cross_compiling:$ac_tool_warned in |
---|
5684 | yes:) |
---|
5685 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
5686 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
5687 | ac_tool_warned=yes ;; |
---|
5688 | esac |
---|
5689 | STRIP=$ac_ct_STRIP |
---|
5690 | fi |
---|
5691 | else |
---|
5692 | STRIP="$ac_cv_prog_STRIP" |
---|
5693 | fi |
---|
5694 | |
---|
5695 | test -z "$STRIP" && STRIP=: |
---|
5696 | |
---|
5697 | |
---|
5698 | |
---|
5699 | |
---|
5700 | |
---|
5701 | |
---|
5702 | if test -n "$ac_tool_prefix"; then |
---|
5703 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
5704 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
5705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5706 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5707 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
5708 | $as_echo_n "(cached) " >&6 |
---|
5709 | else |
---|
5710 | if test -n "$RANLIB"; then |
---|
5711 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
5712 | else |
---|
5713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5714 | for as_dir in $PATH |
---|
5715 | do |
---|
5716 | IFS=$as_save_IFS |
---|
5717 | test -z "$as_dir" && as_dir=. |
---|
5718 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5719 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5720 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
5721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5722 | break 2 |
---|
5723 | fi |
---|
5724 | done |
---|
5725 | done |
---|
5726 | IFS=$as_save_IFS |
---|
5727 | |
---|
5728 | fi |
---|
5729 | fi |
---|
5730 | RANLIB=$ac_cv_prog_RANLIB |
---|
5731 | if test -n "$RANLIB"; then |
---|
5732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
5733 | $as_echo "$RANLIB" >&6; } |
---|
5734 | else |
---|
5735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5736 | $as_echo "no" >&6; } |
---|
5737 | fi |
---|
5738 | |
---|
5739 | |
---|
5740 | fi |
---|
5741 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
5742 | ac_ct_RANLIB=$RANLIB |
---|
5743 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
5744 | set dummy ranlib; ac_word=$2 |
---|
5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
5746 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
5747 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
5748 | $as_echo_n "(cached) " >&6 |
---|
5749 | else |
---|
5750 | if test -n "$ac_ct_RANLIB"; then |
---|
5751 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
5752 | else |
---|
5753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5754 | for as_dir in $PATH |
---|
5755 | do |
---|
5756 | IFS=$as_save_IFS |
---|
5757 | test -z "$as_dir" && as_dir=. |
---|
5758 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
5759 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
5760 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
5761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
5762 | break 2 |
---|
5763 | fi |
---|
5764 | done |
---|
5765 | done |
---|
5766 | IFS=$as_save_IFS |
---|
5767 | |
---|
5768 | fi |
---|
5769 | fi |
---|
5770 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
5771 | if test -n "$ac_ct_RANLIB"; then |
---|
5772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
5773 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
5774 | else |
---|
5775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
5776 | $as_echo "no" >&6; } |
---|
5777 | fi |
---|
5778 | |
---|
5779 | if test "x$ac_ct_RANLIB" = x; then |
---|
5780 | RANLIB=":" |
---|
5781 | else |
---|
5782 | case $cross_compiling:$ac_tool_warned in |
---|
5783 | yes:) |
---|
5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
5785 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
5786 | ac_tool_warned=yes ;; |
---|
5787 | esac |
---|
5788 | RANLIB=$ac_ct_RANLIB |
---|
5789 | fi |
---|
5790 | else |
---|
5791 | RANLIB="$ac_cv_prog_RANLIB" |
---|
5792 | fi |
---|
5793 | |
---|
5794 | test -z "$RANLIB" && RANLIB=: |
---|
5795 | |
---|
5796 | |
---|
5797 | |
---|
5798 | |
---|
5799 | |
---|
5800 | |
---|
5801 | # Determine commands to create old-style static archives. |
---|
5802 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
---|
5803 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
5804 | old_postuninstall_cmds= |
---|
5805 | |
---|
5806 | if test -n "$RANLIB"; then |
---|
5807 | case $host_os in |
---|
5808 | openbsd*) |
---|
5809 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
---|
5810 | ;; |
---|
5811 | *) |
---|
5812 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
---|
5813 | ;; |
---|
5814 | esac |
---|
5815 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
---|
5816 | fi |
---|
5817 | |
---|
5818 | case $host_os in |
---|
5819 | darwin*) |
---|
5820 | lock_old_archive_extraction=yes ;; |
---|
5821 | *) |
---|
5822 | lock_old_archive_extraction=no ;; |
---|
5823 | esac |
---|
5824 | |
---|
5825 | |
---|
5826 | |
---|
5827 | |
---|
5828 | |
---|
5829 | |
---|
5830 | |
---|
5831 | |
---|
5832 | |
---|
5833 | |
---|
5834 | |
---|
5835 | |
---|
5836 | |
---|
5837 | |
---|
5838 | |
---|
5839 | |
---|
5840 | |
---|
5841 | |
---|
5842 | |
---|
5843 | |
---|
5844 | |
---|
5845 | |
---|
5846 | |
---|
5847 | |
---|
5848 | |
---|
5849 | |
---|
5850 | |
---|
5851 | |
---|
5852 | |
---|
5853 | |
---|
5854 | |
---|
5855 | |
---|
5856 | |
---|
5857 | |
---|
5858 | |
---|
5859 | |
---|
5860 | |
---|
5861 | |
---|
5862 | |
---|
5863 | # If no C compiler was specified, use CC. |
---|
5864 | LTCC=${LTCC-"$CC"} |
---|
5865 | |
---|
5866 | # If no C compiler flags were specified, use CFLAGS. |
---|
5867 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
5868 | |
---|
5869 | # Allow CC to be a program name with arguments. |
---|
5870 | compiler=$CC |
---|
5871 | |
---|
5872 | |
---|
5873 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
---|
5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
---|
5875 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
---|
5876 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
---|
5877 | $as_echo_n "(cached) " >&6 |
---|
5878 | else |
---|
5879 | |
---|
5880 | # These are sane defaults that work on at least a few old systems. |
---|
5881 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
---|
5882 | |
---|
5883 | # Character class describing NM global symbol codes. |
---|
5884 | symcode='[BCDEGRST]' |
---|
5885 | |
---|
5886 | # Regexp to match symbols that can be accessed directly from C. |
---|
5887 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
---|
5888 | |
---|
5889 | # Define system-specific variables. |
---|
5890 | case $host_os in |
---|
5891 | aix*) |
---|
5892 | symcode='[BCDT]' |
---|
5893 | ;; |
---|
5894 | cygwin* | mingw* | pw32* | cegcc*) |
---|
5895 | symcode='[ABCDGISTW]' |
---|
5896 | ;; |
---|
5897 | hpux*) |
---|
5898 | if test "$host_cpu" = ia64; then |
---|
5899 | symcode='[ABCDEGRST]' |
---|
5900 | fi |
---|
5901 | ;; |
---|
5902 | irix* | nonstopux*) |
---|
5903 | symcode='[BCDEGRST]' |
---|
5904 | ;; |
---|
5905 | osf*) |
---|
5906 | symcode='[BCDEGQRST]' |
---|
5907 | ;; |
---|
5908 | solaris*) |
---|
5909 | symcode='[BDRT]' |
---|
5910 | ;; |
---|
5911 | sco3.2v5*) |
---|
5912 | symcode='[DT]' |
---|
5913 | ;; |
---|
5914 | sysv4.2uw2*) |
---|
5915 | symcode='[DT]' |
---|
5916 | ;; |
---|
5917 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
---|
5918 | symcode='[ABDT]' |
---|
5919 | ;; |
---|
5920 | sysv4) |
---|
5921 | symcode='[DFNSTU]' |
---|
5922 | ;; |
---|
5923 | esac |
---|
5924 | |
---|
5925 | # If we're using GNU nm, then use its standard symbol codes. |
---|
5926 | case `$NM -V 2>&1` in |
---|
5927 | *GNU* | *'with BFD'*) |
---|
5928 | symcode='[ABCDGIRSTW]' ;; |
---|
5929 | esac |
---|
5930 | |
---|
5931 | # Transform an extracted symbol line into a proper C declaration. |
---|
5932 | # Some systems (esp. on ia64) link data and code symbols differently, |
---|
5933 | # so use this general approach. |
---|
5934 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
---|
5935 | |
---|
5936 | # Transform an extracted symbol line into symbol name and symbol address |
---|
5937 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
---|
5938 | 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'" |
---|
5939 | |
---|
5940 | # Handle CRLF in mingw tool chain |
---|
5941 | opt_cr= |
---|
5942 | case $build_os in |
---|
5943 | mingw*) |
---|
5944 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
---|
5945 | ;; |
---|
5946 | esac |
---|
5947 | |
---|
5948 | # Try without a prefix underscore, then with it. |
---|
5949 | for ac_symprfx in "" "_"; do |
---|
5950 | |
---|
5951 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
---|
5952 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
---|
5953 | |
---|
5954 | # Write the raw and C identifiers. |
---|
5955 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
---|
5956 | # Fake it for dumpbin and say T for any non-static function |
---|
5957 | # and D for any global variable. |
---|
5958 | # Also find C++ and __fastcall symbols from MSVC++, |
---|
5959 | # which start with @ or ?. |
---|
5960 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
---|
5961 | " {last_section=section; section=\$ 3};"\ |
---|
5962 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
---|
5963 | " \$ 0!~/External *\|/{next};"\ |
---|
5964 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
---|
5965 | " {if(hide[section]) next};"\ |
---|
5966 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
---|
5967 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
---|
5968 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
---|
5969 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
---|
5970 | " ' prfx=^$ac_symprfx" |
---|
5971 | else |
---|
5972 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
---|
5973 | fi |
---|
5974 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
---|
5975 | |
---|
5976 | # Check to see that the pipe works correctly. |
---|
5977 | pipe_works=no |
---|
5978 | |
---|
5979 | rm -f conftest* |
---|
5980 | cat > conftest.$ac_ext <<_LT_EOF |
---|
5981 | #ifdef __cplusplus |
---|
5982 | extern "C" { |
---|
5983 | #endif |
---|
5984 | char nm_test_var; |
---|
5985 | void nm_test_func(void); |
---|
5986 | void nm_test_func(void){} |
---|
5987 | #ifdef __cplusplus |
---|
5988 | } |
---|
5989 | #endif |
---|
5990 | int main(){nm_test_var='a';nm_test_func();return(0);} |
---|
5991 | _LT_EOF |
---|
5992 | |
---|
5993 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
5994 | (eval $ac_compile) 2>&5 |
---|
5995 | ac_status=$? |
---|
5996 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
5997 | test $ac_status = 0; }; then |
---|
5998 | # Now try to grab the symbols. |
---|
5999 | nlist=conftest.nm |
---|
6000 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
---|
6001 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
---|
6002 | ac_status=$? |
---|
6003 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
6004 | test $ac_status = 0; } && test -s "$nlist"; then |
---|
6005 | # Try sorting and uniquifying the output. |
---|
6006 | if sort "$nlist" | uniq > "$nlist"T; then |
---|
6007 | mv -f "$nlist"T "$nlist" |
---|
6008 | else |
---|
6009 | rm -f "$nlist"T |
---|
6010 | fi |
---|
6011 | |
---|
6012 | # Make sure that we snagged all the symbols we need. |
---|
6013 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
---|
6014 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
---|
6015 | cat <<_LT_EOF > conftest.$ac_ext |
---|
6016 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
---|
6017 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
---|
6018 | /* DATA imports from DLLs on WIN32 con't be const, because runtime |
---|
6019 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
---|
6020 | # define LT_DLSYM_CONST |
---|
6021 | #elif defined(__osf__) |
---|
6022 | /* This system does not cope well with relocations in const data. */ |
---|
6023 | # define LT_DLSYM_CONST |
---|
6024 | #else |
---|
6025 | # define LT_DLSYM_CONST const |
---|
6026 | #endif |
---|
6027 | |
---|
6028 | #ifdef __cplusplus |
---|
6029 | extern "C" { |
---|
6030 | #endif |
---|
6031 | |
---|
6032 | _LT_EOF |
---|
6033 | # Now generate the symbol file. |
---|
6034 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
---|
6035 | |
---|
6036 | cat <<_LT_EOF >> conftest.$ac_ext |
---|
6037 | |
---|
6038 | /* The mapping between symbol names and symbols. */ |
---|
6039 | LT_DLSYM_CONST struct { |
---|
6040 | const char *name; |
---|
6041 | void *address; |
---|
6042 | } |
---|
6043 | lt__PROGRAM__LTX_preloaded_symbols[] = |
---|
6044 | { |
---|
6045 | { "@PROGRAM@", (void *) 0 }, |
---|
6046 | _LT_EOF |
---|
6047 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
---|
6048 | cat <<\_LT_EOF >> conftest.$ac_ext |
---|
6049 | {0, (void *) 0} |
---|
6050 | }; |
---|
6051 | |
---|
6052 | /* This works around a problem in FreeBSD linker */ |
---|
6053 | #ifdef FREEBSD_WORKAROUND |
---|
6054 | static const void *lt_preloaded_setup() { |
---|
6055 | return lt__PROGRAM__LTX_preloaded_symbols; |
---|
6056 | } |
---|
6057 | #endif |
---|
6058 | |
---|
6059 | #ifdef __cplusplus |
---|
6060 | } |
---|
6061 | #endif |
---|
6062 | _LT_EOF |
---|
6063 | # Now try linking the two files. |
---|
6064 | mv conftest.$ac_objext conftstm.$ac_objext |
---|
6065 | lt_globsym_save_LIBS=$LIBS |
---|
6066 | lt_globsym_save_CFLAGS=$CFLAGS |
---|
6067 | LIBS="conftstm.$ac_objext" |
---|
6068 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
---|
6069 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
---|
6070 | (eval $ac_link) 2>&5 |
---|
6071 | ac_status=$? |
---|
6072 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
6073 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
---|
6074 | pipe_works=yes |
---|
6075 | fi |
---|
6076 | LIBS=$lt_globsym_save_LIBS |
---|
6077 | CFLAGS=$lt_globsym_save_CFLAGS |
---|
6078 | else |
---|
6079 | echo "cannot find nm_test_func in $nlist" >&5 |
---|
6080 | fi |
---|
6081 | else |
---|
6082 | echo "cannot find nm_test_var in $nlist" >&5 |
---|
6083 | fi |
---|
6084 | else |
---|
6085 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
---|
6086 | fi |
---|
6087 | else |
---|
6088 | echo "$progname: failed program was:" >&5 |
---|
6089 | cat conftest.$ac_ext >&5 |
---|
6090 | fi |
---|
6091 | rm -rf conftest* conftst* |
---|
6092 | |
---|
6093 | # Do not use the global_symbol_pipe unless it works. |
---|
6094 | if test "$pipe_works" = yes; then |
---|
6095 | break |
---|
6096 | else |
---|
6097 | lt_cv_sys_global_symbol_pipe= |
---|
6098 | fi |
---|
6099 | done |
---|
6100 | |
---|
6101 | fi |
---|
6102 | |
---|
6103 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
---|
6104 | lt_cv_sys_global_symbol_to_cdecl= |
---|
6105 | fi |
---|
6106 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
---|
6107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
---|
6108 | $as_echo "failed" >&6; } |
---|
6109 | else |
---|
6110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
---|
6111 | $as_echo "ok" >&6; } |
---|
6112 | fi |
---|
6113 | |
---|
6114 | # Response file support. |
---|
6115 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
---|
6116 | nm_file_list_spec='@' |
---|
6117 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
---|
6118 | nm_file_list_spec='@' |
---|
6119 | fi |
---|
6120 | |
---|
6121 | |
---|
6122 | |
---|
6123 | |
---|
6124 | |
---|
6125 | |
---|
6126 | |
---|
6127 | |
---|
6128 | |
---|
6129 | |
---|
6130 | |
---|
6131 | |
---|
6132 | |
---|
6133 | |
---|
6134 | |
---|
6135 | |
---|
6136 | |
---|
6137 | |
---|
6138 | |
---|
6139 | |
---|
6140 | |
---|
6141 | |
---|
6142 | |
---|
6143 | |
---|
6144 | |
---|
6145 | |
---|
6146 | |
---|
6147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
---|
6148 | $as_echo_n "checking for sysroot... " >&6; } |
---|
6149 | |
---|
6150 | # Check whether --with-sysroot was given. |
---|
6151 | if test "${with_sysroot+set}" = set; then : |
---|
6152 | withval=$with_sysroot; |
---|
6153 | else |
---|
6154 | with_sysroot=no |
---|
6155 | fi |
---|
6156 | |
---|
6157 | |
---|
6158 | lt_sysroot= |
---|
6159 | case ${with_sysroot} in #( |
---|
6160 | yes) |
---|
6161 | if test "$GCC" = yes; then |
---|
6162 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
---|
6163 | fi |
---|
6164 | ;; #( |
---|
6165 | /*) |
---|
6166 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
---|
6167 | ;; #( |
---|
6168 | no|'') |
---|
6169 | ;; #( |
---|
6170 | *) |
---|
6171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
---|
6172 | $as_echo "${with_sysroot}" >&6; } |
---|
6173 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
---|
6174 | ;; |
---|
6175 | esac |
---|
6176 | |
---|
6177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
---|
6178 | $as_echo "${lt_sysroot:-no}" >&6; } |
---|
6179 | |
---|
6180 | |
---|
6181 | |
---|
6182 | |
---|
6183 | |
---|
6184 | # Check whether --enable-libtool-lock was given. |
---|
6185 | if test "${enable_libtool_lock+set}" = set; then : |
---|
6186 | enableval=$enable_libtool_lock; |
---|
6187 | fi |
---|
6188 | |
---|
6189 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
---|
6190 | |
---|
6191 | # Some flags need to be propagated to the compiler or linker for good |
---|
6192 | # libtool support. |
---|
6193 | case $host in |
---|
6194 | ia64-*-hpux*) |
---|
6195 | # Find out which ABI we are using. |
---|
6196 | echo 'int i;' > conftest.$ac_ext |
---|
6197 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
6198 | (eval $ac_compile) 2>&5 |
---|
6199 | ac_status=$? |
---|
6200 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
6201 | test $ac_status = 0; }; then |
---|
6202 | case `/usr/bin/file conftest.$ac_objext` in |
---|
6203 | *ELF-32*) |
---|
6204 | HPUX_IA64_MODE="32" |
---|
6205 | ;; |
---|
6206 | *ELF-64*) |
---|
6207 | HPUX_IA64_MODE="64" |
---|
6208 | ;; |
---|
6209 | esac |
---|
6210 | fi |
---|
6211 | rm -rf conftest* |
---|
6212 | ;; |
---|
6213 | *-*-irix6*) |
---|
6214 | # Find out which ABI we are using. |
---|
6215 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
---|
6216 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
6217 | (eval $ac_compile) 2>&5 |
---|
6218 | ac_status=$? |
---|
6219 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
6220 | test $ac_status = 0; }; then |
---|
6221 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
6222 | case `/usr/bin/file conftest.$ac_objext` in |
---|
6223 | *32-bit*) |
---|
6224 | LD="${LD-ld} -melf32bsmip" |
---|
6225 | ;; |
---|
6226 | *N32*) |
---|
6227 | LD="${LD-ld} -melf32bmipn32" |
---|
6228 | ;; |
---|
6229 | *64-bit*) |
---|
6230 | LD="${LD-ld} -melf64bmip" |
---|
6231 | ;; |
---|
6232 | esac |
---|
6233 | else |
---|
6234 | case `/usr/bin/file conftest.$ac_objext` in |
---|
6235 | *32-bit*) |
---|
6236 | LD="${LD-ld} -32" |
---|
6237 | ;; |
---|
6238 | *N32*) |
---|
6239 | LD="${LD-ld} -n32" |
---|
6240 | ;; |
---|
6241 | *64-bit*) |
---|
6242 | LD="${LD-ld} -64" |
---|
6243 | ;; |
---|
6244 | esac |
---|
6245 | fi |
---|
6246 | fi |
---|
6247 | rm -rf conftest* |
---|
6248 | ;; |
---|
6249 | |
---|
6250 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
---|
6251 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
---|
6252 | # Find out which ABI we are using. |
---|
6253 | echo 'int i;' > conftest.$ac_ext |
---|
6254 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
6255 | (eval $ac_compile) 2>&5 |
---|
6256 | ac_status=$? |
---|
6257 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
6258 | test $ac_status = 0; }; then |
---|
6259 | case `/usr/bin/file conftest.o` in |
---|
6260 | *32-bit*) |
---|
6261 | case $host in |
---|
6262 | x86_64-*kfreebsd*-gnu) |
---|
6263 | LD="${LD-ld} -m elf_i386_fbsd" |
---|
6264 | ;; |
---|
6265 | x86_64-*linux*) |
---|
6266 | LD="${LD-ld} -m elf_i386" |
---|
6267 | ;; |
---|
6268 | ppc64-*linux*|powerpc64-*linux*) |
---|
6269 | LD="${LD-ld} -m elf32ppclinux" |
---|
6270 | ;; |
---|
6271 | s390x-*linux*) |
---|
6272 | LD="${LD-ld} -m elf_s390" |
---|
6273 | ;; |
---|
6274 | sparc64-*linux*) |
---|
6275 | LD="${LD-ld} -m elf32_sparc" |
---|
6276 | ;; |
---|
6277 | esac |
---|
6278 | ;; |
---|
6279 | *64-bit*) |
---|
6280 | case $host in |
---|
6281 | x86_64-*kfreebsd*-gnu) |
---|
6282 | LD="${LD-ld} -m elf_x86_64_fbsd" |
---|
6283 | ;; |
---|
6284 | x86_64-*linux*) |
---|
6285 | LD="${LD-ld} -m elf_x86_64" |
---|
6286 | ;; |
---|
6287 | ppc*-*linux*|powerpc*-*linux*) |
---|
6288 | LD="${LD-ld} -m elf64ppc" |
---|
6289 | ;; |
---|
6290 | s390*-*linux*|s390*-*tpf*) |
---|
6291 | LD="${LD-ld} -m elf64_s390" |
---|
6292 | ;; |
---|
6293 | sparc*-*linux*) |
---|
6294 | LD="${LD-ld} -m elf64_sparc" |
---|
6295 | ;; |
---|
6296 | esac |
---|
6297 | ;; |
---|
6298 | esac |
---|
6299 | fi |
---|
6300 | rm -rf conftest* |
---|
6301 | ;; |
---|
6302 | |
---|
6303 | *-*-sco3.2v5*) |
---|
6304 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
6305 | SAVE_CFLAGS="$CFLAGS" |
---|
6306 | CFLAGS="$CFLAGS -belf" |
---|
6307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
---|
6308 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
---|
6309 | if ${lt_cv_cc_needs_belf+:} false; then : |
---|
6310 | $as_echo_n "(cached) " >&6 |
---|
6311 | else |
---|
6312 | ac_ext=c |
---|
6313 | ac_cpp='$CPP $CPPFLAGS' |
---|
6314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6317 | |
---|
6318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
6319 | /* end confdefs.h. */ |
---|
6320 | |
---|
6321 | int |
---|
6322 | main () |
---|
6323 | { |
---|
6324 | |
---|
6325 | ; |
---|
6326 | return 0; |
---|
6327 | } |
---|
6328 | _ACEOF |
---|
6329 | if ac_fn_c_try_link "$LINENO"; then : |
---|
6330 | lt_cv_cc_needs_belf=yes |
---|
6331 | else |
---|
6332 | lt_cv_cc_needs_belf=no |
---|
6333 | fi |
---|
6334 | rm -f core conftest.err conftest.$ac_objext \ |
---|
6335 | conftest$ac_exeext conftest.$ac_ext |
---|
6336 | ac_ext=c |
---|
6337 | ac_cpp='$CPP $CPPFLAGS' |
---|
6338 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
6339 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
6340 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
6341 | |
---|
6342 | fi |
---|
6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
---|
6344 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
---|
6345 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
6346 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
6347 | CFLAGS="$SAVE_CFLAGS" |
---|
6348 | fi |
---|
6349 | ;; |
---|
6350 | sparc*-*solaris*) |
---|
6351 | # Find out which ABI we are using. |
---|
6352 | echo 'int i;' > conftest.$ac_ext |
---|
6353 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
6354 | (eval $ac_compile) 2>&5 |
---|
6355 | ac_status=$? |
---|
6356 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
6357 | test $ac_status = 0; }; then |
---|
6358 | case `/usr/bin/file conftest.o` in |
---|
6359 | *64-bit*) |
---|
6360 | case $lt_cv_prog_gnu_ld in |
---|
6361 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
---|
6362 | *) |
---|
6363 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
---|
6364 | LD="${LD-ld} -64" |
---|
6365 | fi |
---|
6366 | ;; |
---|
6367 | esac |
---|
6368 | ;; |
---|
6369 | esac |
---|
6370 | fi |
---|
6371 | rm -rf conftest* |
---|
6372 | ;; |
---|
6373 | esac |
---|
6374 | |
---|
6375 | need_locks="$enable_libtool_lock" |
---|
6376 | |
---|
6377 | if test -n "$ac_tool_prefix"; then |
---|
6378 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
---|
6379 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
---|
6380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6381 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6382 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
---|
6383 | $as_echo_n "(cached) " >&6 |
---|
6384 | else |
---|
6385 | if test -n "$MANIFEST_TOOL"; then |
---|
6386 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
---|
6387 | else |
---|
6388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6389 | for as_dir in $PATH |
---|
6390 | do |
---|
6391 | IFS=$as_save_IFS |
---|
6392 | test -z "$as_dir" && as_dir=. |
---|
6393 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6394 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
6395 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
---|
6396 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6397 | break 2 |
---|
6398 | fi |
---|
6399 | done |
---|
6400 | done |
---|
6401 | IFS=$as_save_IFS |
---|
6402 | |
---|
6403 | fi |
---|
6404 | fi |
---|
6405 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
---|
6406 | if test -n "$MANIFEST_TOOL"; then |
---|
6407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
---|
6408 | $as_echo "$MANIFEST_TOOL" >&6; } |
---|
6409 | else |
---|
6410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6411 | $as_echo "no" >&6; } |
---|
6412 | fi |
---|
6413 | |
---|
6414 | |
---|
6415 | fi |
---|
6416 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
---|
6417 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
---|
6418 | # Extract the first word of "mt", so it can be a program name with args. |
---|
6419 | set dummy mt; ac_word=$2 |
---|
6420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6421 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6422 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
---|
6423 | $as_echo_n "(cached) " >&6 |
---|
6424 | else |
---|
6425 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
---|
6426 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
---|
6427 | else |
---|
6428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6429 | for as_dir in $PATH |
---|
6430 | do |
---|
6431 | IFS=$as_save_IFS |
---|
6432 | test -z "$as_dir" && as_dir=. |
---|
6433 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6434 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
6435 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
---|
6436 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6437 | break 2 |
---|
6438 | fi |
---|
6439 | done |
---|
6440 | done |
---|
6441 | IFS=$as_save_IFS |
---|
6442 | |
---|
6443 | fi |
---|
6444 | fi |
---|
6445 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
---|
6446 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
---|
6447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
---|
6448 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
---|
6449 | else |
---|
6450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6451 | $as_echo "no" >&6; } |
---|
6452 | fi |
---|
6453 | |
---|
6454 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
---|
6455 | MANIFEST_TOOL=":" |
---|
6456 | else |
---|
6457 | case $cross_compiling:$ac_tool_warned in |
---|
6458 | yes:) |
---|
6459 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6460 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6461 | ac_tool_warned=yes ;; |
---|
6462 | esac |
---|
6463 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
---|
6464 | fi |
---|
6465 | else |
---|
6466 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
---|
6467 | fi |
---|
6468 | |
---|
6469 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
---|
6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
---|
6471 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
---|
6472 | if ${lt_cv_path_mainfest_tool+:} false; then : |
---|
6473 | $as_echo_n "(cached) " >&6 |
---|
6474 | else |
---|
6475 | lt_cv_path_mainfest_tool=no |
---|
6476 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
---|
6477 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
---|
6478 | cat conftest.err >&5 |
---|
6479 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
---|
6480 | lt_cv_path_mainfest_tool=yes |
---|
6481 | fi |
---|
6482 | rm -f conftest* |
---|
6483 | fi |
---|
6484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
---|
6485 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
---|
6486 | if test "x$lt_cv_path_mainfest_tool" != xyes; then |
---|
6487 | MANIFEST_TOOL=: |
---|
6488 | fi |
---|
6489 | |
---|
6490 | |
---|
6491 | |
---|
6492 | |
---|
6493 | |
---|
6494 | |
---|
6495 | case $host_os in |
---|
6496 | rhapsody* | darwin*) |
---|
6497 | if test -n "$ac_tool_prefix"; then |
---|
6498 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
---|
6499 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
---|
6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6501 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6502 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
---|
6503 | $as_echo_n "(cached) " >&6 |
---|
6504 | else |
---|
6505 | if test -n "$DSYMUTIL"; then |
---|
6506 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
---|
6507 | else |
---|
6508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6509 | for as_dir in $PATH |
---|
6510 | do |
---|
6511 | IFS=$as_save_IFS |
---|
6512 | test -z "$as_dir" && as_dir=. |
---|
6513 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6514 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
6515 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
---|
6516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6517 | break 2 |
---|
6518 | fi |
---|
6519 | done |
---|
6520 | done |
---|
6521 | IFS=$as_save_IFS |
---|
6522 | |
---|
6523 | fi |
---|
6524 | fi |
---|
6525 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
---|
6526 | if test -n "$DSYMUTIL"; then |
---|
6527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
---|
6528 | $as_echo "$DSYMUTIL" >&6; } |
---|
6529 | else |
---|
6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6531 | $as_echo "no" >&6; } |
---|
6532 | fi |
---|
6533 | |
---|
6534 | |
---|
6535 | fi |
---|
6536 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
---|
6537 | ac_ct_DSYMUTIL=$DSYMUTIL |
---|
6538 | # Extract the first word of "dsymutil", so it can be a program name with args. |
---|
6539 | set dummy dsymutil; ac_word=$2 |
---|
6540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6541 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6542 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
---|
6543 | $as_echo_n "(cached) " >&6 |
---|
6544 | else |
---|
6545 | if test -n "$ac_ct_DSYMUTIL"; then |
---|
6546 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
---|
6547 | else |
---|
6548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6549 | for as_dir in $PATH |
---|
6550 | do |
---|
6551 | IFS=$as_save_IFS |
---|
6552 | test -z "$as_dir" && as_dir=. |
---|
6553 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6554 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
6555 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
---|
6556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6557 | break 2 |
---|
6558 | fi |
---|
6559 | done |
---|
6560 | done |
---|
6561 | IFS=$as_save_IFS |
---|
6562 | |
---|
6563 | fi |
---|
6564 | fi |
---|
6565 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
---|
6566 | if test -n "$ac_ct_DSYMUTIL"; then |
---|
6567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
---|
6568 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
---|
6569 | else |
---|
6570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6571 | $as_echo "no" >&6; } |
---|
6572 | fi |
---|
6573 | |
---|
6574 | if test "x$ac_ct_DSYMUTIL" = x; then |
---|
6575 | DSYMUTIL=":" |
---|
6576 | else |
---|
6577 | case $cross_compiling:$ac_tool_warned in |
---|
6578 | yes:) |
---|
6579 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6580 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6581 | ac_tool_warned=yes ;; |
---|
6582 | esac |
---|
6583 | DSYMUTIL=$ac_ct_DSYMUTIL |
---|
6584 | fi |
---|
6585 | else |
---|
6586 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
---|
6587 | fi |
---|
6588 | |
---|
6589 | if test -n "$ac_tool_prefix"; then |
---|
6590 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
---|
6591 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
---|
6592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6593 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6594 | if ${ac_cv_prog_NMEDIT+:} false; then : |
---|
6595 | $as_echo_n "(cached) " >&6 |
---|
6596 | else |
---|
6597 | if test -n "$NMEDIT"; then |
---|
6598 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
---|
6599 | else |
---|
6600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6601 | for as_dir in $PATH |
---|
6602 | do |
---|
6603 | IFS=$as_save_IFS |
---|
6604 | test -z "$as_dir" && as_dir=. |
---|
6605 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6606 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
6607 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
---|
6608 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6609 | break 2 |
---|
6610 | fi |
---|
6611 | done |
---|
6612 | done |
---|
6613 | IFS=$as_save_IFS |
---|
6614 | |
---|
6615 | fi |
---|
6616 | fi |
---|
6617 | NMEDIT=$ac_cv_prog_NMEDIT |
---|
6618 | if test -n "$NMEDIT"; then |
---|
6619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
---|
6620 | $as_echo "$NMEDIT" >&6; } |
---|
6621 | else |
---|
6622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6623 | $as_echo "no" >&6; } |
---|
6624 | fi |
---|
6625 | |
---|
6626 | |
---|
6627 | fi |
---|
6628 | if test -z "$ac_cv_prog_NMEDIT"; then |
---|
6629 | ac_ct_NMEDIT=$NMEDIT |
---|
6630 | # Extract the first word of "nmedit", so it can be a program name with args. |
---|
6631 | set dummy nmedit; ac_word=$2 |
---|
6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6633 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6634 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
---|
6635 | $as_echo_n "(cached) " >&6 |
---|
6636 | else |
---|
6637 | if test -n "$ac_ct_NMEDIT"; then |
---|
6638 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
---|
6639 | else |
---|
6640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6641 | for as_dir in $PATH |
---|
6642 | do |
---|
6643 | IFS=$as_save_IFS |
---|
6644 | test -z "$as_dir" && as_dir=. |
---|
6645 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6646 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
6647 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
---|
6648 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6649 | break 2 |
---|
6650 | fi |
---|
6651 | done |
---|
6652 | done |
---|
6653 | IFS=$as_save_IFS |
---|
6654 | |
---|
6655 | fi |
---|
6656 | fi |
---|
6657 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
---|
6658 | if test -n "$ac_ct_NMEDIT"; then |
---|
6659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
---|
6660 | $as_echo "$ac_ct_NMEDIT" >&6; } |
---|
6661 | else |
---|
6662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6663 | $as_echo "no" >&6; } |
---|
6664 | fi |
---|
6665 | |
---|
6666 | if test "x$ac_ct_NMEDIT" = x; then |
---|
6667 | NMEDIT=":" |
---|
6668 | else |
---|
6669 | case $cross_compiling:$ac_tool_warned in |
---|
6670 | yes:) |
---|
6671 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6672 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6673 | ac_tool_warned=yes ;; |
---|
6674 | esac |
---|
6675 | NMEDIT=$ac_ct_NMEDIT |
---|
6676 | fi |
---|
6677 | else |
---|
6678 | NMEDIT="$ac_cv_prog_NMEDIT" |
---|
6679 | fi |
---|
6680 | |
---|
6681 | if test -n "$ac_tool_prefix"; then |
---|
6682 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
---|
6683 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
---|
6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6685 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6686 | if ${ac_cv_prog_LIPO+:} false; then : |
---|
6687 | $as_echo_n "(cached) " >&6 |
---|
6688 | else |
---|
6689 | if test -n "$LIPO"; then |
---|
6690 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
---|
6691 | else |
---|
6692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6693 | for as_dir in $PATH |
---|
6694 | do |
---|
6695 | IFS=$as_save_IFS |
---|
6696 | test -z "$as_dir" && as_dir=. |
---|
6697 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6698 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
6699 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
---|
6700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6701 | break 2 |
---|
6702 | fi |
---|
6703 | done |
---|
6704 | done |
---|
6705 | IFS=$as_save_IFS |
---|
6706 | |
---|
6707 | fi |
---|
6708 | fi |
---|
6709 | LIPO=$ac_cv_prog_LIPO |
---|
6710 | if test -n "$LIPO"; then |
---|
6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
---|
6712 | $as_echo "$LIPO" >&6; } |
---|
6713 | else |
---|
6714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6715 | $as_echo "no" >&6; } |
---|
6716 | fi |
---|
6717 | |
---|
6718 | |
---|
6719 | fi |
---|
6720 | if test -z "$ac_cv_prog_LIPO"; then |
---|
6721 | ac_ct_LIPO=$LIPO |
---|
6722 | # Extract the first word of "lipo", so it can be a program name with args. |
---|
6723 | set dummy lipo; ac_word=$2 |
---|
6724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6725 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6726 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
---|
6727 | $as_echo_n "(cached) " >&6 |
---|
6728 | else |
---|
6729 | if test -n "$ac_ct_LIPO"; then |
---|
6730 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
---|
6731 | else |
---|
6732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6733 | for as_dir in $PATH |
---|
6734 | do |
---|
6735 | IFS=$as_save_IFS |
---|
6736 | test -z "$as_dir" && as_dir=. |
---|
6737 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
6739 | ac_cv_prog_ac_ct_LIPO="lipo" |
---|
6740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6741 | break 2 |
---|
6742 | fi |
---|
6743 | done |
---|
6744 | done |
---|
6745 | IFS=$as_save_IFS |
---|
6746 | |
---|
6747 | fi |
---|
6748 | fi |
---|
6749 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
---|
6750 | if test -n "$ac_ct_LIPO"; then |
---|
6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
---|
6752 | $as_echo "$ac_ct_LIPO" >&6; } |
---|
6753 | else |
---|
6754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6755 | $as_echo "no" >&6; } |
---|
6756 | fi |
---|
6757 | |
---|
6758 | if test "x$ac_ct_LIPO" = x; then |
---|
6759 | LIPO=":" |
---|
6760 | else |
---|
6761 | case $cross_compiling:$ac_tool_warned in |
---|
6762 | yes:) |
---|
6763 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6764 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6765 | ac_tool_warned=yes ;; |
---|
6766 | esac |
---|
6767 | LIPO=$ac_ct_LIPO |
---|
6768 | fi |
---|
6769 | else |
---|
6770 | LIPO="$ac_cv_prog_LIPO" |
---|
6771 | fi |
---|
6772 | |
---|
6773 | if test -n "$ac_tool_prefix"; then |
---|
6774 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
---|
6775 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
---|
6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6777 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6778 | if ${ac_cv_prog_OTOOL+:} false; then : |
---|
6779 | $as_echo_n "(cached) " >&6 |
---|
6780 | else |
---|
6781 | if test -n "$OTOOL"; then |
---|
6782 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
---|
6783 | else |
---|
6784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6785 | for as_dir in $PATH |
---|
6786 | do |
---|
6787 | IFS=$as_save_IFS |
---|
6788 | test -z "$as_dir" && as_dir=. |
---|
6789 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6790 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
6791 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
---|
6792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6793 | break 2 |
---|
6794 | fi |
---|
6795 | done |
---|
6796 | done |
---|
6797 | IFS=$as_save_IFS |
---|
6798 | |
---|
6799 | fi |
---|
6800 | fi |
---|
6801 | OTOOL=$ac_cv_prog_OTOOL |
---|
6802 | if test -n "$OTOOL"; then |
---|
6803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
---|
6804 | $as_echo "$OTOOL" >&6; } |
---|
6805 | else |
---|
6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6807 | $as_echo "no" >&6; } |
---|
6808 | fi |
---|
6809 | |
---|
6810 | |
---|
6811 | fi |
---|
6812 | if test -z "$ac_cv_prog_OTOOL"; then |
---|
6813 | ac_ct_OTOOL=$OTOOL |
---|
6814 | # Extract the first word of "otool", so it can be a program name with args. |
---|
6815 | set dummy otool; ac_word=$2 |
---|
6816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6817 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6818 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
---|
6819 | $as_echo_n "(cached) " >&6 |
---|
6820 | else |
---|
6821 | if test -n "$ac_ct_OTOOL"; then |
---|
6822 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
---|
6823 | else |
---|
6824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6825 | for as_dir in $PATH |
---|
6826 | do |
---|
6827 | IFS=$as_save_IFS |
---|
6828 | test -z "$as_dir" && as_dir=. |
---|
6829 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
6831 | ac_cv_prog_ac_ct_OTOOL="otool" |
---|
6832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6833 | break 2 |
---|
6834 | fi |
---|
6835 | done |
---|
6836 | done |
---|
6837 | IFS=$as_save_IFS |
---|
6838 | |
---|
6839 | fi |
---|
6840 | fi |
---|
6841 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
---|
6842 | if test -n "$ac_ct_OTOOL"; then |
---|
6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
---|
6844 | $as_echo "$ac_ct_OTOOL" >&6; } |
---|
6845 | else |
---|
6846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6847 | $as_echo "no" >&6; } |
---|
6848 | fi |
---|
6849 | |
---|
6850 | if test "x$ac_ct_OTOOL" = x; then |
---|
6851 | OTOOL=":" |
---|
6852 | else |
---|
6853 | case $cross_compiling:$ac_tool_warned in |
---|
6854 | yes:) |
---|
6855 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6856 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6857 | ac_tool_warned=yes ;; |
---|
6858 | esac |
---|
6859 | OTOOL=$ac_ct_OTOOL |
---|
6860 | fi |
---|
6861 | else |
---|
6862 | OTOOL="$ac_cv_prog_OTOOL" |
---|
6863 | fi |
---|
6864 | |
---|
6865 | if test -n "$ac_tool_prefix"; then |
---|
6866 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
---|
6867 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
---|
6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6869 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6870 | if ${ac_cv_prog_OTOOL64+:} false; then : |
---|
6871 | $as_echo_n "(cached) " >&6 |
---|
6872 | else |
---|
6873 | if test -n "$OTOOL64"; then |
---|
6874 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
---|
6875 | else |
---|
6876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6877 | for as_dir in $PATH |
---|
6878 | do |
---|
6879 | IFS=$as_save_IFS |
---|
6880 | test -z "$as_dir" && as_dir=. |
---|
6881 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
6883 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
---|
6884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6885 | break 2 |
---|
6886 | fi |
---|
6887 | done |
---|
6888 | done |
---|
6889 | IFS=$as_save_IFS |
---|
6890 | |
---|
6891 | fi |
---|
6892 | fi |
---|
6893 | OTOOL64=$ac_cv_prog_OTOOL64 |
---|
6894 | if test -n "$OTOOL64"; then |
---|
6895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
---|
6896 | $as_echo "$OTOOL64" >&6; } |
---|
6897 | else |
---|
6898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6899 | $as_echo "no" >&6; } |
---|
6900 | fi |
---|
6901 | |
---|
6902 | |
---|
6903 | fi |
---|
6904 | if test -z "$ac_cv_prog_OTOOL64"; then |
---|
6905 | ac_ct_OTOOL64=$OTOOL64 |
---|
6906 | # Extract the first word of "otool64", so it can be a program name with args. |
---|
6907 | set dummy otool64; ac_word=$2 |
---|
6908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
6909 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
6910 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
---|
6911 | $as_echo_n "(cached) " >&6 |
---|
6912 | else |
---|
6913 | if test -n "$ac_ct_OTOOL64"; then |
---|
6914 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
---|
6915 | else |
---|
6916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
6917 | for as_dir in $PATH |
---|
6918 | do |
---|
6919 | IFS=$as_save_IFS |
---|
6920 | test -z "$as_dir" && as_dir=. |
---|
6921 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
6922 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
6923 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
---|
6924 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
6925 | break 2 |
---|
6926 | fi |
---|
6927 | done |
---|
6928 | done |
---|
6929 | IFS=$as_save_IFS |
---|
6930 | |
---|
6931 | fi |
---|
6932 | fi |
---|
6933 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
---|
6934 | if test -n "$ac_ct_OTOOL64"; then |
---|
6935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
---|
6936 | $as_echo "$ac_ct_OTOOL64" >&6; } |
---|
6937 | else |
---|
6938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
6939 | $as_echo "no" >&6; } |
---|
6940 | fi |
---|
6941 | |
---|
6942 | if test "x$ac_ct_OTOOL64" = x; then |
---|
6943 | OTOOL64=":" |
---|
6944 | else |
---|
6945 | case $cross_compiling:$ac_tool_warned in |
---|
6946 | yes:) |
---|
6947 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
6948 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
6949 | ac_tool_warned=yes ;; |
---|
6950 | esac |
---|
6951 | OTOOL64=$ac_ct_OTOOL64 |
---|
6952 | fi |
---|
6953 | else |
---|
6954 | OTOOL64="$ac_cv_prog_OTOOL64" |
---|
6955 | fi |
---|
6956 | |
---|
6957 | |
---|
6958 | |
---|
6959 | |
---|
6960 | |
---|
6961 | |
---|
6962 | |
---|
6963 | |
---|
6964 | |
---|
6965 | |
---|
6966 | |
---|
6967 | |
---|
6968 | |
---|
6969 | |
---|
6970 | |
---|
6971 | |
---|
6972 | |
---|
6973 | |
---|
6974 | |
---|
6975 | |
---|
6976 | |
---|
6977 | |
---|
6978 | |
---|
6979 | |
---|
6980 | |
---|
6981 | |
---|
6982 | |
---|
6983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
---|
6984 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
---|
6985 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
---|
6986 | $as_echo_n "(cached) " >&6 |
---|
6987 | else |
---|
6988 | lt_cv_apple_cc_single_mod=no |
---|
6989 | if test -z "${LT_MULTI_MODULE}"; then |
---|
6990 | # By default we will add the -single_module flag. You can override |
---|
6991 | # by either setting the environment variable LT_MULTI_MODULE |
---|
6992 | # non-empty at configure time, or by adding -multi_module to the |
---|
6993 | # link flags. |
---|
6994 | rm -rf libconftest.dylib* |
---|
6995 | echo "int foo(void){return 1;}" > conftest.c |
---|
6996 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
---|
6997 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
---|
6998 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
---|
6999 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
---|
7000 | _lt_result=$? |
---|
7001 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
---|
7002 | lt_cv_apple_cc_single_mod=yes |
---|
7003 | else |
---|
7004 | cat conftest.err >&5 |
---|
7005 | fi |
---|
7006 | rm -rf libconftest.dylib* |
---|
7007 | rm -f conftest.* |
---|
7008 | fi |
---|
7009 | fi |
---|
7010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
---|
7011 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
---|
7012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
---|
7013 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
---|
7014 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
---|
7015 | $as_echo_n "(cached) " >&6 |
---|
7016 | else |
---|
7017 | lt_cv_ld_exported_symbols_list=no |
---|
7018 | save_LDFLAGS=$LDFLAGS |
---|
7019 | echo "_main" > conftest.sym |
---|
7020 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
---|
7021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7022 | /* end confdefs.h. */ |
---|
7023 | |
---|
7024 | int |
---|
7025 | main () |
---|
7026 | { |
---|
7027 | |
---|
7028 | ; |
---|
7029 | return 0; |
---|
7030 | } |
---|
7031 | _ACEOF |
---|
7032 | if ac_fn_c_try_link "$LINENO"; then : |
---|
7033 | lt_cv_ld_exported_symbols_list=yes |
---|
7034 | else |
---|
7035 | lt_cv_ld_exported_symbols_list=no |
---|
7036 | fi |
---|
7037 | rm -f core conftest.err conftest.$ac_objext \ |
---|
7038 | conftest$ac_exeext conftest.$ac_ext |
---|
7039 | LDFLAGS="$save_LDFLAGS" |
---|
7040 | |
---|
7041 | fi |
---|
7042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
---|
7043 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
---|
7044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
---|
7045 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
---|
7046 | if ${lt_cv_ld_force_load+:} false; then : |
---|
7047 | $as_echo_n "(cached) " >&6 |
---|
7048 | else |
---|
7049 | lt_cv_ld_force_load=no |
---|
7050 | cat > conftest.c << _LT_EOF |
---|
7051 | int forced_loaded() { return 2;} |
---|
7052 | _LT_EOF |
---|
7053 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
---|
7054 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
---|
7055 | echo "$AR cru libconftest.a conftest.o" >&5 |
---|
7056 | $AR cru libconftest.a conftest.o 2>&5 |
---|
7057 | echo "$RANLIB libconftest.a" >&5 |
---|
7058 | $RANLIB libconftest.a 2>&5 |
---|
7059 | cat > conftest.c << _LT_EOF |
---|
7060 | int main() { return 0;} |
---|
7061 | _LT_EOF |
---|
7062 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
---|
7063 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
---|
7064 | _lt_result=$? |
---|
7065 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then |
---|
7066 | lt_cv_ld_force_load=yes |
---|
7067 | else |
---|
7068 | cat conftest.err >&5 |
---|
7069 | fi |
---|
7070 | rm -f conftest.err libconftest.a conftest conftest.c |
---|
7071 | rm -rf conftest.dSYM |
---|
7072 | |
---|
7073 | fi |
---|
7074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
---|
7075 | $as_echo "$lt_cv_ld_force_load" >&6; } |
---|
7076 | case $host_os in |
---|
7077 | rhapsody* | darwin1.[012]) |
---|
7078 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
---|
7079 | darwin1.*) |
---|
7080 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
---|
7081 | darwin*) # darwin 5.x on |
---|
7082 | # if running on 10.5 or later, the deployment target defaults |
---|
7083 | # to the OS version, if on x86, and 10.4, the deployment |
---|
7084 | # target defaults to 10.4. Don't you love it? |
---|
7085 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
---|
7086 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
---|
7087 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
---|
7088 | 10.[012]*) |
---|
7089 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
---|
7090 | 10.*) |
---|
7091 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
---|
7092 | esac |
---|
7093 | ;; |
---|
7094 | esac |
---|
7095 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
---|
7096 | _lt_dar_single_mod='$single_module' |
---|
7097 | fi |
---|
7098 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
---|
7099 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
---|
7100 | else |
---|
7101 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
---|
7102 | fi |
---|
7103 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
---|
7104 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
---|
7105 | else |
---|
7106 | _lt_dsymutil= |
---|
7107 | fi |
---|
7108 | ;; |
---|
7109 | esac |
---|
7110 | |
---|
7111 | ac_ext=c |
---|
7112 | ac_cpp='$CPP $CPPFLAGS' |
---|
7113 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7114 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7115 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
7117 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
7118 | # On Suns, sometimes $CPP names a directory. |
---|
7119 | if test -n "$CPP" && test -d "$CPP"; then |
---|
7120 | CPP= |
---|
7121 | fi |
---|
7122 | if test -z "$CPP"; then |
---|
7123 | if ${ac_cv_prog_CPP+:} false; then : |
---|
7124 | $as_echo_n "(cached) " >&6 |
---|
7125 | else |
---|
7126 | # Double quotes because CPP needs to be expanded |
---|
7127 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
7128 | do |
---|
7129 | ac_preproc_ok=false |
---|
7130 | for ac_c_preproc_warn_flag in '' yes |
---|
7131 | do |
---|
7132 | # Use a header file that comes with gcc, so configuring glibc |
---|
7133 | # with a fresh cross-compiler works. |
---|
7134 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
7135 | # <limits.h> exists even on freestanding compilers. |
---|
7136 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
7137 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
7138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7139 | /* end confdefs.h. */ |
---|
7140 | #ifdef __STDC__ |
---|
7141 | # include <limits.h> |
---|
7142 | #else |
---|
7143 | # include <assert.h> |
---|
7144 | #endif |
---|
7145 | Syntax error |
---|
7146 | _ACEOF |
---|
7147 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
7148 | |
---|
7149 | else |
---|
7150 | # Broken: fails on valid input. |
---|
7151 | continue |
---|
7152 | fi |
---|
7153 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
7154 | |
---|
7155 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
7156 | # can be detected and how. |
---|
7157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7158 | /* end confdefs.h. */ |
---|
7159 | #include <ac_nonexistent.h> |
---|
7160 | _ACEOF |
---|
7161 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
7162 | # Broken: success on invalid input. |
---|
7163 | continue |
---|
7164 | else |
---|
7165 | # Passes both tests. |
---|
7166 | ac_preproc_ok=: |
---|
7167 | break |
---|
7168 | fi |
---|
7169 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
7170 | |
---|
7171 | done |
---|
7172 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
7173 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
7174 | if $ac_preproc_ok; then : |
---|
7175 | break |
---|
7176 | fi |
---|
7177 | |
---|
7178 | done |
---|
7179 | ac_cv_prog_CPP=$CPP |
---|
7180 | |
---|
7181 | fi |
---|
7182 | CPP=$ac_cv_prog_CPP |
---|
7183 | else |
---|
7184 | ac_cv_prog_CPP=$CPP |
---|
7185 | fi |
---|
7186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
7187 | $as_echo "$CPP" >&6; } |
---|
7188 | ac_preproc_ok=false |
---|
7189 | for ac_c_preproc_warn_flag in '' yes |
---|
7190 | do |
---|
7191 | # Use a header file that comes with gcc, so configuring glibc |
---|
7192 | # with a fresh cross-compiler works. |
---|
7193 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
7194 | # <limits.h> exists even on freestanding compilers. |
---|
7195 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
7196 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
7197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7198 | /* end confdefs.h. */ |
---|
7199 | #ifdef __STDC__ |
---|
7200 | # include <limits.h> |
---|
7201 | #else |
---|
7202 | # include <assert.h> |
---|
7203 | #endif |
---|
7204 | Syntax error |
---|
7205 | _ACEOF |
---|
7206 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
7207 | |
---|
7208 | else |
---|
7209 | # Broken: fails on valid input. |
---|
7210 | continue |
---|
7211 | fi |
---|
7212 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
7213 | |
---|
7214 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
7215 | # can be detected and how. |
---|
7216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7217 | /* end confdefs.h. */ |
---|
7218 | #include <ac_nonexistent.h> |
---|
7219 | _ACEOF |
---|
7220 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
7221 | # Broken: success on invalid input. |
---|
7222 | continue |
---|
7223 | else |
---|
7224 | # Passes both tests. |
---|
7225 | ac_preproc_ok=: |
---|
7226 | break |
---|
7227 | fi |
---|
7228 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
7229 | |
---|
7230 | done |
---|
7231 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
7232 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
7233 | if $ac_preproc_ok; then : |
---|
7234 | |
---|
7235 | else |
---|
7236 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
7237 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
7238 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
7239 | See \`config.log' for more details" "$LINENO" 5; } |
---|
7240 | fi |
---|
7241 | |
---|
7242 | ac_ext=c |
---|
7243 | ac_cpp='$CPP $CPPFLAGS' |
---|
7244 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7245 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7246 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7247 | |
---|
7248 | |
---|
7249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
7250 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
7251 | if ${ac_cv_header_stdc+:} false; then : |
---|
7252 | $as_echo_n "(cached) " >&6 |
---|
7253 | else |
---|
7254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7255 | /* end confdefs.h. */ |
---|
7256 | #include <stdlib.h> |
---|
7257 | #include <stdarg.h> |
---|
7258 | #include <string.h> |
---|
7259 | #include <float.h> |
---|
7260 | |
---|
7261 | int |
---|
7262 | main () |
---|
7263 | { |
---|
7264 | |
---|
7265 | ; |
---|
7266 | return 0; |
---|
7267 | } |
---|
7268 | _ACEOF |
---|
7269 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
7270 | ac_cv_header_stdc=yes |
---|
7271 | else |
---|
7272 | ac_cv_header_stdc=no |
---|
7273 | fi |
---|
7274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
7275 | |
---|
7276 | if test $ac_cv_header_stdc = yes; then |
---|
7277 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
7278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7279 | /* end confdefs.h. */ |
---|
7280 | #include <string.h> |
---|
7281 | |
---|
7282 | _ACEOF |
---|
7283 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
7284 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
7285 | |
---|
7286 | else |
---|
7287 | ac_cv_header_stdc=no |
---|
7288 | fi |
---|
7289 | rm -f conftest* |
---|
7290 | |
---|
7291 | fi |
---|
7292 | |
---|
7293 | if test $ac_cv_header_stdc = yes; then |
---|
7294 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
7295 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7296 | /* end confdefs.h. */ |
---|
7297 | #include <stdlib.h> |
---|
7298 | |
---|
7299 | _ACEOF |
---|
7300 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
7301 | $EGREP "free" >/dev/null 2>&1; then : |
---|
7302 | |
---|
7303 | else |
---|
7304 | ac_cv_header_stdc=no |
---|
7305 | fi |
---|
7306 | rm -f conftest* |
---|
7307 | |
---|
7308 | fi |
---|
7309 | |
---|
7310 | if test $ac_cv_header_stdc = yes; then |
---|
7311 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
7312 | if test "$cross_compiling" = yes; then : |
---|
7313 | : |
---|
7314 | else |
---|
7315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
7316 | /* end confdefs.h. */ |
---|
7317 | #include <ctype.h> |
---|
7318 | #include <stdlib.h> |
---|
7319 | #if ((' ' & 0x0FF) == 0x020) |
---|
7320 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
7321 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
7322 | #else |
---|
7323 | # define ISLOWER(c) \ |
---|
7324 | (('a' <= (c) && (c) <= 'i') \ |
---|
7325 | || ('j' <= (c) && (c) <= 'r') \ |
---|
7326 | || ('s' <= (c) && (c) <= 'z')) |
---|
7327 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
7328 | #endif |
---|
7329 | |
---|
7330 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
7331 | int |
---|
7332 | main () |
---|
7333 | { |
---|
7334 | int i; |
---|
7335 | for (i = 0; i < 256; i++) |
---|
7336 | if (XOR (islower (i), ISLOWER (i)) |
---|
7337 | || toupper (i) != TOUPPER (i)) |
---|
7338 | return 2; |
---|
7339 | return 0; |
---|
7340 | } |
---|
7341 | _ACEOF |
---|
7342 | if ac_fn_c_try_run "$LINENO"; then : |
---|
7343 | |
---|
7344 | else |
---|
7345 | ac_cv_header_stdc=no |
---|
7346 | fi |
---|
7347 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
7348 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
7349 | fi |
---|
7350 | |
---|
7351 | fi |
---|
7352 | fi |
---|
7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
7354 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
7355 | if test $ac_cv_header_stdc = yes; then |
---|
7356 | |
---|
7357 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
7358 | |
---|
7359 | fi |
---|
7360 | |
---|
7361 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
7362 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
7363 | inttypes.h stdint.h unistd.h |
---|
7364 | do : |
---|
7365 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
7366 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
7367 | " |
---|
7368 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
7369 | cat >>confdefs.h <<_ACEOF |
---|
7370 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
7371 | _ACEOF |
---|
7372 | |
---|
7373 | fi |
---|
7374 | |
---|
7375 | done |
---|
7376 | |
---|
7377 | |
---|
7378 | for ac_header in dlfcn.h |
---|
7379 | do : |
---|
7380 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
---|
7381 | " |
---|
7382 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
---|
7383 | cat >>confdefs.h <<_ACEOF |
---|
7384 | #define HAVE_DLFCN_H 1 |
---|
7385 | _ACEOF |
---|
7386 | |
---|
7387 | fi |
---|
7388 | |
---|
7389 | done |
---|
7390 | |
---|
7391 | |
---|
7392 | |
---|
7393 | |
---|
7394 | |
---|
7395 | # Set options |
---|
7396 | |
---|
7397 | |
---|
7398 | |
---|
7399 | enable_dlopen=no |
---|
7400 | |
---|
7401 | |
---|
7402 | enable_win32_dll=no |
---|
7403 | |
---|
7404 | |
---|
7405 | # Check whether --enable-shared was given. |
---|
7406 | if test "${enable_shared+set}" = set; then : |
---|
7407 | enableval=$enable_shared; p=${PACKAGE-default} |
---|
7408 | case $enableval in |
---|
7409 | yes) enable_shared=yes ;; |
---|
7410 | no) enable_shared=no ;; |
---|
7411 | *) |
---|
7412 | enable_shared=no |
---|
7413 | # Look at the argument we got. We use all the common list separators. |
---|
7414 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
7415 | for pkg in $enableval; do |
---|
7416 | IFS="$lt_save_ifs" |
---|
7417 | if test "X$pkg" = "X$p"; then |
---|
7418 | enable_shared=yes |
---|
7419 | fi |
---|
7420 | done |
---|
7421 | IFS="$lt_save_ifs" |
---|
7422 | ;; |
---|
7423 | esac |
---|
7424 | else |
---|
7425 | enable_shared=yes |
---|
7426 | fi |
---|
7427 | |
---|
7428 | |
---|
7429 | |
---|
7430 | |
---|
7431 | |
---|
7432 | |
---|
7433 | |
---|
7434 | |
---|
7435 | |
---|
7436 | # Check whether --enable-static was given. |
---|
7437 | if test "${enable_static+set}" = set; then : |
---|
7438 | enableval=$enable_static; p=${PACKAGE-default} |
---|
7439 | case $enableval in |
---|
7440 | yes) enable_static=yes ;; |
---|
7441 | no) enable_static=no ;; |
---|
7442 | *) |
---|
7443 | enable_static=no |
---|
7444 | # Look at the argument we got. We use all the common list separators. |
---|
7445 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
7446 | for pkg in $enableval; do |
---|
7447 | IFS="$lt_save_ifs" |
---|
7448 | if test "X$pkg" = "X$p"; then |
---|
7449 | enable_static=yes |
---|
7450 | fi |
---|
7451 | done |
---|
7452 | IFS="$lt_save_ifs" |
---|
7453 | ;; |
---|
7454 | esac |
---|
7455 | else |
---|
7456 | enable_static=yes |
---|
7457 | fi |
---|
7458 | |
---|
7459 | |
---|
7460 | |
---|
7461 | |
---|
7462 | |
---|
7463 | |
---|
7464 | |
---|
7465 | |
---|
7466 | |
---|
7467 | |
---|
7468 | # Check whether --with-pic was given. |
---|
7469 | if test "${with_pic+set}" = set; then : |
---|
7470 | withval=$with_pic; pic_mode="$withval" |
---|
7471 | else |
---|
7472 | pic_mode=default |
---|
7473 | fi |
---|
7474 | |
---|
7475 | |
---|
7476 | test -z "$pic_mode" && pic_mode=default |
---|
7477 | |
---|
7478 | |
---|
7479 | |
---|
7480 | |
---|
7481 | |
---|
7482 | |
---|
7483 | |
---|
7484 | # Check whether --enable-fast-install was given. |
---|
7485 | if test "${enable_fast_install+set}" = set; then : |
---|
7486 | enableval=$enable_fast_install; p=${PACKAGE-default} |
---|
7487 | case $enableval in |
---|
7488 | yes) enable_fast_install=yes ;; |
---|
7489 | no) enable_fast_install=no ;; |
---|
7490 | *) |
---|
7491 | enable_fast_install=no |
---|
7492 | # Look at the argument we got. We use all the common list separators. |
---|
7493 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
---|
7494 | for pkg in $enableval; do |
---|
7495 | IFS="$lt_save_ifs" |
---|
7496 | if test "X$pkg" = "X$p"; then |
---|
7497 | enable_fast_install=yes |
---|
7498 | fi |
---|
7499 | done |
---|
7500 | IFS="$lt_save_ifs" |
---|
7501 | ;; |
---|
7502 | esac |
---|
7503 | else |
---|
7504 | enable_fast_install=yes |
---|
7505 | fi |
---|
7506 | |
---|
7507 | |
---|
7508 | |
---|
7509 | |
---|
7510 | |
---|
7511 | |
---|
7512 | |
---|
7513 | |
---|
7514 | |
---|
7515 | |
---|
7516 | |
---|
7517 | # This can be used to rebuild libtool when needed |
---|
7518 | LIBTOOL_DEPS="$ltmain" |
---|
7519 | |
---|
7520 | # Always use our own libtool. |
---|
7521 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
---|
7522 | |
---|
7523 | |
---|
7524 | |
---|
7525 | |
---|
7526 | |
---|
7527 | |
---|
7528 | |
---|
7529 | |
---|
7530 | |
---|
7531 | |
---|
7532 | |
---|
7533 | |
---|
7534 | |
---|
7535 | |
---|
7536 | |
---|
7537 | |
---|
7538 | |
---|
7539 | |
---|
7540 | |
---|
7541 | |
---|
7542 | |
---|
7543 | |
---|
7544 | |
---|
7545 | |
---|
7546 | |
---|
7547 | |
---|
7548 | test -z "$LN_S" && LN_S="ln -s" |
---|
7549 | |
---|
7550 | |
---|
7551 | |
---|
7552 | |
---|
7553 | |
---|
7554 | |
---|
7555 | |
---|
7556 | |
---|
7557 | |
---|
7558 | |
---|
7559 | |
---|
7560 | |
---|
7561 | |
---|
7562 | |
---|
7563 | if test -n "${ZSH_VERSION+set}" ; then |
---|
7564 | setopt NO_GLOB_SUBST |
---|
7565 | fi |
---|
7566 | |
---|
7567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
---|
7568 | $as_echo_n "checking for objdir... " >&6; } |
---|
7569 | if ${lt_cv_objdir+:} false; then : |
---|
7570 | $as_echo_n "(cached) " >&6 |
---|
7571 | else |
---|
7572 | rm -f .libs 2>/dev/null |
---|
7573 | mkdir .libs 2>/dev/null |
---|
7574 | if test -d .libs; then |
---|
7575 | lt_cv_objdir=.libs |
---|
7576 | else |
---|
7577 | # MS-DOS does not allow filenames that begin with a dot. |
---|
7578 | lt_cv_objdir=_libs |
---|
7579 | fi |
---|
7580 | rmdir .libs 2>/dev/null |
---|
7581 | fi |
---|
7582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
---|
7583 | $as_echo "$lt_cv_objdir" >&6; } |
---|
7584 | objdir=$lt_cv_objdir |
---|
7585 | |
---|
7586 | |
---|
7587 | |
---|
7588 | |
---|
7589 | |
---|
7590 | cat >>confdefs.h <<_ACEOF |
---|
7591 | #define LT_OBJDIR "$lt_cv_objdir/" |
---|
7592 | _ACEOF |
---|
7593 | |
---|
7594 | |
---|
7595 | |
---|
7596 | |
---|
7597 | case $host_os in |
---|
7598 | aix3*) |
---|
7599 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
7600 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
7601 | # vanish in a puff of smoke. |
---|
7602 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
7603 | COLLECT_NAMES= |
---|
7604 | export COLLECT_NAMES |
---|
7605 | fi |
---|
7606 | ;; |
---|
7607 | esac |
---|
7608 | |
---|
7609 | # Global variables: |
---|
7610 | ofile=libtool |
---|
7611 | can_build_shared=yes |
---|
7612 | |
---|
7613 | # All known linkers require a `.a' archive for static linking (except MSVC, |
---|
7614 | # which needs '.lib'). |
---|
7615 | libext=a |
---|
7616 | |
---|
7617 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
---|
7618 | |
---|
7619 | old_CC="$CC" |
---|
7620 | old_CFLAGS="$CFLAGS" |
---|
7621 | |
---|
7622 | # Set sane defaults for various variables |
---|
7623 | test -z "$CC" && CC=cc |
---|
7624 | test -z "$LTCC" && LTCC=$CC |
---|
7625 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
---|
7626 | test -z "$LD" && LD=ld |
---|
7627 | test -z "$ac_objext" && ac_objext=o |
---|
7628 | |
---|
7629 | for cc_temp in $compiler""; do |
---|
7630 | case $cc_temp in |
---|
7631 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
---|
7632 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
---|
7633 | \-*) ;; |
---|
7634 | *) break;; |
---|
7635 | esac |
---|
7636 | done |
---|
7637 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
---|
7638 | |
---|
7639 | |
---|
7640 | # Only perform the check for file, if the check method requires it |
---|
7641 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
---|
7642 | case $deplibs_check_method in |
---|
7643 | file_magic*) |
---|
7644 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
---|
7645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
---|
7646 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
---|
7647 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
---|
7648 | $as_echo_n "(cached) " >&6 |
---|
7649 | else |
---|
7650 | case $MAGIC_CMD in |
---|
7651 | [\\/*] | ?:[\\/]*) |
---|
7652 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
7653 | ;; |
---|
7654 | *) |
---|
7655 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
7656 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
7657 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
7658 | for ac_dir in $ac_dummy; do |
---|
7659 | IFS="$lt_save_ifs" |
---|
7660 | test -z "$ac_dir" && ac_dir=. |
---|
7661 | if test -f $ac_dir/${ac_tool_prefix}file; then |
---|
7662 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
---|
7663 | if test -n "$file_magic_test_file"; then |
---|
7664 | case $deplibs_check_method in |
---|
7665 | "file_magic "*) |
---|
7666 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
7667 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7668 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
7669 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
7670 | : |
---|
7671 | else |
---|
7672 | cat <<_LT_EOF 1>&2 |
---|
7673 | |
---|
7674 | *** Warning: the command libtool uses to detect shared libraries, |
---|
7675 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
7676 | *** The result is that libtool may fail to recognize shared libraries |
---|
7677 | *** as such. This will affect the creation of libtool libraries that |
---|
7678 | *** depend on shared libraries, but programs linked with such libtool |
---|
7679 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
7680 | *** may want to report the problem to your system manager and/or to |
---|
7681 | *** bug-libtool@gnu.org |
---|
7682 | |
---|
7683 | _LT_EOF |
---|
7684 | fi ;; |
---|
7685 | esac |
---|
7686 | fi |
---|
7687 | break |
---|
7688 | fi |
---|
7689 | done |
---|
7690 | IFS="$lt_save_ifs" |
---|
7691 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
7692 | ;; |
---|
7693 | esac |
---|
7694 | fi |
---|
7695 | |
---|
7696 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7697 | if test -n "$MAGIC_CMD"; then |
---|
7698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
---|
7699 | $as_echo "$MAGIC_CMD" >&6; } |
---|
7700 | else |
---|
7701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7702 | $as_echo "no" >&6; } |
---|
7703 | fi |
---|
7704 | |
---|
7705 | |
---|
7706 | |
---|
7707 | |
---|
7708 | |
---|
7709 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
---|
7710 | if test -n "$ac_tool_prefix"; then |
---|
7711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
---|
7712 | $as_echo_n "checking for file... " >&6; } |
---|
7713 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
---|
7714 | $as_echo_n "(cached) " >&6 |
---|
7715 | else |
---|
7716 | case $MAGIC_CMD in |
---|
7717 | [\\/*] | ?:[\\/]*) |
---|
7718 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
---|
7719 | ;; |
---|
7720 | *) |
---|
7721 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
---|
7722 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
---|
7723 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
---|
7724 | for ac_dir in $ac_dummy; do |
---|
7725 | IFS="$lt_save_ifs" |
---|
7726 | test -z "$ac_dir" && ac_dir=. |
---|
7727 | if test -f $ac_dir/file; then |
---|
7728 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
---|
7729 | if test -n "$file_magic_test_file"; then |
---|
7730 | case $deplibs_check_method in |
---|
7731 | "file_magic "*) |
---|
7732 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
---|
7733 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7734 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
---|
7735 | $EGREP "$file_magic_regex" > /dev/null; then |
---|
7736 | : |
---|
7737 | else |
---|
7738 | cat <<_LT_EOF 1>&2 |
---|
7739 | |
---|
7740 | *** Warning: the command libtool uses to detect shared libraries, |
---|
7741 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
---|
7742 | *** The result is that libtool may fail to recognize shared libraries |
---|
7743 | *** as such. This will affect the creation of libtool libraries that |
---|
7744 | *** depend on shared libraries, but programs linked with such libtool |
---|
7745 | *** libraries will work regardless of this problem. Nevertheless, you |
---|
7746 | *** may want to report the problem to your system manager and/or to |
---|
7747 | *** bug-libtool@gnu.org |
---|
7748 | |
---|
7749 | _LT_EOF |
---|
7750 | fi ;; |
---|
7751 | esac |
---|
7752 | fi |
---|
7753 | break |
---|
7754 | fi |
---|
7755 | done |
---|
7756 | IFS="$lt_save_ifs" |
---|
7757 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
---|
7758 | ;; |
---|
7759 | esac |
---|
7760 | fi |
---|
7761 | |
---|
7762 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
---|
7763 | if test -n "$MAGIC_CMD"; then |
---|
7764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
---|
7765 | $as_echo "$MAGIC_CMD" >&6; } |
---|
7766 | else |
---|
7767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
7768 | $as_echo "no" >&6; } |
---|
7769 | fi |
---|
7770 | |
---|
7771 | |
---|
7772 | else |
---|
7773 | MAGIC_CMD=: |
---|
7774 | fi |
---|
7775 | fi |
---|
7776 | |
---|
7777 | fi |
---|
7778 | ;; |
---|
7779 | esac |
---|
7780 | |
---|
7781 | # Use C for the default configuration in the libtool script |
---|
7782 | |
---|
7783 | lt_save_CC="$CC" |
---|
7784 | ac_ext=c |
---|
7785 | ac_cpp='$CPP $CPPFLAGS' |
---|
7786 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
7787 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
7788 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
7789 | |
---|
7790 | |
---|
7791 | # Source file extension for C test sources. |
---|
7792 | ac_ext=c |
---|
7793 | |
---|
7794 | # Object file extension for compiled C test sources. |
---|
7795 | objext=o |
---|
7796 | objext=$objext |
---|
7797 | |
---|
7798 | # Code to be used in simple compile tests |
---|
7799 | lt_simple_compile_test_code="int some_variable = 0;" |
---|
7800 | |
---|
7801 | # Code to be used in simple link tests |
---|
7802 | lt_simple_link_test_code='int main(){return(0);}' |
---|
7803 | |
---|
7804 | |
---|
7805 | |
---|
7806 | |
---|
7807 | |
---|
7808 | |
---|
7809 | |
---|
7810 | # If no C compiler was specified, use CC. |
---|
7811 | LTCC=${LTCC-"$CC"} |
---|
7812 | |
---|
7813 | # If no C compiler flags were specified, use CFLAGS. |
---|
7814 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
---|
7815 | |
---|
7816 | # Allow CC to be a program name with arguments. |
---|
7817 | compiler=$CC |
---|
7818 | |
---|
7819 | # Save the default compiler, since it gets overwritten when the other |
---|
7820 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
---|
7821 | compiler_DEFAULT=$CC |
---|
7822 | |
---|
7823 | # save warnings/boilerplate of simple test code |
---|
7824 | ac_outfile=conftest.$ac_objext |
---|
7825 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
---|
7826 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
7827 | _lt_compiler_boilerplate=`cat conftest.err` |
---|
7828 | $RM conftest* |
---|
7829 | |
---|
7830 | ac_outfile=conftest.$ac_objext |
---|
7831 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
---|
7832 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
---|
7833 | _lt_linker_boilerplate=`cat conftest.err` |
---|
7834 | $RM -r conftest* |
---|
7835 | |
---|
7836 | |
---|
7837 | ## CAVEAT EMPTOR: |
---|
7838 | ## There is no encapsulation within the following macros, do not change |
---|
7839 | ## the running order or otherwise move them around unless you know exactly |
---|
7840 | ## what you are doing... |
---|
7841 | if test -n "$compiler"; then |
---|
7842 | |
---|
7843 | lt_prog_compiler_no_builtin_flag= |
---|
7844 | |
---|
7845 | if test "$GCC" = yes; then |
---|
7846 | case $cc_basename in |
---|
7847 | nvcc*) |
---|
7848 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
---|
7849 | *) |
---|
7850 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
---|
7851 | esac |
---|
7852 | |
---|
7853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
---|
7854 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
---|
7855 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
---|
7856 | $as_echo_n "(cached) " >&6 |
---|
7857 | else |
---|
7858 | lt_cv_prog_compiler_rtti_exceptions=no |
---|
7859 | ac_outfile=conftest.$ac_objext |
---|
7860 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
7861 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
---|
7862 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
7863 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
7864 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
7865 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
7866 | # The option is referenced via a variable to avoid confusing sed. |
---|
7867 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
7868 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
7869 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
7870 | -e 's:$: $lt_compiler_flag:'` |
---|
7871 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
---|
7872 | (eval "$lt_compile" 2>conftest.err) |
---|
7873 | ac_status=$? |
---|
7874 | cat conftest.err >&5 |
---|
7875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
7876 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
7877 | # The compiler can only warn and ignore the option if not recognized |
---|
7878 | # So say no if there are warnings other than the usual output. |
---|
7879 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
---|
7880 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
7881 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
7882 | lt_cv_prog_compiler_rtti_exceptions=yes |
---|
7883 | fi |
---|
7884 | fi |
---|
7885 | $RM conftest* |
---|
7886 | |
---|
7887 | fi |
---|
7888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
---|
7889 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
---|
7890 | |
---|
7891 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
---|
7892 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
---|
7893 | else |
---|
7894 | : |
---|
7895 | fi |
---|
7896 | |
---|
7897 | fi |
---|
7898 | |
---|
7899 | |
---|
7900 | |
---|
7901 | |
---|
7902 | |
---|
7903 | |
---|
7904 | lt_prog_compiler_wl= |
---|
7905 | lt_prog_compiler_pic= |
---|
7906 | lt_prog_compiler_static= |
---|
7907 | |
---|
7908 | |
---|
7909 | if test "$GCC" = yes; then |
---|
7910 | lt_prog_compiler_wl='-Wl,' |
---|
7911 | lt_prog_compiler_static='-static' |
---|
7912 | |
---|
7913 | case $host_os in |
---|
7914 | aix*) |
---|
7915 | # All AIX code is PIC. |
---|
7916 | if test "$host_cpu" = ia64; then |
---|
7917 | # AIX 5 now supports IA64 processor |
---|
7918 | lt_prog_compiler_static='-Bstatic' |
---|
7919 | fi |
---|
7920 | ;; |
---|
7921 | |
---|
7922 | amigaos*) |
---|
7923 | case $host_cpu in |
---|
7924 | powerpc) |
---|
7925 | # see comment about AmigaOS4 .so support |
---|
7926 | lt_prog_compiler_pic='-fPIC' |
---|
7927 | ;; |
---|
7928 | m68k) |
---|
7929 | # FIXME: we need at least 68020 code to build shared libraries, but |
---|
7930 | # adding the `-m68020' flag to GCC prevents building anything better, |
---|
7931 | # like `-m68040'. |
---|
7932 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
---|
7933 | ;; |
---|
7934 | esac |
---|
7935 | ;; |
---|
7936 | |
---|
7937 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
---|
7938 | # PIC is the default for these OSes. |
---|
7939 | ;; |
---|
7940 | |
---|
7941 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
---|
7942 | # This hack is so that the source file can tell whether it is being |
---|
7943 | # built for inclusion in a dll (and should export symbols for example). |
---|
7944 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
---|
7945 | # (--disable-auto-import) libraries |
---|
7946 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
7947 | ;; |
---|
7948 | |
---|
7949 | darwin* | rhapsody*) |
---|
7950 | # PIC is the default on this platform |
---|
7951 | # Common symbols not allowed in MH_DYLIB files |
---|
7952 | lt_prog_compiler_pic='-fno-common' |
---|
7953 | ;; |
---|
7954 | |
---|
7955 | haiku*) |
---|
7956 | # PIC is the default for Haiku. |
---|
7957 | # The "-static" flag exists, but is broken. |
---|
7958 | lt_prog_compiler_static= |
---|
7959 | ;; |
---|
7960 | |
---|
7961 | hpux*) |
---|
7962 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
---|
7963 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
---|
7964 | # sets the default TLS model and affects inlining. |
---|
7965 | case $host_cpu in |
---|
7966 | hppa*64*) |
---|
7967 | # +Z the default |
---|
7968 | ;; |
---|
7969 | *) |
---|
7970 | lt_prog_compiler_pic='-fPIC' |
---|
7971 | ;; |
---|
7972 | esac |
---|
7973 | ;; |
---|
7974 | |
---|
7975 | interix[3-9]*) |
---|
7976 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
---|
7977 | # Instead, we relocate shared libraries at runtime. |
---|
7978 | ;; |
---|
7979 | |
---|
7980 | msdosdjgpp*) |
---|
7981 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
---|
7982 | # on systems that don't support them. |
---|
7983 | lt_prog_compiler_can_build_shared=no |
---|
7984 | enable_shared=no |
---|
7985 | ;; |
---|
7986 | |
---|
7987 | *nto* | *qnx*) |
---|
7988 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
---|
7989 | # it will coredump. |
---|
7990 | lt_prog_compiler_pic='-fPIC -shared' |
---|
7991 | ;; |
---|
7992 | |
---|
7993 | sysv4*MP*) |
---|
7994 | if test -d /usr/nec; then |
---|
7995 | lt_prog_compiler_pic=-Kconform_pic |
---|
7996 | fi |
---|
7997 | ;; |
---|
7998 | |
---|
7999 | *) |
---|
8000 | lt_prog_compiler_pic='-fPIC' |
---|
8001 | ;; |
---|
8002 | esac |
---|
8003 | |
---|
8004 | case $cc_basename in |
---|
8005 | nvcc*) # Cuda Compiler Driver 2.2 |
---|
8006 | lt_prog_compiler_wl='-Xlinker ' |
---|
8007 | lt_prog_compiler_pic='-Xcompiler -fPIC' |
---|
8008 | ;; |
---|
8009 | esac |
---|
8010 | else |
---|
8011 | # PORTME Check for flag to pass linker flags through the system compiler. |
---|
8012 | case $host_os in |
---|
8013 | aix*) |
---|
8014 | lt_prog_compiler_wl='-Wl,' |
---|
8015 | if test "$host_cpu" = ia64; then |
---|
8016 | # AIX 5 now supports IA64 processor |
---|
8017 | lt_prog_compiler_static='-Bstatic' |
---|
8018 | else |
---|
8019 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
---|
8020 | fi |
---|
8021 | ;; |
---|
8022 | |
---|
8023 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
---|
8024 | # This hack is so that the source file can tell whether it is being |
---|
8025 | # built for inclusion in a dll (and should export symbols for example). |
---|
8026 | lt_prog_compiler_pic='-DDLL_EXPORT' |
---|
8027 | ;; |
---|
8028 | |
---|
8029 | hpux9* | hpux10* | hpux11*) |
---|
8030 | lt_prog_compiler_wl='-Wl,' |
---|
8031 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
---|
8032 | # not for PA HP-UX. |
---|
8033 | case $host_cpu in |
---|
8034 | hppa*64*|ia64*) |
---|
8035 | # +Z the default |
---|
8036 | ;; |
---|
8037 | *) |
---|
8038 | lt_prog_compiler_pic='+Z' |
---|
8039 | ;; |
---|
8040 | esac |
---|
8041 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
---|
8042 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
---|
8043 | ;; |
---|
8044 | |
---|
8045 | irix5* | irix6* | nonstopux*) |
---|
8046 | lt_prog_compiler_wl='-Wl,' |
---|
8047 | # PIC (with -KPIC) is the default. |
---|
8048 | lt_prog_compiler_static='-non_shared' |
---|
8049 | ;; |
---|
8050 | |
---|
8051 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
---|
8052 | case $cc_basename in |
---|
8053 | # old Intel for x86_64 which still supported -KPIC. |
---|
8054 | ecc*) |
---|
8055 | lt_prog_compiler_wl='-Wl,' |
---|
8056 | lt_prog_compiler_pic='-KPIC' |
---|
8057 | lt_prog_compiler_static='-static' |
---|
8058 | ;; |
---|
8059 | # icc used to be incompatible with GCC. |
---|
8060 | # ICC 10 doesn't accept -KPIC any more. |
---|
8061 | icc* | ifort*) |
---|
8062 | lt_prog_compiler_wl='-Wl,' |
---|
8063 | lt_prog_compiler_pic='-fPIC' |
---|
8064 | lt_prog_compiler_static='-static' |
---|
8065 | ;; |
---|
8066 | # Lahey Fortran 8.1. |
---|
8067 | lf95*) |
---|
8068 | lt_prog_compiler_wl='-Wl,' |
---|
8069 | lt_prog_compiler_pic='--shared' |
---|
8070 | lt_prog_compiler_static='--static' |
---|
8071 | ;; |
---|
8072 | nagfor*) |
---|
8073 | # NAG Fortran compiler |
---|
8074 | lt_prog_compiler_wl='-Wl,-Wl,,' |
---|
8075 | lt_prog_compiler_pic='-PIC' |
---|
8076 | lt_prog_compiler_static='-Bstatic' |
---|
8077 | ;; |
---|
8078 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
---|
8079 | # Portland Group compilers (*not* the Pentium gcc compiler, |
---|
8080 | # which looks to be a dead project) |
---|
8081 | lt_prog_compiler_wl='-Wl,' |
---|
8082 | lt_prog_compiler_pic='-fpic' |
---|
8083 | lt_prog_compiler_static='-Bstatic' |
---|
8084 | ;; |
---|
8085 | ccc*) |
---|
8086 | lt_prog_compiler_wl='-Wl,' |
---|
8087 | # All Alpha code is PIC. |
---|
8088 | lt_prog_compiler_static='-non_shared' |
---|
8089 | ;; |
---|
8090 | xl* | bgxl* | bgf* | mpixl*) |
---|
8091 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
---|
8092 | lt_prog_compiler_wl='-Wl,' |
---|
8093 | lt_prog_compiler_pic='-qpic' |
---|
8094 | lt_prog_compiler_static='-qstaticlink' |
---|
8095 | ;; |
---|
8096 | *) |
---|
8097 | case `$CC -V 2>&1 | sed 5q` in |
---|
8098 | *Sun\ F* | *Sun*Fortran*) |
---|
8099 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
---|
8100 | lt_prog_compiler_pic='-KPIC' |
---|
8101 | lt_prog_compiler_static='-Bstatic' |
---|
8102 | lt_prog_compiler_wl='' |
---|
8103 | ;; |
---|
8104 | *Sun\ C*) |
---|
8105 | # Sun C 5.9 |
---|
8106 | lt_prog_compiler_pic='-KPIC' |
---|
8107 | lt_prog_compiler_static='-Bstatic' |
---|
8108 | lt_prog_compiler_wl='-Wl,' |
---|
8109 | ;; |
---|
8110 | esac |
---|
8111 | ;; |
---|
8112 | esac |
---|
8113 | ;; |
---|
8114 | |
---|
8115 | newsos6) |
---|
8116 | lt_prog_compiler_pic='-KPIC' |
---|
8117 | lt_prog_compiler_static='-Bstatic' |
---|
8118 | ;; |
---|
8119 | |
---|
8120 | *nto* | *qnx*) |
---|
8121 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
---|
8122 | # it will coredump. |
---|
8123 | lt_prog_compiler_pic='-fPIC -shared' |
---|
8124 | ;; |
---|
8125 | |
---|
8126 | osf3* | osf4* | osf5*) |
---|
8127 | lt_prog_compiler_wl='-Wl,' |
---|
8128 | # All OSF/1 code is PIC. |
---|
8129 | lt_prog_compiler_static='-non_shared' |
---|
8130 | ;; |
---|
8131 | |
---|
8132 | rdos*) |
---|
8133 | lt_prog_compiler_static='-non_shared' |
---|
8134 | ;; |
---|
8135 | |
---|
8136 | solaris*) |
---|
8137 | lt_prog_compiler_pic='-KPIC' |
---|
8138 | lt_prog_compiler_static='-Bstatic' |
---|
8139 | case $cc_basename in |
---|
8140 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
---|
8141 | lt_prog_compiler_wl='-Qoption ld ';; |
---|
8142 | *) |
---|
8143 | lt_prog_compiler_wl='-Wl,';; |
---|
8144 | esac |
---|
8145 | ;; |
---|
8146 | |
---|
8147 | sunos4*) |
---|
8148 | lt_prog_compiler_wl='-Qoption ld ' |
---|
8149 | lt_prog_compiler_pic='-PIC' |
---|
8150 | lt_prog_compiler_static='-Bstatic' |
---|
8151 | ;; |
---|
8152 | |
---|
8153 | sysv4 | sysv4.2uw2* | sysv4.3*) |
---|
8154 | lt_prog_compiler_wl='-Wl,' |
---|
8155 | lt_prog_compiler_pic='-KPIC' |
---|
8156 | lt_prog_compiler_static='-Bstatic' |
---|
8157 | ;; |
---|
8158 | |
---|
8159 | sysv4*MP*) |
---|
8160 | if test -d /usr/nec ;then |
---|
8161 | lt_prog_compiler_pic='-Kconform_pic' |
---|
8162 | lt_prog_compiler_static='-Bstatic' |
---|
8163 | fi |
---|
8164 | ;; |
---|
8165 | |
---|
8166 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
---|
8167 | lt_prog_compiler_wl='-Wl,' |
---|
8168 | lt_prog_compiler_pic='-KPIC' |
---|
8169 | lt_prog_compiler_static='-Bstatic' |
---|
8170 | ;; |
---|
8171 | |
---|
8172 | unicos*) |
---|
8173 | lt_prog_compiler_wl='-Wl,' |
---|
8174 | lt_prog_compiler_can_build_shared=no |
---|
8175 | ;; |
---|
8176 | |
---|
8177 | uts4*) |
---|
8178 | lt_prog_compiler_pic='-pic' |
---|
8179 | lt_prog_compiler_static='-Bstatic' |
---|
8180 | ;; |
---|
8181 | |
---|
8182 | *) |
---|
8183 | lt_prog_compiler_can_build_shared=no |
---|
8184 | ;; |
---|
8185 | esac |
---|
8186 | fi |
---|
8187 | |
---|
8188 | case $host_os in |
---|
8189 | # For platforms which do not support PIC, -DPIC is meaningless: |
---|
8190 | *djgpp*) |
---|
8191 | lt_prog_compiler_pic= |
---|
8192 | ;; |
---|
8193 | *) |
---|
8194 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
---|
8195 | ;; |
---|
8196 | esac |
---|
8197 | |
---|
8198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
---|
8199 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
---|
8200 | if ${lt_cv_prog_compiler_pic+:} false; then : |
---|
8201 | $as_echo_n "(cached) " >&6 |
---|
8202 | else |
---|
8203 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
---|
8204 | fi |
---|
8205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
---|
8206 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
---|
8207 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
---|
8208 | |
---|
8209 | # |
---|
8210 | # Check to make sure the PIC flag actually works. |
---|
8211 | # |
---|
8212 | if test -n "$lt_prog_compiler_pic"; then |
---|
8213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
---|
8214 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
---|
8215 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
---|
8216 | $as_echo_n "(cached) " >&6 |
---|
8217 | else |
---|
8218 | lt_cv_prog_compiler_pic_works=no |
---|
8219 | ac_outfile=conftest.$ac_objext |
---|
8220 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8221 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
---|
8222 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
8223 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
8224 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
8225 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
8226 | # The option is referenced via a variable to avoid confusing sed. |
---|
8227 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
8228 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
8229 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
8230 | -e 's:$: $lt_compiler_flag:'` |
---|
8231 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
---|
8232 | (eval "$lt_compile" 2>conftest.err) |
---|
8233 | ac_status=$? |
---|
8234 | cat conftest.err >&5 |
---|
8235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8236 | if (exit $ac_status) && test -s "$ac_outfile"; then |
---|
8237 | # The compiler can only warn and ignore the option if not recognized |
---|
8238 | # So say no if there are warnings other than the usual output. |
---|
8239 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
---|
8240 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
8241 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
---|
8242 | lt_cv_prog_compiler_pic_works=yes |
---|
8243 | fi |
---|
8244 | fi |
---|
8245 | $RM conftest* |
---|
8246 | |
---|
8247 | fi |
---|
8248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
---|
8249 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
---|
8250 | |
---|
8251 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
---|
8252 | case $lt_prog_compiler_pic in |
---|
8253 | "" | " "*) ;; |
---|
8254 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
---|
8255 | esac |
---|
8256 | else |
---|
8257 | lt_prog_compiler_pic= |
---|
8258 | lt_prog_compiler_can_build_shared=no |
---|
8259 | fi |
---|
8260 | |
---|
8261 | fi |
---|
8262 | |
---|
8263 | |
---|
8264 | |
---|
8265 | |
---|
8266 | |
---|
8267 | |
---|
8268 | |
---|
8269 | |
---|
8270 | |
---|
8271 | |
---|
8272 | |
---|
8273 | # |
---|
8274 | # Check to make sure the static flag actually works. |
---|
8275 | # |
---|
8276 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
---|
8277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
---|
8278 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
---|
8279 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
---|
8280 | $as_echo_n "(cached) " >&6 |
---|
8281 | else |
---|
8282 | lt_cv_prog_compiler_static_works=no |
---|
8283 | save_LDFLAGS="$LDFLAGS" |
---|
8284 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
---|
8285 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
8286 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
8287 | # The linker can only warn and ignore the option if not recognized |
---|
8288 | # So say no if there are warnings |
---|
8289 | if test -s conftest.err; then |
---|
8290 | # Append any errors to the config.log. |
---|
8291 | cat conftest.err 1>&5 |
---|
8292 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
---|
8293 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
8294 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
8295 | lt_cv_prog_compiler_static_works=yes |
---|
8296 | fi |
---|
8297 | else |
---|
8298 | lt_cv_prog_compiler_static_works=yes |
---|
8299 | fi |
---|
8300 | fi |
---|
8301 | $RM -r conftest* |
---|
8302 | LDFLAGS="$save_LDFLAGS" |
---|
8303 | |
---|
8304 | fi |
---|
8305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
---|
8306 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
---|
8307 | |
---|
8308 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
---|
8309 | : |
---|
8310 | else |
---|
8311 | lt_prog_compiler_static= |
---|
8312 | fi |
---|
8313 | |
---|
8314 | |
---|
8315 | |
---|
8316 | |
---|
8317 | |
---|
8318 | |
---|
8319 | |
---|
8320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
8321 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
---|
8322 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
---|
8323 | $as_echo_n "(cached) " >&6 |
---|
8324 | else |
---|
8325 | lt_cv_prog_compiler_c_o=no |
---|
8326 | $RM -r conftest 2>/dev/null |
---|
8327 | mkdir conftest |
---|
8328 | cd conftest |
---|
8329 | mkdir out |
---|
8330 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8331 | |
---|
8332 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
8333 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
8334 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
8335 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
8336 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
8337 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
8338 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
8339 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
8340 | -e 's:$: $lt_compiler_flag:'` |
---|
8341 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
---|
8342 | (eval "$lt_compile" 2>out/conftest.err) |
---|
8343 | ac_status=$? |
---|
8344 | cat out/conftest.err >&5 |
---|
8345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8346 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
8347 | then |
---|
8348 | # The compiler can only warn and ignore the option if not recognized |
---|
8349 | # So say no if there are warnings |
---|
8350 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
---|
8351 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
8352 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
8353 | lt_cv_prog_compiler_c_o=yes |
---|
8354 | fi |
---|
8355 | fi |
---|
8356 | chmod u+w . 2>&5 |
---|
8357 | $RM conftest* |
---|
8358 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
8359 | # template instantiation |
---|
8360 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
---|
8361 | $RM out/* && rmdir out |
---|
8362 | cd .. |
---|
8363 | $RM -r conftest |
---|
8364 | $RM conftest* |
---|
8365 | |
---|
8366 | fi |
---|
8367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
8368 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
---|
8369 | |
---|
8370 | |
---|
8371 | |
---|
8372 | |
---|
8373 | |
---|
8374 | |
---|
8375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
---|
8376 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
---|
8377 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
---|
8378 | $as_echo_n "(cached) " >&6 |
---|
8379 | else |
---|
8380 | lt_cv_prog_compiler_c_o=no |
---|
8381 | $RM -r conftest 2>/dev/null |
---|
8382 | mkdir conftest |
---|
8383 | cd conftest |
---|
8384 | mkdir out |
---|
8385 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
8386 | |
---|
8387 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
---|
8388 | # Insert the option either (1) after the last *FLAGS variable, or |
---|
8389 | # (2) before a word containing "conftest.", or (3) at the end. |
---|
8390 | # Note that $ac_compile itself does not contain backslashes and begins |
---|
8391 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
---|
8392 | lt_compile=`echo "$ac_compile" | $SED \ |
---|
8393 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
---|
8394 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
---|
8395 | -e 's:$: $lt_compiler_flag:'` |
---|
8396 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
---|
8397 | (eval "$lt_compile" 2>out/conftest.err) |
---|
8398 | ac_status=$? |
---|
8399 | cat out/conftest.err >&5 |
---|
8400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
8401 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
---|
8402 | then |
---|
8403 | # The compiler can only warn and ignore the option if not recognized |
---|
8404 | # So say no if there are warnings |
---|
8405 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
---|
8406 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
---|
8407 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
---|
8408 | lt_cv_prog_compiler_c_o=yes |
---|
8409 | fi |
---|
8410 | fi |
---|
8411 | chmod u+w . 2>&5 |
---|
8412 | $RM conftest* |
---|
8413 | # SGI C++ compiler will create directory out/ii_files/ for |
---|
8414 | # template instantiation |
---|
8415 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
---|
8416 | $RM out/* && rmdir out |
---|
8417 | cd .. |
---|
8418 | $RM -r conftest |
---|
8419 | $RM conftest* |
---|
8420 | |
---|
8421 | fi |
---|
8422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
---|
8423 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
---|
8424 | |
---|
8425 | |
---|
8426 | |
---|
8427 | |
---|
8428 | hard_links="nottested" |
---|
8429 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
---|
8430 | # do not overwrite the value of need_locks provided by the user |
---|
8431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
---|
8432 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
---|
8433 | hard_links=yes |
---|
8434 | $RM conftest* |
---|
8435 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
8436 | touch conftest.a |
---|
8437 | ln conftest.a conftest.b 2>&5 || hard_links=no |
---|
8438 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
---|
8439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
---|
8440 | $as_echo "$hard_links" >&6; } |
---|
8441 | if test "$hard_links" = no; then |
---|
8442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
---|
8443 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
---|
8444 | need_locks=warn |
---|
8445 | fi |
---|
8446 | else |
---|
8447 | need_locks=no |
---|
8448 | fi |
---|
8449 | |
---|
8450 | |
---|
8451 | |
---|
8452 | |
---|
8453 | |
---|
8454 | |
---|
8455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
---|
8456 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
---|
8457 | |
---|
8458 | runpath_var= |
---|
8459 | allow_undefined_flag= |
---|
8460 | always_export_symbols=no |
---|
8461 | archive_cmds= |
---|
8462 | archive_expsym_cmds= |
---|
8463 | compiler_needs_object=no |
---|
8464 | enable_shared_with_static_runtimes=no |
---|
8465 | export_dynamic_flag_spec= |
---|
8466 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
---|
8467 | hardcode_automatic=no |
---|
8468 | hardcode_direct=no |
---|
8469 | hardcode_direct_absolute=no |
---|
8470 | hardcode_libdir_flag_spec= |
---|
8471 | hardcode_libdir_flag_spec_ld= |
---|
8472 | hardcode_libdir_separator= |
---|
8473 | hardcode_minus_L=no |
---|
8474 | hardcode_shlibpath_var=unsupported |
---|
8475 | inherit_rpath=no |
---|
8476 | link_all_deplibs=unknown |
---|
8477 | module_cmds= |
---|
8478 | module_expsym_cmds= |
---|
8479 | old_archive_from_new_cmds= |
---|
8480 | old_archive_from_expsyms_cmds= |
---|
8481 | thread_safe_flag_spec= |
---|
8482 | whole_archive_flag_spec= |
---|
8483 | # include_expsyms should be a list of space-separated symbols to be *always* |
---|
8484 | # included in the symbol list |
---|
8485 | include_expsyms= |
---|
8486 | # exclude_expsyms can be an extended regexp of symbols to exclude |
---|
8487 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
---|
8488 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
---|
8489 | # as well as any symbol that contains `d'. |
---|
8490 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
---|
8491 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
---|
8492 | # platforms (ab)use it in PIC code, but their linkers get confused if |
---|
8493 | # the symbol is explicitly referenced. Since portable code cannot |
---|
8494 | # rely on this symbol name, it's probably fine to never include it in |
---|
8495 | # preloaded symbol tables. |
---|
8496 | # Exclude shared library initialization/finalization symbols. |
---|
8497 | extract_expsyms_cmds= |
---|
8498 | |
---|
8499 | case $host_os in |
---|
8500 | cygwin* | mingw* | pw32* | cegcc*) |
---|
8501 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
---|
8502 | # When not using gcc, we currently assume that we are using |
---|
8503 | # Microsoft Visual C++. |
---|
8504 | if test "$GCC" != yes; then |
---|
8505 | with_gnu_ld=no |
---|
8506 | fi |
---|
8507 | ;; |
---|
8508 | interix*) |
---|
8509 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
---|
8510 | with_gnu_ld=yes |
---|
8511 | ;; |
---|
8512 | openbsd*) |
---|
8513 | with_gnu_ld=no |
---|
8514 | ;; |
---|
8515 | esac |
---|
8516 | |
---|
8517 | ld_shlibs=yes |
---|
8518 | |
---|
8519 | # On some targets, GNU ld is compatible enough with the native linker |
---|
8520 | # that we're better off using the native interface for both. |
---|
8521 | lt_use_gnu_ld_interface=no |
---|
8522 | if test "$with_gnu_ld" = yes; then |
---|
8523 | case $host_os in |
---|
8524 | aix*) |
---|
8525 | # The AIX port of GNU ld has always aspired to compatibility |
---|
8526 | # with the native linker. However, as the warning in the GNU ld |
---|
8527 | # block says, versions before 2.19.5* couldn't really create working |
---|
8528 | # shared libraries, regardless of the interface used. |
---|
8529 | case `$LD -v 2>&1` in |
---|
8530 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
---|
8531 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
---|
8532 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
---|
8533 | *) |
---|
8534 | lt_use_gnu_ld_interface=yes |
---|
8535 | ;; |
---|
8536 | esac |
---|
8537 | ;; |
---|
8538 | *) |
---|
8539 | lt_use_gnu_ld_interface=yes |
---|
8540 | ;; |
---|
8541 | esac |
---|
8542 | fi |
---|
8543 | |
---|
8544 | if test "$lt_use_gnu_ld_interface" = yes; then |
---|
8545 | # If archive_cmds runs LD, not CC, wlarc should be empty |
---|
8546 | wlarc='${wl}' |
---|
8547 | |
---|
8548 | # Set some defaults for GNU ld with shared library support. These |
---|
8549 | # are reset later if shared libraries are not supported. Putting them |
---|
8550 | # here allows them to be overridden if necessary. |
---|
8551 | runpath_var=LD_RUN_PATH |
---|
8552 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
8553 | export_dynamic_flag_spec='${wl}--export-dynamic' |
---|
8554 | # ancient GNU ld didn't support --whole-archive et. al. |
---|
8555 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
---|
8556 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
---|
8557 | else |
---|
8558 | whole_archive_flag_spec= |
---|
8559 | fi |
---|
8560 | supports_anon_versioning=no |
---|
8561 | case `$LD -v 2>&1` in |
---|
8562 | *GNU\ gold*) supports_anon_versioning=yes ;; |
---|
8563 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
---|
8564 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
---|
8565 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
---|
8566 | *\ 2.11.*) ;; # other 2.11 versions |
---|
8567 | *) supports_anon_versioning=yes ;; |
---|
8568 | esac |
---|
8569 | |
---|
8570 | # See if GNU ld supports shared libraries. |
---|
8571 | case $host_os in |
---|
8572 | aix[3-9]*) |
---|
8573 | # On AIX/PPC, the GNU linker is very broken |
---|
8574 | if test "$host_cpu" != ia64; then |
---|
8575 | ld_shlibs=no |
---|
8576 | cat <<_LT_EOF 1>&2 |
---|
8577 | |
---|
8578 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
---|
8579 | *** to be unable to reliably create shared libraries on AIX. |
---|
8580 | *** Therefore, libtool is disabling shared libraries support. If you |
---|
8581 | *** really care for shared libraries, you may want to install binutils |
---|
8582 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
---|
8583 | *** You will then need to restart the configuration process. |
---|
8584 | |
---|
8585 | _LT_EOF |
---|
8586 | fi |
---|
8587 | ;; |
---|
8588 | |
---|
8589 | amigaos*) |
---|
8590 | case $host_cpu in |
---|
8591 | powerpc) |
---|
8592 | # see comment about AmigaOS4 .so support |
---|
8593 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8594 | archive_expsym_cmds='' |
---|
8595 | ;; |
---|
8596 | m68k) |
---|
8597 | 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)' |
---|
8598 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8599 | hardcode_minus_L=yes |
---|
8600 | ;; |
---|
8601 | esac |
---|
8602 | ;; |
---|
8603 | |
---|
8604 | beos*) |
---|
8605 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
---|
8606 | allow_undefined_flag=unsupported |
---|
8607 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
---|
8608 | # support --undefined. This deserves some investigation. FIXME |
---|
8609 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8610 | else |
---|
8611 | ld_shlibs=no |
---|
8612 | fi |
---|
8613 | ;; |
---|
8614 | |
---|
8615 | cygwin* | mingw* | pw32* | cegcc*) |
---|
8616 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
---|
8617 | # as there is no search path for DLLs. |
---|
8618 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8619 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
---|
8620 | allow_undefined_flag=unsupported |
---|
8621 | always_export_symbols=no |
---|
8622 | enable_shared_with_static_runtimes=yes |
---|
8623 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
---|
8624 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
---|
8625 | |
---|
8626 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
---|
8627 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
8628 | # If the export-symbols file already is a .def file (1st line |
---|
8629 | # is EXPORTS), use it as is; otherwise, prepend... |
---|
8630 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
8631 | cp $export_symbols $output_objdir/$soname.def; |
---|
8632 | else |
---|
8633 | echo EXPORTS > $output_objdir/$soname.def; |
---|
8634 | cat $export_symbols >> $output_objdir/$soname.def; |
---|
8635 | fi~ |
---|
8636 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
---|
8637 | else |
---|
8638 | ld_shlibs=no |
---|
8639 | fi |
---|
8640 | ;; |
---|
8641 | |
---|
8642 | haiku*) |
---|
8643 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8644 | link_all_deplibs=yes |
---|
8645 | ;; |
---|
8646 | |
---|
8647 | interix[3-9]*) |
---|
8648 | hardcode_direct=no |
---|
8649 | hardcode_shlibpath_var=no |
---|
8650 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
8651 | export_dynamic_flag_spec='${wl}-E' |
---|
8652 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
---|
8653 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
---|
8654 | # default) and relocated if they conflict, which is a slow very memory |
---|
8655 | # consuming and fragmenting process. To avoid this, we pick a random, |
---|
8656 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
---|
8657 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
---|
8658 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
---|
8659 | 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' |
---|
8660 | ;; |
---|
8661 | |
---|
8662 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
---|
8663 | tmp_diet=no |
---|
8664 | if test "$host_os" = linux-dietlibc; then |
---|
8665 | case $cc_basename in |
---|
8666 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
---|
8667 | esac |
---|
8668 | fi |
---|
8669 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
---|
8670 | && test "$tmp_diet" = no |
---|
8671 | then |
---|
8672 | tmp_addflag=' $pic_flag' |
---|
8673 | tmp_sharedflag='-shared' |
---|
8674 | case $cc_basename,$host_cpu in |
---|
8675 | pgcc*) # Portland Group C compiler |
---|
8676 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
---|
8677 | tmp_addflag=' $pic_flag' |
---|
8678 | ;; |
---|
8679 | pgf77* | pgf90* | pgf95* | pgfortran*) |
---|
8680 | # Portland Group f77 and f90 compilers |
---|
8681 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
---|
8682 | tmp_addflag=' $pic_flag -Mnomain' ;; |
---|
8683 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
---|
8684 | tmp_addflag=' -i_dynamic' ;; |
---|
8685 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
---|
8686 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
---|
8687 | ifc* | ifort*) # Intel Fortran compiler |
---|
8688 | tmp_addflag=' -nofor_main' ;; |
---|
8689 | lf95*) # Lahey Fortran 8.1 |
---|
8690 | whole_archive_flag_spec= |
---|
8691 | tmp_sharedflag='--shared' ;; |
---|
8692 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
---|
8693 | tmp_sharedflag='-qmkshrobj' |
---|
8694 | tmp_addflag= ;; |
---|
8695 | nvcc*) # Cuda Compiler Driver 2.2 |
---|
8696 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
---|
8697 | compiler_needs_object=yes |
---|
8698 | ;; |
---|
8699 | esac |
---|
8700 | case `$CC -V 2>&1 | sed 5q` in |
---|
8701 | *Sun\ C*) # Sun C 5.9 |
---|
8702 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
---|
8703 | compiler_needs_object=yes |
---|
8704 | tmp_sharedflag='-G' ;; |
---|
8705 | *Sun\ F*) # Sun Fortran 8.3 |
---|
8706 | tmp_sharedflag='-G' ;; |
---|
8707 | esac |
---|
8708 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8709 | |
---|
8710 | if test "x$supports_anon_versioning" = xyes; then |
---|
8711 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
---|
8712 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
8713 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
8714 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
---|
8715 | fi |
---|
8716 | |
---|
8717 | case $cc_basename in |
---|
8718 | xlf* | bgf* | bgxlf* | mpixlf*) |
---|
8719 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
---|
8720 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
---|
8721 | hardcode_libdir_flag_spec= |
---|
8722 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
---|
8723 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
---|
8724 | if test "x$supports_anon_versioning" = xyes; then |
---|
8725 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
---|
8726 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
---|
8727 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
---|
8728 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
---|
8729 | fi |
---|
8730 | ;; |
---|
8731 | esac |
---|
8732 | else |
---|
8733 | ld_shlibs=no |
---|
8734 | fi |
---|
8735 | ;; |
---|
8736 | |
---|
8737 | netbsd*) |
---|
8738 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
---|
8739 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
---|
8740 | wlarc= |
---|
8741 | else |
---|
8742 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8743 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8744 | fi |
---|
8745 | ;; |
---|
8746 | |
---|
8747 | solaris*) |
---|
8748 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
---|
8749 | ld_shlibs=no |
---|
8750 | cat <<_LT_EOF 1>&2 |
---|
8751 | |
---|
8752 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
---|
8753 | *** create shared libraries on Solaris systems. Therefore, libtool |
---|
8754 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
8755 | *** binutils to release 2.9.1 or newer. Another option is to modify |
---|
8756 | *** your PATH or compiler configuration so that the native linker is |
---|
8757 | *** used, and then restart. |
---|
8758 | |
---|
8759 | _LT_EOF |
---|
8760 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
---|
8761 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8762 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8763 | else |
---|
8764 | ld_shlibs=no |
---|
8765 | fi |
---|
8766 | ;; |
---|
8767 | |
---|
8768 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
---|
8769 | case `$LD -v 2>&1` in |
---|
8770 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
---|
8771 | ld_shlibs=no |
---|
8772 | cat <<_LT_EOF 1>&2 |
---|
8773 | |
---|
8774 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
---|
8775 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
---|
8776 | *** is disabling shared libraries support. We urge you to upgrade GNU |
---|
8777 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
---|
8778 | *** your PATH or compiler configuration so that the native linker is |
---|
8779 | *** used, and then restart. |
---|
8780 | |
---|
8781 | _LT_EOF |
---|
8782 | ;; |
---|
8783 | *) |
---|
8784 | # For security reasons, it is highly recommended that you always |
---|
8785 | # use absolute paths for naming shared libraries, and exclude the |
---|
8786 | # DT_RUNPATH tag from executables and libraries. But doing so |
---|
8787 | # requires that you compile everything twice, which is a pain. |
---|
8788 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
---|
8789 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
8790 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8791 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8792 | else |
---|
8793 | ld_shlibs=no |
---|
8794 | fi |
---|
8795 | ;; |
---|
8796 | esac |
---|
8797 | ;; |
---|
8798 | |
---|
8799 | sunos4*) |
---|
8800 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
8801 | wlarc= |
---|
8802 | hardcode_direct=yes |
---|
8803 | hardcode_shlibpath_var=no |
---|
8804 | ;; |
---|
8805 | |
---|
8806 | *) |
---|
8807 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
---|
8808 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
8809 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
---|
8810 | else |
---|
8811 | ld_shlibs=no |
---|
8812 | fi |
---|
8813 | ;; |
---|
8814 | esac |
---|
8815 | |
---|
8816 | if test "$ld_shlibs" = no; then |
---|
8817 | runpath_var= |
---|
8818 | hardcode_libdir_flag_spec= |
---|
8819 | export_dynamic_flag_spec= |
---|
8820 | whole_archive_flag_spec= |
---|
8821 | fi |
---|
8822 | else |
---|
8823 | # PORTME fill in a description of your system's linker (not GNU ld) |
---|
8824 | case $host_os in |
---|
8825 | aix3*) |
---|
8826 | allow_undefined_flag=unsupported |
---|
8827 | always_export_symbols=yes |
---|
8828 | 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' |
---|
8829 | # Note: this linker hardcodes the directories in LIBPATH if there |
---|
8830 | # are no directories specified by -L. |
---|
8831 | hardcode_minus_L=yes |
---|
8832 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
---|
8833 | # Neither direct hardcoding nor static linking is supported with a |
---|
8834 | # broken collect2. |
---|
8835 | hardcode_direct=unsupported |
---|
8836 | fi |
---|
8837 | ;; |
---|
8838 | |
---|
8839 | aix[4-9]*) |
---|
8840 | if test "$host_cpu" = ia64; then |
---|
8841 | # On IA64, the linker does run time linking by default, so we don't |
---|
8842 | # have to do anything special. |
---|
8843 | aix_use_runtimelinking=no |
---|
8844 | exp_sym_flag='-Bexport' |
---|
8845 | no_entry_flag="" |
---|
8846 | else |
---|
8847 | # If we're using GNU nm, then we don't want the "-C" option. |
---|
8848 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
---|
8849 | # Also, AIX nm treats weak defined symbols like other global |
---|
8850 | # defined symbols, whereas GNU nm marks them as "W". |
---|
8851 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
---|
8852 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
---|
8853 | else |
---|
8854 | 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' |
---|
8855 | fi |
---|
8856 | aix_use_runtimelinking=no |
---|
8857 | |
---|
8858 | # Test if we are trying to use run time linking or normal |
---|
8859 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
---|
8860 | # need to do runtime linking. |
---|
8861 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
---|
8862 | for ld_flag in $LDFLAGS; do |
---|
8863 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
---|
8864 | aix_use_runtimelinking=yes |
---|
8865 | break |
---|
8866 | fi |
---|
8867 | done |
---|
8868 | ;; |
---|
8869 | esac |
---|
8870 | |
---|
8871 | exp_sym_flag='-bexport' |
---|
8872 | no_entry_flag='-bnoentry' |
---|
8873 | fi |
---|
8874 | |
---|
8875 | # When large executables or shared objects are built, AIX ld can |
---|
8876 | # have problems creating the table of contents. If linking a library |
---|
8877 | # or program results in "error TOC overflow" add -mminimal-toc to |
---|
8878 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
---|
8879 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
---|
8880 | |
---|
8881 | archive_cmds='' |
---|
8882 | hardcode_direct=yes |
---|
8883 | hardcode_direct_absolute=yes |
---|
8884 | hardcode_libdir_separator=':' |
---|
8885 | link_all_deplibs=yes |
---|
8886 | file_list_spec='${wl}-f,' |
---|
8887 | |
---|
8888 | if test "$GCC" = yes; then |
---|
8889 | case $host_os in aix4.[012]|aix4.[012].*) |
---|
8890 | # We only want to do this on AIX 4.2 and lower, the check |
---|
8891 | # below for broken collect2 doesn't work under 4.3+ |
---|
8892 | collect2name=`${CC} -print-prog-name=collect2` |
---|
8893 | if test -f "$collect2name" && |
---|
8894 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
---|
8895 | then |
---|
8896 | # We have reworked collect2 |
---|
8897 | : |
---|
8898 | else |
---|
8899 | # We have old collect2 |
---|
8900 | hardcode_direct=unsupported |
---|
8901 | # It fails to find uninstalled libraries when the uninstalled |
---|
8902 | # path is not listed in the libpath. Setting hardcode_minus_L |
---|
8903 | # to unsupported forces relinking |
---|
8904 | hardcode_minus_L=yes |
---|
8905 | hardcode_libdir_flag_spec='-L$libdir' |
---|
8906 | hardcode_libdir_separator= |
---|
8907 | fi |
---|
8908 | ;; |
---|
8909 | esac |
---|
8910 | shared_flag='-shared' |
---|
8911 | if test "$aix_use_runtimelinking" = yes; then |
---|
8912 | shared_flag="$shared_flag "'${wl}-G' |
---|
8913 | fi |
---|
8914 | else |
---|
8915 | # not using gcc |
---|
8916 | if test "$host_cpu" = ia64; then |
---|
8917 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
---|
8918 | # chokes on -Wl,-G. The following line is correct: |
---|
8919 | shared_flag='-G' |
---|
8920 | else |
---|
8921 | if test "$aix_use_runtimelinking" = yes; then |
---|
8922 | shared_flag='${wl}-G' |
---|
8923 | else |
---|
8924 | shared_flag='${wl}-bM:SRE' |
---|
8925 | fi |
---|
8926 | fi |
---|
8927 | fi |
---|
8928 | |
---|
8929 | export_dynamic_flag_spec='${wl}-bexpall' |
---|
8930 | # It seems that -bexpall does not export symbols beginning with |
---|
8931 | # underscore (_), so it is better to generate a list of symbols to export. |
---|
8932 | always_export_symbols=yes |
---|
8933 | if test "$aix_use_runtimelinking" = yes; then |
---|
8934 | # Warning - without using the other runtime loading flags (-brtl), |
---|
8935 | # -berok will link without error, but may produce a broken library. |
---|
8936 | allow_undefined_flag='-berok' |
---|
8937 | # Determine the default libpath from the value encoded in an |
---|
8938 | # empty executable. |
---|
8939 | if test "${lt_cv_aix_libpath+set}" = set; then |
---|
8940 | aix_libpath=$lt_cv_aix_libpath |
---|
8941 | else |
---|
8942 | if ${lt_cv_aix_libpath_+:} false; then : |
---|
8943 | $as_echo_n "(cached) " >&6 |
---|
8944 | else |
---|
8945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8946 | /* end confdefs.h. */ |
---|
8947 | |
---|
8948 | int |
---|
8949 | main () |
---|
8950 | { |
---|
8951 | |
---|
8952 | ; |
---|
8953 | return 0; |
---|
8954 | } |
---|
8955 | _ACEOF |
---|
8956 | if ac_fn_c_try_link "$LINENO"; then : |
---|
8957 | |
---|
8958 | lt_aix_libpath_sed=' |
---|
8959 | /Import File Strings/,/^$/ { |
---|
8960 | /^0/ { |
---|
8961 | s/^0 *\([^ ]*\) *$/\1/ |
---|
8962 | p |
---|
8963 | } |
---|
8964 | }' |
---|
8965 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
8966 | # Check for a 64-bit object if we didn't find anything. |
---|
8967 | if test -z "$lt_cv_aix_libpath_"; then |
---|
8968 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
8969 | fi |
---|
8970 | fi |
---|
8971 | rm -f core conftest.err conftest.$ac_objext \ |
---|
8972 | conftest$ac_exeext conftest.$ac_ext |
---|
8973 | if test -z "$lt_cv_aix_libpath_"; then |
---|
8974 | lt_cv_aix_libpath_="/usr/lib:/lib" |
---|
8975 | fi |
---|
8976 | |
---|
8977 | fi |
---|
8978 | |
---|
8979 | aix_libpath=$lt_cv_aix_libpath_ |
---|
8980 | fi |
---|
8981 | |
---|
8982 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
8983 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
---|
8984 | else |
---|
8985 | if test "$host_cpu" = ia64; then |
---|
8986 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
---|
8987 | allow_undefined_flag="-z nodefs" |
---|
8988 | 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" |
---|
8989 | else |
---|
8990 | # Determine the default libpath from the value encoded in an |
---|
8991 | # empty executable. |
---|
8992 | if test "${lt_cv_aix_libpath+set}" = set; then |
---|
8993 | aix_libpath=$lt_cv_aix_libpath |
---|
8994 | else |
---|
8995 | if ${lt_cv_aix_libpath_+:} false; then : |
---|
8996 | $as_echo_n "(cached) " >&6 |
---|
8997 | else |
---|
8998 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
8999 | /* end confdefs.h. */ |
---|
9000 | |
---|
9001 | int |
---|
9002 | main () |
---|
9003 | { |
---|
9004 | |
---|
9005 | ; |
---|
9006 | return 0; |
---|
9007 | } |
---|
9008 | _ACEOF |
---|
9009 | if ac_fn_c_try_link "$LINENO"; then : |
---|
9010 | |
---|
9011 | lt_aix_libpath_sed=' |
---|
9012 | /Import File Strings/,/^$/ { |
---|
9013 | /^0/ { |
---|
9014 | s/^0 *\([^ ]*\) *$/\1/ |
---|
9015 | p |
---|
9016 | } |
---|
9017 | }' |
---|
9018 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
9019 | # Check for a 64-bit object if we didn't find anything. |
---|
9020 | if test -z "$lt_cv_aix_libpath_"; then |
---|
9021 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
---|
9022 | fi |
---|
9023 | fi |
---|
9024 | rm -f core conftest.err conftest.$ac_objext \ |
---|
9025 | conftest$ac_exeext conftest.$ac_ext |
---|
9026 | if test -z "$lt_cv_aix_libpath_"; then |
---|
9027 | lt_cv_aix_libpath_="/usr/lib:/lib" |
---|
9028 | fi |
---|
9029 | |
---|
9030 | fi |
---|
9031 | |
---|
9032 | aix_libpath=$lt_cv_aix_libpath_ |
---|
9033 | fi |
---|
9034 | |
---|
9035 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
---|
9036 | # Warning - without using the other run time loading flags, |
---|
9037 | # -berok will link without error, but may produce a broken library. |
---|
9038 | no_undefined_flag=' ${wl}-bernotok' |
---|
9039 | allow_undefined_flag=' ${wl}-berok' |
---|
9040 | if test "$with_gnu_ld" = yes; then |
---|
9041 | # We only use this code for GNU lds that support --whole-archive. |
---|
9042 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
---|
9043 | else |
---|
9044 | # Exported symbols can be pulled into shared objects from archives |
---|
9045 | whole_archive_flag_spec='$convenience' |
---|
9046 | fi |
---|
9047 | archive_cmds_need_lc=yes |
---|
9048 | # This is similar to how AIX traditionally builds its shared libraries. |
---|
9049 | 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' |
---|
9050 | fi |
---|
9051 | fi |
---|
9052 | ;; |
---|
9053 | |
---|
9054 | amigaos*) |
---|
9055 | case $host_cpu in |
---|
9056 | powerpc) |
---|
9057 | # see comment about AmigaOS4 .so support |
---|
9058 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
---|
9059 | archive_expsym_cmds='' |
---|
9060 | ;; |
---|
9061 | m68k) |
---|
9062 | 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)' |
---|
9063 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9064 | hardcode_minus_L=yes |
---|
9065 | ;; |
---|
9066 | esac |
---|
9067 | ;; |
---|
9068 | |
---|
9069 | bsdi[45]*) |
---|
9070 | export_dynamic_flag_spec=-rdynamic |
---|
9071 | ;; |
---|
9072 | |
---|
9073 | cygwin* | mingw* | pw32* | cegcc*) |
---|
9074 | # When not using gcc, we currently assume that we are using |
---|
9075 | # Microsoft Visual C++. |
---|
9076 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
---|
9077 | # no search path for DLLs. |
---|
9078 | case $cc_basename in |
---|
9079 | cl*) |
---|
9080 | # Native MSVC |
---|
9081 | hardcode_libdir_flag_spec=' ' |
---|
9082 | allow_undefined_flag=unsupported |
---|
9083 | always_export_symbols=yes |
---|
9084 | file_list_spec='@' |
---|
9085 | # Tell ltmain to make .lib files, not .a files. |
---|
9086 | libext=lib |
---|
9087 | # Tell ltmain to make .dll files, not .so files. |
---|
9088 | shrext_cmds=".dll" |
---|
9089 | # FIXME: Setting linknames here is a bad hack. |
---|
9090 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
---|
9091 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
---|
9092 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
---|
9093 | else |
---|
9094 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
---|
9095 | fi~ |
---|
9096 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
---|
9097 | linknames=' |
---|
9098 | # The linker will not automatically build a static lib if we build a DLL. |
---|
9099 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
---|
9100 | enable_shared_with_static_runtimes=yes |
---|
9101 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
---|
9102 | # Don't use ranlib |
---|
9103 | old_postinstall_cmds='chmod 644 $oldlib' |
---|
9104 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
---|
9105 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
---|
9106 | case $lt_outputfile in |
---|
9107 | *.exe|*.EXE) ;; |
---|
9108 | *) |
---|
9109 | lt_outputfile="$lt_outputfile.exe" |
---|
9110 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
---|
9111 | ;; |
---|
9112 | esac~ |
---|
9113 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
---|
9114 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
---|
9115 | $RM "$lt_outputfile.manifest"; |
---|
9116 | fi' |
---|
9117 | ;; |
---|
9118 | *) |
---|
9119 | # Assume MSVC wrapper |
---|
9120 | hardcode_libdir_flag_spec=' ' |
---|
9121 | allow_undefined_flag=unsupported |
---|
9122 | # Tell ltmain to make .lib files, not .a files. |
---|
9123 | libext=lib |
---|
9124 | # Tell ltmain to make .dll files, not .so files. |
---|
9125 | shrext_cmds=".dll" |
---|
9126 | # FIXME: Setting linknames here is a bad hack. |
---|
9127 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
---|
9128 | # The linker will automatically build a .lib file if we build a DLL. |
---|
9129 | old_archive_from_new_cmds='true' |
---|
9130 | # FIXME: Should let the user specify the lib program. |
---|
9131 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
---|
9132 | enable_shared_with_static_runtimes=yes |
---|
9133 | ;; |
---|
9134 | esac |
---|
9135 | ;; |
---|
9136 | |
---|
9137 | darwin* | rhapsody*) |
---|
9138 | |
---|
9139 | |
---|
9140 | archive_cmds_need_lc=no |
---|
9141 | hardcode_direct=no |
---|
9142 | hardcode_automatic=yes |
---|
9143 | hardcode_shlibpath_var=unsupported |
---|
9144 | if test "$lt_cv_ld_force_load" = "yes"; then |
---|
9145 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
---|
9146 | else |
---|
9147 | whole_archive_flag_spec='' |
---|
9148 | fi |
---|
9149 | link_all_deplibs=yes |
---|
9150 | allow_undefined_flag="$_lt_dar_allow_undefined" |
---|
9151 | case $cc_basename in |
---|
9152 | ifort*) _lt_dar_can_shared=yes ;; |
---|
9153 | *) _lt_dar_can_shared=$GCC ;; |
---|
9154 | esac |
---|
9155 | if test "$_lt_dar_can_shared" = "yes"; then |
---|
9156 | output_verbose_link_cmd=func_echo_all |
---|
9157 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
---|
9158 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
---|
9159 | 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}" |
---|
9160 | 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}" |
---|
9161 | |
---|
9162 | else |
---|
9163 | ld_shlibs=no |
---|
9164 | fi |
---|
9165 | |
---|
9166 | ;; |
---|
9167 | |
---|
9168 | dgux*) |
---|
9169 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9170 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9171 | hardcode_shlibpath_var=no |
---|
9172 | ;; |
---|
9173 | |
---|
9174 | freebsd1*) |
---|
9175 | ld_shlibs=no |
---|
9176 | ;; |
---|
9177 | |
---|
9178 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
---|
9179 | # support. Future versions do this automatically, but an explicit c++rt0.o |
---|
9180 | # does not break anything, and helps significantly (at the cost of a little |
---|
9181 | # extra space). |
---|
9182 | freebsd2.2*) |
---|
9183 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
---|
9184 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9185 | hardcode_direct=yes |
---|
9186 | hardcode_shlibpath_var=no |
---|
9187 | ;; |
---|
9188 | |
---|
9189 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
---|
9190 | freebsd2*) |
---|
9191 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
9192 | hardcode_direct=yes |
---|
9193 | hardcode_minus_L=yes |
---|
9194 | hardcode_shlibpath_var=no |
---|
9195 | ;; |
---|
9196 | |
---|
9197 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
---|
9198 | freebsd* | dragonfly*) |
---|
9199 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
9200 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9201 | hardcode_direct=yes |
---|
9202 | hardcode_shlibpath_var=no |
---|
9203 | ;; |
---|
9204 | |
---|
9205 | hpux9*) |
---|
9206 | if test "$GCC" = yes; then |
---|
9207 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
---|
9208 | else |
---|
9209 | 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' |
---|
9210 | fi |
---|
9211 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
9212 | hardcode_libdir_separator=: |
---|
9213 | hardcode_direct=yes |
---|
9214 | |
---|
9215 | # hardcode_minus_L: Not really in the search PATH, |
---|
9216 | # but as the default location of the library. |
---|
9217 | hardcode_minus_L=yes |
---|
9218 | export_dynamic_flag_spec='${wl}-E' |
---|
9219 | ;; |
---|
9220 | |
---|
9221 | hpux10*) |
---|
9222 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
---|
9223 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
9224 | else |
---|
9225 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
9226 | fi |
---|
9227 | if test "$with_gnu_ld" = no; then |
---|
9228 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
9229 | hardcode_libdir_flag_spec_ld='+b $libdir' |
---|
9230 | hardcode_libdir_separator=: |
---|
9231 | hardcode_direct=yes |
---|
9232 | hardcode_direct_absolute=yes |
---|
9233 | export_dynamic_flag_spec='${wl}-E' |
---|
9234 | # hardcode_minus_L: Not really in the search PATH, |
---|
9235 | # but as the default location of the library. |
---|
9236 | hardcode_minus_L=yes |
---|
9237 | fi |
---|
9238 | ;; |
---|
9239 | |
---|
9240 | hpux11*) |
---|
9241 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
---|
9242 | case $host_cpu in |
---|
9243 | hppa*64*) |
---|
9244 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9245 | ;; |
---|
9246 | ia64*) |
---|
9247 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
9248 | ;; |
---|
9249 | *) |
---|
9250 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
9251 | ;; |
---|
9252 | esac |
---|
9253 | else |
---|
9254 | case $host_cpu in |
---|
9255 | hppa*64*) |
---|
9256 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9257 | ;; |
---|
9258 | ia64*) |
---|
9259 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
---|
9260 | ;; |
---|
9261 | *) |
---|
9262 | |
---|
9263 | # Older versions of the 11.00 compiler do not understand -b yet |
---|
9264 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
---|
9265 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
---|
9266 | $as_echo_n "checking if $CC understands -b... " >&6; } |
---|
9267 | if ${lt_cv_prog_compiler__b+:} false; then : |
---|
9268 | $as_echo_n "(cached) " >&6 |
---|
9269 | else |
---|
9270 | lt_cv_prog_compiler__b=no |
---|
9271 | save_LDFLAGS="$LDFLAGS" |
---|
9272 | LDFLAGS="$LDFLAGS -b" |
---|
9273 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
---|
9274 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
---|
9275 | # The linker can only warn and ignore the option if not recognized |
---|
9276 | # So say no if there are warnings |
---|
9277 | if test -s conftest.err; then |
---|
9278 | # Append any errors to the config.log. |
---|
9279 | cat conftest.err 1>&5 |
---|
9280 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
---|
9281 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
---|
9282 | if diff conftest.exp conftest.er2 >/dev/null; then |
---|
9283 | lt_cv_prog_compiler__b=yes |
---|
9284 | fi |
---|
9285 | else |
---|
9286 | lt_cv_prog_compiler__b=yes |
---|
9287 | fi |
---|
9288 | fi |
---|
9289 | $RM -r conftest* |
---|
9290 | LDFLAGS="$save_LDFLAGS" |
---|
9291 | |
---|
9292 | fi |
---|
9293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
---|
9294 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
---|
9295 | |
---|
9296 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
---|
9297 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
---|
9298 | else |
---|
9299 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
---|
9300 | fi |
---|
9301 | |
---|
9302 | ;; |
---|
9303 | esac |
---|
9304 | fi |
---|
9305 | if test "$with_gnu_ld" = no; then |
---|
9306 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
---|
9307 | hardcode_libdir_separator=: |
---|
9308 | |
---|
9309 | case $host_cpu in |
---|
9310 | hppa*64*|ia64*) |
---|
9311 | hardcode_direct=no |
---|
9312 | hardcode_shlibpath_var=no |
---|
9313 | ;; |
---|
9314 | *) |
---|
9315 | hardcode_direct=yes |
---|
9316 | hardcode_direct_absolute=yes |
---|
9317 | export_dynamic_flag_spec='${wl}-E' |
---|
9318 | |
---|
9319 | # hardcode_minus_L: Not really in the search PATH, |
---|
9320 | # but as the default location of the library. |
---|
9321 | hardcode_minus_L=yes |
---|
9322 | ;; |
---|
9323 | esac |
---|
9324 | fi |
---|
9325 | ;; |
---|
9326 | |
---|
9327 | irix5* | irix6* | nonstopux*) |
---|
9328 | if test "$GCC" = yes; then |
---|
9329 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
9330 | # Try to use the -exported_symbol ld option, if it does not |
---|
9331 | # work, assume that -exports_file does not work either and |
---|
9332 | # implicitly export all symbols. |
---|
9333 | # This should be the same for all languages, so no per-tag cache variable. |
---|
9334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
---|
9335 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
---|
9336 | if ${lt_cv_irix_exported_symbol+:} false; then : |
---|
9337 | $as_echo_n "(cached) " >&6 |
---|
9338 | else |
---|
9339 | save_LDFLAGS="$LDFLAGS" |
---|
9340 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
---|
9341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
9342 | /* end confdefs.h. */ |
---|
9343 | int foo (void) { return 0; } |
---|
9344 | _ACEOF |
---|
9345 | if ac_fn_c_try_link "$LINENO"; then : |
---|
9346 | lt_cv_irix_exported_symbol=yes |
---|
9347 | else |
---|
9348 | lt_cv_irix_exported_symbol=no |
---|
9349 | fi |
---|
9350 | rm -f core conftest.err conftest.$ac_objext \ |
---|
9351 | conftest$ac_exeext conftest.$ac_ext |
---|
9352 | LDFLAGS="$save_LDFLAGS" |
---|
9353 | fi |
---|
9354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
---|
9355 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } |
---|
9356 | if test "$lt_cv_irix_exported_symbol" = yes; then |
---|
9357 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
---|
9358 | fi |
---|
9359 | else |
---|
9360 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
9361 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
---|
9362 | fi |
---|
9363 | archive_cmds_need_lc='no' |
---|
9364 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9365 | hardcode_libdir_separator=: |
---|
9366 | inherit_rpath=yes |
---|
9367 | link_all_deplibs=yes |
---|
9368 | ;; |
---|
9369 | |
---|
9370 | netbsd*) |
---|
9371 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
---|
9372 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
---|
9373 | else |
---|
9374 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
---|
9375 | fi |
---|
9376 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9377 | hardcode_direct=yes |
---|
9378 | hardcode_shlibpath_var=no |
---|
9379 | ;; |
---|
9380 | |
---|
9381 | newsos6) |
---|
9382 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9383 | hardcode_direct=yes |
---|
9384 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9385 | hardcode_libdir_separator=: |
---|
9386 | hardcode_shlibpath_var=no |
---|
9387 | ;; |
---|
9388 | |
---|
9389 | *nto* | *qnx*) |
---|
9390 | ;; |
---|
9391 | |
---|
9392 | openbsd*) |
---|
9393 | if test -f /usr/libexec/ld.so; then |
---|
9394 | hardcode_direct=yes |
---|
9395 | hardcode_shlibpath_var=no |
---|
9396 | hardcode_direct_absolute=yes |
---|
9397 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
9398 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
9399 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
---|
9400 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
9401 | export_dynamic_flag_spec='${wl}-E' |
---|
9402 | else |
---|
9403 | case $host_os in |
---|
9404 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
---|
9405 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
---|
9406 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9407 | ;; |
---|
9408 | *) |
---|
9409 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
---|
9410 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
---|
9411 | ;; |
---|
9412 | esac |
---|
9413 | fi |
---|
9414 | else |
---|
9415 | ld_shlibs=no |
---|
9416 | fi |
---|
9417 | ;; |
---|
9418 | |
---|
9419 | os2*) |
---|
9420 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9421 | hardcode_minus_L=yes |
---|
9422 | allow_undefined_flag=unsupported |
---|
9423 | 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' |
---|
9424 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
---|
9425 | ;; |
---|
9426 | |
---|
9427 | osf3*) |
---|
9428 | if test "$GCC" = yes; then |
---|
9429 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
9430 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
9431 | else |
---|
9432 | allow_undefined_flag=' -expect_unresolved \*' |
---|
9433 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
9434 | fi |
---|
9435 | archive_cmds_need_lc='no' |
---|
9436 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9437 | hardcode_libdir_separator=: |
---|
9438 | ;; |
---|
9439 | |
---|
9440 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
---|
9441 | if test "$GCC" = yes; then |
---|
9442 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
---|
9443 | archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
---|
9444 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
---|
9445 | else |
---|
9446 | allow_undefined_flag=' -expect_unresolved \*' |
---|
9447 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
---|
9448 | 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~ |
---|
9449 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
---|
9450 | |
---|
9451 | # Both c and cxx compiler support -rpath directly |
---|
9452 | hardcode_libdir_flag_spec='-rpath $libdir' |
---|
9453 | fi |
---|
9454 | archive_cmds_need_lc='no' |
---|
9455 | hardcode_libdir_separator=: |
---|
9456 | ;; |
---|
9457 | |
---|
9458 | solaris*) |
---|
9459 | no_undefined_flag=' -z defs' |
---|
9460 | if test "$GCC" = yes; then |
---|
9461 | wlarc='${wl}' |
---|
9462 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9463 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
---|
9464 | $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
---|
9465 | else |
---|
9466 | case `$CC -V 2>&1` in |
---|
9467 | *"Compilers 5.0"*) |
---|
9468 | wlarc='' |
---|
9469 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9470 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
---|
9471 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
---|
9472 | ;; |
---|
9473 | *) |
---|
9474 | wlarc='${wl}' |
---|
9475 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9476 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
---|
9477 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
---|
9478 | ;; |
---|
9479 | esac |
---|
9480 | fi |
---|
9481 | hardcode_libdir_flag_spec='-R$libdir' |
---|
9482 | hardcode_shlibpath_var=no |
---|
9483 | case $host_os in |
---|
9484 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
---|
9485 | *) |
---|
9486 | # The compiler driver will combine and reorder linker options, |
---|
9487 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
---|
9488 | # but is careful enough not to reorder. |
---|
9489 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
---|
9490 | if test "$GCC" = yes; then |
---|
9491 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
---|
9492 | else |
---|
9493 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
---|
9494 | fi |
---|
9495 | ;; |
---|
9496 | esac |
---|
9497 | link_all_deplibs=yes |
---|
9498 | ;; |
---|
9499 | |
---|
9500 | sunos4*) |
---|
9501 | if test "x$host_vendor" = xsequent; then |
---|
9502 | # Use $CC to link under sequent, because it throws in some extra .o |
---|
9503 | # files that make .init and .fini sections work. |
---|
9504 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9505 | else |
---|
9506 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
---|
9507 | fi |
---|
9508 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9509 | hardcode_direct=yes |
---|
9510 | hardcode_minus_L=yes |
---|
9511 | hardcode_shlibpath_var=no |
---|
9512 | ;; |
---|
9513 | |
---|
9514 | sysv4) |
---|
9515 | case $host_vendor in |
---|
9516 | sni) |
---|
9517 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9518 | hardcode_direct=yes # is this really true??? |
---|
9519 | ;; |
---|
9520 | siemens) |
---|
9521 | ## LD is ld it makes a PLAMLIB |
---|
9522 | ## CC just makes a GrossModule. |
---|
9523 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
---|
9524 | reload_cmds='$CC -r -o $output$reload_objs' |
---|
9525 | hardcode_direct=no |
---|
9526 | ;; |
---|
9527 | motorola) |
---|
9528 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9529 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
---|
9530 | ;; |
---|
9531 | esac |
---|
9532 | runpath_var='LD_RUN_PATH' |
---|
9533 | hardcode_shlibpath_var=no |
---|
9534 | ;; |
---|
9535 | |
---|
9536 | sysv4.3*) |
---|
9537 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9538 | hardcode_shlibpath_var=no |
---|
9539 | export_dynamic_flag_spec='-Bexport' |
---|
9540 | ;; |
---|
9541 | |
---|
9542 | sysv4*MP*) |
---|
9543 | if test -d /usr/nec; then |
---|
9544 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9545 | hardcode_shlibpath_var=no |
---|
9546 | runpath_var=LD_RUN_PATH |
---|
9547 | hardcode_runpath_var=yes |
---|
9548 | ld_shlibs=yes |
---|
9549 | fi |
---|
9550 | ;; |
---|
9551 | |
---|
9552 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
---|
9553 | no_undefined_flag='${wl}-z,text' |
---|
9554 | archive_cmds_need_lc=no |
---|
9555 | hardcode_shlibpath_var=no |
---|
9556 | runpath_var='LD_RUN_PATH' |
---|
9557 | |
---|
9558 | if test "$GCC" = yes; then |
---|
9559 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9560 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9561 | else |
---|
9562 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9563 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9564 | fi |
---|
9565 | ;; |
---|
9566 | |
---|
9567 | sysv5* | sco3.2v5* | sco5v6*) |
---|
9568 | # Note: We can NOT use -z defs as we might desire, because we do not |
---|
9569 | # link with -lc, and that would cause any symbols used from libc to |
---|
9570 | # always be unresolved, which means just about no library would |
---|
9571 | # ever link correctly. If we're not using GNU ld we use -z text |
---|
9572 | # though, which does catch some bad symbols but isn't as heavy-handed |
---|
9573 | # as -z defs. |
---|
9574 | no_undefined_flag='${wl}-z,text' |
---|
9575 | allow_undefined_flag='${wl}-z,nodefs' |
---|
9576 | archive_cmds_need_lc=no |
---|
9577 | hardcode_shlibpath_var=no |
---|
9578 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
---|
9579 | hardcode_libdir_separator=':' |
---|
9580 | link_all_deplibs=yes |
---|
9581 | export_dynamic_flag_spec='${wl}-Bexport' |
---|
9582 | runpath_var='LD_RUN_PATH' |
---|
9583 | |
---|
9584 | if test "$GCC" = yes; then |
---|
9585 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9586 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9587 | else |
---|
9588 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9589 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
---|
9590 | fi |
---|
9591 | ;; |
---|
9592 | |
---|
9593 | uts4*) |
---|
9594 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
---|
9595 | hardcode_libdir_flag_spec='-L$libdir' |
---|
9596 | hardcode_shlibpath_var=no |
---|
9597 | ;; |
---|
9598 | |
---|
9599 | *) |
---|
9600 | ld_shlibs=no |
---|
9601 | ;; |
---|
9602 | esac |
---|
9603 | |
---|
9604 | if test x$host_vendor = xsni; then |
---|
9605 | case $host in |
---|
9606 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
---|
9607 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
---|
9608 | ;; |
---|
9609 | esac |
---|
9610 | fi |
---|
9611 | fi |
---|
9612 | |
---|
9613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
---|
9614 | $as_echo "$ld_shlibs" >&6; } |
---|
9615 | test "$ld_shlibs" = no && can_build_shared=no |
---|
9616 | |
---|
9617 | with_gnu_ld=$with_gnu_ld |
---|
9618 | |
---|
9619 | |
---|
9620 | |
---|
9621 | |
---|
9622 | |
---|
9623 | |
---|
9624 | |
---|
9625 | |
---|
9626 | |
---|
9627 | |
---|
9628 | |
---|
9629 | |
---|
9630 | |
---|
9631 | |
---|
9632 | |
---|
9633 | # |
---|
9634 | # Do we need to explicitly link libc? |
---|
9635 | # |
---|
9636 | case "x$archive_cmds_need_lc" in |
---|
9637 | x|xyes) |
---|
9638 | # Assume -lc should be added |
---|
9639 | archive_cmds_need_lc=yes |
---|
9640 | |
---|
9641 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
---|
9642 | case $archive_cmds in |
---|
9643 | *'~'*) |
---|
9644 | # FIXME: we may have to deal with multi-command sequences. |
---|
9645 | ;; |
---|
9646 | '$CC '*) |
---|
9647 | # Test whether the compiler implicitly links with -lc since on some |
---|
9648 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
---|
9649 | # to ld, don't add -lc before -lgcc. |
---|
9650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
---|
9651 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
---|
9652 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
---|
9653 | $as_echo_n "(cached) " >&6 |
---|
9654 | else |
---|
9655 | $RM conftest* |
---|
9656 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
---|
9657 | |
---|
9658 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
---|
9659 | (eval $ac_compile) 2>&5 |
---|
9660 | ac_status=$? |
---|
9661 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
9662 | test $ac_status = 0; } 2>conftest.err; then |
---|
9663 | soname=conftest |
---|
9664 | lib=conftest |
---|
9665 | libobjs=conftest.$ac_objext |
---|
9666 | deplibs= |
---|
9667 | wl=$lt_prog_compiler_wl |
---|
9668 | pic_flag=$lt_prog_compiler_pic |
---|
9669 | compiler_flags=-v |
---|
9670 | linker_flags=-v |
---|
9671 | verstring= |
---|
9672 | output_objdir=. |
---|
9673 | libname=conftest |
---|
9674 | lt_save_allow_undefined_flag=$allow_undefined_flag |
---|
9675 | allow_undefined_flag= |
---|
9676 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
---|
9677 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
---|
9678 | ac_status=$? |
---|
9679 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
9680 | test $ac_status = 0; } |
---|
9681 | then |
---|
9682 | lt_cv_archive_cmds_need_lc=no |
---|
9683 | else |
---|
9684 | lt_cv_archive_cmds_need_lc=yes |
---|
9685 | fi |
---|
9686 | allow_undefined_flag=$lt_save_allow_undefined_flag |
---|
9687 | else |
---|
9688 | cat conftest.err 1>&5 |
---|
9689 | fi |
---|
9690 | $RM conftest* |
---|
9691 | |
---|
9692 | fi |
---|
9693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
---|
9694 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
---|
9695 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
---|
9696 | ;; |
---|
9697 | esac |
---|
9698 | fi |
---|
9699 | ;; |
---|
9700 | esac |
---|
9701 | |
---|
9702 | |
---|
9703 | |
---|
9704 | |
---|
9705 | |
---|
9706 | |
---|
9707 | |
---|
9708 | |
---|
9709 | |
---|
9710 | |
---|
9711 | |
---|
9712 | |
---|
9713 | |
---|
9714 | |
---|
9715 | |
---|
9716 | |
---|
9717 | |
---|
9718 | |
---|
9719 | |
---|
9720 | |
---|
9721 | |
---|
9722 | |
---|
9723 | |
---|
9724 | |
---|
9725 | |
---|
9726 | |
---|
9727 | |
---|
9728 | |
---|
9729 | |
---|
9730 | |
---|
9731 | |
---|
9732 | |
---|
9733 | |
---|
9734 | |
---|
9735 | |
---|
9736 | |
---|
9737 | |
---|
9738 | |
---|
9739 | |
---|
9740 | |
---|
9741 | |
---|
9742 | |
---|
9743 | |
---|
9744 | |
---|
9745 | |
---|
9746 | |
---|
9747 | |
---|
9748 | |
---|
9749 | |
---|
9750 | |
---|
9751 | |
---|
9752 | |
---|
9753 | |
---|
9754 | |
---|
9755 | |
---|
9756 | |
---|
9757 | |
---|
9758 | |
---|
9759 | |
---|
9760 | |
---|
9761 | |
---|
9762 | |
---|
9763 | |
---|
9764 | |
---|
9765 | |
---|
9766 | |
---|
9767 | |
---|
9768 | |
---|
9769 | |
---|
9770 | |
---|
9771 | |
---|
9772 | |
---|
9773 | |
---|
9774 | |
---|
9775 | |
---|
9776 | |
---|
9777 | |
---|
9778 | |
---|
9779 | |
---|
9780 | |
---|
9781 | |
---|
9782 | |
---|
9783 | |
---|
9784 | |
---|
9785 | |
---|
9786 | |
---|
9787 | |
---|
9788 | |
---|
9789 | |
---|
9790 | |
---|
9791 | |
---|
9792 | |
---|
9793 | |
---|
9794 | |
---|
9795 | |
---|
9796 | |
---|
9797 | |
---|
9798 | |
---|
9799 | |
---|
9800 | |
---|
9801 | |
---|
9802 | |
---|
9803 | |
---|
9804 | |
---|
9805 | |
---|
9806 | |
---|
9807 | |
---|
9808 | |
---|
9809 | |
---|
9810 | |
---|
9811 | |
---|
9812 | |
---|
9813 | |
---|
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
---|
9859 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
---|
9860 | |
---|
9861 | if test "$GCC" = yes; then |
---|
9862 | case $host_os in |
---|
9863 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
---|
9864 | *) lt_awk_arg="/^libraries:/" ;; |
---|
9865 | esac |
---|
9866 | case $host_os in |
---|
9867 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
---|
9868 | *) lt_sed_strip_eq="s,=/,/,g" ;; |
---|
9869 | esac |
---|
9870 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
---|
9871 | case $lt_search_path_spec in |
---|
9872 | *\;*) |
---|
9873 | # if the path contains ";" then we assume it to be the separator |
---|
9874 | # otherwise default to the standard path separator (i.e. ":") - it is |
---|
9875 | # assumed that no part of a normal pathname contains ";" but that should |
---|
9876 | # okay in the real world where ";" in dirpaths is itself problematic. |
---|
9877 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
---|
9878 | ;; |
---|
9879 | *) |
---|
9880 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
---|
9881 | ;; |
---|
9882 | esac |
---|
9883 | # Ok, now we have the path, separated by spaces, we can step through it |
---|
9884 | # and add multilib dir if necessary. |
---|
9885 | lt_tmp_lt_search_path_spec= |
---|
9886 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
---|
9887 | for lt_sys_path in $lt_search_path_spec; do |
---|
9888 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
---|
9889 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
---|
9890 | else |
---|
9891 | test -d "$lt_sys_path" && \ |
---|
9892 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
---|
9893 | fi |
---|
9894 | done |
---|
9895 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
---|
9896 | BEGIN {RS=" "; FS="/|\n";} { |
---|
9897 | lt_foo=""; |
---|
9898 | lt_count=0; |
---|
9899 | for (lt_i = NF; lt_i > 0; lt_i--) { |
---|
9900 | if ($lt_i != "" && $lt_i != ".") { |
---|
9901 | if ($lt_i == "..") { |
---|
9902 | lt_count++; |
---|
9903 | } else { |
---|
9904 | if (lt_count == 0) { |
---|
9905 | lt_foo="/" $lt_i lt_foo; |
---|
9906 | } else { |
---|
9907 | lt_count--; |
---|
9908 | } |
---|
9909 | } |
---|
9910 | } |
---|
9911 | } |
---|
9912 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
---|
9913 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
---|
9914 | }'` |
---|
9915 | # AWK program above erroneously prepends '/' to C:/dos/paths |
---|
9916 | # for these hosts. |
---|
9917 | case $host_os in |
---|
9918 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
---|
9919 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; |
---|
9920 | esac |
---|
9921 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
---|
9922 | else |
---|
9923 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
---|
9924 | fi |
---|
9925 | library_names_spec= |
---|
9926 | libname_spec='lib$name' |
---|
9927 | soname_spec= |
---|
9928 | shrext_cmds=".so" |
---|
9929 | postinstall_cmds= |
---|
9930 | postuninstall_cmds= |
---|
9931 | finish_cmds= |
---|
9932 | finish_eval= |
---|
9933 | shlibpath_var= |
---|
9934 | shlibpath_overrides_runpath=unknown |
---|
9935 | version_type=none |
---|
9936 | dynamic_linker="$host_os ld.so" |
---|
9937 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
---|
9938 | need_lib_prefix=unknown |
---|
9939 | hardcode_into_libs=no |
---|
9940 | |
---|
9941 | # when you set need_version to no, make sure it does not cause -set_version |
---|
9942 | # flags to be left without arguments |
---|
9943 | need_version=unknown |
---|
9944 | |
---|
9945 | case $host_os in |
---|
9946 | aix3*) |
---|
9947 | version_type=linux |
---|
9948 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
---|
9949 | shlibpath_var=LIBPATH |
---|
9950 | |
---|
9951 | # AIX 3 has no versioning support, so we append a major version to the name. |
---|
9952 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9953 | ;; |
---|
9954 | |
---|
9955 | aix[4-9]*) |
---|
9956 | version_type=linux |
---|
9957 | need_lib_prefix=no |
---|
9958 | need_version=no |
---|
9959 | hardcode_into_libs=yes |
---|
9960 | if test "$host_cpu" = ia64; then |
---|
9961 | # AIX 5 supports IA64 |
---|
9962 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
---|
9963 | shlibpath_var=LD_LIBRARY_PATH |
---|
9964 | else |
---|
9965 | # With GCC up to 2.95.x, collect2 would create an import file |
---|
9966 | # for dependence libraries. The import file would start with |
---|
9967 | # the line `#! .'. This would cause the generated library to |
---|
9968 | # depend on `.', always an invalid library. This was fixed in |
---|
9969 | # development snapshots of GCC prior to 3.0. |
---|
9970 | case $host_os in |
---|
9971 | aix4 | aix4.[01] | aix4.[01].*) |
---|
9972 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
---|
9973 | echo ' yes ' |
---|
9974 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
---|
9975 | : |
---|
9976 | else |
---|
9977 | can_build_shared=no |
---|
9978 | fi |
---|
9979 | ;; |
---|
9980 | esac |
---|
9981 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
---|
9982 | # soname into executable. Probably we can add versioning support to |
---|
9983 | # collect2, so additional links can be useful in future. |
---|
9984 | if test "$aix_use_runtimelinking" = yes; then |
---|
9985 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
---|
9986 | # instead of lib<name>.a to let people know that these are not |
---|
9987 | # typical AIX shared libraries. |
---|
9988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
9989 | else |
---|
9990 | # We preserve .a as extension for shared libraries through AIX4.2 |
---|
9991 | # and later when we are not doing run time linking. |
---|
9992 | library_names_spec='${libname}${release}.a $libname.a' |
---|
9993 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
9994 | fi |
---|
9995 | shlibpath_var=LIBPATH |
---|
9996 | fi |
---|
9997 | ;; |
---|
9998 | |
---|
9999 | amigaos*) |
---|
10000 | case $host_cpu in |
---|
10001 | powerpc) |
---|
10002 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
---|
10003 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
---|
10004 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10005 | ;; |
---|
10006 | m68k) |
---|
10007 | library_names_spec='$libname.ixlibrary $libname.a' |
---|
10008 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
---|
10009 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
---|
10010 | ;; |
---|
10011 | esac |
---|
10012 | ;; |
---|
10013 | |
---|
10014 | beos*) |
---|
10015 | library_names_spec='${libname}${shared_ext}' |
---|
10016 | dynamic_linker="$host_os ld.so" |
---|
10017 | shlibpath_var=LIBRARY_PATH |
---|
10018 | ;; |
---|
10019 | |
---|
10020 | bsdi[45]*) |
---|
10021 | version_type=linux |
---|
10022 | need_version=no |
---|
10023 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10024 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10025 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
---|
10026 | shlibpath_var=LD_LIBRARY_PATH |
---|
10027 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
---|
10028 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
---|
10029 | # the default ld.so.conf also contains /usr/contrib/lib and |
---|
10030 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
---|
10031 | # libtool to hard-code these into programs |
---|
10032 | ;; |
---|
10033 | |
---|
10034 | cygwin* | mingw* | pw32* | cegcc*) |
---|
10035 | version_type=windows |
---|
10036 | shrext_cmds=".dll" |
---|
10037 | need_version=no |
---|
10038 | need_lib_prefix=no |
---|
10039 | |
---|
10040 | case $GCC,$cc_basename in |
---|
10041 | yes,*) |
---|
10042 | # gcc |
---|
10043 | library_names_spec='$libname.dll.a' |
---|
10044 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
10045 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
10046 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
---|
10047 | dldir=$destdir/`dirname \$dlpath`~ |
---|
10048 | test -d \$dldir || mkdir -p \$dldir~ |
---|
10049 | $install_prog $dir/$dlname \$dldir/$dlname~ |
---|
10050 | chmod a+x \$dldir/$dlname~ |
---|
10051 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
---|
10052 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
---|
10053 | fi' |
---|
10054 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
10055 | dlpath=$dir/\$dldll~ |
---|
10056 | $RM \$dlpath' |
---|
10057 | shlibpath_overrides_runpath=yes |
---|
10058 | |
---|
10059 | case $host_os in |
---|
10060 | cygwin*) |
---|
10061 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
---|
10062 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
10063 | |
---|
10064 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
---|
10065 | ;; |
---|
10066 | mingw* | cegcc*) |
---|
10067 | # MinGW DLLs use traditional 'lib' prefix |
---|
10068 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
10069 | ;; |
---|
10070 | pw32*) |
---|
10071 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
---|
10072 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
10073 | ;; |
---|
10074 | esac |
---|
10075 | dynamic_linker='Win32 ld.exe' |
---|
10076 | ;; |
---|
10077 | |
---|
10078 | *,cl*) |
---|
10079 | # Native MSVC |
---|
10080 | libname_spec='$name' |
---|
10081 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
---|
10082 | library_names_spec='${libname}.dll.lib' |
---|
10083 | |
---|
10084 | case $build_os in |
---|
10085 | mingw*) |
---|
10086 | sys_lib_search_path_spec= |
---|
10087 | lt_save_ifs=$IFS |
---|
10088 | IFS=';' |
---|
10089 | for lt_path in $LIB |
---|
10090 | do |
---|
10091 | IFS=$lt_save_ifs |
---|
10092 | # Let DOS variable expansion print the short 8.3 style file name. |
---|
10093 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
---|
10094 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
---|
10095 | done |
---|
10096 | IFS=$lt_save_ifs |
---|
10097 | # Convert to MSYS style. |
---|
10098 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
---|
10099 | ;; |
---|
10100 | cygwin*) |
---|
10101 | # Convert to unix form, then to dos form, then back to unix form |
---|
10102 | # but this time dos style (no spaces!) so that the unix form looks |
---|
10103 | # like /cygdrive/c/PROGRA~1:/cygdr... |
---|
10104 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
---|
10105 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
---|
10106 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
10107 | ;; |
---|
10108 | *) |
---|
10109 | sys_lib_search_path_spec="$LIB" |
---|
10110 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
---|
10111 | # It is most probably a Windows format PATH. |
---|
10112 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
---|
10113 | else |
---|
10114 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
---|
10115 | fi |
---|
10116 | # FIXME: find the short name or the path components, as spaces are |
---|
10117 | # common. (e.g. "Program Files" -> "PROGRA~1") |
---|
10118 | ;; |
---|
10119 | esac |
---|
10120 | |
---|
10121 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
---|
10122 | postinstall_cmds='base_file=`basename \${file}`~ |
---|
10123 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
---|
10124 | dldir=$destdir/`dirname \$dlpath`~ |
---|
10125 | test -d \$dldir || mkdir -p \$dldir~ |
---|
10126 | $install_prog $dir/$dlname \$dldir/$dlname' |
---|
10127 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
---|
10128 | dlpath=$dir/\$dldll~ |
---|
10129 | $RM \$dlpath' |
---|
10130 | shlibpath_overrides_runpath=yes |
---|
10131 | dynamic_linker='Win32 link.exe' |
---|
10132 | ;; |
---|
10133 | |
---|
10134 | *) |
---|
10135 | # Assume MSVC wrapper |
---|
10136 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
---|
10137 | dynamic_linker='Win32 ld.exe' |
---|
10138 | ;; |
---|
10139 | esac |
---|
10140 | # FIXME: first we should search . and the directory the executable is in |
---|
10141 | shlibpath_var=PATH |
---|
10142 | ;; |
---|
10143 | |
---|
10144 | darwin* | rhapsody*) |
---|
10145 | dynamic_linker="$host_os dyld" |
---|
10146 | version_type=darwin |
---|
10147 | need_lib_prefix=no |
---|
10148 | need_version=no |
---|
10149 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
---|
10150 | soname_spec='${libname}${release}${major}$shared_ext' |
---|
10151 | shlibpath_overrides_runpath=yes |
---|
10152 | shlibpath_var=DYLD_LIBRARY_PATH |
---|
10153 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
---|
10154 | |
---|
10155 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
---|
10156 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
---|
10157 | ;; |
---|
10158 | |
---|
10159 | dgux*) |
---|
10160 | version_type=linux |
---|
10161 | need_lib_prefix=no |
---|
10162 | need_version=no |
---|
10163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
---|
10164 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10165 | shlibpath_var=LD_LIBRARY_PATH |
---|
10166 | ;; |
---|
10167 | |
---|
10168 | freebsd1*) |
---|
10169 | dynamic_linker=no |
---|
10170 | ;; |
---|
10171 | |
---|
10172 | freebsd* | dragonfly*) |
---|
10173 | # DragonFly does not have aout. When/if they implement a new |
---|
10174 | # versioning mechanism, adjust this. |
---|
10175 | if test -x /usr/bin/objformat; then |
---|
10176 | objformat=`/usr/bin/objformat` |
---|
10177 | else |
---|
10178 | case $host_os in |
---|
10179 | freebsd[123]*) objformat=aout ;; |
---|
10180 | *) objformat=elf ;; |
---|
10181 | esac |
---|
10182 | fi |
---|
10183 | # Handle Gentoo/FreeBSD as it was Linux |
---|
10184 | case $host_vendor in |
---|
10185 | gentoo) |
---|
10186 | version_type=linux ;; |
---|
10187 | *) |
---|
10188 | version_type=freebsd-$objformat ;; |
---|
10189 | esac |
---|
10190 | |
---|
10191 | case $version_type in |
---|
10192 | freebsd-elf*) |
---|
10193 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
10194 | need_version=no |
---|
10195 | need_lib_prefix=no |
---|
10196 | ;; |
---|
10197 | freebsd-*) |
---|
10198 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
---|
10199 | need_version=yes |
---|
10200 | ;; |
---|
10201 | linux) |
---|
10202 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
10203 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10204 | need_lib_prefix=no |
---|
10205 | need_version=no |
---|
10206 | ;; |
---|
10207 | esac |
---|
10208 | shlibpath_var=LD_LIBRARY_PATH |
---|
10209 | case $host_os in |
---|
10210 | freebsd2*) |
---|
10211 | shlibpath_overrides_runpath=yes |
---|
10212 | ;; |
---|
10213 | freebsd3.[01]* | freebsdelf3.[01]*) |
---|
10214 | shlibpath_overrides_runpath=yes |
---|
10215 | hardcode_into_libs=yes |
---|
10216 | ;; |
---|
10217 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
---|
10218 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
---|
10219 | shlibpath_overrides_runpath=no |
---|
10220 | hardcode_into_libs=yes |
---|
10221 | ;; |
---|
10222 | *) # from 4.6 on, and DragonFly |
---|
10223 | shlibpath_overrides_runpath=yes |
---|
10224 | hardcode_into_libs=yes |
---|
10225 | ;; |
---|
10226 | esac |
---|
10227 | ;; |
---|
10228 | |
---|
10229 | gnu*) |
---|
10230 | version_type=linux |
---|
10231 | need_lib_prefix=no |
---|
10232 | need_version=no |
---|
10233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
10234 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10235 | shlibpath_var=LD_LIBRARY_PATH |
---|
10236 | hardcode_into_libs=yes |
---|
10237 | ;; |
---|
10238 | |
---|
10239 | haiku*) |
---|
10240 | version_type=linux |
---|
10241 | need_lib_prefix=no |
---|
10242 | need_version=no |
---|
10243 | dynamic_linker="$host_os runtime_loader" |
---|
10244 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
---|
10245 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10246 | shlibpath_var=LIBRARY_PATH |
---|
10247 | shlibpath_overrides_runpath=yes |
---|
10248 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
---|
10249 | hardcode_into_libs=yes |
---|
10250 | ;; |
---|
10251 | |
---|
10252 | hpux9* | hpux10* | hpux11*) |
---|
10253 | # Give a soname corresponding to the major version so that dld.sl refuses to |
---|
10254 | # link against other versions. |
---|
10255 | version_type=sunos |
---|
10256 | need_lib_prefix=no |
---|
10257 | need_version=no |
---|
10258 | case $host_cpu in |
---|
10259 | ia64*) |
---|
10260 | shrext_cmds='.so' |
---|
10261 | hardcode_into_libs=yes |
---|
10262 | dynamic_linker="$host_os dld.so" |
---|
10263 | shlibpath_var=LD_LIBRARY_PATH |
---|
10264 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
10265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10266 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10267 | if test "X$HPUX_IA64_MODE" = X32; then |
---|
10268 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
---|
10269 | else |
---|
10270 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
---|
10271 | fi |
---|
10272 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
10273 | ;; |
---|
10274 | hppa*64*) |
---|
10275 | shrext_cmds='.sl' |
---|
10276 | hardcode_into_libs=yes |
---|
10277 | dynamic_linker="$host_os dld.sl" |
---|
10278 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
---|
10279 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
---|
10280 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10281 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10282 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
---|
10283 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
---|
10284 | ;; |
---|
10285 | *) |
---|
10286 | shrext_cmds='.sl' |
---|
10287 | dynamic_linker="$host_os dld.sl" |
---|
10288 | shlibpath_var=SHLIB_PATH |
---|
10289 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
---|
10290 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10291 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10292 | ;; |
---|
10293 | esac |
---|
10294 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
---|
10295 | postinstall_cmds='chmod 555 $lib' |
---|
10296 | # or fails outright, so override atomically: |
---|
10297 | install_override_mode=555 |
---|
10298 | ;; |
---|
10299 | |
---|
10300 | interix[3-9]*) |
---|
10301 | version_type=linux |
---|
10302 | need_lib_prefix=no |
---|
10303 | need_version=no |
---|
10304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
10305 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10306 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
---|
10307 | shlibpath_var=LD_LIBRARY_PATH |
---|
10308 | shlibpath_overrides_runpath=no |
---|
10309 | hardcode_into_libs=yes |
---|
10310 | ;; |
---|
10311 | |
---|
10312 | irix5* | irix6* | nonstopux*) |
---|
10313 | case $host_os in |
---|
10314 | nonstopux*) version_type=nonstopux ;; |
---|
10315 | *) |
---|
10316 | if test "$lt_cv_prog_gnu_ld" = yes; then |
---|
10317 | version_type=linux |
---|
10318 | else |
---|
10319 | version_type=irix |
---|
10320 | fi ;; |
---|
10321 | esac |
---|
10322 | need_lib_prefix=no |
---|
10323 | need_version=no |
---|
10324 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
10326 | case $host_os in |
---|
10327 | irix5* | nonstopux*) |
---|
10328 | libsuff= shlibsuff= |
---|
10329 | ;; |
---|
10330 | *) |
---|
10331 | case $LD in # libtool.m4 will add one of these switches to LD |
---|
10332 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
---|
10333 | libsuff= shlibsuff= libmagic=32-bit;; |
---|
10334 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
---|
10335 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
---|
10336 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
---|
10337 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
---|
10338 | *) libsuff= shlibsuff= libmagic=never-match;; |
---|
10339 | esac |
---|
10340 | ;; |
---|
10341 | esac |
---|
10342 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
---|
10343 | shlibpath_overrides_runpath=no |
---|
10344 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
---|
10345 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
---|
10346 | hardcode_into_libs=yes |
---|
10347 | ;; |
---|
10348 | |
---|
10349 | # No shared lib support for Linux oldld, aout, or coff. |
---|
10350 | linux*oldld* | linux*aout* | linux*coff*) |
---|
10351 | dynamic_linker=no |
---|
10352 | ;; |
---|
10353 | |
---|
10354 | # This must be Linux ELF. |
---|
10355 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
---|
10356 | version_type=linux |
---|
10357 | need_lib_prefix=no |
---|
10358 | need_version=no |
---|
10359 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10360 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10361 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
---|
10362 | shlibpath_var=LD_LIBRARY_PATH |
---|
10363 | shlibpath_overrides_runpath=no |
---|
10364 | |
---|
10365 | # Some binutils ld are patched to set DT_RUNPATH |
---|
10366 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
---|
10367 | $as_echo_n "(cached) " >&6 |
---|
10368 | else |
---|
10369 | lt_cv_shlibpath_overrides_runpath=no |
---|
10370 | save_LDFLAGS=$LDFLAGS |
---|
10371 | save_libdir=$libdir |
---|
10372 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
---|
10373 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
---|
10374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
10375 | /* end confdefs.h. */ |
---|
10376 | |
---|
10377 | int |
---|
10378 | main () |
---|
10379 | { |
---|
10380 | |
---|
10381 | ; |
---|
10382 | return 0; |
---|
10383 | } |
---|
10384 | _ACEOF |
---|
10385 | if ac_fn_c_try_link "$LINENO"; then : |
---|
10386 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
---|
10387 | lt_cv_shlibpath_overrides_runpath=yes |
---|
10388 | fi |
---|
10389 | fi |
---|
10390 | rm -f core conftest.err conftest.$ac_objext \ |
---|
10391 | conftest$ac_exeext conftest.$ac_ext |
---|
10392 | LDFLAGS=$save_LDFLAGS |
---|
10393 | libdir=$save_libdir |
---|
10394 | |
---|
10395 | fi |
---|
10396 | |
---|
10397 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
---|
10398 | |
---|
10399 | # This implies no fast_install, which is unacceptable. |
---|
10400 | # Some rework will be needed to allow for fast_install |
---|
10401 | # before this can be enabled. |
---|
10402 | hardcode_into_libs=yes |
---|
10403 | |
---|
10404 | # Append ld.so.conf contents to the search path |
---|
10405 | if test -f /etc/ld.so.conf; then |
---|
10406 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
---|
10407 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
---|
10408 | fi |
---|
10409 | |
---|
10410 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
---|
10411 | # powerpc, because MkLinux only supported shared libraries with the |
---|
10412 | # GNU dynamic linker. Since this was broken with cross compilers, |
---|
10413 | # most powerpc-linux boxes support dynamic linking these days and |
---|
10414 | # people can always --disable-shared, the test was removed, and we |
---|
10415 | # assume the GNU/Linux dynamic linker is in use. |
---|
10416 | dynamic_linker='GNU/Linux ld.so' |
---|
10417 | ;; |
---|
10418 | |
---|
10419 | netbsd*) |
---|
10420 | version_type=sunos |
---|
10421 | need_lib_prefix=no |
---|
10422 | need_version=no |
---|
10423 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
---|
10424 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
10425 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
10426 | dynamic_linker='NetBSD (a.out) ld.so' |
---|
10427 | else |
---|
10428 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
---|
10429 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10430 | dynamic_linker='NetBSD ld.elf_so' |
---|
10431 | fi |
---|
10432 | shlibpath_var=LD_LIBRARY_PATH |
---|
10433 | shlibpath_overrides_runpath=yes |
---|
10434 | hardcode_into_libs=yes |
---|
10435 | ;; |
---|
10436 | |
---|
10437 | newsos6) |
---|
10438 | version_type=linux |
---|
10439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10440 | shlibpath_var=LD_LIBRARY_PATH |
---|
10441 | shlibpath_overrides_runpath=yes |
---|
10442 | ;; |
---|
10443 | |
---|
10444 | *nto* | *qnx*) |
---|
10445 | version_type=qnx |
---|
10446 | need_lib_prefix=no |
---|
10447 | need_version=no |
---|
10448 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10449 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10450 | shlibpath_var=LD_LIBRARY_PATH |
---|
10451 | shlibpath_overrides_runpath=no |
---|
10452 | hardcode_into_libs=yes |
---|
10453 | dynamic_linker='ldqnx.so' |
---|
10454 | ;; |
---|
10455 | |
---|
10456 | openbsd*) |
---|
10457 | version_type=sunos |
---|
10458 | sys_lib_dlsearch_path_spec="/usr/lib" |
---|
10459 | need_lib_prefix=no |
---|
10460 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
---|
10461 | case $host_os in |
---|
10462 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
---|
10463 | *) need_version=no ;; |
---|
10464 | esac |
---|
10465 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
10466 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
---|
10467 | shlibpath_var=LD_LIBRARY_PATH |
---|
10468 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
---|
10469 | case $host_os in |
---|
10470 | openbsd2.[89] | openbsd2.[89].*) |
---|
10471 | shlibpath_overrides_runpath=no |
---|
10472 | ;; |
---|
10473 | *) |
---|
10474 | shlibpath_overrides_runpath=yes |
---|
10475 | ;; |
---|
10476 | esac |
---|
10477 | else |
---|
10478 | shlibpath_overrides_runpath=yes |
---|
10479 | fi |
---|
10480 | ;; |
---|
10481 | |
---|
10482 | os2*) |
---|
10483 | libname_spec='$name' |
---|
10484 | shrext_cmds=".dll" |
---|
10485 | need_lib_prefix=no |
---|
10486 | library_names_spec='$libname${shared_ext} $libname.a' |
---|
10487 | dynamic_linker='OS/2 ld.exe' |
---|
10488 | shlibpath_var=LIBPATH |
---|
10489 | ;; |
---|
10490 | |
---|
10491 | osf3* | osf4* | osf5*) |
---|
10492 | version_type=osf |
---|
10493 | need_lib_prefix=no |
---|
10494 | need_version=no |
---|
10495 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10496 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10497 | shlibpath_var=LD_LIBRARY_PATH |
---|
10498 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
---|
10499 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
---|
10500 | ;; |
---|
10501 | |
---|
10502 | rdos*) |
---|
10503 | dynamic_linker=no |
---|
10504 | ;; |
---|
10505 | |
---|
10506 | solaris*) |
---|
10507 | version_type=linux |
---|
10508 | need_lib_prefix=no |
---|
10509 | need_version=no |
---|
10510 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10511 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10512 | shlibpath_var=LD_LIBRARY_PATH |
---|
10513 | shlibpath_overrides_runpath=yes |
---|
10514 | hardcode_into_libs=yes |
---|
10515 | # ldd complains unless libraries are executable |
---|
10516 | postinstall_cmds='chmod +x $lib' |
---|
10517 | ;; |
---|
10518 | |
---|
10519 | sunos4*) |
---|
10520 | version_type=sunos |
---|
10521 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
---|
10522 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
---|
10523 | shlibpath_var=LD_LIBRARY_PATH |
---|
10524 | shlibpath_overrides_runpath=yes |
---|
10525 | if test "$with_gnu_ld" = yes; then |
---|
10526 | need_lib_prefix=no |
---|
10527 | fi |
---|
10528 | need_version=yes |
---|
10529 | ;; |
---|
10530 | |
---|
10531 | sysv4 | sysv4.3*) |
---|
10532 | version_type=linux |
---|
10533 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10534 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10535 | shlibpath_var=LD_LIBRARY_PATH |
---|
10536 | case $host_vendor in |
---|
10537 | sni) |
---|
10538 | shlibpath_overrides_runpath=no |
---|
10539 | need_lib_prefix=no |
---|
10540 | runpath_var=LD_RUN_PATH |
---|
10541 | ;; |
---|
10542 | siemens) |
---|
10543 | need_lib_prefix=no |
---|
10544 | ;; |
---|
10545 | motorola) |
---|
10546 | need_lib_prefix=no |
---|
10547 | need_version=no |
---|
10548 | shlibpath_overrides_runpath=no |
---|
10549 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
---|
10550 | ;; |
---|
10551 | esac |
---|
10552 | ;; |
---|
10553 | |
---|
10554 | sysv4*MP*) |
---|
10555 | if test -d /usr/nec ;then |
---|
10556 | version_type=linux |
---|
10557 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
---|
10558 | soname_spec='$libname${shared_ext}.$major' |
---|
10559 | shlibpath_var=LD_LIBRARY_PATH |
---|
10560 | fi |
---|
10561 | ;; |
---|
10562 | |
---|
10563 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
---|
10564 | version_type=freebsd-elf |
---|
10565 | need_lib_prefix=no |
---|
10566 | need_version=no |
---|
10567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
---|
10568 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10569 | shlibpath_var=LD_LIBRARY_PATH |
---|
10570 | shlibpath_overrides_runpath=yes |
---|
10571 | hardcode_into_libs=yes |
---|
10572 | if test "$with_gnu_ld" = yes; then |
---|
10573 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
---|
10574 | else |
---|
10575 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
---|
10576 | case $host_os in |
---|
10577 | sco3.2v5*) |
---|
10578 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
---|
10579 | ;; |
---|
10580 | esac |
---|
10581 | fi |
---|
10582 | sys_lib_dlsearch_path_spec='/usr/lib' |
---|
10583 | ;; |
---|
10584 | |
---|
10585 | tpf*) |
---|
10586 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
---|
10587 | version_type=linux |
---|
10588 | need_lib_prefix=no |
---|
10589 | need_version=no |
---|
10590 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10591 | shlibpath_var=LD_LIBRARY_PATH |
---|
10592 | shlibpath_overrides_runpath=no |
---|
10593 | hardcode_into_libs=yes |
---|
10594 | ;; |
---|
10595 | |
---|
10596 | uts4*) |
---|
10597 | version_type=linux |
---|
10598 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
---|
10599 | soname_spec='${libname}${release}${shared_ext}$major' |
---|
10600 | shlibpath_var=LD_LIBRARY_PATH |
---|
10601 | ;; |
---|
10602 | |
---|
10603 | *) |
---|
10604 | dynamic_linker=no |
---|
10605 | ;; |
---|
10606 | esac |
---|
10607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
---|
10608 | $as_echo "$dynamic_linker" >&6; } |
---|
10609 | test "$dynamic_linker" = no && can_build_shared=no |
---|
10610 | |
---|
10611 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
---|
10612 | if test "$GCC" = yes; then |
---|
10613 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
---|
10614 | fi |
---|
10615 | |
---|
10616 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
---|
10617 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
---|
10618 | fi |
---|
10619 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
---|
10620 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
---|
10621 | fi |
---|
10622 | |
---|
10623 | |
---|
10624 | |
---|
10625 | |
---|
10626 | |
---|
10627 | |
---|
10628 | |
---|
10629 | |
---|
10630 | |
---|
10631 | |
---|
10632 | |
---|
10633 | |
---|
10634 | |
---|
10635 | |
---|
10636 | |
---|
10637 | |
---|
10638 | |
---|
10639 | |
---|
10640 | |
---|
10641 | |
---|
10642 | |
---|
10643 | |
---|
10644 | |
---|
10645 | |
---|
10646 | |
---|
10647 | |
---|
10648 | |
---|
10649 | |
---|
10650 | |
---|
10651 | |
---|
10652 | |
---|
10653 | |
---|
10654 | |
---|
10655 | |
---|
10656 | |
---|
10657 | |
---|
10658 | |
---|
10659 | |
---|
10660 | |
---|
10661 | |
---|
10662 | |
---|
10663 | |
---|
10664 | |
---|
10665 | |
---|
10666 | |
---|
10667 | |
---|
10668 | |
---|
10669 | |
---|
10670 | |
---|
10671 | |
---|
10672 | |
---|
10673 | |
---|
10674 | |
---|
10675 | |
---|
10676 | |
---|
10677 | |
---|
10678 | |
---|
10679 | |
---|
10680 | |
---|
10681 | |
---|
10682 | |
---|
10683 | |
---|
10684 | |
---|
10685 | |
---|
10686 | |
---|
10687 | |
---|
10688 | |
---|
10689 | |
---|
10690 | |
---|
10691 | |
---|
10692 | |
---|
10693 | |
---|
10694 | |
---|
10695 | |
---|
10696 | |
---|
10697 | |
---|
10698 | |
---|
10699 | |
---|
10700 | |
---|
10701 | |
---|
10702 | |
---|
10703 | |
---|
10704 | |
---|
10705 | |
---|
10706 | |
---|
10707 | |
---|
10708 | |
---|
10709 | |
---|
10710 | |
---|
10711 | |
---|
10712 | |
---|
10713 | |
---|
10714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
---|
10715 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
---|
10716 | hardcode_action= |
---|
10717 | if test -n "$hardcode_libdir_flag_spec" || |
---|
10718 | test -n "$runpath_var" || |
---|
10719 | test "X$hardcode_automatic" = "Xyes" ; then |
---|
10720 | |
---|
10721 | # We can hardcode non-existent directories. |
---|
10722 | if test "$hardcode_direct" != no && |
---|
10723 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
---|
10724 | # have to relink, otherwise we might link with an installed library |
---|
10725 | # when we should be linking with a yet-to-be-installed one |
---|
10726 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
---|
10727 | test "$hardcode_minus_L" != no; then |
---|
10728 | # Linking always hardcodes the temporary library directory. |
---|
10729 | hardcode_action=relink |
---|
10730 | else |
---|
10731 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
---|
10732 | hardcode_action=immediate |
---|
10733 | fi |
---|
10734 | else |
---|
10735 | # We cannot hardcode anything, or else we can only hardcode existing |
---|
10736 | # directories. |
---|
10737 | hardcode_action=unsupported |
---|
10738 | fi |
---|
10739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
---|
10740 | $as_echo "$hardcode_action" >&6; } |
---|
10741 | |
---|
10742 | if test "$hardcode_action" = relink || |
---|
10743 | test "$inherit_rpath" = yes; then |
---|
10744 | # Fast installation is not supported |
---|
10745 | enable_fast_install=no |
---|
10746 | elif test "$shlibpath_overrides_runpath" = yes || |
---|
10747 | test "$enable_shared" = no; then |
---|
10748 | # Fast installation is not necessary |
---|
10749 | enable_fast_install=needless |
---|
10750 | fi |
---|
10751 | |
---|
10752 | |
---|
10753 | |
---|
10754 | |
---|
10755 | |
---|
10756 | |
---|
10757 | if test "x$enable_dlopen" != xyes; then |
---|
10758 | enable_dlopen=unknown |
---|
10759 | enable_dlopen_self=unknown |
---|
10760 | enable_dlopen_self_static=unknown |
---|
10761 | else |
---|
10762 | lt_cv_dlopen=no |
---|
10763 | lt_cv_dlopen_libs= |
---|
10764 | |
---|
10765 | case $host_os in |
---|
10766 | beos*) |
---|
10767 | lt_cv_dlopen="load_add_on" |
---|
10768 | lt_cv_dlopen_libs= |
---|
10769 | lt_cv_dlopen_self=yes |
---|
10770 | ;; |
---|
10771 | |
---|
10772 | mingw* | pw32* | cegcc*) |
---|
10773 | lt_cv_dlopen="LoadLibrary" |
---|
10774 | lt_cv_dlopen_libs= |
---|
10775 | ;; |
---|
10776 | |
---|
10777 | cygwin*) |
---|
10778 | lt_cv_dlopen="dlopen" |
---|
10779 | lt_cv_dlopen_libs= |
---|
10780 | ;; |
---|
10781 | |
---|
10782 | darwin*) |
---|
10783 | # if libdl is installed we need to link against it |
---|
10784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
---|
10785 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
---|
10786 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
---|
10787 | $as_echo_n "(cached) " >&6 |
---|
10788 | else |
---|
10789 | ac_check_lib_save_LIBS=$LIBS |
---|
10790 | LIBS="-ldl $LIBS" |
---|
10791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
10792 | /* end confdefs.h. */ |
---|
10793 | |
---|
10794 | /* Override any GCC internal prototype to avoid an error. |
---|
10795 | Use char because int might match the return type of a GCC |
---|
10796 | builtin and then its argument prototype would still apply. */ |
---|
10797 | #ifdef __cplusplus |
---|
10798 | extern "C" |
---|
10799 | #endif |
---|
10800 | char dlopen (); |
---|
10801 | int |
---|
10802 | main () |
---|
10803 | { |
---|
10804 | return dlopen (); |
---|
10805 | ; |
---|
10806 | return 0; |
---|
10807 | } |
---|
10808 | _ACEOF |
---|
10809 | if ac_fn_c_try_link "$LINENO"; then : |
---|
10810 | ac_cv_lib_dl_dlopen=yes |
---|
10811 | else |
---|
10812 | ac_cv_lib_dl_dlopen=no |
---|
10813 | fi |
---|
10814 | rm -f core conftest.err conftest.$ac_objext \ |
---|
10815 | conftest$ac_exeext conftest.$ac_ext |
---|
10816 | LIBS=$ac_check_lib_save_LIBS |
---|
10817 | fi |
---|
10818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
10819 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
---|
10820 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
---|
10821 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
10822 | else |
---|
10823 | |
---|
10824 | lt_cv_dlopen="dyld" |
---|
10825 | lt_cv_dlopen_libs= |
---|
10826 | lt_cv_dlopen_self=yes |
---|
10827 | |
---|
10828 | fi |
---|
10829 | |
---|
10830 | ;; |
---|
10831 | |
---|
10832 | *) |
---|
10833 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
---|
10834 | if test "x$ac_cv_func_shl_load" = xyes; then : |
---|
10835 | lt_cv_dlopen="shl_load" |
---|
10836 | else |
---|
10837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
---|
10838 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
---|
10839 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
---|
10840 | $as_echo_n "(cached) " >&6 |
---|
10841 | else |
---|
10842 | ac_check_lib_save_LIBS=$LIBS |
---|
10843 | LIBS="-ldld $LIBS" |
---|
10844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
10845 | /* end confdefs.h. */ |
---|
10846 | |
---|
10847 | /* Override any GCC internal prototype to avoid an error. |
---|
10848 | Use char because int might match the return type of a GCC |
---|
10849 | builtin and then its argument prototype would still apply. */ |
---|
10850 | #ifdef __cplusplus |
---|
10851 | extern "C" |
---|
10852 | #endif |
---|
10853 | char shl_load (); |
---|
10854 | int |
---|
10855 | main () |
---|
10856 | { |
---|
10857 | return shl_load (); |
---|
10858 | ; |
---|
10859 | return 0; |
---|
10860 | } |
---|
10861 | _ACEOF |
---|
10862 | if ac_fn_c_try_link "$LINENO"; then : |
---|
10863 | ac_cv_lib_dld_shl_load=yes |
---|
10864 | else |
---|
10865 | ac_cv_lib_dld_shl_load=no |
---|
10866 | fi |
---|
10867 | rm -f core conftest.err conftest.$ac_objext \ |
---|
10868 | conftest$ac_exeext conftest.$ac_ext |
---|
10869 | LIBS=$ac_check_lib_save_LIBS |
---|
10870 | fi |
---|
10871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
10872 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
---|
10873 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
---|
10874 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
---|
10875 | else |
---|
10876 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
---|
10877 | if test "x$ac_cv_func_dlopen" = xyes; then : |
---|
10878 | lt_cv_dlopen="dlopen" |
---|
10879 | else |
---|
10880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
---|
10881 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
---|
10882 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
---|
10883 | $as_echo_n "(cached) " >&6 |
---|
10884 | else |
---|
10885 | ac_check_lib_save_LIBS=$LIBS |
---|
10886 | LIBS="-ldl $LIBS" |
---|
10887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
10888 | /* end confdefs.h. */ |
---|
10889 | |
---|
10890 | /* Override any GCC internal prototype to avoid an error. |
---|
10891 | Use char because int might match the return type of a GCC |
---|
10892 | builtin and then its argument prototype would still apply. */ |
---|
10893 | #ifdef __cplusplus |
---|
10894 | extern "C" |
---|
10895 | #endif |
---|
10896 | char dlopen (); |
---|
10897 | int |
---|
10898 | main () |
---|
10899 | { |
---|
10900 | return dlopen (); |
---|
10901 | ; |
---|
10902 | return 0; |
---|
10903 | } |
---|
10904 | _ACEOF |
---|
10905 | if ac_fn_c_try_link "$LINENO"; then : |
---|
10906 | ac_cv_lib_dl_dlopen=yes |
---|
10907 | else |
---|
10908 | ac_cv_lib_dl_dlopen=no |
---|
10909 | fi |
---|
10910 | rm -f core conftest.err conftest.$ac_objext \ |
---|
10911 | conftest$ac_exeext conftest.$ac_ext |
---|
10912 | LIBS=$ac_check_lib_save_LIBS |
---|
10913 | fi |
---|
10914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
10915 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
---|
10916 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
---|
10917 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
---|
10918 | else |
---|
10919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
---|
10920 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
---|
10921 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
---|
10922 | $as_echo_n "(cached) " >&6 |
---|
10923 | else |
---|
10924 | ac_check_lib_save_LIBS=$LIBS |
---|
10925 | LIBS="-lsvld $LIBS" |
---|
10926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
10927 | /* end confdefs.h. */ |
---|
10928 | |
---|
10929 | /* Override any GCC internal prototype to avoid an error. |
---|
10930 | Use char because int might match the return type of a GCC |
---|
10931 | builtin and then its argument prototype would still apply. */ |
---|
10932 | #ifdef __cplusplus |
---|
10933 | extern "C" |
---|
10934 | #endif |
---|
10935 | char dlopen (); |
---|
10936 | int |
---|
10937 | main () |
---|
10938 | { |
---|
10939 | return dlopen (); |
---|
10940 | ; |
---|
10941 | return 0; |
---|
10942 | } |
---|
10943 | _ACEOF |
---|
10944 | if ac_fn_c_try_link "$LINENO"; then : |
---|
10945 | ac_cv_lib_svld_dlopen=yes |
---|
10946 | else |
---|
10947 | ac_cv_lib_svld_dlopen=no |
---|
10948 | fi |
---|
10949 | rm -f core conftest.err conftest.$ac_objext \ |
---|
10950 | conftest$ac_exeext conftest.$ac_ext |
---|
10951 | LIBS=$ac_check_lib_save_LIBS |
---|
10952 | fi |
---|
10953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
---|
10954 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
---|
10955 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
---|
10956 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
---|
10957 | else |
---|
10958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
---|
10959 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
---|
10960 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
---|
10961 | $as_echo_n "(cached) " >&6 |
---|
10962 | else |
---|
10963 | ac_check_lib_save_LIBS=$LIBS |
---|
10964 | LIBS="-ldld $LIBS" |
---|
10965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
10966 | /* end confdefs.h. */ |
---|
10967 | |
---|
10968 | /* Override any GCC internal prototype to avoid an error. |
---|
10969 | Use char because int might match the return type of a GCC |
---|
10970 | builtin and then its argument prototype would still apply. */ |
---|
10971 | #ifdef __cplusplus |
---|
10972 | extern "C" |
---|
10973 | #endif |
---|
10974 | char dld_link (); |
---|
10975 | int |
---|
10976 | main () |
---|
10977 | { |
---|
10978 | return dld_link (); |
---|
10979 | ; |
---|
10980 | return 0; |
---|
10981 | } |
---|
10982 | _ACEOF |
---|
10983 | if ac_fn_c_try_link "$LINENO"; then : |
---|
10984 | ac_cv_lib_dld_dld_link=yes |
---|
10985 | else |
---|
10986 | ac_cv_lib_dld_dld_link=no |
---|
10987 | fi |
---|
10988 | rm -f core conftest.err conftest.$ac_objext \ |
---|
10989 | conftest$ac_exeext conftest.$ac_ext |
---|
10990 | LIBS=$ac_check_lib_save_LIBS |
---|
10991 | fi |
---|
10992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
---|
10993 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
---|
10994 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
---|
10995 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
---|
10996 | fi |
---|
10997 | |
---|
10998 | |
---|
10999 | fi |
---|
11000 | |
---|
11001 | |
---|
11002 | fi |
---|
11003 | |
---|
11004 | |
---|
11005 | fi |
---|
11006 | |
---|
11007 | |
---|
11008 | fi |
---|
11009 | |
---|
11010 | |
---|
11011 | fi |
---|
11012 | |
---|
11013 | ;; |
---|
11014 | esac |
---|
11015 | |
---|
11016 | if test "x$lt_cv_dlopen" != xno; then |
---|
11017 | enable_dlopen=yes |
---|
11018 | else |
---|
11019 | enable_dlopen=no |
---|
11020 | fi |
---|
11021 | |
---|
11022 | case $lt_cv_dlopen in |
---|
11023 | dlopen) |
---|
11024 | save_CPPFLAGS="$CPPFLAGS" |
---|
11025 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
---|
11026 | |
---|
11027 | save_LDFLAGS="$LDFLAGS" |
---|
11028 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
---|
11029 | |
---|
11030 | save_LIBS="$LIBS" |
---|
11031 | LIBS="$lt_cv_dlopen_libs $LIBS" |
---|
11032 | |
---|
11033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
---|
11034 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
---|
11035 | if ${lt_cv_dlopen_self+:} false; then : |
---|
11036 | $as_echo_n "(cached) " >&6 |
---|
11037 | else |
---|
11038 | if test "$cross_compiling" = yes; then : |
---|
11039 | lt_cv_dlopen_self=cross |
---|
11040 | else |
---|
11041 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
11042 | lt_status=$lt_dlunknown |
---|
11043 | cat > conftest.$ac_ext <<_LT_EOF |
---|
11044 | #line $LINENO "configure" |
---|
11045 | #include "confdefs.h" |
---|
11046 | |
---|
11047 | #if HAVE_DLFCN_H |
---|
11048 | #include <dlfcn.h> |
---|
11049 | #endif |
---|
11050 | |
---|
11051 | #include <stdio.h> |
---|
11052 | |
---|
11053 | #ifdef RTLD_GLOBAL |
---|
11054 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
11055 | #else |
---|
11056 | # ifdef DL_GLOBAL |
---|
11057 | # define LT_DLGLOBAL DL_GLOBAL |
---|
11058 | # else |
---|
11059 | # define LT_DLGLOBAL 0 |
---|
11060 | # endif |
---|
11061 | #endif |
---|
11062 | |
---|
11063 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
11064 | find out it does not work in some platform. */ |
---|
11065 | #ifndef LT_DLLAZY_OR_NOW |
---|
11066 | # ifdef RTLD_LAZY |
---|
11067 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
11068 | # else |
---|
11069 | # ifdef DL_LAZY |
---|
11070 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
11071 | # else |
---|
11072 | # ifdef RTLD_NOW |
---|
11073 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
11074 | # else |
---|
11075 | # ifdef DL_NOW |
---|
11076 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
11077 | # else |
---|
11078 | # define LT_DLLAZY_OR_NOW 0 |
---|
11079 | # endif |
---|
11080 | # endif |
---|
11081 | # endif |
---|
11082 | # endif |
---|
11083 | #endif |
---|
11084 | |
---|
11085 | /* When -fvisbility=hidden is used, assume the code has been annotated |
---|
11086 | correspondingly for the symbols needed. */ |
---|
11087 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
---|
11088 | int fnord () __attribute__((visibility("default"))); |
---|
11089 | #endif |
---|
11090 | |
---|
11091 | int fnord () { return 42; } |
---|
11092 | int main () |
---|
11093 | { |
---|
11094 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
11095 | int status = $lt_dlunknown; |
---|
11096 | |
---|
11097 | if (self) |
---|
11098 | { |
---|
11099 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
11100 | else |
---|
11101 | { |
---|
11102 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
11103 | else puts (dlerror ()); |
---|
11104 | } |
---|
11105 | /* dlclose (self); */ |
---|
11106 | } |
---|
11107 | else |
---|
11108 | puts (dlerror ()); |
---|
11109 | |
---|
11110 | return status; |
---|
11111 | } |
---|
11112 | _LT_EOF |
---|
11113 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
---|
11114 | (eval $ac_link) 2>&5 |
---|
11115 | ac_status=$? |
---|
11116 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
11117 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
11118 | (./conftest; exit; ) >&5 2>/dev/null |
---|
11119 | lt_status=$? |
---|
11120 | case x$lt_status in |
---|
11121 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
---|
11122 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
---|
11123 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
---|
11124 | esac |
---|
11125 | else : |
---|
11126 | # compilation failed |
---|
11127 | lt_cv_dlopen_self=no |
---|
11128 | fi |
---|
11129 | fi |
---|
11130 | rm -fr conftest* |
---|
11131 | |
---|
11132 | |
---|
11133 | fi |
---|
11134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
---|
11135 | $as_echo "$lt_cv_dlopen_self" >&6; } |
---|
11136 | |
---|
11137 | if test "x$lt_cv_dlopen_self" = xyes; then |
---|
11138 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
---|
11139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
---|
11140 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
---|
11141 | if ${lt_cv_dlopen_self_static+:} false; then : |
---|
11142 | $as_echo_n "(cached) " >&6 |
---|
11143 | else |
---|
11144 | if test "$cross_compiling" = yes; then : |
---|
11145 | lt_cv_dlopen_self_static=cross |
---|
11146 | else |
---|
11147 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
---|
11148 | lt_status=$lt_dlunknown |
---|
11149 | cat > conftest.$ac_ext <<_LT_EOF |
---|
11150 | #line $LINENO "configure" |
---|
11151 | #include "confdefs.h" |
---|
11152 | |
---|
11153 | #if HAVE_DLFCN_H |
---|
11154 | #include <dlfcn.h> |
---|
11155 | #endif |
---|
11156 | |
---|
11157 | #include <stdio.h> |
---|
11158 | |
---|
11159 | #ifdef RTLD_GLOBAL |
---|
11160 | # define LT_DLGLOBAL RTLD_GLOBAL |
---|
11161 | #else |
---|
11162 | # ifdef DL_GLOBAL |
---|
11163 | # define LT_DLGLOBAL DL_GLOBAL |
---|
11164 | # else |
---|
11165 | # define LT_DLGLOBAL 0 |
---|
11166 | # endif |
---|
11167 | #endif |
---|
11168 | |
---|
11169 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
---|
11170 | find out it does not work in some platform. */ |
---|
11171 | #ifndef LT_DLLAZY_OR_NOW |
---|
11172 | # ifdef RTLD_LAZY |
---|
11173 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
---|
11174 | # else |
---|
11175 | # ifdef DL_LAZY |
---|
11176 | # define LT_DLLAZY_OR_NOW DL_LAZY |
---|
11177 | # else |
---|
11178 | # ifdef RTLD_NOW |
---|
11179 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
---|
11180 | # else |
---|
11181 | # ifdef DL_NOW |
---|
11182 | # define LT_DLLAZY_OR_NOW DL_NOW |
---|
11183 | # else |
---|
11184 | # define LT_DLLAZY_OR_NOW 0 |
---|
11185 | # endif |
---|
11186 | # endif |
---|
11187 | # endif |
---|
11188 | # endif |
---|
11189 | #endif |
---|
11190 | |
---|
11191 | /* When -fvisbility=hidden is used, assume the code has been annotated |
---|
11192 | correspondingly for the symbols needed. */ |
---|
11193 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
---|
11194 | int fnord () __attribute__((visibility("default"))); |
---|
11195 | #endif |
---|
11196 | |
---|
11197 | int fnord () { return 42; } |
---|
11198 | int main () |
---|
11199 | { |
---|
11200 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
---|
11201 | int status = $lt_dlunknown; |
---|
11202 | |
---|
11203 | if (self) |
---|
11204 | { |
---|
11205 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
---|
11206 | else |
---|
11207 | { |
---|
11208 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
---|
11209 | else puts (dlerror ()); |
---|
11210 | } |
---|
11211 | /* dlclose (self); */ |
---|
11212 | } |
---|
11213 | else |
---|
11214 | puts (dlerror ()); |
---|
11215 | |
---|
11216 | return status; |
---|
11217 | } |
---|
11218 | _LT_EOF |
---|
11219 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
---|
11220 | (eval $ac_link) 2>&5 |
---|
11221 | ac_status=$? |
---|
11222 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
11223 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
---|
11224 | (./conftest; exit; ) >&5 2>/dev/null |
---|
11225 | lt_status=$? |
---|
11226 | case x$lt_status in |
---|
11227 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
11228 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
---|
11229 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
---|
11230 | esac |
---|
11231 | else : |
---|
11232 | # compilation failed |
---|
11233 | lt_cv_dlopen_self_static=no |
---|
11234 | fi |
---|
11235 | fi |
---|
11236 | rm -fr conftest* |
---|
11237 | |
---|
11238 | |
---|
11239 | fi |
---|
11240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
---|
11241 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
---|
11242 | fi |
---|
11243 | |
---|
11244 | CPPFLAGS="$save_CPPFLAGS" |
---|
11245 | LDFLAGS="$save_LDFLAGS" |
---|
11246 | LIBS="$save_LIBS" |
---|
11247 | ;; |
---|
11248 | esac |
---|
11249 | |
---|
11250 | case $lt_cv_dlopen_self in |
---|
11251 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
---|
11252 | *) enable_dlopen_self=unknown ;; |
---|
11253 | esac |
---|
11254 | |
---|
11255 | case $lt_cv_dlopen_self_static in |
---|
11256 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
---|
11257 | *) enable_dlopen_self_static=unknown ;; |
---|
11258 | esac |
---|
11259 | fi |
---|
11260 | |
---|
11261 | |
---|
11262 | |
---|
11263 | |
---|
11264 | |
---|
11265 | |
---|
11266 | |
---|
11267 | |
---|
11268 | |
---|
11269 | |
---|
11270 | |
---|
11271 | |
---|
11272 | |
---|
11273 | |
---|
11274 | |
---|
11275 | |
---|
11276 | |
---|
11277 | striplib= |
---|
11278 | old_striplib= |
---|
11279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
---|
11280 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
---|
11281 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
---|
11282 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
---|
11283 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
---|
11284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
11285 | $as_echo "yes" >&6; } |
---|
11286 | else |
---|
11287 | # FIXME - insert some real tests, host_os isn't really good enough |
---|
11288 | case $host_os in |
---|
11289 | darwin*) |
---|
11290 | if test -n "$STRIP" ; then |
---|
11291 | striplib="$STRIP -x" |
---|
11292 | old_striplib="$STRIP -S" |
---|
11293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
11294 | $as_echo "yes" >&6; } |
---|
11295 | else |
---|
11296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
11297 | $as_echo "no" >&6; } |
---|
11298 | fi |
---|
11299 | ;; |
---|
11300 | *) |
---|
11301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
11302 | $as_echo "no" >&6; } |
---|
11303 | ;; |
---|
11304 | esac |
---|
11305 | fi |
---|
11306 | |
---|
11307 | |
---|
11308 | |
---|
11309 | |
---|
11310 | |
---|
11311 | |
---|
11312 | |
---|
11313 | |
---|
11314 | |
---|
11315 | |
---|
11316 | |
---|
11317 | |
---|
11318 | # Report which library types will actually be built |
---|
11319 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
---|
11320 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
---|
11321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
---|
11322 | $as_echo "$can_build_shared" >&6; } |
---|
11323 | |
---|
11324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
---|
11325 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
---|
11326 | test "$can_build_shared" = "no" && enable_shared=no |
---|
11327 | |
---|
11328 | # On AIX, shared libraries and static libraries use the same namespace, and |
---|
11329 | # are all built from PIC. |
---|
11330 | case $host_os in |
---|
11331 | aix3*) |
---|
11332 | test "$enable_shared" = yes && enable_static=no |
---|
11333 | if test -n "$RANLIB"; then |
---|
11334 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
---|
11335 | postinstall_cmds='$RANLIB $lib' |
---|
11336 | fi |
---|
11337 | ;; |
---|
11338 | |
---|
11339 | aix[4-9]*) |
---|
11340 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
---|
11341 | test "$enable_shared" = yes && enable_static=no |
---|
11342 | fi |
---|
11343 | ;; |
---|
11344 | esac |
---|
11345 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
---|
11346 | $as_echo "$enable_shared" >&6; } |
---|
11347 | |
---|
11348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
---|
11349 | $as_echo_n "checking whether to build static libraries... " >&6; } |
---|
11350 | # Make sure either enable_shared or enable_static is yes. |
---|
11351 | test "$enable_shared" = yes || enable_static=yes |
---|
11352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
---|
11353 | $as_echo "$enable_static" >&6; } |
---|
11354 | |
---|
11355 | |
---|
11356 | |
---|
11357 | |
---|
11358 | fi |
---|
11359 | ac_ext=c |
---|
11360 | ac_cpp='$CPP $CPPFLAGS' |
---|
11361 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
11362 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
11363 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
11364 | |
---|
11365 | CC="$lt_save_CC" |
---|
11366 | |
---|
11367 | |
---|
11368 | |
---|
11369 | |
---|
11370 | |
---|
11371 | |
---|
11372 | |
---|
11373 | |
---|
11374 | |
---|
11375 | |
---|
11376 | |
---|
11377 | |
---|
11378 | |
---|
11379 | ac_config_commands="$ac_config_commands libtool" |
---|
11380 | |
---|
11381 | |
---|
11382 | |
---|
11383 | |
---|
11384 | # Only expand once: |
---|
11385 | |
---|
11386 | |
---|
11387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
11388 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
11389 | set x ${MAKE-make} |
---|
11390 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
11391 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
11392 | $as_echo_n "(cached) " >&6 |
---|
11393 | else |
---|
11394 | cat >conftest.make <<\_ACEOF |
---|
11395 | SHELL = /bin/sh |
---|
11396 | all: |
---|
11397 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
11398 | _ACEOF |
---|
11399 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
11400 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
11401 | *@@@%%%=?*=@@@%%%*) |
---|
11402 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
11403 | *) |
---|
11404 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
11405 | esac |
---|
11406 | rm -f conftest.make |
---|
11407 | fi |
---|
11408 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
11409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
11410 | $as_echo "yes" >&6; } |
---|
11411 | SET_MAKE= |
---|
11412 | else |
---|
11413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
11414 | $as_echo "no" >&6; } |
---|
11415 | SET_MAKE="MAKE=${MAKE-make}" |
---|
11416 | fi |
---|
11417 | |
---|
11418 | |
---|
11419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
---|
11420 | $as_echo_n "checking for inline... " >&6; } |
---|
11421 | if ${ac_cv_c_inline+:} false; then : |
---|
11422 | $as_echo_n "(cached) " >&6 |
---|
11423 | else |
---|
11424 | ac_cv_c_inline=no |
---|
11425 | for ac_kw in inline __inline__ __inline; do |
---|
11426 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
11427 | /* end confdefs.h. */ |
---|
11428 | #ifndef __cplusplus |
---|
11429 | typedef int foo_t; |
---|
11430 | static $ac_kw foo_t static_foo () {return 0; } |
---|
11431 | $ac_kw foo_t foo () {return 0; } |
---|
11432 | #endif |
---|
11433 | |
---|
11434 | _ACEOF |
---|
11435 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
11436 | ac_cv_c_inline=$ac_kw |
---|
11437 | fi |
---|
11438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
11439 | test "$ac_cv_c_inline" != no && break |
---|
11440 | done |
---|
11441 | |
---|
11442 | fi |
---|
11443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
---|
11444 | $as_echo "$ac_cv_c_inline" >&6; } |
---|
11445 | |
---|
11446 | case $ac_cv_c_inline in |
---|
11447 | inline | yes) ;; |
---|
11448 | *) |
---|
11449 | case $ac_cv_c_inline in |
---|
11450 | no) ac_val=;; |
---|
11451 | *) ac_val=$ac_cv_c_inline;; |
---|
11452 | esac |
---|
11453 | cat >>confdefs.h <<_ACEOF |
---|
11454 | #ifndef __cplusplus |
---|
11455 | #define inline $ac_val |
---|
11456 | #endif |
---|
11457 | _ACEOF |
---|
11458 | ;; |
---|
11459 | esac |
---|
11460 | |
---|
11461 | |
---|
11462 | |
---|
11463 | cat >>confdefs.h <<_ACEOF |
---|
11464 | #define CONFIGURE_ARGS "$ac_configure_args" |
---|
11465 | _ACEOF |
---|
11466 | |
---|
11467 | |
---|
11468 | # Check for various flavors of varargs macros |
---|
11469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C" >&5 |
---|
11470 | $as_echo_n "checking for ISO C99 varargs macros in C... " >&6; } |
---|
11471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
11472 | /* end confdefs.h. */ |
---|
11473 | |
---|
11474 | int a(int, int, int); |
---|
11475 | # define call_a(...) a(1,__VA_ARGS__) |
---|
11476 | |
---|
11477 | int |
---|
11478 | main () |
---|
11479 | { |
---|
11480 | call_a(2,3); |
---|
11481 | ; |
---|
11482 | return 0; |
---|
11483 | } |
---|
11484 | |
---|
11485 | _ACEOF |
---|
11486 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
11487 | |
---|
11488 | # action if-found |
---|
11489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
11490 | $as_echo "yes" >&6; } |
---|
11491 | |
---|
11492 | $as_echo "#define HAVE_ISO_VARARGS 1" >>confdefs.h |
---|
11493 | |
---|
11494 | |
---|
11495 | else |
---|
11496 | |
---|
11497 | # action if-not-found |
---|
11498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
11499 | $as_echo "no" >&6; } |
---|
11500 | |
---|
11501 | fi |
---|
11502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
11503 | |
---|
11504 | #--------------------------------------------------------- |
---|
11505 | # Libc features |
---|
11506 | # |
---|
11507 | for ac_header in string.h |
---|
11508 | do : |
---|
11509 | ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" |
---|
11510 | if test "x$ac_cv_header_string_h" = xyes; then : |
---|
11511 | cat >>confdefs.h <<_ACEOF |
---|
11512 | #define HAVE_STRING_H 1 |
---|
11513 | _ACEOF |
---|
11514 | |
---|
11515 | fi |
---|
11516 | |
---|
11517 | done |
---|
11518 | |
---|
11519 | for ac_header in math.h |
---|
11520 | do : |
---|
11521 | ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default" |
---|
11522 | if test "x$ac_cv_header_math_h" = xyes; then : |
---|
11523 | cat >>confdefs.h <<_ACEOF |
---|
11524 | #define HAVE_MATH_H 1 |
---|
11525 | _ACEOF |
---|
11526 | |
---|
11527 | fi |
---|
11528 | |
---|
11529 | done |
---|
11530 | |
---|
11531 | for ac_header in sys/time.h |
---|
11532 | do : |
---|
11533 | ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
---|
11534 | if test "x$ac_cv_header_sys_time_h" = xyes; then : |
---|
11535 | cat >>confdefs.h <<_ACEOF |
---|
11536 | #define HAVE_SYS_TIME_H 1 |
---|
11537 | _ACEOF |
---|
11538 | |
---|
11539 | fi |
---|
11540 | |
---|
11541 | done |
---|
11542 | |
---|
11543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
---|
11544 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
---|
11545 | if ${ac_cv_header_time+:} false; then : |
---|
11546 | $as_echo_n "(cached) " >&6 |
---|
11547 | else |
---|
11548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
11549 | /* end confdefs.h. */ |
---|
11550 | #include <sys/types.h> |
---|
11551 | #include <sys/time.h> |
---|
11552 | #include <time.h> |
---|
11553 | |
---|
11554 | int |
---|
11555 | main () |
---|
11556 | { |
---|
11557 | if ((struct tm *) 0) |
---|
11558 | return 0; |
---|
11559 | ; |
---|
11560 | return 0; |
---|
11561 | } |
---|
11562 | _ACEOF |
---|
11563 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
11564 | ac_cv_header_time=yes |
---|
11565 | else |
---|
11566 | ac_cv_header_time=no |
---|
11567 | fi |
---|
11568 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
11569 | fi |
---|
11570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
---|
11571 | $as_echo "$ac_cv_header_time" >&6; } |
---|
11572 | if test $ac_cv_header_time = yes; then |
---|
11573 | |
---|
11574 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
---|
11575 | |
---|
11576 | fi |
---|
11577 | |
---|
11578 | for ac_func in strlcpy |
---|
11579 | do : |
---|
11580 | ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" |
---|
11581 | if test "x$ac_cv_func_strlcpy" = xyes; then : |
---|
11582 | cat >>confdefs.h <<_ACEOF |
---|
11583 | #define HAVE_STRLCPY 1 |
---|
11584 | _ACEOF |
---|
11585 | |
---|
11586 | fi |
---|
11587 | done |
---|
11588 | |
---|
11589 | for ac_func in strsep |
---|
11590 | do : |
---|
11591 | ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep" |
---|
11592 | if test "x$ac_cv_func_strsep" = xyes; then : |
---|
11593 | cat >>confdefs.h <<_ACEOF |
---|
11594 | #define HAVE_STRSEP 1 |
---|
11595 | _ACEOF |
---|
11596 | |
---|
11597 | fi |
---|
11598 | done |
---|
11599 | |
---|
11600 | for ac_func in strtok_r |
---|
11601 | do : |
---|
11602 | ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r" |
---|
11603 | if test "x$ac_cv_func_strtok_r" = xyes; then : |
---|
11604 | cat >>confdefs.h <<_ACEOF |
---|
11605 | #define HAVE_STRTOK_R 1 |
---|
11606 | _ACEOF |
---|
11607 | |
---|
11608 | fi |
---|
11609 | done |
---|
11610 | |
---|
11611 | for ac_func in getpwnam_r |
---|
11612 | do : |
---|
11613 | ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r" |
---|
11614 | if test "x$ac_cv_func_getpwnam_r" = xyes; then : |
---|
11615 | cat >>confdefs.h <<_ACEOF |
---|
11616 | #define HAVE_GETPWNAM_R 1 |
---|
11617 | _ACEOF |
---|
11618 | |
---|
11619 | fi |
---|
11620 | done |
---|
11621 | |
---|
11622 | for ac_func in getpwuid_r |
---|
11623 | do : |
---|
11624 | ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r" |
---|
11625 | if test "x$ac_cv_func_getpwuid_r" = xyes; then : |
---|
11626 | cat >>confdefs.h <<_ACEOF |
---|
11627 | #define HAVE_GETPWUID_R 1 |
---|
11628 | _ACEOF |
---|
11629 | |
---|
11630 | fi |
---|
11631 | done |
---|
11632 | |
---|
11633 | for ac_func in memcpy memset |
---|
11634 | do : |
---|
11635 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
11636 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
---|
11637 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
---|
11638 | cat >>confdefs.h <<_ACEOF |
---|
11639 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
11640 | _ACEOF |
---|
11641 | |
---|
11642 | fi |
---|
11643 | done |
---|
11644 | |
---|
11645 | for ac_func in localtime_r |
---|
11646 | do : |
---|
11647 | ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r" |
---|
11648 | if test "x$ac_cv_func_localtime_r" = xyes; then : |
---|
11649 | cat >>confdefs.h <<_ACEOF |
---|
11650 | #define HAVE_LOCALTIME_R 1 |
---|
11651 | _ACEOF |
---|
11652 | |
---|
11653 | fi |
---|
11654 | done |
---|
11655 | |
---|
11656 | |
---|
11657 | ds_includes_arpa_inet="\ |
---|
11658 | /* includes start */ |
---|
11659 | #ifdef HAVE_SYS_TYPES_H |
---|
11660 | # include <sys/types.h> |
---|
11661 | #endif |
---|
11662 | #ifdef HAVE_SYS_SOCKET_H |
---|
11663 | # include <sys/socket.h> |
---|
11664 | #endif |
---|
11665 | #ifdef HAVE_NETINET_IN_H |
---|
11666 | # include <netinet/in.h> |
---|
11667 | #endif |
---|
11668 | #ifdef HAVE_ARPA_INET_H |
---|
11669 | # include <arpa/inet.h> |
---|
11670 | #endif |
---|
11671 | /* includes end */" |
---|
11672 | for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h |
---|
11673 | do : |
---|
11674 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
11675 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ds_includes_arpa_inet |
---|
11676 | " |
---|
11677 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
11678 | cat >>confdefs.h <<_ACEOF |
---|
11679 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
11680 | _ACEOF |
---|
11681 | |
---|
11682 | fi |
---|
11683 | |
---|
11684 | done |
---|
11685 | |
---|
11686 | |
---|
11687 | |
---|
11688 | # |
---|
11689 | test_prototyped_inet_ntoa_r="unknown" |
---|
11690 | test_compiles_inet_ntoa_r="unknown" |
---|
11691 | test_number_of_arguments_inet_ntoa_r="unknown" |
---|
11692 | # |
---|
11693 | for ac_func in inet_ntoa_r |
---|
11694 | do : |
---|
11695 | ac_fn_c_check_func "$LINENO" "inet_ntoa_r" "ac_cv_func_inet_ntoa_r" |
---|
11696 | if test "x$ac_cv_func_inet_ntoa_r" = xyes; then : |
---|
11697 | cat >>confdefs.h <<_ACEOF |
---|
11698 | #define HAVE_INET_NTOA_R 1 |
---|
11699 | _ACEOF |
---|
11700 | |
---|
11701 | fi |
---|
11702 | done |
---|
11703 | |
---|
11704 | # |
---|
11705 | if test "$ac_cv_func_inet_ntoa_r" = "yes"; then |
---|
11706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5 |
---|
11707 | $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; } |
---|
11708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
11709 | /* end confdefs.h. */ |
---|
11710 | |
---|
11711 | $ds_includes_arpa_inet |
---|
11712 | |
---|
11713 | _ACEOF |
---|
11714 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
11715 | $EGREP "inet_ntoa_r" >/dev/null 2>&1; then : |
---|
11716 | |
---|
11717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
11718 | $as_echo "yes" >&6; } |
---|
11719 | test_prototyped_inet_ntoa_r="yes" |
---|
11720 | |
---|
11721 | else |
---|
11722 | |
---|
11723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
11724 | $as_echo "no" >&6; } |
---|
11725 | test_prototyped_inet_ntoa_r="no" |
---|
11726 | |
---|
11727 | fi |
---|
11728 | rm -f conftest* |
---|
11729 | |
---|
11730 | fi |
---|
11731 | # |
---|
11732 | if test "$test_prototyped_inet_ntoa_r" = "yes"; then |
---|
11733 | if test "$test_number_of_arguments_inet_ntoa_r" = "unknown"; then |
---|
11734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5 |
---|
11735 | $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; } |
---|
11736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
11737 | /* end confdefs.h. */ |
---|
11738 | |
---|
11739 | |
---|
11740 | $ds_includes_arpa_inet |
---|
11741 | |
---|
11742 | int |
---|
11743 | main () |
---|
11744 | { |
---|
11745 | |
---|
11746 | struct in_addr addr; |
---|
11747 | if(0 != inet_ntoa_r(addr, 0)) |
---|
11748 | return 1; |
---|
11749 | |
---|
11750 | ; |
---|
11751 | return 0; |
---|
11752 | } |
---|
11753 | |
---|
11754 | _ACEOF |
---|
11755 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
11756 | |
---|
11757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
11758 | $as_echo "yes" >&6; } |
---|
11759 | test_compiles_inet_ntoa_r="yes" |
---|
11760 | test_number_of_arguments_inet_ntoa_r="2" |
---|
11761 | |
---|
11762 | else |
---|
11763 | |
---|
11764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
11765 | $as_echo "no" >&6; } |
---|
11766 | test_compiles_inet_ntoa_r="no" |
---|
11767 | |
---|
11768 | fi |
---|
11769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
11770 | fi |
---|
11771 | if test "$test_number_of_arguments_inet_ntoa_r" = "unknown"; then |
---|
11772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5 |
---|
11773 | $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; } |
---|
11774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
11775 | /* end confdefs.h. */ |
---|
11776 | |
---|
11777 | |
---|
11778 | $ds_includes_arpa_inet |
---|
11779 | |
---|
11780 | int |
---|
11781 | main () |
---|
11782 | { |
---|
11783 | |
---|
11784 | struct in_addr addr; |
---|
11785 | if(0 != inet_ntoa_r(addr, 0, 0)) |
---|
11786 | return 1; |
---|
11787 | |
---|
11788 | ; |
---|
11789 | return 0; |
---|
11790 | } |
---|
11791 | |
---|
11792 | _ACEOF |
---|
11793 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
11794 | |
---|
11795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
11796 | $as_echo "yes" >&6; } |
---|
11797 | test_compiles_inet_ntoa_r="yes" |
---|
11798 | test_number_of_arguments_inet_ntoa_r="3" |
---|
11799 | |
---|
11800 | else |
---|
11801 | |
---|
11802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
11803 | $as_echo "no" >&6; } |
---|
11804 | test_compiles_inet_ntoa_r="no" |
---|
11805 | |
---|
11806 | fi |
---|
11807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
11808 | fi |
---|
11809 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5 |
---|
11810 | $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; } |
---|
11811 | if test "$test_compiles_inet_ntoa_r" = "yes"; then |
---|
11812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
11813 | $as_echo "yes" >&6; } |
---|
11814 | else |
---|
11815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
11816 | $as_echo "no" >&6; } |
---|
11817 | fi |
---|
11818 | fi |
---|
11819 | # |
---|
11820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5 |
---|
11821 | $as_echo_n "checking if inet_ntoa_r might be used... " >&6; } |
---|
11822 | if test "$test_prototyped_inet_ntoa_r" = "yes" && |
---|
11823 | test "$test_compiles_inet_ntoa_r" = "yes"; then |
---|
11824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
11825 | $as_echo "yes" >&6; } |
---|
11826 | |
---|
11827 | cat >>confdefs.h <<_ACEOF |
---|
11828 | #define HAVE_INET_NTOA_R 1 |
---|
11829 | _ACEOF |
---|
11830 | |
---|
11831 | # |
---|
11832 | if test "$test_number_of_arguments_inet_ntoa_r" -eq "2"; then |
---|
11833 | |
---|
11834 | $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h |
---|
11835 | |
---|
11836 | elif test "$test_number_of_arguments_inet_ntoa_r" -eq "3"; then |
---|
11837 | |
---|
11838 | $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h |
---|
11839 | |
---|
11840 | fi |
---|
11841 | # |
---|
11842 | ac_cv_func_inet_ntoa_r="yes" |
---|
11843 | else |
---|
11844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
11845 | $as_echo "no" >&6; } |
---|
11846 | ac_cv_func_inet_ntoa_r="no" |
---|
11847 | fi |
---|
11848 | |
---|
11849 | for ac_func in strcasestr |
---|
11850 | do : |
---|
11851 | ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr" |
---|
11852 | if test "x$ac_cv_func_strcasestr" = xyes; then : |
---|
11853 | cat >>confdefs.h <<_ACEOF |
---|
11854 | #define HAVE_STRCASESTR 1 |
---|
11855 | _ACEOF |
---|
11856 | |
---|
11857 | fi |
---|
11858 | done |
---|
11859 | |
---|
11860 | |
---|
11861 | LIBS= |
---|
11862 | |
---|
11863 | # Daemon support |
---|
11864 | # |
---|
11865 | # Check whether --enable-daemon was given. |
---|
11866 | if test "${enable_daemon+set}" = set; then : |
---|
11867 | enableval=$enable_daemon; |
---|
11868 | fi |
---|
11869 | |
---|
11870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable daemon mode" >&5 |
---|
11871 | $as_echo_n "checking whether to enable daemon mode... " >&6; } |
---|
11872 | case x"$enable_daemon" in |
---|
11873 | xyes) # daemon output enabled explicity |
---|
11874 | ;; |
---|
11875 | xno) # daemon output disabled explicity |
---|
11876 | ;; |
---|
11877 | x) # daemon output disabled by default |
---|
11878 | enable_daemon=no |
---|
11879 | ;; |
---|
11880 | *) as_fn_error $? "unexpected value $enable_daemon for --{enable,disable}-daemon configure option" "$LINENO" 5 |
---|
11881 | ;; |
---|
11882 | esac |
---|
11883 | if test x"$enable_daemon" != xyes |
---|
11884 | then |
---|
11885 | enable_daemon=no |
---|
11886 | else |
---|
11887 | enable_daemon=yes # overkill, but convenient |
---|
11888 | |
---|
11889 | $as_echo "#define DAEMON 1" >>confdefs.h |
---|
11890 | |
---|
11891 | fi |
---|
11892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_daemon" >&5 |
---|
11893 | $as_echo "$enable_daemon" >&6; } |
---|
11894 | |
---|
11895 | # |
---|
11896 | # Determine how to compile with pthreads support |
---|
11897 | # |
---|
11898 | if test x"$enable_daemon" = xyes |
---|
11899 | then |
---|
11900 | |
---|
11901 | ds_pthreads_save_CPPFLAGS="$CPPFLAGS" |
---|
11902 | ds_pthreads_save_LDFLAGS="$LDFLAGS" |
---|
11903 | ds_pthreads_save_LIBS="$LIBS" |
---|
11904 | |
---|
11905 | ds_pthreads_CPPFLAGS="" |
---|
11906 | ds_pthreads_LDFLAGS="" |
---|
11907 | ds_pthreads_LIBS="" |
---|
11908 | |
---|
11909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how you like your pthreads" >&5 |
---|
11910 | $as_echo_n "checking how you like your pthreads... " >&6; } |
---|
11911 | pthreads_success="no" |
---|
11912 | |
---|
11913 | LIBS="$ds_pthreads_save_LIBS -pthread" |
---|
11914 | |
---|
11915 | if test "$cross_compiling" = yes; then : |
---|
11916 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
11917 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
11918 | as_fn_error $? "cannot run test program while cross compiling |
---|
11919 | See \`config.log' for more details" "$LINENO" 5; } |
---|
11920 | else |
---|
11921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
11922 | /* end confdefs.h. */ |
---|
11923 | |
---|
11924 | #include <pthread.h> |
---|
11925 | #include <stdlib.h> |
---|
11926 | |
---|
11927 | int main() { |
---|
11928 | |
---|
11929 | pthread_mutex_t m; |
---|
11930 | pthread_mutex_init(&m, NULL); |
---|
11931 | pthread_exit(0); |
---|
11932 | exit(EXIT_FAILURE); |
---|
11933 | } |
---|
11934 | |
---|
11935 | |
---|
11936 | _ACEOF |
---|
11937 | if ac_fn_c_try_run "$LINENO"; then : |
---|
11938 | |
---|
11939 | pthreads_success="yes" |
---|
11940 | ds_pthreads_LIBS="-pthread" |
---|
11941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -pthread" >&5 |
---|
11942 | $as_echo "-pthread" >&6; } |
---|
11943 | |
---|
11944 | fi |
---|
11945 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
11946 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
11947 | fi |
---|
11948 | |
---|
11949 | |
---|
11950 | if test x"$pthreads_success" = xno |
---|
11951 | then |
---|
11952 | LIBS="$ds_pthreads_save_LIBS -lpthread" |
---|
11953 | |
---|
11954 | if test "$cross_compiling" = yes; then : |
---|
11955 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
11956 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
11957 | as_fn_error $? "cannot run test program while cross compiling |
---|
11958 | See \`config.log' for more details" "$LINENO" 5; } |
---|
11959 | else |
---|
11960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
11961 | /* end confdefs.h. */ |
---|
11962 | |
---|
11963 | #include <pthread.h> |
---|
11964 | #include <stdlib.h> |
---|
11965 | |
---|
11966 | int main() { |
---|
11967 | pthread_mutex_t m; |
---|
11968 | pthread_mutex_init(&m, NULL); |
---|
11969 | pthread_exit(0); |
---|
11970 | exit(EXIT_FAILURE); |
---|
11971 | } |
---|
11972 | |
---|
11973 | |
---|
11974 | _ACEOF |
---|
11975 | if ac_fn_c_try_run "$LINENO"; then : |
---|
11976 | |
---|
11977 | pthreads_success="yes" |
---|
11978 | ds_pthreads_LIBS="-lpthread" |
---|
11979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lpthread" >&5 |
---|
11980 | $as_echo "-lpthread" >&6; } |
---|
11981 | |
---|
11982 | fi |
---|
11983 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
11984 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
11985 | fi |
---|
11986 | |
---|
11987 | fi |
---|
11988 | |
---|
11989 | if test x"$pthreads_success" = xno |
---|
11990 | then |
---|
11991 | LIBS="$ds_pthreads_save_LIBS -lpthread -mt" |
---|
11992 | |
---|
11993 | if test "$cross_compiling" = yes; then : |
---|
11994 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
11995 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
11996 | as_fn_error $? "cannot run test program while cross compiling |
---|
11997 | See \`config.log' for more details" "$LINENO" 5; } |
---|
11998 | else |
---|
11999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
12000 | /* end confdefs.h. */ |
---|
12001 | |
---|
12002 | #include <pthread.h> |
---|
12003 | #include <stdlib.h> |
---|
12004 | |
---|
12005 | int main() { |
---|
12006 | pthread_mutex_t m; |
---|
12007 | pthread_mutex_init(&m, NULL); |
---|
12008 | pthread_exit(0); |
---|
12009 | exit(EXIT_FAILURE); |
---|
12010 | } |
---|
12011 | |
---|
12012 | |
---|
12013 | _ACEOF |
---|
12014 | if ac_fn_c_try_run "$LINENO"; then : |
---|
12015 | |
---|
12016 | pthreads_success="yes" |
---|
12017 | ds_pthreads_LIBS="-lpthread -mt" |
---|
12018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lpthread -mt" >&5 |
---|
12019 | $as_echo "-lpthread -mt" >&6; } |
---|
12020 | |
---|
12021 | fi |
---|
12022 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
12023 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
12024 | fi |
---|
12025 | |
---|
12026 | fi |
---|
12027 | |
---|
12028 | if test x"$pthreads_success" = xno |
---|
12029 | then |
---|
12030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 |
---|
12031 | $as_echo "unknown" >&6; } |
---|
12032 | as_fn_error $? "Unable to determine how to compile with pthreads" "$LINENO" 5 |
---|
12033 | fi |
---|
12034 | |
---|
12035 | CPPFLAGS="$ds_pthreads_save_CPPFLAGS" |
---|
12036 | LDFLAGS="$ds_pthreads_save_LDFLAGS" |
---|
12037 | LIBS="$ds_pthreads_save_LIBS" |
---|
12038 | |
---|
12039 | if test x"$pthreads_success" = xyes |
---|
12040 | then |
---|
12041 | PT_CPPFLAGS="$ds_pthreads_CPPFLAGS" |
---|
12042 | PT_LDFLAGS="$ds_pthreads_LDFLAGS" |
---|
12043 | PT_LIBS="$ds_pthreads_LIBS" |
---|
12044 | success=yes |
---|
12045 | : |
---|
12046 | else |
---|
12047 | success=no |
---|
12048 | : |
---|
12049 | fi |
---|
12050 | |
---|
12051 | if test x"$success" != xyes |
---|
12052 | then |
---|
12053 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
12054 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
12055 | as_fn_error $? "unable to determine how to compile with pthreads |
---|
12056 | See \`config.log' for more details" "$LINENO" 5; } |
---|
12057 | fi |
---|
12058 | fi |
---|
12059 | |
---|
12060 | CPPFLAGS="$CPPFLAGS $PT_CPPFLAGS" |
---|
12061 | LDFLAGS="$LDFLAGS $PT_LDFLAGS" |
---|
12062 | LIBS="$LIBS $PT_LIBS" |
---|
12063 | |
---|
12064 | # |
---|
12065 | # Network related libraries on Solaris is another game... |
---|
12066 | # Needed for dspam_ngstat and mysql driver. |
---|
12067 | # |
---|
12068 | for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h |
---|
12069 | do : |
---|
12070 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
12071 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
12072 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
12073 | cat >>confdefs.h <<_ACEOF |
---|
12074 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
12075 | _ACEOF |
---|
12076 | |
---|
12077 | fi |
---|
12078 | |
---|
12079 | done |
---|
12080 | |
---|
12081 | |
---|
12082 | |
---|
12083 | |
---|
12084 | |
---|
12085 | |
---|
12086 | |
---|
12087 | ds_netlibs_save_LIBS="$LIBS" |
---|
12088 | LIBS='' |
---|
12089 | ds_netlibs_success=yes |
---|
12090 | |
---|
12091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 |
---|
12092 | $as_echo_n "checking for library containing inet_ntoa... " >&6; } |
---|
12093 | if ${ac_cv_search_inet_ntoa+:} false; then : |
---|
12094 | $as_echo_n "(cached) " >&6 |
---|
12095 | else |
---|
12096 | ac_func_search_save_LIBS=$LIBS |
---|
12097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
12098 | /* end confdefs.h. */ |
---|
12099 | |
---|
12100 | /* Override any GCC internal prototype to avoid an error. |
---|
12101 | Use char because int might match the return type of a GCC |
---|
12102 | builtin and then its argument prototype would still apply. */ |
---|
12103 | #ifdef __cplusplus |
---|
12104 | extern "C" |
---|
12105 | #endif |
---|
12106 | char inet_ntoa (); |
---|
12107 | int |
---|
12108 | main () |
---|
12109 | { |
---|
12110 | return inet_ntoa (); |
---|
12111 | ; |
---|
12112 | return 0; |
---|
12113 | } |
---|
12114 | _ACEOF |
---|
12115 | for ac_lib in '' nsl; do |
---|
12116 | if test -z "$ac_lib"; then |
---|
12117 | ac_res="none required" |
---|
12118 | else |
---|
12119 | ac_res=-l$ac_lib |
---|
12120 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
12121 | fi |
---|
12122 | if ac_fn_c_try_link "$LINENO"; then : |
---|
12123 | ac_cv_search_inet_ntoa=$ac_res |
---|
12124 | fi |
---|
12125 | rm -f core conftest.err conftest.$ac_objext \ |
---|
12126 | conftest$ac_exeext |
---|
12127 | if ${ac_cv_search_inet_ntoa+:} false; then : |
---|
12128 | break |
---|
12129 | fi |
---|
12130 | done |
---|
12131 | if ${ac_cv_search_inet_ntoa+:} false; then : |
---|
12132 | |
---|
12133 | else |
---|
12134 | ac_cv_search_inet_ntoa=no |
---|
12135 | fi |
---|
12136 | rm conftest.$ac_ext |
---|
12137 | LIBS=$ac_func_search_save_LIBS |
---|
12138 | fi |
---|
12139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 |
---|
12140 | $as_echo "$ac_cv_search_inet_ntoa" >&6; } |
---|
12141 | ac_res=$ac_cv_search_inet_ntoa |
---|
12142 | if test "$ac_res" != no; then : |
---|
12143 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
---|
12144 | ds_netlibs_success=yes |
---|
12145 | else |
---|
12146 | ds_netlibs_success=no |
---|
12147 | fi |
---|
12148 | |
---|
12149 | if test x"$ds_netlibs_success" = xyes |
---|
12150 | then |
---|
12151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
---|
12152 | $as_echo_n "checking for library containing socket... " >&6; } |
---|
12153 | if ${ac_cv_search_socket+:} false; then : |
---|
12154 | $as_echo_n "(cached) " >&6 |
---|
12155 | else |
---|
12156 | ac_func_search_save_LIBS=$LIBS |
---|
12157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
12158 | /* end confdefs.h. */ |
---|
12159 | |
---|
12160 | /* Override any GCC internal prototype to avoid an error. |
---|
12161 | Use char because int might match the return type of a GCC |
---|
12162 | builtin and then its argument prototype would still apply. */ |
---|
12163 | #ifdef __cplusplus |
---|
12164 | extern "C" |
---|
12165 | #endif |
---|
12166 | char socket (); |
---|
12167 | int |
---|
12168 | main () |
---|
12169 | { |
---|
12170 | return socket (); |
---|
12171 | ; |
---|
12172 | return 0; |
---|
12173 | } |
---|
12174 | _ACEOF |
---|
12175 | for ac_lib in '' socket; do |
---|
12176 | if test -z "$ac_lib"; then |
---|
12177 | ac_res="none required" |
---|
12178 | else |
---|
12179 | ac_res=-l$ac_lib |
---|
12180 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
12181 | fi |
---|
12182 | if ac_fn_c_try_link "$LINENO"; then : |
---|
12183 | ac_cv_search_socket=$ac_res |
---|
12184 | fi |
---|
12185 | rm -f core conftest.err conftest.$ac_objext \ |
---|
12186 | conftest$ac_exeext |
---|
12187 | if ${ac_cv_search_socket+:} false; then : |
---|
12188 | break |
---|
12189 | fi |
---|
12190 | done |
---|
12191 | if ${ac_cv_search_socket+:} false; then : |
---|
12192 | |
---|
12193 | else |
---|
12194 | ac_cv_search_socket=no |
---|
12195 | fi |
---|
12196 | rm conftest.$ac_ext |
---|
12197 | LIBS=$ac_func_search_save_LIBS |
---|
12198 | fi |
---|
12199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
---|
12200 | $as_echo "$ac_cv_search_socket" >&6; } |
---|
12201 | ac_res=$ac_cv_search_socket |
---|
12202 | if test "$ac_res" != no; then : |
---|
12203 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
---|
12204 | ds_netlibs_success=yes |
---|
12205 | else |
---|
12206 | ds_netlibs_success=no |
---|
12207 | fi |
---|
12208 | |
---|
12209 | fi |
---|
12210 | |
---|
12211 | ds_netlibs_netlibs="$LIBS" |
---|
12212 | LIBS="$ds_netlibs_save_LIBS" |
---|
12213 | |
---|
12214 | |
---|
12215 | |
---|
12216 | |
---|
12217 | |
---|
12218 | if test x"$ds_netlibs_success" = xyes |
---|
12219 | then |
---|
12220 | NETLIBS="$ds_netlibs_netlibs" |
---|
12221 | success=yes |
---|
12222 | else |
---|
12223 | success=no |
---|
12224 | fi |
---|
12225 | |
---|
12226 | if test x"$success" != xyes |
---|
12227 | then |
---|
12228 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
12229 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
12230 | as_fn_error $? "required libraries are not found or not usable |
---|
12231 | See \`config.log' for more details" "$LINENO" 5; } |
---|
12232 | fi |
---|
12233 | |
---|
12234 | |
---|
12235 | # |
---|
12236 | # Dynamic linker libraries (usually -ldl) |
---|
12237 | # |
---|
12238 | |
---|
12239 | |
---|
12240 | |
---|
12241 | |
---|
12242 | |
---|
12243 | ds_dllibs_save_LIBS="$LIBS" |
---|
12244 | LIBS='' |
---|
12245 | ds_dllibs_success=yes |
---|
12246 | |
---|
12247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
---|
12248 | $as_echo_n "checking for library containing dlopen... " >&6; } |
---|
12249 | if ${ac_cv_search_dlopen+:} false; then : |
---|
12250 | $as_echo_n "(cached) " >&6 |
---|
12251 | else |
---|
12252 | ac_func_search_save_LIBS=$LIBS |
---|
12253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
12254 | /* end confdefs.h. */ |
---|
12255 | |
---|
12256 | /* Override any GCC internal prototype to avoid an error. |
---|
12257 | Use char because int might match the return type of a GCC |
---|
12258 | builtin and then its argument prototype would still apply. */ |
---|
12259 | #ifdef __cplusplus |
---|
12260 | extern "C" |
---|
12261 | #endif |
---|
12262 | char dlopen (); |
---|
12263 | int |
---|
12264 | main () |
---|
12265 | { |
---|
12266 | return dlopen (); |
---|
12267 | ; |
---|
12268 | return 0; |
---|
12269 | } |
---|
12270 | _ACEOF |
---|
12271 | for ac_lib in '' dl; do |
---|
12272 | if test -z "$ac_lib"; then |
---|
12273 | ac_res="none required" |
---|
12274 | else |
---|
12275 | ac_res=-l$ac_lib |
---|
12276 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
12277 | fi |
---|
12278 | if ac_fn_c_try_link "$LINENO"; then : |
---|
12279 | ac_cv_search_dlopen=$ac_res |
---|
12280 | fi |
---|
12281 | rm -f core conftest.err conftest.$ac_objext \ |
---|
12282 | conftest$ac_exeext |
---|
12283 | if ${ac_cv_search_dlopen+:} false; then : |
---|
12284 | break |
---|
12285 | fi |
---|
12286 | done |
---|
12287 | if ${ac_cv_search_dlopen+:} false; then : |
---|
12288 | |
---|
12289 | else |
---|
12290 | ac_cv_search_dlopen=no |
---|
12291 | fi |
---|
12292 | rm conftest.$ac_ext |
---|
12293 | LIBS=$ac_func_search_save_LIBS |
---|
12294 | fi |
---|
12295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
---|
12296 | $as_echo "$ac_cv_search_dlopen" >&6; } |
---|
12297 | ac_res=$ac_cv_search_dlopen |
---|
12298 | if test "$ac_res" != no; then : |
---|
12299 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
---|
12300 | ds_dllibs_success=yes |
---|
12301 | else |
---|
12302 | ds_dllibs_success=no |
---|
12303 | fi |
---|
12304 | |
---|
12305 | |
---|
12306 | ds_dllibs_dllibs="$LIBS" |
---|
12307 | LIBS="$ds_dllibs_save_LIBS" |
---|
12308 | |
---|
12309 | |
---|
12310 | |
---|
12311 | |
---|
12312 | |
---|
12313 | if test x"$ds_dllibs_success" = xyes |
---|
12314 | then |
---|
12315 | DLLIBS="$ds_dllibs_dllibs" |
---|
12316 | success=yes |
---|
12317 | else |
---|
12318 | success=no |
---|
12319 | fi |
---|
12320 | |
---|
12321 | if test x"$success" != xyes |
---|
12322 | then |
---|
12323 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
12324 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
12325 | as_fn_error $? "required libraries are not found or not usable |
---|
12326 | See \`config.log' for more details" "$LINENO" 5; } |
---|
12327 | fi |
---|
12328 | |
---|
12329 | |
---|
12330 | #--------------------------------------------------------- |
---|
12331 | # DSPAM features |
---|
12332 | # |
---|
12333 | |
---|
12334 | # |
---|
12335 | # SPLIT_CONFIG -- enable split configuration file support |
---|
12336 | # |
---|
12337 | |
---|
12338 | |
---|
12339 | # Check whether --enable-split-configuration was given. |
---|
12340 | if test "${enable_split_configuration+set}" = set; then : |
---|
12341 | enableval=$enable_split_configuration; |
---|
12342 | fi |
---|
12343 | |
---|
12344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable split configuration file support" >&5 |
---|
12345 | $as_echo_n "checking whether to enable split configuration file support... " >&6; } |
---|
12346 | case x"$enable_split_configuration" in |
---|
12347 | xyes) # split configuration file enabled explicity |
---|
12348 | ;; |
---|
12349 | xno) # split configuration file disabled explicity |
---|
12350 | ;; |
---|
12351 | x) # split configuration file disabled by default |
---|
12352 | enable_split_configuration=no |
---|
12353 | ;; |
---|
12354 | *) as_fn_error $? "unexpected value $enable_split_configuration for --{enable,disable}-split-configuration configure option" "$LINENO" 5 |
---|
12355 | ;; |
---|
12356 | esac |
---|
12357 | if test x"$enable_split_configuration" != xyes |
---|
12358 | then |
---|
12359 | enable_split_configuration=no |
---|
12360 | else |
---|
12361 | enable_split_configuration=yes # overkill, but convenient |
---|
12362 | |
---|
12363 | $as_echo "#define SPLIT_CONFIG 1" >>confdefs.h |
---|
12364 | |
---|
12365 | fi |
---|
12366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_split_configuration" >&5 |
---|
12367 | $as_echo "$enable_split_configuration" >&6; } |
---|
12368 | |
---|
12369 | |
---|
12370 | # |
---|
12371 | # EXT_LOOKUP -- enable external user lookup |
---|
12372 | # |
---|
12373 | |
---|
12374 | |
---|
12375 | # Check whether --enable-external-lookup was given. |
---|
12376 | if test "${enable_external_lookup+set}" = set; then : |
---|
12377 | enableval=$enable_external_lookup; |
---|
12378 | fi |
---|
12379 | |
---|
12380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable external lookup support" >&5 |
---|
12381 | $as_echo_n "checking whether to enable external lookup support... " >&6; } |
---|
12382 | case x"$enable_external_lookup" in |
---|
12383 | xyes) # external lookup enabled explicity |
---|
12384 | ;; |
---|
12385 | xno) # external lookup disabled explicity |
---|
12386 | ;; |
---|
12387 | x) # external lookup disabled by default |
---|
12388 | enable_external_lookup=no |
---|
12389 | ;; |
---|
12390 | *) as_fn_error $? "unexpected value $enable_external_lookup for --{enable,disable}-external-lookup configure option" "$LINENO" 5 |
---|
12391 | ;; |
---|
12392 | esac |
---|
12393 | if test x"$enable_external_lookup" != xyes |
---|
12394 | then |
---|
12395 | enable_external_lookup=no |
---|
12396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_external_lookup" >&5 |
---|
12397 | $as_echo "$enable_external_lookup" >&6; } |
---|
12398 | else |
---|
12399 | enable_external_lookup=yes # overkill, but convenient |
---|
12400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_external_lookup" >&5 |
---|
12401 | $as_echo "$enable_external_lookup" >&6; } |
---|
12402 | |
---|
12403 | $as_echo "#define EXT_LOOKUP 1" >>confdefs.h |
---|
12404 | |
---|
12405 | |
---|
12406 | # Check for LDAP and LDAP version |
---|
12407 | for ac_header in lber.h ldap.h |
---|
12408 | do : |
---|
12409 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
12410 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
12411 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
12412 | cat >>confdefs.h <<_ACEOF |
---|
12413 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
12414 | _ACEOF |
---|
12415 | |
---|
12416 | fi |
---|
12417 | |
---|
12418 | done |
---|
12419 | |
---|
12420 | if test x"$ac_cv_header_ldap_h" = "xyes" -a x"$ac_cv_header_lber_h" = "xyes" |
---|
12421 | then |
---|
12422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_alloc in -llber" >&5 |
---|
12423 | $as_echo_n "checking for ber_alloc in -llber... " >&6; } |
---|
12424 | if ${ac_cv_lib_lber_ber_alloc+:} false; then : |
---|
12425 | $as_echo_n "(cached) " >&6 |
---|
12426 | else |
---|
12427 | ac_check_lib_save_LIBS=$LIBS |
---|
12428 | LIBS="-llber $LIBS" |
---|
12429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
12430 | /* end confdefs.h. */ |
---|
12431 | |
---|
12432 | /* Override any GCC internal prototype to avoid an error. |
---|
12433 | Use char because int might match the return type of a GCC |
---|
12434 | builtin and then its argument prototype would still apply. */ |
---|
12435 | #ifdef __cplusplus |
---|
12436 | extern "C" |
---|
12437 | #endif |
---|
12438 | char ber_alloc (); |
---|
12439 | int |
---|
12440 | main () |
---|
12441 | { |
---|
12442 | return ber_alloc (); |
---|
12443 | ; |
---|
12444 | return 0; |
---|
12445 | } |
---|
12446 | _ACEOF |
---|
12447 | if ac_fn_c_try_link "$LINENO"; then : |
---|
12448 | ac_cv_lib_lber_ber_alloc=yes |
---|
12449 | else |
---|
12450 | ac_cv_lib_lber_ber_alloc=no |
---|
12451 | fi |
---|
12452 | rm -f core conftest.err conftest.$ac_objext \ |
---|
12453 | conftest$ac_exeext conftest.$ac_ext |
---|
12454 | LIBS=$ac_check_lib_save_LIBS |
---|
12455 | fi |
---|
12456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_alloc" >&5 |
---|
12457 | $as_echo "$ac_cv_lib_lber_ber_alloc" >&6; } |
---|
12458 | if test "x$ac_cv_lib_lber_ber_alloc" = xyes; then : |
---|
12459 | |
---|
12460 | $as_echo "#define HAVE_LIBLBER 1" >>confdefs.h |
---|
12461 | |
---|
12462 | fi |
---|
12463 | |
---|
12464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -lldap" >&5 |
---|
12465 | $as_echo_n "checking for ldap_init in -lldap... " >&6; } |
---|
12466 | if ${ac_cv_lib_ldap_ldap_init+:} false; then : |
---|
12467 | $as_echo_n "(cached) " >&6 |
---|
12468 | else |
---|
12469 | ac_check_lib_save_LIBS=$LIBS |
---|
12470 | LIBS="-lldap $LIBS" |
---|
12471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
12472 | /* end confdefs.h. */ |
---|
12473 | |
---|
12474 | /* Override any GCC internal prototype to avoid an error. |
---|
12475 | Use char because int might match the return type of a GCC |
---|
12476 | builtin and then its argument prototype would still apply. */ |
---|
12477 | #ifdef __cplusplus |
---|
12478 | extern "C" |
---|
12479 | #endif |
---|
12480 | char ldap_init (); |
---|
12481 | int |
---|
12482 | main () |
---|
12483 | { |
---|
12484 | return ldap_init (); |
---|
12485 | ; |
---|
12486 | return 0; |
---|
12487 | } |
---|
12488 | _ACEOF |
---|
12489 | if ac_fn_c_try_link "$LINENO"; then : |
---|
12490 | ac_cv_lib_ldap_ldap_init=yes |
---|
12491 | else |
---|
12492 | ac_cv_lib_ldap_ldap_init=no |
---|
12493 | fi |
---|
12494 | rm -f core conftest.err conftest.$ac_objext \ |
---|
12495 | conftest$ac_exeext conftest.$ac_ext |
---|
12496 | LIBS=$ac_check_lib_save_LIBS |
---|
12497 | fi |
---|
12498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_init" >&5 |
---|
12499 | $as_echo "$ac_cv_lib_ldap_ldap_init" >&6; } |
---|
12500 | if test "x$ac_cv_lib_ldap_ldap_init" = xyes; then : |
---|
12501 | |
---|
12502 | $as_echo "#define HAVE_LIBLDAP 1" >>confdefs.h |
---|
12503 | |
---|
12504 | fi |
---|
12505 | |
---|
12506 | fi |
---|
12507 | if test x"$ac_cv_lib_lber_ber_alloc" = "xyes" -a x"$ac_cv_lib_ldap_ldap_init" = "xyes" |
---|
12508 | then |
---|
12509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenLDAP version >= 2.2.0" >&5 |
---|
12510 | $as_echo_n "checking for OpenLDAP version >= 2.2.0... " >&6; } |
---|
12511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
12512 | /* end confdefs.h. */ |
---|
12513 | |
---|
12514 | |
---|
12515 | #include <lber.h> |
---|
12516 | #include <ldap.h> |
---|
12517 | |
---|
12518 | int |
---|
12519 | main () |
---|
12520 | { |
---|
12521 | |
---|
12522 | LDAPAPIInfo info; |
---|
12523 | #ifdef LDAP_API_INFO_VERSION |
---|
12524 | info.ldapai_info_version = LDAP_API_INFO_VERSION; |
---|
12525 | #else |
---|
12526 | info.ldapai_info_version = 1; |
---|
12527 | #endif |
---|
12528 | if(ldap_get_option(NULL, LDAP_OPT_API_INFO, &info) != LDAP_SUCCESS) |
---|
12529 | return 1; |
---|
12530 | if(info.ldapai_vendor_version != LDAP_VENDOR_VERSION || LDAP_VENDOR_VERSION < 20204) |
---|
12531 | return 1; |
---|
12532 | return 0; |
---|
12533 | |
---|
12534 | ; |
---|
12535 | return 0; |
---|
12536 | } |
---|
12537 | |
---|
12538 | _ACEOF |
---|
12539 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
12540 | |
---|
12541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
12542 | $as_echo "yes" >&6; } |
---|
12543 | have_ldap_version=yes |
---|
12544 | |
---|
12545 | else |
---|
12546 | |
---|
12547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
12548 | $as_echo "no" >&6; } |
---|
12549 | have_ldap_version=no |
---|
12550 | |
---|
12551 | fi |
---|
12552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
12553 | fi |
---|
12554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable LDAP support in external lookup" >&5 |
---|
12555 | $as_echo_n "checking whether to enable LDAP support in external lookup... " >&6; } |
---|
12556 | if test x"$have_ldap_version" != "xyes" ; then |
---|
12557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
12558 | $as_echo "no" >&6; } |
---|
12559 | else |
---|
12560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
12561 | $as_echo "yes" >&6; } |
---|
12562 | external_lookup_libs="-lldap -llber" |
---|
12563 | |
---|
12564 | |
---|
12565 | $as_echo "#define USE_LDAP 1" >>confdefs.h |
---|
12566 | |
---|
12567 | fi |
---|
12568 | |
---|
12569 | fi |
---|
12570 | |
---|
12571 | |
---|
12572 | # |
---|
12573 | # DSPAM_HOME -- directory where pre-user dictionaries, signatures, |
---|
12574 | # etc. should be stored. |
---|
12575 | # |
---|
12576 | # This variable is AC_SUBST'ed, not AC_DEFINE'd because used not only |
---|
12577 | # for C-code, but for Makefile rules also. |
---|
12578 | # |
---|
12579 | ### dspam_home='$(prefix)/var/dspam' |
---|
12580 | dspam_home='$(prefix)/var/dspam' |
---|
12581 | |
---|
12582 | # Check whether --with-dspam_home was given. |
---|
12583 | if test "${with_dspam_home+set}" = set; then : |
---|
12584 | withval=$with_dspam_home; dspam_home="$withval" |
---|
12585 | fi |
---|
12586 | |
---|
12587 | |
---|
12588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dspam_home" >&5 |
---|
12589 | $as_echo_n "checking for dspam_home... " >&6; } |
---|
12590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dspam_home" >&5 |
---|
12591 | $as_echo "$dspam_home" >&6; } |
---|
12592 | |
---|
12593 | if test -d /var/dspam |
---|
12594 | then |
---|
12595 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the default location for dspam_home has changed. please be sure to update your configuration or filesystem to reflect this." >&5 |
---|
12596 | $as_echo "$as_me: WARNING: the default location for dspam_home has changed. please be sure to update your configuration or filesystem to reflect this." >&2;} |
---|
12597 | fi |
---|
12598 | |
---|
12599 | # DSPAM_HOME ownership |
---|
12600 | |
---|
12601 | # Check whether --with-dspam_home_mode was given. |
---|
12602 | if test "${with_dspam_home_mode+set}" = set; then : |
---|
12603 | withval=$with_dspam_home_mode; dspam_home_mode="$withval" |
---|
12604 | else |
---|
12605 | dspam_home_mode='770' |
---|
12606 | |
---|
12607 | fi |
---|
12608 | |
---|
12609 | |
---|
12610 | # Check whether --with-dspam_home_owner was given. |
---|
12611 | if test "${with_dspam_home_owner+set}" = set; then : |
---|
12612 | withval=$with_dspam_home_owner; dspam_home_owner="$withval" |
---|
12613 | else |
---|
12614 | dspam_home_owner='root' |
---|
12615 | |
---|
12616 | fi |
---|
12617 | |
---|
12618 | |
---|
12619 | # Check whether --with-dspam_home_group was given. |
---|
12620 | if test "${with_dspam_home_group+set}" = set; then : |
---|
12621 | withval=$with_dspam_home_group; dspam_home_group="$withval" |
---|
12622 | else |
---|
12623 | dspam_home_group='mail' |
---|
12624 | |
---|
12625 | fi |
---|
12626 | |
---|
12627 | |
---|
12628 | |
---|
12629 | |
---|
12630 | |
---|
12631 | |
---|
12632 | # Check whether --with-logfile was given. |
---|
12633 | if test "${with_logfile+set}" = set; then : |
---|
12634 | withval=$with_logfile; |
---|
12635 | cat >>confdefs.h <<_ACEOF |
---|
12636 | #define LOGFILE "$withval" |
---|
12637 | _ACEOF |
---|
12638 | |
---|
12639 | else |
---|
12640 | logfile='' |
---|
12641 | |
---|
12642 | fi |
---|
12643 | |
---|
12644 | |
---|
12645 | # dspam binary ownership |
---|
12646 | case x"$host" in |
---|
12647 | *-freebsd*) default_dspam_mode=4510;; |
---|
12648 | *) default_dspam_mode=2510;; |
---|
12649 | esac |
---|
12650 | |
---|
12651 | case "$host" in |
---|
12652 | *-linux*) LDFLAGS="$LDFLAGS -rdynamic";; |
---|
12653 | *-freebsd*) LDFLAGS="$LDFLAGS -rdynamic";; |
---|
12654 | esac |
---|
12655 | |
---|
12656 | |
---|
12657 | # Check whether --with-dspam_mode was given. |
---|
12658 | if test "${with_dspam_mode+set}" = set; then : |
---|
12659 | withval=$with_dspam_mode; dspam_mode="$withval" |
---|
12660 | else |
---|
12661 | dspam_mode="$default_dspam_mode" |
---|
12662 | |
---|
12663 | fi |
---|
12664 | |
---|
12665 | |
---|
12666 | # Check whether --with-dspam_owner was given. |
---|
12667 | if test "${with_dspam_owner+set}" = set; then : |
---|
12668 | withval=$with_dspam_owner; dspam_owner="$withval" |
---|
12669 | else |
---|
12670 | dspam_owner='root' |
---|
12671 | |
---|
12672 | fi |
---|
12673 | |
---|
12674 | |
---|
12675 | # Check whether --with-dspam_group was given. |
---|
12676 | if test "${with_dspam_group+set}" = set; then : |
---|
12677 | withval=$with_dspam_group; dspam_group="$withval" |
---|
12678 | else |
---|
12679 | dspam_group='mail' |
---|
12680 | |
---|
12681 | fi |
---|
12682 | |
---|
12683 | |
---|
12684 | |
---|
12685 | |
---|
12686 | |
---|
12687 | # |
---|
12688 | # Local delivery Agent |
---|
12689 | # |
---|
12690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which delivery agent to activate in dspam.conf" >&5 |
---|
12691 | $as_echo_n "checking which delivery agent to activate in dspam.conf... " >&6; } |
---|
12692 | default_delivery_agent="/usr/bin/procmail" |
---|
12693 | case "$host" in |
---|
12694 | *-linux*) default_delivery_agent="/usr/bin/procmail";; |
---|
12695 | *-freebsd*) default_delivery_agent="/usr/libexec/mail.local";; |
---|
12696 | *-solaris2*) default_delivery_agent="/usr/bin/mail";; |
---|
12697 | *-cygwin*) default_delivery_agent="/usr/bin/procmail";; |
---|
12698 | esac |
---|
12699 | |
---|
12700 | # Check whether --with-delivery_agent was given. |
---|
12701 | if test "${with_delivery_agent+set}" = set; then : |
---|
12702 | withval=$with_delivery_agent; delivery_agent="$withval" |
---|
12703 | else |
---|
12704 | delivery_agent="$default_delivery_agent" |
---|
12705 | |
---|
12706 | fi |
---|
12707 | |
---|
12708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $delivery_agent" >&5 |
---|
12709 | $as_echo "$delivery_agent" >&6; } |
---|
12710 | |
---|
12711 | |
---|
12712 | # |
---|
12713 | # Trusted User Security |
---|
12714 | # |
---|
12715 | # Check whether --enable-trusted_user_security was given. |
---|
12716 | if test "${enable_trusted_user_security+set}" = set; then : |
---|
12717 | enableval=$enable_trusted_user_security; |
---|
12718 | fi |
---|
12719 | |
---|
12720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable trusted user security" >&5 |
---|
12721 | $as_echo_n "checking whether to enable trusted user security... " >&6; } |
---|
12722 | case x"$enable_trusted_user_security" in |
---|
12723 | xyes) # trusted user security enabled explicity |
---|
12724 | ;; |
---|
12725 | xno) # trusted user security disabled explicity |
---|
12726 | enable_trusted_user_security=no |
---|
12727 | ;; |
---|
12728 | x) # trusted user security enabled by default |
---|
12729 | enable_trusted_user_security=yes |
---|
12730 | ;; |
---|
12731 | *) as_fn_error $? "unexpected value $enable_trusted_user_security for --{enable,disable}-trusted-user-security configure option" "$LINENO" 5 |
---|
12732 | ;; |
---|
12733 | esac |
---|
12734 | if test x"$enable_trusted_user_security" != xyes |
---|
12735 | then |
---|
12736 | enable_trusted_user_security=no |
---|
12737 | else |
---|
12738 | enable_trusted_user_security=yes # overkill, but convenient |
---|
12739 | |
---|
12740 | $as_echo "#define TRUSTED_USER_SECURITY 1" >>confdefs.h |
---|
12741 | |
---|
12742 | fi |
---|
12743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_trusted_user_security" >&5 |
---|
12744 | $as_echo "$enable_trusted_user_security" >&6; } |
---|
12745 | |
---|
12746 | # |
---|
12747 | # Clam/AV Support |
---|
12748 | # |
---|
12749 | # Check whether --enable-clamav was given. |
---|
12750 | if test "${enable_clamav+set}" = set; then : |
---|
12751 | enableval=$enable_clamav; |
---|
12752 | fi |
---|
12753 | |
---|
12754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable clamav" >&5 |
---|
12755 | $as_echo_n "checking whether to enable clamav... " >&6; } |
---|
12756 | case x"$enable_clamav" in |
---|
12757 | xyes) # clamav output enabled explicity |
---|
12758 | ;; |
---|
12759 | xno) # clamav output disabled explicity |
---|
12760 | ;; |
---|
12761 | x) # clamav output disabled by default |
---|
12762 | enable_clamav=no |
---|
12763 | ;; |
---|
12764 | *) as_fn_error $? "unexpected value $enable_clamav for --{enable,disable}-clamav configure option" "$LINENO" 5 |
---|
12765 | ;; |
---|
12766 | esac |
---|
12767 | if test x"$enable_clamav" != xyes |
---|
12768 | then |
---|
12769 | enable_clamav=no |
---|
12770 | else |
---|
12771 | enable_clamav=yes # overkill, but convenient |
---|
12772 | |
---|
12773 | $as_echo "#define CLAMAV 1" >>confdefs.h |
---|
12774 | |
---|
12775 | fi |
---|
12776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_clamav" >&5 |
---|
12777 | $as_echo "$enable_clamav" >&6; } |
---|
12778 | |
---|
12779 | # |
---|
12780 | # Debug support |
---|
12781 | # |
---|
12782 | # Check whether --enable-debug was given. |
---|
12783 | if test "${enable_debug+set}" = set; then : |
---|
12784 | enableval=$enable_debug; |
---|
12785 | fi |
---|
12786 | |
---|
12787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug output" >&5 |
---|
12788 | $as_echo_n "checking whether to enable debug output... " >&6; } |
---|
12789 | case x"$enable_debug" in |
---|
12790 | xyes) # debug output enabled explicity |
---|
12791 | ;; |
---|
12792 | xno) # debug output disabled explicity |
---|
12793 | ;; |
---|
12794 | x) # debug output disabled by default |
---|
12795 | enable_debug=no |
---|
12796 | ;; |
---|
12797 | *) as_fn_error $? "unexpected value $enable_debug for --{enable,disable}-debug configure option" "$LINENO" 5 |
---|
12798 | ;; |
---|
12799 | esac |
---|
12800 | if test x"$enable_debug" != xyes |
---|
12801 | then |
---|
12802 | enable_debug=no |
---|
12803 | else |
---|
12804 | enable_debug=yes # overkill, but convenient |
---|
12805 | |
---|
12806 | $as_echo "#define DEBUG 1" >>confdefs.h |
---|
12807 | |
---|
12808 | fi |
---|
12809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 |
---|
12810 | $as_echo "$enable_debug" >&6; } |
---|
12811 | |
---|
12812 | # |
---|
12813 | # Enable syslog |
---|
12814 | # |
---|
12815 | # Check whether --enable-syslog was given. |
---|
12816 | if test "${enable_syslog+set}" = set; then : |
---|
12817 | enableval=$enable_syslog; |
---|
12818 | fi |
---|
12819 | |
---|
12820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable syslog output" >&5 |
---|
12821 | $as_echo_n "checking whether to enable syslog output... " >&6; } |
---|
12822 | case x"$enable_syslog" in |
---|
12823 | xyes) # enabled explicity |
---|
12824 | ;; |
---|
12825 | xno) # disabled explicity |
---|
12826 | ;; |
---|
12827 | x) # enabled by default |
---|
12828 | enable_syslog=yes |
---|
12829 | ;; |
---|
12830 | *) as_fn_error $? "unexpected value $enable_syslog for --{enable,disable}-syslog configure option" "$LINENO" 5 |
---|
12831 | ;; |
---|
12832 | esac |
---|
12833 | if test x"$enable_syslog" != xyes |
---|
12834 | then |
---|
12835 | enable_syslog=no |
---|
12836 | else |
---|
12837 | enable_syslog=yes # overkill, but convenient |
---|
12838 | |
---|
12839 | $as_echo "#define USE_SYSLOG 1" >>confdefs.h |
---|
12840 | |
---|
12841 | fi |
---|
12842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_syslog" >&5 |
---|
12843 | $as_echo "$enable_syslog" >&6; } |
---|
12844 | |
---|
12845 | # |
---|
12846 | # BNR Debug |
---|
12847 | # |
---|
12848 | # Check whether --enable-bnr-debug was given. |
---|
12849 | if test "${enable_bnr_debug+set}" = set; then : |
---|
12850 | enableval=$enable_bnr_debug; |
---|
12851 | fi |
---|
12852 | |
---|
12853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug output for BNR" >&5 |
---|
12854 | $as_echo_n "checking whether to enable debug output for BNR... " >&6; } |
---|
12855 | case x"$enable_bnr_debug" in |
---|
12856 | xyes) # enabled explicity |
---|
12857 | ;; |
---|
12858 | xno) # disabled explicity |
---|
12859 | ;; |
---|
12860 | x) # disabled by default |
---|
12861 | enable_bnr_debug=no |
---|
12862 | ;; |
---|
12863 | *) as_fn_error $? "unexpected value $enable_bnr_debug for --{enable,disable}-bnr-debug configure option" "$LINENO" 5 |
---|
12864 | ;; |
---|
12865 | esac |
---|
12866 | if test x"$enable_bnr_debug" != xyes |
---|
12867 | then |
---|
12868 | enable_bnr_debug=no |
---|
12869 | else |
---|
12870 | enable_bnr_debug=yes # overkill, but convenient |
---|
12871 | |
---|
12872 | $as_echo "#define LIBBNR_DEBUG 1" >>confdefs.h |
---|
12873 | |
---|
12874 | fi |
---|
12875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_bnr_debug" >&5 |
---|
12876 | $as_echo "$enable_bnr_debug" >&6; } |
---|
12877 | |
---|
12878 | |
---|
12879 | # |
---|
12880 | # Homedir support |
---|
12881 | # |
---|
12882 | # Check whether --enable-homedir was given. |
---|
12883 | if test "${enable_homedir+set}" = set; then : |
---|
12884 | enableval=$enable_homedir; |
---|
12885 | fi |
---|
12886 | |
---|
12887 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable home directory support" >&5 |
---|
12888 | $as_echo_n "checking whether to enable home directory support... " >&6; } |
---|
12889 | case x"$enable_homedir" in |
---|
12890 | xyes) # homedir enabled explicity |
---|
12891 | ;; |
---|
12892 | xno) # homedir disabled explicity |
---|
12893 | ;; |
---|
12894 | x) # homedir disabled by default |
---|
12895 | enable_homedir=no |
---|
12896 | ;; |
---|
12897 | *) as_fn_error $? "unexpected value $enable_homedir for --{enable,disable}-homedir configure option" "$LINENO" 5 |
---|
12898 | ;; |
---|
12899 | esac |
---|
12900 | if test x"$enable_homedir" != xyes |
---|
12901 | then |
---|
12902 | enable_homedir=no |
---|
12903 | else |
---|
12904 | enable_homedir=yes # overkill, but convenient |
---|
12905 | |
---|
12906 | $as_echo "#define HOMEDIR 1" >>confdefs.h |
---|
12907 | |
---|
12908 | fi |
---|
12909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_homedir" >&5 |
---|
12910 | $as_echo "$enable_homedir" >&6; } |
---|
12911 | |
---|
12912 | # |
---|
12913 | # MySQL4 Initialization |
---|
12914 | # |
---|
12915 | # Check whether --enable-mysql4-initialization was given. |
---|
12916 | if test "${enable_mysql4_initialization+set}" = set; then : |
---|
12917 | enableval=$enable_mysql4_initialization; |
---|
12918 | fi |
---|
12919 | |
---|
12920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable MySQL client initialization" >&5 |
---|
12921 | $as_echo_n "checking whether to enable MySQL client initialization... " >&6; } |
---|
12922 | case x"$enable_mysql4_initialization" in |
---|
12923 | xyes) # enabled explicity |
---|
12924 | enable_mysql4_initialization=yes |
---|
12925 | ;; |
---|
12926 | xno) # disabled explicity |
---|
12927 | enable_mysql4_initialization=no |
---|
12928 | ;; |
---|
12929 | x) # disabled by default |
---|
12930 | enable_mysql4_initialization=yes |
---|
12931 | ;; |
---|
12932 | *) as_fn_error $? "unexpected value $enable_mysql4_initialization for --{enable,disable}-mysql4-initialization configure option" "$LINENO" 5 |
---|
12933 | ;; |
---|
12934 | esac |
---|
12935 | if test x"$enable_mysql4_initialization" != xyes |
---|
12936 | then |
---|
12937 | enable_mysql4_initialization=no |
---|
12938 | else |
---|
12939 | enable_mysql4_initialization=yes # overkill, but convenient |
---|
12940 | |
---|
12941 | $as_echo "#define MYSQL4_INITIALIZATION 1" >>confdefs.h |
---|
12942 | |
---|
12943 | fi |
---|
12944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mysql4_initialization" >&5 |
---|
12945 | $as_echo "$enable_mysql4_initialization" >&6; } |
---|
12946 | |
---|
12947 | # |
---|
12948 | # Preferences Extension |
---|
12949 | # For storage drivers with preferences extension, the driver's extension is |
---|
12950 | # used instead of the built-in file-based function |
---|
12951 | # |
---|
12952 | # Check whether --enable-preferences-extension was given. |
---|
12953 | if test "${enable_preferences_extension+set}" = set; then : |
---|
12954 | enableval=$enable_preferences_extension; |
---|
12955 | fi |
---|
12956 | |
---|
12957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable preferences-extension" >&5 |
---|
12958 | $as_echo_n "checking whether to enable preferences-extension... " >&6; } |
---|
12959 | case x"$enable_preferences_extension" in |
---|
12960 | xyes) # enabled explicity |
---|
12961 | ;; |
---|
12962 | xno) # disabled explicity |
---|
12963 | ;; |
---|
12964 | x) # disabled by default |
---|
12965 | enable_preferences_extension=no |
---|
12966 | ;; |
---|
12967 | *) as_fn_error $? "unexpected value $enable_preferences_extension for --{enable,disable}-preferences-extension configure option" "$LINENO" 5 |
---|
12968 | ;; |
---|
12969 | esac |
---|
12970 | if test x"$enable_preferences_extension" != xyes |
---|
12971 | then |
---|
12972 | enable_preferences_extension=no |
---|
12973 | else |
---|
12974 | enable_preferences_extension=yes # overkill, but convenient |
---|
12975 | |
---|
12976 | $as_echo "#define PREFERENCES_EXTENSION 1" >>confdefs.h |
---|
12977 | |
---|
12978 | fi |
---|
12979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_preferences_extension" >&5 |
---|
12980 | $as_echo "$enable_preferences_extension" >&6; } |
---|
12981 | |
---|
12982 | # |
---|
12983 | # Verbose debug output |
---|
12984 | # |
---|
12985 | # Check whether --enable-verbose-debug was given. |
---|
12986 | if test "${enable_verbose_debug+set}" = set; then : |
---|
12987 | enableval=$enable_verbose_debug; |
---|
12988 | fi |
---|
12989 | |
---|
12990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose debug output" >&5 |
---|
12991 | $as_echo_n "checking whether to enable verbose debug output... " >&6; } |
---|
12992 | case x"$enable_verbose_debug" in |
---|
12993 | xyes) # debug output enabled explicity |
---|
12994 | ;; |
---|
12995 | xno) # debug output disabled explicity |
---|
12996 | ;; |
---|
12997 | x) # debug output disabled by default |
---|
12998 | enable_verbose_debug=no |
---|
12999 | ;; |
---|
13000 | *) as_fn_error $? "unexpected value $enable_verbose_debug for --{enable,disable}-verbose-debug configure option" "$LINENO" 5 |
---|
13001 | ;; |
---|
13002 | esac |
---|
13003 | if test x"$enable_verbose_debug" != xyes |
---|
13004 | then |
---|
13005 | enable_verbose_debug=no |
---|
13006 | else |
---|
13007 | enable_verbose_debug=yes # overkill, but convenient |
---|
13008 | |
---|
13009 | $as_echo "#define DEBUG 1" >>confdefs.h |
---|
13010 | |
---|
13011 | |
---|
13012 | $as_echo "#define VERBOSE 1" >>confdefs.h |
---|
13013 | |
---|
13014 | fi |
---|
13015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_verbose_debug" >&5 |
---|
13016 | $as_echo "$enable_verbose_debug" >&6; } |
---|
13017 | |
---|
13018 | # |
---|
13019 | # Long Usernames |
---|
13020 | # |
---|
13021 | # Check whether --enable-long-usernames was given. |
---|
13022 | if test "${enable_long_usernames+set}" = set; then : |
---|
13023 | enableval=$enable_long_usernames; |
---|
13024 | fi |
---|
13025 | |
---|
13026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable long usernames" >&5 |
---|
13027 | $as_echo_n "checking whether to enable long usernames... " >&6; } |
---|
13028 | case x"$enable_long_usernames" in |
---|
13029 | xyes) # debug output enabled explicity |
---|
13030 | ;; |
---|
13031 | xno) # debug output disabled explicity |
---|
13032 | ;; |
---|
13033 | x) # debug output disabled by default |
---|
13034 | enable_long_usernames=no |
---|
13035 | ;; |
---|
13036 | *) as_fn_error $? "unexpected value $enable_long_usernames for --{enable,disable}-long-usernames configure option" "$LINENO" 5 |
---|
13037 | ;; |
---|
13038 | esac |
---|
13039 | if test x"$enable_long_usernames" != xyes |
---|
13040 | then |
---|
13041 | enable_long_usernames=no |
---|
13042 | else |
---|
13043 | enable_long_usernames=yes # overkill, but convenient |
---|
13044 | |
---|
13045 | $as_echo "#define LONG_USERNAMES 1" >>confdefs.h |
---|
13046 | |
---|
13047 | fi |
---|
13048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_long_usernames" >&5 |
---|
13049 | $as_echo "$enable_long_usernames" >&6; } |
---|
13050 | |
---|
13051 | # |
---|
13052 | # Large scale implementation |
---|
13053 | # |
---|
13054 | # Check whether --enable-large-scale was given. |
---|
13055 | if test "${enable_large_scale+set}" = set; then : |
---|
13056 | enableval=$enable_large_scale; |
---|
13057 | fi |
---|
13058 | |
---|
13059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large scale implementation" >&5 |
---|
13060 | $as_echo_n "checking whether to enable large scale implementation... " >&6; } |
---|
13061 | case x"$enable_large_scale" in |
---|
13062 | xyes) # large-scale enabled explicitly |
---|
13063 | ;; |
---|
13064 | xno) # large-scale disabled explicitly |
---|
13065 | ;; |
---|
13066 | x) # large-scale disabled by default |
---|
13067 | enable_large_scale=no |
---|
13068 | ;; |
---|
13069 | *) as_fn_error $? "unexpected value $enable_large_scale for --{enable,disable}-large-scale configure option" "$LINENO" 5 |
---|
13070 | ;; |
---|
13071 | esac |
---|
13072 | if test x"$enable_large_scale" != xyes |
---|
13073 | then |
---|
13074 | enable_large_scale=no |
---|
13075 | else |
---|
13076 | enable_large_scale=yes # overkill, but convenient |
---|
13077 | |
---|
13078 | $as_echo "#define LARGESCALE 1" >>confdefs.h |
---|
13079 | |
---|
13080 | fi |
---|
13081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_large_scale" >&5 |
---|
13082 | $as_echo "$enable_large_scale" >&6; } |
---|
13083 | |
---|
13084 | # |
---|
13085 | # Domain Scale Filesystem |
---|
13086 | # |
---|
13087 | # Check whether --enable-domain-scale was given. |
---|
13088 | if test "${enable_domain_scale+set}" = set; then : |
---|
13089 | enableval=$enable_domain_scale; |
---|
13090 | fi |
---|
13091 | |
---|
13092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable domain structure implementation" >&5 |
---|
13093 | $as_echo_n "checking whether to enable domain structure implementation... " >&6; } |
---|
13094 | case x"$enable_domain_scale" in |
---|
13095 | xyes) # domain-scale enabled explicitly |
---|
13096 | ;; |
---|
13097 | xno) # domain-scale disabled explicitly |
---|
13098 | ;; |
---|
13099 | x) # domain-scale disabled by default |
---|
13100 | enable_domain_scale=no |
---|
13101 | ;; |
---|
13102 | *) as_fn_error $? "unexpected value $enable_domain_scale for --{enable,disable}-domain-scale configure option" "$LINENO" 5 |
---|
13103 | ;; |
---|
13104 | esac |
---|
13105 | if test x"$enable_domain_scale" != xyes |
---|
13106 | then |
---|
13107 | enable_domain_scale=no |
---|
13108 | else |
---|
13109 | enable_domain_scale=yes # overkill, but convenient |
---|
13110 | |
---|
13111 | $as_echo "#define DOMAINSCALE 1" >>confdefs.h |
---|
13112 | |
---|
13113 | fi |
---|
13114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_domain_scale" >&5 |
---|
13115 | $as_echo "$enable_domain_scale" >&6; } |
---|
13116 | |
---|
13117 | if test x"$enable_domain_scale$enable_large_scale" = xyesyes |
---|
13118 | then |
---|
13119 | as_fn_error $? "you may not have domain-scale and large-scale implemented simultaneously" "$LINENO" 5 |
---|
13120 | elif test x"$enable_domain_scale$enable_homedir" = xyesyes |
---|
13121 | then |
---|
13122 | as_fn_error $? "you may not have domain-scale and homedir implemented simultaneously" "$LINENO" 5 |
---|
13123 | elif test x"$enable_large_scale$enable_homedir" = xyesyes |
---|
13124 | then |
---|
13125 | as_fn_error $? "you may not have large-scale and homedir implemented simultaneously" "$LINENO" 5 |
---|
13126 | fi |
---|
13127 | |
---|
13128 | # |
---|
13129 | # Log Directory |
---|
13130 | # |
---|
13131 | |
---|
13132 | logdir="$dspam_home/log" |
---|
13133 | |
---|
13134 | # Check whether --with-logdir was given. |
---|
13135 | if test "${with_logdir+set}" = set; then : |
---|
13136 | withval=$with_logdir; logdir="$withval" |
---|
13137 | fi |
---|
13138 | |
---|
13139 | |
---|
13140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logdir" >&5 |
---|
13141 | $as_echo_n "checking for logdir... " >&6; } |
---|
13142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logdir" >&5 |
---|
13143 | $as_echo "$logdir" >&6; } |
---|
13144 | |
---|
13145 | #--------------------------------------------------------- |
---|
13146 | # storage driver selection |
---|
13147 | storagedrv=hash_drv |
---|
13148 | storage_drv_subdirs="" |
---|
13149 | active_driver="" |
---|
13150 | static_driver=yes |
---|
13151 | |
---|
13152 | # Check whether --with-storage-driver was given. |
---|
13153 | if test "${with_storage_driver+set}" = set; then : |
---|
13154 | withval=$with_storage_driver; storagedrv="$withval" |
---|
13155 | fi |
---|
13156 | |
---|
13157 | |
---|
13158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which storage drivers to build" >&5 |
---|
13159 | $as_echo_n "checking which storage drivers to build... " >&6; } |
---|
13160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $storagedrv" >&5 |
---|
13161 | $as_echo "$storagedrv" >&6; } |
---|
13162 | |
---|
13163 | #--------------------------------------------------------- |
---|
13164 | # Libraries for storage drivers |
---|
13165 | # |
---|
13166 | |
---|
13167 | ac_save_IFS=$IFS; IFS=, |
---|
13168 | for drv in $storagedrv; do |
---|
13169 | IFS=$ac_save_IFS |
---|
13170 | |
---|
13171 | if test x"$active_driver" = x |
---|
13172 | then |
---|
13173 | active_driver=$drv |
---|
13174 | |
---|
13175 | else |
---|
13176 | static_driver=no |
---|
13177 | fi |
---|
13178 | |
---|
13179 | if test x"$drv" = xhash_drv |
---|
13180 | then |
---|
13181 | hash_drv=yes |
---|
13182 | storage_drv_subdirs="$storage_drv_subdirs tools.hash_drv" |
---|
13183 | fi |
---|
13184 | |
---|
13185 | if test x"$drv" = xmysql_drv |
---|
13186 | then |
---|
13187 | |
---|
13188 | mysql_save_CPPFLAGS="$CPPFLAGS" |
---|
13189 | mysql_save_LDFLAGS="$LDFLAGS" |
---|
13190 | mysql_save_LIBS="$LIBS" |
---|
13191 | |
---|
13192 | mysql_CPPFLAGS='' |
---|
13193 | mysql_LIBS='' |
---|
13194 | |
---|
13195 | mysql_success=yes |
---|
13196 | |
---|
13197 | |
---|
13198 | mysql_headers_save_CPPFLAGS="$CPPFLAGS" |
---|
13199 | mysql_headers_CPPFLAGS='' |
---|
13200 | mysql_headers_success=yes |
---|
13201 | |
---|
13202 | # |
---|
13203 | # virtual users |
---|
13204 | # |
---|
13205 | # Check whether --enable-virtual-users was given. |
---|
13206 | if test "${enable_virtual_users+set}" = set; then : |
---|
13207 | enableval=$enable_virtual_users; |
---|
13208 | fi |
---|
13209 | |
---|
13210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable virtual users" >&5 |
---|
13211 | $as_echo_n "checking whether to enable virtual users... " >&6; } |
---|
13212 | case x"$enable_virtual_users" in |
---|
13213 | xyes) # enabled explicity |
---|
13214 | ;; |
---|
13215 | xno) # disabled explicity |
---|
13216 | ;; |
---|
13217 | x) # disabled by default |
---|
13218 | enable_virtual_users=no |
---|
13219 | ;; |
---|
13220 | *) as_fn_error $? "unexpected value $enable_virtual_users for --{enable,disable}-virtual-users configure option" "$LINENO" 5 |
---|
13221 | ;; |
---|
13222 | esac |
---|
13223 | if test x"$enable_virtual_users" != xyes |
---|
13224 | then |
---|
13225 | enable_virtual_users=no |
---|
13226 | else |
---|
13227 | enable_virtual_users=yes # overkill, but convenient |
---|
13228 | |
---|
13229 | $as_echo "#define VIRTUAL_USERS 1" >>confdefs.h |
---|
13230 | |
---|
13231 | fi |
---|
13232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_virtual_users" >&5 |
---|
13233 | $as_echo "$enable_virtual_users" >&6; } |
---|
13234 | |
---|
13235 | |
---|
13236 | |
---|
13237 | # Check whether --with-mysql-includes was given. |
---|
13238 | if test "${with_mysql_includes+set}" = set; then : |
---|
13239 | withval=$with_mysql_includes; |
---|
13240 | fi |
---|
13241 | |
---|
13242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find MySQL headers" >&5 |
---|
13243 | $as_echo_n "checking where to find MySQL headers... " >&6; } |
---|
13244 | if test x"$with_mysql_includes" = x |
---|
13245 | then |
---|
13246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiler default paths" >&5 |
---|
13247 | $as_echo "compiler default paths" >&6; } |
---|
13248 | else |
---|
13249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mysql_includes" >&5 |
---|
13250 | $as_echo "$with_mysql_includes" >&6; } |
---|
13251 | if test -d "$with_mysql_includes" |
---|
13252 | then |
---|
13253 | : |
---|
13254 | else |
---|
13255 | as_fn_error $? "required include path for mysql headers $with_mysql_includes is not a directory" "$LINENO" 5 |
---|
13256 | fi |
---|
13257 | mysql_headers_CPPFLAGS="-I$with_mysql_includes" |
---|
13258 | CPPFLAGS="$mysql_headers_CPPFLAGS $CPPFLAGS" |
---|
13259 | fi |
---|
13260 | for ac_header in mysql.h mysqld_error.h errmsg.h |
---|
13261 | do : |
---|
13262 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
13263 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
13264 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
13265 | cat >>confdefs.h <<_ACEOF |
---|
13266 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
13267 | _ACEOF |
---|
13268 | |
---|
13269 | else |
---|
13270 | mysql_headers_success=no |
---|
13271 | fi |
---|
13272 | |
---|
13273 | done |
---|
13274 | |
---|
13275 | if test x"$mysql_headers_success" = xyes |
---|
13276 | then |
---|
13277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
13278 | /* end confdefs.h. */ |
---|
13279 | |
---|
13280 | #include <mysql.h> |
---|
13281 | #include <mysqld_error.h> |
---|
13282 | #include <errmsg.h> |
---|
13283 | #if defined(PROTOCOL_VERSION) && defined(ER_LOCK_DEADLOCK) && defined(ER_LOCK_WAIT_TIMEOUT) && defined(ER_LOCK_OR_ACTIVE_TRANSACTION) && defined(CR_ERROR_FIRST) |
---|
13284 | /* Success */ |
---|
13285 | #else |
---|
13286 | #error Unsupported version of MySQL |
---|
13287 | #endif |
---|
13288 | |
---|
13289 | _ACEOF |
---|
13290 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
13291 | |
---|
13292 | else |
---|
13293 | |
---|
13294 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
13295 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
13296 | as_fn_error $? "Unsupported version of MySQL (no PROTOCOL_VERSION or ER_LOCK_DEADLOCK or ER_LOCK_WAIT_TIMEOUT or ER_LOCK_OR_ACTIVE_TRANSACTION or CR_ERROR_FIRST defined) |
---|
13297 | See \`config.log' for more details" "$LINENO" 5; } |
---|
13298 | mysql_headers_success=no |
---|
13299 | |
---|
13300 | fi |
---|
13301 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
13302 | fi |
---|
13303 | |
---|
13304 | CPPFLAGS="$mysql_headers_save_CPPFLAGS" |
---|
13305 | if test x"$mysql_headers_success" = xyes |
---|
13306 | then |
---|
13307 | mysql_CPPFLAGS="$mysql_headers_CPPFLAGS" |
---|
13308 | : |
---|
13309 | else |
---|
13310 | mysql_success=no |
---|
13311 | fi |
---|
13312 | |
---|
13313 | |
---|
13314 | if test x"$mysql_success" = xyes |
---|
13315 | then |
---|
13316 | CPPFLAGS="$mysql_CPPFLAGS $CPPFLAGS" |
---|
13317 | |
---|
13318 | mysql_libs_save_LDFLAGS="$LDFLAGS" |
---|
13319 | mysql_libs_save_LIBS="$LIBS" |
---|
13320 | mysql_libs_LDFLAGS='' |
---|
13321 | mysql_libs_LIBS='' |
---|
13322 | mysql_libs_success=no |
---|
13323 | mysql_libs_netlibs='' |
---|
13324 | |
---|
13325 | success=yes |
---|
13326 | |
---|
13327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gzopen" >&5 |
---|
13328 | $as_echo_n "checking for library containing gzopen... " >&6; } |
---|
13329 | if ${ac_cv_search_gzopen+:} false; then : |
---|
13330 | $as_echo_n "(cached) " >&6 |
---|
13331 | else |
---|
13332 | ac_func_search_save_LIBS=$LIBS |
---|
13333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
13334 | /* end confdefs.h. */ |
---|
13335 | |
---|
13336 | /* Override any GCC internal prototype to avoid an error. |
---|
13337 | Use char because int might match the return type of a GCC |
---|
13338 | builtin and then its argument prototype would still apply. */ |
---|
13339 | #ifdef __cplusplus |
---|
13340 | extern "C" |
---|
13341 | #endif |
---|
13342 | char gzopen (); |
---|
13343 | int |
---|
13344 | main () |
---|
13345 | { |
---|
13346 | return gzopen (); |
---|
13347 | ; |
---|
13348 | return 0; |
---|
13349 | } |
---|
13350 | _ACEOF |
---|
13351 | for ac_lib in '' z; do |
---|
13352 | if test -z "$ac_lib"; then |
---|
13353 | ac_res="none required" |
---|
13354 | else |
---|
13355 | ac_res=-l$ac_lib |
---|
13356 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
13357 | fi |
---|
13358 | if ac_fn_c_try_link "$LINENO"; then : |
---|
13359 | ac_cv_search_gzopen=$ac_res |
---|
13360 | fi |
---|
13361 | rm -f core conftest.err conftest.$ac_objext \ |
---|
13362 | conftest$ac_exeext |
---|
13363 | if ${ac_cv_search_gzopen+:} false; then : |
---|
13364 | break |
---|
13365 | fi |
---|
13366 | done |
---|
13367 | if ${ac_cv_search_gzopen+:} false; then : |
---|
13368 | |
---|
13369 | else |
---|
13370 | ac_cv_search_gzopen=no |
---|
13371 | fi |
---|
13372 | rm conftest.$ac_ext |
---|
13373 | LIBS=$ac_func_search_save_LIBS |
---|
13374 | fi |
---|
13375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gzopen" >&5 |
---|
13376 | $as_echo "$ac_cv_search_gzopen" >&6; } |
---|
13377 | ac_res=$ac_cv_search_gzopen |
---|
13378 | if test "$ac_res" != no; then : |
---|
13379 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
---|
13380 | success=yes |
---|
13381 | else |
---|
13382 | success=no |
---|
13383 | fi |
---|
13384 | |
---|
13385 | if test x"$success" = xno |
---|
13386 | then |
---|
13387 | as_fn_error $? "zlib required for mysql_drv" "$LINENO" 5 |
---|
13388 | fi |
---|
13389 | |
---|
13390 | |
---|
13391 | # Check whether --with-mysql-libraries was given. |
---|
13392 | if test "${with_mysql_libraries+set}" = set; then : |
---|
13393 | withval=$with_mysql_libraries; |
---|
13394 | fi |
---|
13395 | |
---|
13396 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find MySQL libraries" >&5 |
---|
13397 | $as_echo_n "checking where to find MySQL libraries... " >&6; } |
---|
13398 | if test x"$with_mysql_libraries" = x |
---|
13399 | then |
---|
13400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiler default paths" >&5 |
---|
13401 | $as_echo "compiler default paths" >&6; } |
---|
13402 | else |
---|
13403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mysql_libraries" >&5 |
---|
13404 | $as_echo "$with_mysql_libraries" >&6; } |
---|
13405 | if test -d "$with_mysql_libraries" |
---|
13406 | then |
---|
13407 | : |
---|
13408 | else |
---|
13409 | as_fn_error $? "required path for mysql libraries ($with_mysql_libraries) is not a directory" "$LINENO" 5 |
---|
13410 | fi |
---|
13411 | mysql_libs_LDFLAGS="-L$with_mysql_libraries" |
---|
13412 | fi |
---|
13413 | |
---|
13414 | |
---|
13415 | |
---|
13416 | |
---|
13417 | |
---|
13418 | |
---|
13419 | ds_netlibs_save_LIBS="$LIBS" |
---|
13420 | LIBS='' |
---|
13421 | ds_netlibs_success=yes |
---|
13422 | |
---|
13423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 |
---|
13424 | $as_echo_n "checking for library containing inet_ntoa... " >&6; } |
---|
13425 | if ${ac_cv_search_inet_ntoa+:} false; then : |
---|
13426 | $as_echo_n "(cached) " >&6 |
---|
13427 | else |
---|
13428 | ac_func_search_save_LIBS=$LIBS |
---|
13429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
13430 | /* end confdefs.h. */ |
---|
13431 | |
---|
13432 | /* Override any GCC internal prototype to avoid an error. |
---|
13433 | Use char because int might match the return type of a GCC |
---|
13434 | builtin and then its argument prototype would still apply. */ |
---|
13435 | #ifdef __cplusplus |
---|
13436 | extern "C" |
---|
13437 | #endif |
---|
13438 | char inet_ntoa (); |
---|
13439 | int |
---|
13440 | main () |
---|
13441 | { |
---|
13442 | return inet_ntoa (); |
---|
13443 | ; |
---|
13444 | return 0; |
---|
13445 | } |
---|
13446 | _ACEOF |
---|
13447 | for ac_lib in '' nsl; do |
---|
13448 | if test -z "$ac_lib"; then |
---|
13449 | ac_res="none required" |
---|
13450 | else |
---|
13451 | ac_res=-l$ac_lib |
---|
13452 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
13453 | fi |
---|
13454 | if ac_fn_c_try_link "$LINENO"; then : |
---|
13455 | ac_cv_search_inet_ntoa=$ac_res |
---|
13456 | fi |
---|
13457 | rm -f core conftest.err conftest.$ac_objext \ |
---|
13458 | conftest$ac_exeext |
---|
13459 | if ${ac_cv_search_inet_ntoa+:} false; then : |
---|
13460 | break |
---|
13461 | fi |
---|
13462 | done |
---|
13463 | if ${ac_cv_search_inet_ntoa+:} false; then : |
---|
13464 | |
---|
13465 | else |
---|
13466 | ac_cv_search_inet_ntoa=no |
---|
13467 | fi |
---|
13468 | rm conftest.$ac_ext |
---|
13469 | LIBS=$ac_func_search_save_LIBS |
---|
13470 | fi |
---|
13471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 |
---|
13472 | $as_echo "$ac_cv_search_inet_ntoa" >&6; } |
---|
13473 | ac_res=$ac_cv_search_inet_ntoa |
---|
13474 | if test "$ac_res" != no; then : |
---|
13475 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
---|
13476 | ds_netlibs_success=yes |
---|
13477 | else |
---|
13478 | ds_netlibs_success=no |
---|
13479 | fi |
---|
13480 | |
---|
13481 | if test x"$ds_netlibs_success" = xyes |
---|
13482 | then |
---|
13483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
---|
13484 | $as_echo_n "checking for library containing socket... " >&6; } |
---|
13485 | if ${ac_cv_search_socket+:} false; then : |
---|
13486 | $as_echo_n "(cached) " >&6 |
---|
13487 | else |
---|
13488 | ac_func_search_save_LIBS=$LIBS |
---|
13489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
13490 | /* end confdefs.h. */ |
---|
13491 | |
---|
13492 | /* Override any GCC internal prototype to avoid an error. |
---|
13493 | Use char because int might match the return type of a GCC |
---|
13494 | builtin and then its argument prototype would still apply. */ |
---|
13495 | #ifdef __cplusplus |
---|
13496 | extern "C" |
---|
13497 | #endif |
---|
13498 | char socket (); |
---|
13499 | int |
---|
13500 | main () |
---|
13501 | { |
---|
13502 | return socket (); |
---|
13503 | ; |
---|
13504 | return 0; |
---|
13505 | } |
---|
13506 | _ACEOF |
---|
13507 | for ac_lib in '' socket; do |
---|
13508 | if test -z "$ac_lib"; then |
---|
13509 | ac_res="none required" |
---|
13510 | else |
---|
13511 | ac_res=-l$ac_lib |
---|
13512 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
13513 | fi |
---|
13514 | if ac_fn_c_try_link "$LINENO"; then : |
---|
13515 | ac_cv_search_socket=$ac_res |
---|
13516 | fi |
---|
13517 | rm -f core conftest.err conftest.$ac_objext \ |
---|
13518 | conftest$ac_exeext |
---|
13519 | if ${ac_cv_search_socket+:} false; then : |
---|
13520 | break |
---|
13521 | fi |
---|
13522 | done |
---|
13523 | if ${ac_cv_search_socket+:} false; then : |
---|
13524 | |
---|
13525 | else |
---|
13526 | ac_cv_search_socket=no |
---|
13527 | fi |
---|
13528 | rm conftest.$ac_ext |
---|
13529 | LIBS=$ac_func_search_save_LIBS |
---|
13530 | fi |
---|
13531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
---|
13532 | $as_echo "$ac_cv_search_socket" >&6; } |
---|
13533 | ac_res=$ac_cv_search_socket |
---|
13534 | if test "$ac_res" != no; then : |
---|
13535 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
---|
13536 | ds_netlibs_success=yes |
---|
13537 | else |
---|
13538 | ds_netlibs_success=no |
---|
13539 | fi |
---|
13540 | |
---|
13541 | fi |
---|
13542 | |
---|
13543 | ds_netlibs_netlibs="$LIBS" |
---|
13544 | LIBS="$ds_netlibs_save_LIBS" |
---|
13545 | |
---|
13546 | |
---|
13547 | |
---|
13548 | |
---|
13549 | |
---|
13550 | if test x"$ds_netlibs_success" = xyes |
---|
13551 | then |
---|
13552 | mysql_libs_netlibs="$ds_netlibs_netlibs" |
---|
13553 | mysql_libs_success=yes |
---|
13554 | else |
---|
13555 | mysql_libs_success=no |
---|
13556 | fi |
---|
13557 | |
---|
13558 | if test x"$mysql_libs_success" = xyes |
---|
13559 | then |
---|
13560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5 |
---|
13561 | $as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; } |
---|
13562 | mysql_libs_LIBS="-lmysqlclient $mysql_libs_netlibs" |
---|
13563 | LIBS="$mysql_libs_LIBS $mysql_libs_save_LIBS" |
---|
13564 | LDFLAGS="$mysql_libs_LDFLAGS $mysql_libs_save_LDFLAGS" |
---|
13565 | |
---|
13566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
13567 | /* end confdefs.h. */ |
---|
13568 | |
---|
13569 | #include <stdlib.h> |
---|
13570 | #include <mysql.h> |
---|
13571 | |
---|
13572 | int |
---|
13573 | main () |
---|
13574 | { |
---|
13575 | |
---|
13576 | MYSQL *mysql = mysql_init(NULL); |
---|
13577 | mysql_close(mysql); |
---|
13578 | |
---|
13579 | ; |
---|
13580 | return 0; |
---|
13581 | } |
---|
13582 | _ACEOF |
---|
13583 | if ac_fn_c_try_link "$LINENO"; then : |
---|
13584 | mysql_libs_success=yes |
---|
13585 | else |
---|
13586 | mysql_libs_success=no |
---|
13587 | |
---|
13588 | fi |
---|
13589 | rm -f core conftest.err conftest.$ac_objext \ |
---|
13590 | conftest$ac_exeext conftest.$ac_ext |
---|
13591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mysql_libs_success" >&5 |
---|
13592 | $as_echo "$mysql_libs_success" >&6; } |
---|
13593 | |
---|
13594 | if test x"$mysql_libs_success" = xyes |
---|
13595 | then |
---|
13596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL client version >= 5.0.0" >&5 |
---|
13597 | $as_echo_n "checking for MySQL client version >= 5.0.0... " >&6; } |
---|
13598 | if test "$cross_compiling" = yes; then : |
---|
13599 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
13600 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
13601 | as_fn_error $? "cannot run test program while cross compiling |
---|
13602 | See \`config.log' for more details" "$LINENO" 5; } |
---|
13603 | else |
---|
13604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
13605 | /* end confdefs.h. */ |
---|
13606 | |
---|
13607 | |
---|
13608 | #include <stdlib.h> |
---|
13609 | #include <string.h> |
---|
13610 | #include <mysql.h> |
---|
13611 | |
---|
13612 | int |
---|
13613 | main () |
---|
13614 | { |
---|
13615 | |
---|
13616 | int is_ok = 0; |
---|
13617 | const char *info = mysql_get_client_info(); |
---|
13618 | char *i = strdup(info); |
---|
13619 | char *m = strtok(i, "."); |
---|
13620 | if (m) |
---|
13621 | if (atoi(m) >= 5) |
---|
13622 | is_ok = 1; |
---|
13623 | free (i); |
---|
13624 | return is_ok ? 0 : 1; |
---|
13625 | |
---|
13626 | ; |
---|
13627 | return 0; |
---|
13628 | } |
---|
13629 | |
---|
13630 | _ACEOF |
---|
13631 | if ac_fn_c_try_run "$LINENO"; then : |
---|
13632 | |
---|
13633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
13634 | $as_echo "yes" >&6; } |
---|
13635 | |
---|
13636 | else |
---|
13637 | |
---|
13638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
13639 | $as_echo "no" >&6; } |
---|
13640 | mysql_libs_success=no |
---|
13641 | |
---|
13642 | fi |
---|
13643 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
13644 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
13645 | fi |
---|
13646 | |
---|
13647 | fi |
---|
13648 | fi |
---|
13649 | LIBS="$mysql_libs_save_LIBS" |
---|
13650 | LDFLAGS="$mysql_libs_save_LDFLAGS" |
---|
13651 | if test x"$mysql_libs_success" = xyes |
---|
13652 | then |
---|
13653 | mysql_LDFLAGS="$mysql_libs_LDFLAGS" |
---|
13654 | mysql_LIBS="$mysql_libs_LIBS" |
---|
13655 | : |
---|
13656 | else |
---|
13657 | mysql_success=no |
---|
13658 | fi |
---|
13659 | |
---|
13660 | fi |
---|
13661 | |
---|
13662 | CPPFLAGS="$mysql_save_CPPFLAGS" |
---|
13663 | LDFLAGS="$mysql_save_LDFLAGS" |
---|
13664 | LIBS="$mysql_save_LIBS" |
---|
13665 | |
---|
13666 | if test x"$mysql_success" = xyes |
---|
13667 | then |
---|
13668 | MYSQL_CPPFLAGS="$mysql_CPPFLAGS" |
---|
13669 | MYSQL_LDFLAGS="$mysql_LDFLAGS" |
---|
13670 | MYSQL_LIBS="$mysql_LIBS" |
---|
13671 | success=yes |
---|
13672 | else |
---|
13673 | success=no |
---|
13674 | fi |
---|
13675 | |
---|
13676 | if test x"$success" != xyes |
---|
13677 | then |
---|
13678 | as_fn_error $? "Required version of libmysqlclient not found" "$LINENO" 5 |
---|
13679 | fi |
---|
13680 | libmysql_drv_cppflags="$MYSQL_CPPFLAGS $CPPFLAGS" |
---|
13681 | libmysql_drv_libs="$MYSQL_LIBS $LIBS" |
---|
13682 | libmysql_drv_ldflags="$MYSQL_LDFLAGS $LDFLAGS" |
---|
13683 | |
---|
13684 | |
---|
13685 | |
---|
13686 | |
---|
13687 | mysql_drv=yes |
---|
13688 | storage_drv_subdirs="$storage_drv_subdirs tools.mysql_drv" |
---|
13689 | fi |
---|
13690 | |
---|
13691 | if test x"$drv" = xpgsql_drv |
---|
13692 | then |
---|
13693 | |
---|
13694 | pgsql_save_CPPFLAGS="$CPPFLAGS" |
---|
13695 | pgsql_save_LDFLAGS="$LDFLAGS" |
---|
13696 | pgsql_save_LIBS="$LIBS" |
---|
13697 | |
---|
13698 | pgsql_CPPFLAGS='' |
---|
13699 | pgsql_LIBS='' |
---|
13700 | |
---|
13701 | pgsql_success=yes |
---|
13702 | |
---|
13703 | |
---|
13704 | pgsql_headers_save_CPPFLAGS="$CPPFLAGS" |
---|
13705 | pgsql_headers_CPPFLAGS='' |
---|
13706 | pgsql_headers_success=yes |
---|
13707 | |
---|
13708 | # |
---|
13709 | # virtual users |
---|
13710 | # |
---|
13711 | # Check whether --enable-virtual-users was given. |
---|
13712 | if test "${enable_virtual_users+set}" = set; then : |
---|
13713 | enableval=$enable_virtual_users; |
---|
13714 | fi |
---|
13715 | |
---|
13716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable virtual users" >&5 |
---|
13717 | $as_echo_n "checking whether to enable virtual users... " >&6; } |
---|
13718 | case x"$enable_virtual_users" in |
---|
13719 | xyes) # enabled explicity |
---|
13720 | ;; |
---|
13721 | xno) # disabled explicity |
---|
13722 | ;; |
---|
13723 | x) # disabled by default |
---|
13724 | enable_virtual_users=no |
---|
13725 | ;; |
---|
13726 | *) as_fn_error $? "unexpected value $enable_virtual_users for --{enable,disable}-virtual-users configure option" "$LINENO" 5 |
---|
13727 | ;; |
---|
13728 | esac |
---|
13729 | if test x"$enable_virtual_users" != xyes |
---|
13730 | then |
---|
13731 | enable_virtual_users=no |
---|
13732 | else |
---|
13733 | enable_virtual_users=yes # overkill, but convenient |
---|
13734 | |
---|
13735 | $as_echo "#define VIRTUAL_USERS 1" >>confdefs.h |
---|
13736 | |
---|
13737 | fi |
---|
13738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_virtual_users" >&5 |
---|
13739 | $as_echo "$enable_virtual_users" >&6; } |
---|
13740 | |
---|
13741 | |
---|
13742 | |
---|
13743 | # Check whether --with-pgsql-includes was given. |
---|
13744 | if test "${with_pgsql_includes+set}" = set; then : |
---|
13745 | withval=$with_pgsql_includes; |
---|
13746 | fi |
---|
13747 | |
---|
13748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find PostgreSQL headers" >&5 |
---|
13749 | $as_echo_n "checking where to find PostgreSQL headers... " >&6; } |
---|
13750 | if test x"$with_pgsql_includes" = x |
---|
13751 | then |
---|
13752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiler default paths" >&5 |
---|
13753 | $as_echo "compiler default paths" >&6; } |
---|
13754 | else |
---|
13755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pgsql_includes" >&5 |
---|
13756 | $as_echo "$with_pgsql_includes" >&6; } |
---|
13757 | if test -d "$with_pgsql_includes" |
---|
13758 | then |
---|
13759 | : |
---|
13760 | else |
---|
13761 | as_fn_error $? "required include path for libpq headers $with_pgsql_includes is not a directory" "$LINENO" 5 |
---|
13762 | fi |
---|
13763 | pgsql_headers_CPPFLAGS="-I$with_pgsql_includes" |
---|
13764 | CPPFLAGS="$pgsql_headers_CPPFLAGS $CPPFLAGS" |
---|
13765 | fi |
---|
13766 | ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default" |
---|
13767 | if test "x$ac_cv_header_libpq_fe_h" = xyes; then : |
---|
13768 | |
---|
13769 | else |
---|
13770 | pgsql_headers_success=no |
---|
13771 | fi |
---|
13772 | |
---|
13773 | |
---|
13774 | if test x"$pgsql_headers_success" = xyes |
---|
13775 | then |
---|
13776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
13777 | /* end confdefs.h. */ |
---|
13778 | |
---|
13779 | #include <libpq-fe.h> |
---|
13780 | #ifdef LIBPQ_FE_H |
---|
13781 | /* Success */ |
---|
13782 | #else |
---|
13783 | #error Unsupported version of PgSQL |
---|
13784 | #endif |
---|
13785 | |
---|
13786 | _ACEOF |
---|
13787 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
13788 | |
---|
13789 | else |
---|
13790 | |
---|
13791 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
13792 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
13793 | as_fn_error $? "Unsupported version of PostgreSQL (no LIBPQ_FE_H defined) |
---|
13794 | See \`config.log' for more details" "$LINENO" 5; } |
---|
13795 | pgsql_headers_success=no |
---|
13796 | |
---|
13797 | fi |
---|
13798 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
13799 | fi |
---|
13800 | |
---|
13801 | CPPFLAGS="$pgsql_headers_save_CPPFLAGS" |
---|
13802 | if test x"$pgsql_headers_success" = xyes |
---|
13803 | then |
---|
13804 | pgsql_CPPFLAGS="$pgsql_headers_CPPFLAGS" |
---|
13805 | : |
---|
13806 | else |
---|
13807 | pgsql_success=no |
---|
13808 | fi |
---|
13809 | |
---|
13810 | |
---|
13811 | if test x"$pgsql_success" = xyes |
---|
13812 | then |
---|
13813 | CPPFLAGS="$pgsql_CPPFLAGS $CPPFLAGS" |
---|
13814 | |
---|
13815 | pgsql_libs_save_LDFLAGS="$LDFLAGS" |
---|
13816 | pgsql_libs_save_LIBS="$LIBS" |
---|
13817 | pgsql_libs_LDFLAGS='' |
---|
13818 | pgsql_libs_LIBS='' |
---|
13819 | pgsql_libs_success=no |
---|
13820 | pgsql_freemem_success=no |
---|
13821 | pgsql_libs_netlibs='' |
---|
13822 | pgsql_version_success=no |
---|
13823 | pgsql_version_major='' |
---|
13824 | pgsql_version_minor='' |
---|
13825 | pgsql_version_micro='' |
---|
13826 | pgsql_version_number='' |
---|
13827 | pgsql_version_req_major=8 |
---|
13828 | pgsql_version_req_minor=1 |
---|
13829 | pgsql_version_req_micro=0 |
---|
13830 | pgsql_version_req_number='' |
---|
13831 | |
---|
13832 | |
---|
13833 | # Check whether --with-pgsql-libraries was given. |
---|
13834 | if test "${with_pgsql_libraries+set}" = set; then : |
---|
13835 | withval=$with_pgsql_libraries; |
---|
13836 | fi |
---|
13837 | |
---|
13838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find PostgreSQL libraries" >&5 |
---|
13839 | $as_echo_n "checking where to find PostgreSQL libraries... " >&6; } |
---|
13840 | if test x"$with_pgsql_libraries" = x |
---|
13841 | then |
---|
13842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiler default paths" >&5 |
---|
13843 | $as_echo "compiler default paths" >&6; } |
---|
13844 | else |
---|
13845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pgsql_libraries" >&5 |
---|
13846 | $as_echo "$with_pgsql_libraries" >&6; } |
---|
13847 | if test -d "$with_pgsql_libraries" |
---|
13848 | then |
---|
13849 | : |
---|
13850 | else |
---|
13851 | as_fn_error $? "required path for libpq libraries ($with_pgsql_libraries) is not a directory" "$LINENO" 5 |
---|
13852 | fi |
---|
13853 | pgsql_libs_LDFLAGS="-L$with_pgsql_libraries" |
---|
13854 | fi |
---|
13855 | |
---|
13856 | |
---|
13857 | |
---|
13858 | |
---|
13859 | |
---|
13860 | |
---|
13861 | ds_netlibs_save_LIBS="$LIBS" |
---|
13862 | LIBS='' |
---|
13863 | ds_netlibs_success=yes |
---|
13864 | |
---|
13865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 |
---|
13866 | $as_echo_n "checking for library containing inet_ntoa... " >&6; } |
---|
13867 | if ${ac_cv_search_inet_ntoa+:} false; then : |
---|
13868 | $as_echo_n "(cached) " >&6 |
---|
13869 | else |
---|
13870 | ac_func_search_save_LIBS=$LIBS |
---|
13871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
13872 | /* end confdefs.h. */ |
---|
13873 | |
---|
13874 | /* Override any GCC internal prototype to avoid an error. |
---|
13875 | Use char because int might match the return type of a GCC |
---|
13876 | builtin and then its argument prototype would still apply. */ |
---|
13877 | #ifdef __cplusplus |
---|
13878 | extern "C" |
---|
13879 | #endif |
---|
13880 | char inet_ntoa (); |
---|
13881 | int |
---|
13882 | main () |
---|
13883 | { |
---|
13884 | return inet_ntoa (); |
---|
13885 | ; |
---|
13886 | return 0; |
---|
13887 | } |
---|
13888 | _ACEOF |
---|
13889 | for ac_lib in '' nsl; do |
---|
13890 | if test -z "$ac_lib"; then |
---|
13891 | ac_res="none required" |
---|
13892 | else |
---|
13893 | ac_res=-l$ac_lib |
---|
13894 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
13895 | fi |
---|
13896 | if ac_fn_c_try_link "$LINENO"; then : |
---|
13897 | ac_cv_search_inet_ntoa=$ac_res |
---|
13898 | fi |
---|
13899 | rm -f core conftest.err conftest.$ac_objext \ |
---|
13900 | conftest$ac_exeext |
---|
13901 | if ${ac_cv_search_inet_ntoa+:} false; then : |
---|
13902 | break |
---|
13903 | fi |
---|
13904 | done |
---|
13905 | if ${ac_cv_search_inet_ntoa+:} false; then : |
---|
13906 | |
---|
13907 | else |
---|
13908 | ac_cv_search_inet_ntoa=no |
---|
13909 | fi |
---|
13910 | rm conftest.$ac_ext |
---|
13911 | LIBS=$ac_func_search_save_LIBS |
---|
13912 | fi |
---|
13913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 |
---|
13914 | $as_echo "$ac_cv_search_inet_ntoa" >&6; } |
---|
13915 | ac_res=$ac_cv_search_inet_ntoa |
---|
13916 | if test "$ac_res" != no; then : |
---|
13917 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
---|
13918 | ds_netlibs_success=yes |
---|
13919 | else |
---|
13920 | ds_netlibs_success=no |
---|
13921 | fi |
---|
13922 | |
---|
13923 | if test x"$ds_netlibs_success" = xyes |
---|
13924 | then |
---|
13925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 |
---|
13926 | $as_echo_n "checking for library containing socket... " >&6; } |
---|
13927 | if ${ac_cv_search_socket+:} false; then : |
---|
13928 | $as_echo_n "(cached) " >&6 |
---|
13929 | else |
---|
13930 | ac_func_search_save_LIBS=$LIBS |
---|
13931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
13932 | /* end confdefs.h. */ |
---|
13933 | |
---|
13934 | /* Override any GCC internal prototype to avoid an error. |
---|
13935 | Use char because int might match the return type of a GCC |
---|
13936 | builtin and then its argument prototype would still apply. */ |
---|
13937 | #ifdef __cplusplus |
---|
13938 | extern "C" |
---|
13939 | #endif |
---|
13940 | char socket (); |
---|
13941 | int |
---|
13942 | main () |
---|
13943 | { |
---|
13944 | return socket (); |
---|
13945 | ; |
---|
13946 | return 0; |
---|
13947 | } |
---|
13948 | _ACEOF |
---|
13949 | for ac_lib in '' socket; do |
---|
13950 | if test -z "$ac_lib"; then |
---|
13951 | ac_res="none required" |
---|
13952 | else |
---|
13953 | ac_res=-l$ac_lib |
---|
13954 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
---|
13955 | fi |
---|
13956 | if ac_fn_c_try_link "$LINENO"; then : |
---|
13957 | ac_cv_search_socket=$ac_res |
---|
13958 | fi |
---|
13959 | rm -f core conftest.err conftest.$ac_objext \ |
---|
13960 | conftest$ac_exeext |
---|
13961 | if ${ac_cv_search_socket+:} false; then : |
---|
13962 | break |
---|
13963 | fi |
---|
13964 | done |
---|
13965 | if ${ac_cv_search_socket+:} false; then : |
---|
13966 | |
---|
13967 | else |
---|
13968 | ac_cv_search_socket=no |
---|
13969 | fi |
---|
13970 | rm conftest.$ac_ext |
---|
13971 | LIBS=$ac_func_search_save_LIBS |
---|
13972 | fi |
---|
13973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 |
---|
13974 | $as_echo "$ac_cv_search_socket" >&6; } |
---|
13975 | ac_res=$ac_cv_search_socket |
---|
13976 | if test "$ac_res" != no; then : |
---|
13977 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
---|
13978 | ds_netlibs_success=yes |
---|
13979 | else |
---|
13980 | ds_netlibs_success=no |
---|
13981 | fi |
---|
13982 | |
---|
13983 | fi |
---|
13984 | |
---|
13985 | ds_netlibs_netlibs="$LIBS" |
---|
13986 | LIBS="$ds_netlibs_save_LIBS" |
---|
13987 | |
---|
13988 | |
---|
13989 | |
---|
13990 | |
---|
13991 | |
---|
13992 | if test x"$ds_netlibs_success" = xyes |
---|
13993 | then |
---|
13994 | pgsql_libs_netlibs="$ds_netlibs_netlibs" |
---|
13995 | pgsql_libs_success=yes |
---|
13996 | else |
---|
13997 | pgsql_libs_success=no |
---|
13998 | fi |
---|
13999 | |
---|
14000 | if test x"$pgsql_libs_success" = xyes |
---|
14001 | then |
---|
14002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in libpq" >&5 |
---|
14003 | $as_echo_n "checking for PQconnectdb in libpq... " >&6; } |
---|
14004 | pgsql_libs_LIBS="-lpq $pgsql_libs_netlibs" |
---|
14005 | LIBS="$pgsql_libs_LIBS $pgsql_libs_save_LIBS" |
---|
14006 | LDFLAGS="$pgsql_libs_LDFLAGS $pgsql_libs_save_LDFLAGS" |
---|
14007 | |
---|
14008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
14009 | /* end confdefs.h. */ |
---|
14010 | |
---|
14011 | #include <stdlib.h> |
---|
14012 | #include <libpq-fe.h> |
---|
14013 | |
---|
14014 | int |
---|
14015 | main () |
---|
14016 | { |
---|
14017 | |
---|
14018 | PGconn *pgsql = PQconnectdb(NULL); |
---|
14019 | PQfinish(pgsql); |
---|
14020 | |
---|
14021 | ; |
---|
14022 | return 0; |
---|
14023 | } |
---|
14024 | _ACEOF |
---|
14025 | if ac_fn_c_try_link "$LINENO"; then : |
---|
14026 | pgsql_libs_success=yes |
---|
14027 | else |
---|
14028 | pgsql_libs_success=no |
---|
14029 | |
---|
14030 | fi |
---|
14031 | rm -f core conftest.err conftest.$ac_objext \ |
---|
14032 | conftest$ac_exeext conftest.$ac_ext |
---|
14033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgsql_libs_success" >&5 |
---|
14034 | $as_echo "$pgsql_libs_success" >&6; } |
---|
14035 | |
---|
14036 | fi |
---|
14037 | |
---|
14038 | if test x"$pgsql_libs_success" = xyes |
---|
14039 | then |
---|
14040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if this version of Postgres supports PQfreemem" >&5 |
---|
14041 | $as_echo_n "checking if this version of Postgres supports PQfreemem... " >&6; } |
---|
14042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
14043 | /* end confdefs.h. */ |
---|
14044 | |
---|
14045 | #include <stdlib.h> |
---|
14046 | #include <libpq-fe.h> |
---|
14047 | |
---|
14048 | int |
---|
14049 | main () |
---|
14050 | { |
---|
14051 | |
---|
14052 | PQfreemem(NULL); |
---|
14053 | |
---|
14054 | ; |
---|
14055 | return 0; |
---|
14056 | } |
---|
14057 | _ACEOF |
---|
14058 | if ac_fn_c_try_link "$LINENO"; then : |
---|
14059 | pgsql_freemem_success=yes |
---|
14060 | else |
---|
14061 | pgsql_freemem_success=no |
---|
14062 | |
---|
14063 | fi |
---|
14064 | rm -f core conftest.err conftest.$ac_objext \ |
---|
14065 | conftest$ac_exeext conftest.$ac_ext |
---|
14066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgsql_freemem_success" >&5 |
---|
14067 | $as_echo "$pgsql_freemem_success" >&6; } |
---|
14068 | fi |
---|
14069 | |
---|
14070 | if test x"$pgsql_freemem_success" = xyes |
---|
14071 | then |
---|
14072 | |
---|
14073 | $as_echo "#define HAVE_PQFREEMEM 1" >>confdefs.h |
---|
14074 | |
---|
14075 | fi |
---|
14076 | |
---|
14077 | if test x"$pgsql_libs_success" = xyes |
---|
14078 | then |
---|
14079 | # Extract the first word of "pg_config", so it can be a program name with args. |
---|
14080 | set dummy pg_config; ac_word=$2 |
---|
14081 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
14082 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
14083 | if ${ac_cv_path_pgsql_pg_config+:} false; then : |
---|
14084 | $as_echo_n "(cached) " >&6 |
---|
14085 | else |
---|
14086 | case $pgsql_pg_config in |
---|
14087 | [\\/]* | ?:[\\/]*) |
---|
14088 | ac_cv_path_pgsql_pg_config="$pgsql_pg_config" # Let the user override the test with a path. |
---|
14089 | ;; |
---|
14090 | *) |
---|
14091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
14092 | for as_dir in $PATH |
---|
14093 | do |
---|
14094 | IFS=$as_save_IFS |
---|
14095 | test -z "$as_dir" && as_dir=. |
---|
14096 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
14097 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
14098 | ac_cv_path_pgsql_pg_config="$as_dir/$ac_word$ac_exec_ext" |
---|
14099 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
14100 | break 2 |
---|
14101 | fi |
---|
14102 | done |
---|
14103 | done |
---|
14104 | IFS=$as_save_IFS |
---|
14105 | |
---|
14106 | ;; |
---|
14107 | esac |
---|
14108 | fi |
---|
14109 | pgsql_pg_config=$ac_cv_path_pgsql_pg_config |
---|
14110 | if test -n "$pgsql_pg_config"; then |
---|
14111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgsql_pg_config" >&5 |
---|
14112 | $as_echo "$pgsql_pg_config" >&6; } |
---|
14113 | else |
---|
14114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
14115 | $as_echo "no" >&6; } |
---|
14116 | fi |
---|
14117 | |
---|
14118 | |
---|
14119 | if test ! -x "$pgsql_pg_config" |
---|
14120 | then |
---|
14121 | pgsql_pg_config="no" |
---|
14122 | as_fn_error $? "$pgsql_pg_config does not exist or it is not an exectuable file" "$LINENO" 5 |
---|
14123 | fi |
---|
14124 | |
---|
14125 | if test x"$pgsql_pg_config" != xno |
---|
14126 | then |
---|
14127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL client version >= $pgsql_version_req_major.$pgsql_version_req_minor.$pgsql_version_req_micro" >&5 |
---|
14128 | $as_echo_n "checking for PostgreSQL client version >= $pgsql_version_req_major.$pgsql_version_req_minor.$pgsql_version_req_micro... " >&6; } |
---|
14129 | |
---|
14130 | pgsql_version_req_number=`expr $pgsql_version_req_major \* 1000000 \ |
---|
14131 | \+ $pgsql_version_req_minor \* 1000 \ |
---|
14132 | \+ $pgsql_version_req_micro` |
---|
14133 | |
---|
14134 | pgsql_version=`$pgsql_pg_config --version | sed -e 's:^PostgreSQL ::'` |
---|
14135 | pgsql_version_major=`expr $pgsql_version : '\([0-9]*\)'` |
---|
14136 | pgsql_version_minor=`expr $pgsql_version : '[0-9]*\.\([0-9]*\)'` |
---|
14137 | pgsql_version_micro=`expr $pgsql_version : '[0-9]*\.[0-9]*\.\([0-9]*\)'` |
---|
14138 | if test "x$pgsql_version_micro" = x |
---|
14139 | then |
---|
14140 | pgsql_version_micro='0' |
---|
14141 | fi |
---|
14142 | |
---|
14143 | pgsql_version_number=`expr $pgsql_version_major \* 1000000 \ |
---|
14144 | \+ $pgsql_version_minor \* 1000 \ |
---|
14145 | \+ $pgsql_version_micro` |
---|
14146 | |
---|
14147 | pgsql_version_success=`expr $pgsql_version_number \>\= $pgsql_version_req_number` |
---|
14148 | if test x"$pgsql_version_success" = x1 |
---|
14149 | then |
---|
14150 | pgsql_version_success='yes' |
---|
14151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
14152 | $as_echo "yes" >&6; } |
---|
14153 | else |
---|
14154 | pgsql_version_success='no' |
---|
14155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
14156 | $as_echo "no" >&6; } |
---|
14157 | fi |
---|
14158 | fi |
---|
14159 | fi |
---|
14160 | |
---|
14161 | if test x"$pgsql_version_success" = xno |
---|
14162 | then |
---|
14163 | pgsql_libs_success=no |
---|
14164 | fi |
---|
14165 | |
---|
14166 | |
---|
14167 | LIBS="$pgsql_libs_save_LIBS" |
---|
14168 | LDFLAGS="$pgsql_libs_save_LDFLAGS" |
---|
14169 | if test x"$pgsql_libs_success" = xyes |
---|
14170 | then |
---|
14171 | pgsql_LDFLAGS="$pgsql_libs_LDFLAGS" |
---|
14172 | pgsql_LIBS="$pgsql_libs_LIBS" |
---|
14173 | : |
---|
14174 | else |
---|
14175 | pgsql_success=no |
---|
14176 | fi |
---|
14177 | |
---|
14178 | fi |
---|
14179 | |
---|
14180 | CPPFLAGS="$pgsql_save_CPPFLAGS" |
---|
14181 | LDFLAGS="$pgsql_save_LDFLAGS" |
---|
14182 | LIBS="$pgsql_save_LIBS" |
---|
14183 | |
---|
14184 | if test x"$pgsql_success" = xyes |
---|
14185 | then |
---|
14186 | PGSQL_CPPFLAGS="$pgsql_CPPFLAGS" |
---|
14187 | PGSQL_LDFLAGS="$pgsql_LDFLAGS" |
---|
14188 | PGSQL_LIBS="$pgsql_LIBS" |
---|
14189 | success=yes |
---|
14190 | else |
---|
14191 | success=no |
---|
14192 | fi |
---|
14193 | |
---|
14194 | if test x"$success" != xyes |
---|
14195 | then |
---|
14196 | as_fn_error $? "Required version of libpq not found" "$LINENO" 5 |
---|
14197 | fi |
---|
14198 | libpgsql_drv_cppflags="$PGSQL_CPPFLAGS $CPPFLAGS" |
---|
14199 | libpgsql_drv_libs="$PGSQL_LIBS $LIBS" |
---|
14200 | libpgsql_drv_ldflags="$PGSQL_LDFLAGS $LDFLAGS" |
---|
14201 | |
---|
14202 | |
---|
14203 | |
---|
14204 | pgsql_drv=yes |
---|
14205 | storage_drv_subdirs="$storage_drv_subdirs tools.pgsql_drv" |
---|
14206 | fi |
---|
14207 | |
---|
14208 | if test x"$drv" = xsqlite_drv |
---|
14209 | then |
---|
14210 | |
---|
14211 | ds_sqlite_save_CPPFLAGS="$CPPFLAGS" |
---|
14212 | ds_sqlite_save_LIBS="$LIBS" |
---|
14213 | ds_sqlite_save_LDFLAGS="$LDFLAGS" |
---|
14214 | |
---|
14215 | ds_sqlite_CPPFLAGS='' |
---|
14216 | ds_sqlite_LIBS='' |
---|
14217 | ds_sqlite_LDFLAGS='' |
---|
14218 | |
---|
14219 | ds_sqlite_success=yes |
---|
14220 | ds_sqlite_version_major='' |
---|
14221 | ds_sqlite_version_minor='' |
---|
14222 | ds_sqlite_version_patchlevel='' |
---|
14223 | |
---|
14224 | |
---|
14225 | |
---|
14226 | |
---|
14227 | ds_sqlite_headers_save_CPPFLAGS="$CPPFLAGS" |
---|
14228 | ds_sqlite_headers_CPPFLAGS='' |
---|
14229 | ds_sqlite_headers_success=yes |
---|
14230 | ds_sqlite_headers_version_major='' |
---|
14231 | ds_sqlite_headers_version_minor='' |
---|
14232 | ds_sqlite_headers_version_patchlevel='' |
---|
14233 | |
---|
14234 | # unistd.h and errno.h are needed for header version check below. |
---|
14235 | for ac_header in unistd.h errno.h |
---|
14236 | do : |
---|
14237 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
14238 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
14239 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
14240 | cat >>confdefs.h <<_ACEOF |
---|
14241 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
14242 | _ACEOF |
---|
14243 | |
---|
14244 | fi |
---|
14245 | |
---|
14246 | done |
---|
14247 | |
---|
14248 | |
---|
14249 | |
---|
14250 | # Check whether --with-sqlite-includes was given. |
---|
14251 | if test "${with_sqlite_includes+set}" = set; then : |
---|
14252 | withval=$with_sqlite_includes; |
---|
14253 | fi |
---|
14254 | |
---|
14255 | if test x"$with_sqlite_includes" != x |
---|
14256 | then |
---|
14257 | if test -d "$with_sqlite_includes" |
---|
14258 | then |
---|
14259 | : |
---|
14260 | else |
---|
14261 | as_fn_error $? "required include path for sqlite headers ($with_sqlite_includes) is not a directory" "$LINENO" 5 |
---|
14262 | fi |
---|
14263 | ds_sqlite_headers_CPPFLAGS="-I$with_sqlite_includes" |
---|
14264 | CPPFLAGS="$ds_sqlite_headers_CPPFLAGS $CPPFLAGS" |
---|
14265 | fi |
---|
14266 | ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default" |
---|
14267 | if test "x$ac_cv_header_sqlite_h" = xyes; then : |
---|
14268 | |
---|
14269 | else |
---|
14270 | ds_sqlite_headers_success=no |
---|
14271 | fi |
---|
14272 | |
---|
14273 | |
---|
14274 | if test x"$ds_sqlite_headers_success" = xyes |
---|
14275 | then |
---|
14276 | # Determine SQLite hearder version |
---|
14277 | ac_ext=c |
---|
14278 | ac_cpp='$CPP $CPPFLAGS' |
---|
14279 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
14280 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
14281 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
14282 | |
---|
14283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SQLite header version" >&5 |
---|
14284 | $as_echo_n "checking SQLite header version... " >&6; } |
---|
14285 | if test "$cross_compiling" = yes; then : |
---|
14286 | # cross-compilation |
---|
14287 | as_fn_error $? "cross-compilation is unsupported, sorry" "$LINENO" 5 |
---|
14288 | ds_sqlite_headers_success=no |
---|
14289 | |
---|
14290 | else |
---|
14291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
14292 | /* end confdefs.h. */ |
---|
14293 | |
---|
14294 | #include <sqlite.h> |
---|
14295 | #include <stdio.h> |
---|
14296 | #include <stdlib.h> |
---|
14297 | #ifdef HAVE_UNISTD_H |
---|
14298 | # include <unistd.h> |
---|
14299 | #endif |
---|
14300 | #ifdef HAVE_ERRNO_H |
---|
14301 | # include <errno.h> |
---|
14302 | #endif |
---|
14303 | |
---|
14304 | #define OUTFILE "conftest.libsqlitever" |
---|
14305 | |
---|
14306 | int main(void) |
---|
14307 | { |
---|
14308 | FILE* fd; |
---|
14309 | int rc; |
---|
14310 | |
---|
14311 | rc = unlink(OUTFILE); /* avoid symlink attack */ |
---|
14312 | if (rc < 0 && errno != ENOENT) |
---|
14313 | { |
---|
14314 | fprintf(stderr, "error unlinking '%s'", OUTFILE); |
---|
14315 | exit(1); |
---|
14316 | } |
---|
14317 | |
---|
14318 | fd = fopen(OUTFILE, "w"); |
---|
14319 | if (!fd) |
---|
14320 | { |
---|
14321 | /* Don't try to investigate errno for portability reasons */ |
---|
14322 | fprintf(stderr, "error opening '%s' for writing", OUTFILE); |
---|
14323 | exit(1); |
---|
14324 | } |
---|
14325 | |
---|
14326 | rc = fprintf(fd, "%s", SQLITE_VERSION); |
---|
14327 | if (rc < 0) |
---|
14328 | { |
---|
14329 | fprintf(stderr, "error writing to the '%s'", OUTFILE); |
---|
14330 | exit(1); |
---|
14331 | } |
---|
14332 | exit(0); |
---|
14333 | } |
---|
14334 | |
---|
14335 | _ACEOF |
---|
14336 | if ac_fn_c_try_run "$LINENO"; then : |
---|
14337 | |
---|
14338 | |
---|
14339 | ds_sqlite_headers_verstr=`cat conftest.libsqlitever` |
---|
14340 | ds_sqlite_headers_version_major=`cat conftest.libsqlitever | $AWK -F. '{print $1}'` |
---|
14341 | ds_sqlite_headers_version_minor=`cat conftest.libsqlitever | $AWK -F. '{print $2}'` |
---|
14342 | ds_sqlite_headers_version_patchlevel=`cat conftest.libsqlitever | $AWK -F. '{print $3}'` |
---|
14343 | |
---|
14344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ds_sqlite_headers_version_major.$ds_sqlite_headers_version_minor.$ds_sqlite_headers_version_patchlevel" >&5 |
---|
14345 | $as_echo "$ds_sqlite_headers_version_major.$ds_sqlite_headers_version_minor.$ds_sqlite_headers_version_patchlevel" >&6; } |
---|
14346 | |
---|
14347 | else |
---|
14348 | |
---|
14349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failure (unsupported version?)" >&5 |
---|
14350 | $as_echo "failure (unsupported version?)" >&6; } |
---|
14351 | ds_sqlite_headers_success=no |
---|
14352 | |
---|
14353 | fi |
---|
14354 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
14355 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
14356 | fi |
---|
14357 | |
---|
14358 | ac_ext=c |
---|
14359 | ac_cpp='$CPP $CPPFLAGS' |
---|
14360 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
14361 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
14362 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
14363 | |
---|
14364 | fi |
---|
14365 | CPPFLAGS="$ds_sqlite_headers_save_CPPFLAGS" |
---|
14366 | if test x"$ds_sqlite_headers_success" = xyes |
---|
14367 | then |
---|
14368 | ds_sqlite_CPPFLAGS="$ds_sqlite_headers_CPPFLAGS" |
---|
14369 | ds_sqlite_version_major="$ds_sqlite_headers_version_major" |
---|
14370 | ds_sqlite_version_minor="$ds_sqlite_headers_version_minor" |
---|
14371 | ds_sqlite_version_patchlevel="$ds_sqlite_headers_version_patchlevel" |
---|
14372 | : |
---|
14373 | : |
---|
14374 | else |
---|
14375 | ds_sqlite_success=no |
---|
14376 | : |
---|
14377 | fi |
---|
14378 | |
---|
14379 | |
---|
14380 | if test x"$ds_sqlite_success" = xyes |
---|
14381 | then |
---|
14382 | CPPFLAGS="$ds_sqlite_CPPFLAGS $CPPFLAGS" |
---|
14383 | |
---|
14384 | ds_sqlite_libs_save_LIBS="$LIBS" |
---|
14385 | ds_sqlite_libs_save_LDFLAGS="$LDFLAGS" |
---|
14386 | ds_sqlite_libs_LIBS='' |
---|
14387 | ds_sqlite_libs_LDFLAGS='' |
---|
14388 | ds_sqlite_libs_success=no |
---|
14389 | |
---|
14390 | ds_sqlite_libs_ver_major="${ds_sqlite_version_major}" |
---|
14391 | ds_sqlite_libs_ver_minor="${ds_sqlite_version_minor}" |
---|
14392 | |
---|
14393 | if test x"$ds_sqlite_libs_ver_major" = x |
---|
14394 | then |
---|
14395 | as_fn_error $? "DS_SQLITE_LIBS: non-optional argument _ds_sqlite_libs_version_major_in is omited" "$LINENO" 5; |
---|
14396 | fi |
---|
14397 | if test x"$ds_sqlite_libs_ver_minor" = x |
---|
14398 | then |
---|
14399 | as_fn_error $? "DS_SQLITE_LIBS: non-optional argument _ds_sqlite_libs_version_minor_in is omited" "$LINENO" 5; |
---|
14400 | fi |
---|
14401 | |
---|
14402 | |
---|
14403 | # Check whether --with-sqlite-libraries was given. |
---|
14404 | if test "${with_sqlite_libraries+set}" = set; then : |
---|
14405 | withval=$with_sqlite_libraries; |
---|
14406 | fi |
---|
14407 | |
---|
14408 | if test x"$with_sqlite_libraries" != x |
---|
14409 | then |
---|
14410 | if test -d "$with_sqlite_libraries" |
---|
14411 | then |
---|
14412 | : |
---|
14413 | else |
---|
14414 | as_fn_error $? "required path for sqlite libraries ($with_sqlite_libraries) is not a directory" "$LINENO" 5 |
---|
14415 | fi |
---|
14416 | ds_sqlite_libs_LDFLAGS="-L$with_sqlite_libraries" |
---|
14417 | fi |
---|
14418 | |
---|
14419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link SQLite libraries" >&5 |
---|
14420 | $as_echo_n "checking how to link SQLite libraries... " >&6; } |
---|
14421 | for ds_sqlite_libs_tmp_sqlite in \ |
---|
14422 | "-lsqlite" |
---|
14423 | do |
---|
14424 | LDFLAGS="$ds_sqlite_libs_LDFLAGS $ds_sqlite_libs_save_LDFLAGS" |
---|
14425 | for ds_sqlite_libs_tmp_libpth in '' |
---|
14426 | do |
---|
14427 | ds_sqlite_libs_LIBS="$ds_sqlite_libs_tmp_sqlite $ds_sqlite_libs_tmp_libpth" |
---|
14428 | LIBS="$ds_sqlite_libs_LIBS $ds_sqlite_libs_save_LIBS" |
---|
14429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
14430 | /* end confdefs.h. */ |
---|
14431 | |
---|
14432 | #include <sqlite.h> |
---|
14433 | |
---|
14434 | int |
---|
14435 | main () |
---|
14436 | { |
---|
14437 | |
---|
14438 | const char *v = 0; |
---|
14439 | v = sqlite_version; |
---|
14440 | |
---|
14441 | ; |
---|
14442 | return 0; |
---|
14443 | } |
---|
14444 | _ACEOF |
---|
14445 | if ac_fn_c_try_link "$LINENO"; then : |
---|
14446 | ds_sqlite_libs_success=yes |
---|
14447 | else |
---|
14448 | ds_sqlite_libs_success=no |
---|
14449 | |
---|
14450 | fi |
---|
14451 | rm -f core conftest.err conftest.$ac_objext \ |
---|
14452 | conftest$ac_exeext conftest.$ac_ext |
---|
14453 | |
---|
14454 | if test x"$ds_sqlite_libs_success" != xyes |
---|
14455 | then |
---|
14456 | continue |
---|
14457 | fi |
---|
14458 | |
---|
14459 | if test "$cross_compiling" = yes; then : |
---|
14460 | ds_sqlite_libs_success=yes # Assume success for cross-compiling |
---|
14461 | |
---|
14462 | else |
---|
14463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
14464 | /* end confdefs.h. */ |
---|
14465 | |
---|
14466 | #include <stdio.h> |
---|
14467 | #include <sqlite.h> |
---|
14468 | #include <stdlib.h> |
---|
14469 | #include <string.h> |
---|
14470 | |
---|
14471 | int |
---|
14472 | main () |
---|
14473 | { |
---|
14474 | |
---|
14475 | const char *x = sqlite_version; |
---|
14476 | char *y; |
---|
14477 | char header_version[16]; |
---|
14478 | int major, minor, patchlevel; |
---|
14479 | int hmajor, hminor, hpatchlevel; |
---|
14480 | int is_match; |
---|
14481 | |
---|
14482 | strcpy(header_version, x); |
---|
14483 | y = strtok(header_version, "."); |
---|
14484 | major = atoi(y); |
---|
14485 | y = strtok(NULL, "."); |
---|
14486 | minor = atoi(y); |
---|
14487 | y = strtok(NULL, "."); |
---|
14488 | patchlevel = atoi(y); |
---|
14489 | |
---|
14490 | strcpy(header_version, SQLITE_VERSION); |
---|
14491 | y = strtok(header_version, "."); |
---|
14492 | hmajor = atoi(y); |
---|
14493 | y = strtok(NULL, "."); |
---|
14494 | hminor = atoi(y); |
---|
14495 | y = strtok(NULL, "."); |
---|
14496 | hpatchlevel = atoi(y); |
---|
14497 | |
---|
14498 | fprintf(stderr, "sqlite version from header: %d.%d.%d\n", |
---|
14499 | hmajor, hminor, hpatchlevel |
---|
14500 | ); |
---|
14501 | |
---|
14502 | fprintf(stderr, "sqlite version from library: %d.%d.%d\n", |
---|
14503 | major, |
---|
14504 | minor, |
---|
14505 | patchlevel |
---|
14506 | ); |
---|
14507 | if (major == hmajor |
---|
14508 | && minor == hminor |
---|
14509 | && patchlevel == hpatchlevel |
---|
14510 | ) |
---|
14511 | { |
---|
14512 | is_match = 1; |
---|
14513 | } |
---|
14514 | else |
---|
14515 | { |
---|
14516 | is_match = 0; |
---|
14517 | } |
---|
14518 | return is_match ? 0 : 1; |
---|
14519 | |
---|
14520 | ; |
---|
14521 | return 0; |
---|
14522 | } |
---|
14523 | _ACEOF |
---|
14524 | if ac_fn_c_try_run "$LINENO"; then : |
---|
14525 | ds_sqlite_libs_success=yes |
---|
14526 | else |
---|
14527 | ds_sqlite_libs_success=no |
---|
14528 | fi |
---|
14529 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
14530 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
14531 | fi |
---|
14532 | |
---|
14533 | |
---|
14534 | if test x"$ds_sqlite_libs_success" = xyes |
---|
14535 | then |
---|
14536 | break 2 |
---|
14537 | fi |
---|
14538 | done |
---|
14539 | done |
---|
14540 | |
---|
14541 | if test x"$ds_sqlite_libs_success" = xyes |
---|
14542 | then |
---|
14543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ds_sqlite_libs_LIBS" >&5 |
---|
14544 | $as_echo "$ds_sqlite_libs_LIBS" >&6; } |
---|
14545 | else |
---|
14546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failure" >&5 |
---|
14547 | $as_echo "failure" >&6; } |
---|
14548 | fi |
---|
14549 | |
---|
14550 | LIBS="$ds_sqlite_libs_save_LIBS" |
---|
14551 | LDFLAGS="$ds_sqlite_libs_save_LDFLAGS" |
---|
14552 | if test x"$ds_sqlite_libs_success" = xyes |
---|
14553 | then |
---|
14554 | ds_sqlite_LDFLAGS="$ds_sqlite_libs_LDFLAGS" |
---|
14555 | ds_sqlite_LIBS="$ds_sqlite_libs_LIBS" |
---|
14556 | :; |
---|
14557 | : |
---|
14558 | else |
---|
14559 | ds_sqlite_success=no |
---|
14560 | : |
---|
14561 | fi |
---|
14562 | |
---|
14563 | fi |
---|
14564 | |
---|
14565 | CPPFLAGS="$ds_sqlite_save_CPPFLAGS" |
---|
14566 | LIBS="$ds_sqlite_save_LIBS" |
---|
14567 | LDFLAGS="$ds_sqlite_save_LDFLAGS" |
---|
14568 | |
---|
14569 | if test x"$ds_sqlite_success" = xyes |
---|
14570 | then |
---|
14571 | SQLITE_CPPFLAGS="$ds_sqlite_CPPFLAGS" |
---|
14572 | SQLITE_LDFLAGS="$ds_sqlite_LDFLAGS" |
---|
14573 | SQLITE_LIBS="$ds_sqlite_LIBS" |
---|
14574 | |
---|
14575 | sqlite_version_major="$ds_sqlite_version_major" |
---|
14576 | : |
---|
14577 | : |
---|
14578 | |
---|
14579 | success=yes |
---|
14580 | : |
---|
14581 | else |
---|
14582 | success=no |
---|
14583 | : |
---|
14584 | fi |
---|
14585 | |
---|
14586 | if test x"$success" != xyes |
---|
14587 | then |
---|
14588 | as_fn_error $? "Required version of libsqlite not found" "$LINENO" 5 |
---|
14589 | fi |
---|
14590 | if test x"$sqlite_version_major" != x2 |
---|
14591 | then |
---|
14592 | as_fn_error $? "Version mismatch: sqlite_drv requires libsqlite version 2" "$LINENO" 5 |
---|
14593 | fi |
---|
14594 | |
---|
14595 | libsqlite_drv_cppflags="$SQLITE_CPPFLAGS $CPPFLAGS" |
---|
14596 | libsqlite_drv_libs="$SQLITE_LIBS $LIBS" |
---|
14597 | libsqlite_drv_ldflags="$SQLITE_LDFLAGS $LDFLAGS" |
---|
14598 | |
---|
14599 | |
---|
14600 | |
---|
14601 | sqlite_drv=yes |
---|
14602 | storage_drv_subdirs="$storage_drv_subdirs tools.sqlite_drv" |
---|
14603 | fi |
---|
14604 | |
---|
14605 | if test x"$drv" = xsqlite3_drv |
---|
14606 | then |
---|
14607 | |
---|
14608 | ds_sqlite_save_CPPFLAGS="$CPPFLAGS" |
---|
14609 | ds_sqlite_save_LIBS="$LIBS" |
---|
14610 | ds_sqlite_save_LDFLAGS="$LDFLAGS" |
---|
14611 | |
---|
14612 | ds_sqlite_CPPFLAGS='' |
---|
14613 | ds_sqlite_LIBS='' |
---|
14614 | ds_sqlite_LDFLAGS='' |
---|
14615 | |
---|
14616 | ds_sqlite_success=yes |
---|
14617 | ds_sqlite_version_major='' |
---|
14618 | ds_sqlite_version_minor='' |
---|
14619 | ds_sqlite_version_patchlevel='' |
---|
14620 | |
---|
14621 | |
---|
14622 | |
---|
14623 | |
---|
14624 | ds_sqlite_headers_save_CPPFLAGS="$CPPFLAGS" |
---|
14625 | ds_sqlite_headers_CPPFLAGS='' |
---|
14626 | ds_sqlite_headers_success=yes |
---|
14627 | ds_sqlite_headers_version_major='' |
---|
14628 | ds_sqlite_headers_version_minor='' |
---|
14629 | ds_sqlite_headers_version_patchlevel='' |
---|
14630 | |
---|
14631 | # unistd.h and errno.h are needed for header version check below. |
---|
14632 | for ac_header in unistd.h errno.h |
---|
14633 | do : |
---|
14634 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
14635 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
---|
14636 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
14637 | cat >>confdefs.h <<_ACEOF |
---|
14638 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
14639 | _ACEOF |
---|
14640 | |
---|
14641 | fi |
---|
14642 | |
---|
14643 | done |
---|
14644 | |
---|
14645 | |
---|
14646 | |
---|
14647 | # Check whether --with-sqlite-includes was given. |
---|
14648 | if test "${with_sqlite_includes+set}" = set; then : |
---|
14649 | withval=$with_sqlite_includes; |
---|
14650 | fi |
---|
14651 | |
---|
14652 | if test x"$with_sqlite_includes" != x |
---|
14653 | then |
---|
14654 | if test -d "$with_sqlite_includes" |
---|
14655 | then |
---|
14656 | : |
---|
14657 | else |
---|
14658 | as_fn_error $? "required include path for sqlite headers ($with_sqlite_includes) is not a directory" "$LINENO" 5 |
---|
14659 | fi |
---|
14660 | ds_sqlite_headers_CPPFLAGS="-I$with_sqlite_includes" |
---|
14661 | CPPFLAGS="$ds_sqlite_headers_CPPFLAGS $CPPFLAGS" |
---|
14662 | fi |
---|
14663 | ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" |
---|
14664 | if test "x$ac_cv_header_sqlite3_h" = xyes; then : |
---|
14665 | |
---|
14666 | else |
---|
14667 | ds_sqlite_headers_success=no |
---|
14668 | fi |
---|
14669 | |
---|
14670 | |
---|
14671 | if test x"$ds_sqlite_headers_success" = xyes |
---|
14672 | then |
---|
14673 | # Determine SQLite hearder version |
---|
14674 | ac_ext=c |
---|
14675 | ac_cpp='$CPP $CPPFLAGS' |
---|
14676 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
14677 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
14678 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
14679 | |
---|
14680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking SQLite header version" >&5 |
---|
14681 | $as_echo_n "checking SQLite header version... " >&6; } |
---|
14682 | if test "$cross_compiling" = yes; then : |
---|
14683 | # cross-compilation |
---|
14684 | as_fn_error $? "cross-compilation is unsupported, sorry" "$LINENO" 5 |
---|
14685 | ds_sqlite_headers_success=no |
---|
14686 | |
---|
14687 | else |
---|
14688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
14689 | /* end confdefs.h. */ |
---|
14690 | |
---|
14691 | #include <sqlite3.h> |
---|
14692 | #include <stdio.h> |
---|
14693 | #include <stdlib.h> |
---|
14694 | #ifdef HAVE_UNISTD_H |
---|
14695 | # include <unistd.h> |
---|
14696 | #endif |
---|
14697 | #ifdef HAVE_ERRNO_H |
---|
14698 | # include <errno.h> |
---|
14699 | #endif |
---|
14700 | |
---|
14701 | #define OUTFILE "conftest.libsqlitever" |
---|
14702 | |
---|
14703 | int main(void) |
---|
14704 | { |
---|
14705 | FILE* fd; |
---|
14706 | int rc; |
---|
14707 | |
---|
14708 | rc = unlink(OUTFILE); /* avoid symlink attack */ |
---|
14709 | if (rc < 0 && errno != ENOENT) |
---|
14710 | { |
---|
14711 | fprintf(stderr, "error unlinking '%s'", OUTFILE); |
---|
14712 | exit(1); |
---|
14713 | } |
---|
14714 | |
---|
14715 | fd = fopen(OUTFILE, "w"); |
---|
14716 | if (!fd) |
---|
14717 | { |
---|
14718 | /* Don't try to investigate errno for portability reasons */ |
---|
14719 | fprintf(stderr, "error opening '%s' for writing", OUTFILE); |
---|
14720 | exit(1); |
---|
14721 | } |
---|
14722 | |
---|
14723 | rc = fprintf(fd, "%s", SQLITE_VERSION); |
---|
14724 | if (rc < 0) |
---|
14725 | { |
---|
14726 | fprintf(stderr, "error writing to the '%s'", OUTFILE); |
---|
14727 | exit(1); |
---|
14728 | } |
---|
14729 | exit(0); |
---|
14730 | } |
---|
14731 | |
---|
14732 | _ACEOF |
---|
14733 | if ac_fn_c_try_run "$LINENO"; then : |
---|
14734 | |
---|
14735 | |
---|
14736 | ds_sqlite_headers_verstr=`cat conftest.libsqlitever` |
---|
14737 | ds_sqlite_headers_version_major=`cat conftest.libsqlitever | $AWK -F. '{print $1}'` |
---|
14738 | ds_sqlite_headers_version_minor=`cat conftest.libsqlitever | $AWK -F. '{print $2}'` |
---|
14739 | ds_sqlite_headers_version_patchlevel=`cat conftest.libsqlitever | $AWK -F. '{print $3}'` |
---|
14740 | |
---|
14741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ds_sqlite_headers_version_major.$ds_sqlite_headers_version_minor.$ds_sqlite_headers_version_patchlevel" >&5 |
---|
14742 | $as_echo "$ds_sqlite_headers_version_major.$ds_sqlite_headers_version_minor.$ds_sqlite_headers_version_patchlevel" >&6; } |
---|
14743 | |
---|
14744 | else |
---|
14745 | |
---|
14746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failure (unsupported version?)" >&5 |
---|
14747 | $as_echo "failure (unsupported version?)" >&6; } |
---|
14748 | ds_sqlite_headers_success=no |
---|
14749 | |
---|
14750 | fi |
---|
14751 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
14752 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
14753 | fi |
---|
14754 | |
---|
14755 | ac_ext=c |
---|
14756 | ac_cpp='$CPP $CPPFLAGS' |
---|
14757 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
14758 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
14759 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
14760 | |
---|
14761 | fi |
---|
14762 | CPPFLAGS="$ds_sqlite_headers_save_CPPFLAGS" |
---|
14763 | if test x"$ds_sqlite_headers_success" = xyes |
---|
14764 | then |
---|
14765 | ds_sqlite_CPPFLAGS="$ds_sqlite_headers_CPPFLAGS" |
---|
14766 | ds_sqlite_version_major="$ds_sqlite_headers_version_major" |
---|
14767 | ds_sqlite_version_minor="$ds_sqlite_headers_version_minor" |
---|
14768 | ds_sqlite_version_patchlevel="$ds_sqlite_headers_version_patchlevel" |
---|
14769 | : |
---|
14770 | : |
---|
14771 | else |
---|
14772 | ds_sqlite_success=no |
---|
14773 | : |
---|
14774 | fi |
---|
14775 | |
---|
14776 | |
---|
14777 | if test x"$ds_sqlite_success" = xyes |
---|
14778 | then |
---|
14779 | CPPFLAGS="$ds_sqlite_CPPFLAGS $CPPFLAGS" |
---|
14780 | |
---|
14781 | ds_sqlite_libs_save_LIBS="$LIBS" |
---|
14782 | ds_sqlite_libs_save_LDFLAGS="$LDFLAGS" |
---|
14783 | ds_sqlite_libs_LIBS='' |
---|
14784 | ds_sqlite_libs_LDFLAGS='' |
---|
14785 | ds_sqlite_libs_success=no |
---|
14786 | |
---|
14787 | ds_sqlite_libs_ver_major="${ds_sqlite_version_major}" |
---|
14788 | ds_sqlite_libs_ver_minor="${ds_sqlite_version_minor}" |
---|
14789 | |
---|
14790 | if test x"$ds_sqlite_libs_ver_major" = x |
---|
14791 | then |
---|
14792 | as_fn_error $? "DS_SQLITE3_LIBS: non-optional argument _ds_sqlite_libs_version_major_in is omited" "$LINENO" 5; |
---|
14793 | fi |
---|
14794 | if test x"$ds_sqlite_libs_ver_minor" = x |
---|
14795 | then |
---|
14796 | as_fn_error $? "DS_SQLITE3_LIBS: non-optional argument _ds_sqlite_libs_version_minor_in is omited" "$LINENO" 5; |
---|
14797 | fi |
---|
14798 | |
---|
14799 | |
---|
14800 | # Check whether --with-sqlite-libraries was given. |
---|
14801 | if test "${with_sqlite_libraries+set}" = set; then : |
---|
14802 | withval=$with_sqlite_libraries; |
---|
14803 | fi |
---|
14804 | |
---|
14805 | if test x"$with_sqlite_libraries" != x |
---|
14806 | then |
---|
14807 | if test -d "$with_sqlite_libraries" |
---|
14808 | then |
---|
14809 | : |
---|
14810 | else |
---|
14811 | as_fn_error $? "required path for sqlite libraries ($with_sqlite_libraries) is not a directory" "$LINENO" 5 |
---|
14812 | fi |
---|
14813 | ds_sqlite_libs_LDFLAGS="-L$with_sqlite_libraries" |
---|
14814 | fi |
---|
14815 | |
---|
14816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link SQLite libraries" >&5 |
---|
14817 | $as_echo_n "checking how to link SQLite libraries... " >&6; } |
---|
14818 | for ds_sqlite_libs_tmp_sqlite in \ |
---|
14819 | "-lsqlite3" |
---|
14820 | do |
---|
14821 | LDFLAGS="$ds_sqlite_libs_LDFLAGS $ds_sqlite_libs_save_LDFLAGS" |
---|
14822 | for ds_sqlite_libs_tmp_libpth in '' |
---|
14823 | do |
---|
14824 | ds_sqlite_libs_LIBS="$ds_sqlite_libs_tmp_sqlite $ds_sqlite_libs_tmp_libpth" |
---|
14825 | LIBS="$ds_sqlite_libs_LIBS $ds_sqlite_libs_save_LIBS" |
---|
14826 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
14827 | /* end confdefs.h. */ |
---|
14828 | |
---|
14829 | #include <sqlite3.h> |
---|
14830 | |
---|
14831 | int |
---|
14832 | main () |
---|
14833 | { |
---|
14834 | |
---|
14835 | const char *v = 0; |
---|
14836 | v = sqlite3_version; |
---|
14837 | |
---|
14838 | ; |
---|
14839 | return 0; |
---|
14840 | } |
---|
14841 | _ACEOF |
---|
14842 | if ac_fn_c_try_link "$LINENO"; then : |
---|
14843 | ds_sqlite_libs_success=yes |
---|
14844 | else |
---|
14845 | ds_sqlite_libs_success=no |
---|
14846 | |
---|
14847 | fi |
---|
14848 | rm -f core conftest.err conftest.$ac_objext \ |
---|
14849 | conftest$ac_exeext conftest.$ac_ext |
---|
14850 | |
---|
14851 | if test x"$ds_sqlite_libs_success" != xyes |
---|
14852 | then |
---|
14853 | continue |
---|
14854 | fi |
---|
14855 | |
---|
14856 | if test "$cross_compiling" = yes; then : |
---|
14857 | ds_sqlite_libs_success=yes # Assume success for cross-compiling |
---|
14858 | |
---|
14859 | else |
---|
14860 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
14861 | /* end confdefs.h. */ |
---|
14862 | |
---|
14863 | #include <stdio.h> |
---|
14864 | #include <sqlite3.h> |
---|
14865 | #include <stdlib.h> |
---|
14866 | #include <string.h> |
---|
14867 | |
---|
14868 | int |
---|
14869 | main () |
---|
14870 | { |
---|
14871 | |
---|
14872 | const char *x = sqlite3_version; |
---|
14873 | char *y; |
---|
14874 | char header_version[16]; |
---|
14875 | int major, minor, patchlevel; |
---|
14876 | int hmajor, hminor, hpatchlevel; |
---|
14877 | int is_match; |
---|
14878 | |
---|
14879 | strcpy(header_version, x); |
---|
14880 | y = strtok(header_version, "."); |
---|
14881 | major = atoi(y); |
---|
14882 | y = strtok(NULL, "."); |
---|
14883 | minor = atoi(y); |
---|
14884 | y = strtok(NULL, "."); |
---|
14885 | patchlevel = atoi(y); |
---|
14886 | |
---|
14887 | strcpy(header_version, SQLITE_VERSION); |
---|
14888 | y = strtok(header_version, "."); |
---|
14889 | hmajor = atoi(y); |
---|
14890 | y = strtok(NULL, "."); |
---|
14891 | hminor = atoi(y); |
---|
14892 | y = strtok(NULL, "."); |
---|
14893 | hpatchlevel = atoi(y); |
---|
14894 | |
---|
14895 | fprintf(stderr, "sqlite version from header: %d.%d.%d\n", |
---|
14896 | hmajor, hminor, hpatchlevel |
---|
14897 | ); |
---|
14898 | |
---|
14899 | fprintf(stderr, "sqlite version from library: %d.%d.%d\n", |
---|
14900 | major, |
---|
14901 | minor, |
---|
14902 | patchlevel |
---|
14903 | ); |
---|
14904 | if (major == hmajor |
---|
14905 | && minor == hminor |
---|
14906 | && patchlevel == hpatchlevel |
---|
14907 | ) |
---|
14908 | { |
---|
14909 | is_match = 1; |
---|
14910 | } |
---|
14911 | else |
---|
14912 | { |
---|
14913 | is_match = 0; |
---|
14914 | } |
---|
14915 | return is_match ? 0 : 1; |
---|
14916 | |
---|
14917 | ; |
---|
14918 | return 0; |
---|
14919 | } |
---|
14920 | _ACEOF |
---|
14921 | if ac_fn_c_try_run "$LINENO"; then : |
---|
14922 | ds_sqlite_libs_success=yes |
---|
14923 | else |
---|
14924 | ds_sqlite_libs_success=no |
---|
14925 | fi |
---|
14926 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
14927 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
14928 | fi |
---|
14929 | |
---|
14930 | |
---|
14931 | if test x"$ds_sqlite_libs_success" = xyes |
---|
14932 | then |
---|
14933 | break 2 |
---|
14934 | fi |
---|
14935 | done |
---|
14936 | done |
---|
14937 | |
---|
14938 | if test x"$ds_sqlite_libs_success" = xyes |
---|
14939 | then |
---|
14940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ds_sqlite_libs_LIBS" >&5 |
---|
14941 | $as_echo "$ds_sqlite_libs_LIBS" >&6; } |
---|
14942 | else |
---|
14943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failure" >&5 |
---|
14944 | $as_echo "failure" >&6; } |
---|
14945 | fi |
---|
14946 | |
---|
14947 | LIBS="$ds_sqlite_libs_save_LIBS" |
---|
14948 | LDFLAGS="$ds_sqlite_libs_save_LDFLAGS" |
---|
14949 | if test x"$ds_sqlite_libs_success" = xyes |
---|
14950 | then |
---|
14951 | ds_sqlite_LDFLAGS="$ds_sqlite_libs_LDFLAGS" |
---|
14952 | ds_sqlite_LIBS="$ds_sqlite_libs_LIBS" |
---|
14953 | :; |
---|
14954 | : |
---|
14955 | else |
---|
14956 | ds_sqlite_success=no |
---|
14957 | : |
---|
14958 | fi |
---|
14959 | |
---|
14960 | fi |
---|
14961 | |
---|
14962 | CPPFLAGS="$ds_sqlite_save_CPPFLAGS" |
---|
14963 | LIBS="$ds_sqlite_save_LIBS" |
---|
14964 | LDFLAGS="$ds_sqlite_save_LDFLAGS" |
---|
14965 | |
---|
14966 | if test x"$ds_sqlite_success" = xyes |
---|
14967 | then |
---|
14968 | SQLITE3_CPPFLAGS="$ds_sqlite_CPPFLAGS" |
---|
14969 | SQLITE3_LDFLAGS="$ds_sqlite_LDFLAGS" |
---|
14970 | SQLITE3_LIBS="$ds_sqlite_LIBS" |
---|
14971 | |
---|
14972 | sqlite_version_major="$ds_sqlite_version_major" |
---|
14973 | : |
---|
14974 | : |
---|
14975 | |
---|
14976 | success=yes |
---|
14977 | : |
---|
14978 | else |
---|
14979 | success=no |
---|
14980 | : |
---|
14981 | fi |
---|
14982 | |
---|
14983 | if test x"$success" != xyes |
---|
14984 | then |
---|
14985 | as_fn_error $? "Required version of libsqlite not found" "$LINENO" 5 |
---|
14986 | fi |
---|
14987 | if test x"$sqlite_version_major" != x3 |
---|
14988 | then |
---|
14989 | as_fn_error $? "Version mismatch: sqlite3_drv requires libsqlite version 3" "$LINENO" 5 |
---|
14990 | fi |
---|
14991 | |
---|
14992 | libsqlite3_drv_cppflags="$SQLITE3_CPPFLAGS $CPPFLAGS" |
---|
14993 | libsqlite3_drv_libs="$SQLITE3_LIBS $LIBS" |
---|
14994 | libsqlite3_drv_ldflags="$SQLITE3_LDFLAGS $LDFLAGS" |
---|
14995 | |
---|
14996 | |
---|
14997 | |
---|
14998 | sqlite3_drv=yes |
---|
14999 | storage_drv_subdirs="$storage_drv_subdirs tools.sqlite_drv" |
---|
15000 | fi |
---|
15001 | done |
---|
15002 | |
---|
15003 | if test x"$db4_drv" = xyes ; then |
---|
15004 | BUILD_DB4_DRV_TRUE= |
---|
15005 | BUILD_DB4_DRV_FALSE='#' |
---|
15006 | else |
---|
15007 | BUILD_DB4_DRV_TRUE='#' |
---|
15008 | BUILD_DB4_DRV_FALSE= |
---|
15009 | fi |
---|
15010 | |
---|
15011 | if test x"$db3_drv" = xyes ; then |
---|
15012 | BUILD_DB3_DRV_TRUE= |
---|
15013 | BUILD_DB3_DRV_FALSE='#' |
---|
15014 | else |
---|
15015 | BUILD_DB3_DRV_TRUE='#' |
---|
15016 | BUILD_DB3_DRV_FALSE= |
---|
15017 | fi |
---|
15018 | |
---|
15019 | if test x"$hash_drv" = xyes ; then |
---|
15020 | BUILD_HASH_DRV_TRUE= |
---|
15021 | BUILD_HASH_DRV_FALSE='#' |
---|
15022 | else |
---|
15023 | BUILD_HASH_DRV_TRUE='#' |
---|
15024 | BUILD_HASH_DRV_FALSE= |
---|
15025 | fi |
---|
15026 | |
---|
15027 | if test x"$sqlite_drv" = xyes ; then |
---|
15028 | BUILD_SQLITE_DRV_TRUE= |
---|
15029 | BUILD_SQLITE_DRV_FALSE='#' |
---|
15030 | else |
---|
15031 | BUILD_SQLITE_DRV_TRUE='#' |
---|
15032 | BUILD_SQLITE_DRV_FALSE= |
---|
15033 | fi |
---|
15034 | |
---|
15035 | if test x"$sqlite3_drv" = xyes ; then |
---|
15036 | BUILD_SQLITE3_DRV_TRUE= |
---|
15037 | BUILD_SQLITE3_DRV_FALSE='#' |
---|
15038 | else |
---|
15039 | BUILD_SQLITE3_DRV_TRUE='#' |
---|
15040 | BUILD_SQLITE3_DRV_FALSE= |
---|
15041 | fi |
---|
15042 | |
---|
15043 | if test x"$mysql_drv" = xyes ; then |
---|
15044 | BUILD_MYSQL_DRV_TRUE= |
---|
15045 | BUILD_MYSQL_DRV_FALSE='#' |
---|
15046 | else |
---|
15047 | BUILD_MYSQL_DRV_TRUE='#' |
---|
15048 | BUILD_MYSQL_DRV_FALSE= |
---|
15049 | fi |
---|
15050 | |
---|
15051 | if test x"$pgsql_drv" = xyes ; then |
---|
15052 | BUILD_PGSQL_DRV_TRUE= |
---|
15053 | BUILD_PGSQL_DRV_FALSE='#' |
---|
15054 | else |
---|
15055 | BUILD_PGSQL_DRV_TRUE='#' |
---|
15056 | BUILD_PGSQL_DRV_FALSE= |
---|
15057 | fi |
---|
15058 | |
---|
15059 | if test x"$static_driver" = xyes ; then |
---|
15060 | STATIC_DRIVER_TRUE= |
---|
15061 | STATIC_DRIVER_FALSE='#' |
---|
15062 | else |
---|
15063 | STATIC_DRIVER_TRUE='#' |
---|
15064 | STATIC_DRIVER_FALSE= |
---|
15065 | fi |
---|
15066 | |
---|
15067 | if test x"$static_driver" = xno ; then |
---|
15068 | DYNAMIC_DRIVER_TRUE= |
---|
15069 | DYNAMIC_DRIVER_FALSE='#' |
---|
15070 | else |
---|
15071 | DYNAMIC_DRIVER_TRUE='#' |
---|
15072 | DYNAMIC_DRIVER_FALSE= |
---|
15073 | fi |
---|
15074 | |
---|
15075 | if test x"$enable_external_lookup" = xyes ; then |
---|
15076 | BUILD_EXT_LOOKUP_TRUE= |
---|
15077 | BUILD_EXT_LOOKUP_FALSE='#' |
---|
15078 | else |
---|
15079 | BUILD_EXT_LOOKUP_TRUE='#' |
---|
15080 | BUILD_EXT_LOOKUP_FALSE= |
---|
15081 | fi |
---|
15082 | |
---|
15083 | |
---|
15084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are building a single, static storage driver" >&5 |
---|
15085 | $as_echo_n "checking whether we are building a single, static storage driver... " >&6; } |
---|
15086 | |
---|
15087 | if test x"$static_driver" = xyes |
---|
15088 | then |
---|
15089 | |
---|
15090 | $as_echo "#define STATIC_DRIVER 1" >>confdefs.h |
---|
15091 | |
---|
15092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
15093 | $as_echo "yes" >&6; } |
---|
15094 | CPPFLAGS="$CPPFLAGS $libmysql_drv_cppflags $libpgsql_drv_cppflags $libsqlite_drv_cppflags $libsqlite3_drv_cppflags $libhash_drv_cppflags" |
---|
15095 | LIBS="$LIBS $libmysql_drv_libs $libpgsql_drv_libs $libsqlite_drv_libs $libsqlite3_drv_libs $libhash_drv_libs" |
---|
15096 | LDFLAGS="$LDFLAGS $libmysql_drv_ldflags $libpgsql_drv_ldflags $libsqlite_drv_ldflags $libsqlite3_drv_ldflags $libhash_drv_ldflags" |
---|
15097 | else |
---|
15098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
15099 | $as_echo "no" >&6; } |
---|
15100 | fi |
---|
15101 | |
---|
15102 | |
---|
15103 | |
---|
15104 | if test x"$storage_drv_subdirs" = x |
---|
15105 | then |
---|
15106 | as_fn_error $? "no valid storage drivers specified" "$LINENO" 5 |
---|
15107 | fi |
---|
15108 | |
---|
15109 | if test x"$enable_daemon" = xyes && test x"$mysql_drv" != xyes && test x"$pgsql_drv" != xyes && test x"$hash_drv" != xyes |
---|
15110 | then |
---|
15111 | as_fn_error $? "daemon mode requires one of the following storage drivers: mysql_drv pgsql_drv hash_drv" "$LINENO" 5 |
---|
15112 | fi |
---|
15113 | |
---|
15114 | |
---|
15115 | #--------------------------------------------------------- |
---|
15116 | # Libraries (other) |
---|
15117 | # |
---|
15118 | |
---|
15119 | #--------------------------------------------------------- |
---|
15120 | # Documentation generation tools |
---|
15121 | # |
---|
15122 | ### AC_CHECK_PROG([HAVE_DOXYGEN], [doxygen], [yes], [no]) |
---|
15123 | ### AC_CHECK_PROG([HAVE_DOT], [dot], [yes], [no]) |
---|
15124 | ### AM_CONDITIONAL([HAVE_DOXYGEN], [ test x"$HAVE_DOXYGEN" = xyes ]) |
---|
15125 | |
---|
15126 | #---------------------------------------------------------- |
---|
15127 | # final cut |
---|
15128 | # |
---|
15129 | |
---|
15130 | |
---|
15131 | if test x$GCC = xyes |
---|
15132 | then |
---|
15133 | |
---|
15134 | # |
---|
15135 | # Enable Compiler Warnings |
---|
15136 | # |
---|
15137 | |
---|
15138 | # Check whether --enable-warnings was given. |
---|
15139 | if test "${enable_warnings+set}" = set; then : |
---|
15140 | enableval=$enable_warnings; |
---|
15141 | fi |
---|
15142 | |
---|
15143 | |
---|
15144 | gcc_param=",$enable_warnings," |
---|
15145 | gcc_enable_warnings=`echo $gcc_param|grep ',no,' >/dev/null 2>&1 && echo no || echo yes` |
---|
15146 | gcc_enable_error=`echo $gcc_param|grep ',error,' >/dev/null 2>&1 && echo yes || echo no` |
---|
15147 | gcc_enable_strict_proto=`echo $gcc_param|grep ',proto,' >/dev/null 2>&1 && echo yes || echo no` |
---|
15148 | |
---|
15149 | warn_flags='-Wall -Wmissing-prototypes -Wmissing-declarations' |
---|
15150 | |
---|
15151 | if test x$gcc_enable_strict_proto != xno |
---|
15152 | then |
---|
15153 | warn_flags="$warn_flags -Wstrict-prototypes" |
---|
15154 | fi |
---|
15155 | |
---|
15156 | if test x$gcc_enable_error != xno |
---|
15157 | then |
---|
15158 | warn_flags="$warn_flags -Werror" |
---|
15159 | fi |
---|
15160 | |
---|
15161 | if test x$gcc_enable_warnings != xno |
---|
15162 | then |
---|
15163 | CFLAGS="$CFLAGS $warn_flags" |
---|
15164 | CXXFLAGS="$CXXFLAGS $warn_flags" |
---|
15165 | fi |
---|
15166 | |
---|
15167 | # |
---|
15168 | # Enable Profiling Support |
---|
15169 | # |
---|
15170 | # Check whether --enable-profiling was given. |
---|
15171 | if test "${enable_profiling+set}" = set; then : |
---|
15172 | enableval=$enable_profiling; |
---|
15173 | fi |
---|
15174 | |
---|
15175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling output" >&5 |
---|
15176 | $as_echo_n "checking whether to enable profiling output... " >&6; } |
---|
15177 | case x"$enable_profiling" in |
---|
15178 | xyes) # profiling output enabled explicity |
---|
15179 | ;; |
---|
15180 | xno) # profiling output disabled explicity |
---|
15181 | ;; |
---|
15182 | x) # profiling output disabled by default |
---|
15183 | enable_profiling=no |
---|
15184 | ;; |
---|
15185 | *) as_fn_error $? "unexpected value $enable_profiling for --{enable,disable}-profiling configure option" "$LINENO" 5 |
---|
15186 | ;; |
---|
15187 | esac |
---|
15188 | if test x"$enable_profiling" != xyes |
---|
15189 | then |
---|
15190 | enable_profiling=no |
---|
15191 | else |
---|
15192 | enable_profiling=yes # overkill, but convenient |
---|
15193 | CFLAGS="$CFLAGS -pg" |
---|
15194 | CXXFLAGS="$CXXFLAGS -pg" |
---|
15195 | fi |
---|
15196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 |
---|
15197 | $as_echo "$enable_profiling" >&6; } |
---|
15198 | |
---|
15199 | # GCC |
---|
15200 | fi |
---|
15201 | |
---|
15202 | |
---|
15203 | |
---|
15204 | ac_config_headers="$ac_config_headers src/auto-config.h" |
---|
15205 | |
---|
15206 | |
---|
15207 | |
---|
15208 | |
---|
15209 | ac_config_files="$ac_config_files Makefile src/tools/Makefile webui/Makefile m4/Makefile" |
---|
15210 | |
---|
15211 | ac_config_files="$ac_config_files src/tools.mysql_drv/Makefile" |
---|
15212 | |
---|
15213 | ac_config_files="$ac_config_files txt/Makefile src/tools.pgsql_drv/Makefile" |
---|
15214 | |
---|
15215 | ac_config_files="$ac_config_files src/Makefile webui/cgi-bin/templates/Makefile" |
---|
15216 | |
---|
15217 | ac_config_files="$ac_config_files webui/cgi-bin/templates/cs/Makefile" |
---|
15218 | |
---|
15219 | ac_config_files="$ac_config_files webui/cgi-bin/templates/de/Makefile" |
---|
15220 | |
---|
15221 | ac_config_files="$ac_config_files webui/cgi-bin/templates/es-es/Makefile" |
---|
15222 | |
---|
15223 | ac_config_files="$ac_config_files webui/cgi-bin/templates/fr/Makefile" |
---|
15224 | |
---|
15225 | ac_config_files="$ac_config_files webui/cgi-bin/templates/he/Makefile" |
---|
15226 | |
---|
15227 | ac_config_files="$ac_config_files webui/cgi-bin/templates/pt-br/Makefile" |
---|
15228 | |
---|
15229 | ac_config_files="$ac_config_files webui/cgi-bin/templates/ro/Makefile" |
---|
15230 | |
---|
15231 | ac_config_files="$ac_config_files webui/cgi-bin/templates/ru/Makefile" |
---|
15232 | |
---|
15233 | ac_config_files="$ac_config_files src/tools.sqlite_drv/Makefile man/Makefile" |
---|
15234 | |
---|
15235 | ac_config_files="$ac_config_files src/dspam.pc src/dspam-uninstalled.pc" |
---|
15236 | |
---|
15237 | ac_config_files="$ac_config_files doc/Makefile src/tools.hash_drv/Makefile" |
---|
15238 | |
---|
15239 | ac_config_files="$ac_config_files webui/cgi-bin/Makefile webui/htdocs/Makefile" |
---|
15240 | |
---|
15241 | ac_config_files="$ac_config_files contrib/Makefile" |
---|
15242 | |
---|
15243 | cat >confcache <<\_ACEOF |
---|
15244 | # This file is a shell script that caches the results of configure |
---|
15245 | # tests run on this system so they can be shared between configure |
---|
15246 | # scripts and configure runs, see configure's option --config-cache. |
---|
15247 | # It is not useful on other systems. If it contains results you don't |
---|
15248 | # want to keep, you may remove or edit it. |
---|
15249 | # |
---|
15250 | # config.status only pays attention to the cache file if you give it |
---|
15251 | # the --recheck option to rerun configure. |
---|
15252 | # |
---|
15253 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
15254 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
15255 | # following values. |
---|
15256 | |
---|
15257 | _ACEOF |
---|
15258 | |
---|
15259 | # The following way of writing the cache mishandles newlines in values, |
---|
15260 | # but we know of no workaround that is simple, portable, and efficient. |
---|
15261 | # So, we kill variables containing newlines. |
---|
15262 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
15263 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
15264 | ( |
---|
15265 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
15266 | eval ac_val=\$$ac_var |
---|
15267 | case $ac_val in #( |
---|
15268 | *${as_nl}*) |
---|
15269 | case $ac_var in #( |
---|
15270 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
15271 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
15272 | esac |
---|
15273 | case $ac_var in #( |
---|
15274 | _ | IFS | as_nl) ;; #( |
---|
15275 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
15276 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
15277 | esac ;; |
---|
15278 | esac |
---|
15279 | done |
---|
15280 | |
---|
15281 | (set) 2>&1 | |
---|
15282 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
15283 | *${as_nl}ac_space=\ *) |
---|
15284 | # `set' does not quote correctly, so add quotes: double-quote |
---|
15285 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
15286 | sed -n \ |
---|
15287 | "s/'/'\\\\''/g; |
---|
15288 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
15289 | ;; #( |
---|
15290 | *) |
---|
15291 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
15292 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
15293 | ;; |
---|
15294 | esac | |
---|
15295 | sort |
---|
15296 | ) | |
---|
15297 | sed ' |
---|
15298 | /^ac_cv_env_/b end |
---|
15299 | t clear |
---|
15300 | :clear |
---|
15301 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
15302 | t end |
---|
15303 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
15304 | :end' >>confcache |
---|
15305 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
15306 | if test -w "$cache_file"; then |
---|
15307 | if test "x$cache_file" != "x/dev/null"; then |
---|
15308 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
15309 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
15310 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
15311 | cat confcache >"$cache_file" |
---|
15312 | else |
---|
15313 | case $cache_file in #( |
---|
15314 | */* | ?:*) |
---|
15315 | mv -f confcache "$cache_file"$$ && |
---|
15316 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
15317 | *) |
---|
15318 | mv -f confcache "$cache_file" ;; |
---|
15319 | esac |
---|
15320 | fi |
---|
15321 | fi |
---|
15322 | else |
---|
15323 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
15324 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
15325 | fi |
---|
15326 | fi |
---|
15327 | rm -f confcache |
---|
15328 | |
---|
15329 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
15330 | # Let make expand exec_prefix. |
---|
15331 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
15332 | |
---|
15333 | DEFS=-DHAVE_CONFIG_H |
---|
15334 | |
---|
15335 | ac_libobjs= |
---|
15336 | ac_ltlibobjs= |
---|
15337 | U= |
---|
15338 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
15339 | # 1. Remove the extension, and $U if already installed. |
---|
15340 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
15341 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
15342 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
15343 | # will be set to the directory where LIBOBJS objects are built. |
---|
15344 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
15345 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
15346 | done |
---|
15347 | LIBOBJS=$ac_libobjs |
---|
15348 | |
---|
15349 | LTLIBOBJS=$ac_ltlibobjs |
---|
15350 | |
---|
15351 | |
---|
15352 | if test -n "$EXEEXT"; then |
---|
15353 | am__EXEEXT_TRUE= |
---|
15354 | am__EXEEXT_FALSE='#' |
---|
15355 | else |
---|
15356 | am__EXEEXT_TRUE='#' |
---|
15357 | am__EXEEXT_FALSE= |
---|
15358 | fi |
---|
15359 | |
---|
15360 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
---|
15361 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
---|
15362 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
15363 | fi |
---|
15364 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
---|
15365 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
---|
15366 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
15367 | fi |
---|
15368 | if test -z "${BUILD_DB4_DRV_TRUE}" && test -z "${BUILD_DB4_DRV_FALSE}"; then |
---|
15369 | as_fn_error $? "conditional \"BUILD_DB4_DRV\" was never defined. |
---|
15370 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
15371 | fi |
---|
15372 | if test -z "${BUILD_DB3_DRV_TRUE}" && test -z "${BUILD_DB3_DRV_FALSE}"; then |
---|
15373 | as_fn_error $? "conditional \"BUILD_DB3_DRV\" was never defined. |
---|
15374 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
15375 | fi |
---|
15376 | if test -z "${BUILD_HASH_DRV_TRUE}" && test -z "${BUILD_HASH_DRV_FALSE}"; then |
---|
15377 | as_fn_error $? "conditional \"BUILD_HASH_DRV\" was never defined. |
---|
15378 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
15379 | fi |
---|
15380 | if test -z "${BUILD_SQLITE_DRV_TRUE}" && test -z "${BUILD_SQLITE_DRV_FALSE}"; then |
---|
15381 | as_fn_error $? "conditional \"BUILD_SQLITE_DRV\" was never defined. |
---|
15382 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
15383 | fi |
---|
15384 | if test -z "${BUILD_SQLITE3_DRV_TRUE}" && test -z "${BUILD_SQLITE3_DRV_FALSE}"; then |
---|
15385 | as_fn_error $? "conditional \"BUILD_SQLITE3_DRV\" was never defined. |
---|
15386 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
15387 | fi |
---|
15388 | if test -z "${BUILD_MYSQL_DRV_TRUE}" && test -z "${BUILD_MYSQL_DRV_FALSE}"; then |
---|
15389 | as_fn_error $? "conditional \"BUILD_MYSQL_DRV\" was never defined. |
---|
15390 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
15391 | fi |
---|
15392 | if test -z "${BUILD_PGSQL_DRV_TRUE}" && test -z "${BUILD_PGSQL_DRV_FALSE}"; then |
---|
15393 | as_fn_error $? "conditional \"BUILD_PGSQL_DRV\" was never defined. |
---|
15394 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
15395 | fi |
---|
15396 | if test -z "${STATIC_DRIVER_TRUE}" && test -z "${STATIC_DRIVER_FALSE}"; then |
---|
15397 | as_fn_error $? "conditional \"STATIC_DRIVER\" was never defined. |
---|
15398 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
15399 | fi |
---|
15400 | if test -z "${DYNAMIC_DRIVER_TRUE}" && test -z "${DYNAMIC_DRIVER_FALSE}"; then |
---|
15401 | as_fn_error $? "conditional \"DYNAMIC_DRIVER\" was never defined. |
---|
15402 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
15403 | fi |
---|
15404 | if test -z "${BUILD_EXT_LOOKUP_TRUE}" && test -z "${BUILD_EXT_LOOKUP_FALSE}"; then |
---|
15405 | as_fn_error $? "conditional \"BUILD_EXT_LOOKUP\" was never defined. |
---|
15406 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
---|
15407 | fi |
---|
15408 | |
---|
15409 | : "${CONFIG_STATUS=./config.status}" |
---|
15410 | ac_write_fail=0 |
---|
15411 | ac_clean_files_save=$ac_clean_files |
---|
15412 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
15413 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
15414 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
15415 | as_write_fail=0 |
---|
15416 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
15417 | #! $SHELL |
---|
15418 | # Generated by $as_me. |
---|
15419 | # Run this file to recreate the current configuration. |
---|
15420 | # Compiler output produced by configure, useful for debugging |
---|
15421 | # configure, is in config.log if it exists. |
---|
15422 | |
---|
15423 | debug=false |
---|
15424 | ac_cs_recheck=false |
---|
15425 | ac_cs_silent=false |
---|
15426 | |
---|
15427 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
15428 | export SHELL |
---|
15429 | _ASEOF |
---|
15430 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
15431 | ## -------------------- ## |
---|
15432 | ## M4sh Initialization. ## |
---|
15433 | ## -------------------- ## |
---|
15434 | |
---|
15435 | # Be more Bourne compatible |
---|
15436 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
15437 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
15438 | emulate sh |
---|
15439 | NULLCMD=: |
---|
15440 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
15441 | # is contrary to our usage. Disable this feature. |
---|
15442 | alias -g '${1+"$@"}'='"$@"' |
---|
15443 | setopt NO_GLOB_SUBST |
---|
15444 | else |
---|
15445 | case `(set -o) 2>/dev/null` in #( |
---|
15446 | *posix*) : |
---|
15447 | set -o posix ;; #( |
---|
15448 | *) : |
---|
15449 | ;; |
---|
15450 | esac |
---|
15451 | fi |
---|
15452 | |
---|
15453 | |
---|
15454 | as_nl=' |
---|
15455 | ' |
---|
15456 | export as_nl |
---|
15457 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
15458 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
15459 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
15460 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
15461 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
15462 | # but without wasting forks for bash or zsh. |
---|
15463 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
15464 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
15465 | as_echo='print -r --' |
---|
15466 | as_echo_n='print -rn --' |
---|
15467 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
15468 | as_echo='printf %s\n' |
---|
15469 | as_echo_n='printf %s' |
---|
15470 | else |
---|
15471 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
15472 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
15473 | as_echo_n='/usr/ucb/echo -n' |
---|
15474 | else |
---|
15475 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
15476 | as_echo_n_body='eval |
---|
15477 | arg=$1; |
---|
15478 | case $arg in #( |
---|
15479 | *"$as_nl"*) |
---|
15480 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
15481 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
15482 | esac; |
---|
15483 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
15484 | ' |
---|
15485 | export as_echo_n_body |
---|
15486 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
15487 | fi |
---|
15488 | export as_echo_body |
---|
15489 | as_echo='sh -c $as_echo_body as_echo' |
---|
15490 | fi |
---|
15491 | |
---|
15492 | # The user is always right. |
---|
15493 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
15494 | PATH_SEPARATOR=: |
---|
15495 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
15496 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
15497 | PATH_SEPARATOR=';' |
---|
15498 | } |
---|
15499 | fi |
---|
15500 | |
---|
15501 | |
---|
15502 | # IFS |
---|
15503 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
15504 | # there to prevent editors from complaining about space-tab. |
---|
15505 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
15506 | # splitting by setting IFS to empty value.) |
---|
15507 | IFS=" "" $as_nl" |
---|
15508 | |
---|
15509 | # Find who we are. Look in the path if we contain no directory separator. |
---|
15510 | as_myself= |
---|
15511 | case $0 in #(( |
---|
15512 | *[\\/]* ) as_myself=$0 ;; |
---|
15513 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
15514 | for as_dir in $PATH |
---|
15515 | do |
---|
15516 | IFS=$as_save_IFS |
---|
15517 | test -z "$as_dir" && as_dir=. |
---|
15518 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
15519 | done |
---|
15520 | IFS=$as_save_IFS |
---|
15521 | |
---|
15522 | ;; |
---|
15523 | esac |
---|
15524 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
15525 | # in which case we are not to be found in the path. |
---|
15526 | if test "x$as_myself" = x; then |
---|
15527 | as_myself=$0 |
---|
15528 | fi |
---|
15529 | if test ! -f "$as_myself"; then |
---|
15530 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
15531 | exit 1 |
---|
15532 | fi |
---|
15533 | |
---|
15534 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
15535 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
15536 | # suppresses any "Segmentation fault" message there. '((' could |
---|
15537 | # trigger a bug in pdksh 5.2.14. |
---|
15538 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
15539 | do eval test x\${$as_var+set} = xset \ |
---|
15540 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
15541 | done |
---|
15542 | PS1='$ ' |
---|
15543 | PS2='> ' |
---|
15544 | PS4='+ ' |
---|
15545 | |
---|
15546 | # NLS nuisances. |
---|
15547 | LC_ALL=C |
---|
15548 | export LC_ALL |
---|
15549 | LANGUAGE=C |
---|
15550 | export LANGUAGE |
---|
15551 | |
---|
15552 | # CDPATH. |
---|
15553 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
15554 | |
---|
15555 | |
---|
15556 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
15557 | # ---------------------------------------- |
---|
15558 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
15559 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
15560 | # script with STATUS, using 1 if that was 0. |
---|
15561 | as_fn_error () |
---|
15562 | { |
---|
15563 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
15564 | if test "$4"; then |
---|
15565 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
15566 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
15567 | fi |
---|
15568 | $as_echo "$as_me: error: $2" >&2 |
---|
15569 | as_fn_exit $as_status |
---|
15570 | } # as_fn_error |
---|
15571 | |
---|
15572 | |
---|
15573 | # as_fn_set_status STATUS |
---|
15574 | # ----------------------- |
---|
15575 | # Set $? to STATUS, without forking. |
---|
15576 | as_fn_set_status () |
---|
15577 | { |
---|
15578 | return $1 |
---|
15579 | } # as_fn_set_status |
---|
15580 | |
---|
15581 | # as_fn_exit STATUS |
---|
15582 | # ----------------- |
---|
15583 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
15584 | as_fn_exit () |
---|
15585 | { |
---|
15586 | set +e |
---|
15587 | as_fn_set_status $1 |
---|
15588 | exit $1 |
---|
15589 | } # as_fn_exit |
---|
15590 | |
---|
15591 | # as_fn_unset VAR |
---|
15592 | # --------------- |
---|
15593 | # Portably unset VAR. |
---|
15594 | as_fn_unset () |
---|
15595 | { |
---|
15596 | { eval $1=; unset $1;} |
---|
15597 | } |
---|
15598 | as_unset=as_fn_unset |
---|
15599 | # as_fn_append VAR VALUE |
---|
15600 | # ---------------------- |
---|
15601 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
15602 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
15603 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
15604 | # implementations. |
---|
15605 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
15606 | eval 'as_fn_append () |
---|
15607 | { |
---|
15608 | eval $1+=\$2 |
---|
15609 | }' |
---|
15610 | else |
---|
15611 | as_fn_append () |
---|
15612 | { |
---|
15613 | eval $1=\$$1\$2 |
---|
15614 | } |
---|
15615 | fi # as_fn_append |
---|
15616 | |
---|
15617 | # as_fn_arith ARG... |
---|
15618 | # ------------------ |
---|
15619 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
15620 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
15621 | # must be portable across $(()) and expr. |
---|
15622 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
15623 | eval 'as_fn_arith () |
---|
15624 | { |
---|
15625 | as_val=$(( $* )) |
---|
15626 | }' |
---|
15627 | else |
---|
15628 | as_fn_arith () |
---|
15629 | { |
---|
15630 | as_val=`expr "$@" || test $? -eq 1` |
---|
15631 | } |
---|
15632 | fi # as_fn_arith |
---|
15633 | |
---|
15634 | |
---|
15635 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
15636 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
15637 | as_expr=expr |
---|
15638 | else |
---|
15639 | as_expr=false |
---|
15640 | fi |
---|
15641 | |
---|
15642 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
15643 | as_basename=basename |
---|
15644 | else |
---|
15645 | as_basename=false |
---|
15646 | fi |
---|
15647 | |
---|
15648 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
15649 | as_dirname=dirname |
---|
15650 | else |
---|
15651 | as_dirname=false |
---|
15652 | fi |
---|
15653 | |
---|
15654 | as_me=`$as_basename -- "$0" || |
---|
15655 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
15656 | X"$0" : 'X\(//\)$' \| \ |
---|
15657 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
15658 | $as_echo X/"$0" | |
---|
15659 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
15660 | s//\1/ |
---|
15661 | q |
---|
15662 | } |
---|
15663 | /^X\/\(\/\/\)$/{ |
---|
15664 | s//\1/ |
---|
15665 | q |
---|
15666 | } |
---|
15667 | /^X\/\(\/\).*/{ |
---|
15668 | s//\1/ |
---|
15669 | q |
---|
15670 | } |
---|
15671 | s/.*/./; q'` |
---|
15672 | |
---|
15673 | # Avoid depending upon Character Ranges. |
---|
15674 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
15675 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
15676 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
15677 | as_cr_digits='0123456789' |
---|
15678 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
15679 | |
---|
15680 | ECHO_C= ECHO_N= ECHO_T= |
---|
15681 | case `echo -n x` in #((((( |
---|
15682 | -n*) |
---|
15683 | case `echo 'xy\c'` in |
---|
15684 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
15685 | xy) ECHO_C='\c';; |
---|
15686 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
15687 | ECHO_T=' ';; |
---|
15688 | esac;; |
---|
15689 | *) |
---|
15690 | ECHO_N='-n';; |
---|
15691 | esac |
---|
15692 | |
---|
15693 | rm -f conf$$ conf$$.exe conf$$.file |
---|
15694 | if test -d conf$$.dir; then |
---|
15695 | rm -f conf$$.dir/conf$$.file |
---|
15696 | else |
---|
15697 | rm -f conf$$.dir |
---|
15698 | mkdir conf$$.dir 2>/dev/null |
---|
15699 | fi |
---|
15700 | if (echo >conf$$.file) 2>/dev/null; then |
---|
15701 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
15702 | as_ln_s='ln -s' |
---|
15703 | # ... but there are two gotchas: |
---|
15704 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
15705 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
15706 | # In both cases, we have to default to `cp -p'. |
---|
15707 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
15708 | as_ln_s='cp -p' |
---|
15709 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
15710 | as_ln_s=ln |
---|
15711 | else |
---|
15712 | as_ln_s='cp -p' |
---|
15713 | fi |
---|
15714 | else |
---|
15715 | as_ln_s='cp -p' |
---|
15716 | fi |
---|
15717 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
15718 | rmdir conf$$.dir 2>/dev/null |
---|
15719 | |
---|
15720 | |
---|
15721 | # as_fn_mkdir_p |
---|
15722 | # ------------- |
---|
15723 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
15724 | as_fn_mkdir_p () |
---|
15725 | { |
---|
15726 | |
---|
15727 | case $as_dir in #( |
---|
15728 | -*) as_dir=./$as_dir;; |
---|
15729 | esac |
---|
15730 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
15731 | as_dirs= |
---|
15732 | while :; do |
---|
15733 | case $as_dir in #( |
---|
15734 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
15735 | *) as_qdir=$as_dir;; |
---|
15736 | esac |
---|
15737 | as_dirs="'$as_qdir' $as_dirs" |
---|
15738 | as_dir=`$as_dirname -- "$as_dir" || |
---|
15739 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
15740 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
15741 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
15742 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
15743 | $as_echo X"$as_dir" | |
---|
15744 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
15745 | s//\1/ |
---|
15746 | q |
---|
15747 | } |
---|
15748 | /^X\(\/\/\)[^/].*/{ |
---|
15749 | s//\1/ |
---|
15750 | q |
---|
15751 | } |
---|
15752 | /^X\(\/\/\)$/{ |
---|
15753 | s//\1/ |
---|
15754 | q |
---|
15755 | } |
---|
15756 | /^X\(\/\).*/{ |
---|
15757 | s//\1/ |
---|
15758 | q |
---|
15759 | } |
---|
15760 | s/.*/./; q'` |
---|
15761 | test -d "$as_dir" && break |
---|
15762 | done |
---|
15763 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
15764 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
15765 | |
---|
15766 | |
---|
15767 | } # as_fn_mkdir_p |
---|
15768 | if mkdir -p . 2>/dev/null; then |
---|
15769 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
15770 | else |
---|
15771 | test -d ./-p && rmdir ./-p |
---|
15772 | as_mkdir_p=false |
---|
15773 | fi |
---|
15774 | |
---|
15775 | if test -x / >/dev/null 2>&1; then |
---|
15776 | as_test_x='test -x' |
---|
15777 | else |
---|
15778 | if ls -dL / >/dev/null 2>&1; then |
---|
15779 | as_ls_L_option=L |
---|
15780 | else |
---|
15781 | as_ls_L_option= |
---|
15782 | fi |
---|
15783 | as_test_x=' |
---|
15784 | eval sh -c '\'' |
---|
15785 | if test -d "$1"; then |
---|
15786 | test -d "$1/."; |
---|
15787 | else |
---|
15788 | case $1 in #( |
---|
15789 | -*)set "./$1";; |
---|
15790 | esac; |
---|
15791 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
15792 | ???[sx]*):;;*)false;;esac;fi |
---|
15793 | '\'' sh |
---|
15794 | ' |
---|
15795 | fi |
---|
15796 | as_executable_p=$as_test_x |
---|
15797 | |
---|
15798 | # Sed expression to map a string onto a valid CPP name. |
---|
15799 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
15800 | |
---|
15801 | # Sed expression to map a string onto a valid variable name. |
---|
15802 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
15803 | |
---|
15804 | |
---|
15805 | exec 6>&1 |
---|
15806 | ## ----------------------------------- ## |
---|
15807 | ## Main body of $CONFIG_STATUS script. ## |
---|
15808 | ## ----------------------------------- ## |
---|
15809 | _ASEOF |
---|
15810 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
15811 | |
---|
15812 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
15813 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
15814 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
15815 | # values after options handling. |
---|
15816 | ac_log=" |
---|
15817 | This file was extended by dspam $as_me 3.10.2, which was |
---|
15818 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
15819 | |
---|
15820 | CONFIG_FILES = $CONFIG_FILES |
---|
15821 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
15822 | CONFIG_LINKS = $CONFIG_LINKS |
---|
15823 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
15824 | $ $0 $@ |
---|
15825 | |
---|
15826 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
15827 | " |
---|
15828 | |
---|
15829 | _ACEOF |
---|
15830 | |
---|
15831 | case $ac_config_files in *" |
---|
15832 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
15833 | esac |
---|
15834 | |
---|
15835 | case $ac_config_headers in *" |
---|
15836 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
---|
15837 | esac |
---|
15838 | |
---|
15839 | |
---|
15840 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
15841 | # Files that config.status was made for. |
---|
15842 | config_files="$ac_config_files" |
---|
15843 | config_headers="$ac_config_headers" |
---|
15844 | config_commands="$ac_config_commands" |
---|
15845 | |
---|
15846 | _ACEOF |
---|
15847 | |
---|
15848 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
15849 | ac_cs_usage="\ |
---|
15850 | \`$as_me' instantiates files and other configuration actions |
---|
15851 | from templates according to the current configuration. Unless the files |
---|
15852 | and actions are specified as TAGs, all are instantiated by default. |
---|
15853 | |
---|
15854 | Usage: $0 [OPTION]... [TAG]... |
---|
15855 | |
---|
15856 | -h, --help print this help, then exit |
---|
15857 | -V, --version print version number and configuration settings, then exit |
---|
15858 | --config print configuration, then exit |
---|
15859 | -q, --quiet, --silent |
---|
15860 | do not print progress messages |
---|
15861 | -d, --debug don't remove temporary files |
---|
15862 | --recheck update $as_me by reconfiguring in the same conditions |
---|
15863 | --file=FILE[:TEMPLATE] |
---|
15864 | instantiate the configuration file FILE |
---|
15865 | --header=FILE[:TEMPLATE] |
---|
15866 | instantiate the configuration header FILE |
---|
15867 | |
---|
15868 | Configuration files: |
---|
15869 | $config_files |
---|
15870 | |
---|
15871 | Configuration headers: |
---|
15872 | $config_headers |
---|
15873 | |
---|
15874 | Configuration commands: |
---|
15875 | $config_commands |
---|
15876 | |
---|
15877 | Report bugs to <dspam-devel@lists.sourceforge.net>." |
---|
15878 | |
---|
15879 | _ACEOF |
---|
15880 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
15881 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
15882 | ac_cs_version="\\ |
---|
15883 | dspam config.status 3.10.2 |
---|
15884 | configured by $0, generated by GNU Autoconf 2.68, |
---|
15885 | with options \\"\$ac_cs_config\\" |
---|
15886 | |
---|
15887 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
15888 | This config.status script is free software; the Free Software Foundation |
---|
15889 | gives unlimited permission to copy, distribute and modify it." |
---|
15890 | |
---|
15891 | ac_pwd='$ac_pwd' |
---|
15892 | srcdir='$srcdir' |
---|
15893 | INSTALL='$INSTALL' |
---|
15894 | MKDIR_P='$MKDIR_P' |
---|
15895 | AWK='$AWK' |
---|
15896 | test -n "\$AWK" || AWK=awk |
---|
15897 | _ACEOF |
---|
15898 | |
---|
15899 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
15900 | # The default lists apply if the user does not specify any file. |
---|
15901 | ac_need_defaults=: |
---|
15902 | while test $# != 0 |
---|
15903 | do |
---|
15904 | case $1 in |
---|
15905 | --*=?*) |
---|
15906 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
15907 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
15908 | ac_shift=: |
---|
15909 | ;; |
---|
15910 | --*=) |
---|
15911 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
15912 | ac_optarg= |
---|
15913 | ac_shift=: |
---|
15914 | ;; |
---|
15915 | *) |
---|
15916 | ac_option=$1 |
---|
15917 | ac_optarg=$2 |
---|
15918 | ac_shift=shift |
---|
15919 | ;; |
---|
15920 | esac |
---|
15921 | |
---|
15922 | case $ac_option in |
---|
15923 | # Handling of the options. |
---|
15924 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
15925 | ac_cs_recheck=: ;; |
---|
15926 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
15927 | $as_echo "$ac_cs_version"; exit ;; |
---|
15928 | --config | --confi | --conf | --con | --co | --c ) |
---|
15929 | $as_echo "$ac_cs_config"; exit ;; |
---|
15930 | --debug | --debu | --deb | --de | --d | -d ) |
---|
15931 | debug=: ;; |
---|
15932 | --file | --fil | --fi | --f ) |
---|
15933 | $ac_shift |
---|
15934 | case $ac_optarg in |
---|
15935 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
15936 | '') as_fn_error $? "missing file argument" ;; |
---|
15937 | esac |
---|
15938 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
15939 | ac_need_defaults=false;; |
---|
15940 | --header | --heade | --head | --hea ) |
---|
15941 | $ac_shift |
---|
15942 | case $ac_optarg in |
---|
15943 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
15944 | esac |
---|
15945 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
---|
15946 | ac_need_defaults=false;; |
---|
15947 | --he | --h) |
---|
15948 | # Conflict between --help and --header |
---|
15949 | as_fn_error $? "ambiguous option: \`$1' |
---|
15950 | Try \`$0 --help' for more information.";; |
---|
15951 | --help | --hel | -h ) |
---|
15952 | $as_echo "$ac_cs_usage"; exit ;; |
---|
15953 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
15954 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
15955 | ac_cs_silent=: ;; |
---|
15956 | |
---|
15957 | # This is an error. |
---|
15958 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
15959 | Try \`$0 --help' for more information." ;; |
---|
15960 | |
---|
15961 | *) as_fn_append ac_config_targets " $1" |
---|
15962 | ac_need_defaults=false ;; |
---|
15963 | |
---|
15964 | esac |
---|
15965 | shift |
---|
15966 | done |
---|
15967 | |
---|
15968 | ac_configure_extra_args= |
---|
15969 | |
---|
15970 | if $ac_cs_silent; then |
---|
15971 | exec 6>/dev/null |
---|
15972 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
15973 | fi |
---|
15974 | |
---|
15975 | _ACEOF |
---|
15976 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
15977 | if \$ac_cs_recheck; then |
---|
15978 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
15979 | shift |
---|
15980 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
15981 | CONFIG_SHELL='$SHELL' |
---|
15982 | export CONFIG_SHELL |
---|
15983 | exec "\$@" |
---|
15984 | fi |
---|
15985 | |
---|
15986 | _ACEOF |
---|
15987 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
15988 | exec 5>>config.log |
---|
15989 | { |
---|
15990 | echo |
---|
15991 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
15992 | ## Running $as_me. ## |
---|
15993 | _ASBOX |
---|
15994 | $as_echo "$ac_log" |
---|
15995 | } >&5 |
---|
15996 | |
---|
15997 | _ACEOF |
---|
15998 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
15999 | # |
---|
16000 | # INIT-COMMANDS |
---|
16001 | # |
---|
16002 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
---|
16003 | |
---|
16004 | |
---|
16005 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
---|
16006 | # if CDPATH is set. |
---|
16007 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
16008 | |
---|
16009 | sed_quote_subst='$sed_quote_subst' |
---|
16010 | double_quote_subst='$double_quote_subst' |
---|
16011 | delay_variable_subst='$delay_variable_subst' |
---|
16012 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
---|
16013 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
---|
16014 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
---|
16015 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
---|
16016 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
---|
16017 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
---|
16018 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
---|
16019 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
---|
16020 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
---|
16021 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
---|
16022 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
---|
16023 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
---|
16024 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
---|
16025 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
---|
16026 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
---|
16027 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
---|
16028 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
---|
16029 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
---|
16030 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
---|
16031 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
---|
16032 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
---|
16033 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
---|
16034 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
---|
16035 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
---|
16036 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
---|
16037 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
---|
16038 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
---|
16039 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
---|
16040 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
---|
16041 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
---|
16042 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
---|
16043 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
---|
16044 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
---|
16045 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
---|
16046 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
---|
16047 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
---|
16048 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
---|
16049 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
---|
16050 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
---|
16051 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
---|
16052 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
---|
16053 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
---|
16054 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
---|
16055 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
---|
16056 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
---|
16057 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
---|
16058 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
---|
16059 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
---|
16060 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
---|
16061 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
---|
16062 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
---|
16063 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
---|
16064 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
---|
16065 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
---|
16066 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
---|
16067 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' |
---|
16068 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
---|
16069 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
---|
16070 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
---|
16071 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
---|
16072 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
---|
16073 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
---|
16074 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
---|
16075 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
---|
16076 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
---|
16077 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
---|
16078 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
---|
16079 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
---|
16080 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
---|
16081 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
---|
16082 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
---|
16083 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
---|
16084 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
---|
16085 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
---|
16086 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
---|
16087 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
---|
16088 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
---|
16089 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
---|
16090 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
---|
16091 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
---|
16092 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
---|
16093 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
---|
16094 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
---|
16095 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
---|
16096 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
---|
16097 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
---|
16098 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
---|
16099 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
---|
16100 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
---|
16101 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
---|
16102 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' |
---|
16103 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
---|
16104 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
---|
16105 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
---|
16106 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
---|
16107 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
---|
16108 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
---|
16109 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
---|
16110 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
---|
16111 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
---|
16112 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
---|
16113 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
---|
16114 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
---|
16115 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
---|
16116 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
---|
16117 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
---|
16118 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
---|
16119 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
---|
16120 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
---|
16121 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
---|
16122 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
---|
16123 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
---|
16124 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
---|
16125 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
---|
16126 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
---|
16127 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
---|
16128 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
---|
16129 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
---|
16130 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
---|
16131 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
---|
16132 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
---|
16133 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
---|
16134 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
---|
16135 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
---|
16136 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
---|
16137 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
---|
16138 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
---|
16139 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
---|
16140 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
---|
16141 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
---|
16142 | |
---|
16143 | LTCC='$LTCC' |
---|
16144 | LTCFLAGS='$LTCFLAGS' |
---|
16145 | compiler='$compiler_DEFAULT' |
---|
16146 | |
---|
16147 | # A function that is used when there is no print builtin or printf. |
---|
16148 | func_fallback_echo () |
---|
16149 | { |
---|
16150 | eval 'cat <<_LTECHO_EOF |
---|
16151 | \$1 |
---|
16152 | _LTECHO_EOF' |
---|
16153 | } |
---|
16154 | |
---|
16155 | # Quote evaled strings. |
---|
16156 | for var in SHELL \ |
---|
16157 | ECHO \ |
---|
16158 | SED \ |
---|
16159 | GREP \ |
---|
16160 | EGREP \ |
---|
16161 | FGREP \ |
---|
16162 | LD \ |
---|
16163 | NM \ |
---|
16164 | LN_S \ |
---|
16165 | lt_SP2NL \ |
---|
16166 | lt_NL2SP \ |
---|
16167 | reload_flag \ |
---|
16168 | OBJDUMP \ |
---|
16169 | deplibs_check_method \ |
---|
16170 | file_magic_cmd \ |
---|
16171 | file_magic_glob \ |
---|
16172 | want_nocaseglob \ |
---|
16173 | DLLTOOL \ |
---|
16174 | sharedlib_from_linklib_cmd \ |
---|
16175 | AR \ |
---|
16176 | AR_FLAGS \ |
---|
16177 | archiver_list_spec \ |
---|
16178 | STRIP \ |
---|
16179 | RANLIB \ |
---|
16180 | CC \ |
---|
16181 | CFLAGS \ |
---|
16182 | compiler \ |
---|
16183 | lt_cv_sys_global_symbol_pipe \ |
---|
16184 | lt_cv_sys_global_symbol_to_cdecl \ |
---|
16185 | lt_cv_sys_global_symbol_to_c_name_address \ |
---|
16186 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
---|
16187 | nm_file_list_spec \ |
---|
16188 | lt_prog_compiler_no_builtin_flag \ |
---|
16189 | lt_prog_compiler_pic \ |
---|
16190 | lt_prog_compiler_wl \ |
---|
16191 | lt_prog_compiler_static \ |
---|
16192 | lt_cv_prog_compiler_c_o \ |
---|
16193 | need_locks \ |
---|
16194 | MANIFEST_TOOL \ |
---|
16195 | DSYMUTIL \ |
---|
16196 | NMEDIT \ |
---|
16197 | LIPO \ |
---|
16198 | OTOOL \ |
---|
16199 | OTOOL64 \ |
---|
16200 | shrext_cmds \ |
---|
16201 | export_dynamic_flag_spec \ |
---|
16202 | whole_archive_flag_spec \ |
---|
16203 | compiler_needs_object \ |
---|
16204 | with_gnu_ld \ |
---|
16205 | allow_undefined_flag \ |
---|
16206 | no_undefined_flag \ |
---|
16207 | hardcode_libdir_flag_spec \ |
---|
16208 | hardcode_libdir_flag_spec_ld \ |
---|
16209 | hardcode_libdir_separator \ |
---|
16210 | exclude_expsyms \ |
---|
16211 | include_expsyms \ |
---|
16212 | file_list_spec \ |
---|
16213 | variables_saved_for_relink \ |
---|
16214 | libname_spec \ |
---|
16215 | library_names_spec \ |
---|
16216 | soname_spec \ |
---|
16217 | install_override_mode \ |
---|
16218 | finish_eval \ |
---|
16219 | old_striplib \ |
---|
16220 | striplib; do |
---|
16221 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
---|
16222 | *[\\\\\\\`\\"\\\$]*) |
---|
16223 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
---|
16224 | ;; |
---|
16225 | *) |
---|
16226 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
---|
16227 | ;; |
---|
16228 | esac |
---|
16229 | done |
---|
16230 | |
---|
16231 | # Double-quote double-evaled strings. |
---|
16232 | for var in reload_cmds \ |
---|
16233 | old_postinstall_cmds \ |
---|
16234 | old_postuninstall_cmds \ |
---|
16235 | old_archive_cmds \ |
---|
16236 | extract_expsyms_cmds \ |
---|
16237 | old_archive_from_new_cmds \ |
---|
16238 | old_archive_from_expsyms_cmds \ |
---|
16239 | archive_cmds \ |
---|
16240 | archive_expsym_cmds \ |
---|
16241 | module_cmds \ |
---|
16242 | module_expsym_cmds \ |
---|
16243 | export_symbols_cmds \ |
---|
16244 | prelink_cmds \ |
---|
16245 | postlink_cmds \ |
---|
16246 | postinstall_cmds \ |
---|
16247 | postuninstall_cmds \ |
---|
16248 | finish_cmds \ |
---|
16249 | sys_lib_search_path_spec \ |
---|
16250 | sys_lib_dlsearch_path_spec; do |
---|
16251 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
---|
16252 | *[\\\\\\\`\\"\\\$]*) |
---|
16253 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
---|
16254 | ;; |
---|
16255 | *) |
---|
16256 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
---|
16257 | ;; |
---|
16258 | esac |
---|
16259 | done |
---|
16260 | |
---|
16261 | ac_aux_dir='$ac_aux_dir' |
---|
16262 | xsi_shell='$xsi_shell' |
---|
16263 | lt_shell_append='$lt_shell_append' |
---|
16264 | |
---|
16265 | # See if we are running on zsh, and set the options which allow our |
---|
16266 | # commands through without removal of \ escapes INIT. |
---|
16267 | if test -n "\${ZSH_VERSION+set}" ; then |
---|
16268 | setopt NO_GLOB_SUBST |
---|
16269 | fi |
---|
16270 | |
---|
16271 | |
---|
16272 | PACKAGE='$PACKAGE' |
---|
16273 | VERSION='$VERSION' |
---|
16274 | TIMESTAMP='$TIMESTAMP' |
---|
16275 | RM='$RM' |
---|
16276 | ofile='$ofile' |
---|
16277 | |
---|
16278 | |
---|
16279 | |
---|
16280 | |
---|
16281 | _ACEOF |
---|
16282 | |
---|
16283 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
16284 | |
---|
16285 | # Handling of arguments. |
---|
16286 | for ac_config_target in $ac_config_targets |
---|
16287 | do |
---|
16288 | case $ac_config_target in |
---|
16289 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
---|
16290 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
---|
16291 | "src/auto-config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/auto-config.h" ;; |
---|
16292 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
16293 | "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;; |
---|
16294 | "webui/Makefile") CONFIG_FILES="$CONFIG_FILES webui/Makefile" ;; |
---|
16295 | "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; |
---|
16296 | "src/tools.mysql_drv/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools.mysql_drv/Makefile" ;; |
---|
16297 | "txt/Makefile") CONFIG_FILES="$CONFIG_FILES txt/Makefile" ;; |
---|
16298 | "src/tools.pgsql_drv/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools.pgsql_drv/Makefile" ;; |
---|
16299 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
16300 | "webui/cgi-bin/templates/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/templates/Makefile" ;; |
---|
16301 | "webui/cgi-bin/templates/cs/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/templates/cs/Makefile" ;; |
---|
16302 | "webui/cgi-bin/templates/de/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/templates/de/Makefile" ;; |
---|
16303 | "webui/cgi-bin/templates/es-es/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/templates/es-es/Makefile" ;; |
---|
16304 | "webui/cgi-bin/templates/fr/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/templates/fr/Makefile" ;; |
---|
16305 | "webui/cgi-bin/templates/he/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/templates/he/Makefile" ;; |
---|
16306 | "webui/cgi-bin/templates/pt-br/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/templates/pt-br/Makefile" ;; |
---|
16307 | "webui/cgi-bin/templates/ro/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/templates/ro/Makefile" ;; |
---|
16308 | "webui/cgi-bin/templates/ru/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/templates/ru/Makefile" ;; |
---|
16309 | "src/tools.sqlite_drv/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools.sqlite_drv/Makefile" ;; |
---|
16310 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; |
---|
16311 | "src/dspam.pc") CONFIG_FILES="$CONFIG_FILES src/dspam.pc" ;; |
---|
16312 | "src/dspam-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES src/dspam-uninstalled.pc" ;; |
---|
16313 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
---|
16314 | "src/tools.hash_drv/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools.hash_drv/Makefile" ;; |
---|
16315 | "webui/cgi-bin/Makefile") CONFIG_FILES="$CONFIG_FILES webui/cgi-bin/Makefile" ;; |
---|
16316 | "webui/htdocs/Makefile") CONFIG_FILES="$CONFIG_FILES webui/htdocs/Makefile" ;; |
---|
16317 | "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; |
---|
16318 | |
---|
16319 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
16320 | esac |
---|
16321 | done |
---|
16322 | |
---|
16323 | |
---|
16324 | # If the user did not use the arguments to specify the items to instantiate, |
---|
16325 | # then the envvar interface is used. Set only those that are not. |
---|
16326 | # We use the long form for the default assignment because of an extremely |
---|
16327 | # bizarre bug on SunOS 4.1.3. |
---|
16328 | if $ac_need_defaults; then |
---|
16329 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
16330 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
---|
16331 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
---|
16332 | fi |
---|
16333 | |
---|
16334 | # Have a temporary directory for convenience. Make it in the build tree |
---|
16335 | # simply because there is no reason against having it here, and in addition, |
---|
16336 | # creating and moving files from /tmp can sometimes cause problems. |
---|
16337 | # Hook for its removal unless debugging. |
---|
16338 | # Note that there is a small window in which the directory will not be cleaned: |
---|
16339 | # after its creation but before its name has been assigned to `$tmp'. |
---|
16340 | $debug || |
---|
16341 | { |
---|
16342 | tmp= ac_tmp= |
---|
16343 | trap 'exit_status=$? |
---|
16344 | : "${ac_tmp:=$tmp}" |
---|
16345 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
16346 | ' 0 |
---|
16347 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
16348 | } |
---|
16349 | # Create a (secure) tmp directory for tmp files. |
---|
16350 | |
---|
16351 | { |
---|
16352 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
16353 | test -d "$tmp" |
---|
16354 | } || |
---|
16355 | { |
---|
16356 | tmp=./conf$$-$RANDOM |
---|
16357 | (umask 077 && mkdir "$tmp") |
---|
16358 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
16359 | ac_tmp=$tmp |
---|
16360 | |
---|
16361 | # Set up the scripts for CONFIG_FILES section. |
---|
16362 | # No need to generate them if there are no CONFIG_FILES. |
---|
16363 | # This happens for instance with `./config.status config.h'. |
---|
16364 | if test -n "$CONFIG_FILES"; then |
---|
16365 | |
---|
16366 | |
---|
16367 | ac_cr=`echo X | tr X '\015'` |
---|
16368 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
16369 | # But we know of no other shell where ac_cr would be empty at this |
---|
16370 | # point, so we can use a bashism as a fallback. |
---|
16371 | if test "x$ac_cr" = x; then |
---|
16372 | eval ac_cr=\$\'\\r\' |
---|
16373 | fi |
---|
16374 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
16375 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
16376 | ac_cs_awk_cr='\\r' |
---|
16377 | else |
---|
16378 | ac_cs_awk_cr=$ac_cr |
---|
16379 | fi |
---|
16380 | |
---|
16381 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
16382 | _ACEOF |
---|
16383 | |
---|
16384 | |
---|
16385 | { |
---|
16386 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
16387 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
16388 | echo "_ACEOF" |
---|
16389 | } >conf$$subs.sh || |
---|
16390 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
16391 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
16392 | ac_delim='%!_!# ' |
---|
16393 | for ac_last_try in false false false false false :; do |
---|
16394 | . ./conf$$subs.sh || |
---|
16395 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
16396 | |
---|
16397 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
16398 | if test $ac_delim_n = $ac_delim_num; then |
---|
16399 | break |
---|
16400 | elif $ac_last_try; then |
---|
16401 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
16402 | else |
---|
16403 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
16404 | fi |
---|
16405 | done |
---|
16406 | rm -f conf$$subs.sh |
---|
16407 | |
---|
16408 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
16409 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
16410 | _ACEOF |
---|
16411 | sed -n ' |
---|
16412 | h |
---|
16413 | s/^/S["/; s/!.*/"]=/ |
---|
16414 | p |
---|
16415 | g |
---|
16416 | s/^[^!]*!// |
---|
16417 | :repl |
---|
16418 | t repl |
---|
16419 | s/'"$ac_delim"'$// |
---|
16420 | t delim |
---|
16421 | :nl |
---|
16422 | h |
---|
16423 | s/\(.\{148\}\)..*/\1/ |
---|
16424 | t more1 |
---|
16425 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
16426 | p |
---|
16427 | n |
---|
16428 | b repl |
---|
16429 | :more1 |
---|
16430 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
16431 | p |
---|
16432 | g |
---|
16433 | s/.\{148\}// |
---|
16434 | t nl |
---|
16435 | :delim |
---|
16436 | h |
---|
16437 | s/\(.\{148\}\)..*/\1/ |
---|
16438 | t more2 |
---|
16439 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
16440 | p |
---|
16441 | b |
---|
16442 | :more2 |
---|
16443 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
16444 | p |
---|
16445 | g |
---|
16446 | s/.\{148\}// |
---|
16447 | t delim |
---|
16448 | ' <conf$$subs.awk | sed ' |
---|
16449 | /^[^""]/{ |
---|
16450 | N |
---|
16451 | s/\n// |
---|
16452 | } |
---|
16453 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
16454 | rm -f conf$$subs.awk |
---|
16455 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
16456 | _ACAWK |
---|
16457 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
16458 | for (key in S) S_is_set[key] = 1 |
---|
16459 | FS = "" |
---|
16460 | |
---|
16461 | } |
---|
16462 | { |
---|
16463 | line = $ 0 |
---|
16464 | nfields = split(line, field, "@") |
---|
16465 | substed = 0 |
---|
16466 | len = length(field[1]) |
---|
16467 | for (i = 2; i < nfields; i++) { |
---|
16468 | key = field[i] |
---|
16469 | keylen = length(key) |
---|
16470 | if (S_is_set[key]) { |
---|
16471 | value = S[key] |
---|
16472 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
16473 | len += length(value) + length(field[++i]) |
---|
16474 | substed = 1 |
---|
16475 | } else |
---|
16476 | len += 1 + keylen |
---|
16477 | } |
---|
16478 | |
---|
16479 | print line |
---|
16480 | } |
---|
16481 | |
---|
16482 | _ACAWK |
---|
16483 | _ACEOF |
---|
16484 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
16485 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
16486 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
16487 | else |
---|
16488 | cat |
---|
16489 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
16490 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
16491 | _ACEOF |
---|
16492 | |
---|
16493 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
16494 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
16495 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
16496 | # (actually we leave an empty line to preserve line numbers). |
---|
16497 | if test "x$srcdir" = x.; then |
---|
16498 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
16499 | h |
---|
16500 | s/// |
---|
16501 | s/^/:/ |
---|
16502 | s/[ ]*$/:/ |
---|
16503 | s/:\$(srcdir):/:/g |
---|
16504 | s/:\${srcdir}:/:/g |
---|
16505 | s/:@srcdir@:/:/g |
---|
16506 | s/^:*// |
---|
16507 | s/:*$// |
---|
16508 | x |
---|
16509 | s/\(=[ ]*\).*/\1/ |
---|
16510 | G |
---|
16511 | s/\n// |
---|
16512 | s/^[^=]*=[ ]*$// |
---|
16513 | }' |
---|
16514 | fi |
---|
16515 | |
---|
16516 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
16517 | fi # test -n "$CONFIG_FILES" |
---|
16518 | |
---|
16519 | # Set up the scripts for CONFIG_HEADERS section. |
---|
16520 | # No need to generate them if there are no CONFIG_HEADERS. |
---|
16521 | # This happens for instance with `./config.status Makefile'. |
---|
16522 | if test -n "$CONFIG_HEADERS"; then |
---|
16523 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
---|
16524 | BEGIN { |
---|
16525 | _ACEOF |
---|
16526 | |
---|
16527 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
---|
16528 | # here-document in config.status, that substitutes the proper values into |
---|
16529 | # config.h.in to produce config.h. |
---|
16530 | |
---|
16531 | # Create a delimiter string that does not exist in confdefs.h, to ease |
---|
16532 | # handling of long lines. |
---|
16533 | ac_delim='%!_!# ' |
---|
16534 | for ac_last_try in false false :; do |
---|
16535 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
---|
16536 | if test -z "$ac_tt"; then |
---|
16537 | break |
---|
16538 | elif $ac_last_try; then |
---|
16539 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
---|
16540 | else |
---|
16541 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
16542 | fi |
---|
16543 | done |
---|
16544 | |
---|
16545 | # For the awk script, D is an array of macro values keyed by name, |
---|
16546 | # likewise P contains macro parameters if any. Preserve backslash |
---|
16547 | # newline sequences. |
---|
16548 | |
---|
16549 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
---|
16550 | sed -n ' |
---|
16551 | s/.\{148\}/&'"$ac_delim"'/g |
---|
16552 | t rset |
---|
16553 | :rset |
---|
16554 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
---|
16555 | t def |
---|
16556 | d |
---|
16557 | :def |
---|
16558 | s/\\$// |
---|
16559 | t bsnl |
---|
16560 | s/["\\]/\\&/g |
---|
16561 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
16562 | D["\1"]=" \3"/p |
---|
16563 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
---|
16564 | d |
---|
16565 | :bsnl |
---|
16566 | s/["\\]/\\&/g |
---|
16567 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
---|
16568 | D["\1"]=" \3\\\\\\n"\\/p |
---|
16569 | t cont |
---|
16570 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
---|
16571 | t cont |
---|
16572 | d |
---|
16573 | :cont |
---|
16574 | n |
---|
16575 | s/.\{148\}/&'"$ac_delim"'/g |
---|
16576 | t clear |
---|
16577 | :clear |
---|
16578 | s/\\$// |
---|
16579 | t bsnlc |
---|
16580 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
---|
16581 | d |
---|
16582 | :bsnlc |
---|
16583 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
---|
16584 | b cont |
---|
16585 | ' <confdefs.h | sed ' |
---|
16586 | s/'"$ac_delim"'/"\\\ |
---|
16587 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
16588 | |
---|
16589 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
16590 | for (key in D) D_is_set[key] = 1 |
---|
16591 | FS = "" |
---|
16592 | } |
---|
16593 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
---|
16594 | line = \$ 0 |
---|
16595 | split(line, arg, " ") |
---|
16596 | if (arg[1] == "#") { |
---|
16597 | defundef = arg[2] |
---|
16598 | mac1 = arg[3] |
---|
16599 | } else { |
---|
16600 | defundef = substr(arg[1], 2) |
---|
16601 | mac1 = arg[2] |
---|
16602 | } |
---|
16603 | split(mac1, mac2, "(") #) |
---|
16604 | macro = mac2[1] |
---|
16605 | prefix = substr(line, 1, index(line, defundef) - 1) |
---|
16606 | if (D_is_set[macro]) { |
---|
16607 | # Preserve the white space surrounding the "#". |
---|
16608 | print prefix "define", macro P[macro] D[macro] |
---|
16609 | next |
---|
16610 | } else { |
---|
16611 | # Replace #undef with comments. This is necessary, for example, |
---|
16612 | # in the case of _POSIX_SOURCE, which is predefined and required |
---|
16613 | # on some systems where configure will not decide to define it. |
---|
16614 | if (defundef == "undef") { |
---|
16615 | print "/*", prefix defundef, macro, "*/" |
---|
16616 | next |
---|
16617 | } |
---|
16618 | } |
---|
16619 | } |
---|
16620 | { print } |
---|
16621 | _ACAWK |
---|
16622 | _ACEOF |
---|
16623 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
16624 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
---|
16625 | fi # test -n "$CONFIG_HEADERS" |
---|
16626 | |
---|
16627 | |
---|
16628 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
---|
16629 | shift |
---|
16630 | for ac_tag |
---|
16631 | do |
---|
16632 | case $ac_tag in |
---|
16633 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
16634 | esac |
---|
16635 | case $ac_mode$ac_tag in |
---|
16636 | :[FHL]*:*);; |
---|
16637 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
16638 | :[FH]-) ac_tag=-:-;; |
---|
16639 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
16640 | esac |
---|
16641 | ac_save_IFS=$IFS |
---|
16642 | IFS=: |
---|
16643 | set x $ac_tag |
---|
16644 | IFS=$ac_save_IFS |
---|
16645 | shift |
---|
16646 | ac_file=$1 |
---|
16647 | shift |
---|
16648 | |
---|
16649 | case $ac_mode in |
---|
16650 | :L) ac_source=$1;; |
---|
16651 | :[FH]) |
---|
16652 | ac_file_inputs= |
---|
16653 | for ac_f |
---|
16654 | do |
---|
16655 | case $ac_f in |
---|
16656 | -) ac_f="$ac_tmp/stdin";; |
---|
16657 | *) # Look for the file first in the build tree, then in the source tree |
---|
16658 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
16659 | # because $ac_f cannot contain `:'. |
---|
16660 | test -f "$ac_f" || |
---|
16661 | case $ac_f in |
---|
16662 | [\\/$]*) false;; |
---|
16663 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
16664 | esac || |
---|
16665 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
16666 | esac |
---|
16667 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
16668 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
16669 | done |
---|
16670 | |
---|
16671 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
16672 | # use $as_me), people would be surprised to read: |
---|
16673 | # /* config.h. Generated by config.status. */ |
---|
16674 | configure_input='Generated from '` |
---|
16675 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
16676 | `' by configure.' |
---|
16677 | if test x"$ac_file" != x-; then |
---|
16678 | configure_input="$ac_file. $configure_input" |
---|
16679 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
16680 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
16681 | fi |
---|
16682 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
16683 | case $configure_input in #( |
---|
16684 | *\&* | *\|* | *\\* ) |
---|
16685 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
16686 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
16687 | *) ac_sed_conf_input=$configure_input;; |
---|
16688 | esac |
---|
16689 | |
---|
16690 | case $ac_tag in |
---|
16691 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
16692 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
16693 | esac |
---|
16694 | ;; |
---|
16695 | esac |
---|
16696 | |
---|
16697 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
16698 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
16699 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
16700 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
16701 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
16702 | $as_echo X"$ac_file" | |
---|
16703 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
16704 | s//\1/ |
---|
16705 | q |
---|
16706 | } |
---|
16707 | /^X\(\/\/\)[^/].*/{ |
---|
16708 | s//\1/ |
---|
16709 | q |
---|
16710 | } |
---|
16711 | /^X\(\/\/\)$/{ |
---|
16712 | s//\1/ |
---|
16713 | q |
---|
16714 | } |
---|
16715 | /^X\(\/\).*/{ |
---|
16716 | s//\1/ |
---|
16717 | q |
---|
16718 | } |
---|
16719 | s/.*/./; q'` |
---|
16720 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
16721 | ac_builddir=. |
---|
16722 | |
---|
16723 | case "$ac_dir" in |
---|
16724 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
16725 | *) |
---|
16726 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
16727 | # A ".." for each directory in $ac_dir_suffix. |
---|
16728 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
16729 | case $ac_top_builddir_sub in |
---|
16730 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
16731 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
16732 | esac ;; |
---|
16733 | esac |
---|
16734 | ac_abs_top_builddir=$ac_pwd |
---|
16735 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
16736 | # for backward compatibility: |
---|
16737 | ac_top_builddir=$ac_top_build_prefix |
---|
16738 | |
---|
16739 | case $srcdir in |
---|
16740 | .) # We are building in place. |
---|
16741 | ac_srcdir=. |
---|
16742 | ac_top_srcdir=$ac_top_builddir_sub |
---|
16743 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
16744 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
16745 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
16746 | ac_top_srcdir=$srcdir |
---|
16747 | ac_abs_top_srcdir=$srcdir ;; |
---|
16748 | *) # Relative name. |
---|
16749 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
16750 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
16751 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
16752 | esac |
---|
16753 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
16754 | |
---|
16755 | |
---|
16756 | case $ac_mode in |
---|
16757 | :F) |
---|
16758 | # |
---|
16759 | # CONFIG_FILE |
---|
16760 | # |
---|
16761 | |
---|
16762 | case $INSTALL in |
---|
16763 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
16764 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
16765 | esac |
---|
16766 | ac_MKDIR_P=$MKDIR_P |
---|
16767 | case $MKDIR_P in |
---|
16768 | [\\/$]* | ?:[\\/]* ) ;; |
---|
16769 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
16770 | esac |
---|
16771 | _ACEOF |
---|
16772 | |
---|
16773 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
16774 | # If the template does not know about datarootdir, expand it. |
---|
16775 | # FIXME: This hack should be removed a few years after 2.60. |
---|
16776 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
16777 | ac_sed_dataroot=' |
---|
16778 | /datarootdir/ { |
---|
16779 | p |
---|
16780 | q |
---|
16781 | } |
---|
16782 | /@datadir@/p |
---|
16783 | /@docdir@/p |
---|
16784 | /@infodir@/p |
---|
16785 | /@localedir@/p |
---|
16786 | /@mandir@/p' |
---|
16787 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
16788 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
16789 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
16790 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
16791 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
16792 | _ACEOF |
---|
16793 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
16794 | ac_datarootdir_hack=' |
---|
16795 | s&@datadir@&$datadir&g |
---|
16796 | s&@docdir@&$docdir&g |
---|
16797 | s&@infodir@&$infodir&g |
---|
16798 | s&@localedir@&$localedir&g |
---|
16799 | s&@mandir@&$mandir&g |
---|
16800 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
16801 | esac |
---|
16802 | _ACEOF |
---|
16803 | |
---|
16804 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
16805 | # Shell code in configure.ac might set extrasub. |
---|
16806 | # FIXME: do we really want to maintain this feature? |
---|
16807 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
16808 | ac_sed_extra="$ac_vpsub |
---|
16809 | $extrasub |
---|
16810 | _ACEOF |
---|
16811 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
16812 | :t |
---|
16813 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
16814 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
16815 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
16816 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
16817 | s&@srcdir@&$ac_srcdir&;t t |
---|
16818 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
16819 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
16820 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
16821 | s&@builddir@&$ac_builddir&;t t |
---|
16822 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
16823 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
16824 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
16825 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
16826 | $ac_datarootdir_hack |
---|
16827 | " |
---|
16828 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
16829 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
16830 | |
---|
16831 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
16832 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
16833 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
16834 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
16835 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
16836 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
16837 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
16838 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
16839 | |
---|
16840 | rm -f "$ac_tmp/stdin" |
---|
16841 | case $ac_file in |
---|
16842 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
16843 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
16844 | esac \ |
---|
16845 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
16846 | ;; |
---|
16847 | :H) |
---|
16848 | # |
---|
16849 | # CONFIG_HEADER |
---|
16850 | # |
---|
16851 | if test x"$ac_file" != x-; then |
---|
16852 | { |
---|
16853 | $as_echo "/* $configure_input */" \ |
---|
16854 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
---|
16855 | } >"$ac_tmp/config.h" \ |
---|
16856 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
16857 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
---|
16858 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
---|
16859 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
---|
16860 | else |
---|
16861 | rm -f "$ac_file" |
---|
16862 | mv "$ac_tmp/config.h" "$ac_file" \ |
---|
16863 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
16864 | fi |
---|
16865 | else |
---|
16866 | $as_echo "/* $configure_input */" \ |
---|
16867 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
---|
16868 | || as_fn_error $? "could not create -" "$LINENO" 5 |
---|
16869 | fi |
---|
16870 | # Compute "$ac_file"'s index in $config_headers. |
---|
16871 | _am_arg="$ac_file" |
---|
16872 | _am_stamp_count=1 |
---|
16873 | for _am_header in $config_headers :; do |
---|
16874 | case $_am_header in |
---|
16875 | $_am_arg | $_am_arg:* ) |
---|
16876 | break ;; |
---|
16877 | * ) |
---|
16878 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
---|
16879 | esac |
---|
16880 | done |
---|
16881 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
---|
16882 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
16883 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
---|
16884 | X"$_am_arg" : 'X\(//\)$' \| \ |
---|
16885 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
---|
16886 | $as_echo X"$_am_arg" | |
---|
16887 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
16888 | s//\1/ |
---|
16889 | q |
---|
16890 | } |
---|
16891 | /^X\(\/\/\)[^/].*/{ |
---|
16892 | s//\1/ |
---|
16893 | q |
---|
16894 | } |
---|
16895 | /^X\(\/\/\)$/{ |
---|
16896 | s//\1/ |
---|
16897 | q |
---|
16898 | } |
---|
16899 | /^X\(\/\).*/{ |
---|
16900 | s//\1/ |
---|
16901 | q |
---|
16902 | } |
---|
16903 | s/.*/./; q'`/stamp-h$_am_stamp_count |
---|
16904 | ;; |
---|
16905 | |
---|
16906 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
---|
16907 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
---|
16908 | ;; |
---|
16909 | esac |
---|
16910 | |
---|
16911 | |
---|
16912 | case $ac_file$ac_mode in |
---|
16913 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
---|
16914 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
---|
16915 | # are listed without --file. Let's play safe and only enable the eval |
---|
16916 | # if we detect the quoting. |
---|
16917 | case $CONFIG_FILES in |
---|
16918 | *\'*) eval set x "$CONFIG_FILES" ;; |
---|
16919 | *) set x $CONFIG_FILES ;; |
---|
16920 | esac |
---|
16921 | shift |
---|
16922 | for mf |
---|
16923 | do |
---|
16924 | # Strip MF so we end up with the name of the file. |
---|
16925 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
---|
16926 | # Check whether this is an Automake generated Makefile or not. |
---|
16927 | # We used to match only the files named `Makefile.in', but |
---|
16928 | # some people rename them; so instead we look at the file content. |
---|
16929 | # Grep'ing the first line is not enough: some people post-process |
---|
16930 | # each Makefile.in and add a new line on top of each file to say so. |
---|
16931 | # Grep'ing the whole file is not good either: AIX grep has a line |
---|
16932 | # limit of 2048, but all sed's we know have understand at least 4000. |
---|
16933 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
---|
16934 | dirpart=`$as_dirname -- "$mf" || |
---|
16935 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
16936 | X"$mf" : 'X\(//\)[^/]' \| \ |
---|
16937 | X"$mf" : 'X\(//\)$' \| \ |
---|
16938 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
---|
16939 | $as_echo X"$mf" | |
---|
16940 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
16941 | s//\1/ |
---|
16942 | q |
---|
16943 | } |
---|
16944 | /^X\(\/\/\)[^/].*/{ |
---|
16945 | s//\1/ |
---|
16946 | q |
---|
16947 | } |
---|
16948 | /^X\(\/\/\)$/{ |
---|
16949 | s//\1/ |
---|
16950 | q |
---|
16951 | } |
---|
16952 | /^X\(\/\).*/{ |
---|
16953 | s//\1/ |
---|
16954 | q |
---|
16955 | } |
---|
16956 | s/.*/./; q'` |
---|
16957 | else |
---|
16958 | continue |
---|
16959 | fi |
---|
16960 | # Extract the definition of DEPDIR, am__include, and am__quote |
---|
16961 | # from the Makefile without running `make'. |
---|
16962 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
---|
16963 | test -z "$DEPDIR" && continue |
---|
16964 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
---|
16965 | test -z "am__include" && continue |
---|
16966 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
---|
16967 | # When using ansi2knr, U may be empty or an underscore; expand it |
---|
16968 | U=`sed -n 's/^U = //p' < "$mf"` |
---|
16969 | # Find all dependency output files, they are included files with |
---|
16970 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
---|
16971 | # simplest approach to changing $(DEPDIR) to its actual value in the |
---|
16972 | # expansion. |
---|
16973 | for file in `sed -n " |
---|
16974 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
---|
16975 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
---|
16976 | # Make sure the directory exists. |
---|
16977 | test -f "$dirpart/$file" && continue |
---|
16978 | fdir=`$as_dirname -- "$file" || |
---|
16979 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
16980 | X"$file" : 'X\(//\)[^/]' \| \ |
---|
16981 | X"$file" : 'X\(//\)$' \| \ |
---|
16982 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
---|
16983 | $as_echo X"$file" | |
---|
16984 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
16985 | s//\1/ |
---|
16986 | q |
---|
16987 | } |
---|
16988 | /^X\(\/\/\)[^/].*/{ |
---|
16989 | s//\1/ |
---|
16990 | q |
---|
16991 | } |
---|
16992 | /^X\(\/\/\)$/{ |
---|
16993 | s//\1/ |
---|
16994 | q |
---|
16995 | } |
---|
16996 | /^X\(\/\).*/{ |
---|
16997 | s//\1/ |
---|
16998 | q |
---|
16999 | } |
---|
17000 | s/.*/./; q'` |
---|
17001 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
---|
17002 | # echo "creating $dirpart/$file" |
---|
17003 | echo '# dummy' > "$dirpart/$file" |
---|
17004 | done |
---|
17005 | done |
---|
17006 | } |
---|
17007 | ;; |
---|
17008 | "libtool":C) |
---|
17009 | |
---|
17010 | # See if we are running on zsh, and set the options which allow our |
---|
17011 | # commands through without removal of \ escapes. |
---|
17012 | if test -n "${ZSH_VERSION+set}" ; then |
---|
17013 | setopt NO_GLOB_SUBST |
---|
17014 | fi |
---|
17015 | |
---|
17016 | cfgfile="${ofile}T" |
---|
17017 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
---|
17018 | $RM "$cfgfile" |
---|
17019 | |
---|
17020 | cat <<_LT_EOF >> "$cfgfile" |
---|
17021 | #! $SHELL |
---|
17022 | |
---|
17023 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
---|
17024 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
---|
17025 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
17026 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
---|
17027 | # |
---|
17028 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
---|
17029 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, |
---|
17030 | # Inc. |
---|
17031 | # Written by Gordon Matzigkeit, 1996 |
---|
17032 | # |
---|
17033 | # This file is part of GNU Libtool. |
---|
17034 | # |
---|
17035 | # GNU Libtool is free software; you can redistribute it and/or |
---|
17036 | # modify it under the terms of the GNU General Public License as |
---|
17037 | # published by the Free Software Foundation; either version 2 of |
---|
17038 | # the License, or (at your option) any later version. |
---|
17039 | # |
---|
17040 | # As a special exception to the GNU General Public License, |
---|
17041 | # if you distribute this file as part of a program or library that |
---|
17042 | # is built using GNU Libtool, you may include this file under the |
---|
17043 | # same distribution terms that you use for the rest of that program. |
---|
17044 | # |
---|
17045 | # GNU Libtool is distributed in the hope that it will be useful, |
---|
17046 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
17047 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
17048 | # GNU General Public License for more details. |
---|
17049 | # |
---|
17050 | # You should have received a copy of the GNU General Public License |
---|
17051 | # along with GNU Libtool; see the file COPYING. If not, a copy |
---|
17052 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
---|
17053 | # obtained by writing to the Free Software Foundation, Inc., |
---|
17054 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
17055 | |
---|
17056 | |
---|
17057 | # The names of the tagged configurations supported by this script. |
---|
17058 | available_tags="" |
---|
17059 | |
---|
17060 | # ### BEGIN LIBTOOL CONFIG |
---|
17061 | |
---|
17062 | # Which release of libtool.m4 was used? |
---|
17063 | macro_version=$macro_version |
---|
17064 | macro_revision=$macro_revision |
---|
17065 | |
---|
17066 | # Whether or not to build shared libraries. |
---|
17067 | build_libtool_libs=$enable_shared |
---|
17068 | |
---|
17069 | # Whether or not to build static libraries. |
---|
17070 | build_old_libs=$enable_static |
---|
17071 | |
---|
17072 | # What type of objects to build. |
---|
17073 | pic_mode=$pic_mode |
---|
17074 | |
---|
17075 | # Whether or not to optimize for fast installation. |
---|
17076 | fast_install=$enable_fast_install |
---|
17077 | |
---|
17078 | # Shell to use when invoking shell scripts. |
---|
17079 | SHELL=$lt_SHELL |
---|
17080 | |
---|
17081 | # An echo program that protects backslashes. |
---|
17082 | ECHO=$lt_ECHO |
---|
17083 | |
---|
17084 | # The host system. |
---|
17085 | host_alias=$host_alias |
---|
17086 | host=$host |
---|
17087 | host_os=$host_os |
---|
17088 | |
---|
17089 | # The build system. |
---|
17090 | build_alias=$build_alias |
---|
17091 | build=$build |
---|
17092 | build_os=$build_os |
---|
17093 | |
---|
17094 | # A sed program that does not truncate output. |
---|
17095 | SED=$lt_SED |
---|
17096 | |
---|
17097 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
---|
17098 | Xsed="\$SED -e 1s/^X//" |
---|
17099 | |
---|
17100 | # A grep program that handles long lines. |
---|
17101 | GREP=$lt_GREP |
---|
17102 | |
---|
17103 | # An ERE matcher. |
---|
17104 | EGREP=$lt_EGREP |
---|
17105 | |
---|
17106 | # A literal string matcher. |
---|
17107 | FGREP=$lt_FGREP |
---|
17108 | |
---|
17109 | # A BSD- or MS-compatible name lister. |
---|
17110 | NM=$lt_NM |
---|
17111 | |
---|
17112 | # Whether we need soft or hard links. |
---|
17113 | LN_S=$lt_LN_S |
---|
17114 | |
---|
17115 | # What is the maximum length of a command? |
---|
17116 | max_cmd_len=$max_cmd_len |
---|
17117 | |
---|
17118 | # Object file suffix (normally "o"). |
---|
17119 | objext=$ac_objext |
---|
17120 | |
---|
17121 | # Executable file suffix (normally ""). |
---|
17122 | exeext=$exeext |
---|
17123 | |
---|
17124 | # whether the shell understands "unset". |
---|
17125 | lt_unset=$lt_unset |
---|
17126 | |
---|
17127 | # turn spaces into newlines. |
---|
17128 | SP2NL=$lt_lt_SP2NL |
---|
17129 | |
---|
17130 | # turn newlines into spaces. |
---|
17131 | NL2SP=$lt_lt_NL2SP |
---|
17132 | |
---|
17133 | # convert \$build file names to \$host format. |
---|
17134 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
---|
17135 | |
---|
17136 | # convert \$build files to toolchain format. |
---|
17137 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
---|
17138 | |
---|
17139 | # An object symbol dumper. |
---|
17140 | OBJDUMP=$lt_OBJDUMP |
---|
17141 | |
---|
17142 | # Method to check whether dependent libraries are shared objects. |
---|
17143 | deplibs_check_method=$lt_deplibs_check_method |
---|
17144 | |
---|
17145 | # Command to use when deplibs_check_method = "file_magic". |
---|
17146 | file_magic_cmd=$lt_file_magic_cmd |
---|
17147 | |
---|
17148 | # How to find potential files when deplibs_check_method = "file_magic". |
---|
17149 | file_magic_glob=$lt_file_magic_glob |
---|
17150 | |
---|
17151 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
---|
17152 | want_nocaseglob=$lt_want_nocaseglob |
---|
17153 | |
---|
17154 | # DLL creation program. |
---|
17155 | DLLTOOL=$lt_DLLTOOL |
---|
17156 | |
---|
17157 | # Command to associate shared and link libraries. |
---|
17158 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
---|
17159 | |
---|
17160 | # The archiver. |
---|
17161 | AR=$lt_AR |
---|
17162 | |
---|
17163 | # Flags to create an archive. |
---|
17164 | AR_FLAGS=$lt_AR_FLAGS |
---|
17165 | |
---|
17166 | # How to feed a file listing to the archiver. |
---|
17167 | archiver_list_spec=$lt_archiver_list_spec |
---|
17168 | |
---|
17169 | # A symbol stripping program. |
---|
17170 | STRIP=$lt_STRIP |
---|
17171 | |
---|
17172 | # Commands used to install an old-style archive. |
---|
17173 | RANLIB=$lt_RANLIB |
---|
17174 | old_postinstall_cmds=$lt_old_postinstall_cmds |
---|
17175 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
---|
17176 | |
---|
17177 | # Whether to use a lock for old archive extraction. |
---|
17178 | lock_old_archive_extraction=$lock_old_archive_extraction |
---|
17179 | |
---|
17180 | # A C compiler. |
---|
17181 | LTCC=$lt_CC |
---|
17182 | |
---|
17183 | # LTCC compiler flags. |
---|
17184 | LTCFLAGS=$lt_CFLAGS |
---|
17185 | |
---|
17186 | # Take the output of nm and produce a listing of raw symbols and C names. |
---|
17187 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
---|
17188 | |
---|
17189 | # Transform the output of nm in a proper C declaration. |
---|
17190 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
---|
17191 | |
---|
17192 | # Transform the output of nm in a C name address pair. |
---|
17193 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
---|
17194 | |
---|
17195 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
---|
17196 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
---|
17197 | |
---|
17198 | # Specify filename containing input files for \$NM. |
---|
17199 | nm_file_list_spec=$lt_nm_file_list_spec |
---|
17200 | |
---|
17201 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
---|
17202 | lt_sysroot=$lt_sysroot |
---|
17203 | |
---|
17204 | # The name of the directory that contains temporary libtool files. |
---|
17205 | objdir=$objdir |
---|
17206 | |
---|
17207 | # Used to examine libraries when file_magic_cmd begins with "file". |
---|
17208 | MAGIC_CMD=$MAGIC_CMD |
---|
17209 | |
---|
17210 | # Must we lock files when doing compilation? |
---|
17211 | need_locks=$lt_need_locks |
---|
17212 | |
---|
17213 | # Manifest tool. |
---|
17214 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
---|
17215 | |
---|
17216 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
---|
17217 | DSYMUTIL=$lt_DSYMUTIL |
---|
17218 | |
---|
17219 | # Tool to change global to local symbols on Mac OS X. |
---|
17220 | NMEDIT=$lt_NMEDIT |
---|
17221 | |
---|
17222 | # Tool to manipulate fat objects and archives on Mac OS X. |
---|
17223 | LIPO=$lt_LIPO |
---|
17224 | |
---|
17225 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
---|
17226 | OTOOL=$lt_OTOOL |
---|
17227 | |
---|
17228 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
---|
17229 | OTOOL64=$lt_OTOOL64 |
---|
17230 | |
---|
17231 | # Old archive suffix (normally "a"). |
---|
17232 | libext=$libext |
---|
17233 | |
---|
17234 | # Shared library suffix (normally ".so"). |
---|
17235 | shrext_cmds=$lt_shrext_cmds |
---|
17236 | |
---|
17237 | # The commands to extract the exported symbol list from a shared archive. |
---|
17238 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
---|
17239 | |
---|
17240 | # Variables whose values should be saved in libtool wrapper scripts and |
---|
17241 | # restored at link time. |
---|
17242 | variables_saved_for_relink=$lt_variables_saved_for_relink |
---|
17243 | |
---|
17244 | # Do we need the "lib" prefix for modules? |
---|
17245 | need_lib_prefix=$need_lib_prefix |
---|
17246 | |
---|
17247 | # Do we need a version for libraries? |
---|
17248 | need_version=$need_version |
---|
17249 | |
---|
17250 | # Library versioning type. |
---|
17251 | version_type=$version_type |
---|
17252 | |
---|
17253 | # Shared library runtime path variable. |
---|
17254 | runpath_var=$runpath_var |
---|
17255 | |
---|
17256 | # Shared library path variable. |
---|
17257 | shlibpath_var=$shlibpath_var |
---|
17258 | |
---|
17259 | # Is shlibpath searched before the hard-coded library search path? |
---|
17260 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
---|
17261 | |
---|
17262 | # Format of library name prefix. |
---|
17263 | libname_spec=$lt_libname_spec |
---|
17264 | |
---|
17265 | # List of archive names. First name is the real one, the rest are links. |
---|
17266 | # The last name is the one that the linker finds with -lNAME |
---|
17267 | library_names_spec=$lt_library_names_spec |
---|
17268 | |
---|
17269 | # The coded name of the library, if different from the real name. |
---|
17270 | soname_spec=$lt_soname_spec |
---|
17271 | |
---|
17272 | # Permission mode override for installation of shared libraries. |
---|
17273 | install_override_mode=$lt_install_override_mode |
---|
17274 | |
---|
17275 | # Command to use after installation of a shared archive. |
---|
17276 | postinstall_cmds=$lt_postinstall_cmds |
---|
17277 | |
---|
17278 | # Command to use after uninstallation of a shared archive. |
---|
17279 | postuninstall_cmds=$lt_postuninstall_cmds |
---|
17280 | |
---|
17281 | # Commands used to finish a libtool library installation in a directory. |
---|
17282 | finish_cmds=$lt_finish_cmds |
---|
17283 | |
---|
17284 | # As "finish_cmds", except a single script fragment to be evaled but |
---|
17285 | # not shown. |
---|
17286 | finish_eval=$lt_finish_eval |
---|
17287 | |
---|
17288 | # Whether we should hardcode library paths into libraries. |
---|
17289 | hardcode_into_libs=$hardcode_into_libs |
---|
17290 | |
---|
17291 | # Compile-time system search path for libraries. |
---|
17292 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
---|
17293 | |
---|
17294 | # Run-time system search path for libraries. |
---|
17295 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
---|
17296 | |
---|
17297 | # Whether dlopen is supported. |
---|
17298 | dlopen_support=$enable_dlopen |
---|
17299 | |
---|
17300 | # Whether dlopen of programs is supported. |
---|
17301 | dlopen_self=$enable_dlopen_self |
---|
17302 | |
---|
17303 | # Whether dlopen of statically linked programs is supported. |
---|
17304 | dlopen_self_static=$enable_dlopen_self_static |
---|
17305 | |
---|
17306 | # Commands to strip libraries. |
---|
17307 | old_striplib=$lt_old_striplib |
---|
17308 | striplib=$lt_striplib |
---|
17309 | |
---|
17310 | |
---|
17311 | # The linker used to build libraries. |
---|
17312 | LD=$lt_LD |
---|
17313 | |
---|
17314 | # How to create reloadable object files. |
---|
17315 | reload_flag=$lt_reload_flag |
---|
17316 | reload_cmds=$lt_reload_cmds |
---|
17317 | |
---|
17318 | # Commands used to build an old-style archive. |
---|
17319 | old_archive_cmds=$lt_old_archive_cmds |
---|
17320 | |
---|
17321 | # A language specific compiler. |
---|
17322 | CC=$lt_compiler |
---|
17323 | |
---|
17324 | # Is the compiler the GNU compiler? |
---|
17325 | with_gcc=$GCC |
---|
17326 | |
---|
17327 | # Compiler flag to turn off builtin functions. |
---|
17328 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
---|
17329 | |
---|
17330 | # Additional compiler flags for building library objects. |
---|
17331 | pic_flag=$lt_lt_prog_compiler_pic |
---|
17332 | |
---|
17333 | # How to pass a linker flag through the compiler. |
---|
17334 | wl=$lt_lt_prog_compiler_wl |
---|
17335 | |
---|
17336 | # Compiler flag to prevent dynamic linking. |
---|
17337 | link_static_flag=$lt_lt_prog_compiler_static |
---|
17338 | |
---|
17339 | # Does compiler simultaneously support -c and -o options? |
---|
17340 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
---|
17341 | |
---|
17342 | # Whether or not to add -lc for building shared libraries. |
---|
17343 | build_libtool_need_lc=$archive_cmds_need_lc |
---|
17344 | |
---|
17345 | # Whether or not to disallow shared libs when runtime libs are static. |
---|
17346 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
---|
17347 | |
---|
17348 | # Compiler flag to allow reflexive dlopens. |
---|
17349 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
---|
17350 | |
---|
17351 | # Compiler flag to generate shared objects directly from archives. |
---|
17352 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
---|
17353 | |
---|
17354 | # Whether the compiler copes with passing no objects directly. |
---|
17355 | compiler_needs_object=$lt_compiler_needs_object |
---|
17356 | |
---|
17357 | # Create an old-style archive from a shared archive. |
---|
17358 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
---|
17359 | |
---|
17360 | # Create a temporary old-style archive to link instead of a shared archive. |
---|
17361 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
---|
17362 | |
---|
17363 | # Commands used to build a shared archive. |
---|
17364 | archive_cmds=$lt_archive_cmds |
---|
17365 | archive_expsym_cmds=$lt_archive_expsym_cmds |
---|
17366 | |
---|
17367 | # Commands used to build a loadable module if different from building |
---|
17368 | # a shared archive. |
---|
17369 | module_cmds=$lt_module_cmds |
---|
17370 | module_expsym_cmds=$lt_module_expsym_cmds |
---|
17371 | |
---|
17372 | # Whether we are building with GNU ld or not. |
---|
17373 | with_gnu_ld=$lt_with_gnu_ld |
---|
17374 | |
---|
17375 | # Flag that allows shared libraries with undefined symbols to be built. |
---|
17376 | allow_undefined_flag=$lt_allow_undefined_flag |
---|
17377 | |
---|
17378 | # Flag that enforces no undefined symbols. |
---|
17379 | no_undefined_flag=$lt_no_undefined_flag |
---|
17380 | |
---|
17381 | # Flag to hardcode \$libdir into a binary during linking. |
---|
17382 | # This must work even if \$libdir does not exist |
---|
17383 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
---|
17384 | |
---|
17385 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
---|
17386 | # during linking. This must work even if \$libdir does not exist. |
---|
17387 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
---|
17388 | |
---|
17389 | # Whether we need a single "-rpath" flag with a separated argument. |
---|
17390 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
---|
17391 | |
---|
17392 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
---|
17393 | # DIR into the resulting binary. |
---|
17394 | hardcode_direct=$hardcode_direct |
---|
17395 | |
---|
17396 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
---|
17397 | # DIR into the resulting binary and the resulting library dependency is |
---|
17398 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
---|
17399 | # library is relocated. |
---|
17400 | hardcode_direct_absolute=$hardcode_direct_absolute |
---|
17401 | |
---|
17402 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
---|
17403 | # into the resulting binary. |
---|
17404 | hardcode_minus_L=$hardcode_minus_L |
---|
17405 | |
---|
17406 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
---|
17407 | # into the resulting binary. |
---|
17408 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
---|
17409 | |
---|
17410 | # Set to "yes" if building a shared library automatically hardcodes DIR |
---|
17411 | # into the library and all subsequent libraries and executables linked |
---|
17412 | # against it. |
---|
17413 | hardcode_automatic=$hardcode_automatic |
---|
17414 | |
---|
17415 | # Set to yes if linker adds runtime paths of dependent libraries |
---|
17416 | # to runtime path list. |
---|
17417 | inherit_rpath=$inherit_rpath |
---|
17418 | |
---|
17419 | # Whether libtool must link a program against all its dependency libraries. |
---|
17420 | link_all_deplibs=$link_all_deplibs |
---|
17421 | |
---|
17422 | # Set to "yes" if exported symbols are required. |
---|
17423 | always_export_symbols=$always_export_symbols |
---|
17424 | |
---|
17425 | # The commands to list exported symbols. |
---|
17426 | export_symbols_cmds=$lt_export_symbols_cmds |
---|
17427 | |
---|
17428 | # Symbols that should not be listed in the preloaded symbols. |
---|
17429 | exclude_expsyms=$lt_exclude_expsyms |
---|
17430 | |
---|
17431 | # Symbols that must always be exported. |
---|
17432 | include_expsyms=$lt_include_expsyms |
---|
17433 | |
---|
17434 | # Commands necessary for linking programs (against libraries) with templates. |
---|
17435 | prelink_cmds=$lt_prelink_cmds |
---|
17436 | |
---|
17437 | # Commands necessary for finishing linking programs. |
---|
17438 | postlink_cmds=$lt_postlink_cmds |
---|
17439 | |
---|
17440 | # Specify filename containing input files. |
---|
17441 | file_list_spec=$lt_file_list_spec |
---|
17442 | |
---|
17443 | # How to hardcode a shared library path into an executable. |
---|
17444 | hardcode_action=$hardcode_action |
---|
17445 | |
---|
17446 | # ### END LIBTOOL CONFIG |
---|
17447 | |
---|
17448 | _LT_EOF |
---|
17449 | |
---|
17450 | case $host_os in |
---|
17451 | aix3*) |
---|
17452 | cat <<\_LT_EOF >> "$cfgfile" |
---|
17453 | # AIX sometimes has problems with the GCC collect2 program. For some |
---|
17454 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
---|
17455 | # vanish in a puff of smoke. |
---|
17456 | if test "X${COLLECT_NAMES+set}" != Xset; then |
---|
17457 | COLLECT_NAMES= |
---|
17458 | export COLLECT_NAMES |
---|
17459 | fi |
---|
17460 | _LT_EOF |
---|
17461 | ;; |
---|
17462 | esac |
---|
17463 | |
---|
17464 | |
---|
17465 | ltmain="$ac_aux_dir/ltmain.sh" |
---|
17466 | |
---|
17467 | |
---|
17468 | # We use sed instead of cat because bash on DJGPP gets confused if |
---|
17469 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
---|
17470 | # text mode, it properly converts lines to CR/LF. This bash problem |
---|
17471 | # is reportedly fixed, but why not run on old versions too? |
---|
17472 | sed '$q' "$ltmain" >> "$cfgfile" \ |
---|
17473 | || (rm -f "$cfgfile"; exit 1) |
---|
17474 | |
---|
17475 | if test x"$xsi_shell" = xyes; then |
---|
17476 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
---|
17477 | func_dirname ()\ |
---|
17478 | {\ |
---|
17479 | \ case ${1} in\ |
---|
17480 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
---|
17481 | \ * ) func_dirname_result="${3}" ;;\ |
---|
17482 | \ esac\ |
---|
17483 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
---|
17484 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
---|
17485 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
---|
17486 | test 0 -eq $? || _lt_function_replace_fail=: |
---|
17487 | |
---|
17488 | |
---|
17489 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
---|
17490 | func_basename ()\ |
---|
17491 | {\ |
---|
17492 | \ func_basename_result="${1##*/}"\ |
---|
17493 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
---|
17494 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
---|
17495 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
---|
17496 | test 0 -eq $? || _lt_function_replace_fail=: |
---|
17497 | |
---|
17498 | |
---|
17499 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
---|
17500 | func_dirname_and_basename ()\ |
---|
17501 | {\ |
---|
17502 | \ case ${1} in\ |
---|
17503 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
---|
17504 | \ * ) func_dirname_result="${3}" ;;\ |
---|
17505 | \ esac\ |
---|
17506 | \ func_basename_result="${1##*/}"\ |
---|
17507 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
---|
17508 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
---|
17509 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
---|
17510 | test 0 -eq $? || _lt_function_replace_fail=: |
---|
17511 | |
---|
17512 | |
---|
17513 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
---|
17514 | func_stripname ()\ |
---|
17515 | {\ |
---|
17516 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
---|
17517 | \ # positional parameters, so assign one to ordinary parameter first.\ |
---|
17518 | \ func_stripname_result=${3}\ |
---|
17519 | \ func_stripname_result=${func_stripname_result#"${1}"}\ |
---|
17520 | \ func_stripname_result=${func_stripname_result%"${2}"}\ |
---|
17521 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
---|
17522 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
---|
17523 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
---|
17524 | test 0 -eq $? || _lt_function_replace_fail=: |
---|
17525 | |
---|
17526 | |
---|
17527 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
---|
17528 | func_split_long_opt ()\ |
---|
17529 | {\ |
---|
17530 | \ func_split_long_opt_name=${1%%=*}\ |
---|
17531 | \ func_split_long_opt_arg=${1#*=}\ |
---|
17532 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
---|
17533 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
---|
17534 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
---|
17535 | test 0 -eq $? || _lt_function_replace_fail=: |
---|
17536 | |
---|
17537 | |
---|
17538 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
---|
17539 | func_split_short_opt ()\ |
---|
17540 | {\ |
---|
17541 | \ func_split_short_opt_arg=${1#??}\ |
---|
17542 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
---|
17543 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
---|
17544 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
---|
17545 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
---|
17546 | test 0 -eq $? || _lt_function_replace_fail=: |
---|
17547 | |
---|
17548 | |
---|
17549 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
---|
17550 | func_lo2o ()\ |
---|
17551 | {\ |
---|
17552 | \ case ${1} in\ |
---|
17553 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
---|
17554 | \ *) func_lo2o_result=${1} ;;\ |
---|
17555 | \ esac\ |
---|
17556 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
---|
17557 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
---|
17558 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
---|
17559 | test 0 -eq $? || _lt_function_replace_fail=: |
---|
17560 | |
---|
17561 | |
---|
17562 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
---|
17563 | func_xform ()\ |
---|
17564 | {\ |
---|
17565 | func_xform_result=${1%.*}.lo\ |
---|
17566 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
---|
17567 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
---|
17568 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
---|
17569 | test 0 -eq $? || _lt_function_replace_fail=: |
---|
17570 | |
---|
17571 | |
---|
17572 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
---|
17573 | func_arith ()\ |
---|
17574 | {\ |
---|
17575 | func_arith_result=$(( $* ))\ |
---|
17576 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
---|
17577 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
---|
17578 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
---|
17579 | test 0 -eq $? || _lt_function_replace_fail=: |
---|
17580 | |
---|
17581 | |
---|
17582 | sed -e '/^func_len ()$/,/^} # func_len /c\ |
---|
17583 | func_len ()\ |
---|
17584 | {\ |
---|
17585 | func_len_result=${#1}\ |
---|
17586 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
---|
17587 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
---|
17588 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
---|
17589 | test 0 -eq $? || _lt_function_replace_fail=: |
---|
17590 | |
---|
17591 | fi |
---|
17592 | |
---|
17593 | if test x"$lt_shell_append" = xyes; then |
---|
17594 | sed -e '/^func_append ()$/,/^} # func_append /c\ |
---|
17595 | func_append ()\ |
---|
17596 | {\ |
---|
17597 | eval "${1}+=\\${2}"\ |
---|
17598 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
---|
17599 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
---|
17600 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
---|
17601 | test 0 -eq $? || _lt_function_replace_fail=: |
---|
17602 | |
---|
17603 | |
---|
17604 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
---|
17605 | func_append_quoted ()\ |
---|
17606 | {\ |
---|
17607 | \ func_quote_for_eval "${2}"\ |
---|
17608 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
---|
17609 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
---|
17610 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
---|
17611 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
---|
17612 | test 0 -eq $? || _lt_function_replace_fail=: |
---|
17613 | |
---|
17614 | |
---|
17615 | # Save a `func_append' function call where possible by direct use of '+=' |
---|
17616 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
---|
17617 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
---|
17618 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
---|
17619 | test 0 -eq $? || _lt_function_replace_fail=: |
---|
17620 | else |
---|
17621 | # Save a `func_append' function call even when '+=' is not available |
---|
17622 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
---|
17623 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
---|
17624 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
---|
17625 | test 0 -eq $? || _lt_function_replace_fail=: |
---|
17626 | fi |
---|
17627 | |
---|
17628 | if test x"$_lt_function_replace_fail" = x":"; then |
---|
17629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
---|
17630 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
---|
17631 | fi |
---|
17632 | |
---|
17633 | |
---|
17634 | mv -f "$cfgfile" "$ofile" || |
---|
17635 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
---|
17636 | chmod +x "$ofile" |
---|
17637 | |
---|
17638 | ;; |
---|
17639 | |
---|
17640 | esac |
---|
17641 | done # for ac_tag |
---|
17642 | |
---|
17643 | |
---|
17644 | as_fn_exit 0 |
---|
17645 | _ACEOF |
---|
17646 | ac_clean_files=$ac_clean_files_save |
---|
17647 | |
---|
17648 | test $ac_write_fail = 0 || |
---|
17649 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
17650 | |
---|
17651 | |
---|
17652 | # configure is writing to config.log, and then calls config.status. |
---|
17653 | # config.status does its own redirection, appending to config.log. |
---|
17654 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
17655 | # by configure, so config.status won't be able to write to it; its |
---|
17656 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
17657 | # effectively closing config.log, so it can be properly (re)opened and |
---|
17658 | # appended to by config.status. When coming back to configure, we |
---|
17659 | # need to make the FD available again. |
---|
17660 | if test "$no_create" != yes; then |
---|
17661 | ac_cs_success=: |
---|
17662 | ac_config_status_args= |
---|
17663 | test "$silent" = yes && |
---|
17664 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
17665 | exec 5>/dev/null |
---|
17666 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
17667 | exec 5>>config.log |
---|
17668 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
17669 | # would make configure fail if this is the last instruction. |
---|
17670 | $ac_cs_success || as_fn_exit 1 |
---|
17671 | fi |
---|
17672 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
17673 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
17674 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
17675 | fi |
---|
17676 | |
---|