]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.69 for charybdis 3.6.0-dev. | |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
7 | # | |
8 | # | |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## -------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
14 | ||
15 | # Be more Bourne compatible | |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | setopt NO_GLOB_SUBST | |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
31 | fi | |
32 | ||
33 | ||
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
79 | fi | |
80 | ||
81 | ||
82 | # IFS | |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
90 | as_myself= | |
91 | case $0 in #(( | |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
122 | PS1='$ ' | |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
127 | LC_ALL=C | |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
135 | # Use a proper internal environment variable to ensure we don't fall | |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
160 | if test "x$CONFIG_SHELL" = x; then | |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
193 | test x\$exitcode = x0 || exit 1 | |
194 | test -x / || exit 1" | |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
199 | ||
200 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
201 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
202 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | PATH=/empty FPATH=/empty; export PATH FPATH | |
205 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
206 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
207 | test \$(( 1 + 1 )) = 2 || exit 1" | |
208 | if (eval "$as_required") 2>/dev/null; then : | |
209 | as_have_required=yes | |
210 | else | |
211 | as_have_required=no | |
212 | fi | |
213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | ||
215 | else | |
216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 | as_found=false | |
218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
219 | do | |
220 | IFS=$as_save_IFS | |
221 | test -z "$as_dir" && as_dir=. | |
222 | as_found=: | |
223 | case $as_dir in #( | |
224 | /*) | |
225 | for as_base in sh bash ksh sh5; do | |
226 | # Try only shells that exist, to save several forks. | |
227 | as_shell=$as_dir/$as_base | |
228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 | CONFIG_SHELL=$as_shell as_have_required=yes | |
231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | break 2 | |
233 | fi | |
234 | fi | |
235 | done;; | |
236 | esac | |
237 | as_found=false | |
238 | done | |
239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 | CONFIG_SHELL=$SHELL as_have_required=yes | |
242 | fi; } | |
243 | IFS=$as_save_IFS | |
244 | ||
245 | ||
246 | if test "x$CONFIG_SHELL" != x; then : | |
247 | export CONFIG_SHELL | |
248 | # We cannot yet assume a decent shell, so we have to provide a | |
249 | # neutralization value for shells without unset; and this also | |
250 | # works around shells that cannot unset nonexistent variables. | |
251 | # Preserve -v and -x to the replacement shell. | |
252 | BASH_ENV=/dev/null | |
253 | ENV=/dev/null | |
254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 | case $- in # (((( | |
256 | *v*x* | *x*v* ) as_opts=-vx ;; | |
257 | *v* ) as_opts=-v ;; | |
258 | *x* ) as_opts=-x ;; | |
259 | * ) as_opts= ;; | |
260 | esac | |
261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 | # Admittedly, this is quite paranoid, since all the known shells bail | |
263 | # out after a failed `exec'. | |
264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 | exit 255 | |
266 | fi | |
267 | ||
268 | if test x$as_have_required = xno; then : | |
269 | $as_echo "$0: This script requires a shell more modern than all" | |
270 | $as_echo "$0: the shells that I found on your system." | |
271 | if test x${ZSH_VERSION+set} = xset ; then | |
272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
274 | else | |
275 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
276 | $0: including any error possibly output before this | |
277 | $0: message. Then install a modern shell, or manually run | |
278 | $0: the script under such a shell if you do have one." | |
279 | fi | |
280 | exit 1 | |
281 | fi | |
282 | fi | |
283 | fi | |
284 | SHELL=${CONFIG_SHELL-/bin/sh} | |
285 | export SHELL | |
286 | # Unset more variables known to interfere with behavior of common tools. | |
287 | CLICOLOR_FORCE= GREP_OPTIONS= | |
288 | unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | ||
290 | ## --------------------- ## | |
291 | ## M4sh Shell Functions. ## | |
292 | ## --------------------- ## | |
293 | # as_fn_unset VAR | |
294 | # --------------- | |
295 | # Portably unset VAR. | |
296 | as_fn_unset () | |
297 | { | |
298 | { eval $1=; unset $1;} | |
299 | } | |
300 | as_unset=as_fn_unset | |
301 | ||
302 | # as_fn_set_status STATUS | |
303 | # ----------------------- | |
304 | # Set $? to STATUS, without forking. | |
305 | as_fn_set_status () | |
306 | { | |
307 | return $1 | |
308 | } # as_fn_set_status | |
309 | ||
310 | # as_fn_exit STATUS | |
311 | # ----------------- | |
312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 | as_fn_exit () | |
314 | { | |
315 | set +e | |
316 | as_fn_set_status $1 | |
317 | exit $1 | |
318 | } # as_fn_exit | |
319 | ||
320 | # as_fn_mkdir_p | |
321 | # ------------- | |
322 | # Create "$as_dir" as a directory, including parents if necessary. | |
323 | as_fn_mkdir_p () | |
324 | { | |
325 | ||
326 | case $as_dir in #( | |
327 | -*) as_dir=./$as_dir;; | |
328 | esac | |
329 | test -d "$as_dir" || eval $as_mkdir_p || { | |
330 | as_dirs= | |
331 | while :; do | |
332 | case $as_dir in #( | |
333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 | *) as_qdir=$as_dir;; | |
335 | esac | |
336 | as_dirs="'$as_qdir' $as_dirs" | |
337 | as_dir=`$as_dirname -- "$as_dir" || | |
338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 | X"$as_dir" : 'X\(//\)$' \| \ | |
341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 | $as_echo X"$as_dir" | | |
343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)[^/].*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)$/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\).*/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | s/.*/./; q'` | |
360 | test -d "$as_dir" && break | |
361 | done | |
362 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
364 | ||
365 | ||
366 | } # as_fn_mkdir_p | |
367 | ||
368 | # as_fn_executable_p FILE | |
369 | # ----------------------- | |
370 | # Test if FILE is an executable regular file. | |
371 | as_fn_executable_p () | |
372 | { | |
373 | test -f "$1" && test -x "$1" | |
374 | } # as_fn_executable_p | |
375 | # as_fn_append VAR VALUE | |
376 | # ---------------------- | |
377 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 | # advantage of any shell optimizations that allow amortized linear growth over | |
379 | # repeated appends, instead of the typical quadratic growth present in naive | |
380 | # implementations. | |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 | eval 'as_fn_append () | |
383 | { | |
384 | eval $1+=\$2 | |
385 | }' | |
386 | else | |
387 | as_fn_append () | |
388 | { | |
389 | eval $1=\$$1\$2 | |
390 | } | |
391 | fi # as_fn_append | |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | eval 'as_fn_arith () | |
400 | { | |
401 | as_val=$(( $* )) | |
402 | }' | |
403 | else | |
404 | as_fn_arith () | |
405 | { | |
406 | as_val=`expr "$@" || test $? -eq 1` | |
407 | } | |
408 | fi # as_fn_arith | |
409 | ||
410 | ||
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
412 | # ---------------------------------------- | |
413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
415 | # script with STATUS, using 1 if that was 0. | |
416 | as_fn_error () | |
417 | { | |
418 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
419 | if test "$4"; then | |
420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
422 | fi | |
423 | $as_echo "$as_me: error: $2" >&2 | |
424 | as_fn_exit $as_status | |
425 | } # as_fn_error | |
426 | ||
427 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
429 | as_expr=expr | |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
435 | as_basename=basename | |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
441 | as_dirname=dirname | |
442 | else | |
443 | as_dirname=false | |
444 | fi | |
445 | ||
446 | as_me=`$as_basename -- "$0" || | |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
448 | X"$0" : 'X\(//\)$' \| \ | |
449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
450 | $as_echo X/"$0" | | |
451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\/\)$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\).*/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | s/.*/./; q'` | |
464 | ||
465 | # Avoid depending upon Character Ranges. | |
466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 | as_cr_digits='0123456789' | |
470 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
471 | ||
472 | ||
473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 | sed -n ' | |
479 | p | |
480 | /[$]LINENO/= | |
481 | ' <$as_myself | | |
482 | sed ' | |
483 | s/[$]LINENO.*/&-/ | |
484 | t lineno | |
485 | b | |
486 | :lineno | |
487 | N | |
488 | :loop | |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
490 | t loop | |
491 | s/-\n.*// | |
492 | ' >$as_me.lineno && | |
493 | chmod +x "$as_me.lineno" || | |
494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
495 | ||
496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
497 | # already done that, so ensure we don't try to do so again and fall | |
498 | # in an infinite loop. This has already happened in practice. | |
499 | _as_can_reexec=no; export _as_can_reexec | |
500 | # Don't try to exec as it changes $[0], causing all sort of problems | |
501 | # (the dirname of $[0] is not the place where we might find the | |
502 | # original and so on. Autoconf is especially sensitive to this). | |
503 | . "./$as_me.lineno" | |
504 | # Exit status is that of the last command. | |
505 | exit | |
506 | } | |
507 | ||
508 | ECHO_C= ECHO_N= ECHO_T= | |
509 | case `echo -n x` in #((((( | |
510 | -n*) | |
511 | case `echo 'xy\c'` in | |
512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 | xy) ECHO_C='\c';; | |
514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 | ECHO_T=' ';; | |
516 | esac;; | |
517 | *) | |
518 | ECHO_N='-n';; | |
519 | esac | |
520 | ||
521 | rm -f conf$$ conf$$.exe conf$$.file | |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
524 | else | |
525 | rm -f conf$$.dir | |
526 | mkdir conf$$.dir 2>/dev/null | |
527 | fi | |
528 | if (echo >conf$$.file) 2>/dev/null; then | |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
530 | as_ln_s='ln -s' | |
531 | # ... but there are two gotchas: | |
532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
534 | # In both cases, we have to default to `cp -pR'. | |
535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
536 | as_ln_s='cp -pR' | |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
538 | as_ln_s=ln | |
539 | else | |
540 | as_ln_s='cp -pR' | |
541 | fi | |
542 | else | |
543 | as_ln_s='cp -pR' | |
544 | fi | |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
546 | rmdir conf$$.dir 2>/dev/null | |
547 | ||
548 | if mkdir -p . 2>/dev/null; then | |
549 | as_mkdir_p='mkdir -p "$as_dir"' | |
550 | else | |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
555 | as_test_x='test -x' | |
556 | as_executable_p=as_fn_executable_p | |
557 | ||
558 | # Sed expression to map a string onto a valid CPP name. | |
559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | ||
561 | # Sed expression to map a string onto a valid variable name. | |
562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
564 | SHELL=${CONFIG_SHELL-/bin/sh} | |
565 | ||
566 | lt_ltdl_dir='extra/libltdl' | |
567 | ||
568 | lt_dlopen_dir="$lt_ltdl_dir" | |
569 | ||
570 | ||
571 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
572 | exec 6>&1 | |
573 | ||
574 | # Name of the host. | |
575 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
576 | # so uname gets run too. | |
577 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
578 | ||
579 | # | |
580 | # Initializations. | |
581 | # | |
582 | ac_default_prefix=/usr/local | |
583 | ac_clean_files= | |
584 | ac_config_libobj_dir=. | |
585 | LIBOBJS= | |
586 | cross_compiling=no | |
587 | subdirs= | |
588 | MFLAGS= | |
589 | MAKEFLAGS= | |
590 | ||
591 | # Identity of this package. | |
592 | PACKAGE_NAME='charybdis' | |
593 | PACKAGE_TARNAME='charybdis' | |
594 | PACKAGE_VERSION='3.6.0-dev' | |
595 | PACKAGE_STRING='charybdis 3.6.0-dev' | |
596 | PACKAGE_BUGREPORT='' | |
597 | PACKAGE_URL='' | |
598 | ||
599 | ac_default_prefix=$HOME/ircd | |
600 | # Factoring default headers for most tests. | |
601 | ac_includes_default="\ | |
602 | #include <stdio.h> | |
603 | #ifdef HAVE_SYS_TYPES_H | |
604 | # include <sys/types.h> | |
605 | #endif | |
606 | #ifdef HAVE_SYS_STAT_H | |
607 | # include <sys/stat.h> | |
608 | #endif | |
609 | #ifdef STDC_HEADERS | |
610 | # include <stdlib.h> | |
611 | # include <stddef.h> | |
612 | #else | |
613 | # ifdef HAVE_STDLIB_H | |
614 | # include <stdlib.h> | |
615 | # endif | |
616 | #endif | |
617 | #ifdef HAVE_STRING_H | |
618 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
619 | # include <memory.h> | |
620 | # endif | |
621 | # include <string.h> | |
622 | #endif | |
623 | #ifdef HAVE_STRINGS_H | |
624 | # include <strings.h> | |
625 | #endif | |
626 | #ifdef HAVE_INTTYPES_H | |
627 | # include <inttypes.h> | |
628 | #endif | |
629 | #ifdef HAVE_STDINT_H | |
630 | # include <stdint.h> | |
631 | #endif | |
632 | #ifdef HAVE_UNISTD_H | |
633 | # include <unistd.h> | |
634 | #endif" | |
635 | ||
636 | enable_option_checking=no | |
637 | ac_subst_vars='ltdl_LTLIBOBJS | |
638 | ltdl_LIBOBJS | |
639 | am__EXEEXT_FALSE | |
640 | am__EXEEXT_TRUE | |
641 | LTLIBOBJS | |
642 | LIBOBJS | |
643 | SEDOBJ | |
644 | IRC_CFLAGS | |
645 | PICFLAGS | |
646 | SSL_LIBS | |
647 | SSL_INCLUDES | |
648 | SSL_SRCS_ENABLE | |
649 | MOD_TARGET | |
650 | MODULES_LIBS | |
651 | SELECT_TYPE | |
652 | PROGRAM_PREFIX | |
653 | PKGRUNDIR | |
654 | moduledir | |
655 | MODULE_DIR | |
656 | helpdir | |
657 | HELP_DIR | |
658 | logdir | |
659 | LOG_DIR | |
660 | ETC_DIR | |
661 | SQLITE_OBJ | |
662 | SQLITE_INCLUDES | |
663 | SQLITE_LD | |
664 | SQLITE_LIBS | |
665 | SQLITE_CFLAGS | |
666 | PKG_CONFIG_LIBDIR | |
667 | PKG_CONFIG_PATH | |
668 | PKG_CONFIG | |
669 | ZLIB_LD | |
670 | ENCSPEED | |
671 | ALLOCA | |
672 | VICONF | |
673 | CRYPT_LIB | |
674 | PKGLIBEXECDIR | |
675 | pkglibexecdir | |
676 | PKGLOCALSTATEDIR | |
677 | pkglocalstatedir | |
678 | pkgrundir | |
679 | rundir | |
680 | pkglibdir | |
681 | LEXLIB | |
682 | LEX_OUTPUT_ROOT | |
683 | LEX | |
684 | YFLAGS | |
685 | YACC | |
686 | TOUCH | |
687 | LN | |
688 | MV | |
689 | CP | |
690 | RM | |
691 | BUILD_LTDL_FALSE | |
692 | BUILD_LTDL_TRUE | |
693 | LTDLOPEN | |
694 | LT_CONFIG_H | |
695 | subdirs | |
696 | CONVENIENCE_LTDL_FALSE | |
697 | CONVENIENCE_LTDL_TRUE | |
698 | INSTALL_LTDL_FALSE | |
699 | INSTALL_LTDL_TRUE | |
700 | ARGZ_H | |
701 | sys_symbol_underscore | |
702 | LIBADD_DL | |
703 | LT_DLPREOPEN | |
704 | LIBADD_DLD_LINK | |
705 | LIBADD_SHL_LOAD | |
706 | LIBADD_DLOPEN | |
707 | LT_DLLOADERS | |
708 | INCLTDL | |
709 | LTDLINCL | |
710 | LTDLDEPS | |
711 | LIBLTDL | |
712 | CPP | |
713 | OTOOL64 | |
714 | OTOOL | |
715 | LIPO | |
716 | NMEDIT | |
717 | DSYMUTIL | |
718 | MANIFEST_TOOL | |
719 | RANLIB | |
720 | DLLTOOL | |
721 | OBJDUMP | |
722 | LN_S | |
723 | NM | |
724 | ac_ct_DUMPBIN | |
725 | DUMPBIN | |
726 | LD | |
727 | FGREP | |
728 | EGREP | |
729 | GREP | |
730 | SED | |
731 | host_os | |
732 | host_vendor | |
733 | host_cpu | |
734 | host | |
735 | build_os | |
736 | build_vendor | |
737 | build_cpu | |
738 | build | |
739 | LIBTOOL | |
740 | am__fastdepCC_FALSE | |
741 | am__fastdepCC_TRUE | |
742 | CCDEPMODE | |
743 | am__nodep | |
744 | AMDEPBACKSLASH | |
745 | AMDEP_FALSE | |
746 | AMDEP_TRUE | |
747 | am__quote | |
748 | am__include | |
749 | DEPDIR | |
750 | OBJEXT | |
751 | EXEEXT | |
752 | ac_ct_CC | |
753 | CPPFLAGS | |
754 | LDFLAGS | |
755 | CFLAGS | |
756 | CC | |
757 | ac_ct_AR | |
758 | AR | |
759 | AM_BACKSLASH | |
760 | AM_DEFAULT_VERBOSITY | |
761 | AM_DEFAULT_V | |
762 | AM_V | |
763 | am__untar | |
764 | am__tar | |
765 | AMTAR | |
766 | am__leading_dot | |
767 | SET_MAKE | |
768 | AWK | |
769 | mkdir_p | |
770 | MKDIR_P | |
771 | INSTALL_STRIP_PROGRAM | |
772 | STRIP | |
773 | install_sh | |
774 | MAKEINFO | |
775 | AUTOHEADER | |
776 | AUTOMAKE | |
777 | AUTOCONF | |
778 | ACLOCAL | |
779 | VERSION | |
780 | PACKAGE | |
781 | CYGPATH_W | |
782 | am__isrc | |
783 | INSTALL_DATA | |
784 | INSTALL_SCRIPT | |
785 | INSTALL_PROGRAM | |
786 | target_alias | |
787 | host_alias | |
788 | build_alias | |
789 | LIBS | |
790 | ECHO_T | |
791 | ECHO_N | |
792 | ECHO_C | |
793 | DEFS | |
794 | mandir | |
795 | localedir | |
796 | libdir | |
797 | psdir | |
798 | pdfdir | |
799 | dvidir | |
800 | htmldir | |
801 | infodir | |
802 | docdir | |
803 | oldincludedir | |
804 | includedir | |
805 | localstatedir | |
806 | sharedstatedir | |
807 | sysconfdir | |
808 | datadir | |
809 | datarootdir | |
810 | libexecdir | |
811 | sbindir | |
812 | bindir | |
813 | program_transform_name | |
814 | prefix | |
815 | exec_prefix | |
816 | PACKAGE_URL | |
817 | PACKAGE_BUGREPORT | |
818 | PACKAGE_STRING | |
819 | PACKAGE_VERSION | |
820 | PACKAGE_TARNAME | |
821 | PACKAGE_NAME | |
822 | PATH_SEPARATOR | |
823 | SHELL' | |
824 | ac_subst_files='' | |
825 | ac_user_opts=' | |
826 | enable_option_checking | |
827 | enable_silent_rules | |
828 | enable_dependency_tracking | |
829 | enable_static | |
830 | enable_shared | |
831 | with_pic | |
832 | enable_fast_install | |
833 | with_gnu_ld | |
834 | with_sysroot | |
835 | enable_libtool_lock | |
836 | with_included_ltdl | |
837 | with_ltdl_include | |
838 | with_ltdl_lib | |
839 | enable_ltdl_install | |
840 | enable_fhs_paths | |
841 | enable_ipv6 | |
842 | enable_openssl | |
843 | with_zlib_path | |
844 | enable_zlib | |
845 | with_shared_sqlite | |
846 | enable_ports | |
847 | enable_poll | |
848 | enable_select | |
849 | enable_kqueue | |
850 | enable_epoll | |
851 | with_confdir | |
852 | with_logdir | |
853 | with_helpdir | |
854 | with_moduledir | |
855 | with_rundir | |
856 | with_program_prefix | |
857 | with_custom_branding | |
858 | with_custom_version | |
859 | enable_assert | |
860 | enable_iodebug | |
861 | enable_profile | |
862 | enable_balloc | |
863 | enable_small_net | |
864 | with_nicklen | |
865 | with_topiclen | |
866 | enable_warnings | |
867 | ' | |
868 | ac_precious_vars='build_alias | |
869 | host_alias | |
870 | target_alias | |
871 | CC | |
872 | CFLAGS | |
873 | LDFLAGS | |
874 | LIBS | |
875 | CPPFLAGS | |
876 | CPP | |
877 | YACC | |
878 | YFLAGS | |
879 | PKG_CONFIG | |
880 | PKG_CONFIG_PATH | |
881 | PKG_CONFIG_LIBDIR | |
882 | SQLITE_CFLAGS | |
883 | SQLITE_LIBS' | |
884 | ac_subdirs_all='extra/libltdl | |
885 | libratbox' | |
886 | ||
887 | # Initialize some variables set by options. | |
888 | ac_init_help= | |
889 | ac_init_version=false | |
890 | ac_unrecognized_opts= | |
891 | ac_unrecognized_sep= | |
892 | # The variables have the same names as the options, with | |
893 | # dashes changed to underlines. | |
894 | cache_file=/dev/null | |
895 | exec_prefix=NONE | |
896 | no_create= | |
897 | no_recursion= | |
898 | prefix=NONE | |
899 | program_prefix=NONE | |
900 | program_suffix=NONE | |
901 | program_transform_name=s,x,x, | |
902 | silent= | |
903 | site= | |
904 | srcdir= | |
905 | verbose= | |
906 | x_includes=NONE | |
907 | x_libraries=NONE | |
908 | ||
909 | # Installation directory options. | |
910 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
911 | # and all the variables that are supposed to be based on exec_prefix | |
912 | # by default will actually change. | |
913 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
914 | # (The list follows the same order as the GNU Coding Standards.) | |
915 | bindir='${exec_prefix}/bin' | |
916 | sbindir='${exec_prefix}/sbin' | |
917 | libexecdir='${exec_prefix}/libexec' | |
918 | datarootdir='${prefix}/share' | |
919 | datadir='${datarootdir}' | |
920 | sysconfdir='${prefix}/etc' | |
921 | sharedstatedir='${prefix}/com' | |
922 | localstatedir='${prefix}/var' | |
923 | includedir='${prefix}/include' | |
924 | oldincludedir='/usr/include' | |
925 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
926 | infodir='${datarootdir}/info' | |
927 | htmldir='${docdir}' | |
928 | dvidir='${docdir}' | |
929 | pdfdir='${docdir}' | |
930 | psdir='${docdir}' | |
931 | libdir='${exec_prefix}/lib' | |
932 | localedir='${datarootdir}/locale' | |
933 | mandir='${datarootdir}/man' | |
934 | ||
935 | ac_prev= | |
936 | ac_dashdash= | |
937 | for ac_option | |
938 | do | |
939 | # If the previous option needs an argument, assign it. | |
940 | if test -n "$ac_prev"; then | |
941 | eval $ac_prev=\$ac_option | |
942 | ac_prev= | |
943 | continue | |
944 | fi | |
945 | ||
946 | case $ac_option in | |
947 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
948 | *=) ac_optarg= ;; | |
949 | *) ac_optarg=yes ;; | |
950 | esac | |
951 | ||
952 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
953 | ||
954 | case $ac_dashdash$ac_option in | |
955 | --) | |
956 | ac_dashdash=yes ;; | |
957 | ||
958 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
959 | ac_prev=bindir ;; | |
960 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
961 | bindir=$ac_optarg ;; | |
962 | ||
963 | -build | --build | --buil | --bui | --bu) | |
964 | ac_prev=build_alias ;; | |
965 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
966 | build_alias=$ac_optarg ;; | |
967 | ||
968 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
969 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
970 | ac_prev=cache_file ;; | |
971 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
972 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
973 | cache_file=$ac_optarg ;; | |
974 | ||
975 | --config-cache | -C) | |
976 | cache_file=config.cache ;; | |
977 | ||
978 | -datadir | --datadir | --datadi | --datad) | |
979 | ac_prev=datadir ;; | |
980 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
981 | datadir=$ac_optarg ;; | |
982 | ||
983 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
984 | | --dataroo | --dataro | --datar) | |
985 | ac_prev=datarootdir ;; | |
986 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
987 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
988 | datarootdir=$ac_optarg ;; | |
989 | ||
990 | -disable-* | --disable-*) | |
991 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
992 | # Reject names that are not valid shell variable names. | |
993 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
994 | as_fn_error $? "invalid feature name: $ac_useropt" | |
995 | ac_useropt_orig=$ac_useropt | |
996 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
997 | case $ac_user_opts in | |
998 | *" | |
999 | "enable_$ac_useropt" | |
1000 | "*) ;; | |
1001 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1002 | ac_unrecognized_sep=', ';; | |
1003 | esac | |
1004 | eval enable_$ac_useropt=no ;; | |
1005 | ||
1006 | -docdir | --docdir | --docdi | --doc | --do) | |
1007 | ac_prev=docdir ;; | |
1008 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1009 | docdir=$ac_optarg ;; | |
1010 | ||
1011 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1012 | ac_prev=dvidir ;; | |
1013 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1014 | dvidir=$ac_optarg ;; | |
1015 | ||
1016 | -enable-* | --enable-*) | |
1017 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1018 | # Reject names that are not valid shell variable names. | |
1019 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1020 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1021 | ac_useropt_orig=$ac_useropt | |
1022 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1023 | case $ac_user_opts in | |
1024 | *" | |
1025 | "enable_$ac_useropt" | |
1026 | "*) ;; | |
1027 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1028 | ac_unrecognized_sep=', ';; | |
1029 | esac | |
1030 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1031 | ||
1032 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1033 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1034 | | --exec | --exe | --ex) | |
1035 | ac_prev=exec_prefix ;; | |
1036 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1037 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1038 | | --exec=* | --exe=* | --ex=*) | |
1039 | exec_prefix=$ac_optarg ;; | |
1040 | ||
1041 | -gas | --gas | --ga | --g) | |
1042 | # Obsolete; use --with-gas. | |
1043 | with_gas=yes ;; | |
1044 | ||
1045 | -help | --help | --hel | --he | -h) | |
1046 | ac_init_help=long ;; | |
1047 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1048 | ac_init_help=recursive ;; | |
1049 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1050 | ac_init_help=short ;; | |
1051 | ||
1052 | -host | --host | --hos | --ho) | |
1053 | ac_prev=host_alias ;; | |
1054 | -host=* | --host=* | --hos=* | --ho=*) | |
1055 | host_alias=$ac_optarg ;; | |
1056 | ||
1057 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1058 | ac_prev=htmldir ;; | |
1059 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1060 | | --ht=*) | |
1061 | htmldir=$ac_optarg ;; | |
1062 | ||
1063 | -includedir | --includedir | --includedi | --included | --include \ | |
1064 | | --includ | --inclu | --incl | --inc) | |
1065 | ac_prev=includedir ;; | |
1066 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1067 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1068 | includedir=$ac_optarg ;; | |
1069 | ||
1070 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1071 | ac_prev=infodir ;; | |
1072 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1073 | infodir=$ac_optarg ;; | |
1074 | ||
1075 | -libdir | --libdir | --libdi | --libd) | |
1076 | ac_prev=libdir ;; | |
1077 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1078 | libdir=$ac_optarg ;; | |
1079 | ||
1080 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1081 | | --libexe | --libex | --libe) | |
1082 | ac_prev=libexecdir ;; | |
1083 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1084 | | --libexe=* | --libex=* | --libe=*) | |
1085 | libexecdir=$ac_optarg ;; | |
1086 | ||
1087 | -localedir | --localedir | --localedi | --localed | --locale) | |
1088 | ac_prev=localedir ;; | |
1089 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1090 | localedir=$ac_optarg ;; | |
1091 | ||
1092 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1093 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1094 | ac_prev=localstatedir ;; | |
1095 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1096 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1097 | localstatedir=$ac_optarg ;; | |
1098 | ||
1099 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1100 | ac_prev=mandir ;; | |
1101 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1102 | mandir=$ac_optarg ;; | |
1103 | ||
1104 | -nfp | --nfp | --nf) | |
1105 | # Obsolete; use --without-fp. | |
1106 | with_fp=no ;; | |
1107 | ||
1108 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1109 | | --no-cr | --no-c | -n) | |
1110 | no_create=yes ;; | |
1111 | ||
1112 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1113 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1114 | no_recursion=yes ;; | |
1115 | ||
1116 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1117 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1118 | | --oldin | --oldi | --old | --ol | --o) | |
1119 | ac_prev=oldincludedir ;; | |
1120 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1121 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1122 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1123 | oldincludedir=$ac_optarg ;; | |
1124 | ||
1125 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1126 | ac_prev=prefix ;; | |
1127 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1128 | prefix=$ac_optarg ;; | |
1129 | ||
1130 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1131 | | --program-pre | --program-pr | --program-p) | |
1132 | ac_prev=program_prefix ;; | |
1133 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1134 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1135 | program_prefix=$ac_optarg ;; | |
1136 | ||
1137 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1138 | | --program-suf | --program-su | --program-s) | |
1139 | ac_prev=program_suffix ;; | |
1140 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1141 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1142 | program_suffix=$ac_optarg ;; | |
1143 | ||
1144 | -program-transform-name | --program-transform-name \ | |
1145 | | --program-transform-nam | --program-transform-na \ | |
1146 | | --program-transform-n | --program-transform- \ | |
1147 | | --program-transform | --program-transfor \ | |
1148 | | --program-transfo | --program-transf \ | |
1149 | | --program-trans | --program-tran \ | |
1150 | | --progr-tra | --program-tr | --program-t) | |
1151 | ac_prev=program_transform_name ;; | |
1152 | -program-transform-name=* | --program-transform-name=* \ | |
1153 | | --program-transform-nam=* | --program-transform-na=* \ | |
1154 | | --program-transform-n=* | --program-transform-=* \ | |
1155 | | --program-transform=* | --program-transfor=* \ | |
1156 | | --program-transfo=* | --program-transf=* \ | |
1157 | | --program-trans=* | --program-tran=* \ | |
1158 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1159 | program_transform_name=$ac_optarg ;; | |
1160 | ||
1161 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1162 | ac_prev=pdfdir ;; | |
1163 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1164 | pdfdir=$ac_optarg ;; | |
1165 | ||
1166 | -psdir | --psdir | --psdi | --psd | --ps) | |
1167 | ac_prev=psdir ;; | |
1168 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1169 | psdir=$ac_optarg ;; | |
1170 | ||
1171 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1172 | | -silent | --silent | --silen | --sile | --sil) | |
1173 | silent=yes ;; | |
1174 | ||
1175 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1176 | ac_prev=sbindir ;; | |
1177 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1178 | | --sbi=* | --sb=*) | |
1179 | sbindir=$ac_optarg ;; | |
1180 | ||
1181 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1182 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1183 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1184 | | --sha | --sh) | |
1185 | ac_prev=sharedstatedir ;; | |
1186 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1187 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1188 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1189 | | --sha=* | --sh=*) | |
1190 | sharedstatedir=$ac_optarg ;; | |
1191 | ||
1192 | -site | --site | --sit) | |
1193 | ac_prev=site ;; | |
1194 | -site=* | --site=* | --sit=*) | |
1195 | site=$ac_optarg ;; | |
1196 | ||
1197 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1198 | ac_prev=srcdir ;; | |
1199 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1200 | srcdir=$ac_optarg ;; | |
1201 | ||
1202 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1203 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1204 | ac_prev=sysconfdir ;; | |
1205 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1206 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1207 | sysconfdir=$ac_optarg ;; | |
1208 | ||
1209 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1210 | ac_prev=target_alias ;; | |
1211 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1212 | target_alias=$ac_optarg ;; | |
1213 | ||
1214 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1215 | verbose=yes ;; | |
1216 | ||
1217 | -version | --version | --versio | --versi | --vers | -V) | |
1218 | ac_init_version=: ;; | |
1219 | ||
1220 | -with-* | --with-*) | |
1221 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1222 | # Reject names that are not valid shell variable names. | |
1223 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1224 | as_fn_error $? "invalid package name: $ac_useropt" | |
1225 | ac_useropt_orig=$ac_useropt | |
1226 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1227 | case $ac_user_opts in | |
1228 | *" | |
1229 | "with_$ac_useropt" | |
1230 | "*) ;; | |
1231 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1232 | ac_unrecognized_sep=', ';; | |
1233 | esac | |
1234 | eval with_$ac_useropt=\$ac_optarg ;; | |
1235 | ||
1236 | -without-* | --without-*) | |
1237 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1238 | # Reject names that are not valid shell variable names. | |
1239 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1240 | as_fn_error $? "invalid package name: $ac_useropt" | |
1241 | ac_useropt_orig=$ac_useropt | |
1242 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1243 | case $ac_user_opts in | |
1244 | *" | |
1245 | "with_$ac_useropt" | |
1246 | "*) ;; | |
1247 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1248 | ac_unrecognized_sep=', ';; | |
1249 | esac | |
1250 | eval with_$ac_useropt=no ;; | |
1251 | ||
1252 | --x) | |
1253 | # Obsolete; use --with-x. | |
1254 | with_x=yes ;; | |
1255 | ||
1256 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1257 | | --x-incl | --x-inc | --x-in | --x-i) | |
1258 | ac_prev=x_includes ;; | |
1259 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1260 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1261 | x_includes=$ac_optarg ;; | |
1262 | ||
1263 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1264 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1265 | ac_prev=x_libraries ;; | |
1266 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1267 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1268 | x_libraries=$ac_optarg ;; | |
1269 | ||
1270 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1271 | Try \`$0 --help' for more information" | |
1272 | ;; | |
1273 | ||
1274 | *=*) | |
1275 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1276 | # Reject names that are not valid shell variable names. | |
1277 | case $ac_envvar in #( | |
1278 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1279 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1280 | esac | |
1281 | eval $ac_envvar=\$ac_optarg | |
1282 | export $ac_envvar ;; | |
1283 | ||
1284 | *) | |
1285 | # FIXME: should be removed in autoconf 3.0. | |
1286 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1287 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1288 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1289 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1290 | ;; | |
1291 | ||
1292 | esac | |
1293 | done | |
1294 | ||
1295 | if test -n "$ac_prev"; then | |
1296 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1297 | as_fn_error $? "missing argument to $ac_option" | |
1298 | fi | |
1299 | ||
1300 | if test -n "$ac_unrecognized_opts"; then | |
1301 | case $enable_option_checking in | |
1302 | no) ;; | |
1303 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1304 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1305 | esac | |
1306 | fi | |
1307 | ||
1308 | # Check all directory arguments for consistency. | |
1309 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1310 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1311 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1312 | libdir localedir mandir | |
1313 | do | |
1314 | eval ac_val=\$$ac_var | |
1315 | # Remove trailing slashes. | |
1316 | case $ac_val in | |
1317 | */ ) | |
1318 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1319 | eval $ac_var=\$ac_val;; | |
1320 | esac | |
1321 | # Be sure to have absolute directory names. | |
1322 | case $ac_val in | |
1323 | [\\/$]* | ?:[\\/]* ) continue;; | |
1324 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1325 | esac | |
1326 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1327 | done | |
1328 | ||
1329 | # There might be people who depend on the old broken behavior: `$host' | |
1330 | # used to hold the argument of --host etc. | |
1331 | # FIXME: To remove some day. | |
1332 | build=$build_alias | |
1333 | host=$host_alias | |
1334 | target=$target_alias | |
1335 | ||
1336 | # FIXME: To remove some day. | |
1337 | if test "x$host_alias" != x; then | |
1338 | if test "x$build_alias" = x; then | |
1339 | cross_compiling=maybe | |
1340 | elif test "x$build_alias" != "x$host_alias"; then | |
1341 | cross_compiling=yes | |
1342 | fi | |
1343 | fi | |
1344 | ||
1345 | ac_tool_prefix= | |
1346 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1347 | ||
1348 | test "$silent" = yes && exec 6>/dev/null | |
1349 | ||
1350 | ||
1351 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1352 | ac_ls_di=`ls -di .` && | |
1353 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1354 | as_fn_error $? "working directory cannot be determined" | |
1355 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1356 | as_fn_error $? "pwd does not report name of working directory" | |
1357 | ||
1358 | ||
1359 | # Find the source files, if location was not specified. | |
1360 | if test -z "$srcdir"; then | |
1361 | ac_srcdir_defaulted=yes | |
1362 | # Try the directory containing this script, then the parent directory. | |
1363 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1364 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1365 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1366 | X"$as_myself" : 'X\(//\)$' \| \ | |
1367 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1368 | $as_echo X"$as_myself" | | |
1369 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1370 | s//\1/ | |
1371 | q | |
1372 | } | |
1373 | /^X\(\/\/\)[^/].*/{ | |
1374 | s//\1/ | |
1375 | q | |
1376 | } | |
1377 | /^X\(\/\/\)$/{ | |
1378 | s//\1/ | |
1379 | q | |
1380 | } | |
1381 | /^X\(\/\).*/{ | |
1382 | s//\1/ | |
1383 | q | |
1384 | } | |
1385 | s/.*/./; q'` | |
1386 | srcdir=$ac_confdir | |
1387 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1388 | srcdir=.. | |
1389 | fi | |
1390 | else | |
1391 | ac_srcdir_defaulted=no | |
1392 | fi | |
1393 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1394 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1395 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1396 | fi | |
1397 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1398 | ac_abs_confdir=`( | |
1399 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1400 | pwd)` | |
1401 | # When building in place, set srcdir=. | |
1402 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1403 | srcdir=. | |
1404 | fi | |
1405 | # Remove unnecessary trailing slashes from srcdir. | |
1406 | # Double slashes in file names in object file debugging info | |
1407 | # mess up M-x gdb in Emacs. | |
1408 | case $srcdir in | |
1409 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1410 | esac | |
1411 | for ac_var in $ac_precious_vars; do | |
1412 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1413 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1414 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1415 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1416 | done | |
1417 | ||
1418 | # | |
1419 | # Report the --help message. | |
1420 | # | |
1421 | if test "$ac_init_help" = "long"; then | |
1422 | # Omit some internal or obsolete options to make the list less imposing. | |
1423 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1424 | cat <<_ACEOF | |
1425 | \`configure' configures charybdis 3.6.0-dev to adapt to many kinds of systems. | |
1426 | ||
1427 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1428 | ||
1429 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1430 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1431 | ||
1432 | Defaults for the options are specified in brackets. | |
1433 | ||
1434 | Configuration: | |
1435 | -h, --help display this help and exit | |
1436 | --help=short display options specific to this package | |
1437 | --help=recursive display the short help of all the included packages | |
1438 | -V, --version display version information and exit | |
1439 | -q, --quiet, --silent do not print \`checking ...' messages | |
1440 | --cache-file=FILE cache test results in FILE [disabled] | |
1441 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1442 | -n, --no-create do not create output files | |
1443 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1444 | ||
1445 | Installation directories: | |
1446 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1447 | [$ac_default_prefix] | |
1448 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1449 | [PREFIX] | |
1450 | ||
1451 | By default, \`make install' will install all the files in | |
1452 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1453 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1454 | for instance \`--prefix=\$HOME'. | |
1455 | ||
1456 | For better control, use the options below. | |
1457 | ||
1458 | Fine tuning of the installation directories: | |
1459 | --bindir=DIR user executables [EPREFIX/bin] | |
1460 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1461 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1462 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1463 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1464 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1465 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1466 | --includedir=DIR C header files [PREFIX/include] | |
1467 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1468 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1469 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1470 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1471 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1472 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1473 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1474 | --htmldir=DIR html documentation [DOCDIR] | |
1475 | --dvidir=DIR dvi documentation [DOCDIR] | |
1476 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1477 | --psdir=DIR ps documentation [DOCDIR] | |
1478 | _ACEOF | |
1479 | ||
1480 | cat <<\_ACEOF | |
1481 | ||
1482 | Program names: | |
1483 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1484 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1485 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1486 | ||
1487 | System types: | |
1488 | --build=BUILD configure for building on BUILD [guessed] | |
1489 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1490 | _ACEOF | |
1491 | fi | |
1492 | ||
1493 | if test -n "$ac_init_help"; then | |
1494 | case $ac_init_help in | |
1495 | short | recursive ) echo "Configuration of charybdis 3.6.0-dev:";; | |
1496 | esac | |
1497 | cat <<\_ACEOF | |
1498 | ||
1499 | Optional Features: | |
1500 | --disable-option-checking ignore unrecognized --enable/--with options | |
1501 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1502 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1503 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1504 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1505 | --enable-dependency-tracking | |
1506 | do not reject slow dependency extractors | |
1507 | --disable-dependency-tracking | |
1508 | speeds up one-time build | |
1509 | --enable-static[=PKGS] build static libraries [default=no] | |
1510 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1511 | --enable-fast-install[=PKGS] | |
1512 | optimize for fast installation [default=yes] | |
1513 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1514 | --enable-ltdl-install install libltdl | |
1515 | --enable-fhs-paths Use more FHS-like pathnames (for packagers). | |
1516 | --enable-ipv6 Enable IPv6 support | |
1517 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). | |
1518 | --disable-openssl Disable OpenSSL support. | |
1519 | --disable-zlib Disable ziplinks support | |
1520 | --enable-ports Force solaris I/O ports subsystem usage. | |
1521 | --enable-poll Force poll() usage. | |
1522 | --enable-select Force select() usage. | |
1523 | --enable-kqueue Force kqueue() usage. | |
1524 | --enable-epoll Force sys_epoll usage (Linux only). | |
1525 | --enable-assert Enable assert(). Choose between soft(warnings) and | |
1526 | hard(aborts the daemon) | |
1527 | --enable-iodebug Enable IO Debugging hooks | |
1528 | --enable-profile Enable profiling | |
1529 | --disable-balloc Disable the block allocator. | |
1530 | --enable-small-net Enable small network support. | |
1531 | --enable-warnings Enable all sorts of warnings for debugging. | |
1532 | ||
1533 | Optional Packages: | |
1534 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1535 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1536 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | |
1537 | both] | |
1538 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1539 | --with-sysroot=DIR Search for dependent libraries within DIR | |
1540 | (or the compiler's sysroot if not specified). | |
1541 | --with-included-ltdl use the GNU ltdl sources included here | |
1542 | --with-ltdl-include=DIR use the ltdl headers installed in DIR | |
1543 | --with-ltdl-lib=DIR use the libltdl.la installed in DIR | |
1544 | --with-zlib-path=DIR Path to libz.so for ziplinks support. | |
1545 | --with-shared-sqlite Use shared sqlite | |
1546 | --with-confdir=DIR Directory to install config files [deprecated, use | |
1547 | --sysconfdir instead]. | |
1548 | --with-logdir=DIR Directory where to write logfiles. | |
1549 | --with-helpdir=DIR Directory to install help files. | |
1550 | --with-moduledir=DIR Directory to install modules. | |
1551 | --with-rundir=DIR Directory in which to store pidfile. | |
1552 | --with-program-prefix= If set, programs installed into PATH will be | |
1553 | installed with names prefixed by this prefix. | |
1554 | --with-custom-branding=NAME | |
1555 | Custom branding name. | |
1556 | --with-custom-version=NAME | |
1557 | Custom version branding. | |
1558 | --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default | |
1559 | 31, max 50) | |
1560 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max | |
1561 | 390) | |
1562 | ||
1563 | Some influential environment variables: | |
1564 | CC C compiler command | |
1565 | CFLAGS C compiler flags | |
1566 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1567 | nonstandard directory <lib dir> | |
1568 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1569 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1570 | you have headers in a nonstandard directory <include dir> | |
1571 | CPP C preprocessor | |
1572 | YACC The `Yet Another Compiler Compiler' implementation to use. | |
1573 | Defaults to the first program found out of: `bison -y', `byacc', | |
1574 | `yacc'. | |
1575 | YFLAGS The list of arguments that will be passed by default to $YACC. | |
1576 | This script will default YFLAGS to the empty string to avoid a | |
1577 | default value of `-d' given by some make applications. | |
1578 | PKG_CONFIG path to pkg-config utility | |
1579 | PKG_CONFIG_PATH | |
1580 | directories to add to pkg-config's search path | |
1581 | PKG_CONFIG_LIBDIR | |
1582 | path overriding pkg-config's built-in search path | |
1583 | SQLITE_CFLAGS | |
1584 | C compiler flags for SQLITE, overriding pkg-config | |
1585 | SQLITE_LIBS linker flags for SQLITE, overriding pkg-config | |
1586 | ||
1587 | Use these variables to override the choices made by `configure' or to help | |
1588 | it to find libraries and programs with nonstandard names/locations. | |
1589 | ||
1590 | Report bugs to the package provider. | |
1591 | _ACEOF | |
1592 | ac_status=$? | |
1593 | fi | |
1594 | ||
1595 | if test "$ac_init_help" = "recursive"; then | |
1596 | # If there are subdirs, report their specific --help. | |
1597 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1598 | test -d "$ac_dir" || | |
1599 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1600 | continue | |
1601 | ac_builddir=. | |
1602 | ||
1603 | case "$ac_dir" in | |
1604 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1605 | *) | |
1606 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1607 | # A ".." for each directory in $ac_dir_suffix. | |
1608 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1609 | case $ac_top_builddir_sub in | |
1610 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1611 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1612 | esac ;; | |
1613 | esac | |
1614 | ac_abs_top_builddir=$ac_pwd | |
1615 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1616 | # for backward compatibility: | |
1617 | ac_top_builddir=$ac_top_build_prefix | |
1618 | ||
1619 | case $srcdir in | |
1620 | .) # We are building in place. | |
1621 | ac_srcdir=. | |
1622 | ac_top_srcdir=$ac_top_builddir_sub | |
1623 | ac_abs_top_srcdir=$ac_pwd ;; | |
1624 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1625 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1626 | ac_top_srcdir=$srcdir | |
1627 | ac_abs_top_srcdir=$srcdir ;; | |
1628 | *) # Relative name. | |
1629 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1630 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1631 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1632 | esac | |
1633 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1634 | ||
1635 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1636 | # Check for guested configure. | |
1637 | if test -f "$ac_srcdir/configure.gnu"; then | |
1638 | echo && | |
1639 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1640 | elif test -f "$ac_srcdir/configure"; then | |
1641 | echo && | |
1642 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1643 | else | |
1644 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1645 | fi || ac_status=$? | |
1646 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1647 | done | |
1648 | fi | |
1649 | ||
1650 | test -n "$ac_init_help" && exit $ac_status | |
1651 | if $ac_init_version; then | |
1652 | cat <<\_ACEOF | |
1653 | charybdis configure 3.6.0-dev | |
1654 | generated by GNU Autoconf 2.69 | |
1655 | ||
1656 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1657 | This configure script is free software; the Free Software Foundation | |
1658 | gives unlimited permission to copy, distribute and modify it. | |
1659 | _ACEOF | |
1660 | exit | |
1661 | fi | |
1662 | ||
1663 | ## ------------------------ ## | |
1664 | ## Autoconf initialization. ## | |
1665 | ## ------------------------ ## | |
1666 | ||
1667 | # ac_fn_c_try_compile LINENO | |
1668 | # -------------------------- | |
1669 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1670 | ac_fn_c_try_compile () | |
1671 | { | |
1672 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1673 | rm -f conftest.$ac_objext | |
1674 | if { { ac_try="$ac_compile" | |
1675 | case "(($ac_try" in | |
1676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1677 | *) ac_try_echo=$ac_try;; | |
1678 | esac | |
1679 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1680 | $as_echo "$ac_try_echo"; } >&5 | |
1681 | (eval "$ac_compile") 2>conftest.err | |
1682 | ac_status=$? | |
1683 | if test -s conftest.err; then | |
1684 | grep -v '^ *+' conftest.err >conftest.er1 | |
1685 | cat conftest.er1 >&5 | |
1686 | mv -f conftest.er1 conftest.err | |
1687 | fi | |
1688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1689 | test $ac_status = 0; } && { | |
1690 | test -z "$ac_c_werror_flag" || | |
1691 | test ! -s conftest.err | |
1692 | } && test -s conftest.$ac_objext; then : | |
1693 | ac_retval=0 | |
1694 | else | |
1695 | $as_echo "$as_me: failed program was:" >&5 | |
1696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1697 | ||
1698 | ac_retval=1 | |
1699 | fi | |
1700 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1701 | as_fn_set_status $ac_retval | |
1702 | ||
1703 | } # ac_fn_c_try_compile | |
1704 | ||
1705 | # ac_fn_c_try_link LINENO | |
1706 | # ----------------------- | |
1707 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1708 | ac_fn_c_try_link () | |
1709 | { | |
1710 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1711 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1712 | if { { ac_try="$ac_link" | |
1713 | case "(($ac_try" in | |
1714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1715 | *) ac_try_echo=$ac_try;; | |
1716 | esac | |
1717 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1718 | $as_echo "$ac_try_echo"; } >&5 | |
1719 | (eval "$ac_link") 2>conftest.err | |
1720 | ac_status=$? | |
1721 | if test -s conftest.err; then | |
1722 | grep -v '^ *+' conftest.err >conftest.er1 | |
1723 | cat conftest.er1 >&5 | |
1724 | mv -f conftest.er1 conftest.err | |
1725 | fi | |
1726 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1727 | test $ac_status = 0; } && { | |
1728 | test -z "$ac_c_werror_flag" || | |
1729 | test ! -s conftest.err | |
1730 | } && test -s conftest$ac_exeext && { | |
1731 | test "$cross_compiling" = yes || | |
1732 | test -x conftest$ac_exeext | |
1733 | }; then : | |
1734 | ac_retval=0 | |
1735 | else | |
1736 | $as_echo "$as_me: failed program was:" >&5 | |
1737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1738 | ||
1739 | ac_retval=1 | |
1740 | fi | |
1741 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1742 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1743 | # interfere with the next link command; also delete a directory that is | |
1744 | # left behind by Apple's compiler. We do this before executing the actions. | |
1745 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1746 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1747 | as_fn_set_status $ac_retval | |
1748 | ||
1749 | } # ac_fn_c_try_link | |
1750 | ||
1751 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1752 | # ------------------------------------------------------- | |
1753 | # Tests whether HEADER exists and can be compiled using the include files in | |
1754 | # INCLUDES, setting the cache variable VAR accordingly. | |
1755 | ac_fn_c_check_header_compile () | |
1756 | { | |
1757 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1759 | $as_echo_n "checking for $2... " >&6; } | |
1760 | if eval \${$3+:} false; then : | |
1761 | $as_echo_n "(cached) " >&6 | |
1762 | else | |
1763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1764 | /* end confdefs.h. */ | |
1765 | $4 | |
1766 | #include <$2> | |
1767 | _ACEOF | |
1768 | if ac_fn_c_try_compile "$LINENO"; then : | |
1769 | eval "$3=yes" | |
1770 | else | |
1771 | eval "$3=no" | |
1772 | fi | |
1773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1774 | fi | |
1775 | eval ac_res=\$$3 | |
1776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1777 | $as_echo "$ac_res" >&6; } | |
1778 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1779 | ||
1780 | } # ac_fn_c_check_header_compile | |
1781 | ||
1782 | # ac_fn_c_try_cpp LINENO | |
1783 | # ---------------------- | |
1784 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1785 | ac_fn_c_try_cpp () | |
1786 | { | |
1787 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1788 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1789 | case "(($ac_try" in | |
1790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1791 | *) ac_try_echo=$ac_try;; | |
1792 | esac | |
1793 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1794 | $as_echo "$ac_try_echo"; } >&5 | |
1795 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1796 | ac_status=$? | |
1797 | if test -s conftest.err; then | |
1798 | grep -v '^ *+' conftest.err >conftest.er1 | |
1799 | cat conftest.er1 >&5 | |
1800 | mv -f conftest.er1 conftest.err | |
1801 | fi | |
1802 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1803 | test $ac_status = 0; } > conftest.i && { | |
1804 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1805 | test ! -s conftest.err | |
1806 | }; then : | |
1807 | ac_retval=0 | |
1808 | else | |
1809 | $as_echo "$as_me: failed program was:" >&5 | |
1810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1811 | ||
1812 | ac_retval=1 | |
1813 | fi | |
1814 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1815 | as_fn_set_status $ac_retval | |
1816 | ||
1817 | } # ac_fn_c_try_cpp | |
1818 | ||
1819 | # ac_fn_c_try_run LINENO | |
1820 | # ---------------------- | |
1821 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1822 | # that executables *can* be run. | |
1823 | ac_fn_c_try_run () | |
1824 | { | |
1825 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1826 | if { { ac_try="$ac_link" | |
1827 | case "(($ac_try" in | |
1828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1829 | *) ac_try_echo=$ac_try;; | |
1830 | esac | |
1831 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1832 | $as_echo "$ac_try_echo"; } >&5 | |
1833 | (eval "$ac_link") 2>&5 | |
1834 | ac_status=$? | |
1835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1836 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1837 | { { case "(($ac_try" in | |
1838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1839 | *) ac_try_echo=$ac_try;; | |
1840 | esac | |
1841 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1842 | $as_echo "$ac_try_echo"; } >&5 | |
1843 | (eval "$ac_try") 2>&5 | |
1844 | ac_status=$? | |
1845 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1846 | test $ac_status = 0; }; }; then : | |
1847 | ac_retval=0 | |
1848 | else | |
1849 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1850 | $as_echo "$as_me: failed program was:" >&5 | |
1851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1852 | ||
1853 | ac_retval=$ac_status | |
1854 | fi | |
1855 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1856 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1857 | as_fn_set_status $ac_retval | |
1858 | ||
1859 | } # ac_fn_c_try_run | |
1860 | ||
1861 | # ac_fn_c_check_func LINENO FUNC VAR | |
1862 | # ---------------------------------- | |
1863 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1864 | ac_fn_c_check_func () | |
1865 | { | |
1866 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1868 | $as_echo_n "checking for $2... " >&6; } | |
1869 | if eval \${$3+:} false; then : | |
1870 | $as_echo_n "(cached) " >&6 | |
1871 | else | |
1872 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1873 | /* end confdefs.h. */ | |
1874 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1875 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1876 | #define $2 innocuous_$2 | |
1877 | ||
1878 | /* System header to define __stub macros and hopefully few prototypes, | |
1879 | which can conflict with char $2 (); below. | |
1880 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1881 | <limits.h> exists even on freestanding compilers. */ | |
1882 | ||
1883 | #ifdef __STDC__ | |
1884 | # include <limits.h> | |
1885 | #else | |
1886 | # include <assert.h> | |
1887 | #endif | |
1888 | ||
1889 | #undef $2 | |
1890 | ||
1891 | /* Override any GCC internal prototype to avoid an error. | |
1892 | Use char because int might match the return type of a GCC | |
1893 | builtin and then its argument prototype would still apply. */ | |
1894 | #ifdef __cplusplus | |
1895 | extern "C" | |
1896 | #endif | |
1897 | char $2 (); | |
1898 | /* The GNU C library defines this for functions which it implements | |
1899 | to always fail with ENOSYS. Some functions are actually named | |
1900 | something starting with __ and the normal name is an alias. */ | |
1901 | #if defined __stub_$2 || defined __stub___$2 | |
1902 | choke me | |
1903 | #endif | |
1904 | ||
1905 | int | |
1906 | main () | |
1907 | { | |
1908 | return $2 (); | |
1909 | ; | |
1910 | return 0; | |
1911 | } | |
1912 | _ACEOF | |
1913 | if ac_fn_c_try_link "$LINENO"; then : | |
1914 | eval "$3=yes" | |
1915 | else | |
1916 | eval "$3=no" | |
1917 | fi | |
1918 | rm -f core conftest.err conftest.$ac_objext \ | |
1919 | conftest$ac_exeext conftest.$ac_ext | |
1920 | fi | |
1921 | eval ac_res=\$$3 | |
1922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1923 | $as_echo "$ac_res" >&6; } | |
1924 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1925 | ||
1926 | } # ac_fn_c_check_func | |
1927 | ||
1928 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
1929 | # --------------------------------------------- | |
1930 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
1931 | # accordingly. | |
1932 | ac_fn_c_check_decl () | |
1933 | { | |
1934 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1935 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
1936 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1937 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1938 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
1939 | if eval \${$3+:} false; then : | |
1940 | $as_echo_n "(cached) " >&6 | |
1941 | else | |
1942 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1943 | /* end confdefs.h. */ | |
1944 | $4 | |
1945 | int | |
1946 | main () | |
1947 | { | |
1948 | #ifndef $as_decl_name | |
1949 | #ifdef __cplusplus | |
1950 | (void) $as_decl_use; | |
1951 | #else | |
1952 | (void) $as_decl_name; | |
1953 | #endif | |
1954 | #endif | |
1955 | ||
1956 | ; | |
1957 | return 0; | |
1958 | } | |
1959 | _ACEOF | |
1960 | if ac_fn_c_try_compile "$LINENO"; then : | |
1961 | eval "$3=yes" | |
1962 | else | |
1963 | eval "$3=no" | |
1964 | fi | |
1965 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1966 | fi | |
1967 | eval ac_res=\$$3 | |
1968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1969 | $as_echo "$ac_res" >&6; } | |
1970 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1971 | ||
1972 | } # ac_fn_c_check_decl | |
1973 | ||
1974 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
1975 | # ------------------------------------------- | |
1976 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1977 | # variable VAR accordingly. | |
1978 | ac_fn_c_check_type () | |
1979 | { | |
1980 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
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=no" | |
1987 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1988 | /* end confdefs.h. */ | |
1989 | $4 | |
1990 | int | |
1991 | main () | |
1992 | { | |
1993 | if (sizeof ($2)) | |
1994 | return 0; | |
1995 | ; | |
1996 | return 0; | |
1997 | } | |
1998 | _ACEOF | |
1999 | if ac_fn_c_try_compile "$LINENO"; then : | |
2000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2001 | /* end confdefs.h. */ | |
2002 | $4 | |
2003 | int | |
2004 | main () | |
2005 | { | |
2006 | if (sizeof (($2))) | |
2007 | return 0; | |
2008 | ; | |
2009 | return 0; | |
2010 | } | |
2011 | _ACEOF | |
2012 | if ac_fn_c_try_compile "$LINENO"; then : | |
2013 | ||
2014 | else | |
2015 | eval "$3=yes" | |
2016 | fi | |
2017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2018 | fi | |
2019 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2020 | fi | |
2021 | eval ac_res=\$$3 | |
2022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2023 | $as_echo "$ac_res" >&6; } | |
2024 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2025 | ||
2026 | } # ac_fn_c_check_type | |
2027 | ||
2028 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
2029 | # ------------------------------------------------------- | |
2030 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
2031 | # the include files in INCLUDES and setting the cache variable VAR | |
2032 | # accordingly. | |
2033 | ac_fn_c_check_header_mongrel () | |
2034 | { | |
2035 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2036 | if eval \${$3+:} false; then : | |
2037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2038 | $as_echo_n "checking for $2... " >&6; } | |
2039 | if eval \${$3+:} false; then : | |
2040 | $as_echo_n "(cached) " >&6 | |
2041 | fi | |
2042 | eval ac_res=\$$3 | |
2043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2044 | $as_echo "$ac_res" >&6; } | |
2045 | else | |
2046 | # Is the header compilable? | |
2047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
2048 | $as_echo_n "checking $2 usability... " >&6; } | |
2049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2050 | /* end confdefs.h. */ | |
2051 | $4 | |
2052 | #include <$2> | |
2053 | _ACEOF | |
2054 | if ac_fn_c_try_compile "$LINENO"; then : | |
2055 | ac_header_compiler=yes | |
2056 | else | |
2057 | ac_header_compiler=no | |
2058 | fi | |
2059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
2061 | $as_echo "$ac_header_compiler" >&6; } | |
2062 | ||
2063 | # Is the header present? | |
2064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
2065 | $as_echo_n "checking $2 presence... " >&6; } | |
2066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2067 | /* end confdefs.h. */ | |
2068 | #include <$2> | |
2069 | _ACEOF | |
2070 | if ac_fn_c_try_cpp "$LINENO"; then : | |
2071 | ac_header_preproc=yes | |
2072 | else | |
2073 | ac_header_preproc=no | |
2074 | fi | |
2075 | rm -f conftest.err conftest.i conftest.$ac_ext | |
2076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
2077 | $as_echo "$ac_header_preproc" >&6; } | |
2078 | ||
2079 | # So? What about this header? | |
2080 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
2081 | yes:no: ) | |
2082 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2083 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2084 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2085 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2086 | ;; | |
2087 | no:yes:* ) | |
2088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
2089 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
2090 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
2091 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2093 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2094 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2095 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2096 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2097 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
2098 | ;; | |
2099 | esac | |
2100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2101 | $as_echo_n "checking for $2... " >&6; } | |
2102 | if eval \${$3+:} false; then : | |
2103 | $as_echo_n "(cached) " >&6 | |
2104 | else | |
2105 | eval "$3=\$ac_header_compiler" | |
2106 | fi | |
2107 | eval ac_res=\$$3 | |
2108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2109 | $as_echo "$ac_res" >&6; } | |
2110 | fi | |
2111 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2112 | ||
2113 | } # ac_fn_c_check_header_mongrel | |
2114 | ||
2115 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2116 | # -------------------------------------------- | |
2117 | # Tries to find the compile-time value of EXPR in a program that includes | |
2118 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2119 | # computed | |
2120 | ac_fn_c_compute_int () | |
2121 | { | |
2122 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2123 | if test "$cross_compiling" = yes; then | |
2124 | # Depending upon the size, compute the lo and hi bounds. | |
2125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2126 | /* end confdefs.h. */ | |
2127 | $4 | |
2128 | int | |
2129 | main () | |
2130 | { | |
2131 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2132 | test_array [0] = 0; | |
2133 | return test_array [0]; | |
2134 | ||
2135 | ; | |
2136 | return 0; | |
2137 | } | |
2138 | _ACEOF | |
2139 | if ac_fn_c_try_compile "$LINENO"; then : | |
2140 | ac_lo=0 ac_mid=0 | |
2141 | while :; do | |
2142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2143 | /* end confdefs.h. */ | |
2144 | $4 | |
2145 | int | |
2146 | main () | |
2147 | { | |
2148 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2149 | test_array [0] = 0; | |
2150 | return test_array [0]; | |
2151 | ||
2152 | ; | |
2153 | return 0; | |
2154 | } | |
2155 | _ACEOF | |
2156 | if ac_fn_c_try_compile "$LINENO"; then : | |
2157 | ac_hi=$ac_mid; break | |
2158 | else | |
2159 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
2160 | if test $ac_lo -le $ac_mid; then | |
2161 | ac_lo= ac_hi= | |
2162 | break | |
2163 | fi | |
2164 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
2165 | fi | |
2166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2167 | done | |
2168 | else | |
2169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2170 | /* end confdefs.h. */ | |
2171 | $4 | |
2172 | int | |
2173 | main () | |
2174 | { | |
2175 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2176 | test_array [0] = 0; | |
2177 | return test_array [0]; | |
2178 | ||
2179 | ; | |
2180 | return 0; | |
2181 | } | |
2182 | _ACEOF | |
2183 | if ac_fn_c_try_compile "$LINENO"; then : | |
2184 | ac_hi=-1 ac_mid=-1 | |
2185 | while :; do | |
2186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2187 | /* end confdefs.h. */ | |
2188 | $4 | |
2189 | int | |
2190 | main () | |
2191 | { | |
2192 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2193 | test_array [0] = 0; | |
2194 | return test_array [0]; | |
2195 | ||
2196 | ; | |
2197 | return 0; | |
2198 | } | |
2199 | _ACEOF | |
2200 | if ac_fn_c_try_compile "$LINENO"; then : | |
2201 | ac_lo=$ac_mid; break | |
2202 | else | |
2203 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2204 | if test $ac_mid -le $ac_hi; then | |
2205 | ac_lo= ac_hi= | |
2206 | break | |
2207 | fi | |
2208 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2209 | fi | |
2210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2211 | done | |
2212 | else | |
2213 | ac_lo= ac_hi= | |
2214 | fi | |
2215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2216 | fi | |
2217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2218 | # Binary search between lo and hi bounds. | |
2219 | while test "x$ac_lo" != "x$ac_hi"; do | |
2220 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2222 | /* end confdefs.h. */ | |
2223 | $4 | |
2224 | int | |
2225 | main () | |
2226 | { | |
2227 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2228 | test_array [0] = 0; | |
2229 | return test_array [0]; | |
2230 | ||
2231 | ; | |
2232 | return 0; | |
2233 | } | |
2234 | _ACEOF | |
2235 | if ac_fn_c_try_compile "$LINENO"; then : | |
2236 | ac_hi=$ac_mid | |
2237 | else | |
2238 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2239 | fi | |
2240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2241 | done | |
2242 | case $ac_lo in #(( | |
2243 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2244 | '') ac_retval=1 ;; | |
2245 | esac | |
2246 | else | |
2247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2248 | /* end confdefs.h. */ | |
2249 | $4 | |
2250 | static long int longval () { return $2; } | |
2251 | static unsigned long int ulongval () { return $2; } | |
2252 | #include <stdio.h> | |
2253 | #include <stdlib.h> | |
2254 | int | |
2255 | main () | |
2256 | { | |
2257 | ||
2258 | FILE *f = fopen ("conftest.val", "w"); | |
2259 | if (! f) | |
2260 | return 1; | |
2261 | if (($2) < 0) | |
2262 | { | |
2263 | long int i = longval (); | |
2264 | if (i != ($2)) | |
2265 | return 1; | |
2266 | fprintf (f, "%ld", i); | |
2267 | } | |
2268 | else | |
2269 | { | |
2270 | unsigned long int i = ulongval (); | |
2271 | if (i != ($2)) | |
2272 | return 1; | |
2273 | fprintf (f, "%lu", i); | |
2274 | } | |
2275 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2276 | on some platforms. */ | |
2277 | return ferror (f) || fclose (f) != 0; | |
2278 | ||
2279 | ; | |
2280 | return 0; | |
2281 | } | |
2282 | _ACEOF | |
2283 | if ac_fn_c_try_run "$LINENO"; then : | |
2284 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2285 | else | |
2286 | ac_retval=1 | |
2287 | fi | |
2288 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2289 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2290 | rm -f conftest.val | |
2291 | ||
2292 | fi | |
2293 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2294 | as_fn_set_status $ac_retval | |
2295 | ||
2296 | } # ac_fn_c_compute_int | |
2297 | cat >config.log <<_ACEOF | |
2298 | This file contains any messages produced by compilers while | |
2299 | running configure, to aid debugging if configure makes a mistake. | |
2300 | ||
2301 | It was created by charybdis $as_me 3.6.0-dev, which was | |
2302 | generated by GNU Autoconf 2.69. Invocation command line was | |
2303 | ||
2304 | $ $0 $@ | |
2305 | ||
2306 | _ACEOF | |
2307 | exec 5>>config.log | |
2308 | { | |
2309 | cat <<_ASUNAME | |
2310 | ## --------- ## | |
2311 | ## Platform. ## | |
2312 | ## --------- ## | |
2313 | ||
2314 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2315 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2316 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2317 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2318 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2319 | ||
2320 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2321 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2322 | ||
2323 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2324 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2325 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2326 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2327 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2328 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2329 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2330 | ||
2331 | _ASUNAME | |
2332 | ||
2333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2334 | for as_dir in $PATH | |
2335 | do | |
2336 | IFS=$as_save_IFS | |
2337 | test -z "$as_dir" && as_dir=. | |
2338 | $as_echo "PATH: $as_dir" | |
2339 | done | |
2340 | IFS=$as_save_IFS | |
2341 | ||
2342 | } >&5 | |
2343 | ||
2344 | cat >&5 <<_ACEOF | |
2345 | ||
2346 | ||
2347 | ## ----------- ## | |
2348 | ## Core tests. ## | |
2349 | ## ----------- ## | |
2350 | ||
2351 | _ACEOF | |
2352 | ||
2353 | ||
2354 | # Keep a trace of the command line. | |
2355 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2356 | # Strip out --silent because we don't want to record it for future runs. | |
2357 | # Also quote any args containing shell meta-characters. | |
2358 | # Make two passes to allow for proper duplicate-argument suppression. | |
2359 | ac_configure_args= | |
2360 | ac_configure_args0= | |
2361 | ac_configure_args1= | |
2362 | ac_must_keep_next=false | |
2363 | for ac_pass in 1 2 | |
2364 | do | |
2365 | for ac_arg | |
2366 | do | |
2367 | case $ac_arg in | |
2368 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2369 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2370 | | -silent | --silent | --silen | --sile | --sil) | |
2371 | continue ;; | |
2372 | *\'*) | |
2373 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2374 | esac | |
2375 | case $ac_pass in | |
2376 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2377 | 2) | |
2378 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2379 | if test $ac_must_keep_next = true; then | |
2380 | ac_must_keep_next=false # Got value, back to normal. | |
2381 | else | |
2382 | case $ac_arg in | |
2383 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2384 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2385 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2386 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2387 | case "$ac_configure_args0 " in | |
2388 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2389 | esac | |
2390 | ;; | |
2391 | -* ) ac_must_keep_next=true ;; | |
2392 | esac | |
2393 | fi | |
2394 | as_fn_append ac_configure_args " '$ac_arg'" | |
2395 | ;; | |
2396 | esac | |
2397 | done | |
2398 | done | |
2399 | { ac_configure_args0=; unset ac_configure_args0;} | |
2400 | { ac_configure_args1=; unset ac_configure_args1;} | |
2401 | ||
2402 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2403 | # config.log. We remove comments because anyway the quotes in there | |
2404 | # would cause problems or look ugly. | |
2405 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2406 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2407 | trap 'exit_status=$? | |
2408 | # Save into config.log some information that might help in debugging. | |
2409 | { | |
2410 | echo | |
2411 | ||
2412 | $as_echo "## ---------------- ## | |
2413 | ## Cache variables. ## | |
2414 | ## ---------------- ##" | |
2415 | echo | |
2416 | # The following way of writing the cache mishandles newlines in values, | |
2417 | ( | |
2418 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2419 | eval ac_val=\$$ac_var | |
2420 | case $ac_val in #( | |
2421 | *${as_nl}*) | |
2422 | case $ac_var in #( | |
2423 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2424 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2425 | esac | |
2426 | case $ac_var in #( | |
2427 | _ | IFS | as_nl) ;; #( | |
2428 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2429 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2430 | esac ;; | |
2431 | esac | |
2432 | done | |
2433 | (set) 2>&1 | | |
2434 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2435 | *${as_nl}ac_space=\ *) | |
2436 | sed -n \ | |
2437 | "s/'\''/'\''\\\\'\'''\''/g; | |
2438 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2439 | ;; #( | |
2440 | *) | |
2441 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2442 | ;; | |
2443 | esac | | |
2444 | sort | |
2445 | ) | |
2446 | echo | |
2447 | ||
2448 | $as_echo "## ----------------- ## | |
2449 | ## Output variables. ## | |
2450 | ## ----------------- ##" | |
2451 | echo | |
2452 | for ac_var in $ac_subst_vars | |
2453 | do | |
2454 | eval ac_val=\$$ac_var | |
2455 | case $ac_val in | |
2456 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2457 | esac | |
2458 | $as_echo "$ac_var='\''$ac_val'\''" | |
2459 | done | sort | |
2460 | echo | |
2461 | ||
2462 | if test -n "$ac_subst_files"; then | |
2463 | $as_echo "## ------------------- ## | |
2464 | ## File substitutions. ## | |
2465 | ## ------------------- ##" | |
2466 | echo | |
2467 | for ac_var in $ac_subst_files | |
2468 | do | |
2469 | eval ac_val=\$$ac_var | |
2470 | case $ac_val in | |
2471 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2472 | esac | |
2473 | $as_echo "$ac_var='\''$ac_val'\''" | |
2474 | done | sort | |
2475 | echo | |
2476 | fi | |
2477 | ||
2478 | if test -s confdefs.h; then | |
2479 | $as_echo "## ----------- ## | |
2480 | ## confdefs.h. ## | |
2481 | ## ----------- ##" | |
2482 | echo | |
2483 | cat confdefs.h | |
2484 | echo | |
2485 | fi | |
2486 | test "$ac_signal" != 0 && | |
2487 | $as_echo "$as_me: caught signal $ac_signal" | |
2488 | $as_echo "$as_me: exit $exit_status" | |
2489 | } >&5 | |
2490 | rm -f core *.core core.conftest.* && | |
2491 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2492 | exit $exit_status | |
2493 | ' 0 | |
2494 | for ac_signal in 1 2 13 15; do | |
2495 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2496 | done | |
2497 | ac_signal=0 | |
2498 | ||
2499 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2500 | rm -f -r conftest* confdefs.h | |
2501 | ||
2502 | $as_echo "/* confdefs.h */" > confdefs.h | |
2503 | ||
2504 | # Predefined preprocessor variables. | |
2505 | ||
2506 | cat >>confdefs.h <<_ACEOF | |
2507 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2508 | _ACEOF | |
2509 | ||
2510 | cat >>confdefs.h <<_ACEOF | |
2511 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2512 | _ACEOF | |
2513 | ||
2514 | cat >>confdefs.h <<_ACEOF | |
2515 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2516 | _ACEOF | |
2517 | ||
2518 | cat >>confdefs.h <<_ACEOF | |
2519 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2520 | _ACEOF | |
2521 | ||
2522 | cat >>confdefs.h <<_ACEOF | |
2523 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2524 | _ACEOF | |
2525 | ||
2526 | cat >>confdefs.h <<_ACEOF | |
2527 | #define PACKAGE_URL "$PACKAGE_URL" | |
2528 | _ACEOF | |
2529 | ||
2530 | ||
2531 | # Let the site file select an alternate cache file if it wants to. | |
2532 | # Prefer an explicitly selected file to automatically selected ones. | |
2533 | ac_site_file1=NONE | |
2534 | ac_site_file2=NONE | |
2535 | if test -n "$CONFIG_SITE"; then | |
2536 | # We do not want a PATH search for config.site. | |
2537 | case $CONFIG_SITE in #(( | |
2538 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2539 | */*) ac_site_file1=$CONFIG_SITE;; | |
2540 | *) ac_site_file1=./$CONFIG_SITE;; | |
2541 | esac | |
2542 | elif test "x$prefix" != xNONE; then | |
2543 | ac_site_file1=$prefix/share/config.site | |
2544 | ac_site_file2=$prefix/etc/config.site | |
2545 | else | |
2546 | ac_site_file1=$ac_default_prefix/share/config.site | |
2547 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2548 | fi | |
2549 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2550 | do | |
2551 | test "x$ac_site_file" = xNONE && continue | |
2552 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2554 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2555 | sed 's/^/| /' "$ac_site_file" >&5 | |
2556 | . "$ac_site_file" \ | |
2557 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2558 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2559 | as_fn_error $? "failed to load site script $ac_site_file | |
2560 | See \`config.log' for more details" "$LINENO" 5; } | |
2561 | fi | |
2562 | done | |
2563 | ||
2564 | if test -r "$cache_file"; then | |
2565 | # Some versions of bash will fail to source /dev/null (special files | |
2566 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2567 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2569 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2570 | case $cache_file in | |
2571 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2572 | *) . "./$cache_file";; | |
2573 | esac | |
2574 | fi | |
2575 | else | |
2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2577 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2578 | >$cache_file | |
2579 | fi | |
2580 | ||
2581 | # Check that the precious variables saved in the cache have kept the same | |
2582 | # value. | |
2583 | ac_cache_corrupted=false | |
2584 | for ac_var in $ac_precious_vars; do | |
2585 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2586 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2587 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2588 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2589 | case $ac_old_set,$ac_new_set in | |
2590 | set,) | |
2591 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2592 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2593 | ac_cache_corrupted=: ;; | |
2594 | ,set) | |
2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2596 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2597 | ac_cache_corrupted=: ;; | |
2598 | ,);; | |
2599 | *) | |
2600 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2601 | # differences in whitespace do not lead to failure. | |
2602 | ac_old_val_w=`echo x $ac_old_val` | |
2603 | ac_new_val_w=`echo x $ac_new_val` | |
2604 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2606 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2607 | ac_cache_corrupted=: | |
2608 | else | |
2609 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2610 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2611 | eval $ac_var=\$ac_old_val | |
2612 | fi | |
2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2614 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2615 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2616 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2617 | fi;; | |
2618 | esac | |
2619 | # Pass precious variables to config.status. | |
2620 | if test "$ac_new_set" = set; then | |
2621 | case $ac_new_val in | |
2622 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2623 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2624 | esac | |
2625 | case " $ac_configure_args " in | |
2626 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2627 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2628 | esac | |
2629 | fi | |
2630 | done | |
2631 | if $ac_cache_corrupted; then | |
2632 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2633 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2634 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2635 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2636 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2637 | fi | |
2638 | ## -------------------- ## | |
2639 | ## Main body of script. ## | |
2640 | ## -------------------- ## | |
2641 | ||
2642 | ac_ext=c | |
2643 | ac_cpp='$CPP $CPPFLAGS' | |
2644 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2645 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2646 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2647 | ||
2648 | ||
2649 | ||
2650 | ||
2651 | ||
2652 | ac_config_headers="$ac_config_headers include/setup.h" | |
2653 | ||
2654 | ||
2655 | ac_aux_dir= | |
2656 | for ac_dir in libltdl/config "$srcdir"/libltdl/config; do | |
2657 | if test -f "$ac_dir/install-sh"; then | |
2658 | ac_aux_dir=$ac_dir | |
2659 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2660 | break | |
2661 | elif test -f "$ac_dir/install.sh"; then | |
2662 | ac_aux_dir=$ac_dir | |
2663 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2664 | break | |
2665 | elif test -f "$ac_dir/shtool"; then | |
2666 | ac_aux_dir=$ac_dir | |
2667 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2668 | break | |
2669 | fi | |
2670 | done | |
2671 | if test -z "$ac_aux_dir"; then | |
2672 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5 | |
2673 | fi | |
2674 | ||
2675 | # These three variables are undocumented and unsupported, | |
2676 | # and are intended to be withdrawn in a future Autoconf release. | |
2677 | # They can cause serious problems if a builder's source tree is in a directory | |
2678 | # whose full name contains unusual characters. | |
2679 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2680 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2681 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2682 | ||
2683 | ||
2684 | ||
2685 | am__api_version='1.15' | |
2686 | ||
2687 | # Find a good install program. We prefer a C program (faster), | |
2688 | # so one script is as good as another. But avoid the broken or | |
2689 | # incompatible versions: | |
2690 | # SysV /etc/install, /usr/sbin/install | |
2691 | # SunOS /usr/etc/install | |
2692 | # IRIX /sbin/install | |
2693 | # AIX /bin/install | |
2694 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2695 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2696 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2697 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2698 | # OS/2's system install, which has a completely different semantic | |
2699 | # ./install, which can be erroneously created by make from ./install.sh. | |
2700 | # Reject install programs that cannot install multiple files. | |
2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2702 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2703 | if test -z "$INSTALL"; then | |
2704 | if ${ac_cv_path_install+:} false; then : | |
2705 | $as_echo_n "(cached) " >&6 | |
2706 | else | |
2707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2708 | for as_dir in $PATH | |
2709 | do | |
2710 | IFS=$as_save_IFS | |
2711 | test -z "$as_dir" && as_dir=. | |
2712 | # Account for people who put trailing slashes in PATH elements. | |
2713 | case $as_dir/ in #(( | |
2714 | ./ | .// | /[cC]/* | \ | |
2715 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2716 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2717 | /usr/ucb/* ) ;; | |
2718 | *) | |
2719 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2720 | # Don't use installbsd from OSF since it installs stuff as root | |
2721 | # by default. | |
2722 | for ac_prog in ginstall scoinst install; do | |
2723 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2724 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2725 | if test $ac_prog = install && | |
2726 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2727 | # AIX install. It has an incompatible calling convention. | |
2728 | : | |
2729 | elif test $ac_prog = install && | |
2730 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2731 | # program-specific install script used by HP pwplus--don't use. | |
2732 | : | |
2733 | else | |
2734 | rm -rf conftest.one conftest.two conftest.dir | |
2735 | echo one > conftest.one | |
2736 | echo two > conftest.two | |
2737 | mkdir conftest.dir | |
2738 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2739 | test -s conftest.one && test -s conftest.two && | |
2740 | test -s conftest.dir/conftest.one && | |
2741 | test -s conftest.dir/conftest.two | |
2742 | then | |
2743 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2744 | break 3 | |
2745 | fi | |
2746 | fi | |
2747 | fi | |
2748 | done | |
2749 | done | |
2750 | ;; | |
2751 | esac | |
2752 | ||
2753 | done | |
2754 | IFS=$as_save_IFS | |
2755 | ||
2756 | rm -rf conftest.one conftest.two conftest.dir | |
2757 | ||
2758 | fi | |
2759 | if test "${ac_cv_path_install+set}" = set; then | |
2760 | INSTALL=$ac_cv_path_install | |
2761 | else | |
2762 | # As a last resort, use the slow shell script. Don't cache a | |
2763 | # value for INSTALL within a source directory, because that will | |
2764 | # break other packages using the cache if that directory is | |
2765 | # removed, or if the value is a relative name. | |
2766 | INSTALL=$ac_install_sh | |
2767 | fi | |
2768 | fi | |
2769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2770 | $as_echo "$INSTALL" >&6; } | |
2771 | ||
2772 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2773 | # It thinks the first close brace ends the variable substitution. | |
2774 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2775 | ||
2776 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2777 | ||
2778 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2779 | ||
2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2781 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2782 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2783 | # name. Accept space and tab only in the latter. | |
2784 | am_lf=' | |
2785 | ' | |
2786 | case `pwd` in | |
2787 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2788 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2789 | esac | |
2790 | case $srcdir in | |
2791 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2792 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2793 | esac | |
2794 | ||
2795 | # Do 'set' in a subshell so we don't clobber the current shell's | |
2796 | # arguments. Must try -L first in case configure is actually a | |
2797 | # symlink; some systems play weird games with the mod time of symlinks | |
2798 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2799 | # directory). | |
2800 | if ( | |
2801 | am_has_slept=no | |
2802 | for am_try in 1 2; do | |
2803 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2804 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2805 | if test "$*" = "X"; then | |
2806 | # -L didn't work. | |
2807 | set X `ls -t "$srcdir/configure" conftest.file` | |
2808 | fi | |
2809 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2810 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2811 | ||
2812 | # If neither matched, then we have a broken ls. This can happen | |
2813 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2814 | # broken ls alias from the environment. This has actually | |
2815 | # happened. Such a system could not be considered "sane". | |
2816 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2817 | alias in your environment" "$LINENO" 5 | |
2818 | fi | |
2819 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2820 | break | |
2821 | fi | |
2822 | # Just in case. | |
2823 | sleep 1 | |
2824 | am_has_slept=yes | |
2825 | done | |
2826 | test "$2" = conftest.file | |
2827 | ) | |
2828 | then | |
2829 | # Ok. | |
2830 | : | |
2831 | else | |
2832 | as_fn_error $? "newly created file is older than distributed files! | |
2833 | Check your system clock" "$LINENO" 5 | |
2834 | fi | |
2835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2836 | $as_echo "yes" >&6; } | |
2837 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2838 | # generated files are strictly newer. | |
2839 | am_sleep_pid= | |
2840 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2841 | ( sleep 1 ) & | |
2842 | am_sleep_pid=$! | |
2843 | fi | |
2844 | ||
2845 | rm -f conftest.file | |
2846 | ||
2847 | test "$program_prefix" != NONE && | |
2848 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2849 | # Use a double $ so make ignores it. | |
2850 | test "$program_suffix" != NONE && | |
2851 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2852 | # Double any \ or $. | |
2853 | # By default was `s,x,x', remove it if useless. | |
2854 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2855 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2856 | ||
2857 | # Expand $ac_aux_dir to an absolute path. | |
2858 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2859 | ||
2860 | if test x"${MISSING+set}" != xset; then | |
2861 | case $am_aux_dir in | |
2862 | *\ * | *\ *) | |
2863 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2864 | *) | |
2865 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2866 | esac | |
2867 | fi | |
2868 | # Use eval to expand $SHELL | |
2869 | if eval "$MISSING --is-lightweight"; then | |
2870 | am_missing_run="$MISSING " | |
2871 | else | |
2872 | am_missing_run= | |
2873 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2874 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2875 | fi | |
2876 | ||
2877 | if test x"${install_sh+set}" != xset; then | |
2878 | case $am_aux_dir in | |
2879 | *\ * | *\ *) | |
2880 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2881 | *) | |
2882 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2883 | esac | |
2884 | fi | |
2885 | ||
2886 | # Installed binaries are usually stripped using 'strip' when the user | |
2887 | # run "make install-strip". However 'strip' might not be the right | |
2888 | # tool to use in cross-compilation environments, therefore Automake | |
2889 | # will honor the 'STRIP' environment variable to overrule this program. | |
2890 | if test "$cross_compiling" != no; then | |
2891 | if test -n "$ac_tool_prefix"; then | |
2892 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2893 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2895 | $as_echo_n "checking for $ac_word... " >&6; } | |
2896 | if ${ac_cv_prog_STRIP+:} false; then : | |
2897 | $as_echo_n "(cached) " >&6 | |
2898 | else | |
2899 | if test -n "$STRIP"; then | |
2900 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2901 | else | |
2902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2903 | for as_dir in $PATH | |
2904 | do | |
2905 | IFS=$as_save_IFS | |
2906 | test -z "$as_dir" && as_dir=. | |
2907 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2908 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2909 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2911 | break 2 | |
2912 | fi | |
2913 | done | |
2914 | done | |
2915 | IFS=$as_save_IFS | |
2916 | ||
2917 | fi | |
2918 | fi | |
2919 | STRIP=$ac_cv_prog_STRIP | |
2920 | if test -n "$STRIP"; then | |
2921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2922 | $as_echo "$STRIP" >&6; } | |
2923 | else | |
2924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2925 | $as_echo "no" >&6; } | |
2926 | fi | |
2927 | ||
2928 | ||
2929 | fi | |
2930 | if test -z "$ac_cv_prog_STRIP"; then | |
2931 | ac_ct_STRIP=$STRIP | |
2932 | # Extract the first word of "strip", so it can be a program name with args. | |
2933 | set dummy strip; ac_word=$2 | |
2934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2935 | $as_echo_n "checking for $ac_word... " >&6; } | |
2936 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
2937 | $as_echo_n "(cached) " >&6 | |
2938 | else | |
2939 | if test -n "$ac_ct_STRIP"; then | |
2940 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2941 | else | |
2942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2943 | for as_dir in $PATH | |
2944 | do | |
2945 | IFS=$as_save_IFS | |
2946 | test -z "$as_dir" && as_dir=. | |
2947 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2948 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2949 | ac_cv_prog_ac_ct_STRIP="strip" | |
2950 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2951 | break 2 | |
2952 | fi | |
2953 | done | |
2954 | done | |
2955 | IFS=$as_save_IFS | |
2956 | ||
2957 | fi | |
2958 | fi | |
2959 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2960 | if test -n "$ac_ct_STRIP"; then | |
2961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2962 | $as_echo "$ac_ct_STRIP" >&6; } | |
2963 | else | |
2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2965 | $as_echo "no" >&6; } | |
2966 | fi | |
2967 | ||
2968 | if test "x$ac_ct_STRIP" = x; then | |
2969 | STRIP=":" | |
2970 | else | |
2971 | case $cross_compiling:$ac_tool_warned in | |
2972 | yes:) | |
2973 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2974 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2975 | ac_tool_warned=yes ;; | |
2976 | esac | |
2977 | STRIP=$ac_ct_STRIP | |
2978 | fi | |
2979 | else | |
2980 | STRIP="$ac_cv_prog_STRIP" | |
2981 | fi | |
2982 | ||
2983 | fi | |
2984 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2985 | ||
2986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2987 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2988 | if test -z "$MKDIR_P"; then | |
2989 | if ${ac_cv_path_mkdir+:} false; then : | |
2990 | $as_echo_n "(cached) " >&6 | |
2991 | else | |
2992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2993 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2994 | do | |
2995 | IFS=$as_save_IFS | |
2996 | test -z "$as_dir" && as_dir=. | |
2997 | for ac_prog in mkdir gmkdir; do | |
2998 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2999 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
3000 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3001 | 'mkdir (GNU coreutils) '* | \ | |
3002 | 'mkdir (coreutils) '* | \ | |
3003 | 'mkdir (fileutils) '4.1*) | |
3004 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3005 | break 3;; | |
3006 | esac | |
3007 | done | |
3008 | done | |
3009 | done | |
3010 | IFS=$as_save_IFS | |
3011 | ||
3012 | fi | |
3013 | ||
3014 | test -d ./--version && rmdir ./--version | |
3015 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3016 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3017 | else | |
3018 | # As a last resort, use the slow shell script. Don't cache a | |
3019 | # value for MKDIR_P within a source directory, because that will | |
3020 | # break other packages using the cache if that directory is | |
3021 | # removed, or if the value is a relative name. | |
3022 | MKDIR_P="$ac_install_sh -d" | |
3023 | fi | |
3024 | fi | |
3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3026 | $as_echo "$MKDIR_P" >&6; } | |
3027 | ||
3028 | for ac_prog in gawk mawk nawk awk | |
3029 | do | |
3030 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3031 | set dummy $ac_prog; ac_word=$2 | |
3032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3033 | $as_echo_n "checking for $ac_word... " >&6; } | |
3034 | if ${ac_cv_prog_AWK+:} false; then : | |
3035 | $as_echo_n "(cached) " >&6 | |
3036 | else | |
3037 | if test -n "$AWK"; then | |
3038 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3039 | else | |
3040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3041 | for as_dir in $PATH | |
3042 | do | |
3043 | IFS=$as_save_IFS | |
3044 | test -z "$as_dir" && as_dir=. | |
3045 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3046 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3047 | ac_cv_prog_AWK="$ac_prog" | |
3048 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3049 | break 2 | |
3050 | fi | |
3051 | done | |
3052 | done | |
3053 | IFS=$as_save_IFS | |
3054 | ||
3055 | fi | |
3056 | fi | |
3057 | AWK=$ac_cv_prog_AWK | |
3058 | if test -n "$AWK"; then | |
3059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3060 | $as_echo "$AWK" >&6; } | |
3061 | else | |
3062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3063 | $as_echo "no" >&6; } | |
3064 | fi | |
3065 | ||
3066 | ||
3067 | test -n "$AWK" && break | |
3068 | done | |
3069 | ||
3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3071 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3072 | set x ${MAKE-make} | |
3073 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3074 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
3075 | $as_echo_n "(cached) " >&6 | |
3076 | else | |
3077 | cat >conftest.make <<\_ACEOF | |
3078 | SHELL = /bin/sh | |
3079 | all: | |
3080 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3081 | _ACEOF | |
3082 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
3083 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3084 | *@@@%%%=?*=@@@%%%*) | |
3085 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3086 | *) | |
3087 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3088 | esac | |
3089 | rm -f conftest.make | |
3090 | fi | |
3091 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3093 | $as_echo "yes" >&6; } | |
3094 | SET_MAKE= | |
3095 | else | |
3096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3097 | $as_echo "no" >&6; } | |
3098 | SET_MAKE="MAKE=${MAKE-make}" | |
3099 | fi | |
3100 | ||
3101 | rm -rf .tst 2>/dev/null | |
3102 | mkdir .tst 2>/dev/null | |
3103 | if test -d .tst; then | |
3104 | am__leading_dot=. | |
3105 | else | |
3106 | am__leading_dot=_ | |
3107 | fi | |
3108 | rmdir .tst 2>/dev/null | |
3109 | ||
3110 | # Check whether --enable-silent-rules was given. | |
3111 | if test "${enable_silent_rules+set}" = set; then : | |
3112 | enableval=$enable_silent_rules; | |
3113 | fi | |
3114 | ||
3115 | case $enable_silent_rules in # ((( | |
3116 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3117 | no) AM_DEFAULT_VERBOSITY=1;; | |
3118 | *) AM_DEFAULT_VERBOSITY=1;; | |
3119 | esac | |
3120 | am_make=${MAKE-make} | |
3121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3122 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3123 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3124 | $as_echo_n "(cached) " >&6 | |
3125 | else | |
3126 | if $as_echo 'TRUE=$(BAR$(V)) | |
3127 | BAR0=false | |
3128 | BAR1=true | |
3129 | V=1 | |
3130 | am__doit: | |
3131 | @$(TRUE) | |
3132 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3133 | am_cv_make_support_nested_variables=yes | |
3134 | else | |
3135 | am_cv_make_support_nested_variables=no | |
3136 | fi | |
3137 | fi | |
3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3139 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3140 | if test $am_cv_make_support_nested_variables = yes; then | |
3141 | AM_V='$(V)' | |
3142 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3143 | else | |
3144 | AM_V=$AM_DEFAULT_VERBOSITY | |
3145 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3146 | fi | |
3147 | AM_BACKSLASH='\' | |
3148 | ||
3149 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
3150 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3151 | # is not polluted with repeated "-I." | |
3152 | am__isrc=' -I$(srcdir)' | |
3153 | # test to see if srcdir already configured | |
3154 | if test -f $srcdir/config.status; then | |
3155 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
3156 | fi | |
3157 | fi | |
3158 | ||
3159 | # test whether we have cygpath | |
3160 | if test -z "$CYGPATH_W"; then | |
3161 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3162 | CYGPATH_W='cygpath -w' | |
3163 | else | |
3164 | CYGPATH_W=echo | |
3165 | fi | |
3166 | fi | |
3167 | ||
3168 | ||
3169 | # Define the identity of the package. | |
3170 | PACKAGE='charybdis' | |
3171 | VERSION='3.6.0-dev' | |
3172 | ||
3173 | ||
3174 | cat >>confdefs.h <<_ACEOF | |
3175 | #define PACKAGE "$PACKAGE" | |
3176 | _ACEOF | |
3177 | ||
3178 | ||
3179 | cat >>confdefs.h <<_ACEOF | |
3180 | #define VERSION "$VERSION" | |
3181 | _ACEOF | |
3182 | ||
3183 | # Some tools Automake needs. | |
3184 | ||
3185 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3186 | ||
3187 | ||
3188 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3189 | ||
3190 | ||
3191 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3192 | ||
3193 | ||
3194 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3195 | ||
3196 | ||
3197 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3198 | ||
3199 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3200 | # dies out for good. For more background, see: | |
3201 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3202 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3203 | mkdir_p='$(MKDIR_P)' | |
3204 | ||
3205 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3206 | # system "awk" is bad on some platforms. | |
3207 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3208 | # in the wild :-( We should find a proper way to deprecate it ... | |
3209 | AMTAR='$${TAR-tar}' | |
3210 | ||
3211 | ||
3212 | # We'll loop over all known methods to create a tar archive until one works. | |
3213 | _am_tools='gnutar pax cpio none' | |
3214 | ||
3215 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3216 | ||
3217 | ||
3218 | ||
3219 | ||
3220 | ||
3221 | ||
3222 | # POSIX will say in a future version that running "rm -f" with no argument | |
3223 | # is OK; and we want to be able to make that assumption in our Makefile | |
3224 | # recipes. So use an aggressive probe to check that the usage we want is | |
3225 | # actually supported "in the wild" to an acceptable degree. | |
3226 | # See automake bug#10828. | |
3227 | # To make any issue more visible, cause the running configure to be aborted | |
3228 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3229 | # user can still override this though. | |
3230 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3231 | cat >&2 <<'END' | |
3232 | Oops! | |
3233 | ||
3234 | Your 'rm' program seems unable to run without file operands specified | |
3235 | on the command line, even when the '-f' option is present. This is contrary | |
3236 | to the behaviour of most rm programs out there, and not conforming with | |
3237 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3238 | ||
3239 | Please tell bug-automake@gnu.org about your system, including the value | |
3240 | of your $PATH and any error possibly output before this message. This | |
3241 | can help us improve future automake versions. | |
3242 | ||
3243 | END | |
3244 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3245 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3246 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3247 | echo >&2 | |
3248 | else | |
3249 | cat >&2 <<'END' | |
3250 | Aborting the configuration process, to ensure you take notice of the issue. | |
3251 | ||
3252 | You can download and install GNU coreutils to get an 'rm' implementation | |
3253 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3254 | ||
3255 | If you want to complete the configuration process using your problematic | |
3256 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3257 | to "yes", and re-run configure. | |
3258 | ||
3259 | END | |
3260 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3261 | fi | |
3262 | fi | |
3263 | ||
3264 | # Check whether --enable-silent-rules was given. | |
3265 | if test "${enable_silent_rules+set}" = set; then : | |
3266 | enableval=$enable_silent_rules; | |
3267 | fi | |
3268 | ||
3269 | case $enable_silent_rules in # ((( | |
3270 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3271 | no) AM_DEFAULT_VERBOSITY=1;; | |
3272 | *) AM_DEFAULT_VERBOSITY=0;; | |
3273 | esac | |
3274 | am_make=${MAKE-make} | |
3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3276 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3277 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3278 | $as_echo_n "(cached) " >&6 | |
3279 | else | |
3280 | if $as_echo 'TRUE=$(BAR$(V)) | |
3281 | BAR0=false | |
3282 | BAR1=true | |
3283 | V=1 | |
3284 | am__doit: | |
3285 | @$(TRUE) | |
3286 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3287 | am_cv_make_support_nested_variables=yes | |
3288 | else | |
3289 | am_cv_make_support_nested_variables=no | |
3290 | fi | |
3291 | fi | |
3292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3293 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3294 | if test $am_cv_make_support_nested_variables = yes; then | |
3295 | AM_V='$(V)' | |
3296 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3297 | else | |
3298 | AM_V=$AM_DEFAULT_VERBOSITY | |
3299 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3300 | fi | |
3301 | AM_BACKSLASH='\' | |
3302 | ||
3303 | DEPDIR="${am__leading_dot}deps" | |
3304 | ||
3305 | ac_config_commands="$ac_config_commands depfiles" | |
3306 | ||
3307 | ||
3308 | am_make=${MAKE-make} | |
3309 | cat > confinc << 'END' | |
3310 | am__doit: | |
3311 | @echo this is the am__doit target | |
3312 | .PHONY: am__doit | |
3313 | END | |
3314 | # If we don't find an include directive, just comment out the code. | |
3315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3316 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3317 | am__include="#" | |
3318 | am__quote= | |
3319 | _am_result=none | |
3320 | # First try GNU make style include. | |
3321 | echo "include confinc" > confmf | |
3322 | # Ignore all kinds of additional output from 'make'. | |
3323 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3324 | *the\ am__doit\ target*) | |
3325 | am__include=include | |
3326 | am__quote= | |
3327 | _am_result=GNU | |
3328 | ;; | |
3329 | esac | |
3330 | # Now try BSD make style include. | |
3331 | if test "$am__include" = "#"; then | |
3332 | echo '.include "confinc"' > confmf | |
3333 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3334 | *the\ am__doit\ target*) | |
3335 | am__include=.include | |
3336 | am__quote="\"" | |
3337 | _am_result=BSD | |
3338 | ;; | |
3339 | esac | |
3340 | fi | |
3341 | ||
3342 | ||
3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3344 | $as_echo "$_am_result" >&6; } | |
3345 | rm -f confinc confmf | |
3346 | ||
3347 | # Check whether --enable-dependency-tracking was given. | |
3348 | if test "${enable_dependency_tracking+set}" = set; then : | |
3349 | enableval=$enable_dependency_tracking; | |
3350 | fi | |
3351 | ||
3352 | if test "x$enable_dependency_tracking" != xno; then | |
3353 | am_depcomp="$ac_aux_dir/depcomp" | |
3354 | AMDEPBACKSLASH='\' | |
3355 | am__nodep='_no' | |
3356 | fi | |
3357 | if test "x$enable_dependency_tracking" != xno; then | |
3358 | AMDEP_TRUE= | |
3359 | AMDEP_FALSE='#' | |
3360 | else | |
3361 | AMDEP_TRUE='#' | |
3362 | AMDEP_FALSE= | |
3363 | fi | |
3364 | ||
3365 | ||
3366 | ac_ext=c | |
3367 | ac_cpp='$CPP $CPPFLAGS' | |
3368 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3369 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3370 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3371 | if test -n "$ac_tool_prefix"; then | |
3372 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3373 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3375 | $as_echo_n "checking for $ac_word... " >&6; } | |
3376 | if ${ac_cv_prog_CC+:} false; then : | |
3377 | $as_echo_n "(cached) " >&6 | |
3378 | else | |
3379 | if test -n "$CC"; then | |
3380 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3381 | else | |
3382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3383 | for as_dir in $PATH | |
3384 | do | |
3385 | IFS=$as_save_IFS | |
3386 | test -z "$as_dir" && as_dir=. | |
3387 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3388 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3389 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3390 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3391 | break 2 | |
3392 | fi | |
3393 | done | |
3394 | done | |
3395 | IFS=$as_save_IFS | |
3396 | ||
3397 | fi | |
3398 | fi | |
3399 | CC=$ac_cv_prog_CC | |
3400 | if test -n "$CC"; then | |
3401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3402 | $as_echo "$CC" >&6; } | |
3403 | else | |
3404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3405 | $as_echo "no" >&6; } | |
3406 | fi | |
3407 | ||
3408 | ||
3409 | fi | |
3410 | if test -z "$ac_cv_prog_CC"; then | |
3411 | ac_ct_CC=$CC | |
3412 | # Extract the first word of "gcc", so it can be a program name with args. | |
3413 | set dummy gcc; ac_word=$2 | |
3414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3415 | $as_echo_n "checking for $ac_word... " >&6; } | |
3416 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3417 | $as_echo_n "(cached) " >&6 | |
3418 | else | |
3419 | if test -n "$ac_ct_CC"; then | |
3420 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3421 | else | |
3422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3423 | for as_dir in $PATH | |
3424 | do | |
3425 | IFS=$as_save_IFS | |
3426 | test -z "$as_dir" && as_dir=. | |
3427 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3428 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3429 | ac_cv_prog_ac_ct_CC="gcc" | |
3430 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3431 | break 2 | |
3432 | fi | |
3433 | done | |
3434 | done | |
3435 | IFS=$as_save_IFS | |
3436 | ||
3437 | fi | |
3438 | fi | |
3439 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3440 | if test -n "$ac_ct_CC"; then | |
3441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3442 | $as_echo "$ac_ct_CC" >&6; } | |
3443 | else | |
3444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3445 | $as_echo "no" >&6; } | |
3446 | fi | |
3447 | ||
3448 | if test "x$ac_ct_CC" = x; then | |
3449 | CC="" | |
3450 | else | |
3451 | case $cross_compiling:$ac_tool_warned in | |
3452 | yes:) | |
3453 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3454 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3455 | ac_tool_warned=yes ;; | |
3456 | esac | |
3457 | CC=$ac_ct_CC | |
3458 | fi | |
3459 | else | |
3460 | CC="$ac_cv_prog_CC" | |
3461 | fi | |
3462 | ||
3463 | if test -z "$CC"; then | |
3464 | if test -n "$ac_tool_prefix"; then | |
3465 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3466 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3468 | $as_echo_n "checking for $ac_word... " >&6; } | |
3469 | if ${ac_cv_prog_CC+:} false; then : | |
3470 | $as_echo_n "(cached) " >&6 | |
3471 | else | |
3472 | if test -n "$CC"; then | |
3473 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3474 | else | |
3475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3476 | for as_dir in $PATH | |
3477 | do | |
3478 | IFS=$as_save_IFS | |
3479 | test -z "$as_dir" && as_dir=. | |
3480 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3481 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3482 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3484 | break 2 | |
3485 | fi | |
3486 | done | |
3487 | done | |
3488 | IFS=$as_save_IFS | |
3489 | ||
3490 | fi | |
3491 | fi | |
3492 | CC=$ac_cv_prog_CC | |
3493 | if test -n "$CC"; then | |
3494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3495 | $as_echo "$CC" >&6; } | |
3496 | else | |
3497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3498 | $as_echo "no" >&6; } | |
3499 | fi | |
3500 | ||
3501 | ||
3502 | fi | |
3503 | fi | |
3504 | if test -z "$CC"; then | |
3505 | # Extract the first word of "cc", so it can be a program name with args. | |
3506 | set dummy cc; ac_word=$2 | |
3507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3508 | $as_echo_n "checking for $ac_word... " >&6; } | |
3509 | if ${ac_cv_prog_CC+:} false; then : | |
3510 | $as_echo_n "(cached) " >&6 | |
3511 | else | |
3512 | if test -n "$CC"; then | |
3513 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3514 | else | |
3515 | ac_prog_rejected=no | |
3516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3517 | for as_dir in $PATH | |
3518 | do | |
3519 | IFS=$as_save_IFS | |
3520 | test -z "$as_dir" && as_dir=. | |
3521 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3522 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3523 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3524 | ac_prog_rejected=yes | |
3525 | continue | |
3526 | fi | |
3527 | ac_cv_prog_CC="cc" | |
3528 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3529 | break 2 | |
3530 | fi | |
3531 | done | |
3532 | done | |
3533 | IFS=$as_save_IFS | |
3534 | ||
3535 | if test $ac_prog_rejected = yes; then | |
3536 | # We found a bogon in the path, so make sure we never use it. | |
3537 | set dummy $ac_cv_prog_CC | |
3538 | shift | |
3539 | if test $# != 0; then | |
3540 | # We chose a different compiler from the bogus one. | |
3541 | # However, it has the same basename, so the bogon will be chosen | |
3542 | # first if we set CC to just the basename; use the full file name. | |
3543 | shift | |
3544 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3545 | fi | |
3546 | fi | |
3547 | fi | |
3548 | fi | |
3549 | CC=$ac_cv_prog_CC | |
3550 | if test -n "$CC"; then | |
3551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3552 | $as_echo "$CC" >&6; } | |
3553 | else | |
3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3555 | $as_echo "no" >&6; } | |
3556 | fi | |
3557 | ||
3558 | ||
3559 | fi | |
3560 | if test -z "$CC"; then | |
3561 | if test -n "$ac_tool_prefix"; then | |
3562 | for ac_prog in cl.exe | |
3563 | do | |
3564 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3565 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3567 | $as_echo_n "checking for $ac_word... " >&6; } | |
3568 | if ${ac_cv_prog_CC+:} false; then : | |
3569 | $as_echo_n "(cached) " >&6 | |
3570 | else | |
3571 | if test -n "$CC"; then | |
3572 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3573 | else | |
3574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3575 | for as_dir in $PATH | |
3576 | do | |
3577 | IFS=$as_save_IFS | |
3578 | test -z "$as_dir" && as_dir=. | |
3579 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3580 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3581 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3582 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3583 | break 2 | |
3584 | fi | |
3585 | done | |
3586 | done | |
3587 | IFS=$as_save_IFS | |
3588 | ||
3589 | fi | |
3590 | fi | |
3591 | CC=$ac_cv_prog_CC | |
3592 | if test -n "$CC"; then | |
3593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3594 | $as_echo "$CC" >&6; } | |
3595 | else | |
3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3597 | $as_echo "no" >&6; } | |
3598 | fi | |
3599 | ||
3600 | ||
3601 | test -n "$CC" && break | |
3602 | done | |
3603 | fi | |
3604 | if test -z "$CC"; then | |
3605 | ac_ct_CC=$CC | |
3606 | for ac_prog in cl.exe | |
3607 | do | |
3608 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3609 | set dummy $ac_prog; ac_word=$2 | |
3610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3611 | $as_echo_n "checking for $ac_word... " >&6; } | |
3612 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3613 | $as_echo_n "(cached) " >&6 | |
3614 | else | |
3615 | if test -n "$ac_ct_CC"; then | |
3616 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3617 | else | |
3618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3619 | for as_dir in $PATH | |
3620 | do | |
3621 | IFS=$as_save_IFS | |
3622 | test -z "$as_dir" && as_dir=. | |
3623 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3624 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3625 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3627 | break 2 | |
3628 | fi | |
3629 | done | |
3630 | done | |
3631 | IFS=$as_save_IFS | |
3632 | ||
3633 | fi | |
3634 | fi | |
3635 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3636 | if test -n "$ac_ct_CC"; then | |
3637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3638 | $as_echo "$ac_ct_CC" >&6; } | |
3639 | else | |
3640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3641 | $as_echo "no" >&6; } | |
3642 | fi | |
3643 | ||
3644 | ||
3645 | test -n "$ac_ct_CC" && break | |
3646 | done | |
3647 | ||
3648 | if test "x$ac_ct_CC" = x; then | |
3649 | CC="" | |
3650 | else | |
3651 | case $cross_compiling:$ac_tool_warned in | |
3652 | yes:) | |
3653 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3654 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3655 | ac_tool_warned=yes ;; | |
3656 | esac | |
3657 | CC=$ac_ct_CC | |
3658 | fi | |
3659 | fi | |
3660 | ||
3661 | fi | |
3662 | ||
3663 | ||
3664 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3665 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3666 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3667 | See \`config.log' for more details" "$LINENO" 5; } | |
3668 | ||
3669 | # Provide some information about the compiler. | |
3670 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3671 | set X $ac_compile | |
3672 | ac_compiler=$2 | |
3673 | for ac_option in --version -v -V -qversion; do | |
3674 | { { ac_try="$ac_compiler $ac_option >&5" | |
3675 | case "(($ac_try" in | |
3676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3677 | *) ac_try_echo=$ac_try;; | |
3678 | esac | |
3679 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3680 | $as_echo "$ac_try_echo"; } >&5 | |
3681 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3682 | ac_status=$? | |
3683 | if test -s conftest.err; then | |
3684 | sed '10a\ | |
3685 | ... rest of stderr output deleted ... | |
3686 | 10q' conftest.err >conftest.er1 | |
3687 | cat conftest.er1 >&5 | |
3688 | fi | |
3689 | rm -f conftest.er1 conftest.err | |
3690 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3691 | test $ac_status = 0; } | |
3692 | done | |
3693 | ||
3694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3695 | /* end confdefs.h. */ | |
3696 | ||
3697 | int | |
3698 | main () | |
3699 | { | |
3700 | ||
3701 | ; | |
3702 | return 0; | |
3703 | } | |
3704 | _ACEOF | |
3705 | ac_clean_files_save=$ac_clean_files | |
3706 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3707 | # Try to create an executable without -o first, disregard a.out. | |
3708 | # It will help us diagnose broken compilers, and finding out an intuition | |
3709 | # of exeext. | |
3710 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3711 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3712 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3713 | ||
3714 | # The possible output files: | |
3715 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3716 | ||
3717 | ac_rmfiles= | |
3718 | for ac_file in $ac_files | |
3719 | do | |
3720 | case $ac_file in | |
3721 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3722 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3723 | esac | |
3724 | done | |
3725 | rm -f $ac_rmfiles | |
3726 | ||
3727 | if { { ac_try="$ac_link_default" | |
3728 | case "(($ac_try" in | |
3729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3730 | *) ac_try_echo=$ac_try;; | |
3731 | esac | |
3732 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3733 | $as_echo "$ac_try_echo"; } >&5 | |
3734 | (eval "$ac_link_default") 2>&5 | |
3735 | ac_status=$? | |
3736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3737 | test $ac_status = 0; }; then : | |
3738 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3739 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3740 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3741 | # so that the user can short-circuit this test for compilers unknown to | |
3742 | # Autoconf. | |
3743 | for ac_file in $ac_files '' | |
3744 | do | |
3745 | test -f "$ac_file" || continue | |
3746 | case $ac_file in | |
3747 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3748 | ;; | |
3749 | [ab].out ) | |
3750 | # We found the default executable, but exeext='' is most | |
3751 | # certainly right. | |
3752 | break;; | |
3753 | *.* ) | |
3754 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3755 | then :; else | |
3756 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3757 | fi | |
3758 | # We set ac_cv_exeext here because the later test for it is not | |
3759 | # safe: cross compilers may not add the suffix if given an `-o' | |
3760 | # argument, so we may need to know it at that point already. | |
3761 | # Even if this section looks crufty: it has the advantage of | |
3762 | # actually working. | |
3763 | break;; | |
3764 | * ) | |
3765 | break;; | |
3766 | esac | |
3767 | done | |
3768 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3769 | ||
3770 | else | |
3771 | ac_file='' | |
3772 | fi | |
3773 | if test -z "$ac_file"; then : | |
3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3775 | $as_echo "no" >&6; } | |
3776 | $as_echo "$as_me: failed program was:" >&5 | |
3777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3778 | ||
3779 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3780 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3781 | as_fn_error 77 "C compiler cannot create executables | |
3782 | See \`config.log' for more details" "$LINENO" 5; } | |
3783 | else | |
3784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3785 | $as_echo "yes" >&6; } | |
3786 | fi | |
3787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3788 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3790 | $as_echo "$ac_file" >&6; } | |
3791 | ac_exeext=$ac_cv_exeext | |
3792 | ||
3793 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3794 | ac_clean_files=$ac_clean_files_save | |
3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3796 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3797 | if { { ac_try="$ac_link" | |
3798 | case "(($ac_try" in | |
3799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3800 | *) ac_try_echo=$ac_try;; | |
3801 | esac | |
3802 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3803 | $as_echo "$ac_try_echo"; } >&5 | |
3804 | (eval "$ac_link") 2>&5 | |
3805 | ac_status=$? | |
3806 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3807 | test $ac_status = 0; }; then : | |
3808 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3809 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3810 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3811 | # `rm'. | |
3812 | for ac_file in conftest.exe conftest conftest.*; do | |
3813 | test -f "$ac_file" || continue | |
3814 | case $ac_file in | |
3815 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3816 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3817 | break;; | |
3818 | * ) break;; | |
3819 | esac | |
3820 | done | |
3821 | else | |
3822 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3823 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3824 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3825 | See \`config.log' for more details" "$LINENO" 5; } | |
3826 | fi | |
3827 | rm -f conftest conftest$ac_cv_exeext | |
3828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3829 | $as_echo "$ac_cv_exeext" >&6; } | |
3830 | ||
3831 | rm -f conftest.$ac_ext | |
3832 | EXEEXT=$ac_cv_exeext | |
3833 | ac_exeext=$EXEEXT | |
3834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3835 | /* end confdefs.h. */ | |
3836 | #include <stdio.h> | |
3837 | int | |
3838 | main () | |
3839 | { | |
3840 | FILE *f = fopen ("conftest.out", "w"); | |
3841 | return ferror (f) || fclose (f) != 0; | |
3842 | ||
3843 | ; | |
3844 | return 0; | |
3845 | } | |
3846 | _ACEOF | |
3847 | ac_clean_files="$ac_clean_files conftest.out" | |
3848 | # Check that the compiler produces executables we can run. If not, either | |
3849 | # the compiler is broken, or we cross compile. | |
3850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3851 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3852 | if test "$cross_compiling" != yes; then | |
3853 | { { ac_try="$ac_link" | |
3854 | case "(($ac_try" in | |
3855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3856 | *) ac_try_echo=$ac_try;; | |
3857 | esac | |
3858 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3859 | $as_echo "$ac_try_echo"; } >&5 | |
3860 | (eval "$ac_link") 2>&5 | |
3861 | ac_status=$? | |
3862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3863 | test $ac_status = 0; } | |
3864 | if { ac_try='./conftest$ac_cv_exeext' | |
3865 | { { case "(($ac_try" in | |
3866 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3867 | *) ac_try_echo=$ac_try;; | |
3868 | esac | |
3869 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3870 | $as_echo "$ac_try_echo"; } >&5 | |
3871 | (eval "$ac_try") 2>&5 | |
3872 | ac_status=$? | |
3873 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3874 | test $ac_status = 0; }; }; then | |
3875 | cross_compiling=no | |
3876 | else | |
3877 | if test "$cross_compiling" = maybe; then | |
3878 | cross_compiling=yes | |
3879 | else | |
3880 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3881 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3882 | as_fn_error $? "cannot run C compiled programs. | |
3883 | If you meant to cross compile, use \`--host'. | |
3884 | See \`config.log' for more details" "$LINENO" 5; } | |
3885 | fi | |
3886 | fi | |
3887 | fi | |
3888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3889 | $as_echo "$cross_compiling" >&6; } | |
3890 | ||
3891 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3892 | ac_clean_files=$ac_clean_files_save | |
3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3894 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3895 | if ${ac_cv_objext+:} false; then : | |
3896 | $as_echo_n "(cached) " >&6 | |
3897 | else | |
3898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3899 | /* end confdefs.h. */ | |
3900 | ||
3901 | int | |
3902 | main () | |
3903 | { | |
3904 | ||
3905 | ; | |
3906 | return 0; | |
3907 | } | |
3908 | _ACEOF | |
3909 | rm -f conftest.o conftest.obj | |
3910 | if { { ac_try="$ac_compile" | |
3911 | case "(($ac_try" in | |
3912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3913 | *) ac_try_echo=$ac_try;; | |
3914 | esac | |
3915 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3916 | $as_echo "$ac_try_echo"; } >&5 | |
3917 | (eval "$ac_compile") 2>&5 | |
3918 | ac_status=$? | |
3919 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3920 | test $ac_status = 0; }; then : | |
3921 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3922 | test -f "$ac_file" || continue; | |
3923 | case $ac_file in | |
3924 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3925 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3926 | break;; | |
3927 | esac | |
3928 | done | |
3929 | else | |
3930 | $as_echo "$as_me: failed program was:" >&5 | |
3931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3932 | ||
3933 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3934 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3935 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3936 | See \`config.log' for more details" "$LINENO" 5; } | |
3937 | fi | |
3938 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3939 | fi | |
3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3941 | $as_echo "$ac_cv_objext" >&6; } | |
3942 | OBJEXT=$ac_cv_objext | |
3943 | ac_objext=$OBJEXT | |
3944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3945 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3946 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3947 | $as_echo_n "(cached) " >&6 | |
3948 | else | |
3949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3950 | /* end confdefs.h. */ | |
3951 | ||
3952 | int | |
3953 | main () | |
3954 | { | |
3955 | #ifndef __GNUC__ | |
3956 | choke me | |
3957 | #endif | |
3958 | ||
3959 | ; | |
3960 | return 0; | |
3961 | } | |
3962 | _ACEOF | |
3963 | if ac_fn_c_try_compile "$LINENO"; then : | |
3964 | ac_compiler_gnu=yes | |
3965 | else | |
3966 | ac_compiler_gnu=no | |
3967 | fi | |
3968 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3969 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3970 | ||
3971 | fi | |
3972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3973 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3974 | if test $ac_compiler_gnu = yes; then | |
3975 | GCC=yes | |
3976 | else | |
3977 | GCC= | |
3978 | fi | |
3979 | ac_test_CFLAGS=${CFLAGS+set} | |
3980 | ac_save_CFLAGS=$CFLAGS | |
3981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3982 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3983 | if ${ac_cv_prog_cc_g+:} false; then : | |
3984 | $as_echo_n "(cached) " >&6 | |
3985 | else | |
3986 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3987 | ac_c_werror_flag=yes | |
3988 | ac_cv_prog_cc_g=no | |
3989 | CFLAGS="-g" | |
3990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3991 | /* end confdefs.h. */ | |
3992 | ||
3993 | int | |
3994 | main () | |
3995 | { | |
3996 | ||
3997 | ; | |
3998 | return 0; | |
3999 | } | |
4000 | _ACEOF | |
4001 | if ac_fn_c_try_compile "$LINENO"; then : | |
4002 | ac_cv_prog_cc_g=yes | |
4003 | else | |
4004 | CFLAGS="" | |
4005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4006 | /* end confdefs.h. */ | |
4007 | ||
4008 | int | |
4009 | main () | |
4010 | { | |
4011 | ||
4012 | ; | |
4013 | return 0; | |
4014 | } | |
4015 | _ACEOF | |
4016 | if ac_fn_c_try_compile "$LINENO"; then : | |
4017 | ||
4018 | else | |
4019 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4020 | CFLAGS="-g" | |
4021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4022 | /* end confdefs.h. */ | |
4023 | ||
4024 | int | |
4025 | main () | |
4026 | { | |
4027 | ||
4028 | ; | |
4029 | return 0; | |
4030 | } | |
4031 | _ACEOF | |
4032 | if ac_fn_c_try_compile "$LINENO"; then : | |
4033 | ac_cv_prog_cc_g=yes | |
4034 | fi | |
4035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4036 | fi | |
4037 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4038 | fi | |
4039 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4040 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4041 | fi | |
4042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4043 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4044 | if test "$ac_test_CFLAGS" = set; then | |
4045 | CFLAGS=$ac_save_CFLAGS | |
4046 | elif test $ac_cv_prog_cc_g = yes; then | |
4047 | if test "$GCC" = yes; then | |
4048 | CFLAGS="-g -O2" | |
4049 | else | |
4050 | CFLAGS="-g" | |
4051 | fi | |
4052 | else | |
4053 | if test "$GCC" = yes; then | |
4054 | CFLAGS="-O2" | |
4055 | else | |
4056 | CFLAGS= | |
4057 | fi | |
4058 | fi | |
4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4060 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4061 | if ${ac_cv_prog_cc_c89+:} false; then : | |
4062 | $as_echo_n "(cached) " >&6 | |
4063 | else | |
4064 | ac_cv_prog_cc_c89=no | |
4065 | ac_save_CC=$CC | |
4066 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4067 | /* end confdefs.h. */ | |
4068 | #include <stdarg.h> | |
4069 | #include <stdio.h> | |
4070 | struct stat; | |
4071 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4072 | struct buf { int x; }; | |
4073 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4074 | static char *e (p, i) | |
4075 | char **p; | |
4076 | int i; | |
4077 | { | |
4078 | return p[i]; | |
4079 | } | |
4080 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4081 | { | |
4082 | char *s; | |
4083 | va_list v; | |
4084 | va_start (v,p); | |
4085 | s = g (p, va_arg (v,int)); | |
4086 | va_end (v); | |
4087 | return s; | |
4088 | } | |
4089 | ||
4090 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4091 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4092 | These don't provoke an error unfortunately, instead are silently treated | |
4093 | as 'x'. The following induces an error, until -std is added to get | |
4094 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4095 | array size at least. It's necessary to write '\x00'==0 to get something | |
4096 | that's true only with -std. */ | |
4097 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4098 | ||
4099 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4100 | inside strings and character constants. */ | |
4101 | #define FOO(x) 'x' | |
4102 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4103 | ||
4104 | int test (int i, double x); | |
4105 | struct s1 {int (*f) (int a);}; | |
4106 | struct s2 {int (*f) (double a);}; | |
4107 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4108 | int argc; | |
4109 | char **argv; | |
4110 | int | |
4111 | main () | |
4112 | { | |
4113 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4114 | ; | |
4115 | return 0; | |
4116 | } | |
4117 | _ACEOF | |
4118 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4119 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4120 | do | |
4121 | CC="$ac_save_CC $ac_arg" | |
4122 | if ac_fn_c_try_compile "$LINENO"; then : | |
4123 | ac_cv_prog_cc_c89=$ac_arg | |
4124 | fi | |
4125 | rm -f core conftest.err conftest.$ac_objext | |
4126 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4127 | done | |
4128 | rm -f conftest.$ac_ext | |
4129 | CC=$ac_save_CC | |
4130 | ||
4131 | fi | |
4132 | # AC_CACHE_VAL | |
4133 | case "x$ac_cv_prog_cc_c89" in | |
4134 | x) | |
4135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4136 | $as_echo "none needed" >&6; } ;; | |
4137 | xno) | |
4138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4139 | $as_echo "unsupported" >&6; } ;; | |
4140 | *) | |
4141 | CC="$CC $ac_cv_prog_cc_c89" | |
4142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4143 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4144 | esac | |
4145 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4146 | ||
4147 | fi | |
4148 | ||
4149 | ac_ext=c | |
4150 | ac_cpp='$CPP $CPPFLAGS' | |
4151 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4152 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4153 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4154 | ||
4155 | ac_ext=c | |
4156 | ac_cpp='$CPP $CPPFLAGS' | |
4157 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4158 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4159 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4161 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4162 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4163 | $as_echo_n "(cached) " >&6 | |
4164 | else | |
4165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4166 | /* end confdefs.h. */ | |
4167 | ||
4168 | int | |
4169 | main () | |
4170 | { | |
4171 | ||
4172 | ; | |
4173 | return 0; | |
4174 | } | |
4175 | _ACEOF | |
4176 | # Make sure it works both with $CC and with simple cc. | |
4177 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4178 | # compilers refuse to overwrite an existing .o file with -o, | |
4179 | # though they will create one. | |
4180 | am_cv_prog_cc_c_o=yes | |
4181 | for am_i in 1 2; do | |
4182 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4183 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4184 | ac_status=$? | |
4185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4186 | (exit $ac_status); } \ | |
4187 | && test -f conftest2.$ac_objext; then | |
4188 | : OK | |
4189 | else | |
4190 | am_cv_prog_cc_c_o=no | |
4191 | break | |
4192 | fi | |
4193 | done | |
4194 | rm -f core conftest* | |
4195 | unset am_i | |
4196 | fi | |
4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4198 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4199 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4200 | # Losing compiler, so override with the script. | |
4201 | # FIXME: It is wrong to rewrite CC. | |
4202 | # But if we don't then we get into trouble of one sort or another. | |
4203 | # A longer-term fix would be to have automake use am__CC in this case, | |
4204 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4205 | CC="$am_aux_dir/compile $CC" | |
4206 | fi | |
4207 | ac_ext=c | |
4208 | ac_cpp='$CPP $CPPFLAGS' | |
4209 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4210 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4211 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4212 | ||
4213 | ||
4214 | depcc="$CC" am_compiler_list= | |
4215 | ||
4216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4217 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4218 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4219 | $as_echo_n "(cached) " >&6 | |
4220 | else | |
4221 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4222 | # We make a subdir and do the tests there. Otherwise we can end up | |
4223 | # making bogus files that we don't know about and never remove. For | |
4224 | # instance it was reported that on HP-UX the gcc test will end up | |
4225 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4226 | # in D". | |
4227 | rm -rf conftest.dir | |
4228 | mkdir conftest.dir | |
4229 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4230 | # using a relative directory. | |
4231 | cp "$am_depcomp" conftest.dir | |
4232 | cd conftest.dir | |
4233 | # We will build objects and dependencies in a subdirectory because | |
4234 | # it helps to detect inapplicable dependency modes. For instance | |
4235 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4236 | # side effect of compilation, but ICC will put the dependencies in | |
4237 | # the current directory while Tru64 will put them in the object | |
4238 | # directory. | |
4239 | mkdir sub | |
4240 | ||
4241 | am_cv_CC_dependencies_compiler_type=none | |
4242 | if test "$am_compiler_list" = ""; then | |
4243 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4244 | fi | |
4245 | am__universal=false | |
4246 | case " $depcc " in #( | |
4247 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4248 | esac | |
4249 | ||
4250 | for depmode in $am_compiler_list; do | |
4251 | # Setup a source with many dependencies, because some compilers | |
4252 | # like to wrap large dependency lists on column 80 (with \), and | |
4253 | # we should not choose a depcomp mode which is confused by this. | |
4254 | # | |
4255 | # We need to recreate these files for each test, as the compiler may | |
4256 | # overwrite some of them when testing with obscure command lines. | |
4257 | # This happens at least with the AIX C compiler. | |
4258 | : > sub/conftest.c | |
4259 | for i in 1 2 3 4 5 6; do | |
4260 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4261 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4262 | # Solaris 10 /bin/sh. | |
4263 | echo '/* dummy */' > sub/conftst$i.h | |
4264 | done | |
4265 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4266 | ||
4267 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4268 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4269 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4270 | # versions had trouble with output in subdirs. | |
4271 | am__obj=sub/conftest.${OBJEXT-o} | |
4272 | am__minus_obj="-o $am__obj" | |
4273 | case $depmode in | |
4274 | gcc) | |
4275 | # This depmode causes a compiler race in universal mode. | |
4276 | test "$am__universal" = false || continue | |
4277 | ;; | |
4278 | nosideeffect) | |
4279 | # After this tag, mechanisms are not by side-effect, so they'll | |
4280 | # only be used when explicitly requested. | |
4281 | if test "x$enable_dependency_tracking" = xyes; then | |
4282 | continue | |
4283 | else | |
4284 | break | |
4285 | fi | |
4286 | ;; | |
4287 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4288 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4289 | # not run yet. These depmodes are late enough in the game, and | |
4290 | # so weak that their functioning should not be impacted. | |
4291 | am__obj=conftest.${OBJEXT-o} | |
4292 | am__minus_obj= | |
4293 | ;; | |
4294 | none) break ;; | |
4295 | esac | |
4296 | if depmode=$depmode \ | |
4297 | source=sub/conftest.c object=$am__obj \ | |
4298 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4299 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4300 | >/dev/null 2>conftest.err && | |
4301 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4302 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4303 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4304 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4305 | # icc doesn't choke on unknown options, it will just issue warnings | |
4306 | # or remarks (even with -Werror). So we grep stderr for any message | |
4307 | # that says an option was ignored or not supported. | |
4308 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4309 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4310 | # The diagnosis changed in icc 8.0: | |
4311 | # icc: Command line remark: option '-MP' not supported | |
4312 | if (grep 'ignoring option' conftest.err || | |
4313 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4314 | am_cv_CC_dependencies_compiler_type=$depmode | |
4315 | break | |
4316 | fi | |
4317 | fi | |
4318 | done | |
4319 | ||
4320 | cd .. | |
4321 | rm -rf conftest.dir | |
4322 | else | |
4323 | am_cv_CC_dependencies_compiler_type=none | |
4324 | fi | |
4325 | ||
4326 | fi | |
4327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4328 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4329 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4330 | ||
4331 | if | |
4332 | test "x$enable_dependency_tracking" != xno \ | |
4333 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4334 | am__fastdepCC_TRUE= | |
4335 | am__fastdepCC_FALSE='#' | |
4336 | else | |
4337 | am__fastdepCC_TRUE='#' | |
4338 | am__fastdepCC_FALSE= | |
4339 | fi | |
4340 | ||
4341 | ||
4342 | ||
4343 | if test -n "$ac_tool_prefix"; then | |
4344 | for ac_prog in ar lib "link -lib" | |
4345 | do | |
4346 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4347 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4349 | $as_echo_n "checking for $ac_word... " >&6; } | |
4350 | if ${ac_cv_prog_AR+:} false; then : | |
4351 | $as_echo_n "(cached) " >&6 | |
4352 | else | |
4353 | if test -n "$AR"; then | |
4354 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4355 | else | |
4356 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4357 | for as_dir in $PATH | |
4358 | do | |
4359 | IFS=$as_save_IFS | |
4360 | test -z "$as_dir" && as_dir=. | |
4361 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4362 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4363 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
4364 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4365 | break 2 | |
4366 | fi | |
4367 | done | |
4368 | done | |
4369 | IFS=$as_save_IFS | |
4370 | ||
4371 | fi | |
4372 | fi | |
4373 | AR=$ac_cv_prog_AR | |
4374 | if test -n "$AR"; then | |
4375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
4376 | $as_echo "$AR" >&6; } | |
4377 | else | |
4378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4379 | $as_echo "no" >&6; } | |
4380 | fi | |
4381 | ||
4382 | ||
4383 | test -n "$AR" && break | |
4384 | done | |
4385 | fi | |
4386 | if test -z "$AR"; then | |
4387 | ac_ct_AR=$AR | |
4388 | for ac_prog in ar lib "link -lib" | |
4389 | do | |
4390 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4391 | set dummy $ac_prog; ac_word=$2 | |
4392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4393 | $as_echo_n "checking for $ac_word... " >&6; } | |
4394 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
4395 | $as_echo_n "(cached) " >&6 | |
4396 | else | |
4397 | if test -n "$ac_ct_AR"; then | |
4398 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4399 | else | |
4400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4401 | for as_dir in $PATH | |
4402 | do | |
4403 | IFS=$as_save_IFS | |
4404 | test -z "$as_dir" && as_dir=. | |
4405 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4406 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4407 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
4408 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4409 | break 2 | |
4410 | fi | |
4411 | done | |
4412 | done | |
4413 | IFS=$as_save_IFS | |
4414 | ||
4415 | fi | |
4416 | fi | |
4417 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4418 | if test -n "$ac_ct_AR"; then | |
4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
4420 | $as_echo "$ac_ct_AR" >&6; } | |
4421 | else | |
4422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4423 | $as_echo "no" >&6; } | |
4424 | fi | |
4425 | ||
4426 | ||
4427 | test -n "$ac_ct_AR" && break | |
4428 | done | |
4429 | ||
4430 | if test "x$ac_ct_AR" = x; then | |
4431 | AR="false" | |
4432 | else | |
4433 | case $cross_compiling:$ac_tool_warned in | |
4434 | yes:) | |
4435 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4436 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4437 | ac_tool_warned=yes ;; | |
4438 | esac | |
4439 | AR=$ac_ct_AR | |
4440 | fi | |
4441 | fi | |
4442 | ||
4443 | : ${AR=ar} | |
4444 | ||
4445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 | |
4446 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } | |
4447 | if ${am_cv_ar_interface+:} false; then : | |
4448 | $as_echo_n "(cached) " >&6 | |
4449 | else | |
4450 | ac_ext=c | |
4451 | ac_cpp='$CPP $CPPFLAGS' | |
4452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4455 | ||
4456 | am_cv_ar_interface=ar | |
4457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4458 | /* end confdefs.h. */ | |
4459 | int some_variable = 0; | |
4460 | _ACEOF | |
4461 | if ac_fn_c_try_compile "$LINENO"; then : | |
4462 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' | |
4463 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
4464 | (eval $am_ar_try) 2>&5 | |
4465 | ac_status=$? | |
4466 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4467 | test $ac_status = 0; } | |
4468 | if test "$ac_status" -eq 0; then | |
4469 | am_cv_ar_interface=ar | |
4470 | else | |
4471 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' | |
4472 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
4473 | (eval $am_ar_try) 2>&5 | |
4474 | ac_status=$? | |
4475 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4476 | test $ac_status = 0; } | |
4477 | if test "$ac_status" -eq 0; then | |
4478 | am_cv_ar_interface=lib | |
4479 | else | |
4480 | am_cv_ar_interface=unknown | |
4481 | fi | |
4482 | fi | |
4483 | rm -f conftest.lib libconftest.a | |
4484 | ||
4485 | fi | |
4486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4487 | ac_ext=c | |
4488 | ac_cpp='$CPP $CPPFLAGS' | |
4489 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4490 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4491 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4492 | ||
4493 | fi | |
4494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 | |
4495 | $as_echo "$am_cv_ar_interface" >&6; } | |
4496 | ||
4497 | case $am_cv_ar_interface in | |
4498 | ar) | |
4499 | ;; | |
4500 | lib) | |
4501 | # Microsoft lib, so override with the ar-lib wrapper script. | |
4502 | # FIXME: It is wrong to rewrite AR. | |
4503 | # But if we don't then we get into trouble of one sort or another. | |
4504 | # A longer-term fix would be to have automake use am__AR in this case, | |
4505 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something | |
4506 | # similar. | |
4507 | AR="$am_aux_dir/ar-lib $AR" | |
4508 | ;; | |
4509 | unknown) | |
4510 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 | |
4511 | ;; | |
4512 | esac | |
4513 | ||
4514 | ||
4515 | case `pwd` in | |
4516 | *\ * | *\ *) | |
4517 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4518 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4519 | esac | |
4520 | ||
4521 | ||
4522 | ||
4523 | macro_version='2.4.2' | |
4524 | macro_revision='1.3337' | |
4525 | ||
4526 | ||
4527 | ||
4528 | ||
4529 | ||
4530 | ||
4531 | ||
4532 | ||
4533 | ||
4534 | ||
4535 | ||
4536 | ||
4537 | ||
4538 | ltmain="$ac_aux_dir/ltmain.sh" | |
4539 | ||
4540 | # Make sure we can run config.sub. | |
4541 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
4542 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
4543 | ||
4544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
4545 | $as_echo_n "checking build system type... " >&6; } | |
4546 | if ${ac_cv_build+:} false; then : | |
4547 | $as_echo_n "(cached) " >&6 | |
4548 | else | |
4549 | ac_build_alias=$build_alias | |
4550 | test "x$ac_build_alias" = x && | |
4551 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4552 | test "x$ac_build_alias" = x && | |
4553 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
4554 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
4555 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
4556 | ||
4557 | fi | |
4558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
4559 | $as_echo "$ac_cv_build" >&6; } | |
4560 | case $ac_cv_build in | |
4561 | *-*-*) ;; | |
4562 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
4563 | esac | |
4564 | build=$ac_cv_build | |
4565 | ac_save_IFS=$IFS; IFS='-' | |
4566 | set x $ac_cv_build | |
4567 | shift | |
4568 | build_cpu=$1 | |
4569 | build_vendor=$2 | |
4570 | shift; shift | |
4571 | # Remember, the first character of IFS is used to create $*, | |
4572 | # except with old shells: | |
4573 | build_os=$* | |
4574 | IFS=$ac_save_IFS | |
4575 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4576 | ||
4577 | ||
4578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
4579 | $as_echo_n "checking host system type... " >&6; } | |
4580 | if ${ac_cv_host+:} false; then : | |
4581 | $as_echo_n "(cached) " >&6 | |
4582 | else | |
4583 | if test "x$host_alias" = x; then | |
4584 | ac_cv_host=$ac_cv_build | |
4585 | else | |
4586 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
4587 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
4588 | fi | |
4589 | ||
4590 | fi | |
4591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
4592 | $as_echo "$ac_cv_host" >&6; } | |
4593 | case $ac_cv_host in | |
4594 | *-*-*) ;; | |
4595 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
4596 | esac | |
4597 | host=$ac_cv_host | |
4598 | ac_save_IFS=$IFS; IFS='-' | |
4599 | set x $ac_cv_host | |
4600 | shift | |
4601 | host_cpu=$1 | |
4602 | host_vendor=$2 | |
4603 | shift; shift | |
4604 | # Remember, the first character of IFS is used to create $*, | |
4605 | # except with old shells: | |
4606 | host_os=$* | |
4607 | IFS=$ac_save_IFS | |
4608 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4609 | ||
4610 | ||
4611 | # Backslashify metacharacters that are still active within | |
4612 | # double-quoted strings. | |
4613 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4614 | ||
4615 | # Same as above, but do not quote variable references. | |
4616 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4617 | ||
4618 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4619 | # double_quote_subst'ed string. | |
4620 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4621 | ||
4622 | # Sed substitution to delay expansion of an escaped single quote. | |
4623 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4624 | ||
4625 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4626 | no_glob_subst='s/\*/\\\*/g' | |
4627 | ||
4628 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4629 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4630 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4631 | ||
4632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4633 | $as_echo_n "checking how to print strings... " >&6; } | |
4634 | # Test print first, because it will be a builtin if present. | |
4635 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4636 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4637 | ECHO='print -r --' | |
4638 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4639 | ECHO='printf %s\n' | |
4640 | else | |
4641 | # Use this function as a fallback that always works. | |
4642 | func_fallback_echo () | |
4643 | { | |
4644 | eval 'cat <<_LTECHO_EOF | |
4645 | $1 | |
4646 | _LTECHO_EOF' | |
4647 | } | |
4648 | ECHO='func_fallback_echo' | |
4649 | fi | |
4650 | ||
4651 | # func_echo_all arg... | |
4652 | # Invoke $ECHO with all args, space-separated. | |
4653 | func_echo_all () | |
4654 | { | |
4655 | $ECHO "" | |
4656 | } | |
4657 | ||
4658 | case "$ECHO" in | |
4659 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4660 | $as_echo "printf" >&6; } ;; | |
4661 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4662 | $as_echo "print -r" >&6; } ;; | |
4663 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4664 | $as_echo "cat" >&6; } ;; | |
4665 | esac | |
4666 | ||
4667 | ||
4668 | ||
4669 | ||
4670 | ||
4671 | ||
4672 | ||
4673 | ||
4674 | ||
4675 | ||
4676 | ||
4677 | ||
4678 | ||
4679 | ||
4680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
4681 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4682 | if ${ac_cv_path_SED+:} false; then : | |
4683 | $as_echo_n "(cached) " >&6 | |
4684 | else | |
4685 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4686 | for ac_i in 1 2 3 4 5 6 7; do | |
4687 | ac_script="$ac_script$as_nl$ac_script" | |
4688 | done | |
4689 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4690 | { ac_script=; unset ac_script;} | |
4691 | if test -z "$SED"; then | |
4692 | ac_path_SED_found=false | |
4693 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4695 | for as_dir in $PATH | |
4696 | do | |
4697 | IFS=$as_save_IFS | |
4698 | test -z "$as_dir" && as_dir=. | |
4699 | for ac_prog in sed gsed; do | |
4700 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4701 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4702 | as_fn_executable_p "$ac_path_SED" || continue | |
4703 | # Check for GNU ac_path_SED and select it if it is found. | |
4704 | # Check for GNU $ac_path_SED | |
4705 | case `"$ac_path_SED" --version 2>&1` in | |
4706 | *GNU*) | |
4707 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4708 | *) | |
4709 | ac_count=0 | |
4710 | $as_echo_n 0123456789 >"conftest.in" | |
4711 | while : | |
4712 | do | |
4713 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4714 | mv "conftest.tmp" "conftest.in" | |
4715 | cp "conftest.in" "conftest.nl" | |
4716 | $as_echo '' >> "conftest.nl" | |
4717 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4718 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4719 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4720 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4721 | # Best one so far, save it but keep looking for a better one | |
4722 | ac_cv_path_SED="$ac_path_SED" | |
4723 | ac_path_SED_max=$ac_count | |
4724 | fi | |
4725 | # 10*(2^10) chars as input seems more than enough | |
4726 | test $ac_count -gt 10 && break | |
4727 | done | |
4728 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4729 | esac | |
4730 | ||
4731 | $ac_path_SED_found && break 3 | |
4732 | done | |
4733 | done | |
4734 | done | |
4735 | IFS=$as_save_IFS | |
4736 | if test -z "$ac_cv_path_SED"; then | |
4737 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
4738 | fi | |
4739 | else | |
4740 | ac_cv_path_SED=$SED | |
4741 | fi | |
4742 | ||
4743 | fi | |
4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4745 | $as_echo "$ac_cv_path_SED" >&6; } | |
4746 | SED="$ac_cv_path_SED" | |
4747 | rm -f conftest.sed | |
4748 | ||
4749 | test -z "$SED" && SED=sed | |
4750 | Xsed="$SED -e 1s/^X//" | |
4751 | ||
4752 | ||
4753 | ||
4754 | ||
4755 | ||
4756 | ||
4757 | ||
4758 | ||
4759 | ||
4760 | ||
4761 | ||
4762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4763 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4764 | if ${ac_cv_path_GREP+:} false; then : | |
4765 | $as_echo_n "(cached) " >&6 | |
4766 | else | |
4767 | if test -z "$GREP"; then | |
4768 | ac_path_GREP_found=false | |
4769 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4770 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4771 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4772 | do | |
4773 | IFS=$as_save_IFS | |
4774 | test -z "$as_dir" && as_dir=. | |
4775 | for ac_prog in grep ggrep; do | |
4776 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4777 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4778 | as_fn_executable_p "$ac_path_GREP" || continue | |
4779 | # Check for GNU ac_path_GREP and select it if it is found. | |
4780 | # Check for GNU $ac_path_GREP | |
4781 | case `"$ac_path_GREP" --version 2>&1` in | |
4782 | *GNU*) | |
4783 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4784 | *) | |
4785 | ac_count=0 | |
4786 | $as_echo_n 0123456789 >"conftest.in" | |
4787 | while : | |
4788 | do | |
4789 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4790 | mv "conftest.tmp" "conftest.in" | |
4791 | cp "conftest.in" "conftest.nl" | |
4792 | $as_echo 'GREP' >> "conftest.nl" | |
4793 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4794 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4795 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4796 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4797 | # Best one so far, save it but keep looking for a better one | |
4798 | ac_cv_path_GREP="$ac_path_GREP" | |
4799 | ac_path_GREP_max=$ac_count | |
4800 | fi | |
4801 | # 10*(2^10) chars as input seems more than enough | |
4802 | test $ac_count -gt 10 && break | |
4803 | done | |
4804 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4805 | esac | |
4806 | ||
4807 | $ac_path_GREP_found && break 3 | |
4808 | done | |
4809 | done | |
4810 | done | |
4811 | IFS=$as_save_IFS | |
4812 | if test -z "$ac_cv_path_GREP"; then | |
4813 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4814 | fi | |
4815 | else | |
4816 | ac_cv_path_GREP=$GREP | |
4817 | fi | |
4818 | ||
4819 | fi | |
4820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4821 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4822 | GREP="$ac_cv_path_GREP" | |
4823 | ||
4824 | ||
4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4826 | $as_echo_n "checking for egrep... " >&6; } | |
4827 | if ${ac_cv_path_EGREP+:} false; then : | |
4828 | $as_echo_n "(cached) " >&6 | |
4829 | else | |
4830 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4831 | then ac_cv_path_EGREP="$GREP -E" | |
4832 | else | |
4833 | if test -z "$EGREP"; then | |
4834 | ac_path_EGREP_found=false | |
4835 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4837 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4838 | do | |
4839 | IFS=$as_save_IFS | |
4840 | test -z "$as_dir" && as_dir=. | |
4841 | for ac_prog in egrep; do | |
4842 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4843 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4844 | as_fn_executable_p "$ac_path_EGREP" || continue | |
4845 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4846 | # Check for GNU $ac_path_EGREP | |
4847 | case `"$ac_path_EGREP" --version 2>&1` in | |
4848 | *GNU*) | |
4849 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4850 | *) | |
4851 | ac_count=0 | |
4852 | $as_echo_n 0123456789 >"conftest.in" | |
4853 | while : | |
4854 | do | |
4855 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4856 | mv "conftest.tmp" "conftest.in" | |
4857 | cp "conftest.in" "conftest.nl" | |
4858 | $as_echo 'EGREP' >> "conftest.nl" | |
4859 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4860 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4861 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4862 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4863 | # Best one so far, save it but keep looking for a better one | |
4864 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4865 | ac_path_EGREP_max=$ac_count | |
4866 | fi | |
4867 | # 10*(2^10) chars as input seems more than enough | |
4868 | test $ac_count -gt 10 && break | |
4869 | done | |
4870 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4871 | esac | |
4872 | ||
4873 | $ac_path_EGREP_found && break 3 | |
4874 | done | |
4875 | done | |
4876 | done | |
4877 | IFS=$as_save_IFS | |
4878 | if test -z "$ac_cv_path_EGREP"; then | |
4879 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4880 | fi | |
4881 | else | |
4882 | ac_cv_path_EGREP=$EGREP | |
4883 | fi | |
4884 | ||
4885 | fi | |
4886 | fi | |
4887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4888 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4889 | EGREP="$ac_cv_path_EGREP" | |
4890 | ||
4891 | ||
4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
4893 | $as_echo_n "checking for fgrep... " >&6; } | |
4894 | if ${ac_cv_path_FGREP+:} false; then : | |
4895 | $as_echo_n "(cached) " >&6 | |
4896 | else | |
4897 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
4898 | then ac_cv_path_FGREP="$GREP -F" | |
4899 | else | |
4900 | if test -z "$FGREP"; then | |
4901 | ac_path_FGREP_found=false | |
4902 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4904 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4905 | do | |
4906 | IFS=$as_save_IFS | |
4907 | test -z "$as_dir" && as_dir=. | |
4908 | for ac_prog in fgrep; do | |
4909 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4910 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4911 | as_fn_executable_p "$ac_path_FGREP" || continue | |
4912 | # Check for GNU ac_path_FGREP and select it if it is found. | |
4913 | # Check for GNU $ac_path_FGREP | |
4914 | case `"$ac_path_FGREP" --version 2>&1` in | |
4915 | *GNU*) | |
4916 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4917 | *) | |
4918 | ac_count=0 | |
4919 | $as_echo_n 0123456789 >"conftest.in" | |
4920 | while : | |
4921 | do | |
4922 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4923 | mv "conftest.tmp" "conftest.in" | |
4924 | cp "conftest.in" "conftest.nl" | |
4925 | $as_echo 'FGREP' >> "conftest.nl" | |
4926 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4927 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4928 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4929 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
4930 | # Best one so far, save it but keep looking for a better one | |
4931 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4932 | ac_path_FGREP_max=$ac_count | |
4933 | fi | |
4934 | # 10*(2^10) chars as input seems more than enough | |
4935 | test $ac_count -gt 10 && break | |
4936 | done | |
4937 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4938 | esac | |
4939 | ||
4940 | $ac_path_FGREP_found && break 3 | |
4941 | done | |
4942 | done | |
4943 | done | |
4944 | IFS=$as_save_IFS | |
4945 | if test -z "$ac_cv_path_FGREP"; then | |
4946 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4947 | fi | |
4948 | else | |
4949 | ac_cv_path_FGREP=$FGREP | |
4950 | fi | |
4951 | ||
4952 | fi | |
4953 | fi | |
4954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
4955 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
4956 | FGREP="$ac_cv_path_FGREP" | |
4957 | ||
4958 | ||
4959 | test -z "$GREP" && GREP=grep | |
4960 | ||
4961 | ||
4962 | ||
4963 | ||
4964 | ||
4965 | ||
4966 | ||
4967 | ||
4968 | ||
4969 | ||
4970 | ||
4971 | ||
4972 | ||
4973 | ||
4974 | ||
4975 | ||
4976 | ||
4977 | ||
4978 | ||
4979 | # Check whether --with-gnu-ld was given. | |
4980 | if test "${with_gnu_ld+set}" = set; then : | |
4981 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
4982 | else | |
4983 | with_gnu_ld=no | |
4984 | fi | |
4985 | ||
4986 | ac_prog=ld | |
4987 | if test "$GCC" = yes; then | |
4988 | # Check if gcc -print-prog-name=ld gives a path. | |
4989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
4990 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
4991 | case $host in | |
4992 | *-*-mingw*) | |
4993 | # gcc leaves a trailing carriage return which upsets mingw | |
4994 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4995 | *) | |
4996 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4997 | esac | |
4998 | case $ac_prog in | |
4999 | # Accept absolute paths. | |
5000 | [\\/]* | ?:[\\/]*) | |
5001 | re_direlt='/[^/][^/]*/\.\./' | |
5002 | # Canonicalize the pathname of ld | |
5003 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5004 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5005 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5006 | done | |
5007 | test -z "$LD" && LD="$ac_prog" | |
5008 | ;; | |
5009 | "") | |
5010 | # If it fails, then pretend we aren't using GCC. | |
5011 | ac_prog=ld | |
5012 | ;; | |
5013 | *) | |
5014 | # If it is relative, then search for the first ld in PATH. | |
5015 | with_gnu_ld=unknown | |
5016 | ;; | |
5017 | esac | |
5018 | elif test "$with_gnu_ld" = yes; then | |
5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5020 | $as_echo_n "checking for GNU ld... " >&6; } | |
5021 | else | |
5022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5023 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5024 | fi | |
5025 | if ${lt_cv_path_LD+:} false; then : | |
5026 | $as_echo_n "(cached) " >&6 | |
5027 | else | |
5028 | if test -z "$LD"; then | |
5029 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5030 | for ac_dir in $PATH; do | |
5031 | IFS="$lt_save_ifs" | |
5032 | test -z "$ac_dir" && ac_dir=. | |
5033 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5034 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5035 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5036 | # but apparently some variants of GNU ld only accept -v. | |
5037 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5038 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5039 | *GNU* | *'with BFD'*) | |
5040 | test "$with_gnu_ld" != no && break | |
5041 | ;; | |
5042 | *) | |
5043 | test "$with_gnu_ld" != yes && break | |
5044 | ;; | |
5045 | esac | |
5046 | fi | |
5047 | done | |
5048 | IFS="$lt_save_ifs" | |
5049 | else | |
5050 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5051 | fi | |
5052 | fi | |
5053 | ||
5054 | LD="$lt_cv_path_LD" | |
5055 | if test -n "$LD"; then | |
5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5057 | $as_echo "$LD" >&6; } | |
5058 | else | |
5059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5060 | $as_echo "no" >&6; } | |
5061 | fi | |
5062 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5064 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5065 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5066 | $as_echo_n "(cached) " >&6 | |
5067 | else | |
5068 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5069 | case `$LD -v 2>&1 </dev/null` in | |
5070 | *GNU* | *'with BFD'*) | |
5071 | lt_cv_prog_gnu_ld=yes | |
5072 | ;; | |
5073 | *) | |
5074 | lt_cv_prog_gnu_ld=no | |
5075 | ;; | |
5076 | esac | |
5077 | fi | |
5078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5079 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5080 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5081 | ||
5082 | ||
5083 | ||
5084 | ||
5085 | ||
5086 | ||
5087 | ||
5088 | ||
5089 | ||
5090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5091 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5092 | if ${lt_cv_path_NM+:} false; then : | |
5093 | $as_echo_n "(cached) " >&6 | |
5094 | else | |
5095 | if test -n "$NM"; then | |
5096 | # Let the user override the test. | |
5097 | lt_cv_path_NM="$NM" | |
5098 | else | |
5099 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5100 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5101 | lt_nm_to_check="$lt_nm_to_check nm" | |
5102 | fi | |
5103 | for lt_tmp_nm in $lt_nm_to_check; do | |
5104 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5105 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5106 | IFS="$lt_save_ifs" | |
5107 | test -z "$ac_dir" && ac_dir=. | |
5108 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5109 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5110 | # Check to see if the nm accepts a BSD-compat flag. | |
5111 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5112 | # nm: unknown option "B" ignored | |
5113 | # Tru64's nm complains that /dev/null is an invalid object file | |
5114 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5115 | */dev/null* | *'Invalid file or object type'*) | |
5116 | lt_cv_path_NM="$tmp_nm -B" | |
5117 | break | |
5118 | ;; | |
5119 | *) | |
5120 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5121 | */dev/null*) | |
5122 | lt_cv_path_NM="$tmp_nm -p" | |
5123 | break | |
5124 | ;; | |
5125 | *) | |
5126 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5127 | continue # so that we can try to find one that supports BSD flags | |
5128 | ;; | |
5129 | esac | |
5130 | ;; | |
5131 | esac | |
5132 | fi | |
5133 | done | |
5134 | IFS="$lt_save_ifs" | |
5135 | done | |
5136 | : ${lt_cv_path_NM=no} | |
5137 | fi | |
5138 | fi | |
5139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5140 | $as_echo "$lt_cv_path_NM" >&6; } | |
5141 | if test "$lt_cv_path_NM" != "no"; then | |
5142 | NM="$lt_cv_path_NM" | |
5143 | else | |
5144 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5145 | if test -n "$DUMPBIN"; then : | |
5146 | # Let the user override the test. | |
5147 | else | |
5148 | if test -n "$ac_tool_prefix"; then | |
5149 | for ac_prog in dumpbin "link -dump" | |
5150 | do | |
5151 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5152 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5154 | $as_echo_n "checking for $ac_word... " >&6; } | |
5155 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
5156 | $as_echo_n "(cached) " >&6 | |
5157 | else | |
5158 | if test -n "$DUMPBIN"; then | |
5159 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5160 | else | |
5161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5162 | for as_dir in $PATH | |
5163 | do | |
5164 | IFS=$as_save_IFS | |
5165 | test -z "$as_dir" && as_dir=. | |
5166 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5167 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5168 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
5169 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5170 | break 2 | |
5171 | fi | |
5172 | done | |
5173 | done | |
5174 | IFS=$as_save_IFS | |
5175 | ||
5176 | fi | |
5177 | fi | |
5178 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5179 | if test -n "$DUMPBIN"; then | |
5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5181 | $as_echo "$DUMPBIN" >&6; } | |
5182 | else | |
5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5184 | $as_echo "no" >&6; } | |
5185 | fi | |
5186 | ||
5187 | ||
5188 | test -n "$DUMPBIN" && break | |
5189 | done | |
5190 | fi | |
5191 | if test -z "$DUMPBIN"; then | |
5192 | ac_ct_DUMPBIN=$DUMPBIN | |
5193 | for ac_prog in dumpbin "link -dump" | |
5194 | do | |
5195 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5196 | set dummy $ac_prog; ac_word=$2 | |
5197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5198 | $as_echo_n "checking for $ac_word... " >&6; } | |
5199 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
5200 | $as_echo_n "(cached) " >&6 | |
5201 | else | |
5202 | if test -n "$ac_ct_DUMPBIN"; then | |
5203 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5204 | else | |
5205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5206 | for as_dir in $PATH | |
5207 | do | |
5208 | IFS=$as_save_IFS | |
5209 | test -z "$as_dir" && as_dir=. | |
5210 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5211 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5212 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
5213 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5214 | break 2 | |
5215 | fi | |
5216 | done | |
5217 | done | |
5218 | IFS=$as_save_IFS | |
5219 | ||
5220 | fi | |
5221 | fi | |
5222 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5223 | if test -n "$ac_ct_DUMPBIN"; then | |
5224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5225 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
5226 | else | |
5227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5228 | $as_echo "no" >&6; } | |
5229 | fi | |
5230 | ||
5231 | ||
5232 | test -n "$ac_ct_DUMPBIN" && break | |
5233 | done | |
5234 | ||
5235 | if test "x$ac_ct_DUMPBIN" = x; then | |
5236 | DUMPBIN=":" | |
5237 | else | |
5238 | case $cross_compiling:$ac_tool_warned in | |
5239 | yes:) | |
5240 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5241 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5242 | ac_tool_warned=yes ;; | |
5243 | esac | |
5244 | DUMPBIN=$ac_ct_DUMPBIN | |
5245 | fi | |
5246 | fi | |
5247 | ||
5248 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
5249 | *COFF*) | |
5250 | DUMPBIN="$DUMPBIN -symbols" | |
5251 | ;; | |
5252 | *) | |
5253 | DUMPBIN=: | |
5254 | ;; | |
5255 | esac | |
5256 | fi | |
5257 | ||
5258 | if test "$DUMPBIN" != ":"; then | |
5259 | NM="$DUMPBIN" | |
5260 | fi | |
5261 | fi | |
5262 | test -z "$NM" && NM=nm | |
5263 | ||
5264 | ||
5265 | ||
5266 | ||
5267 | ||
5268 | ||
5269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5270 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5271 | if ${lt_cv_nm_interface+:} false; then : | |
5272 | $as_echo_n "(cached) " >&6 | |
5273 | else | |
5274 | lt_cv_nm_interface="BSD nm" | |
5275 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5276 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5277 | (eval "$ac_compile" 2>conftest.err) | |
5278 | cat conftest.err >&5 | |
5279 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5280 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5281 | cat conftest.err >&5 | |
5282 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5283 | cat conftest.out >&5 | |
5284 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5285 | lt_cv_nm_interface="MS dumpbin" | |
5286 | fi | |
5287 | rm -f conftest* | |
5288 | fi | |
5289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
5290 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5291 | ||
5292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5293 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5294 | LN_S=$as_ln_s | |
5295 | if test "$LN_S" = "ln -s"; then | |
5296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5297 | $as_echo "yes" >&6; } | |
5298 | else | |
5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5300 | $as_echo "no, using $LN_S" >&6; } | |
5301 | fi | |
5302 | ||
5303 | # find the maximum length of command line arguments | |
5304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5305 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5306 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
5307 | $as_echo_n "(cached) " >&6 | |
5308 | else | |
5309 | i=0 | |
5310 | teststring="ABCD" | |
5311 | ||
5312 | case $build_os in | |
5313 | msdosdjgpp*) | |
5314 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5315 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5316 | # during glob expansion). Even if it were fixed, the result of this | |
5317 | # check would be larger than it should be. | |
5318 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5319 | ;; | |
5320 | ||
5321 | gnu*) | |
5322 | # Under GNU Hurd, this test is not required because there is | |
5323 | # no limit to the length of command line arguments. | |
5324 | # Libtool will interpret -1 as no limit whatsoever | |
5325 | lt_cv_sys_max_cmd_len=-1; | |
5326 | ;; | |
5327 | ||
5328 | cygwin* | mingw* | cegcc*) | |
5329 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5330 | # about 5 minutes as the teststring grows exponentially. | |
5331 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5332 | # you end up with a "frozen" computer, even though with patience | |
5333 | # the test eventually succeeds (with a max line length of 256k). | |
5334 | # Instead, let's just punt: use the minimum linelength reported by | |
5335 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5336 | lt_cv_sys_max_cmd_len=8192; | |
5337 | ;; | |
5338 | ||
5339 | mint*) | |
5340 | # On MiNT this can take a long time and run out of memory. | |
5341 | lt_cv_sys_max_cmd_len=8192; | |
5342 | ;; | |
5343 | ||
5344 | amigaos*) | |
5345 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5346 | # So we just punt and use a minimum line length of 8192. | |
5347 | lt_cv_sys_max_cmd_len=8192; | |
5348 | ;; | |
5349 | ||
5350 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5351 | # This has been around since 386BSD, at least. Likely further. | |
5352 | if test -x /sbin/sysctl; then | |
5353 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5354 | elif test -x /usr/sbin/sysctl; then | |
5355 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5356 | else | |
5357 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5358 | fi | |
5359 | # And add a safety zone | |
5360 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5361 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5362 | ;; | |
5363 | ||
5364 | interix*) | |
5365 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5366 | lt_cv_sys_max_cmd_len=196608 | |
5367 | ;; | |
5368 | ||
5369 | os2*) | |
5370 | # The test takes a long time on OS/2. | |
5371 | lt_cv_sys_max_cmd_len=8192 | |
5372 | ;; | |
5373 | ||
5374 | osf*) | |
5375 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5376 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5377 | # nice to cause kernel panics so lets avoid the loop below. | |
5378 | # First set a reasonable default. | |
5379 | lt_cv_sys_max_cmd_len=16384 | |
5380 | # | |
5381 | if test -x /sbin/sysconfig; then | |
5382 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5383 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5384 | esac | |
5385 | fi | |
5386 | ;; | |
5387 | sco3.2v5*) | |
5388 | lt_cv_sys_max_cmd_len=102400 | |
5389 | ;; | |
5390 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5391 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5392 | if test -n "$kargmax"; then | |
5393 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5394 | else | |
5395 | lt_cv_sys_max_cmd_len=32768 | |
5396 | fi | |
5397 | ;; | |
5398 | *) | |
5399 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5400 | if test -n "$lt_cv_sys_max_cmd_len" && \ | |
5401 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
5402 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5403 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5404 | else | |
5405 | # Make teststring a little bigger before we do anything with it. | |
5406 | # a 1K string should be a reasonable start. | |
5407 | for i in 1 2 3 4 5 6 7 8 ; do | |
5408 | teststring=$teststring$teststring | |
5409 | done | |
5410 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5411 | # If test is not a shell built-in, we'll probably end up computing a | |
5412 | # maximum length that is only half of the actual maximum length, but | |
5413 | # we can't tell. | |
5414 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |
5415 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5416 | test $i != 17 # 1/2 MB should be enough | |
5417 | do | |
5418 | i=`expr $i + 1` | |
5419 | teststring=$teststring$teststring | |
5420 | done | |
5421 | # Only check the string length outside the loop. | |
5422 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5423 | teststring= | |
5424 | # Add a significant safety factor because C++ compilers can tack on | |
5425 | # massive amounts of additional arguments before passing them to the | |
5426 | # linker. It appears as though 1/2 is a usable value. | |
5427 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5428 | fi | |
5429 | ;; | |
5430 | esac | |
5431 | ||
5432 | fi | |
5433 | ||
5434 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5436 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5437 | else | |
5438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5439 | $as_echo "none" >&6; } | |
5440 | fi | |
5441 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
5442 | ||
5443 | ||
5444 | ||
5445 | ||
5446 | ||
5447 | ||
5448 | : ${CP="cp -f"} | |
5449 | : ${MV="mv -f"} | |
5450 | : ${RM="rm -f"} | |
5451 | ||
5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
5453 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5454 | # Try some XSI features | |
5455 | xsi_shell=no | |
5456 | ( _lt_dummy="a/b/c" | |
5457 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
5458 | = c,a/b,b/c, \ | |
5459 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5460 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5461 | && xsi_shell=yes | |
5462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5463 | $as_echo "$xsi_shell" >&6; } | |
5464 | ||
5465 | ||
5466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
5467 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
5468 | lt_shell_append=no | |
5469 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5470 | >/dev/null 2>&1 \ | |
5471 | && lt_shell_append=yes | |
5472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
5473 | $as_echo "$lt_shell_append" >&6; } | |
5474 | ||
5475 | ||
5476 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5477 | lt_unset=unset | |
5478 | else | |
5479 | lt_unset=false | |
5480 | fi | |
5481 | ||
5482 | ||
5483 | ||
5484 | ||
5485 | ||
5486 | # test EBCDIC or ASCII | |
5487 | case `echo X|tr X '\101'` in | |
5488 | A) # ASCII based system | |
5489 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5490 | lt_SP2NL='tr \040 \012' | |
5491 | lt_NL2SP='tr \015\012 \040\040' | |
5492 | ;; | |
5493 | *) # EBCDIC based system | |
5494 | lt_SP2NL='tr \100 \n' | |
5495 | lt_NL2SP='tr \r\n \100\100' | |
5496 | ;; | |
5497 | esac | |
5498 | ||
5499 | ||
5500 | ||
5501 | ||
5502 | ||
5503 | ||
5504 | ||
5505 | ||
5506 | ||
5507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
5508 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5509 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
5510 | $as_echo_n "(cached) " >&6 | |
5511 | else | |
5512 | case $host in | |
5513 | *-*-mingw* ) | |
5514 | case $build in | |
5515 | *-*-mingw* ) # actually msys | |
5516 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5517 | ;; | |
5518 | *-*-cygwin* ) | |
5519 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5520 | ;; | |
5521 | * ) # otherwise, assume *nix | |
5522 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
5523 | ;; | |
5524 | esac | |
5525 | ;; | |
5526 | *-*-cygwin* ) | |
5527 | case $build in | |
5528 | *-*-mingw* ) # actually msys | |
5529 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5530 | ;; | |
5531 | *-*-cygwin* ) | |
5532 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5533 | ;; | |
5534 | * ) # otherwise, assume *nix | |
5535 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5536 | ;; | |
5537 | esac | |
5538 | ;; | |
5539 | * ) # unhandled hosts (and "normal" native builds) | |
5540 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5541 | ;; | |
5542 | esac | |
5543 | ||
5544 | fi | |
5545 | ||
5546 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
5547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
5548 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
5549 | ||
5550 | ||
5551 | ||
5552 | ||
5553 | ||
5554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5555 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5556 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5557 | $as_echo_n "(cached) " >&6 | |
5558 | else | |
5559 | #assume ordinary cross tools, or native build. | |
5560 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5561 | case $host in | |
5562 | *-*-mingw* ) | |
5563 | case $build in | |
5564 | *-*-mingw* ) # actually msys | |
5565 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5566 | ;; | |
5567 | esac | |
5568 | ;; | |
5569 | esac | |
5570 | ||
5571 | fi | |
5572 | ||
5573 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5575 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5576 | ||
5577 | ||
5578 | ||
5579 | ||
5580 | ||
5581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
5582 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5583 | if ${lt_cv_ld_reload_flag+:} false; then : | |
5584 | $as_echo_n "(cached) " >&6 | |
5585 | else | |
5586 | lt_cv_ld_reload_flag='-r' | |
5587 | fi | |
5588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
5589 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5590 | reload_flag=$lt_cv_ld_reload_flag | |
5591 | case $reload_flag in | |
5592 | "" | " "*) ;; | |
5593 | *) reload_flag=" $reload_flag" ;; | |
5594 | esac | |
5595 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5596 | case $host_os in | |
5597 | cygwin* | mingw* | pw32* | cegcc*) | |
5598 | if test "$GCC" != yes; then | |
5599 | reload_cmds=false | |
5600 | fi | |
5601 | ;; | |
5602 | darwin*) | |
5603 | if test "$GCC" = yes; then | |
5604 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5605 | else | |
5606 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5607 | fi | |
5608 | ;; | |
5609 | esac | |
5610 | ||
5611 | ||
5612 | ||
5613 | ||
5614 | ||
5615 | ||
5616 | ||
5617 | ||
5618 | ||
5619 | if test -n "$ac_tool_prefix"; then | |
5620 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5621 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5622 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5623 | $as_echo_n "checking for $ac_word... " >&6; } | |
5624 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
5625 | $as_echo_n "(cached) " >&6 | |
5626 | else | |
5627 | if test -n "$OBJDUMP"; then | |
5628 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5629 | else | |
5630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5631 | for as_dir in $PATH | |
5632 | do | |
5633 | IFS=$as_save_IFS | |
5634 | test -z "$as_dir" && as_dir=. | |
5635 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5636 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5637 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5638 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5639 | break 2 | |
5640 | fi | |
5641 | done | |
5642 | done | |
5643 | IFS=$as_save_IFS | |
5644 | ||
5645 | fi | |
5646 | fi | |
5647 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5648 | if test -n "$OBJDUMP"; then | |
5649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5650 | $as_echo "$OBJDUMP" >&6; } | |
5651 | else | |
5652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5653 | $as_echo "no" >&6; } | |
5654 | fi | |
5655 | ||
5656 | ||
5657 | fi | |
5658 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5659 | ac_ct_OBJDUMP=$OBJDUMP | |
5660 | # Extract the first word of "objdump", so it can be a program name with args. | |
5661 | set dummy objdump; ac_word=$2 | |
5662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5663 | $as_echo_n "checking for $ac_word... " >&6; } | |
5664 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
5665 | $as_echo_n "(cached) " >&6 | |
5666 | else | |
5667 | if test -n "$ac_ct_OBJDUMP"; then | |
5668 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5669 | else | |
5670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5671 | for as_dir in $PATH | |
5672 | do | |
5673 | IFS=$as_save_IFS | |
5674 | test -z "$as_dir" && as_dir=. | |
5675 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5676 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5677 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5679 | break 2 | |
5680 | fi | |
5681 | done | |
5682 | done | |
5683 | IFS=$as_save_IFS | |
5684 | ||
5685 | fi | |
5686 | fi | |
5687 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5688 | if test -n "$ac_ct_OBJDUMP"; then | |
5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5690 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5691 | else | |
5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5693 | $as_echo "no" >&6; } | |
5694 | fi | |
5695 | ||
5696 | if test "x$ac_ct_OBJDUMP" = x; then | |
5697 | OBJDUMP="false" | |
5698 | else | |
5699 | case $cross_compiling:$ac_tool_warned in | |
5700 | yes:) | |
5701 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5702 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5703 | ac_tool_warned=yes ;; | |
5704 | esac | |
5705 | OBJDUMP=$ac_ct_OBJDUMP | |
5706 | fi | |
5707 | else | |
5708 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5709 | fi | |
5710 | ||
5711 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5712 | ||
5713 | ||
5714 | ||
5715 | ||
5716 | ||
5717 | ||
5718 | ||
5719 | ||
5720 | ||
5721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5722 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5723 | if ${lt_cv_deplibs_check_method+:} false; then : | |
5724 | $as_echo_n "(cached) " >&6 | |
5725 | else | |
5726 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5727 | lt_cv_file_magic_test_file= | |
5728 | lt_cv_deplibs_check_method='unknown' | |
5729 | # Need to set the preceding variable on all platforms that support | |
5730 | # interlibrary dependencies. | |
5731 | # 'none' -- dependencies not supported. | |
5732 | # `unknown' -- same as none, but documents that we really don't know. | |
5733 | # 'pass_all' -- all dependencies passed with no checks. | |
5734 | # 'test_compile' -- check by making test program. | |
5735 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5736 | # which responds to the $file_magic_cmd with a given extended regex. | |
5737 | # If you have `file' or equivalent on your system and you're not sure | |
5738 | # whether `pass_all' will *always* work, you probably want this one. | |
5739 | ||
5740 | case $host_os in | |
5741 | aix[4-9]*) | |
5742 | lt_cv_deplibs_check_method=pass_all | |
5743 | ;; | |
5744 | ||
5745 | beos*) | |
5746 | lt_cv_deplibs_check_method=pass_all | |
5747 | ;; | |
5748 | ||
5749 | bsdi[45]*) | |
5750 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5751 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5752 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5753 | ;; | |
5754 | ||
5755 | cygwin*) | |
5756 | # func_win32_libid is a shell function defined in ltmain.sh | |
5757 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5758 | lt_cv_file_magic_cmd='func_win32_libid' | |
5759 | ;; | |
5760 | ||
5761 | mingw* | pw32*) | |
5762 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5763 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5764 | # unless we find 'file', for example because we are cross-compiling. | |
5765 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
5766 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
5767 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5768 | lt_cv_file_magic_cmd='func_win32_libid' | |
5769 | else | |
5770 | # Keep this pattern in sync with the one in func_win32_libid. | |
5771 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
5772 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5773 | fi | |
5774 | ;; | |
5775 | ||
5776 | cegcc*) | |
5777 | # use the weaker test based on 'objdump'. See mingw*. | |
5778 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5779 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5780 | ;; | |
5781 | ||
5782 | darwin* | rhapsody*) | |
5783 | lt_cv_deplibs_check_method=pass_all | |
5784 | ;; | |
5785 | ||
5786 | freebsd* | dragonfly*) | |
5787 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5788 | case $host_cpu in | |
5789 | i*86 ) | |
5790 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5791 | # Let's accept both of them until this is cleared up. | |
5792 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5793 | lt_cv_file_magic_cmd=/usr/bin/file | |
5794 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5795 | ;; | |
5796 | esac | |
5797 | else | |
5798 | lt_cv_deplibs_check_method=pass_all | |
5799 | fi | |
5800 | ;; | |
5801 | ||
5802 | haiku*) | |
5803 | lt_cv_deplibs_check_method=pass_all | |
5804 | ;; | |
5805 | ||
5806 | hpux10.20* | hpux11*) | |
5807 | lt_cv_file_magic_cmd=/usr/bin/file | |
5808 | case $host_cpu in | |
5809 | ia64*) | |
5810 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5811 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5812 | ;; | |
5813 | hppa*64*) | |
5814 | 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]' | |
5815 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5816 | ;; | |
5817 | *) | |
5818 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
5819 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5820 | ;; | |
5821 | esac | |
5822 | ;; | |
5823 | ||
5824 | interix[3-9]*) | |
5825 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5826 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5827 | ;; | |
5828 | ||
5829 | irix5* | irix6* | nonstopux*) | |
5830 | case $LD in | |
5831 | *-32|*"-32 ") libmagic=32-bit;; | |
5832 | *-n32|*"-n32 ") libmagic=N32;; | |
5833 | *-64|*"-64 ") libmagic=64-bit;; | |
5834 | *) libmagic=never-match;; | |
5835 | esac | |
5836 | lt_cv_deplibs_check_method=pass_all | |
5837 | ;; | |
5838 | ||
5839 | # This must be glibc/ELF. | |
5840 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
5841 | lt_cv_deplibs_check_method=pass_all | |
5842 | ;; | |
5843 | ||
5844 | netbsd* | netbsdelf*-gnu) | |
5845 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5846 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5847 | else | |
5848 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5849 | fi | |
5850 | ;; | |
5851 | ||
5852 | newos6*) | |
5853 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5854 | lt_cv_file_magic_cmd=/usr/bin/file | |
5855 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5856 | ;; | |
5857 | ||
5858 | *nto* | *qnx*) | |
5859 | lt_cv_deplibs_check_method=pass_all | |
5860 | ;; | |
5861 | ||
5862 | openbsd*) | |
5863 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5864 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5865 | else | |
5866 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5867 | fi | |
5868 | ;; | |
5869 | ||
5870 | osf3* | osf4* | osf5*) | |
5871 | lt_cv_deplibs_check_method=pass_all | |
5872 | ;; | |
5873 | ||
5874 | rdos*) | |
5875 | lt_cv_deplibs_check_method=pass_all | |
5876 | ;; | |
5877 | ||
5878 | solaris*) | |
5879 | lt_cv_deplibs_check_method=pass_all | |
5880 | ;; | |
5881 | ||
5882 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5883 | lt_cv_deplibs_check_method=pass_all | |
5884 | ;; | |
5885 | ||
5886 | sysv4 | sysv4.3*) | |
5887 | case $host_vendor in | |
5888 | motorola) | |
5889 | 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]' | |
5890 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5891 | ;; | |
5892 | ncr) | |
5893 | lt_cv_deplibs_check_method=pass_all | |
5894 | ;; | |
5895 | sequent) | |
5896 | lt_cv_file_magic_cmd='/bin/file' | |
5897 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5898 | ;; | |
5899 | sni) | |
5900 | lt_cv_file_magic_cmd='/bin/file' | |
5901 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5902 | lt_cv_file_magic_test_file=/lib/libc.so | |
5903 | ;; | |
5904 | siemens) | |
5905 | lt_cv_deplibs_check_method=pass_all | |
5906 | ;; | |
5907 | pc) | |
5908 | lt_cv_deplibs_check_method=pass_all | |
5909 | ;; | |
5910 | esac | |
5911 | ;; | |
5912 | ||
5913 | tpf*) | |
5914 | lt_cv_deplibs_check_method=pass_all | |
5915 | ;; | |
5916 | esac | |
5917 | ||
5918 | fi | |
5919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
5920 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
5921 | ||
5922 | file_magic_glob= | |
5923 | want_nocaseglob=no | |
5924 | if test "$build" = "$host"; then | |
5925 | case $host_os in | |
5926 | mingw* | pw32*) | |
5927 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5928 | want_nocaseglob=yes | |
5929 | else | |
5930 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5931 | fi | |
5932 | ;; | |
5933 | esac | |
5934 | fi | |
5935 | ||
5936 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5937 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5938 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5939 | ||
5940 | ||
5941 | ||
5942 | ||
5943 | ||
5944 | ||
5945 | ||
5946 | ||
5947 | ||
5948 | ||
5949 | ||
5950 | ||
5951 | ||
5952 | ||
5953 | ||
5954 | ||
5955 | ||
5956 | ||
5957 | ||
5958 | ||
5959 | ||
5960 | ||
5961 | if test -n "$ac_tool_prefix"; then | |
5962 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5963 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5965 | $as_echo_n "checking for $ac_word... " >&6; } | |
5966 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5967 | $as_echo_n "(cached) " >&6 | |
5968 | else | |
5969 | if test -n "$DLLTOOL"; then | |
5970 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5971 | else | |
5972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5973 | for as_dir in $PATH | |
5974 | do | |
5975 | IFS=$as_save_IFS | |
5976 | test -z "$as_dir" && as_dir=. | |
5977 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5978 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5979 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5980 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5981 | break 2 | |
5982 | fi | |
5983 | done | |
5984 | done | |
5985 | IFS=$as_save_IFS | |
5986 | ||
5987 | fi | |
5988 | fi | |
5989 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
5990 | if test -n "$DLLTOOL"; then | |
5991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5992 | $as_echo "$DLLTOOL" >&6; } | |
5993 | else | |
5994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5995 | $as_echo "no" >&6; } | |
5996 | fi | |
5997 | ||
5998 | ||
5999 | fi | |
6000 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
6001 | ac_ct_DLLTOOL=$DLLTOOL | |
6002 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6003 | set dummy dlltool; ac_word=$2 | |
6004 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6005 | $as_echo_n "checking for $ac_word... " >&6; } | |
6006 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
6007 | $as_echo_n "(cached) " >&6 | |
6008 | else | |
6009 | if test -n "$ac_ct_DLLTOOL"; then | |
6010 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
6011 | else | |
6012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6013 | for as_dir in $PATH | |
6014 | do | |
6015 | IFS=$as_save_IFS | |
6016 | test -z "$as_dir" && as_dir=. | |
6017 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6018 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6019 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
6020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6021 | break 2 | |
6022 | fi | |
6023 | done | |
6024 | done | |
6025 | IFS=$as_save_IFS | |
6026 | ||
6027 | fi | |
6028 | fi | |
6029 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
6030 | if test -n "$ac_ct_DLLTOOL"; then | |
6031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6032 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
6033 | else | |
6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6035 | $as_echo "no" >&6; } | |
6036 | fi | |
6037 | ||
6038 | if test "x$ac_ct_DLLTOOL" = x; then | |
6039 | DLLTOOL="false" | |
6040 | else | |
6041 | case $cross_compiling:$ac_tool_warned in | |
6042 | yes:) | |
6043 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6044 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6045 | ac_tool_warned=yes ;; | |
6046 | esac | |
6047 | DLLTOOL=$ac_ct_DLLTOOL | |
6048 | fi | |
6049 | else | |
6050 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
6051 | fi | |
6052 | ||
6053 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
6054 | ||
6055 | ||
6056 | ||
6057 | ||
6058 | ||
6059 | ||
6060 | ||
6061 | ||
6062 | ||
6063 | ||
6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
6065 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6066 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
6067 | $as_echo_n "(cached) " >&6 | |
6068 | else | |
6069 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
6070 | ||
6071 | case $host_os in | |
6072 | cygwin* | mingw* | pw32* | cegcc*) | |
6073 | # two different shell functions defined in ltmain.sh | |
6074 | # decide which to use based on capabilities of $DLLTOOL | |
6075 | case `$DLLTOOL --help 2>&1` in | |
6076 | *--identify-strict*) | |
6077 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6078 | ;; | |
6079 | *) | |
6080 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6081 | ;; | |
6082 | esac | |
6083 | ;; | |
6084 | *) | |
6085 | # fallback: assume linklib IS sharedlib | |
6086 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
6087 | ;; | |
6088 | esac | |
6089 | ||
6090 | fi | |
6091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
6092 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6093 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6094 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
6095 | ||
6096 | ||
6097 | ||
6098 | ||
6099 | ||
6100 | ||
6101 | ||
6102 | if test -n "$ac_tool_prefix"; then | |
6103 | for ac_prog in ar | |
6104 | do | |
6105 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6106 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6108 | $as_echo_n "checking for $ac_word... " >&6; } | |
6109 | if ${ac_cv_prog_AR+:} false; then : | |
6110 | $as_echo_n "(cached) " >&6 | |
6111 | else | |
6112 | if test -n "$AR"; then | |
6113 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6114 | else | |
6115 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6116 | for as_dir in $PATH | |
6117 | do | |
6118 | IFS=$as_save_IFS | |
6119 | test -z "$as_dir" && as_dir=. | |
6120 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6121 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6122 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
6123 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6124 | break 2 | |
6125 | fi | |
6126 | done | |
6127 | done | |
6128 | IFS=$as_save_IFS | |
6129 | ||
6130 | fi | |
6131 | fi | |
6132 | AR=$ac_cv_prog_AR | |
6133 | if test -n "$AR"; then | |
6134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6135 | $as_echo "$AR" >&6; } | |
6136 | else | |
6137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6138 | $as_echo "no" >&6; } | |
6139 | fi | |
6140 | ||
6141 | ||
6142 | test -n "$AR" && break | |
6143 | done | |
6144 | fi | |
6145 | if test -z "$AR"; then | |
6146 | ac_ct_AR=$AR | |
6147 | for ac_prog in ar | |
6148 | do | |
6149 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6150 | set dummy $ac_prog; ac_word=$2 | |
6151 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6152 | $as_echo_n "checking for $ac_word... " >&6; } | |
6153 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
6154 | $as_echo_n "(cached) " >&6 | |
6155 | else | |
6156 | if test -n "$ac_ct_AR"; then | |
6157 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6158 | else | |
6159 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6160 | for as_dir in $PATH | |
6161 | do | |
6162 | IFS=$as_save_IFS | |
6163 | test -z "$as_dir" && as_dir=. | |
6164 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6165 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6166 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
6167 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6168 | break 2 | |
6169 | fi | |
6170 | done | |
6171 | done | |
6172 | IFS=$as_save_IFS | |
6173 | ||
6174 | fi | |
6175 | fi | |
6176 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6177 | if test -n "$ac_ct_AR"; then | |
6178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6179 | $as_echo "$ac_ct_AR" >&6; } | |
6180 | else | |
6181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6182 | $as_echo "no" >&6; } | |
6183 | fi | |
6184 | ||
6185 | ||
6186 | test -n "$ac_ct_AR" && break | |
6187 | done | |
6188 | ||
6189 | if test "x$ac_ct_AR" = x; then | |
6190 | AR="false" | |
6191 | else | |
6192 | case $cross_compiling:$ac_tool_warned in | |
6193 | yes:) | |
6194 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6195 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6196 | ac_tool_warned=yes ;; | |
6197 | esac | |
6198 | AR=$ac_ct_AR | |
6199 | fi | |
6200 | fi | |
6201 | ||
6202 | : ${AR=ar} | |
6203 | : ${AR_FLAGS=cru} | |
6204 | ||
6205 | ||
6206 | ||
6207 | ||
6208 | ||
6209 | ||
6210 | ||
6211 | ||
6212 | ||
6213 | ||
6214 | ||
6215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6216 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6217 | if ${lt_cv_ar_at_file+:} false; then : | |
6218 | $as_echo_n "(cached) " >&6 | |
6219 | else | |
6220 | lt_cv_ar_at_file=no | |
6221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6222 | /* end confdefs.h. */ | |
6223 | ||
6224 | int | |
6225 | main () | |
6226 | { | |
6227 | ||
6228 | ; | |
6229 | return 0; | |
6230 | } | |
6231 | _ACEOF | |
6232 | if ac_fn_c_try_compile "$LINENO"; then : | |
6233 | echo conftest.$ac_objext > conftest.lst | |
6234 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6235 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6236 | (eval $lt_ar_try) 2>&5 | |
6237 | ac_status=$? | |
6238 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6239 | test $ac_status = 0; } | |
6240 | if test "$ac_status" -eq 0; then | |
6241 | # Ensure the archiver fails upon bogus file names. | |
6242 | rm -f conftest.$ac_objext libconftest.a | |
6243 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6244 | (eval $lt_ar_try) 2>&5 | |
6245 | ac_status=$? | |
6246 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6247 | test $ac_status = 0; } | |
6248 | if test "$ac_status" -ne 0; then | |
6249 | lt_cv_ar_at_file=@ | |
6250 | fi | |
6251 | fi | |
6252 | rm -f conftest.* libconftest.a | |
6253 | ||
6254 | fi | |
6255 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6256 | ||
6257 | fi | |
6258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6259 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6260 | ||
6261 | if test "x$lt_cv_ar_at_file" = xno; then | |
6262 | archiver_list_spec= | |
6263 | else | |
6264 | archiver_list_spec=$lt_cv_ar_at_file | |
6265 | fi | |
6266 | ||
6267 | ||
6268 | ||
6269 | ||
6270 | ||
6271 | ||
6272 | ||
6273 | if test -n "$ac_tool_prefix"; then | |
6274 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6275 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6277 | $as_echo_n "checking for $ac_word... " >&6; } | |
6278 | if ${ac_cv_prog_STRIP+:} false; then : | |
6279 | $as_echo_n "(cached) " >&6 | |
6280 | else | |
6281 | if test -n "$STRIP"; then | |
6282 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6283 | else | |
6284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6285 | for as_dir in $PATH | |
6286 | do | |
6287 | IFS=$as_save_IFS | |
6288 | test -z "$as_dir" && as_dir=. | |
6289 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6290 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6291 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6292 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6293 | break 2 | |
6294 | fi | |
6295 | done | |
6296 | done | |
6297 | IFS=$as_save_IFS | |
6298 | ||
6299 | fi | |
6300 | fi | |
6301 | STRIP=$ac_cv_prog_STRIP | |
6302 | if test -n "$STRIP"; then | |
6303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6304 | $as_echo "$STRIP" >&6; } | |
6305 | else | |
6306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6307 | $as_echo "no" >&6; } | |
6308 | fi | |
6309 | ||
6310 | ||
6311 | fi | |
6312 | if test -z "$ac_cv_prog_STRIP"; then | |
6313 | ac_ct_STRIP=$STRIP | |
6314 | # Extract the first word of "strip", so it can be a program name with args. | |
6315 | set dummy strip; ac_word=$2 | |
6316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6317 | $as_echo_n "checking for $ac_word... " >&6; } | |
6318 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
6319 | $as_echo_n "(cached) " >&6 | |
6320 | else | |
6321 | if test -n "$ac_ct_STRIP"; then | |
6322 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6323 | else | |
6324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6325 | for as_dir in $PATH | |
6326 | do | |
6327 | IFS=$as_save_IFS | |
6328 | test -z "$as_dir" && as_dir=. | |
6329 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6330 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6331 | ac_cv_prog_ac_ct_STRIP="strip" | |
6332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6333 | break 2 | |
6334 | fi | |
6335 | done | |
6336 | done | |
6337 | IFS=$as_save_IFS | |
6338 | ||
6339 | fi | |
6340 | fi | |
6341 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6342 | if test -n "$ac_ct_STRIP"; then | |
6343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6344 | $as_echo "$ac_ct_STRIP" >&6; } | |
6345 | else | |
6346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6347 | $as_echo "no" >&6; } | |
6348 | fi | |
6349 | ||
6350 | if test "x$ac_ct_STRIP" = x; then | |
6351 | STRIP=":" | |
6352 | else | |
6353 | case $cross_compiling:$ac_tool_warned in | |
6354 | yes:) | |
6355 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6356 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6357 | ac_tool_warned=yes ;; | |
6358 | esac | |
6359 | STRIP=$ac_ct_STRIP | |
6360 | fi | |
6361 | else | |
6362 | STRIP="$ac_cv_prog_STRIP" | |
6363 | fi | |
6364 | ||
6365 | test -z "$STRIP" && STRIP=: | |
6366 | ||
6367 | ||
6368 | ||
6369 | ||
6370 | ||
6371 | ||
6372 | if test -n "$ac_tool_prefix"; then | |
6373 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6374 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6376 | $as_echo_n "checking for $ac_word... " >&6; } | |
6377 | if ${ac_cv_prog_RANLIB+:} false; then : | |
6378 | $as_echo_n "(cached) " >&6 | |
6379 | else | |
6380 | if test -n "$RANLIB"; then | |
6381 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6382 | else | |
6383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6384 | for as_dir in $PATH | |
6385 | do | |
6386 | IFS=$as_save_IFS | |
6387 | test -z "$as_dir" && as_dir=. | |
6388 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6389 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6390 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6392 | break 2 | |
6393 | fi | |
6394 | done | |
6395 | done | |
6396 | IFS=$as_save_IFS | |
6397 | ||
6398 | fi | |
6399 | fi | |
6400 | RANLIB=$ac_cv_prog_RANLIB | |
6401 | if test -n "$RANLIB"; then | |
6402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6403 | $as_echo "$RANLIB" >&6; } | |
6404 | else | |
6405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6406 | $as_echo "no" >&6; } | |
6407 | fi | |
6408 | ||
6409 | ||
6410 | fi | |
6411 | if test -z "$ac_cv_prog_RANLIB"; then | |
6412 | ac_ct_RANLIB=$RANLIB | |
6413 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6414 | set dummy ranlib; ac_word=$2 | |
6415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6416 | $as_echo_n "checking for $ac_word... " >&6; } | |
6417 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
6418 | $as_echo_n "(cached) " >&6 | |
6419 | else | |
6420 | if test -n "$ac_ct_RANLIB"; then | |
6421 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6422 | else | |
6423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6424 | for as_dir in $PATH | |
6425 | do | |
6426 | IFS=$as_save_IFS | |
6427 | test -z "$as_dir" && as_dir=. | |
6428 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6429 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6430 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6431 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6432 | break 2 | |
6433 | fi | |
6434 | done | |
6435 | done | |
6436 | IFS=$as_save_IFS | |
6437 | ||
6438 | fi | |
6439 | fi | |
6440 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6441 | if test -n "$ac_ct_RANLIB"; then | |
6442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6443 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6444 | else | |
6445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6446 | $as_echo "no" >&6; } | |
6447 | fi | |
6448 | ||
6449 | if test "x$ac_ct_RANLIB" = x; then | |
6450 | RANLIB=":" | |
6451 | else | |
6452 | case $cross_compiling:$ac_tool_warned in | |
6453 | yes:) | |
6454 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6455 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6456 | ac_tool_warned=yes ;; | |
6457 | esac | |
6458 | RANLIB=$ac_ct_RANLIB | |
6459 | fi | |
6460 | else | |
6461 | RANLIB="$ac_cv_prog_RANLIB" | |
6462 | fi | |
6463 | ||
6464 | test -z "$RANLIB" && RANLIB=: | |
6465 | ||
6466 | ||
6467 | ||
6468 | ||
6469 | ||
6470 | ||
6471 | # Determine commands to create old-style static archives. | |
6472 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6473 | old_postinstall_cmds='chmod 644 $oldlib' | |
6474 | old_postuninstall_cmds= | |
6475 | ||
6476 | if test -n "$RANLIB"; then | |
6477 | case $host_os in | |
6478 | openbsd*) | |
6479 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
6480 | ;; | |
6481 | *) | |
6482 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
6483 | ;; | |
6484 | esac | |
6485 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
6486 | fi | |
6487 | ||
6488 | case $host_os in | |
6489 | darwin*) | |
6490 | lock_old_archive_extraction=yes ;; | |
6491 | *) | |
6492 | lock_old_archive_extraction=no ;; | |
6493 | esac | |
6494 | ||
6495 | ||
6496 | ||
6497 | ||
6498 | ||
6499 | ||
6500 | ||
6501 | ||
6502 | ||
6503 | ||
6504 | ||
6505 | ||
6506 | ||
6507 | ||
6508 | ||
6509 | ||
6510 | ||
6511 | ||
6512 | ||
6513 | ||
6514 | ||
6515 | ||
6516 | ||
6517 | ||
6518 | ||
6519 | ||
6520 | ||
6521 | ||
6522 | ||
6523 | ||
6524 | ||
6525 | ||
6526 | ||
6527 | ||
6528 | ||
6529 | ||
6530 | ||
6531 | ||
6532 | ||
6533 | # If no C compiler was specified, use CC. | |
6534 | LTCC=${LTCC-"$CC"} | |
6535 | ||
6536 | # If no C compiler flags were specified, use CFLAGS. | |
6537 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6538 | ||
6539 | # Allow CC to be a program name with arguments. | |
6540 | compiler=$CC | |
6541 | ||
6542 | ||
6543 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6545 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6546 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
6547 | $as_echo_n "(cached) " >&6 | |
6548 | else | |
6549 | ||
6550 | # These are sane defaults that work on at least a few old systems. | |
6551 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6552 | ||
6553 | # Character class describing NM global symbol codes. | |
6554 | symcode='[BCDEGRST]' | |
6555 | ||
6556 | # Regexp to match symbols that can be accessed directly from C. | |
6557 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6558 | ||
6559 | # Define system-specific variables. | |
6560 | case $host_os in | |
6561 | aix*) | |
6562 | symcode='[BCDT]' | |
6563 | ;; | |
6564 | cygwin* | mingw* | pw32* | cegcc*) | |
6565 | symcode='[ABCDGISTW]' | |
6566 | ;; | |
6567 | hpux*) | |
6568 | if test "$host_cpu" = ia64; then | |
6569 | symcode='[ABCDEGRST]' | |
6570 | fi | |
6571 | ;; | |
6572 | irix* | nonstopux*) | |
6573 | symcode='[BCDEGRST]' | |
6574 | ;; | |
6575 | osf*) | |
6576 | symcode='[BCDEGQRST]' | |
6577 | ;; | |
6578 | solaris*) | |
6579 | symcode='[BDRT]' | |
6580 | ;; | |
6581 | sco3.2v5*) | |
6582 | symcode='[DT]' | |
6583 | ;; | |
6584 | sysv4.2uw2*) | |
6585 | symcode='[DT]' | |
6586 | ;; | |
6587 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6588 | symcode='[ABDT]' | |
6589 | ;; | |
6590 | sysv4) | |
6591 | symcode='[DFNSTU]' | |
6592 | ;; | |
6593 | esac | |
6594 | ||
6595 | # If we're using GNU nm, then use its standard symbol codes. | |
6596 | case `$NM -V 2>&1` in | |
6597 | *GNU* | *'with BFD'*) | |
6598 | symcode='[ABCDGIRSTW]' ;; | |
6599 | esac | |
6600 | ||
6601 | # Transform an extracted symbol line into a proper C declaration. | |
6602 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6603 | # so use this general approach. | |
6604 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6605 | ||
6606 | # Transform an extracted symbol line into symbol name and symbol address | |
6607 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6608 | 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'" | |
6609 | ||
6610 | # Handle CRLF in mingw tool chain | |
6611 | opt_cr= | |
6612 | case $build_os in | |
6613 | mingw*) | |
6614 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6615 | ;; | |
6616 | esac | |
6617 | ||
6618 | # Try without a prefix underscore, then with it. | |
6619 | for ac_symprfx in "" "_"; do | |
6620 | ||
6621 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6622 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6623 | ||
6624 | # Write the raw and C identifiers. | |
6625 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6626 | # Fake it for dumpbin and say T for any non-static function | |
6627 | # and D for any global variable. | |
6628 | # Also find C++ and __fastcall symbols from MSVC++, | |
6629 | # which start with @ or ?. | |
6630 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6631 | " {last_section=section; section=\$ 3};"\ | |
6632 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
6633 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6634 | " \$ 0!~/External *\|/{next};"\ | |
6635 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6636 | " {if(hide[section]) next};"\ | |
6637 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6638 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6639 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6640 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6641 | " ' prfx=^$ac_symprfx" | |
6642 | else | |
6643 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6644 | fi | |
6645 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
6646 | ||
6647 | # Check to see that the pipe works correctly. | |
6648 | pipe_works=no | |
6649 | ||
6650 | rm -f conftest* | |
6651 | cat > conftest.$ac_ext <<_LT_EOF | |
6652 | #ifdef __cplusplus | |
6653 | extern "C" { | |
6654 | #endif | |
6655 | char nm_test_var; | |
6656 | void nm_test_func(void); | |
6657 | void nm_test_func(void){} | |
6658 | #ifdef __cplusplus | |
6659 | } | |
6660 | #endif | |
6661 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6662 | _LT_EOF | |
6663 | ||
6664 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6665 | (eval $ac_compile) 2>&5 | |
6666 | ac_status=$? | |
6667 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6668 | test $ac_status = 0; }; then | |
6669 | # Now try to grab the symbols. | |
6670 | nlist=conftest.nm | |
6671 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6672 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6673 | ac_status=$? | |
6674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6675 | test $ac_status = 0; } && test -s "$nlist"; then | |
6676 | # Try sorting and uniquifying the output. | |
6677 | if sort "$nlist" | uniq > "$nlist"T; then | |
6678 | mv -f "$nlist"T "$nlist" | |
6679 | else | |
6680 | rm -f "$nlist"T | |
6681 | fi | |
6682 | ||
6683 | # Make sure that we snagged all the symbols we need. | |
6684 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6685 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6686 | cat <<_LT_EOF > conftest.$ac_ext | |
6687 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
6688 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
6689 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
6690 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
6691 | # define LT_DLSYM_CONST | |
6692 | #elif defined(__osf__) | |
6693 | /* This system does not cope well with relocations in const data. */ | |
6694 | # define LT_DLSYM_CONST | |
6695 | #else | |
6696 | # define LT_DLSYM_CONST const | |
6697 | #endif | |
6698 | ||
6699 | #ifdef __cplusplus | |
6700 | extern "C" { | |
6701 | #endif | |
6702 | ||
6703 | _LT_EOF | |
6704 | # Now generate the symbol file. | |
6705 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6706 | ||
6707 | cat <<_LT_EOF >> conftest.$ac_ext | |
6708 | ||
6709 | /* The mapping between symbol names and symbols. */ | |
6710 | LT_DLSYM_CONST struct { | |
6711 | const char *name; | |
6712 | void *address; | |
6713 | } | |
6714 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6715 | { | |
6716 | { "@PROGRAM@", (void *) 0 }, | |
6717 | _LT_EOF | |
6718 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6719 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6720 | {0, (void *) 0} | |
6721 | }; | |
6722 | ||
6723 | /* This works around a problem in FreeBSD linker */ | |
6724 | #ifdef FREEBSD_WORKAROUND | |
6725 | static const void *lt_preloaded_setup() { | |
6726 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6727 | } | |
6728 | #endif | |
6729 | ||
6730 | #ifdef __cplusplus | |
6731 | } | |
6732 | #endif | |
6733 | _LT_EOF | |
6734 | # Now try linking the two files. | |
6735 | mv conftest.$ac_objext conftstm.$ac_objext | |
6736 | lt_globsym_save_LIBS=$LIBS | |
6737 | lt_globsym_save_CFLAGS=$CFLAGS | |
6738 | LIBS="conftstm.$ac_objext" | |
6739 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6740 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
6741 | (eval $ac_link) 2>&5 | |
6742 | ac_status=$? | |
6743 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6744 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
6745 | pipe_works=yes | |
6746 | fi | |
6747 | LIBS=$lt_globsym_save_LIBS | |
6748 | CFLAGS=$lt_globsym_save_CFLAGS | |
6749 | else | |
6750 | echo "cannot find nm_test_func in $nlist" >&5 | |
6751 | fi | |
6752 | else | |
6753 | echo "cannot find nm_test_var in $nlist" >&5 | |
6754 | fi | |
6755 | else | |
6756 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6757 | fi | |
6758 | else | |
6759 | echo "$progname: failed program was:" >&5 | |
6760 | cat conftest.$ac_ext >&5 | |
6761 | fi | |
6762 | rm -rf conftest* conftst* | |
6763 | ||
6764 | # Do not use the global_symbol_pipe unless it works. | |
6765 | if test "$pipe_works" = yes; then | |
6766 | break | |
6767 | else | |
6768 | lt_cv_sys_global_symbol_pipe= | |
6769 | fi | |
6770 | done | |
6771 | ||
6772 | fi | |
6773 | ||
6774 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6775 | lt_cv_sys_global_symbol_to_cdecl= | |
6776 | fi | |
6777 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
6779 | $as_echo "failed" >&6; } | |
6780 | else | |
6781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
6782 | $as_echo "ok" >&6; } | |
6783 | fi | |
6784 | ||
6785 | # Response file support. | |
6786 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6787 | nm_file_list_spec='@' | |
6788 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6789 | nm_file_list_spec='@' | |
6790 | fi | |
6791 | ||
6792 | ||
6793 | ||
6794 | ||
6795 | ||
6796 | ||
6797 | ||
6798 | ||
6799 | ||
6800 | ||
6801 | ||
6802 | ||
6803 | ||
6804 | ||
6805 | ||
6806 | ||
6807 | ||
6808 | ||
6809 | ||
6810 | ||
6811 | ||
6812 | ||
6813 | ||
6814 | ||
6815 | ||
6816 | ||
6817 | ||
6818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6819 | $as_echo_n "checking for sysroot... " >&6; } | |
6820 | ||
6821 | # Check whether --with-sysroot was given. | |
6822 | if test "${with_sysroot+set}" = set; then : | |
6823 | withval=$with_sysroot; | |
6824 | else | |
6825 | with_sysroot=no | |
6826 | fi | |
6827 | ||
6828 | ||
6829 | lt_sysroot= | |
6830 | case ${with_sysroot} in #( | |
6831 | yes) | |
6832 | if test "$GCC" = yes; then | |
6833 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
6834 | fi | |
6835 | ;; #( | |
6836 | /*) | |
6837 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6838 | ;; #( | |
6839 | no|'') | |
6840 | ;; #( | |
6841 | *) | |
6842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
6843 | $as_echo "${with_sysroot}" >&6; } | |
6844 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
6845 | ;; | |
6846 | esac | |
6847 | ||
6848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6849 | $as_echo "${lt_sysroot:-no}" >&6; } | |
6850 | ||
6851 | ||
6852 | ||
6853 | ||
6854 | ||
6855 | # Check whether --enable-libtool-lock was given. | |
6856 | if test "${enable_libtool_lock+set}" = set; then : | |
6857 | enableval=$enable_libtool_lock; | |
6858 | fi | |
6859 | ||
6860 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6861 | ||
6862 | # Some flags need to be propagated to the compiler or linker for good | |
6863 | # libtool support. | |
6864 | case $host in | |
6865 | ia64-*-hpux*) | |
6866 | # Find out which ABI we are using. | |
6867 | echo 'int i;' > conftest.$ac_ext | |
6868 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6869 | (eval $ac_compile) 2>&5 | |
6870 | ac_status=$? | |
6871 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6872 | test $ac_status = 0; }; then | |
6873 | case `/usr/bin/file conftest.$ac_objext` in | |
6874 | *ELF-32*) | |
6875 | HPUX_IA64_MODE="32" | |
6876 | ;; | |
6877 | *ELF-64*) | |
6878 | HPUX_IA64_MODE="64" | |
6879 | ;; | |
6880 | esac | |
6881 | fi | |
6882 | rm -rf conftest* | |
6883 | ;; | |
6884 | *-*-irix6*) | |
6885 | # Find out which ABI we are using. | |
6886 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6887 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6888 | (eval $ac_compile) 2>&5 | |
6889 | ac_status=$? | |
6890 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6891 | test $ac_status = 0; }; then | |
6892 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6893 | case `/usr/bin/file conftest.$ac_objext` in | |
6894 | *32-bit*) | |
6895 | LD="${LD-ld} -melf32bsmip" | |
6896 | ;; | |
6897 | *N32*) | |
6898 | LD="${LD-ld} -melf32bmipn32" | |
6899 | ;; | |
6900 | *64-bit*) | |
6901 | LD="${LD-ld} -melf64bmip" | |
6902 | ;; | |
6903 | esac | |
6904 | else | |
6905 | case `/usr/bin/file conftest.$ac_objext` in | |
6906 | *32-bit*) | |
6907 | LD="${LD-ld} -32" | |
6908 | ;; | |
6909 | *N32*) | |
6910 | LD="${LD-ld} -n32" | |
6911 | ;; | |
6912 | *64-bit*) | |
6913 | LD="${LD-ld} -64" | |
6914 | ;; | |
6915 | esac | |
6916 | fi | |
6917 | fi | |
6918 | rm -rf conftest* | |
6919 | ;; | |
6920 | ||
6921 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
6922 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6923 | # Find out which ABI we are using. | |
6924 | echo 'int i;' > conftest.$ac_ext | |
6925 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6926 | (eval $ac_compile) 2>&5 | |
6927 | ac_status=$? | |
6928 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6929 | test $ac_status = 0; }; then | |
6930 | case `/usr/bin/file conftest.o` in | |
6931 | *32-bit*) | |
6932 | case $host in | |
6933 | x86_64-*kfreebsd*-gnu) | |
6934 | LD="${LD-ld} -m elf_i386_fbsd" | |
6935 | ;; | |
6936 | x86_64-*linux*) | |
6937 | case `/usr/bin/file conftest.o` in | |
6938 | *x86-64*) | |
6939 | LD="${LD-ld} -m elf32_x86_64" | |
6940 | ;; | |
6941 | *) | |
6942 | LD="${LD-ld} -m elf_i386" | |
6943 | ;; | |
6944 | esac | |
6945 | ;; | |
6946 | powerpc64le-*) | |
6947 | LD="${LD-ld} -m elf32lppclinux" | |
6948 | ;; | |
6949 | powerpc64-*) | |
6950 | LD="${LD-ld} -m elf32ppclinux" | |
6951 | ;; | |
6952 | s390x-*linux*) | |
6953 | LD="${LD-ld} -m elf_s390" | |
6954 | ;; | |
6955 | sparc64-*linux*) | |
6956 | LD="${LD-ld} -m elf32_sparc" | |
6957 | ;; | |
6958 | esac | |
6959 | ;; | |
6960 | *64-bit*) | |
6961 | case $host in | |
6962 | x86_64-*kfreebsd*-gnu) | |
6963 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6964 | ;; | |
6965 | x86_64-*linux*) | |
6966 | LD="${LD-ld} -m elf_x86_64" | |
6967 | ;; | |
6968 | powerpcle-*) | |
6969 | LD="${LD-ld} -m elf64lppc" | |
6970 | ;; | |
6971 | powerpc-*) | |
6972 | LD="${LD-ld} -m elf64ppc" | |
6973 | ;; | |
6974 | s390*-*linux*|s390*-*tpf*) | |
6975 | LD="${LD-ld} -m elf64_s390" | |
6976 | ;; | |
6977 | sparc*-*linux*) | |
6978 | LD="${LD-ld} -m elf64_sparc" | |
6979 | ;; | |
6980 | esac | |
6981 | ;; | |
6982 | esac | |
6983 | fi | |
6984 | rm -rf conftest* | |
6985 | ;; | |
6986 | ||
6987 | *-*-sco3.2v5*) | |
6988 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6989 | SAVE_CFLAGS="$CFLAGS" | |
6990 | CFLAGS="$CFLAGS -belf" | |
6991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
6992 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6993 | if ${lt_cv_cc_needs_belf+:} false; then : | |
6994 | $as_echo_n "(cached) " >&6 | |
6995 | else | |
6996 | ac_ext=c | |
6997 | ac_cpp='$CPP $CPPFLAGS' | |
6998 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6999 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7000 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7001 | ||
7002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7003 | /* end confdefs.h. */ | |
7004 | ||
7005 | int | |
7006 | main () | |
7007 | { | |
7008 | ||
7009 | ; | |
7010 | return 0; | |
7011 | } | |
7012 | _ACEOF | |
7013 | if ac_fn_c_try_link "$LINENO"; then : | |
7014 | lt_cv_cc_needs_belf=yes | |
7015 | else | |
7016 | lt_cv_cc_needs_belf=no | |
7017 | fi | |
7018 | rm -f core conftest.err conftest.$ac_objext \ | |
7019 | conftest$ac_exeext conftest.$ac_ext | |
7020 | ac_ext=c | |
7021 | ac_cpp='$CPP $CPPFLAGS' | |
7022 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7023 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7024 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7025 | ||
7026 | fi | |
7027 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7028 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7029 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7030 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7031 | CFLAGS="$SAVE_CFLAGS" | |
7032 | fi | |
7033 | ;; | |
7034 | *-*solaris*) | |
7035 | # Find out which ABI we are using. | |
7036 | echo 'int i;' > conftest.$ac_ext | |
7037 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7038 | (eval $ac_compile) 2>&5 | |
7039 | ac_status=$? | |
7040 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7041 | test $ac_status = 0; }; then | |
7042 | case `/usr/bin/file conftest.o` in | |
7043 | *64-bit*) | |
7044 | case $lt_cv_prog_gnu_ld in | |
7045 | yes*) | |
7046 | case $host in | |
7047 | i?86-*-solaris*) | |
7048 | LD="${LD-ld} -m elf_x86_64" | |
7049 | ;; | |
7050 | sparc*-*-solaris*) | |
7051 | LD="${LD-ld} -m elf64_sparc" | |
7052 | ;; | |
7053 | esac | |
7054 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7055 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
7056 | LD="${LD-ld}_sol2" | |
7057 | fi | |
7058 | ;; | |
7059 | *) | |
7060 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7061 | LD="${LD-ld} -64" | |
7062 | fi | |
7063 | ;; | |
7064 | esac | |
7065 | ;; | |
7066 | esac | |
7067 | fi | |
7068 | rm -rf conftest* | |
7069 | ;; | |
7070 | esac | |
7071 | ||
7072 | need_locks="$enable_libtool_lock" | |
7073 | ||
7074 | if test -n "$ac_tool_prefix"; then | |
7075 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7076 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7078 | $as_echo_n "checking for $ac_word... " >&6; } | |
7079 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7080 | $as_echo_n "(cached) " >&6 | |
7081 | else | |
7082 | if test -n "$MANIFEST_TOOL"; then | |
7083 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7084 | else | |
7085 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7086 | for as_dir in $PATH | |
7087 | do | |
7088 | IFS=$as_save_IFS | |
7089 | test -z "$as_dir" && as_dir=. | |
7090 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7091 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7092 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7093 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7094 | break 2 | |
7095 | fi | |
7096 | done | |
7097 | done | |
7098 | IFS=$as_save_IFS | |
7099 | ||
7100 | fi | |
7101 | fi | |
7102 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7103 | if test -n "$MANIFEST_TOOL"; then | |
7104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7105 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7106 | else | |
7107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7108 | $as_echo "no" >&6; } | |
7109 | fi | |
7110 | ||
7111 | ||
7112 | fi | |
7113 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7114 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7115 | # Extract the first word of "mt", so it can be a program name with args. | |
7116 | set dummy mt; ac_word=$2 | |
7117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7118 | $as_echo_n "checking for $ac_word... " >&6; } | |
7119 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7120 | $as_echo_n "(cached) " >&6 | |
7121 | else | |
7122 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7123 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7124 | else | |
7125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7126 | for as_dir in $PATH | |
7127 | do | |
7128 | IFS=$as_save_IFS | |
7129 | test -z "$as_dir" && as_dir=. | |
7130 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7131 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7132 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7134 | break 2 | |
7135 | fi | |
7136 | done | |
7137 | done | |
7138 | IFS=$as_save_IFS | |
7139 | ||
7140 | fi | |
7141 | fi | |
7142 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7143 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7145 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7146 | else | |
7147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7148 | $as_echo "no" >&6; } | |
7149 | fi | |
7150 | ||
7151 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
7152 | MANIFEST_TOOL=":" | |
7153 | else | |
7154 | case $cross_compiling:$ac_tool_warned in | |
7155 | yes:) | |
7156 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7157 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7158 | ac_tool_warned=yes ;; | |
7159 | esac | |
7160 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7161 | fi | |
7162 | else | |
7163 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7164 | fi | |
7165 | ||
7166 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
7167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7168 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7169 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7170 | $as_echo_n "(cached) " >&6 | |
7171 | else | |
7172 | lt_cv_path_mainfest_tool=no | |
7173 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7174 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7175 | cat conftest.err >&5 | |
7176 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7177 | lt_cv_path_mainfest_tool=yes | |
7178 | fi | |
7179 | rm -f conftest* | |
7180 | fi | |
7181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7182 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7183 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
7184 | MANIFEST_TOOL=: | |
7185 | fi | |
7186 | ||
7187 | ||
7188 | ||
7189 | ||
7190 | ||
7191 | ||
7192 | case $host_os in | |
7193 | rhapsody* | darwin*) | |
7194 | if test -n "$ac_tool_prefix"; then | |
7195 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7196 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7198 | $as_echo_n "checking for $ac_word... " >&6; } | |
7199 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7200 | $as_echo_n "(cached) " >&6 | |
7201 | else | |
7202 | if test -n "$DSYMUTIL"; then | |
7203 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7204 | else | |
7205 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7206 | for as_dir in $PATH | |
7207 | do | |
7208 | IFS=$as_save_IFS | |
7209 | test -z "$as_dir" && as_dir=. | |
7210 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7211 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7212 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7213 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7214 | break 2 | |
7215 | fi | |
7216 | done | |
7217 | done | |
7218 | IFS=$as_save_IFS | |
7219 | ||
7220 | fi | |
7221 | fi | |
7222 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7223 | if test -n "$DSYMUTIL"; then | |
7224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7225 | $as_echo "$DSYMUTIL" >&6; } | |
7226 | else | |
7227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7228 | $as_echo "no" >&6; } | |
7229 | fi | |
7230 | ||
7231 | ||
7232 | fi | |
7233 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7234 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7235 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7236 | set dummy dsymutil; ac_word=$2 | |
7237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7238 | $as_echo_n "checking for $ac_word... " >&6; } | |
7239 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
7240 | $as_echo_n "(cached) " >&6 | |
7241 | else | |
7242 | if test -n "$ac_ct_DSYMUTIL"; then | |
7243 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7244 | else | |
7245 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7246 | for as_dir in $PATH | |
7247 | do | |
7248 | IFS=$as_save_IFS | |
7249 | test -z "$as_dir" && as_dir=. | |
7250 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7251 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7252 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7253 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7254 | break 2 | |
7255 | fi | |
7256 | done | |
7257 | done | |
7258 | IFS=$as_save_IFS | |
7259 | ||
7260 | fi | |
7261 | fi | |
7262 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7263 | if test -n "$ac_ct_DSYMUTIL"; then | |
7264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7265 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7266 | else | |
7267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7268 | $as_echo "no" >&6; } | |
7269 | fi | |
7270 | ||
7271 | if test "x$ac_ct_DSYMUTIL" = x; then | |
7272 | DSYMUTIL=":" | |
7273 | else | |
7274 | case $cross_compiling:$ac_tool_warned in | |
7275 | yes:) | |
7276 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7277 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7278 | ac_tool_warned=yes ;; | |
7279 | esac | |
7280 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7281 | fi | |
7282 | else | |
7283 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7284 | fi | |
7285 | ||
7286 | if test -n "$ac_tool_prefix"; then | |
7287 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7288 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7290 | $as_echo_n "checking for $ac_word... " >&6; } | |
7291 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
7292 | $as_echo_n "(cached) " >&6 | |
7293 | else | |
7294 | if test -n "$NMEDIT"; then | |
7295 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7296 | else | |
7297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7298 | for as_dir in $PATH | |
7299 | do | |
7300 | IFS=$as_save_IFS | |
7301 | test -z "$as_dir" && as_dir=. | |
7302 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7303 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7304 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7305 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7306 | break 2 | |
7307 | fi | |
7308 | done | |
7309 | done | |
7310 | IFS=$as_save_IFS | |
7311 | ||
7312 | fi | |
7313 | fi | |
7314 | NMEDIT=$ac_cv_prog_NMEDIT | |
7315 | if test -n "$NMEDIT"; then | |
7316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7317 | $as_echo "$NMEDIT" >&6; } | |
7318 | else | |
7319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7320 | $as_echo "no" >&6; } | |
7321 | fi | |
7322 | ||
7323 | ||
7324 | fi | |
7325 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7326 | ac_ct_NMEDIT=$NMEDIT | |
7327 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7328 | set dummy nmedit; ac_word=$2 | |
7329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7330 | $as_echo_n "checking for $ac_word... " >&6; } | |
7331 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
7332 | $as_echo_n "(cached) " >&6 | |
7333 | else | |
7334 | if test -n "$ac_ct_NMEDIT"; then | |
7335 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7336 | else | |
7337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7338 | for as_dir in $PATH | |
7339 | do | |
7340 | IFS=$as_save_IFS | |
7341 | test -z "$as_dir" && as_dir=. | |
7342 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7343 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7344 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7345 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7346 | break 2 | |
7347 | fi | |
7348 | done | |
7349 | done | |
7350 | IFS=$as_save_IFS | |
7351 | ||
7352 | fi | |
7353 | fi | |
7354 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7355 | if test -n "$ac_ct_NMEDIT"; then | |
7356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7357 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
7358 | else | |
7359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7360 | $as_echo "no" >&6; } | |
7361 | fi | |
7362 | ||
7363 | if test "x$ac_ct_NMEDIT" = x; then | |
7364 | NMEDIT=":" | |
7365 | else | |
7366 | case $cross_compiling:$ac_tool_warned in | |
7367 | yes:) | |
7368 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7369 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7370 | ac_tool_warned=yes ;; | |
7371 | esac | |
7372 | NMEDIT=$ac_ct_NMEDIT | |
7373 | fi | |
7374 | else | |
7375 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7376 | fi | |
7377 | ||
7378 | if test -n "$ac_tool_prefix"; then | |
7379 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7380 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7382 | $as_echo_n "checking for $ac_word... " >&6; } | |
7383 | if ${ac_cv_prog_LIPO+:} false; then : | |
7384 | $as_echo_n "(cached) " >&6 | |
7385 | else | |
7386 | if test -n "$LIPO"; then | |
7387 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7388 | else | |
7389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7390 | for as_dir in $PATH | |
7391 | do | |
7392 | IFS=$as_save_IFS | |
7393 | test -z "$as_dir" && as_dir=. | |
7394 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7395 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7396 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7397 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7398 | break 2 | |
7399 | fi | |
7400 | done | |
7401 | done | |
7402 | IFS=$as_save_IFS | |
7403 | ||
7404 | fi | |
7405 | fi | |
7406 | LIPO=$ac_cv_prog_LIPO | |
7407 | if test -n "$LIPO"; then | |
7408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7409 | $as_echo "$LIPO" >&6; } | |
7410 | else | |
7411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7412 | $as_echo "no" >&6; } | |
7413 | fi | |
7414 | ||
7415 | ||
7416 | fi | |
7417 | if test -z "$ac_cv_prog_LIPO"; then | |
7418 | ac_ct_LIPO=$LIPO | |
7419 | # Extract the first word of "lipo", so it can be a program name with args. | |
7420 | set dummy lipo; ac_word=$2 | |
7421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7422 | $as_echo_n "checking for $ac_word... " >&6; } | |
7423 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
7424 | $as_echo_n "(cached) " >&6 | |
7425 | else | |
7426 | if test -n "$ac_ct_LIPO"; then | |
7427 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7428 | else | |
7429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7430 | for as_dir in $PATH | |
7431 | do | |
7432 | IFS=$as_save_IFS | |
7433 | test -z "$as_dir" && as_dir=. | |
7434 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7435 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7436 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7437 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7438 | break 2 | |
7439 | fi | |
7440 | done | |
7441 | done | |
7442 | IFS=$as_save_IFS | |
7443 | ||
7444 | fi | |
7445 | fi | |
7446 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7447 | if test -n "$ac_ct_LIPO"; then | |
7448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7449 | $as_echo "$ac_ct_LIPO" >&6; } | |
7450 | else | |
7451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7452 | $as_echo "no" >&6; } | |
7453 | fi | |
7454 | ||
7455 | if test "x$ac_ct_LIPO" = x; then | |
7456 | LIPO=":" | |
7457 | else | |
7458 | case $cross_compiling:$ac_tool_warned in | |
7459 | yes:) | |
7460 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7461 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7462 | ac_tool_warned=yes ;; | |
7463 | esac | |
7464 | LIPO=$ac_ct_LIPO | |
7465 | fi | |
7466 | else | |
7467 | LIPO="$ac_cv_prog_LIPO" | |
7468 | fi | |
7469 | ||
7470 | if test -n "$ac_tool_prefix"; then | |
7471 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7472 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7474 | $as_echo_n "checking for $ac_word... " >&6; } | |
7475 | if ${ac_cv_prog_OTOOL+:} false; then : | |
7476 | $as_echo_n "(cached) " >&6 | |
7477 | else | |
7478 | if test -n "$OTOOL"; then | |
7479 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7480 | else | |
7481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7482 | for as_dir in $PATH | |
7483 | do | |
7484 | IFS=$as_save_IFS | |
7485 | test -z "$as_dir" && as_dir=. | |
7486 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7487 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7488 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7489 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7490 | break 2 | |
7491 | fi | |
7492 | done | |
7493 | done | |
7494 | IFS=$as_save_IFS | |
7495 | ||
7496 | fi | |
7497 | fi | |
7498 | OTOOL=$ac_cv_prog_OTOOL | |
7499 | if test -n "$OTOOL"; then | |
7500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7501 | $as_echo "$OTOOL" >&6; } | |
7502 | else | |
7503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7504 | $as_echo "no" >&6; } | |
7505 | fi | |
7506 | ||
7507 | ||
7508 | fi | |
7509 | if test -z "$ac_cv_prog_OTOOL"; then | |
7510 | ac_ct_OTOOL=$OTOOL | |
7511 | # Extract the first word of "otool", so it can be a program name with args. | |
7512 | set dummy otool; ac_word=$2 | |
7513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7514 | $as_echo_n "checking for $ac_word... " >&6; } | |
7515 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
7516 | $as_echo_n "(cached) " >&6 | |
7517 | else | |
7518 | if test -n "$ac_ct_OTOOL"; then | |
7519 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7520 | else | |
7521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7522 | for as_dir in $PATH | |
7523 | do | |
7524 | IFS=$as_save_IFS | |
7525 | test -z "$as_dir" && as_dir=. | |
7526 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7527 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7528 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7529 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7530 | break 2 | |
7531 | fi | |
7532 | done | |
7533 | done | |
7534 | IFS=$as_save_IFS | |
7535 | ||
7536 | fi | |
7537 | fi | |
7538 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7539 | if test -n "$ac_ct_OTOOL"; then | |
7540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7541 | $as_echo "$ac_ct_OTOOL" >&6; } | |
7542 | else | |
7543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7544 | $as_echo "no" >&6; } | |
7545 | fi | |
7546 | ||
7547 | if test "x$ac_ct_OTOOL" = x; then | |
7548 | OTOOL=":" | |
7549 | else | |
7550 | case $cross_compiling:$ac_tool_warned in | |
7551 | yes:) | |
7552 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7553 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7554 | ac_tool_warned=yes ;; | |
7555 | esac | |
7556 | OTOOL=$ac_ct_OTOOL | |
7557 | fi | |
7558 | else | |
7559 | OTOOL="$ac_cv_prog_OTOOL" | |
7560 | fi | |
7561 | ||
7562 | if test -n "$ac_tool_prefix"; then | |
7563 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7564 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7566 | $as_echo_n "checking for $ac_word... " >&6; } | |
7567 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
7568 | $as_echo_n "(cached) " >&6 | |
7569 | else | |
7570 | if test -n "$OTOOL64"; then | |
7571 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7572 | else | |
7573 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7574 | for as_dir in $PATH | |
7575 | do | |
7576 | IFS=$as_save_IFS | |
7577 | test -z "$as_dir" && as_dir=. | |
7578 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7579 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7580 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7581 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7582 | break 2 | |
7583 | fi | |
7584 | done | |
7585 | done | |
7586 | IFS=$as_save_IFS | |
7587 | ||
7588 | fi | |
7589 | fi | |
7590 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7591 | if test -n "$OTOOL64"; then | |
7592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7593 | $as_echo "$OTOOL64" >&6; } | |
7594 | else | |
7595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7596 | $as_echo "no" >&6; } | |
7597 | fi | |
7598 | ||
7599 | ||
7600 | fi | |
7601 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7602 | ac_ct_OTOOL64=$OTOOL64 | |
7603 | # Extract the first word of "otool64", so it can be a program name with args. | |
7604 | set dummy otool64; ac_word=$2 | |
7605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7606 | $as_echo_n "checking for $ac_word... " >&6; } | |
7607 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
7608 | $as_echo_n "(cached) " >&6 | |
7609 | else | |
7610 | if test -n "$ac_ct_OTOOL64"; then | |
7611 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7612 | else | |
7613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7614 | for as_dir in $PATH | |
7615 | do | |
7616 | IFS=$as_save_IFS | |
7617 | test -z "$as_dir" && as_dir=. | |
7618 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7619 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7620 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7621 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7622 | break 2 | |
7623 | fi | |
7624 | done | |
7625 | done | |
7626 | IFS=$as_save_IFS | |
7627 | ||
7628 | fi | |
7629 | fi | |
7630 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7631 | if test -n "$ac_ct_OTOOL64"; then | |
7632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7633 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
7634 | else | |
7635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7636 | $as_echo "no" >&6; } | |
7637 | fi | |
7638 | ||
7639 | if test "x$ac_ct_OTOOL64" = x; then | |
7640 | OTOOL64=":" | |
7641 | else | |
7642 | case $cross_compiling:$ac_tool_warned in | |
7643 | yes:) | |
7644 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7645 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7646 | ac_tool_warned=yes ;; | |
7647 | esac | |
7648 | OTOOL64=$ac_ct_OTOOL64 | |
7649 | fi | |
7650 | else | |
7651 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7652 | fi | |
7653 | ||
7654 | ||
7655 | ||
7656 | ||
7657 | ||
7658 | ||
7659 | ||
7660 | ||
7661 | ||
7662 | ||
7663 | ||
7664 | ||
7665 | ||
7666 | ||
7667 | ||
7668 | ||
7669 | ||
7670 | ||
7671 | ||
7672 | ||
7673 | ||
7674 | ||
7675 | ||
7676 | ||
7677 | ||
7678 | ||
7679 | ||
7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7681 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7682 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
7683 | $as_echo_n "(cached) " >&6 | |
7684 | else | |
7685 | lt_cv_apple_cc_single_mod=no | |
7686 | if test -z "${LT_MULTI_MODULE}"; then | |
7687 | # By default we will add the -single_module flag. You can override | |
7688 | # by either setting the environment variable LT_MULTI_MODULE | |
7689 | # non-empty at configure time, or by adding -multi_module to the | |
7690 | # link flags. | |
7691 | rm -rf libconftest.dylib* | |
7692 | echo "int foo(void){return 1;}" > conftest.c | |
7693 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7694 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7695 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7696 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7697 | _lt_result=$? | |
7698 | # If there is a non-empty error log, and "single_module" | |
7699 | # appears in it, assume the flag caused a linker warning | |
7700 | if test -s conftest.err && $GREP single_module conftest.err; then | |
7701 | cat conftest.err >&5 | |
7702 | # Otherwise, if the output was created with a 0 exit code from | |
7703 | # the compiler, it worked. | |
7704 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
7705 | lt_cv_apple_cc_single_mod=yes | |
7706 | else | |
7707 | cat conftest.err >&5 | |
7708 | fi | |
7709 | rm -rf libconftest.dylib* | |
7710 | rm -f conftest.* | |
7711 | fi | |
7712 | fi | |
7713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7714 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7715 | ||
7716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7717 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7718 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
7719 | $as_echo_n "(cached) " >&6 | |
7720 | else | |
7721 | lt_cv_ld_exported_symbols_list=no | |
7722 | save_LDFLAGS=$LDFLAGS | |
7723 | echo "_main" > conftest.sym | |
7724 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7726 | /* end confdefs.h. */ | |
7727 | ||
7728 | int | |
7729 | main () | |
7730 | { | |
7731 | ||
7732 | ; | |
7733 | return 0; | |
7734 | } | |
7735 | _ACEOF | |
7736 | if ac_fn_c_try_link "$LINENO"; then : | |
7737 | lt_cv_ld_exported_symbols_list=yes | |
7738 | else | |
7739 | lt_cv_ld_exported_symbols_list=no | |
7740 | fi | |
7741 | rm -f core conftest.err conftest.$ac_objext \ | |
7742 | conftest$ac_exeext conftest.$ac_ext | |
7743 | LDFLAGS="$save_LDFLAGS" | |
7744 | ||
7745 | fi | |
7746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7747 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7748 | ||
7749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7750 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7751 | if ${lt_cv_ld_force_load+:} false; then : | |
7752 | $as_echo_n "(cached) " >&6 | |
7753 | else | |
7754 | lt_cv_ld_force_load=no | |
7755 | cat > conftest.c << _LT_EOF | |
7756 | int forced_loaded() { return 2;} | |
7757 | _LT_EOF | |
7758 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7759 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7760 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7761 | $AR cru libconftest.a conftest.o 2>&5 | |
7762 | echo "$RANLIB libconftest.a" >&5 | |
7763 | $RANLIB libconftest.a 2>&5 | |
7764 | cat > conftest.c << _LT_EOF | |
7765 | int main() { return 0;} | |
7766 | _LT_EOF | |
7767 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7768 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7769 | _lt_result=$? | |
7770 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7771 | cat conftest.err >&5 | |
7772 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
7773 | lt_cv_ld_force_load=yes | |
7774 | else | |
7775 | cat conftest.err >&5 | |
7776 | fi | |
7777 | rm -f conftest.err libconftest.a conftest conftest.c | |
7778 | rm -rf conftest.dSYM | |
7779 | ||
7780 | fi | |
7781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7782 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
7783 | case $host_os in | |
7784 | rhapsody* | darwin1.[012]) | |
7785 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7786 | darwin1.*) | |
7787 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7788 | darwin*) # darwin 5.x on | |
7789 | # if running on 10.5 or later, the deployment target defaults | |
7790 | # to the OS version, if on x86, and 10.4, the deployment | |
7791 | # target defaults to 10.4. Don't you love it? | |
7792 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7793 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7794 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7795 | 10.[012]*) | |
7796 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7797 | 10.*) | |
7798 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7799 | esac | |
7800 | ;; | |
7801 | esac | |
7802 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7803 | _lt_dar_single_mod='$single_module' | |
7804 | fi | |
7805 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7806 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7807 | else | |
7808 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7809 | fi | |
7810 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
7811 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7812 | else | |
7813 | _lt_dsymutil= | |
7814 | fi | |
7815 | ;; | |
7816 | esac | |
7817 | ||
7818 | ac_ext=c | |
7819 | ac_cpp='$CPP $CPPFLAGS' | |
7820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
7824 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7825 | # On Suns, sometimes $CPP names a directory. | |
7826 | if test -n "$CPP" && test -d "$CPP"; then | |
7827 | CPP= | |
7828 | fi | |
7829 | if test -z "$CPP"; then | |
7830 | if ${ac_cv_prog_CPP+:} false; then : | |
7831 | $as_echo_n "(cached) " >&6 | |
7832 | else | |
7833 | # Double quotes because CPP needs to be expanded | |
7834 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7835 | do | |
7836 | ac_preproc_ok=false | |
7837 | for ac_c_preproc_warn_flag in '' yes | |
7838 | do | |
7839 | # Use a header file that comes with gcc, so configuring glibc | |
7840 | # with a fresh cross-compiler works. | |
7841 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7842 | # <limits.h> exists even on freestanding compilers. | |
7843 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7844 | # not just through cpp. "Syntax error" is here to catch this case. | |
7845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7846 | /* end confdefs.h. */ | |
7847 | #ifdef __STDC__ | |
7848 | # include <limits.h> | |
7849 | #else | |
7850 | # include <assert.h> | |
7851 | #endif | |
7852 | Syntax error | |
7853 | _ACEOF | |
7854 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7855 | ||
7856 | else | |
7857 | # Broken: fails on valid input. | |
7858 | continue | |
7859 | fi | |
7860 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7861 | ||
7862 | # OK, works on sane cases. Now check whether nonexistent headers | |
7863 | # can be detected and how. | |
7864 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7865 | /* end confdefs.h. */ | |
7866 | #include <ac_nonexistent.h> | |
7867 | _ACEOF | |
7868 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7869 | # Broken: success on invalid input. | |
7870 | continue | |
7871 | else | |
7872 | # Passes both tests. | |
7873 | ac_preproc_ok=: | |
7874 | break | |
7875 | fi | |
7876 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7877 | ||
7878 | done | |
7879 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7880 | rm -f conftest.i conftest.err conftest.$ac_ext | |
7881 | if $ac_preproc_ok; then : | |
7882 | break | |
7883 | fi | |
7884 | ||
7885 | done | |
7886 | ac_cv_prog_CPP=$CPP | |
7887 | ||
7888 | fi | |
7889 | CPP=$ac_cv_prog_CPP | |
7890 | else | |
7891 | ac_cv_prog_CPP=$CPP | |
7892 | fi | |
7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
7894 | $as_echo "$CPP" >&6; } | |
7895 | ac_preproc_ok=false | |
7896 | for ac_c_preproc_warn_flag in '' yes | |
7897 | do | |
7898 | # Use a header file that comes with gcc, so configuring glibc | |
7899 | # with a fresh cross-compiler works. | |
7900 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7901 | # <limits.h> exists even on freestanding compilers. | |
7902 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7903 | # not just through cpp. "Syntax error" is here to catch this case. | |
7904 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7905 | /* end confdefs.h. */ | |
7906 | #ifdef __STDC__ | |
7907 | # include <limits.h> | |
7908 | #else | |
7909 | # include <assert.h> | |
7910 | #endif | |
7911 | Syntax error | |
7912 | _ACEOF | |
7913 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7914 | ||
7915 | else | |
7916 | # Broken: fails on valid input. | |
7917 | continue | |
7918 | fi | |
7919 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7920 | ||
7921 | # OK, works on sane cases. Now check whether nonexistent headers | |
7922 | # can be detected and how. | |
7923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7924 | /* end confdefs.h. */ | |
7925 | #include <ac_nonexistent.h> | |
7926 | _ACEOF | |
7927 | if ac_fn_c_try_cpp "$LINENO"; then : | |
7928 | # Broken: success on invalid input. | |
7929 | continue | |
7930 | else | |
7931 | # Passes both tests. | |
7932 | ac_preproc_ok=: | |
7933 | break | |
7934 | fi | |
7935 | rm -f conftest.err conftest.i conftest.$ac_ext | |
7936 | ||
7937 | done | |
7938 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7939 | rm -f conftest.i conftest.err conftest.$ac_ext | |
7940 | if $ac_preproc_ok; then : | |
7941 | ||
7942 | else | |
7943 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
7944 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
7945 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
7946 | See \`config.log' for more details" "$LINENO" 5; } | |
7947 | fi | |
7948 | ||
7949 | ac_ext=c | |
7950 | ac_cpp='$CPP $CPPFLAGS' | |
7951 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7952 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7953 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7954 | ||
7955 | ||
7956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
7957 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
7958 | if ${ac_cv_header_stdc+:} false; then : | |
7959 | $as_echo_n "(cached) " >&6 | |
7960 | else | |
7961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7962 | /* end confdefs.h. */ | |
7963 | #include <stdlib.h> | |
7964 | #include <stdarg.h> | |
7965 | #include <string.h> | |
7966 | #include <float.h> | |
7967 | ||
7968 | int | |
7969 | main () | |
7970 | { | |
7971 | ||
7972 | ; | |
7973 | return 0; | |
7974 | } | |
7975 | _ACEOF | |
7976 | if ac_fn_c_try_compile "$LINENO"; then : | |
7977 | ac_cv_header_stdc=yes | |
7978 | else | |
7979 | ac_cv_header_stdc=no | |
7980 | fi | |
7981 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7982 | ||
7983 | if test $ac_cv_header_stdc = yes; then | |
7984 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7986 | /* end confdefs.h. */ | |
7987 | #include <string.h> | |
7988 | ||
7989 | _ACEOF | |
7990 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7991 | $EGREP "memchr" >/dev/null 2>&1; then : | |
7992 | ||
7993 | else | |
7994 | ac_cv_header_stdc=no | |
7995 | fi | |
7996 | rm -f conftest* | |
7997 | ||
7998 | fi | |
7999 | ||
8000 | if test $ac_cv_header_stdc = yes; then | |
8001 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8003 | /* end confdefs.h. */ | |
8004 | #include <stdlib.h> | |
8005 | ||
8006 | _ACEOF | |
8007 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8008 | $EGREP "free" >/dev/null 2>&1; then : | |
8009 | ||
8010 | else | |
8011 | ac_cv_header_stdc=no | |
8012 | fi | |
8013 | rm -f conftest* | |
8014 | ||
8015 | fi | |
8016 | ||
8017 | if test $ac_cv_header_stdc = yes; then | |
8018 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8019 | if test "$cross_compiling" = yes; then : | |
8020 | : | |
8021 | else | |
8022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8023 | /* end confdefs.h. */ | |
8024 | #include <ctype.h> | |
8025 | #include <stdlib.h> | |
8026 | #if ((' ' & 0x0FF) == 0x020) | |
8027 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8028 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8029 | #else | |
8030 | # define ISLOWER(c) \ | |
8031 | (('a' <= (c) && (c) <= 'i') \ | |
8032 | || ('j' <= (c) && (c) <= 'r') \ | |
8033 | || ('s' <= (c) && (c) <= 'z')) | |
8034 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
8035 | #endif | |
8036 | ||
8037 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8038 | int | |
8039 | main () | |
8040 | { | |
8041 | int i; | |
8042 | for (i = 0; i < 256; i++) | |
8043 | if (XOR (islower (i), ISLOWER (i)) | |
8044 | || toupper (i) != TOUPPER (i)) | |
8045 | return 2; | |
8046 | return 0; | |
8047 | } | |
8048 | _ACEOF | |
8049 | if ac_fn_c_try_run "$LINENO"; then : | |
8050 | ||
8051 | else | |
8052 | ac_cv_header_stdc=no | |
8053 | fi | |
8054 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8055 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8056 | fi | |
8057 | ||
8058 | fi | |
8059 | fi | |
8060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
8061 | $as_echo "$ac_cv_header_stdc" >&6; } | |
8062 | if test $ac_cv_header_stdc = yes; then | |
8063 | ||
8064 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
8065 | ||
8066 | fi | |
8067 | ||
8068 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
8069 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
8070 | inttypes.h stdint.h unistd.h | |
8071 | do : | |
8072 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8073 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
8074 | " | |
8075 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8076 | cat >>confdefs.h <<_ACEOF | |
8077 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8078 | _ACEOF | |
8079 | ||
8080 | fi | |
8081 | ||
8082 | done | |
8083 | ||
8084 | ||
8085 | for ac_header in dlfcn.h | |
8086 | do : | |
8087 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8088 | " | |
8089 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8090 | cat >>confdefs.h <<_ACEOF | |
8091 | #define HAVE_DLFCN_H 1 | |
8092 | _ACEOF | |
8093 | ||
8094 | fi | |
8095 | ||
8096 | done | |
8097 | ||
8098 | ||
8099 | ||
8100 | ||
8101 | ||
8102 | # Set options | |
8103 | enable_dlopen=yes | |
8104 | # Check whether --enable-static was given. | |
8105 | if test "${enable_static+set}" = set; then : | |
8106 | enableval=$enable_static; p=${PACKAGE-default} | |
8107 | case $enableval in | |
8108 | yes) enable_static=yes ;; | |
8109 | no) enable_static=no ;; | |
8110 | *) | |
8111 | enable_static=no | |
8112 | # Look at the argument we got. We use all the common list separators. | |
8113 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8114 | for pkg in $enableval; do | |
8115 | IFS="$lt_save_ifs" | |
8116 | if test "X$pkg" = "X$p"; then | |
8117 | enable_static=yes | |
8118 | fi | |
8119 | done | |
8120 | IFS="$lt_save_ifs" | |
8121 | ;; | |
8122 | esac | |
8123 | else | |
8124 | enable_static=no | |
8125 | fi | |
8126 | ||
8127 | ||
8128 | ||
8129 | ||
8130 | ||
8131 | ||
8132 | ||
8133 | ||
8134 | ||
8135 | ||
8136 | ||
8137 | enable_win32_dll=no | |
8138 | ||
8139 | ||
8140 | # Check whether --enable-shared was given. | |
8141 | if test "${enable_shared+set}" = set; then : | |
8142 | enableval=$enable_shared; p=${PACKAGE-default} | |
8143 | case $enableval in | |
8144 | yes) enable_shared=yes ;; | |
8145 | no) enable_shared=no ;; | |
8146 | *) | |
8147 | enable_shared=no | |
8148 | # Look at the argument we got. We use all the common list separators. | |
8149 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8150 | for pkg in $enableval; do | |
8151 | IFS="$lt_save_ifs" | |
8152 | if test "X$pkg" = "X$p"; then | |
8153 | enable_shared=yes | |
8154 | fi | |
8155 | done | |
8156 | IFS="$lt_save_ifs" | |
8157 | ;; | |
8158 | esac | |
8159 | else | |
8160 | enable_shared=yes | |
8161 | fi | |
8162 | ||
8163 | ||
8164 | ||
8165 | ||
8166 | ||
8167 | ||
8168 | ||
8169 | ||
8170 | ||
8171 | ||
8172 | ||
8173 | # Check whether --with-pic was given. | |
8174 | if test "${with_pic+set}" = set; then : | |
8175 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8176 | case $withval in | |
8177 | yes|no) pic_mode=$withval ;; | |
8178 | *) | |
8179 | pic_mode=default | |
8180 | # Look at the argument we got. We use all the common list separators. | |
8181 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8182 | for lt_pkg in $withval; do | |
8183 | IFS="$lt_save_ifs" | |
8184 | if test "X$lt_pkg" = "X$lt_p"; then | |
8185 | pic_mode=yes | |
8186 | fi | |
8187 | done | |
8188 | IFS="$lt_save_ifs" | |
8189 | ;; | |
8190 | esac | |
8191 | else | |
8192 | pic_mode=default | |
8193 | fi | |
8194 | ||
8195 | ||
8196 | test -z "$pic_mode" && pic_mode=default | |
8197 | ||
8198 | ||
8199 | ||
8200 | ||
8201 | ||
8202 | ||
8203 | ||
8204 | # Check whether --enable-fast-install was given. | |
8205 | if test "${enable_fast_install+set}" = set; then : | |
8206 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8207 | case $enableval in | |
8208 | yes) enable_fast_install=yes ;; | |
8209 | no) enable_fast_install=no ;; | |
8210 | *) | |
8211 | enable_fast_install=no | |
8212 | # Look at the argument we got. We use all the common list separators. | |
8213 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8214 | for pkg in $enableval; do | |
8215 | IFS="$lt_save_ifs" | |
8216 | if test "X$pkg" = "X$p"; then | |
8217 | enable_fast_install=yes | |
8218 | fi | |
8219 | done | |
8220 | IFS="$lt_save_ifs" | |
8221 | ;; | |
8222 | esac | |
8223 | else | |
8224 | enable_fast_install=yes | |
8225 | fi | |
8226 | ||
8227 | ||
8228 | ||
8229 | ||
8230 | ||
8231 | ||
8232 | ||
8233 | ||
8234 | ||
8235 | ||
8236 | ||
8237 | # This can be used to rebuild libtool when needed | |
8238 | LIBTOOL_DEPS="$ltmain" | |
8239 | ||
8240 | # Always use our own libtool. | |
8241 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8242 | ||
8243 | ||
8244 | ||
8245 | ||
8246 | ||
8247 | ||
8248 | ||
8249 | ||
8250 | ||
8251 | ||
8252 | ||
8253 | ||
8254 | ||
8255 | ||
8256 | ||
8257 | ||
8258 | ||
8259 | ||
8260 | ||
8261 | ||
8262 | ||
8263 | ||
8264 | ||
8265 | ||
8266 | ||
8267 | ||
8268 | ||
8269 | ||
8270 | ||
8271 | ||
8272 | test -z "$LN_S" && LN_S="ln -s" | |
8273 | ||
8274 | ||
8275 | ||
8276 | ||
8277 | ||
8278 | ||
8279 | ||
8280 | ||
8281 | ||
8282 | ||
8283 | ||
8284 | ||
8285 | ||
8286 | ||
8287 | if test -n "${ZSH_VERSION+set}" ; then | |
8288 | setopt NO_GLOB_SUBST | |
8289 | fi | |
8290 | ||
8291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
8292 | $as_echo_n "checking for objdir... " >&6; } | |
8293 | if ${lt_cv_objdir+:} false; then : | |
8294 | $as_echo_n "(cached) " >&6 | |
8295 | else | |
8296 | rm -f .libs 2>/dev/null | |
8297 | mkdir .libs 2>/dev/null | |
8298 | if test -d .libs; then | |
8299 | lt_cv_objdir=.libs | |
8300 | else | |
8301 | # MS-DOS does not allow filenames that begin with a dot. | |
8302 | lt_cv_objdir=_libs | |
8303 | fi | |
8304 | rmdir .libs 2>/dev/null | |
8305 | fi | |
8306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8307 | $as_echo "$lt_cv_objdir" >&6; } | |
8308 | objdir=$lt_cv_objdir | |
8309 | ||
8310 | ||
8311 | ||
8312 | ||
8313 | ||
8314 | cat >>confdefs.h <<_ACEOF | |
8315 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8316 | _ACEOF | |
8317 | ||
8318 | ||
8319 | ||
8320 | ||
8321 | case $host_os in | |
8322 | aix3*) | |
8323 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8324 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8325 | # vanish in a puff of smoke. | |
8326 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8327 | COLLECT_NAMES= | |
8328 | export COLLECT_NAMES | |
8329 | fi | |
8330 | ;; | |
8331 | esac | |
8332 | ||
8333 | # Global variables: | |
8334 | ofile=libtool | |
8335 | can_build_shared=yes | |
8336 | ||
8337 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
8338 | # which needs '.lib'). | |
8339 | libext=a | |
8340 | ||
8341 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
8342 | ||
8343 | old_CC="$CC" | |
8344 | old_CFLAGS="$CFLAGS" | |
8345 | ||
8346 | # Set sane defaults for various variables | |
8347 | test -z "$CC" && CC=cc | |
8348 | test -z "$LTCC" && LTCC=$CC | |
8349 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8350 | test -z "$LD" && LD=ld | |
8351 | test -z "$ac_objext" && ac_objext=o | |
8352 | ||
8353 | for cc_temp in $compiler""; do | |
8354 | case $cc_temp in | |
8355 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8356 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8357 | \-*) ;; | |
8358 | *) break;; | |
8359 | esac | |
8360 | done | |
8361 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
8362 | ||
8363 | ||
8364 | # Only perform the check for file, if the check method requires it | |
8365 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8366 | case $deplibs_check_method in | |
8367 | file_magic*) | |
8368 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8370 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8371 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8372 | $as_echo_n "(cached) " >&6 | |
8373 | else | |
8374 | case $MAGIC_CMD in | |
8375 | [\\/*] | ?:[\\/]*) | |
8376 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8377 | ;; | |
8378 | *) | |
8379 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8380 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8381 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8382 | for ac_dir in $ac_dummy; do | |
8383 | IFS="$lt_save_ifs" | |
8384 | test -z "$ac_dir" && ac_dir=. | |
8385 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8386 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8387 | if test -n "$file_magic_test_file"; then | |
8388 | case $deplibs_check_method in | |
8389 | "file_magic "*) | |
8390 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8391 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8392 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8393 | $EGREP "$file_magic_regex" > /dev/null; then | |
8394 | : | |
8395 | else | |
8396 | cat <<_LT_EOF 1>&2 | |
8397 | ||
8398 | *** Warning: the command libtool uses to detect shared libraries, | |
8399 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8400 | *** The result is that libtool may fail to recognize shared libraries | |
8401 | *** as such. This will affect the creation of libtool libraries that | |
8402 | *** depend on shared libraries, but programs linked with such libtool | |
8403 | *** libraries will work regardless of this problem. Nevertheless, you | |
8404 | *** may want to report the problem to your system manager and/or to | |
8405 | *** bug-libtool@gnu.org | |
8406 | ||
8407 | _LT_EOF | |
8408 | fi ;; | |
8409 | esac | |
8410 | fi | |
8411 | break | |
8412 | fi | |
8413 | done | |
8414 | IFS="$lt_save_ifs" | |
8415 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8416 | ;; | |
8417 | esac | |
8418 | fi | |
8419 | ||
8420 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8421 | if test -n "$MAGIC_CMD"; then | |
8422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8423 | $as_echo "$MAGIC_CMD" >&6; } | |
8424 | else | |
8425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8426 | $as_echo "no" >&6; } | |
8427 | fi | |
8428 | ||
8429 | ||
8430 | ||
8431 | ||
8432 | ||
8433 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8434 | if test -n "$ac_tool_prefix"; then | |
8435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8436 | $as_echo_n "checking for file... " >&6; } | |
8437 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8438 | $as_echo_n "(cached) " >&6 | |
8439 | else | |
8440 | case $MAGIC_CMD in | |
8441 | [\\/*] | ?:[\\/]*) | |
8442 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8443 | ;; | |
8444 | *) | |
8445 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8446 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8447 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8448 | for ac_dir in $ac_dummy; do | |
8449 | IFS="$lt_save_ifs" | |
8450 | test -z "$ac_dir" && ac_dir=. | |
8451 | if test -f $ac_dir/file; then | |
8452 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8453 | if test -n "$file_magic_test_file"; then | |
8454 | case $deplibs_check_method in | |
8455 | "file_magic "*) | |
8456 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8457 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8458 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8459 | $EGREP "$file_magic_regex" > /dev/null; then | |
8460 | : | |
8461 | else | |
8462 | cat <<_LT_EOF 1>&2 | |
8463 | ||
8464 | *** Warning: the command libtool uses to detect shared libraries, | |
8465 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8466 | *** The result is that libtool may fail to recognize shared libraries | |
8467 | *** as such. This will affect the creation of libtool libraries that | |
8468 | *** depend on shared libraries, but programs linked with such libtool | |
8469 | *** libraries will work regardless of this problem. Nevertheless, you | |
8470 | *** may want to report the problem to your system manager and/or to | |
8471 | *** bug-libtool@gnu.org | |
8472 | ||
8473 | _LT_EOF | |
8474 | fi ;; | |
8475 | esac | |
8476 | fi | |
8477 | break | |
8478 | fi | |
8479 | done | |
8480 | IFS="$lt_save_ifs" | |
8481 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8482 | ;; | |
8483 | esac | |
8484 | fi | |
8485 | ||
8486 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8487 | if test -n "$MAGIC_CMD"; then | |
8488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8489 | $as_echo "$MAGIC_CMD" >&6; } | |
8490 | else | |
8491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8492 | $as_echo "no" >&6; } | |
8493 | fi | |
8494 | ||
8495 | ||
8496 | else | |
8497 | MAGIC_CMD=: | |
8498 | fi | |
8499 | fi | |
8500 | ||
8501 | fi | |
8502 | ;; | |
8503 | esac | |
8504 | ||
8505 | # Use C for the default configuration in the libtool script | |
8506 | ||
8507 | lt_save_CC="$CC" | |
8508 | ac_ext=c | |
8509 | ac_cpp='$CPP $CPPFLAGS' | |
8510 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8511 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8512 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8513 | ||
8514 | ||
8515 | # Source file extension for C test sources. | |
8516 | ac_ext=c | |
8517 | ||
8518 | # Object file extension for compiled C test sources. | |
8519 | objext=o | |
8520 | objext=$objext | |
8521 | ||
8522 | # Code to be used in simple compile tests | |
8523 | lt_simple_compile_test_code="int some_variable = 0;" | |
8524 | ||
8525 | # Code to be used in simple link tests | |
8526 | lt_simple_link_test_code='int main(){return(0);}' | |
8527 | ||
8528 | ||
8529 | ||
8530 | ||
8531 | ||
8532 | ||
8533 | ||
8534 | # If no C compiler was specified, use CC. | |
8535 | LTCC=${LTCC-"$CC"} | |
8536 | ||
8537 | # If no C compiler flags were specified, use CFLAGS. | |
8538 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8539 | ||
8540 | # Allow CC to be a program name with arguments. | |
8541 | compiler=$CC | |
8542 | ||
8543 | # Save the default compiler, since it gets overwritten when the other | |
8544 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8545 | compiler_DEFAULT=$CC | |
8546 | ||
8547 | # save warnings/boilerplate of simple test code | |
8548 | ac_outfile=conftest.$ac_objext | |
8549 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8550 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8551 | _lt_compiler_boilerplate=`cat conftest.err` | |
8552 | $RM conftest* | |
8553 | ||
8554 | ac_outfile=conftest.$ac_objext | |
8555 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8556 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8557 | _lt_linker_boilerplate=`cat conftest.err` | |
8558 | $RM -r conftest* | |
8559 | ||
8560 | ||
8561 | ## CAVEAT EMPTOR: | |
8562 | ## There is no encapsulation within the following macros, do not change | |
8563 | ## the running order or otherwise move them around unless you know exactly | |
8564 | ## what you are doing... | |
8565 | if test -n "$compiler"; then | |
8566 | ||
8567 | lt_prog_compiler_no_builtin_flag= | |
8568 | ||
8569 | if test "$GCC" = yes; then | |
8570 | case $cc_basename in | |
8571 | nvcc*) | |
8572 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8573 | *) | |
8574 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8575 | esac | |
8576 | ||
8577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8578 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8579 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
8580 | $as_echo_n "(cached) " >&6 | |
8581 | else | |
8582 | lt_cv_prog_compiler_rtti_exceptions=no | |
8583 | ac_outfile=conftest.$ac_objext | |
8584 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8585 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8586 | # Insert the option either (1) after the last *FLAGS variable, or | |
8587 | # (2) before a word containing "conftest.", or (3) at the end. | |
8588 | # Note that $ac_compile itself does not contain backslashes and begins | |
8589 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8590 | # The option is referenced via a variable to avoid confusing sed. | |
8591 | lt_compile=`echo "$ac_compile" | $SED \ | |
8592 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8593 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8594 | -e 's:$: $lt_compiler_flag:'` | |
8595 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8596 | (eval "$lt_compile" 2>conftest.err) | |
8597 | ac_status=$? | |
8598 | cat conftest.err >&5 | |
8599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8600 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8601 | # The compiler can only warn and ignore the option if not recognized | |
8602 | # So say no if there are warnings other than the usual output. | |
8603 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8604 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8605 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8606 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8607 | fi | |
8608 | fi | |
8609 | $RM conftest* | |
8610 | ||
8611 | fi | |
8612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8613 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8614 | ||
8615 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8616 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8617 | else | |
8618 | : | |
8619 | fi | |
8620 | ||
8621 | fi | |
8622 | ||
8623 | ||
8624 | ||
8625 | ||
8626 | ||
8627 | ||
8628 | lt_prog_compiler_wl= | |
8629 | lt_prog_compiler_pic= | |
8630 | lt_prog_compiler_static= | |
8631 | ||
8632 | ||
8633 | if test "$GCC" = yes; then | |
8634 | lt_prog_compiler_wl='-Wl,' | |
8635 | lt_prog_compiler_static='-static' | |
8636 | ||
8637 | case $host_os in | |
8638 | aix*) | |
8639 | # All AIX code is PIC. | |
8640 | if test "$host_cpu" = ia64; then | |
8641 | # AIX 5 now supports IA64 processor | |
8642 | lt_prog_compiler_static='-Bstatic' | |
8643 | fi | |
8644 | ;; | |
8645 | ||
8646 | amigaos*) | |
8647 | case $host_cpu in | |
8648 | powerpc) | |
8649 | # see comment about AmigaOS4 .so support | |
8650 | lt_prog_compiler_pic='-fPIC' | |
8651 | ;; | |
8652 | m68k) | |
8653 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8654 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8655 | # like `-m68040'. | |
8656 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8657 | ;; | |
8658 | esac | |
8659 | ;; | |
8660 | ||
8661 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8662 | # PIC is the default for these OSes. | |
8663 | ;; | |
8664 | ||
8665 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8666 | # This hack is so that the source file can tell whether it is being | |
8667 | # built for inclusion in a dll (and should export symbols for example). | |
8668 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8669 | # (--disable-auto-import) libraries | |
8670 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8671 | ;; | |
8672 | ||
8673 | darwin* | rhapsody*) | |
8674 | # PIC is the default on this platform | |
8675 | # Common symbols not allowed in MH_DYLIB files | |
8676 | lt_prog_compiler_pic='-fno-common' | |
8677 | ;; | |
8678 | ||
8679 | haiku*) | |
8680 | # PIC is the default for Haiku. | |
8681 | # The "-static" flag exists, but is broken. | |
8682 | lt_prog_compiler_static= | |
8683 | ;; | |
8684 | ||
8685 | hpux*) | |
8686 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8687 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8688 | # sets the default TLS model and affects inlining. | |
8689 | case $host_cpu in | |
8690 | hppa*64*) | |
8691 | # +Z the default | |
8692 | ;; | |
8693 | *) | |
8694 | lt_prog_compiler_pic='-fPIC' | |
8695 | ;; | |
8696 | esac | |
8697 | ;; | |
8698 | ||
8699 | interix[3-9]*) | |
8700 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8701 | # Instead, we relocate shared libraries at runtime. | |
8702 | ;; | |
8703 | ||
8704 | msdosdjgpp*) | |
8705 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8706 | # on systems that don't support them. | |
8707 | lt_prog_compiler_can_build_shared=no | |
8708 | enable_shared=no | |
8709 | ;; | |
8710 | ||
8711 | *nto* | *qnx*) | |
8712 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8713 | # it will coredump. | |
8714 | lt_prog_compiler_pic='-fPIC -shared' | |
8715 | ;; | |
8716 | ||
8717 | sysv4*MP*) | |
8718 | if test -d /usr/nec; then | |
8719 | lt_prog_compiler_pic=-Kconform_pic | |
8720 | fi | |
8721 | ;; | |
8722 | ||
8723 | *) | |
8724 | lt_prog_compiler_pic='-fPIC' | |
8725 | ;; | |
8726 | esac | |
8727 | ||
8728 | case $cc_basename in | |
8729 | nvcc*) # Cuda Compiler Driver 2.2 | |
8730 | lt_prog_compiler_wl='-Xlinker ' | |
8731 | if test -n "$lt_prog_compiler_pic"; then | |
8732 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8733 | fi | |
8734 | ;; | |
8735 | esac | |
8736 | else | |
8737 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8738 | case $host_os in | |
8739 | aix*) | |
8740 | lt_prog_compiler_wl='-Wl,' | |
8741 | if test "$host_cpu" = ia64; then | |
8742 | # AIX 5 now supports IA64 processor | |
8743 | lt_prog_compiler_static='-Bstatic' | |
8744 | else | |
8745 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8746 | fi | |
8747 | ;; | |
8748 | ||
8749 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8750 | # This hack is so that the source file can tell whether it is being | |
8751 | # built for inclusion in a dll (and should export symbols for example). | |
8752 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8753 | ;; | |
8754 | ||
8755 | hpux9* | hpux10* | hpux11*) | |
8756 | lt_prog_compiler_wl='-Wl,' | |
8757 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8758 | # not for PA HP-UX. | |
8759 | case $host_cpu in | |
8760 | hppa*64*|ia64*) | |
8761 | # +Z the default | |
8762 | ;; | |
8763 | *) | |
8764 | lt_prog_compiler_pic='+Z' | |
8765 | ;; | |
8766 | esac | |
8767 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8768 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8769 | ;; | |
8770 | ||
8771 | irix5* | irix6* | nonstopux*) | |
8772 | lt_prog_compiler_wl='-Wl,' | |
8773 | # PIC (with -KPIC) is the default. | |
8774 | lt_prog_compiler_static='-non_shared' | |
8775 | ;; | |
8776 | ||
8777 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
8778 | case $cc_basename in | |
8779 | # old Intel for x86_64 which still supported -KPIC. | |
8780 | ecc*) | |
8781 | lt_prog_compiler_wl='-Wl,' | |
8782 | lt_prog_compiler_pic='-KPIC' | |
8783 | lt_prog_compiler_static='-static' | |
8784 | ;; | |
8785 | # icc used to be incompatible with GCC. | |
8786 | # ICC 10 doesn't accept -KPIC any more. | |
8787 | icc* | ifort*) | |
8788 | lt_prog_compiler_wl='-Wl,' | |
8789 | lt_prog_compiler_pic='-fPIC' | |
8790 | lt_prog_compiler_static='-static' | |
8791 | ;; | |
8792 | # Lahey Fortran 8.1. | |
8793 | lf95*) | |
8794 | lt_prog_compiler_wl='-Wl,' | |
8795 | lt_prog_compiler_pic='--shared' | |
8796 | lt_prog_compiler_static='--static' | |
8797 | ;; | |
8798 | nagfor*) | |
8799 | # NAG Fortran compiler | |
8800 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8801 | lt_prog_compiler_pic='-PIC' | |
8802 | lt_prog_compiler_static='-Bstatic' | |
8803 | ;; | |
8804 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8805 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8806 | # which looks to be a dead project) | |
8807 | lt_prog_compiler_wl='-Wl,' | |
8808 | lt_prog_compiler_pic='-fpic' | |
8809 | lt_prog_compiler_static='-Bstatic' | |
8810 | ;; | |
8811 | ccc*) | |
8812 | lt_prog_compiler_wl='-Wl,' | |
8813 | # All Alpha code is PIC. | |
8814 | lt_prog_compiler_static='-non_shared' | |
8815 | ;; | |
8816 | xl* | bgxl* | bgf* | mpixl*) | |
8817 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8818 | lt_prog_compiler_wl='-Wl,' | |
8819 | lt_prog_compiler_pic='-qpic' | |
8820 | lt_prog_compiler_static='-qstaticlink' | |
8821 | ;; | |
8822 | *) | |
8823 | case `$CC -V 2>&1 | sed 5q` in | |
8824 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
8825 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8826 | lt_prog_compiler_pic='-KPIC' | |
8827 | lt_prog_compiler_static='-Bstatic' | |
8828 | lt_prog_compiler_wl='' | |
8829 | ;; | |
8830 | *Sun\ F* | *Sun*Fortran*) | |
8831 | lt_prog_compiler_pic='-KPIC' | |
8832 | lt_prog_compiler_static='-Bstatic' | |
8833 | lt_prog_compiler_wl='-Qoption ld ' | |
8834 | ;; | |
8835 | *Sun\ C*) | |
8836 | # Sun C 5.9 | |
8837 | lt_prog_compiler_pic='-KPIC' | |
8838 | lt_prog_compiler_static='-Bstatic' | |
8839 | lt_prog_compiler_wl='-Wl,' | |
8840 | ;; | |
8841 | *Intel*\ [CF]*Compiler*) | |
8842 | lt_prog_compiler_wl='-Wl,' | |
8843 | lt_prog_compiler_pic='-fPIC' | |
8844 | lt_prog_compiler_static='-static' | |
8845 | ;; | |
8846 | *Portland\ Group*) | |
8847 | lt_prog_compiler_wl='-Wl,' | |
8848 | lt_prog_compiler_pic='-fpic' | |
8849 | lt_prog_compiler_static='-Bstatic' | |
8850 | ;; | |
8851 | esac | |
8852 | ;; | |
8853 | esac | |
8854 | ;; | |
8855 | ||
8856 | newsos6) | |
8857 | lt_prog_compiler_pic='-KPIC' | |
8858 | lt_prog_compiler_static='-Bstatic' | |
8859 | ;; | |
8860 | ||
8861 | *nto* | *qnx*) | |
8862 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8863 | # it will coredump. | |
8864 | lt_prog_compiler_pic='-fPIC -shared' | |
8865 | ;; | |
8866 | ||
8867 | osf3* | osf4* | osf5*) | |
8868 | lt_prog_compiler_wl='-Wl,' | |
8869 | # All OSF/1 code is PIC. | |
8870 | lt_prog_compiler_static='-non_shared' | |
8871 | ;; | |
8872 | ||
8873 | rdos*) | |
8874 | lt_prog_compiler_static='-non_shared' | |
8875 | ;; | |
8876 | ||
8877 | solaris*) | |
8878 | lt_prog_compiler_pic='-KPIC' | |
8879 | lt_prog_compiler_static='-Bstatic' | |
8880 | case $cc_basename in | |
8881 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
8882 | lt_prog_compiler_wl='-Qoption ld ';; | |
8883 | *) | |
8884 | lt_prog_compiler_wl='-Wl,';; | |
8885 | esac | |
8886 | ;; | |
8887 | ||
8888 | sunos4*) | |
8889 | lt_prog_compiler_wl='-Qoption ld ' | |
8890 | lt_prog_compiler_pic='-PIC' | |
8891 | lt_prog_compiler_static='-Bstatic' | |
8892 | ;; | |
8893 | ||
8894 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8895 | lt_prog_compiler_wl='-Wl,' | |
8896 | lt_prog_compiler_pic='-KPIC' | |
8897 | lt_prog_compiler_static='-Bstatic' | |
8898 | ;; | |
8899 | ||
8900 | sysv4*MP*) | |
8901 | if test -d /usr/nec ;then | |
8902 | lt_prog_compiler_pic='-Kconform_pic' | |
8903 | lt_prog_compiler_static='-Bstatic' | |
8904 | fi | |
8905 | ;; | |
8906 | ||
8907 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8908 | lt_prog_compiler_wl='-Wl,' | |
8909 | lt_prog_compiler_pic='-KPIC' | |
8910 | lt_prog_compiler_static='-Bstatic' | |
8911 | ;; | |
8912 | ||
8913 | unicos*) | |
8914 | lt_prog_compiler_wl='-Wl,' | |
8915 | lt_prog_compiler_can_build_shared=no | |
8916 | ;; | |
8917 | ||
8918 | uts4*) | |
8919 | lt_prog_compiler_pic='-pic' | |
8920 | lt_prog_compiler_static='-Bstatic' | |
8921 | ;; | |
8922 | ||
8923 | *) | |
8924 | lt_prog_compiler_can_build_shared=no | |
8925 | ;; | |
8926 | esac | |
8927 | fi | |
8928 | ||
8929 | case $host_os in | |
8930 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8931 | *djgpp*) | |
8932 | lt_prog_compiler_pic= | |
8933 | ;; | |
8934 | *) | |
8935 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8936 | ;; | |
8937 | esac | |
8938 | ||
8939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8940 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8941 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8942 | $as_echo_n "(cached) " >&6 | |
8943 | else | |
8944 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8945 | fi | |
8946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8947 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8948 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
8949 | ||
8950 | # | |
8951 | # Check to make sure the PIC flag actually works. | |
8952 | # | |
8953 | if test -n "$lt_prog_compiler_pic"; then | |
8954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8955 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8956 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
8957 | $as_echo_n "(cached) " >&6 | |
8958 | else | |
8959 | lt_cv_prog_compiler_pic_works=no | |
8960 | ac_outfile=conftest.$ac_objext | |
8961 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8962 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8963 | # Insert the option either (1) after the last *FLAGS variable, or | |
8964 | # (2) before a word containing "conftest.", or (3) at the end. | |
8965 | # Note that $ac_compile itself does not contain backslashes and begins | |
8966 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8967 | # The option is referenced via a variable to avoid confusing sed. | |
8968 | lt_compile=`echo "$ac_compile" | $SED \ | |
8969 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8970 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8971 | -e 's:$: $lt_compiler_flag:'` | |
8972 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8973 | (eval "$lt_compile" 2>conftest.err) | |
8974 | ac_status=$? | |
8975 | cat conftest.err >&5 | |
8976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8977 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8978 | # The compiler can only warn and ignore the option if not recognized | |
8979 | # So say no if there are warnings other than the usual output. | |
8980 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8981 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8982 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8983 | lt_cv_prog_compiler_pic_works=yes | |
8984 | fi | |
8985 | fi | |
8986 | $RM conftest* | |
8987 | ||
8988 | fi | |
8989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8990 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8991 | ||
8992 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
8993 | case $lt_prog_compiler_pic in | |
8994 | "" | " "*) ;; | |
8995 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8996 | esac | |
8997 | else | |
8998 | lt_prog_compiler_pic= | |
8999 | lt_prog_compiler_can_build_shared=no | |
9000 | fi | |
9001 | ||
9002 | fi | |
9003 | ||
9004 | ||
9005 | ||
9006 | ||
9007 | ||
9008 | ||
9009 | ||
9010 | ||
9011 | ||
9012 | ||
9013 | ||
9014 | # | |
9015 | # Check to make sure the static flag actually works. | |
9016 | # | |
9017 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9019 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9020 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9021 | $as_echo_n "(cached) " >&6 | |
9022 | else | |
9023 | lt_cv_prog_compiler_static_works=no | |
9024 | save_LDFLAGS="$LDFLAGS" | |
9025 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9026 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9027 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9028 | # The linker can only warn and ignore the option if not recognized | |
9029 | # So say no if there are warnings | |
9030 | if test -s conftest.err; then | |
9031 | # Append any errors to the config.log. | |
9032 | cat conftest.err 1>&5 | |
9033 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9034 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9035 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9036 | lt_cv_prog_compiler_static_works=yes | |
9037 | fi | |
9038 | else | |
9039 | lt_cv_prog_compiler_static_works=yes | |
9040 | fi | |
9041 | fi | |
9042 | $RM -r conftest* | |
9043 | LDFLAGS="$save_LDFLAGS" | |
9044 | ||
9045 | fi | |
9046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9047 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9048 | ||
9049 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
9050 | : | |
9051 | else | |
9052 | lt_prog_compiler_static= | |
9053 | fi | |
9054 | ||
9055 | ||
9056 | ||
9057 | ||
9058 | ||
9059 | ||
9060 | ||
9061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9062 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9063 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9064 | $as_echo_n "(cached) " >&6 | |
9065 | else | |
9066 | lt_cv_prog_compiler_c_o=no | |
9067 | $RM -r conftest 2>/dev/null | |
9068 | mkdir conftest | |
9069 | cd conftest | |
9070 | mkdir out | |
9071 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9072 | ||
9073 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9074 | # Insert the option either (1) after the last *FLAGS variable, or | |
9075 | # (2) before a word containing "conftest.", or (3) at the end. | |
9076 | # Note that $ac_compile itself does not contain backslashes and begins | |
9077 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9078 | lt_compile=`echo "$ac_compile" | $SED \ | |
9079 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9080 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9081 | -e 's:$: $lt_compiler_flag:'` | |
9082 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9083 | (eval "$lt_compile" 2>out/conftest.err) | |
9084 | ac_status=$? | |
9085 | cat out/conftest.err >&5 | |
9086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9087 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9088 | then | |
9089 | # The compiler can only warn and ignore the option if not recognized | |
9090 | # So say no if there are warnings | |
9091 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9092 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9093 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9094 | lt_cv_prog_compiler_c_o=yes | |
9095 | fi | |
9096 | fi | |
9097 | chmod u+w . 2>&5 | |
9098 | $RM conftest* | |
9099 | # SGI C++ compiler will create directory out/ii_files/ for | |
9100 | # template instantiation | |
9101 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9102 | $RM out/* && rmdir out | |
9103 | cd .. | |
9104 | $RM -r conftest | |
9105 | $RM conftest* | |
9106 | ||
9107 | fi | |
9108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9109 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9110 | ||
9111 | ||
9112 | ||
9113 | ||
9114 | ||
9115 | ||
9116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9117 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9118 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9119 | $as_echo_n "(cached) " >&6 | |
9120 | else | |
9121 | lt_cv_prog_compiler_c_o=no | |
9122 | $RM -r conftest 2>/dev/null | |
9123 | mkdir conftest | |
9124 | cd conftest | |
9125 | mkdir out | |
9126 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9127 | ||
9128 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9129 | # Insert the option either (1) after the last *FLAGS variable, or | |
9130 | # (2) before a word containing "conftest.", or (3) at the end. | |
9131 | # Note that $ac_compile itself does not contain backslashes and begins | |
9132 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9133 | lt_compile=`echo "$ac_compile" | $SED \ | |
9134 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9135 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9136 | -e 's:$: $lt_compiler_flag:'` | |
9137 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9138 | (eval "$lt_compile" 2>out/conftest.err) | |
9139 | ac_status=$? | |
9140 | cat out/conftest.err >&5 | |
9141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9142 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9143 | then | |
9144 | # The compiler can only warn and ignore the option if not recognized | |
9145 | # So say no if there are warnings | |
9146 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9147 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9148 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9149 | lt_cv_prog_compiler_c_o=yes | |
9150 | fi | |
9151 | fi | |
9152 | chmod u+w . 2>&5 | |
9153 | $RM conftest* | |
9154 | # SGI C++ compiler will create directory out/ii_files/ for | |
9155 | # template instantiation | |
9156 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9157 | $RM out/* && rmdir out | |
9158 | cd .. | |
9159 | $RM -r conftest | |
9160 | $RM conftest* | |
9161 | ||
9162 | fi | |
9163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9164 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9165 | ||
9166 | ||
9167 | ||
9168 | ||
9169 | hard_links="nottested" | |
9170 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9171 | # do not overwrite the value of need_locks provided by the user | |
9172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9173 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9174 | hard_links=yes | |
9175 | $RM conftest* | |
9176 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9177 | touch conftest.a | |
9178 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9179 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9181 | $as_echo "$hard_links" >&6; } | |
9182 | if test "$hard_links" = no; then | |
9183 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9184 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9185 | need_locks=warn | |
9186 | fi | |
9187 | else | |
9188 | need_locks=no | |
9189 | fi | |
9190 | ||
9191 | ||
9192 | ||
9193 | ||
9194 | ||
9195 | ||
9196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9197 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9198 | ||
9199 | runpath_var= | |
9200 | allow_undefined_flag= | |
9201 | always_export_symbols=no | |
9202 | archive_cmds= | |
9203 | archive_expsym_cmds= | |
9204 | compiler_needs_object=no | |
9205 | enable_shared_with_static_runtimes=no | |
9206 | export_dynamic_flag_spec= | |
9207 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9208 | hardcode_automatic=no | |
9209 | hardcode_direct=no | |
9210 | hardcode_direct_absolute=no | |
9211 | hardcode_libdir_flag_spec= | |
9212 | hardcode_libdir_separator= | |
9213 | hardcode_minus_L=no | |
9214 | hardcode_shlibpath_var=unsupported | |
9215 | inherit_rpath=no | |
9216 | link_all_deplibs=unknown | |
9217 | module_cmds= | |
9218 | module_expsym_cmds= | |
9219 | old_archive_from_new_cmds= | |
9220 | old_archive_from_expsyms_cmds= | |
9221 | thread_safe_flag_spec= | |
9222 | whole_archive_flag_spec= | |
9223 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9224 | # included in the symbol list | |
9225 | include_expsyms= | |
9226 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9227 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9228 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9229 | # as well as any symbol that contains `d'. | |
9230 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9231 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9232 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9233 | # the symbol is explicitly referenced. Since portable code cannot | |
9234 | # rely on this symbol name, it's probably fine to never include it in | |
9235 | # preloaded symbol tables. | |
9236 | # Exclude shared library initialization/finalization symbols. | |
9237 | extract_expsyms_cmds= | |
9238 | ||
9239 | case $host_os in | |
9240 | cygwin* | mingw* | pw32* | cegcc*) | |
9241 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9242 | # When not using gcc, we currently assume that we are using | |
9243 | # Microsoft Visual C++. | |
9244 | if test "$GCC" != yes; then | |
9245 | with_gnu_ld=no | |
9246 | fi | |
9247 | ;; | |
9248 | interix*) | |
9249 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9250 | with_gnu_ld=yes | |
9251 | ;; | |
9252 | openbsd*) | |
9253 | with_gnu_ld=no | |
9254 | ;; | |
9255 | linux* | k*bsd*-gnu | gnu*) | |
9256 | link_all_deplibs=no | |
9257 | ;; | |
9258 | esac | |
9259 | ||
9260 | ld_shlibs=yes | |
9261 | ||
9262 | # On some targets, GNU ld is compatible enough with the native linker | |
9263 | # that we're better off using the native interface for both. | |
9264 | lt_use_gnu_ld_interface=no | |
9265 | if test "$with_gnu_ld" = yes; then | |
9266 | case $host_os in | |
9267 | aix*) | |
9268 | # The AIX port of GNU ld has always aspired to compatibility | |
9269 | # with the native linker. However, as the warning in the GNU ld | |
9270 | # block says, versions before 2.19.5* couldn't really create working | |
9271 | # shared libraries, regardless of the interface used. | |
9272 | case `$LD -v 2>&1` in | |
9273 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9274 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9275 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9276 | *) | |
9277 | lt_use_gnu_ld_interface=yes | |
9278 | ;; | |
9279 | esac | |
9280 | ;; | |
9281 | *) | |
9282 | lt_use_gnu_ld_interface=yes | |
9283 | ;; | |
9284 | esac | |
9285 | fi | |
9286 | ||
9287 | if test "$lt_use_gnu_ld_interface" = yes; then | |
9288 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9289 | wlarc='${wl}' | |
9290 | ||
9291 | # Set some defaults for GNU ld with shared library support. These | |
9292 | # are reset later if shared libraries are not supported. Putting them | |
9293 | # here allows them to be overridden if necessary. | |
9294 | runpath_var=LD_RUN_PATH | |
9295 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9296 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9297 | # ancient GNU ld didn't support --whole-archive et. al. | |
9298 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9299 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9300 | else | |
9301 | whole_archive_flag_spec= | |
9302 | fi | |
9303 | supports_anon_versioning=no | |
9304 | case `$LD -v 2>&1` in | |
9305 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9306 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9307 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9308 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9309 | *\ 2.11.*) ;; # other 2.11 versions | |
9310 | *) supports_anon_versioning=yes ;; | |
9311 | esac | |
9312 | ||
9313 | # See if GNU ld supports shared libraries. | |
9314 | case $host_os in | |
9315 | aix[3-9]*) | |
9316 | # On AIX/PPC, the GNU linker is very broken | |
9317 | if test "$host_cpu" != ia64; then | |
9318 | ld_shlibs=no | |
9319 | cat <<_LT_EOF 1>&2 | |
9320 | ||
9321 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
9322 | *** to be unable to reliably create shared libraries on AIX. | |
9323 | *** Therefore, libtool is disabling shared libraries support. If you | |
9324 | *** really care for shared libraries, you may want to install binutils | |
9325 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9326 | *** You will then need to restart the configuration process. | |
9327 | ||
9328 | _LT_EOF | |
9329 | fi | |
9330 | ;; | |
9331 | ||
9332 | amigaos*) | |
9333 | case $host_cpu in | |
9334 | powerpc) | |
9335 | # see comment about AmigaOS4 .so support | |
9336 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9337 | archive_expsym_cmds='' | |
9338 | ;; | |
9339 | m68k) | |
9340 | 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)' | |
9341 | hardcode_libdir_flag_spec='-L$libdir' | |
9342 | hardcode_minus_L=yes | |
9343 | ;; | |
9344 | esac | |
9345 | ;; | |
9346 | ||
9347 | beos*) | |
9348 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9349 | allow_undefined_flag=unsupported | |
9350 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9351 | # support --undefined. This deserves some investigation. FIXME | |
9352 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9353 | else | |
9354 | ld_shlibs=no | |
9355 | fi | |
9356 | ;; | |
9357 | ||
9358 | cygwin* | mingw* | pw32* | cegcc*) | |
9359 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9360 | # as there is no search path for DLLs. | |
9361 | hardcode_libdir_flag_spec='-L$libdir' | |
9362 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9363 | allow_undefined_flag=unsupported | |
9364 | always_export_symbols=no | |
9365 | enable_shared_with_static_runtimes=yes | |
9366 | 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' | |
9367 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9368 | ||
9369 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9370 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9371 | # If the export-symbols file already is a .def file (1st line | |
9372 | # is EXPORTS), use it as is; otherwise, prepend... | |
9373 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9374 | cp $export_symbols $output_objdir/$soname.def; | |
9375 | else | |
9376 | echo EXPORTS > $output_objdir/$soname.def; | |
9377 | cat $export_symbols >> $output_objdir/$soname.def; | |
9378 | fi~ | |
9379 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9380 | else | |
9381 | ld_shlibs=no | |
9382 | fi | |
9383 | ;; | |
9384 | ||
9385 | haiku*) | |
9386 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9387 | link_all_deplibs=yes | |
9388 | ;; | |
9389 | ||
9390 | interix[3-9]*) | |
9391 | hardcode_direct=no | |
9392 | hardcode_shlibpath_var=no | |
9393 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9394 | export_dynamic_flag_spec='${wl}-E' | |
9395 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9396 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9397 | # default) and relocated if they conflict, which is a slow very memory | |
9398 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9399 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9400 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9401 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9402 | 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' | |
9403 | ;; | |
9404 | ||
9405 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9406 | tmp_diet=no | |
9407 | if test "$host_os" = linux-dietlibc; then | |
9408 | case $cc_basename in | |
9409 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9410 | esac | |
9411 | fi | |
9412 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9413 | && test "$tmp_diet" = no | |
9414 | then | |
9415 | tmp_addflag=' $pic_flag' | |
9416 | tmp_sharedflag='-shared' | |
9417 | case $cc_basename,$host_cpu in | |
9418 | pgcc*) # Portland Group C compiler | |
9419 | 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' | |
9420 | tmp_addflag=' $pic_flag' | |
9421 | ;; | |
9422 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9423 | # Portland Group f77 and f90 compilers | |
9424 | 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' | |
9425 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9426 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9427 | tmp_addflag=' -i_dynamic' ;; | |
9428 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9429 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9430 | ifc* | ifort*) # Intel Fortran compiler | |
9431 | tmp_addflag=' -nofor_main' ;; | |
9432 | lf95*) # Lahey Fortran 8.1 | |
9433 | whole_archive_flag_spec= | |
9434 | tmp_sharedflag='--shared' ;; | |
9435 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9436 | tmp_sharedflag='-qmkshrobj' | |
9437 | tmp_addflag= ;; | |
9438 | nvcc*) # Cuda Compiler Driver 2.2 | |
9439 | 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' | |
9440 | compiler_needs_object=yes | |
9441 | ;; | |
9442 | esac | |
9443 | case `$CC -V 2>&1 | sed 5q` in | |
9444 | *Sun\ C*) # Sun C 5.9 | |
9445 | 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' | |
9446 | compiler_needs_object=yes | |
9447 | tmp_sharedflag='-G' ;; | |
9448 | *Sun\ F*) # Sun Fortran 8.3 | |
9449 | tmp_sharedflag='-G' ;; | |
9450 | esac | |
9451 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9452 | ||
9453 | if test "x$supports_anon_versioning" = xyes; then | |
9454 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9455 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9456 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9457 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9458 | fi | |
9459 | ||
9460 | case $cc_basename in | |
9461 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9462 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9463 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9464 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9465 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
9466 | if test "x$supports_anon_versioning" = xyes; then | |
9467 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9468 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9469 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9470 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9471 | fi | |
9472 | ;; | |
9473 | esac | |
9474 | else | |
9475 | ld_shlibs=no | |
9476 | fi | |
9477 | ;; | |
9478 | ||
9479 | netbsd* | netbsdelf*-gnu) | |
9480 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9481 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9482 | wlarc= | |
9483 | else | |
9484 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9485 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9486 | fi | |
9487 | ;; | |
9488 | ||
9489 | solaris*) | |
9490 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9491 | ld_shlibs=no | |
9492 | cat <<_LT_EOF 1>&2 | |
9493 | ||
9494 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9495 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9496 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9497 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9498 | *** your PATH or compiler configuration so that the native linker is | |
9499 | *** used, and then restart. | |
9500 | ||
9501 | _LT_EOF | |
9502 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9503 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9504 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9505 | else | |
9506 | ld_shlibs=no | |
9507 | fi | |
9508 | ;; | |
9509 | ||
9510 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9511 | case `$LD -v 2>&1` in | |
9512 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9513 | ld_shlibs=no | |
9514 | cat <<_LT_EOF 1>&2 | |
9515 | ||
9516 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9517 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9518 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9519 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9520 | *** your PATH or compiler configuration so that the native linker is | |
9521 | *** used, and then restart. | |
9522 | ||
9523 | _LT_EOF | |
9524 | ;; | |
9525 | *) | |
9526 | # For security reasons, it is highly recommended that you always | |
9527 | # use absolute paths for naming shared libraries, and exclude the | |
9528 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9529 | # requires that you compile everything twice, which is a pain. | |
9530 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9531 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9532 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9533 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9534 | else | |
9535 | ld_shlibs=no | |
9536 | fi | |
9537 | ;; | |
9538 | esac | |
9539 | ;; | |
9540 | ||
9541 | sunos4*) | |
9542 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9543 | wlarc= | |
9544 | hardcode_direct=yes | |
9545 | hardcode_shlibpath_var=no | |
9546 | ;; | |
9547 | ||
9548 | *) | |
9549 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9550 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9551 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9552 | else | |
9553 | ld_shlibs=no | |
9554 | fi | |
9555 | ;; | |
9556 | esac | |
9557 | ||
9558 | if test "$ld_shlibs" = no; then | |
9559 | runpath_var= | |
9560 | hardcode_libdir_flag_spec= | |
9561 | export_dynamic_flag_spec= | |
9562 | whole_archive_flag_spec= | |
9563 | fi | |
9564 | else | |
9565 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9566 | case $host_os in | |
9567 | aix3*) | |
9568 | allow_undefined_flag=unsupported | |
9569 | always_export_symbols=yes | |
9570 | 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' | |
9571 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9572 | # are no directories specified by -L. | |
9573 | hardcode_minus_L=yes | |
9574 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9575 | # Neither direct hardcoding nor static linking is supported with a | |
9576 | # broken collect2. | |
9577 | hardcode_direct=unsupported | |
9578 | fi | |
9579 | ;; | |
9580 | ||
9581 | aix[4-9]*) | |
9582 | if test "$host_cpu" = ia64; then | |
9583 | # On IA64, the linker does run time linking by default, so we don't | |
9584 | # have to do anything special. | |
9585 | aix_use_runtimelinking=no | |
9586 | exp_sym_flag='-Bexport' | |
9587 | no_entry_flag="" | |
9588 | else | |
9589 | # If we're using GNU nm, then we don't want the "-C" option. | |
9590 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9591 | # Also, AIX nm treats weak defined symbols like other global | |
9592 | # defined symbols, whereas GNU nm marks them as "W". | |
9593 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9594 | 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' | |
9595 | else | |
9596 | 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' | |
9597 | fi | |
9598 | aix_use_runtimelinking=no | |
9599 | ||
9600 | # Test if we are trying to use run time linking or normal | |
9601 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9602 | # need to do runtime linking. | |
9603 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9604 | for ld_flag in $LDFLAGS; do | |
9605 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9606 | aix_use_runtimelinking=yes | |
9607 | break | |
9608 | fi | |
9609 | done | |
9610 | ;; | |
9611 | esac | |
9612 | ||
9613 | exp_sym_flag='-bexport' | |
9614 | no_entry_flag='-bnoentry' | |
9615 | fi | |
9616 | ||
9617 | # When large executables or shared objects are built, AIX ld can | |
9618 | # have problems creating the table of contents. If linking a library | |
9619 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9620 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9621 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9622 | ||
9623 | archive_cmds='' | |
9624 | hardcode_direct=yes | |
9625 | hardcode_direct_absolute=yes | |
9626 | hardcode_libdir_separator=':' | |
9627 | link_all_deplibs=yes | |
9628 | file_list_spec='${wl}-f,' | |
9629 | ||
9630 | if test "$GCC" = yes; then | |
9631 | case $host_os in aix4.[012]|aix4.[012].*) | |
9632 | # We only want to do this on AIX 4.2 and lower, the check | |
9633 | # below for broken collect2 doesn't work under 4.3+ | |
9634 | collect2name=`${CC} -print-prog-name=collect2` | |
9635 | if test -f "$collect2name" && | |
9636 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9637 | then | |
9638 | # We have reworked collect2 | |
9639 | : | |
9640 | else | |
9641 | # We have old collect2 | |
9642 | hardcode_direct=unsupported | |
9643 | # It fails to find uninstalled libraries when the uninstalled | |
9644 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9645 | # to unsupported forces relinking | |
9646 | hardcode_minus_L=yes | |
9647 | hardcode_libdir_flag_spec='-L$libdir' | |
9648 | hardcode_libdir_separator= | |
9649 | fi | |
9650 | ;; | |
9651 | esac | |
9652 | shared_flag='-shared' | |
9653 | if test "$aix_use_runtimelinking" = yes; then | |
9654 | shared_flag="$shared_flag "'${wl}-G' | |
9655 | fi | |
9656 | link_all_deplibs=no | |
9657 | else | |
9658 | # not using gcc | |
9659 | if test "$host_cpu" = ia64; then | |
9660 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9661 | # chokes on -Wl,-G. The following line is correct: | |
9662 | shared_flag='-G' | |
9663 | else | |
9664 | if test "$aix_use_runtimelinking" = yes; then | |
9665 | shared_flag='${wl}-G' | |
9666 | else | |
9667 | shared_flag='${wl}-bM:SRE' | |
9668 | fi | |
9669 | fi | |
9670 | fi | |
9671 | ||
9672 | export_dynamic_flag_spec='${wl}-bexpall' | |
9673 | # It seems that -bexpall does not export symbols beginning with | |
9674 | # underscore (_), so it is better to generate a list of symbols to export. | |
9675 | always_export_symbols=yes | |
9676 | if test "$aix_use_runtimelinking" = yes; then | |
9677 | # Warning - without using the other runtime loading flags (-brtl), | |
9678 | # -berok will link without error, but may produce a broken library. | |
9679 | allow_undefined_flag='-berok' | |
9680 | # Determine the default libpath from the value encoded in an | |
9681 | # empty executable. | |
9682 | if test "${lt_cv_aix_libpath+set}" = set; then | |
9683 | aix_libpath=$lt_cv_aix_libpath | |
9684 | else | |
9685 | if ${lt_cv_aix_libpath_+:} false; then : | |
9686 | $as_echo_n "(cached) " >&6 | |
9687 | else | |
9688 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9689 | /* end confdefs.h. */ | |
9690 | ||
9691 | int | |
9692 | main () | |
9693 | { | |
9694 | ||
9695 | ; | |
9696 | return 0; | |
9697 | } | |
9698 | _ACEOF | |
9699 | if ac_fn_c_try_link "$LINENO"; then : | |
9700 | ||
9701 | lt_aix_libpath_sed=' | |
9702 | /Import File Strings/,/^$/ { | |
9703 | /^0/ { | |
9704 | s/^0 *\([^ ]*\) *$/\1/ | |
9705 | p | |
9706 | } | |
9707 | }' | |
9708 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9709 | # Check for a 64-bit object if we didn't find anything. | |
9710 | if test -z "$lt_cv_aix_libpath_"; then | |
9711 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9712 | fi | |
9713 | fi | |
9714 | rm -f core conftest.err conftest.$ac_objext \ | |
9715 | conftest$ac_exeext conftest.$ac_ext | |
9716 | if test -z "$lt_cv_aix_libpath_"; then | |
9717 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
9718 | fi | |
9719 | ||
9720 | fi | |
9721 | ||
9722 | aix_libpath=$lt_cv_aix_libpath_ | |
9723 | fi | |
9724 | ||
9725 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9726 | 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" | |
9727 | else | |
9728 | if test "$host_cpu" = ia64; then | |
9729 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9730 | allow_undefined_flag="-z nodefs" | |
9731 | 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" | |
9732 | else | |
9733 | # Determine the default libpath from the value encoded in an | |
9734 | # empty executable. | |
9735 | if test "${lt_cv_aix_libpath+set}" = set; then | |
9736 | aix_libpath=$lt_cv_aix_libpath | |
9737 | else | |
9738 | if ${lt_cv_aix_libpath_+:} false; then : | |
9739 | $as_echo_n "(cached) " >&6 | |
9740 | else | |
9741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9742 | /* end confdefs.h. */ | |
9743 | ||
9744 | int | |
9745 | main () | |
9746 | { | |
9747 | ||
9748 | ; | |
9749 | return 0; | |
9750 | } | |
9751 | _ACEOF | |
9752 | if ac_fn_c_try_link "$LINENO"; then : | |
9753 | ||
9754 | lt_aix_libpath_sed=' | |
9755 | /Import File Strings/,/^$/ { | |
9756 | /^0/ { | |
9757 | s/^0 *\([^ ]*\) *$/\1/ | |
9758 | p | |
9759 | } | |
9760 | }' | |
9761 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9762 | # Check for a 64-bit object if we didn't find anything. | |
9763 | if test -z "$lt_cv_aix_libpath_"; then | |
9764 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9765 | fi | |
9766 | fi | |
9767 | rm -f core conftest.err conftest.$ac_objext \ | |
9768 | conftest$ac_exeext conftest.$ac_ext | |
9769 | if test -z "$lt_cv_aix_libpath_"; then | |
9770 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
9771 | fi | |
9772 | ||
9773 | fi | |
9774 | ||
9775 | aix_libpath=$lt_cv_aix_libpath_ | |
9776 | fi | |
9777 | ||
9778 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9779 | # Warning - without using the other run time loading flags, | |
9780 | # -berok will link without error, but may produce a broken library. | |
9781 | no_undefined_flag=' ${wl}-bernotok' | |
9782 | allow_undefined_flag=' ${wl}-berok' | |
9783 | if test "$with_gnu_ld" = yes; then | |
9784 | # We only use this code for GNU lds that support --whole-archive. | |
9785 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9786 | else | |
9787 | # Exported symbols can be pulled into shared objects from archives | |
9788 | whole_archive_flag_spec='$convenience' | |
9789 | fi | |
9790 | archive_cmds_need_lc=yes | |
9791 | # This is similar to how AIX traditionally builds its shared libraries. | |
9792 | 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' | |
9793 | fi | |
9794 | fi | |
9795 | ;; | |
9796 | ||
9797 | amigaos*) | |
9798 | case $host_cpu in | |
9799 | powerpc) | |
9800 | # see comment about AmigaOS4 .so support | |
9801 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9802 | archive_expsym_cmds='' | |
9803 | ;; | |
9804 | m68k) | |
9805 | 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)' | |
9806 | hardcode_libdir_flag_spec='-L$libdir' | |
9807 | hardcode_minus_L=yes | |
9808 | ;; | |
9809 | esac | |
9810 | ;; | |
9811 | ||
9812 | bsdi[45]*) | |
9813 | export_dynamic_flag_spec=-rdynamic | |
9814 | ;; | |
9815 | ||
9816 | cygwin* | mingw* | pw32* | cegcc*) | |
9817 | # When not using gcc, we currently assume that we are using | |
9818 | # Microsoft Visual C++. | |
9819 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9820 | # no search path for DLLs. | |
9821 | case $cc_basename in | |
9822 | cl*) | |
9823 | # Native MSVC | |
9824 | hardcode_libdir_flag_spec=' ' | |
9825 | allow_undefined_flag=unsupported | |
9826 | always_export_symbols=yes | |
9827 | file_list_spec='@' | |
9828 | # Tell ltmain to make .lib files, not .a files. | |
9829 | libext=lib | |
9830 | # Tell ltmain to make .dll files, not .so files. | |
9831 | shrext_cmds=".dll" | |
9832 | # FIXME: Setting linknames here is a bad hack. | |
9833 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
9834 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9835 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
9836 | else | |
9837 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
9838 | fi~ | |
9839 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9840 | linknames=' | |
9841 | # The linker will not automatically build a static lib if we build a DLL. | |
9842 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9843 | enable_shared_with_static_runtimes=yes | |
9844 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9845 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9846 | # Don't use ranlib | |
9847 | old_postinstall_cmds='chmod 644 $oldlib' | |
9848 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9849 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
9850 | case $lt_outputfile in | |
9851 | *.exe|*.EXE) ;; | |
9852 | *) | |
9853 | lt_outputfile="$lt_outputfile.exe" | |
9854 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
9855 | ;; | |
9856 | esac~ | |
9857 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
9858 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9859 | $RM "$lt_outputfile.manifest"; | |
9860 | fi' | |
9861 | ;; | |
9862 | *) | |
9863 | # Assume MSVC wrapper | |
9864 | hardcode_libdir_flag_spec=' ' | |
9865 | allow_undefined_flag=unsupported | |
9866 | # Tell ltmain to make .lib files, not .a files. | |
9867 | libext=lib | |
9868 | # Tell ltmain to make .dll files, not .so files. | |
9869 | shrext_cmds=".dll" | |
9870 | # FIXME: Setting linknames here is a bad hack. | |
9871 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9872 | # The linker will automatically build a .lib file if we build a DLL. | |
9873 | old_archive_from_new_cmds='true' | |
9874 | # FIXME: Should let the user specify the lib program. | |
9875 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9876 | enable_shared_with_static_runtimes=yes | |
9877 | ;; | |
9878 | esac | |
9879 | ;; | |
9880 | ||
9881 | darwin* | rhapsody*) | |
9882 | ||
9883 | ||
9884 | archive_cmds_need_lc=no | |
9885 | hardcode_direct=no | |
9886 | hardcode_automatic=yes | |
9887 | hardcode_shlibpath_var=unsupported | |
9888 | if test "$lt_cv_ld_force_load" = "yes"; then | |
9889 | 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\"`' | |
9890 | ||
9891 | else | |
9892 | whole_archive_flag_spec='' | |
9893 | fi | |
9894 | link_all_deplibs=yes | |
9895 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9896 | case $cc_basename in | |
9897 | ifort*) _lt_dar_can_shared=yes ;; | |
9898 | *) _lt_dar_can_shared=$GCC ;; | |
9899 | esac | |
9900 | if test "$_lt_dar_can_shared" = "yes"; then | |
9901 | output_verbose_link_cmd=func_echo_all | |
9902 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9903 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9904 | 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}" | |
9905 | 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}" | |
9906 | ||
9907 | else | |
9908 | ld_shlibs=no | |
9909 | fi | |
9910 | ||
9911 | ;; | |
9912 | ||
9913 | dgux*) | |
9914 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9915 | hardcode_libdir_flag_spec='-L$libdir' | |
9916 | hardcode_shlibpath_var=no | |
9917 | ;; | |
9918 | ||
9919 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9920 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9921 | # does not break anything, and helps significantly (at the cost of a little | |
9922 | # extra space). | |
9923 | freebsd2.2*) | |
9924 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9925 | hardcode_libdir_flag_spec='-R$libdir' | |
9926 | hardcode_direct=yes | |
9927 | hardcode_shlibpath_var=no | |
9928 | ;; | |
9929 | ||
9930 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9931 | freebsd2.*) | |
9932 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9933 | hardcode_direct=yes | |
9934 | hardcode_minus_L=yes | |
9935 | hardcode_shlibpath_var=no | |
9936 | ;; | |
9937 | ||
9938 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9939 | freebsd* | dragonfly*) | |
9940 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9941 | hardcode_libdir_flag_spec='-R$libdir' | |
9942 | hardcode_direct=yes | |
9943 | hardcode_shlibpath_var=no | |
9944 | ;; | |
9945 | ||
9946 | hpux9*) | |
9947 | if test "$GCC" = yes; then | |
9948 | 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' | |
9949 | else | |
9950 | 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' | |
9951 | fi | |
9952 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9953 | hardcode_libdir_separator=: | |
9954 | hardcode_direct=yes | |
9955 | ||
9956 | # hardcode_minus_L: Not really in the search PATH, | |
9957 | # but as the default location of the library. | |
9958 | hardcode_minus_L=yes | |
9959 | export_dynamic_flag_spec='${wl}-E' | |
9960 | ;; | |
9961 | ||
9962 | hpux10*) | |
9963 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9964 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9965 | else | |
9966 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9967 | fi | |
9968 | if test "$with_gnu_ld" = no; then | |
9969 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9970 | hardcode_libdir_separator=: | |
9971 | hardcode_direct=yes | |
9972 | hardcode_direct_absolute=yes | |
9973 | export_dynamic_flag_spec='${wl}-E' | |
9974 | # hardcode_minus_L: Not really in the search PATH, | |
9975 | # but as the default location of the library. | |
9976 | hardcode_minus_L=yes | |
9977 | fi | |
9978 | ;; | |
9979 | ||
9980 | hpux11*) | |
9981 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9982 | case $host_cpu in | |
9983 | hppa*64*) | |
9984 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9985 | ;; | |
9986 | ia64*) | |
9987 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9988 | ;; | |
9989 | *) | |
9990 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9991 | ;; | |
9992 | esac | |
9993 | else | |
9994 | case $host_cpu in | |
9995 | hppa*64*) | |
9996 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9997 | ;; | |
9998 | ia64*) | |
9999 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10000 | ;; | |
10001 | *) | |
10002 | ||
10003 | # Older versions of the 11.00 compiler do not understand -b yet | |
10004 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10006 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10007 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10008 | $as_echo_n "(cached) " >&6 | |
10009 | else | |
10010 | lt_cv_prog_compiler__b=no | |
10011 | save_LDFLAGS="$LDFLAGS" | |
10012 | LDFLAGS="$LDFLAGS -b" | |
10013 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10014 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10015 | # The linker can only warn and ignore the option if not recognized | |
10016 | # So say no if there are warnings | |
10017 | if test -s conftest.err; then | |
10018 | # Append any errors to the config.log. | |
10019 | cat conftest.err 1>&5 | |
10020 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10021 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10022 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10023 | lt_cv_prog_compiler__b=yes | |
10024 | fi | |
10025 | else | |
10026 | lt_cv_prog_compiler__b=yes | |
10027 | fi | |
10028 | fi | |
10029 | $RM -r conftest* | |
10030 | LDFLAGS="$save_LDFLAGS" | |
10031 | ||
10032 | fi | |
10033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10034 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10035 | ||
10036 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10037 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10038 | else | |
10039 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10040 | fi | |
10041 | ||
10042 | ;; | |
10043 | esac | |
10044 | fi | |
10045 | if test "$with_gnu_ld" = no; then | |
10046 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10047 | hardcode_libdir_separator=: | |
10048 | ||
10049 | case $host_cpu in | |
10050 | hppa*64*|ia64*) | |
10051 | hardcode_direct=no | |
10052 | hardcode_shlibpath_var=no | |
10053 | ;; | |
10054 | *) | |
10055 | hardcode_direct=yes | |
10056 | hardcode_direct_absolute=yes | |
10057 | export_dynamic_flag_spec='${wl}-E' | |
10058 | ||
10059 | # hardcode_minus_L: Not really in the search PATH, | |
10060 | # but as the default location of the library. | |
10061 | hardcode_minus_L=yes | |
10062 | ;; | |
10063 | esac | |
10064 | fi | |
10065 | ;; | |
10066 | ||
10067 | irix5* | irix6* | nonstopux*) | |
10068 | if test "$GCC" = yes; then | |
10069 | 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' | |
10070 | # Try to use the -exported_symbol ld option, if it does not | |
10071 | # work, assume that -exports_file does not work either and | |
10072 | # implicitly export all symbols. | |
10073 | # This should be the same for all languages, so no per-tag cache variable. | |
10074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10075 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10076 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10077 | $as_echo_n "(cached) " >&6 | |
10078 | else | |
10079 | save_LDFLAGS="$LDFLAGS" | |
10080 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10081 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10082 | /* end confdefs.h. */ | |
10083 | int foo (void) { return 0; } | |
10084 | _ACEOF | |
10085 | if ac_fn_c_try_link "$LINENO"; then : | |
10086 | lt_cv_irix_exported_symbol=yes | |
10087 | else | |
10088 | lt_cv_irix_exported_symbol=no | |
10089 | fi | |
10090 | rm -f core conftest.err conftest.$ac_objext \ | |
10091 | conftest$ac_exeext conftest.$ac_ext | |
10092 | LDFLAGS="$save_LDFLAGS" | |
10093 | fi | |
10094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10095 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10096 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
10097 | 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' | |
10098 | fi | |
10099 | else | |
10100 | 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' | |
10101 | 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' | |
10102 | fi | |
10103 | archive_cmds_need_lc='no' | |
10104 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10105 | hardcode_libdir_separator=: | |
10106 | inherit_rpath=yes | |
10107 | link_all_deplibs=yes | |
10108 | ;; | |
10109 | ||
10110 | netbsd* | netbsdelf*-gnu) | |
10111 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10112 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10113 | else | |
10114 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10115 | fi | |
10116 | hardcode_libdir_flag_spec='-R$libdir' | |
10117 | hardcode_direct=yes | |
10118 | hardcode_shlibpath_var=no | |
10119 | ;; | |
10120 | ||
10121 | newsos6) | |
10122 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10123 | hardcode_direct=yes | |
10124 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10125 | hardcode_libdir_separator=: | |
10126 | hardcode_shlibpath_var=no | |
10127 | ;; | |
10128 | ||
10129 | *nto* | *qnx*) | |
10130 | ;; | |
10131 | ||
10132 | openbsd*) | |
10133 | if test -f /usr/libexec/ld.so; then | |
10134 | hardcode_direct=yes | |
10135 | hardcode_shlibpath_var=no | |
10136 | hardcode_direct_absolute=yes | |
10137 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10138 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10139 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10140 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10141 | export_dynamic_flag_spec='${wl}-E' | |
10142 | else | |
10143 | case $host_os in | |
10144 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10145 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10146 | hardcode_libdir_flag_spec='-R$libdir' | |
10147 | ;; | |
10148 | *) | |
10149 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10150 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10151 | ;; | |
10152 | esac | |
10153 | fi | |
10154 | else | |
10155 | ld_shlibs=no | |
10156 | fi | |
10157 | ;; | |
10158 | ||
10159 | os2*) | |
10160 | hardcode_libdir_flag_spec='-L$libdir' | |
10161 | hardcode_minus_L=yes | |
10162 | allow_undefined_flag=unsupported | |
10163 | 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' | |
10164 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10165 | ;; | |
10166 | ||
10167 | osf3*) | |
10168 | if test "$GCC" = yes; then | |
10169 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10170 | 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' | |
10171 | else | |
10172 | allow_undefined_flag=' -expect_unresolved \*' | |
10173 | 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' | |
10174 | fi | |
10175 | archive_cmds_need_lc='no' | |
10176 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10177 | hardcode_libdir_separator=: | |
10178 | ;; | |
10179 | ||
10180 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10181 | if test "$GCC" = yes; then | |
10182 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10183 | 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' | |
10184 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10185 | else | |
10186 | allow_undefined_flag=' -expect_unresolved \*' | |
10187 | 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' | |
10188 | 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~ | |
10189 | $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' | |
10190 | ||
10191 | # Both c and cxx compiler support -rpath directly | |
10192 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10193 | fi | |
10194 | archive_cmds_need_lc='no' | |
10195 | hardcode_libdir_separator=: | |
10196 | ;; | |
10197 | ||
10198 | solaris*) | |
10199 | no_undefined_flag=' -z defs' | |
10200 | if test "$GCC" = yes; then | |
10201 | wlarc='${wl}' | |
10202 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10203 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10204 | $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' | |
10205 | else | |
10206 | case `$CC -V 2>&1` in | |
10207 | *"Compilers 5.0"*) | |
10208 | wlarc='' | |
10209 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10210 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10211 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10212 | ;; | |
10213 | *) | |
10214 | wlarc='${wl}' | |
10215 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10216 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10217 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10218 | ;; | |
10219 | esac | |
10220 | fi | |
10221 | hardcode_libdir_flag_spec='-R$libdir' | |
10222 | hardcode_shlibpath_var=no | |
10223 | case $host_os in | |
10224 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10225 | *) | |
10226 | # The compiler driver will combine and reorder linker options, | |
10227 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10228 | # but is careful enough not to reorder. | |
10229 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10230 | if test "$GCC" = yes; then | |
10231 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10232 | else | |
10233 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10234 | fi | |
10235 | ;; | |
10236 | esac | |
10237 | link_all_deplibs=yes | |
10238 | ;; | |
10239 | ||
10240 | sunos4*) | |
10241 | if test "x$host_vendor" = xsequent; then | |
10242 | # Use $CC to link under sequent, because it throws in some extra .o | |
10243 | # files that make .init and .fini sections work. | |
10244 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10245 | else | |
10246 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10247 | fi | |
10248 | hardcode_libdir_flag_spec='-L$libdir' | |
10249 | hardcode_direct=yes | |
10250 | hardcode_minus_L=yes | |
10251 | hardcode_shlibpath_var=no | |
10252 | ;; | |
10253 | ||
10254 | sysv4) | |
10255 | case $host_vendor in | |
10256 | sni) | |
10257 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10258 | hardcode_direct=yes # is this really true??? | |
10259 | ;; | |
10260 | siemens) | |
10261 | ## LD is ld it makes a PLAMLIB | |
10262 | ## CC just makes a GrossModule. | |
10263 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10264 | reload_cmds='$CC -r -o $output$reload_objs' | |
10265 | hardcode_direct=no | |
10266 | ;; | |
10267 | motorola) | |
10268 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10269 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10270 | ;; | |
10271 | esac | |
10272 | runpath_var='LD_RUN_PATH' | |
10273 | hardcode_shlibpath_var=no | |
10274 | ;; | |
10275 | ||
10276 | sysv4.3*) | |
10277 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10278 | hardcode_shlibpath_var=no | |
10279 | export_dynamic_flag_spec='-Bexport' | |
10280 | ;; | |
10281 | ||
10282 | sysv4*MP*) | |
10283 | if test -d /usr/nec; then | |
10284 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10285 | hardcode_shlibpath_var=no | |
10286 | runpath_var=LD_RUN_PATH | |
10287 | hardcode_runpath_var=yes | |
10288 | ld_shlibs=yes | |
10289 | fi | |
10290 | ;; | |
10291 | ||
10292 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10293 | no_undefined_flag='${wl}-z,text' | |
10294 | archive_cmds_need_lc=no | |
10295 | hardcode_shlibpath_var=no | |
10296 | runpath_var='LD_RUN_PATH' | |
10297 | ||
10298 | if test "$GCC" = yes; then | |
10299 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10300 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10301 | else | |
10302 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10303 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10304 | fi | |
10305 | ;; | |
10306 | ||
10307 | sysv5* | sco3.2v5* | sco5v6*) | |
10308 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10309 | # link with -lc, and that would cause any symbols used from libc to | |
10310 | # always be unresolved, which means just about no library would | |
10311 | # ever link correctly. If we're not using GNU ld we use -z text | |
10312 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10313 | # as -z defs. | |
10314 | no_undefined_flag='${wl}-z,text' | |
10315 | allow_undefined_flag='${wl}-z,nodefs' | |
10316 | archive_cmds_need_lc=no | |
10317 | hardcode_shlibpath_var=no | |
10318 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10319 | hardcode_libdir_separator=':' | |
10320 | link_all_deplibs=yes | |
10321 | export_dynamic_flag_spec='${wl}-Bexport' | |
10322 | runpath_var='LD_RUN_PATH' | |
10323 | ||
10324 | if test "$GCC" = yes; then | |
10325 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10326 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10327 | else | |
10328 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10329 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10330 | fi | |
10331 | ;; | |
10332 | ||
10333 | uts4*) | |
10334 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10335 | hardcode_libdir_flag_spec='-L$libdir' | |
10336 | hardcode_shlibpath_var=no | |
10337 | ;; | |
10338 | ||
10339 | *) | |
10340 | ld_shlibs=no | |
10341 | ;; | |
10342 | esac | |
10343 | ||
10344 | if test x$host_vendor = xsni; then | |
10345 | case $host in | |
10346 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10347 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10348 | ;; | |
10349 | esac | |
10350 | fi | |
10351 | fi | |
10352 | ||
10353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10354 | $as_echo "$ld_shlibs" >&6; } | |
10355 | test "$ld_shlibs" = no && can_build_shared=no | |
10356 | ||
10357 | with_gnu_ld=$with_gnu_ld | |
10358 | ||
10359 | ||
10360 | ||
10361 | ||
10362 | ||
10363 | ||
10364 | ||
10365 | ||
10366 | ||
10367 | ||
10368 | ||
10369 | ||
10370 | ||
10371 | ||
10372 | ||
10373 | # | |
10374 | # Do we need to explicitly link libc? | |
10375 | # | |
10376 | case "x$archive_cmds_need_lc" in | |
10377 | x|xyes) | |
10378 | # Assume -lc should be added | |
10379 | archive_cmds_need_lc=yes | |
10380 | ||
10381 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10382 | case $archive_cmds in | |
10383 | *'~'*) | |
10384 | # FIXME: we may have to deal with multi-command sequences. | |
10385 | ;; | |
10386 | '$CC '*) | |
10387 | # Test whether the compiler implicitly links with -lc since on some | |
10388 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10389 | # to ld, don't add -lc before -lgcc. | |
10390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10391 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10392 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10393 | $as_echo_n "(cached) " >&6 | |
10394 | else | |
10395 | $RM conftest* | |
10396 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10397 | ||
10398 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10399 | (eval $ac_compile) 2>&5 | |
10400 | ac_status=$? | |
10401 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10402 | test $ac_status = 0; } 2>conftest.err; then | |
10403 | soname=conftest | |
10404 | lib=conftest | |
10405 | libobjs=conftest.$ac_objext | |
10406 | deplibs= | |
10407 | wl=$lt_prog_compiler_wl | |
10408 | pic_flag=$lt_prog_compiler_pic | |
10409 | compiler_flags=-v | |
10410 | linker_flags=-v | |
10411 | verstring= | |
10412 | output_objdir=. | |
10413 | libname=conftest | |
10414 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10415 | allow_undefined_flag= | |
10416 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10417 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10418 | ac_status=$? | |
10419 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10420 | test $ac_status = 0; } | |
10421 | then | |
10422 | lt_cv_archive_cmds_need_lc=no | |
10423 | else | |
10424 | lt_cv_archive_cmds_need_lc=yes | |
10425 | fi | |
10426 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10427 | else | |
10428 | cat conftest.err 1>&5 | |
10429 | fi | |
10430 | $RM conftest* | |
10431 | ||
10432 | fi | |
10433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10434 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10435 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10436 | ;; | |
10437 | esac | |
10438 | fi | |
10439 | ;; | |
10440 | esac | |
10441 | ||
10442 | ||
10443 | ||
10444 | ||
10445 | ||
10446 | ||
10447 | ||
10448 | ||
10449 | ||
10450 | ||
10451 | ||
10452 | ||
10453 | ||
10454 | ||
10455 | ||
10456 | ||
10457 | ||
10458 | ||
10459 | ||
10460 | ||
10461 | ||
10462 | ||
10463 | ||
10464 | ||
10465 | ||
10466 | ||
10467 | ||
10468 | ||
10469 | ||
10470 | ||
10471 | ||
10472 | ||
10473 | ||
10474 | ||
10475 | ||
10476 | ||
10477 | ||
10478 | ||
10479 | ||
10480 | ||
10481 | ||
10482 | ||
10483 | ||
10484 | ||
10485 | ||
10486 | ||
10487 | ||
10488 | ||
10489 | ||
10490 | ||
10491 | ||
10492 | ||
10493 | ||
10494 | ||
10495 | ||
10496 | ||
10497 | ||
10498 | ||
10499 | ||
10500 | ||
10501 | ||
10502 | ||
10503 | ||
10504 | ||
10505 | ||
10506 | ||
10507 | ||
10508 | ||
10509 | ||
10510 | ||
10511 | ||
10512 | ||
10513 | ||
10514 | ||
10515 | ||
10516 | ||
10517 | ||
10518 | ||
10519 | ||
10520 | ||
10521 | ||
10522 | ||
10523 | ||
10524 | ||
10525 | ||
10526 | ||
10527 | ||
10528 | ||
10529 | ||
10530 | ||
10531 | ||
10532 | ||
10533 | ||
10534 | ||
10535 | ||
10536 | ||
10537 | ||
10538 | ||
10539 | ||
10540 | ||
10541 | ||
10542 | ||
10543 | ||
10544 | ||
10545 | ||
10546 | ||
10547 | ||
10548 | ||
10549 | ||
10550 | ||
10551 | ||
10552 | ||
10553 | ||
10554 | ||
10555 | ||
10556 | ||
10557 | ||
10558 | ||
10559 | ||
10560 | ||
10561 | ||
10562 | ||
10563 | ||
10564 | ||
10565 | ||
10566 | ||
10567 | ||
10568 | ||
10569 | ||
10570 | ||
10571 | ||
10572 | ||
10573 | ||
10574 | ||
10575 | ||
10576 | ||
10577 | ||
10578 | ||
10579 | ||
10580 | ||
10581 | ||
10582 | ||
10583 | ||
10584 | ||
10585 | ||
10586 | ||
10587 | ||
10588 | ||
10589 | ||
10590 | ||
10591 | ||
10592 | ||
10593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10594 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10595 | ||
10596 | if test "$GCC" = yes; then | |
10597 | case $host_os in | |
10598 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10599 | *) lt_awk_arg="/^libraries:/" ;; | |
10600 | esac | |
10601 | case $host_os in | |
10602 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10603 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10604 | esac | |
10605 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10606 | case $lt_search_path_spec in | |
10607 | *\;*) | |
10608 | # if the path contains ";" then we assume it to be the separator | |
10609 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10610 | # assumed that no part of a normal pathname contains ";" but that should | |
10611 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10612 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10613 | ;; | |
10614 | *) | |
10615 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10616 | ;; | |
10617 | esac | |
10618 | # Ok, now we have the path, separated by spaces, we can step through it | |
10619 | # and add multilib dir if necessary. | |
10620 | lt_tmp_lt_search_path_spec= | |
10621 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10622 | for lt_sys_path in $lt_search_path_spec; do | |
10623 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10624 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10625 | else | |
10626 | test -d "$lt_sys_path" && \ | |
10627 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10628 | fi | |
10629 | done | |
10630 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10631 | BEGIN {RS=" "; FS="/|\n";} { | |
10632 | lt_foo=""; | |
10633 | lt_count=0; | |
10634 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10635 | if ($lt_i != "" && $lt_i != ".") { | |
10636 | if ($lt_i == "..") { | |
10637 | lt_count++; | |
10638 | } else { | |
10639 | if (lt_count == 0) { | |
10640 | lt_foo="/" $lt_i lt_foo; | |
10641 | } else { | |
10642 | lt_count--; | |
10643 | } | |
10644 | } | |
10645 | } | |
10646 | } | |
10647 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10648 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10649 | }'` | |
10650 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10651 | # for these hosts. | |
10652 | case $host_os in | |
10653 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10654 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10655 | esac | |
10656 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10657 | else | |
10658 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10659 | fi | |
10660 | library_names_spec= | |
10661 | libname_spec='lib$name' | |
10662 | soname_spec= | |
10663 | shrext_cmds=".so" | |
10664 | postinstall_cmds= | |
10665 | postuninstall_cmds= | |
10666 | finish_cmds= | |
10667 | finish_eval= | |
10668 | shlibpath_var= | |
10669 | shlibpath_overrides_runpath=unknown | |
10670 | version_type=none | |
10671 | dynamic_linker="$host_os ld.so" | |
10672 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10673 | need_lib_prefix=unknown | |
10674 | hardcode_into_libs=no | |
10675 | ||
10676 | # when you set need_version to no, make sure it does not cause -set_version | |
10677 | # flags to be left without arguments | |
10678 | need_version=unknown | |
10679 | ||
10680 | case $host_os in | |
10681 | aix3*) | |
10682 | version_type=linux # correct to gnu/linux during the next big refactor | |
10683 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10684 | shlibpath_var=LIBPATH | |
10685 | ||
10686 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10687 | soname_spec='${libname}${release}${shared_ext}$major' | |
10688 | ;; | |
10689 | ||
10690 | aix[4-9]*) | |
10691 | version_type=linux # correct to gnu/linux during the next big refactor | |
10692 | need_lib_prefix=no | |
10693 | need_version=no | |
10694 | hardcode_into_libs=yes | |
10695 | if test "$host_cpu" = ia64; then | |
10696 | # AIX 5 supports IA64 | |
10697 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10698 | shlibpath_var=LD_LIBRARY_PATH | |
10699 | else | |
10700 | # With GCC up to 2.95.x, collect2 would create an import file | |
10701 | # for dependence libraries. The import file would start with | |
10702 | # the line `#! .'. This would cause the generated library to | |
10703 | # depend on `.', always an invalid library. This was fixed in | |
10704 | # development snapshots of GCC prior to 3.0. | |
10705 | case $host_os in | |
10706 | aix4 | aix4.[01] | aix4.[01].*) | |
10707 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10708 | echo ' yes ' | |
10709 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10710 | : | |
10711 | else | |
10712 | can_build_shared=no | |
10713 | fi | |
10714 | ;; | |
10715 | esac | |
10716 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10717 | # soname into executable. Probably we can add versioning support to | |
10718 | # collect2, so additional links can be useful in future. | |
10719 | if test "$aix_use_runtimelinking" = yes; then | |
10720 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10721 | # instead of lib<name>.a to let people know that these are not | |
10722 | # typical AIX shared libraries. | |
10723 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10724 | else | |
10725 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10726 | # and later when we are not doing run time linking. | |
10727 | library_names_spec='${libname}${release}.a $libname.a' | |
10728 | soname_spec='${libname}${release}${shared_ext}$major' | |
10729 | fi | |
10730 | shlibpath_var=LIBPATH | |
10731 | fi | |
10732 | ;; | |
10733 | ||
10734 | amigaos*) | |
10735 | case $host_cpu in | |
10736 | powerpc) | |
10737 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10738 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10739 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10740 | ;; | |
10741 | m68k) | |
10742 | library_names_spec='$libname.ixlibrary $libname.a' | |
10743 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10744 | 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' | |
10745 | ;; | |
10746 | esac | |
10747 | ;; | |
10748 | ||
10749 | beos*) | |
10750 | library_names_spec='${libname}${shared_ext}' | |
10751 | dynamic_linker="$host_os ld.so" | |
10752 | shlibpath_var=LIBRARY_PATH | |
10753 | ;; | |
10754 | ||
10755 | bsdi[45]*) | |
10756 | version_type=linux # correct to gnu/linux during the next big refactor | |
10757 | need_version=no | |
10758 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10759 | soname_spec='${libname}${release}${shared_ext}$major' | |
10760 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10761 | shlibpath_var=LD_LIBRARY_PATH | |
10762 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10763 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10764 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10765 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10766 | # libtool to hard-code these into programs | |
10767 | ;; | |
10768 | ||
10769 | cygwin* | mingw* | pw32* | cegcc*) | |
10770 | version_type=windows | |
10771 | shrext_cmds=".dll" | |
10772 | need_version=no | |
10773 | need_lib_prefix=no | |
10774 | ||
10775 | case $GCC,$cc_basename in | |
10776 | yes,*) | |
10777 | # gcc | |
10778 | library_names_spec='$libname.dll.a' | |
10779 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10780 | postinstall_cmds='base_file=`basename \${file}`~ | |
10781 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10782 | dldir=$destdir/`dirname \$dlpath`~ | |
10783 | test -d \$dldir || mkdir -p \$dldir~ | |
10784 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10785 | chmod a+x \$dldir/$dlname~ | |
10786 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10787 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10788 | fi' | |
10789 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10790 | dlpath=$dir/\$dldll~ | |
10791 | $RM \$dlpath' | |
10792 | shlibpath_overrides_runpath=yes | |
10793 | ||
10794 | case $host_os in | |
10795 | cygwin*) | |
10796 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10797 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10798 | ||
10799 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10800 | ;; | |
10801 | mingw* | cegcc*) | |
10802 | # MinGW DLLs use traditional 'lib' prefix | |
10803 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10804 | ;; | |
10805 | pw32*) | |
10806 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10807 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10808 | ;; | |
10809 | esac | |
10810 | dynamic_linker='Win32 ld.exe' | |
10811 | ;; | |
10812 | ||
10813 | *,cl*) | |
10814 | # Native MSVC | |
10815 | libname_spec='$name' | |
10816 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10817 | library_names_spec='${libname}.dll.lib' | |
10818 | ||
10819 | case $build_os in | |
10820 | mingw*) | |
10821 | sys_lib_search_path_spec= | |
10822 | lt_save_ifs=$IFS | |
10823 | IFS=';' | |
10824 | for lt_path in $LIB | |
10825 | do | |
10826 | IFS=$lt_save_ifs | |
10827 | # Let DOS variable expansion print the short 8.3 style file name. | |
10828 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10829 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10830 | done | |
10831 | IFS=$lt_save_ifs | |
10832 | # Convert to MSYS style. | |
10833 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10834 | ;; | |
10835 | cygwin*) | |
10836 | # Convert to unix form, then to dos form, then back to unix form | |
10837 | # but this time dos style (no spaces!) so that the unix form looks | |
10838 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10839 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10840 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10841 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10842 | ;; | |
10843 | *) | |
10844 | sys_lib_search_path_spec="$LIB" | |
10845 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10846 | # It is most probably a Windows format PATH. | |
10847 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10848 | else | |
10849 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10850 | fi | |
10851 | # FIXME: find the short name or the path components, as spaces are | |
10852 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
10853 | ;; | |
10854 | esac | |
10855 | ||
10856 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10857 | postinstall_cmds='base_file=`basename \${file}`~ | |
10858 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10859 | dldir=$destdir/`dirname \$dlpath`~ | |
10860 | test -d \$dldir || mkdir -p \$dldir~ | |
10861 | $install_prog $dir/$dlname \$dldir/$dlname' | |
10862 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10863 | dlpath=$dir/\$dldll~ | |
10864 | $RM \$dlpath' | |
10865 | shlibpath_overrides_runpath=yes | |
10866 | dynamic_linker='Win32 link.exe' | |
10867 | ;; | |
10868 | ||
10869 | *) | |
10870 | # Assume MSVC wrapper | |
10871 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10872 | dynamic_linker='Win32 ld.exe' | |
10873 | ;; | |
10874 | esac | |
10875 | # FIXME: first we should search . and the directory the executable is in | |
10876 | shlibpath_var=PATH | |
10877 | ;; | |
10878 | ||
10879 | darwin* | rhapsody*) | |
10880 | dynamic_linker="$host_os dyld" | |
10881 | version_type=darwin | |
10882 | need_lib_prefix=no | |
10883 | need_version=no | |
10884 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10885 | soname_spec='${libname}${release}${major}$shared_ext' | |
10886 | shlibpath_overrides_runpath=yes | |
10887 | shlibpath_var=DYLD_LIBRARY_PATH | |
10888 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10889 | ||
10890 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10891 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10892 | ;; | |
10893 | ||
10894 | dgux*) | |
10895 | version_type=linux # correct to gnu/linux during the next big refactor | |
10896 | need_lib_prefix=no | |
10897 | need_version=no | |
10898 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10899 | soname_spec='${libname}${release}${shared_ext}$major' | |
10900 | shlibpath_var=LD_LIBRARY_PATH | |
10901 | ;; | |
10902 | ||
10903 | freebsd* | dragonfly*) | |
10904 | # DragonFly does not have aout. When/if they implement a new | |
10905 | # versioning mechanism, adjust this. | |
10906 | if test -x /usr/bin/objformat; then | |
10907 | objformat=`/usr/bin/objformat` | |
10908 | else | |
10909 | case $host_os in | |
10910 | freebsd[23].*) objformat=aout ;; | |
10911 | *) objformat=elf ;; | |
10912 | esac | |
10913 | fi | |
10914 | version_type=freebsd-$objformat | |
10915 | case $version_type in | |
10916 | freebsd-elf*) | |
10917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10918 | need_version=no | |
10919 | need_lib_prefix=no | |
10920 | ;; | |
10921 | freebsd-*) | |
10922 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10923 | need_version=yes | |
10924 | ;; | |
10925 | esac | |
10926 | shlibpath_var=LD_LIBRARY_PATH | |
10927 | case $host_os in | |
10928 | freebsd2.*) | |
10929 | shlibpath_overrides_runpath=yes | |
10930 | ;; | |
10931 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10932 | shlibpath_overrides_runpath=yes | |
10933 | hardcode_into_libs=yes | |
10934 | ;; | |
10935 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10936 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10937 | shlibpath_overrides_runpath=no | |
10938 | hardcode_into_libs=yes | |
10939 | ;; | |
10940 | *) # from 4.6 on, and DragonFly | |
10941 | shlibpath_overrides_runpath=yes | |
10942 | hardcode_into_libs=yes | |
10943 | ;; | |
10944 | esac | |
10945 | ;; | |
10946 | ||
10947 | haiku*) | |
10948 | version_type=linux # correct to gnu/linux during the next big refactor | |
10949 | need_lib_prefix=no | |
10950 | need_version=no | |
10951 | dynamic_linker="$host_os runtime_loader" | |
10952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10953 | soname_spec='${libname}${release}${shared_ext}$major' | |
10954 | shlibpath_var=LIBRARY_PATH | |
10955 | shlibpath_overrides_runpath=yes | |
10956 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
10957 | hardcode_into_libs=yes | |
10958 | ;; | |
10959 | ||
10960 | hpux9* | hpux10* | hpux11*) | |
10961 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10962 | # link against other versions. | |
10963 | version_type=sunos | |
10964 | need_lib_prefix=no | |
10965 | need_version=no | |
10966 | case $host_cpu in | |
10967 | ia64*) | |
10968 | shrext_cmds='.so' | |
10969 | hardcode_into_libs=yes | |
10970 | dynamic_linker="$host_os dld.so" | |
10971 | shlibpath_var=LD_LIBRARY_PATH | |
10972 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10973 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10974 | soname_spec='${libname}${release}${shared_ext}$major' | |
10975 | if test "X$HPUX_IA64_MODE" = X32; then | |
10976 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10977 | else | |
10978 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10979 | fi | |
10980 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10981 | ;; | |
10982 | hppa*64*) | |
10983 | shrext_cmds='.sl' | |
10984 | hardcode_into_libs=yes | |
10985 | dynamic_linker="$host_os dld.sl" | |
10986 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10987 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10989 | soname_spec='${libname}${release}${shared_ext}$major' | |
10990 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10991 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10992 | ;; | |
10993 | *) | |
10994 | shrext_cmds='.sl' | |
10995 | dynamic_linker="$host_os dld.sl" | |
10996 | shlibpath_var=SHLIB_PATH | |
10997 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10998 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10999 | soname_spec='${libname}${release}${shared_ext}$major' | |
11000 | ;; | |
11001 | esac | |
11002 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11003 | postinstall_cmds='chmod 555 $lib' | |
11004 | # or fails outright, so override atomically: | |
11005 | install_override_mode=555 | |
11006 | ;; | |
11007 | ||
11008 | interix[3-9]*) | |
11009 | version_type=linux # correct to gnu/linux during the next big refactor | |
11010 | need_lib_prefix=no | |
11011 | need_version=no | |
11012 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11013 | soname_spec='${libname}${release}${shared_ext}$major' | |
11014 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11015 | shlibpath_var=LD_LIBRARY_PATH | |
11016 | shlibpath_overrides_runpath=no | |
11017 | hardcode_into_libs=yes | |
11018 | ;; | |
11019 | ||
11020 | irix5* | irix6* | nonstopux*) | |
11021 | case $host_os in | |
11022 | nonstopux*) version_type=nonstopux ;; | |
11023 | *) | |
11024 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11025 | version_type=linux # correct to gnu/linux during the next big refactor | |
11026 | else | |
11027 | version_type=irix | |
11028 | fi ;; | |
11029 | esac | |
11030 | need_lib_prefix=no | |
11031 | need_version=no | |
11032 | soname_spec='${libname}${release}${shared_ext}$major' | |
11033 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11034 | case $host_os in | |
11035 | irix5* | nonstopux*) | |
11036 | libsuff= shlibsuff= | |
11037 | ;; | |
11038 | *) | |
11039 | case $LD in # libtool.m4 will add one of these switches to LD | |
11040 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11041 | libsuff= shlibsuff= libmagic=32-bit;; | |
11042 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11043 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11044 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11045 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11046 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11047 | esac | |
11048 | ;; | |
11049 | esac | |
11050 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11051 | shlibpath_overrides_runpath=no | |
11052 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11053 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11054 | hardcode_into_libs=yes | |
11055 | ;; | |
11056 | ||
11057 | # No shared lib support for Linux oldld, aout, or coff. | |
11058 | linux*oldld* | linux*aout* | linux*coff*) | |
11059 | dynamic_linker=no | |
11060 | ;; | |
11061 | ||
11062 | # This must be glibc/ELF. | |
11063 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11064 | version_type=linux # correct to gnu/linux during the next big refactor | |
11065 | need_lib_prefix=no | |
11066 | need_version=no | |
11067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11068 | soname_spec='${libname}${release}${shared_ext}$major' | |
11069 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11070 | shlibpath_var=LD_LIBRARY_PATH | |
11071 | shlibpath_overrides_runpath=no | |
11072 | ||
11073 | # Some binutils ld are patched to set DT_RUNPATH | |
11074 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
11075 | $as_echo_n "(cached) " >&6 | |
11076 | else | |
11077 | lt_cv_shlibpath_overrides_runpath=no | |
11078 | save_LDFLAGS=$LDFLAGS | |
11079 | save_libdir=$libdir | |
11080 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11081 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11083 | /* end confdefs.h. */ | |
11084 | ||
11085 | int | |
11086 | main () | |
11087 | { | |
11088 | ||
11089 | ; | |
11090 | return 0; | |
11091 | } | |
11092 | _ACEOF | |
11093 | if ac_fn_c_try_link "$LINENO"; then : | |
11094 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11095 | lt_cv_shlibpath_overrides_runpath=yes | |
11096 | fi | |
11097 | fi | |
11098 | rm -f core conftest.err conftest.$ac_objext \ | |
11099 | conftest$ac_exeext conftest.$ac_ext | |
11100 | LDFLAGS=$save_LDFLAGS | |
11101 | libdir=$save_libdir | |
11102 | ||
11103 | fi | |
11104 | ||
11105 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
11106 | ||
11107 | # This implies no fast_install, which is unacceptable. | |
11108 | # Some rework will be needed to allow for fast_install | |
11109 | # before this can be enabled. | |
11110 | hardcode_into_libs=yes | |
11111 | ||
11112 | # Append ld.so.conf contents to the search path | |
11113 | if test -f /etc/ld.so.conf; then | |
11114 | 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' ' '` | |
11115 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11116 | fi | |
11117 | ||
11118 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11119 | # powerpc, because MkLinux only supported shared libraries with the | |
11120 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11121 | # most powerpc-linux boxes support dynamic linking these days and | |
11122 | # people can always --disable-shared, the test was removed, and we | |
11123 | # assume the GNU/Linux dynamic linker is in use. | |
11124 | dynamic_linker='GNU/Linux ld.so' | |
11125 | ;; | |
11126 | ||
11127 | netbsdelf*-gnu) | |
11128 | version_type=linux | |
11129 | need_lib_prefix=no | |
11130 | need_version=no | |
11131 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11132 | soname_spec='${libname}${release}${shared_ext}$major' | |
11133 | shlibpath_var=LD_LIBRARY_PATH | |
11134 | shlibpath_overrides_runpath=no | |
11135 | hardcode_into_libs=yes | |
11136 | dynamic_linker='NetBSD ld.elf_so' | |
11137 | ;; | |
11138 | ||
11139 | netbsd*) | |
11140 | version_type=sunos | |
11141 | need_lib_prefix=no | |
11142 | need_version=no | |
11143 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11144 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11145 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11146 | dynamic_linker='NetBSD (a.out) ld.so' | |
11147 | else | |
11148 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11149 | soname_spec='${libname}${release}${shared_ext}$major' | |
11150 | dynamic_linker='NetBSD ld.elf_so' | |
11151 | fi | |
11152 | shlibpath_var=LD_LIBRARY_PATH | |
11153 | shlibpath_overrides_runpath=yes | |
11154 | hardcode_into_libs=yes | |
11155 | ;; | |
11156 | ||
11157 | newsos6) | |
11158 | version_type=linux # correct to gnu/linux during the next big refactor | |
11159 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11160 | shlibpath_var=LD_LIBRARY_PATH | |
11161 | shlibpath_overrides_runpath=yes | |
11162 | ;; | |
11163 | ||
11164 | *nto* | *qnx*) | |
11165 | version_type=qnx | |
11166 | need_lib_prefix=no | |
11167 | need_version=no | |
11168 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11169 | soname_spec='${libname}${release}${shared_ext}$major' | |
11170 | shlibpath_var=LD_LIBRARY_PATH | |
11171 | shlibpath_overrides_runpath=no | |
11172 | hardcode_into_libs=yes | |
11173 | dynamic_linker='ldqnx.so' | |
11174 | ;; | |
11175 | ||
11176 | openbsd*) | |
11177 | version_type=sunos | |
11178 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11179 | need_lib_prefix=no | |
11180 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11181 | case $host_os in | |
11182 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11183 | *) need_version=no ;; | |
11184 | esac | |
11185 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11186 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11187 | shlibpath_var=LD_LIBRARY_PATH | |
11188 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11189 | case $host_os in | |
11190 | openbsd2.[89] | openbsd2.[89].*) | |
11191 | shlibpath_overrides_runpath=no | |
11192 | ;; | |
11193 | *) | |
11194 | shlibpath_overrides_runpath=yes | |
11195 | ;; | |
11196 | esac | |
11197 | else | |
11198 | shlibpath_overrides_runpath=yes | |
11199 | fi | |
11200 | ;; | |
11201 | ||
11202 | os2*) | |
11203 | libname_spec='$name' | |
11204 | shrext_cmds=".dll" | |
11205 | need_lib_prefix=no | |
11206 | library_names_spec='$libname${shared_ext} $libname.a' | |
11207 | dynamic_linker='OS/2 ld.exe' | |
11208 | shlibpath_var=LIBPATH | |
11209 | ;; | |
11210 | ||
11211 | osf3* | osf4* | osf5*) | |
11212 | version_type=osf | |
11213 | need_lib_prefix=no | |
11214 | need_version=no | |
11215 | soname_spec='${libname}${release}${shared_ext}$major' | |
11216 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11217 | shlibpath_var=LD_LIBRARY_PATH | |
11218 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11219 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11220 | ;; | |
11221 | ||
11222 | rdos*) | |
11223 | dynamic_linker=no | |
11224 | ;; | |
11225 | ||
11226 | solaris*) | |
11227 | version_type=linux # correct to gnu/linux during the next big refactor | |
11228 | need_lib_prefix=no | |
11229 | need_version=no | |
11230 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11231 | soname_spec='${libname}${release}${shared_ext}$major' | |
11232 | shlibpath_var=LD_LIBRARY_PATH | |
11233 | shlibpath_overrides_runpath=yes | |
11234 | hardcode_into_libs=yes | |
11235 | # ldd complains unless libraries are executable | |
11236 | postinstall_cmds='chmod +x $lib' | |
11237 | ;; | |
11238 | ||
11239 | sunos4*) | |
11240 | version_type=sunos | |
11241 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11242 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11243 | shlibpath_var=LD_LIBRARY_PATH | |
11244 | shlibpath_overrides_runpath=yes | |
11245 | if test "$with_gnu_ld" = yes; then | |
11246 | need_lib_prefix=no | |
11247 | fi | |
11248 | need_version=yes | |
11249 | ;; | |
11250 | ||
11251 | sysv4 | sysv4.3*) | |
11252 | version_type=linux # correct to gnu/linux during the next big refactor | |
11253 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11254 | soname_spec='${libname}${release}${shared_ext}$major' | |
11255 | shlibpath_var=LD_LIBRARY_PATH | |
11256 | case $host_vendor in | |
11257 | sni) | |
11258 | shlibpath_overrides_runpath=no | |
11259 | need_lib_prefix=no | |
11260 | runpath_var=LD_RUN_PATH | |
11261 | ;; | |
11262 | siemens) | |
11263 | need_lib_prefix=no | |
11264 | ;; | |
11265 | motorola) | |
11266 | need_lib_prefix=no | |
11267 | need_version=no | |
11268 | shlibpath_overrides_runpath=no | |
11269 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11270 | ;; | |
11271 | esac | |
11272 | ;; | |
11273 | ||
11274 | sysv4*MP*) | |
11275 | if test -d /usr/nec ;then | |
11276 | version_type=linux # correct to gnu/linux during the next big refactor | |
11277 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11278 | soname_spec='$libname${shared_ext}.$major' | |
11279 | shlibpath_var=LD_LIBRARY_PATH | |
11280 | fi | |
11281 | ;; | |
11282 | ||
11283 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11284 | version_type=freebsd-elf | |
11285 | need_lib_prefix=no | |
11286 | need_version=no | |
11287 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11288 | soname_spec='${libname}${release}${shared_ext}$major' | |
11289 | shlibpath_var=LD_LIBRARY_PATH | |
11290 | shlibpath_overrides_runpath=yes | |
11291 | hardcode_into_libs=yes | |
11292 | if test "$with_gnu_ld" = yes; then | |
11293 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11294 | else | |
11295 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11296 | case $host_os in | |
11297 | sco3.2v5*) | |
11298 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11299 | ;; | |
11300 | esac | |
11301 | fi | |
11302 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11303 | ;; | |
11304 | ||
11305 | tpf*) | |
11306 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11307 | version_type=linux # correct to gnu/linux during the next big refactor | |
11308 | need_lib_prefix=no | |
11309 | need_version=no | |
11310 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11311 | shlibpath_var=LD_LIBRARY_PATH | |
11312 | shlibpath_overrides_runpath=no | |
11313 | hardcode_into_libs=yes | |
11314 | ;; | |
11315 | ||
11316 | uts4*) | |
11317 | version_type=linux # correct to gnu/linux during the next big refactor | |
11318 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11319 | soname_spec='${libname}${release}${shared_ext}$major' | |
11320 | shlibpath_var=LD_LIBRARY_PATH | |
11321 | ;; | |
11322 | ||
11323 | *) | |
11324 | dynamic_linker=no | |
11325 | ;; | |
11326 | esac | |
11327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11328 | $as_echo "$dynamic_linker" >&6; } | |
11329 | test "$dynamic_linker" = no && can_build_shared=no | |
11330 | ||
11331 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11332 | if test "$GCC" = yes; then | |
11333 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11334 | fi | |
11335 | ||
11336 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
11337 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11338 | fi | |
11339 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11340 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11341 | fi | |
11342 | ||
11343 | ||
11344 | ||
11345 | ||
11346 | ||
11347 | ||
11348 | ||
11349 | ||
11350 | ||
11351 | ||
11352 | ||
11353 | ||
11354 | ||
11355 | ||
11356 | ||
11357 | ||
11358 | ||
11359 | ||
11360 | ||
11361 | ||
11362 | ||
11363 | ||
11364 | ||
11365 | ||
11366 | ||
11367 | ||
11368 | ||
11369 | ||
11370 | ||
11371 | ||
11372 | ||
11373 | ||
11374 | ||
11375 | ||
11376 | ||
11377 | ||
11378 | ||
11379 | ||
11380 | ||
11381 | ||
11382 | ||
11383 | ||
11384 | ||
11385 | ||
11386 | ||
11387 | ||
11388 | ||
11389 | ||
11390 | ||
11391 | ||
11392 | ||
11393 | ||
11394 | ||
11395 | ||
11396 | ||
11397 | ||
11398 | ||
11399 | ||
11400 | ||
11401 | ||
11402 | ||
11403 | ||
11404 | ||
11405 | ||
11406 | ||
11407 | ||
11408 | ||
11409 | ||
11410 | ||
11411 | ||
11412 | ||
11413 | ||
11414 | ||
11415 | ||
11416 | ||
11417 | ||
11418 | ||
11419 | ||
11420 | ||
11421 | ||
11422 | ||
11423 | ||
11424 | ||
11425 | ||
11426 | ||
11427 | ||
11428 | ||
11429 | ||
11430 | ||
11431 | ||
11432 | ||
11433 | ||
11434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11435 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11436 | hardcode_action= | |
11437 | if test -n "$hardcode_libdir_flag_spec" || | |
11438 | test -n "$runpath_var" || | |
11439 | test "X$hardcode_automatic" = "Xyes" ; then | |
11440 | ||
11441 | # We can hardcode non-existent directories. | |
11442 | if test "$hardcode_direct" != no && | |
11443 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11444 | # have to relink, otherwise we might link with an installed library | |
11445 | # when we should be linking with a yet-to-be-installed one | |
11446 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11447 | test "$hardcode_minus_L" != no; then | |
11448 | # Linking always hardcodes the temporary library directory. | |
11449 | hardcode_action=relink | |
11450 | else | |
11451 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11452 | hardcode_action=immediate | |
11453 | fi | |
11454 | else | |
11455 | # We cannot hardcode anything, or else we can only hardcode existing | |
11456 | # directories. | |
11457 | hardcode_action=unsupported | |
11458 | fi | |
11459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11460 | $as_echo "$hardcode_action" >&6; } | |
11461 | ||
11462 | if test "$hardcode_action" = relink || | |
11463 | test "$inherit_rpath" = yes; then | |
11464 | # Fast installation is not supported | |
11465 | enable_fast_install=no | |
11466 | elif test "$shlibpath_overrides_runpath" = yes || | |
11467 | test "$enable_shared" = no; then | |
11468 | # Fast installation is not necessary | |
11469 | enable_fast_install=needless | |
11470 | fi | |
11471 | ||
11472 | ||
11473 | ||
11474 | ||
11475 | ||
11476 | ||
11477 | if test "x$enable_dlopen" != xyes; then | |
11478 | enable_dlopen=unknown | |
11479 | enable_dlopen_self=unknown | |
11480 | enable_dlopen_self_static=unknown | |
11481 | else | |
11482 | lt_cv_dlopen=no | |
11483 | lt_cv_dlopen_libs= | |
11484 | ||
11485 | case $host_os in | |
11486 | beos*) | |
11487 | lt_cv_dlopen="load_add_on" | |
11488 | lt_cv_dlopen_libs= | |
11489 | lt_cv_dlopen_self=yes | |
11490 | ;; | |
11491 | ||
11492 | mingw* | pw32* | cegcc*) | |
11493 | lt_cv_dlopen="LoadLibrary" | |
11494 | lt_cv_dlopen_libs= | |
11495 | ;; | |
11496 | ||
11497 | cygwin*) | |
11498 | lt_cv_dlopen="dlopen" | |
11499 | lt_cv_dlopen_libs= | |
11500 | ;; | |
11501 | ||
11502 | darwin*) | |
11503 | # if libdl is installed we need to link against it | |
11504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11505 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11506 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11507 | $as_echo_n "(cached) " >&6 | |
11508 | else | |
11509 | ac_check_lib_save_LIBS=$LIBS | |
11510 | LIBS="-ldl $LIBS" | |
11511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11512 | /* end confdefs.h. */ | |
11513 | ||
11514 | /* Override any GCC internal prototype to avoid an error. | |
11515 | Use char because int might match the return type of a GCC | |
11516 | builtin and then its argument prototype would still apply. */ | |
11517 | #ifdef __cplusplus | |
11518 | extern "C" | |
11519 | #endif | |
11520 | char dlopen (); | |
11521 | int | |
11522 | main () | |
11523 | { | |
11524 | return dlopen (); | |
11525 | ; | |
11526 | return 0; | |
11527 | } | |
11528 | _ACEOF | |
11529 | if ac_fn_c_try_link "$LINENO"; then : | |
11530 | ac_cv_lib_dl_dlopen=yes | |
11531 | else | |
11532 | ac_cv_lib_dl_dlopen=no | |
11533 | fi | |
11534 | rm -f core conftest.err conftest.$ac_objext \ | |
11535 | conftest$ac_exeext conftest.$ac_ext | |
11536 | LIBS=$ac_check_lib_save_LIBS | |
11537 | fi | |
11538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11539 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11540 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11541 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11542 | else | |
11543 | ||
11544 | lt_cv_dlopen="dyld" | |
11545 | lt_cv_dlopen_libs= | |
11546 | lt_cv_dlopen_self=yes | |
11547 | ||
11548 | fi | |
11549 | ||
11550 | ;; | |
11551 | ||
11552 | *) | |
11553 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11554 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
11555 | lt_cv_dlopen="shl_load" | |
11556 | else | |
11557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11558 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11559 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11560 | $as_echo_n "(cached) " >&6 | |
11561 | else | |
11562 | ac_check_lib_save_LIBS=$LIBS | |
11563 | LIBS="-ldld $LIBS" | |
11564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11565 | /* end confdefs.h. */ | |
11566 | ||
11567 | /* Override any GCC internal prototype to avoid an error. | |
11568 | Use char because int might match the return type of a GCC | |
11569 | builtin and then its argument prototype would still apply. */ | |
11570 | #ifdef __cplusplus | |
11571 | extern "C" | |
11572 | #endif | |
11573 | char shl_load (); | |
11574 | int | |
11575 | main () | |
11576 | { | |
11577 | return shl_load (); | |
11578 | ; | |
11579 | return 0; | |
11580 | } | |
11581 | _ACEOF | |
11582 | if ac_fn_c_try_link "$LINENO"; then : | |
11583 | ac_cv_lib_dld_shl_load=yes | |
11584 | else | |
11585 | ac_cv_lib_dld_shl_load=no | |
11586 | fi | |
11587 | rm -f core conftest.err conftest.$ac_objext \ | |
11588 | conftest$ac_exeext conftest.$ac_ext | |
11589 | LIBS=$ac_check_lib_save_LIBS | |
11590 | fi | |
11591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11592 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11593 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11594 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
11595 | else | |
11596 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11597 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
11598 | lt_cv_dlopen="dlopen" | |
11599 | else | |
11600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11601 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11602 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11603 | $as_echo_n "(cached) " >&6 | |
11604 | else | |
11605 | ac_check_lib_save_LIBS=$LIBS | |
11606 | LIBS="-ldl $LIBS" | |
11607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11608 | /* end confdefs.h. */ | |
11609 | ||
11610 | /* Override any GCC internal prototype to avoid an error. | |
11611 | Use char because int might match the return type of a GCC | |
11612 | builtin and then its argument prototype would still apply. */ | |
11613 | #ifdef __cplusplus | |
11614 | extern "C" | |
11615 | #endif | |
11616 | char dlopen (); | |
11617 | int | |
11618 | main () | |
11619 | { | |
11620 | return dlopen (); | |
11621 | ; | |
11622 | return 0; | |
11623 | } | |
11624 | _ACEOF | |
11625 | if ac_fn_c_try_link "$LINENO"; then : | |
11626 | ac_cv_lib_dl_dlopen=yes | |
11627 | else | |
11628 | ac_cv_lib_dl_dlopen=no | |
11629 | fi | |
11630 | rm -f core conftest.err conftest.$ac_objext \ | |
11631 | conftest$ac_exeext conftest.$ac_ext | |
11632 | LIBS=$ac_check_lib_save_LIBS | |
11633 | fi | |
11634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11635 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11636 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11637 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11638 | else | |
11639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11640 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11641 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
11642 | $as_echo_n "(cached) " >&6 | |
11643 | else | |
11644 | ac_check_lib_save_LIBS=$LIBS | |
11645 | LIBS="-lsvld $LIBS" | |
11646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11647 | /* end confdefs.h. */ | |
11648 | ||
11649 | /* Override any GCC internal prototype to avoid an error. | |
11650 | Use char because int might match the return type of a GCC | |
11651 | builtin and then its argument prototype would still apply. */ | |
11652 | #ifdef __cplusplus | |
11653 | extern "C" | |
11654 | #endif | |
11655 | char dlopen (); | |
11656 | int | |
11657 | main () | |
11658 | { | |
11659 | return dlopen (); | |
11660 | ; | |
11661 | return 0; | |
11662 | } | |
11663 | _ACEOF | |
11664 | if ac_fn_c_try_link "$LINENO"; then : | |
11665 | ac_cv_lib_svld_dlopen=yes | |
11666 | else | |
11667 | ac_cv_lib_svld_dlopen=no | |
11668 | fi | |
11669 | rm -f core conftest.err conftest.$ac_objext \ | |
11670 | conftest$ac_exeext conftest.$ac_ext | |
11671 | LIBS=$ac_check_lib_save_LIBS | |
11672 | fi | |
11673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11674 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11675 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11676 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11677 | else | |
11678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11679 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11680 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11681 | $as_echo_n "(cached) " >&6 | |
11682 | else | |
11683 | ac_check_lib_save_LIBS=$LIBS | |
11684 | LIBS="-ldld $LIBS" | |
11685 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11686 | /* end confdefs.h. */ | |
11687 | ||
11688 | /* Override any GCC internal prototype to avoid an error. | |
11689 | Use char because int might match the return type of a GCC | |
11690 | builtin and then its argument prototype would still apply. */ | |
11691 | #ifdef __cplusplus | |
11692 | extern "C" | |
11693 | #endif | |
11694 | char dld_link (); | |
11695 | int | |
11696 | main () | |
11697 | { | |
11698 | return dld_link (); | |
11699 | ; | |
11700 | return 0; | |
11701 | } | |
11702 | _ACEOF | |
11703 | if ac_fn_c_try_link "$LINENO"; then : | |
11704 | ac_cv_lib_dld_dld_link=yes | |
11705 | else | |
11706 | ac_cv_lib_dld_dld_link=no | |
11707 | fi | |
11708 | rm -f core conftest.err conftest.$ac_objext \ | |
11709 | conftest$ac_exeext conftest.$ac_ext | |
11710 | LIBS=$ac_check_lib_save_LIBS | |
11711 | fi | |
11712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11713 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11714 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
11715 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
11716 | fi | |
11717 | ||
11718 | ||
11719 | fi | |
11720 | ||
11721 | ||
11722 | fi | |
11723 | ||
11724 | ||
11725 | fi | |
11726 | ||
11727 | ||
11728 | fi | |
11729 | ||
11730 | ||
11731 | fi | |
11732 | ||
11733 | ;; | |
11734 | esac | |
11735 | ||
11736 | if test "x$lt_cv_dlopen" != xno; then | |
11737 | enable_dlopen=yes | |
11738 | else | |
11739 | enable_dlopen=no | |
11740 | fi | |
11741 | ||
11742 | case $lt_cv_dlopen in | |
11743 | dlopen) | |
11744 | save_CPPFLAGS="$CPPFLAGS" | |
11745 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11746 | ||
11747 | save_LDFLAGS="$LDFLAGS" | |
11748 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11749 | ||
11750 | save_LIBS="$LIBS" | |
11751 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11752 | ||
11753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11754 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11755 | if ${lt_cv_dlopen_self+:} false; then : | |
11756 | $as_echo_n "(cached) " >&6 | |
11757 | else | |
11758 | if test "$cross_compiling" = yes; then : | |
11759 | lt_cv_dlopen_self=cross | |
11760 | else | |
11761 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11762 | lt_status=$lt_dlunknown | |
11763 | cat > conftest.$ac_ext <<_LT_EOF | |
11764 | #line $LINENO "configure" | |
11765 | #include "confdefs.h" | |
11766 | ||
11767 | #if HAVE_DLFCN_H | |
11768 | #include <dlfcn.h> | |
11769 | #endif | |
11770 | ||
11771 | #include <stdio.h> | |
11772 | ||
11773 | #ifdef RTLD_GLOBAL | |
11774 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11775 | #else | |
11776 | # ifdef DL_GLOBAL | |
11777 | # define LT_DLGLOBAL DL_GLOBAL | |
11778 | # else | |
11779 | # define LT_DLGLOBAL 0 | |
11780 | # endif | |
11781 | #endif | |
11782 | ||
11783 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11784 | find out it does not work in some platform. */ | |
11785 | #ifndef LT_DLLAZY_OR_NOW | |
11786 | # ifdef RTLD_LAZY | |
11787 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11788 | # else | |
11789 | # ifdef DL_LAZY | |
11790 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11791 | # else | |
11792 | # ifdef RTLD_NOW | |
11793 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11794 | # else | |
11795 | # ifdef DL_NOW | |
11796 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11797 | # else | |
11798 | # define LT_DLLAZY_OR_NOW 0 | |
11799 | # endif | |
11800 | # endif | |
11801 | # endif | |
11802 | # endif | |
11803 | #endif | |
11804 | ||
11805 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11806 | correspondingly for the symbols needed. */ | |
11807 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11808 | int fnord () __attribute__((visibility("default"))); | |
11809 | #endif | |
11810 | ||
11811 | int fnord () { return 42; } | |
11812 | int main () | |
11813 | { | |
11814 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11815 | int status = $lt_dlunknown; | |
11816 | ||
11817 | if (self) | |
11818 | { | |
11819 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11820 | else | |
11821 | { | |
11822 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11823 | else puts (dlerror ()); | |
11824 | } | |
11825 | /* dlclose (self); */ | |
11826 | } | |
11827 | else | |
11828 | puts (dlerror ()); | |
11829 | ||
11830 | return status; | |
11831 | } | |
11832 | _LT_EOF | |
11833 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11834 | (eval $ac_link) 2>&5 | |
11835 | ac_status=$? | |
11836 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11837 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11838 | (./conftest; exit; ) >&5 2>/dev/null | |
11839 | lt_status=$? | |
11840 | case x$lt_status in | |
11841 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11842 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11843 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11844 | esac | |
11845 | else : | |
11846 | # compilation failed | |
11847 | lt_cv_dlopen_self=no | |
11848 | fi | |
11849 | fi | |
11850 | rm -fr conftest* | |
11851 | ||
11852 | ||
11853 | fi | |
11854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
11855 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
11856 | ||
11857 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11858 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11860 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11861 | if ${lt_cv_dlopen_self_static+:} false; then : | |
11862 | $as_echo_n "(cached) " >&6 | |
11863 | else | |
11864 | if test "$cross_compiling" = yes; then : | |
11865 | lt_cv_dlopen_self_static=cross | |
11866 | else | |
11867 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11868 | lt_status=$lt_dlunknown | |
11869 | cat > conftest.$ac_ext <<_LT_EOF | |
11870 | #line $LINENO "configure" | |
11871 | #include "confdefs.h" | |
11872 | ||
11873 | #if HAVE_DLFCN_H | |
11874 | #include <dlfcn.h> | |
11875 | #endif | |
11876 | ||
11877 | #include <stdio.h> | |
11878 | ||
11879 | #ifdef RTLD_GLOBAL | |
11880 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11881 | #else | |
11882 | # ifdef DL_GLOBAL | |
11883 | # define LT_DLGLOBAL DL_GLOBAL | |
11884 | # else | |
11885 | # define LT_DLGLOBAL 0 | |
11886 | # endif | |
11887 | #endif | |
11888 | ||
11889 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11890 | find out it does not work in some platform. */ | |
11891 | #ifndef LT_DLLAZY_OR_NOW | |
11892 | # ifdef RTLD_LAZY | |
11893 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11894 | # else | |
11895 | # ifdef DL_LAZY | |
11896 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11897 | # else | |
11898 | # ifdef RTLD_NOW | |
11899 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11900 | # else | |
11901 | # ifdef DL_NOW | |
11902 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11903 | # else | |
11904 | # define LT_DLLAZY_OR_NOW 0 | |
11905 | # endif | |
11906 | # endif | |
11907 | # endif | |
11908 | # endif | |
11909 | #endif | |
11910 | ||
11911 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11912 | correspondingly for the symbols needed. */ | |
11913 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11914 | int fnord () __attribute__((visibility("default"))); | |
11915 | #endif | |
11916 | ||
11917 | int fnord () { return 42; } | |
11918 | int main () | |
11919 | { | |
11920 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11921 | int status = $lt_dlunknown; | |
11922 | ||
11923 | if (self) | |
11924 | { | |
11925 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11926 | else | |
11927 | { | |
11928 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11929 | else puts (dlerror ()); | |
11930 | } | |
11931 | /* dlclose (self); */ | |
11932 | } | |
11933 | else | |
11934 | puts (dlerror ()); | |
11935 | ||
11936 | return status; | |
11937 | } | |
11938 | _LT_EOF | |
11939 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11940 | (eval $ac_link) 2>&5 | |
11941 | ac_status=$? | |
11942 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11943 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11944 | (./conftest; exit; ) >&5 2>/dev/null | |
11945 | lt_status=$? | |
11946 | case x$lt_status in | |
11947 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11948 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11949 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11950 | esac | |
11951 | else : | |
11952 | # compilation failed | |
11953 | lt_cv_dlopen_self_static=no | |
11954 | fi | |
11955 | fi | |
11956 | rm -fr conftest* | |
11957 | ||
11958 | ||
11959 | fi | |
11960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
11961 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11962 | fi | |
11963 | ||
11964 | CPPFLAGS="$save_CPPFLAGS" | |
11965 | LDFLAGS="$save_LDFLAGS" | |
11966 | LIBS="$save_LIBS" | |
11967 | ;; | |
11968 | esac | |
11969 | ||
11970 | case $lt_cv_dlopen_self in | |
11971 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11972 | *) enable_dlopen_self=unknown ;; | |
11973 | esac | |
11974 | ||
11975 | case $lt_cv_dlopen_self_static in | |
11976 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11977 | *) enable_dlopen_self_static=unknown ;; | |
11978 | esac | |
11979 | fi | |
11980 | ||
11981 | ||
11982 | ||
11983 | ||
11984 | ||
11985 | ||
11986 | ||
11987 | ||
11988 | ||
11989 | ||
11990 | ||
11991 | ||
11992 | ||
11993 | ||
11994 | ||
11995 | ||
11996 | ||
11997 | striplib= | |
11998 | old_striplib= | |
11999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12000 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12001 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12002 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12003 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12005 | $as_echo "yes" >&6; } | |
12006 | else | |
12007 | # FIXME - insert some real tests, host_os isn't really good enough | |
12008 | case $host_os in | |
12009 | darwin*) | |
12010 | if test -n "$STRIP" ; then | |
12011 | striplib="$STRIP -x" | |
12012 | old_striplib="$STRIP -S" | |
12013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12014 | $as_echo "yes" >&6; } | |
12015 | else | |
12016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12017 | $as_echo "no" >&6; } | |
12018 | fi | |
12019 | ;; | |
12020 | *) | |
12021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12022 | $as_echo "no" >&6; } | |
12023 | ;; | |
12024 | esac | |
12025 | fi | |
12026 | ||
12027 | ||
12028 | ||
12029 | ||
12030 | ||
12031 | ||
12032 | ||
12033 | ||
12034 | ||
12035 | ||
12036 | ||
12037 | ||
12038 | # Report which library types will actually be built | |
12039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12040 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12042 | $as_echo "$can_build_shared" >&6; } | |
12043 | ||
12044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12045 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12046 | test "$can_build_shared" = "no" && enable_shared=no | |
12047 | ||
12048 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12049 | # are all built from PIC. | |
12050 | case $host_os in | |
12051 | aix3*) | |
12052 | test "$enable_shared" = yes && enable_static=no | |
12053 | if test -n "$RANLIB"; then | |
12054 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12055 | postinstall_cmds='$RANLIB $lib' | |
12056 | fi | |
12057 | ;; | |
12058 | ||
12059 | aix[4-9]*) | |
12060 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12061 | test "$enable_shared" = yes && enable_static=no | |
12062 | fi | |
12063 | ;; | |
12064 | esac | |
12065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12066 | $as_echo "$enable_shared" >&6; } | |
12067 | ||
12068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12069 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12070 | # Make sure either enable_shared or enable_static is yes. | |
12071 | test "$enable_shared" = yes || enable_static=yes | |
12072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12073 | $as_echo "$enable_static" >&6; } | |
12074 | ||
12075 | ||
12076 | ||
12077 | ||
12078 | fi | |
12079 | ac_ext=c | |
12080 | ac_cpp='$CPP $CPPFLAGS' | |
12081 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12082 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12083 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12084 | ||
12085 | CC="$lt_save_CC" | |
12086 | ||
12087 | ||
12088 | ||
12089 | ||
12090 | ||
12091 | ||
12092 | ||
12093 | ||
12094 | ||
12095 | ||
12096 | ||
12097 | ||
12098 | ||
12099 | ||
12100 | ||
12101 | ac_config_commands="$ac_config_commands libtool" | |
12102 | ||
12103 | ||
12104 | ||
12105 | ||
12106 | # Only expand once: | |
12107 | ||
12108 | ||
12109 | ||
12110 | ||
12111 | ||
12112 | ||
12113 | ||
12114 | ||
12115 | ||
12116 | ||
12117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 | |
12118 | $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } | |
12119 | if ${libltdl_cv_shlibext+:} false; then : | |
12120 | $as_echo_n "(cached) " >&6 | |
12121 | else | |
12122 | ||
12123 | module=yes | |
12124 | eval libltdl_cv_shlibext=$shrext_cmds | |
12125 | module=no | |
12126 | eval libltdl_cv_shrext=$shrext_cmds | |
12127 | ||
12128 | fi | |
12129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 | |
12130 | $as_echo "$libltdl_cv_shlibext" >&6; } | |
12131 | if test -n "$libltdl_cv_shlibext"; then | |
12132 | ||
12133 | cat >>confdefs.h <<_ACEOF | |
12134 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" | |
12135 | _ACEOF | |
12136 | ||
12137 | fi | |
12138 | if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then | |
12139 | ||
12140 | cat >>confdefs.h <<_ACEOF | |
12141 | #define LT_SHARED_EXT "$libltdl_cv_shrext" | |
12142 | _ACEOF | |
12143 | ||
12144 | fi | |
12145 | ||
12146 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 | |
12147 | $as_echo_n "checking which variable specifies run-time module search path... " >&6; } | |
12148 | if ${lt_cv_module_path_var+:} false; then : | |
12149 | $as_echo_n "(cached) " >&6 | |
12150 | else | |
12151 | lt_cv_module_path_var="$shlibpath_var" | |
12152 | fi | |
12153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 | |
12154 | $as_echo "$lt_cv_module_path_var" >&6; } | |
12155 | if test -n "$lt_cv_module_path_var"; then | |
12156 | ||
12157 | cat >>confdefs.h <<_ACEOF | |
12158 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" | |
12159 | _ACEOF | |
12160 | ||
12161 | fi | |
12162 | ||
12163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 | |
12164 | $as_echo_n "checking for the default library search path... " >&6; } | |
12165 | if ${lt_cv_sys_dlsearch_path+:} false; then : | |
12166 | $as_echo_n "(cached) " >&6 | |
12167 | else | |
12168 | lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" | |
12169 | fi | |
12170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 | |
12171 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } | |
12172 | if test -n "$lt_cv_sys_dlsearch_path"; then | |
12173 | sys_dlsearch_path= | |
12174 | for dir in $lt_cv_sys_dlsearch_path; do | |
12175 | if test -z "$sys_dlsearch_path"; then | |
12176 | sys_dlsearch_path="$dir" | |
12177 | else | |
12178 | sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" | |
12179 | fi | |
12180 | done | |
12181 | ||
12182 | cat >>confdefs.h <<_ACEOF | |
12183 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" | |
12184 | _ACEOF | |
12185 | ||
12186 | fi | |
12187 | ||
12188 | ||
12189 | LT_DLLOADERS= | |
12190 | ||
12191 | ||
12192 | ac_ext=c | |
12193 | ac_cpp='$CPP $CPPFLAGS' | |
12194 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12195 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12196 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12197 | ||
12198 | ||
12199 | LIBADD_DLOPEN= | |
12200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | |
12201 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
12202 | if ${ac_cv_search_dlopen+:} false; then : | |
12203 | $as_echo_n "(cached) " >&6 | |
12204 | else | |
12205 | ac_func_search_save_LIBS=$LIBS | |
12206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12207 | /* end confdefs.h. */ | |
12208 | ||
12209 | /* Override any GCC internal prototype to avoid an error. | |
12210 | Use char because int might match the return type of a GCC | |
12211 | builtin and then its argument prototype would still apply. */ | |
12212 | #ifdef __cplusplus | |
12213 | extern "C" | |
12214 | #endif | |
12215 | char dlopen (); | |
12216 | int | |
12217 | main () | |
12218 | { | |
12219 | return dlopen (); | |
12220 | ; | |
12221 | return 0; | |
12222 | } | |
12223 | _ACEOF | |
12224 | for ac_lib in '' dl; do | |
12225 | if test -z "$ac_lib"; then | |
12226 | ac_res="none required" | |
12227 | else | |
12228 | ac_res=-l$ac_lib | |
12229 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12230 | fi | |
12231 | if ac_fn_c_try_link "$LINENO"; then : | |
12232 | ac_cv_search_dlopen=$ac_res | |
12233 | fi | |
12234 | rm -f core conftest.err conftest.$ac_objext \ | |
12235 | conftest$ac_exeext | |
12236 | if ${ac_cv_search_dlopen+:} false; then : | |
12237 | break | |
12238 | fi | |
12239 | done | |
12240 | if ${ac_cv_search_dlopen+:} false; then : | |
12241 | ||
12242 | else | |
12243 | ac_cv_search_dlopen=no | |
12244 | fi | |
12245 | rm conftest.$ac_ext | |
12246 | LIBS=$ac_func_search_save_LIBS | |
12247 | fi | |
12248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 | |
12249 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
12250 | ac_res=$ac_cv_search_dlopen | |
12251 | if test "$ac_res" != no; then : | |
12252 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
12253 | ||
12254 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | |
12255 | ||
12256 | if test "$ac_cv_search_dlopen" != "none required" ; then | |
12257 | LIBADD_DLOPEN="-ldl" | |
12258 | fi | |
12259 | libltdl_cv_lib_dl_dlopen="yes" | |
12260 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
12261 | else | |
12262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12263 | /* end confdefs.h. */ | |
12264 | #if HAVE_DLFCN_H | |
12265 | # include <dlfcn.h> | |
12266 | #endif | |
12267 | ||
12268 | int | |
12269 | main () | |
12270 | { | |
12271 | dlopen(0, 0); | |
12272 | ; | |
12273 | return 0; | |
12274 | } | |
12275 | _ACEOF | |
12276 | if ac_fn_c_try_link "$LINENO"; then : | |
12277 | ||
12278 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | |
12279 | ||
12280 | libltdl_cv_func_dlopen="yes" | |
12281 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
12282 | else | |
12283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12284 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12285 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
12286 | $as_echo_n "(cached) " >&6 | |
12287 | else | |
12288 | ac_check_lib_save_LIBS=$LIBS | |
12289 | LIBS="-lsvld $LIBS" | |
12290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12291 | /* end confdefs.h. */ | |
12292 | ||
12293 | /* Override any GCC internal prototype to avoid an error. | |
12294 | Use char because int might match the return type of a GCC | |
12295 | builtin and then its argument prototype would still apply. */ | |
12296 | #ifdef __cplusplus | |
12297 | extern "C" | |
12298 | #endif | |
12299 | char dlopen (); | |
12300 | int | |
12301 | main () | |
12302 | { | |
12303 | return dlopen (); | |
12304 | ; | |
12305 | return 0; | |
12306 | } | |
12307 | _ACEOF | |
12308 | if ac_fn_c_try_link "$LINENO"; then : | |
12309 | ac_cv_lib_svld_dlopen=yes | |
12310 | else | |
12311 | ac_cv_lib_svld_dlopen=no | |
12312 | fi | |
12313 | rm -f core conftest.err conftest.$ac_objext \ | |
12314 | conftest$ac_exeext conftest.$ac_ext | |
12315 | LIBS=$ac_check_lib_save_LIBS | |
12316 | fi | |
12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
12318 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12319 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
12320 | ||
12321 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | |
12322 | ||
12323 | LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" | |
12324 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
12325 | fi | |
12326 | ||
12327 | fi | |
12328 | rm -f core conftest.err conftest.$ac_objext \ | |
12329 | conftest$ac_exeext conftest.$ac_ext | |
12330 | fi | |
12331 | ||
12332 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes | |
12333 | then | |
12334 | lt_save_LIBS="$LIBS" | |
12335 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12336 | for ac_func in dlerror | |
12337 | do : | |
12338 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" | |
12339 | if test "x$ac_cv_func_dlerror" = xyes; then : | |
12340 | cat >>confdefs.h <<_ACEOF | |
12341 | #define HAVE_DLERROR 1 | |
12342 | _ACEOF | |
12343 | ||
12344 | fi | |
12345 | done | |
12346 | ||
12347 | LIBS="$lt_save_LIBS" | |
12348 | fi | |
12349 | ||
12350 | ||
12351 | LIBADD_SHL_LOAD= | |
12352 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12353 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
12354 | ||
12355 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h | |
12356 | ||
12357 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" | |
12358 | else | |
12359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
12360 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12361 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12362 | $as_echo_n "(cached) " >&6 | |
12363 | else | |
12364 | ac_check_lib_save_LIBS=$LIBS | |
12365 | LIBS="-ldld $LIBS" | |
12366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12367 | /* end confdefs.h. */ | |
12368 | ||
12369 | /* Override any GCC internal prototype to avoid an error. | |
12370 | Use char because int might match the return type of a GCC | |
12371 | builtin and then its argument prototype would still apply. */ | |
12372 | #ifdef __cplusplus | |
12373 | extern "C" | |
12374 | #endif | |
12375 | char shl_load (); | |
12376 | int | |
12377 | main () | |
12378 | { | |
12379 | return shl_load (); | |
12380 | ; | |
12381 | return 0; | |
12382 | } | |
12383 | _ACEOF | |
12384 | if ac_fn_c_try_link "$LINENO"; then : | |
12385 | ac_cv_lib_dld_shl_load=yes | |
12386 | else | |
12387 | ac_cv_lib_dld_shl_load=no | |
12388 | fi | |
12389 | rm -f core conftest.err conftest.$ac_objext \ | |
12390 | conftest$ac_exeext conftest.$ac_ext | |
12391 | LIBS=$ac_check_lib_save_LIBS | |
12392 | fi | |
12393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
12394 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12395 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
12396 | ||
12397 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h | |
12398 | ||
12399 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" | |
12400 | LIBADD_SHL_LOAD="-ldld" | |
12401 | fi | |
12402 | ||
12403 | fi | |
12404 | ||
12405 | ||
12406 | ||
12407 | case $host_os in | |
12408 | darwin[1567].*) | |
12409 | # We only want this for pre-Mac OS X 10.4. | |
12410 | ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" | |
12411 | if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : | |
12412 | ||
12413 | $as_echo "#define HAVE_DYLD 1" >>confdefs.h | |
12414 | ||
12415 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" | |
12416 | fi | |
12417 | ||
12418 | ;; | |
12419 | beos*) | |
12420 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" | |
12421 | ;; | |
12422 | cygwin* | mingw* | os2* | pw32*) | |
12423 | ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> | |
12424 | " | |
12425 | if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : | |
12426 | ac_have_decl=1 | |
12427 | else | |
12428 | ac_have_decl=0 | |
12429 | fi | |
12430 | ||
12431 | cat >>confdefs.h <<_ACEOF | |
12432 | #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl | |
12433 | _ACEOF | |
12434 | ||
12435 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" | |
12436 | ;; | |
12437 | esac | |
12438 | ||
12439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
12440 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12441 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12442 | $as_echo_n "(cached) " >&6 | |
12443 | else | |
12444 | ac_check_lib_save_LIBS=$LIBS | |
12445 | LIBS="-ldld $LIBS" | |
12446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12447 | /* end confdefs.h. */ | |
12448 | ||
12449 | /* Override any GCC internal prototype to avoid an error. | |
12450 | Use char because int might match the return type of a GCC | |
12451 | builtin and then its argument prototype would still apply. */ | |
12452 | #ifdef __cplusplus | |
12453 | extern "C" | |
12454 | #endif | |
12455 | char dld_link (); | |
12456 | int | |
12457 | main () | |
12458 | { | |
12459 | return dld_link (); | |
12460 | ; | |
12461 | return 0; | |
12462 | } | |
12463 | _ACEOF | |
12464 | if ac_fn_c_try_link "$LINENO"; then : | |
12465 | ac_cv_lib_dld_dld_link=yes | |
12466 | else | |
12467 | ac_cv_lib_dld_dld_link=no | |
12468 | fi | |
12469 | rm -f core conftest.err conftest.$ac_objext \ | |
12470 | conftest$ac_exeext conftest.$ac_ext | |
12471 | LIBS=$ac_check_lib_save_LIBS | |
12472 | fi | |
12473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12474 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12475 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
12476 | ||
12477 | $as_echo "#define HAVE_DLD 1" >>confdefs.h | |
12478 | ||
12479 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" | |
12480 | fi | |
12481 | ||
12482 | ||
12483 | ||
12484 | ||
12485 | LT_DLPREOPEN= | |
12486 | if test -n "$LT_DLLOADERS" | |
12487 | then | |
12488 | for lt_loader in $LT_DLLOADERS; do | |
12489 | LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " | |
12490 | done | |
12491 | ||
12492 | $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h | |
12493 | ||
12494 | fi | |
12495 | ||
12496 | ||
12497 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" | |
12498 | ||
12499 | ||
12500 | ac_ext=c | |
12501 | ac_cpp='$CPP $CPPFLAGS' | |
12502 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12503 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12504 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12505 | ||
12506 | ||
12507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 | |
12508 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } | |
12509 | if ${lt_cv_sys_symbol_underscore+:} false; then : | |
12510 | $as_echo_n "(cached) " >&6 | |
12511 | else | |
12512 | lt_cv_sys_symbol_underscore=no | |
12513 | cat > conftest.$ac_ext <<_LT_EOF | |
12514 | void nm_test_func(){} | |
12515 | int main(){nm_test_func;return 0;} | |
12516 | _LT_EOF | |
12517 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
12518 | (eval $ac_compile) 2>&5 | |
12519 | ac_status=$? | |
12520 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12521 | test $ac_status = 0; }; then | |
12522 | # Now try to grab the symbols. | |
12523 | ac_nlist=conftest.nm | |
12524 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 | |
12525 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | |
12526 | ac_status=$? | |
12527 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12528 | test $ac_status = 0; } && test -s "$ac_nlist"; then | |
12529 | # See whether the symbols have a leading underscore. | |
12530 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | |
12531 | lt_cv_sys_symbol_underscore=yes | |
12532 | else | |
12533 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | |
12534 | : | |
12535 | else | |
12536 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | |
12537 | fi | |
12538 | fi | |
12539 | else | |
12540 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
12541 | fi | |
12542 | else | |
12543 | echo "configure: failed program was:" >&5 | |
12544 | cat conftest.c >&5 | |
12545 | fi | |
12546 | rm -rf conftest* | |
12547 | ||
12548 | fi | |
12549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 | |
12550 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } | |
12551 | sys_symbol_underscore=$lt_cv_sys_symbol_underscore | |
12552 | ||
12553 | ||
12554 | if test x"$lt_cv_sys_symbol_underscore" = xyes; then | |
12555 | if test x"$libltdl_cv_func_dlopen" = xyes || | |
12556 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | |
12557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 | |
12558 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } | |
12559 | if ${libltdl_cv_need_uscore+:} false; then : | |
12560 | $as_echo_n "(cached) " >&6 | |
12561 | else | |
12562 | libltdl_cv_need_uscore=unknown | |
12563 | save_LIBS="$LIBS" | |
12564 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12565 | if test "$cross_compiling" = yes; then : | |
12566 | libltdl_cv_need_uscore=cross | |
12567 | else | |
12568 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12569 | lt_status=$lt_dlunknown | |
12570 | cat > conftest.$ac_ext <<_LT_EOF | |
12571 | #line $LINENO "configure" | |
12572 | #include "confdefs.h" | |
12573 | ||
12574 | #if HAVE_DLFCN_H | |
12575 | #include <dlfcn.h> | |
12576 | #endif | |
12577 | ||
12578 | #include <stdio.h> | |
12579 | ||
12580 | #ifdef RTLD_GLOBAL | |
12581 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12582 | #else | |
12583 | # ifdef DL_GLOBAL | |
12584 | # define LT_DLGLOBAL DL_GLOBAL | |
12585 | # else | |
12586 | # define LT_DLGLOBAL 0 | |
12587 | # endif | |
12588 | #endif | |
12589 | ||
12590 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12591 | find out it does not work in some platform. */ | |
12592 | #ifndef LT_DLLAZY_OR_NOW | |
12593 | # ifdef RTLD_LAZY | |
12594 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12595 | # else | |
12596 | # ifdef DL_LAZY | |
12597 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12598 | # else | |
12599 | # ifdef RTLD_NOW | |
12600 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12601 | # else | |
12602 | # ifdef DL_NOW | |
12603 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12604 | # else | |
12605 | # define LT_DLLAZY_OR_NOW 0 | |
12606 | # endif | |
12607 | # endif | |
12608 | # endif | |
12609 | # endif | |
12610 | #endif | |
12611 | ||
12612 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12613 | correspondingly for the symbols needed. */ | |
12614 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12615 | int fnord () __attribute__((visibility("default"))); | |
12616 | #endif | |
12617 | ||
12618 | int fnord () { return 42; } | |
12619 | int main () | |
12620 | { | |
12621 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12622 | int status = $lt_dlunknown; | |
12623 | ||
12624 | if (self) | |
12625 | { | |
12626 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12627 | else | |
12628 | { | |
12629 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12630 | else puts (dlerror ()); | |
12631 | } | |
12632 | /* dlclose (self); */ | |
12633 | } | |
12634 | else | |
12635 | puts (dlerror ()); | |
12636 | ||
12637 | return status; | |
12638 | } | |
12639 | _LT_EOF | |
12640 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12641 | (eval $ac_link) 2>&5 | |
12642 | ac_status=$? | |
12643 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12644 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12645 | (./conftest; exit; ) >&5 2>/dev/null | |
12646 | lt_status=$? | |
12647 | case x$lt_status in | |
12648 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | |
12649 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | |
12650 | x$lt_dlunknown|x*) ;; | |
12651 | esac | |
12652 | else : | |
12653 | # compilation failed | |
12654 | ||
12655 | fi | |
12656 | fi | |
12657 | rm -fr conftest* | |
12658 | ||
12659 | LIBS="$save_LIBS" | |
12660 | ||
12661 | fi | |
12662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 | |
12663 | $as_echo "$libltdl_cv_need_uscore" >&6; } | |
12664 | fi | |
12665 | fi | |
12666 | ||
12667 | if test x"$libltdl_cv_need_uscore" = xyes; then | |
12668 | ||
12669 | $as_echo "#define NEED_USCORE 1" >>confdefs.h | |
12670 | ||
12671 | fi | |
12672 | ||
12673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 | |
12674 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } | |
12675 | if ${lt_cv_sys_dlopen_deplibs+:} false; then : | |
12676 | $as_echo_n "(cached) " >&6 | |
12677 | else | |
12678 | # PORTME does your system automatically load deplibs for dlopen? | |
12679 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | |
12680 | # For now, we just catch OSes we know something about -- in the | |
12681 | # future, we'll try test this programmatically. | |
12682 | lt_cv_sys_dlopen_deplibs=unknown | |
12683 | case $host_os in | |
12684 | aix3*|aix4.1.*|aix4.2.*) | |
12685 | # Unknown whether this is true for these versions of AIX, but | |
12686 | # we want this `case' here to explicitly catch those versions. | |
12687 | lt_cv_sys_dlopen_deplibs=unknown | |
12688 | ;; | |
12689 | aix[4-9]*) | |
12690 | lt_cv_sys_dlopen_deplibs=yes | |
12691 | ;; | |
12692 | amigaos*) | |
12693 | case $host_cpu in | |
12694 | powerpc) | |
12695 | lt_cv_sys_dlopen_deplibs=no | |
12696 | ;; | |
12697 | esac | |
12698 | ;; | |
12699 | darwin*) | |
12700 | # Assuming the user has installed a libdl from somewhere, this is true | |
12701 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | |
12702 | lt_cv_sys_dlopen_deplibs=yes | |
12703 | ;; | |
12704 | freebsd* | dragonfly*) | |
12705 | lt_cv_sys_dlopen_deplibs=yes | |
12706 | ;; | |
12707 | gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12708 | # GNU and its variants, using gnu ld.so (Glibc) | |
12709 | lt_cv_sys_dlopen_deplibs=yes | |
12710 | ;; | |
12711 | hpux10*|hpux11*) | |
12712 | lt_cv_sys_dlopen_deplibs=yes | |
12713 | ;; | |
12714 | interix*) | |
12715 | lt_cv_sys_dlopen_deplibs=yes | |
12716 | ;; | |
12717 | irix[12345]*|irix6.[01]*) | |
12718 | # Catch all versions of IRIX before 6.2, and indicate that we don't | |
12719 | # know how it worked for any of those versions. | |
12720 | lt_cv_sys_dlopen_deplibs=unknown | |
12721 | ;; | |
12722 | irix*) | |
12723 | # The case above catches anything before 6.2, and it's known that | |
12724 | # at 6.2 and later dlopen does load deplibs. | |
12725 | lt_cv_sys_dlopen_deplibs=yes | |
12726 | ;; | |
12727 | netbsd* | netbsdelf*-gnu) | |
12728 | lt_cv_sys_dlopen_deplibs=yes | |
12729 | ;; | |
12730 | openbsd*) | |
12731 | lt_cv_sys_dlopen_deplibs=yes | |
12732 | ;; | |
12733 | osf[1234]*) | |
12734 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | |
12735 | # it did *not* use an RPATH in a shared library to find objects the | |
12736 | # library depends on, so we explicitly say `no'. | |
12737 | lt_cv_sys_dlopen_deplibs=no | |
12738 | ;; | |
12739 | osf5.0|osf5.0a|osf5.1) | |
12740 | # dlopen *does* load deplibs and with the right loader patch applied | |
12741 | # it even uses RPATH in a shared library to search for shared objects | |
12742 | # that the library depends on, but there's no easy way to know if that | |
12743 | # patch is installed. Since this is the case, all we can really | |
12744 | # say is unknown -- it depends on the patch being installed. If | |
12745 | # it is, this changes to `yes'. Without it, it would be `no'. | |
12746 | lt_cv_sys_dlopen_deplibs=unknown | |
12747 | ;; | |
12748 | osf*) | |
12749 | # the two cases above should catch all versions of osf <= 5.1. Read | |
12750 | # the comments above for what we know about them. | |
12751 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | |
12752 | # is used to find them so we can finally say `yes'. | |
12753 | lt_cv_sys_dlopen_deplibs=yes | |
12754 | ;; | |
12755 | qnx*) | |
12756 | lt_cv_sys_dlopen_deplibs=yes | |
12757 | ;; | |
12758 | solaris*) | |
12759 | lt_cv_sys_dlopen_deplibs=yes | |
12760 | ;; | |
12761 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
12762 | libltdl_cv_sys_dlopen_deplibs=yes | |
12763 | ;; | |
12764 | esac | |
12765 | ||
12766 | fi | |
12767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 | |
12768 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } | |
12769 | if test "$lt_cv_sys_dlopen_deplibs" != yes; then | |
12770 | ||
12771 | $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h | |
12772 | ||
12773 | fi | |
12774 | ||
12775 | : | |
12776 | ||
12777 | for ac_header in argz.h | |
12778 | do : | |
12779 | ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default | |
12780 | " | |
12781 | if test "x$ac_cv_header_argz_h" = xyes; then : | |
12782 | cat >>confdefs.h <<_ACEOF | |
12783 | #define HAVE_ARGZ_H 1 | |
12784 | _ACEOF | |
12785 | ||
12786 | fi | |
12787 | ||
12788 | done | |
12789 | ||
12790 | ||
12791 | ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) | |
12792 | # include <argz.h> | |
12793 | #endif | |
12794 | " | |
12795 | if test "x$ac_cv_type_error_t" = xyes; then : | |
12796 | ||
12797 | cat >>confdefs.h <<_ACEOF | |
12798 | #define HAVE_ERROR_T 1 | |
12799 | _ACEOF | |
12800 | ||
12801 | ||
12802 | else | |
12803 | ||
12804 | $as_echo "#define error_t int" >>confdefs.h | |
12805 | ||
12806 | ||
12807 | $as_echo "#define __error_t_defined 1" >>confdefs.h | |
12808 | ||
12809 | fi | |
12810 | ||
12811 | ||
12812 | ARGZ_H= | |
12813 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ | |
12814 | argz_next argz_stringify | |
12815 | do : | |
12816 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12817 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
12818 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
12819 | cat >>confdefs.h <<_ACEOF | |
12820 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12821 | _ACEOF | |
12822 | ||
12823 | else | |
12824 | ARGZ_H=argz.h; | |
12825 | ||
12826 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" | |
12827 | ||
12828 | fi | |
12829 | done | |
12830 | ||
12831 | ||
12832 | if test -z "$ARGZ_H"; then : | |
12833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 | |
12834 | $as_echo_n "checking if argz actually works... " >&6; } | |
12835 | if ${lt_cv_sys_argz_works+:} false; then : | |
12836 | $as_echo_n "(cached) " >&6 | |
12837 | else | |
12838 | case $host_os in #( | |
12839 | *cygwin*) | |
12840 | lt_cv_sys_argz_works=no | |
12841 | if test "$cross_compiling" != no; then | |
12842 | lt_cv_sys_argz_works="guessing no" | |
12843 | else | |
12844 | lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' | |
12845 | save_IFS=$IFS | |
12846 | IFS=-. | |
12847 | set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` | |
12848 | IFS=$save_IFS | |
12849 | lt_os_major=${2-0} | |
12850 | lt_os_minor=${3-0} | |
12851 | lt_os_micro=${4-0} | |
12852 | if test "$lt_os_major" -gt 1 \ | |
12853 | || { test "$lt_os_major" -eq 1 \ | |
12854 | && { test "$lt_os_minor" -gt 5 \ | |
12855 | || { test "$lt_os_minor" -eq 5 \ | |
12856 | && test "$lt_os_micro" -gt 24; }; }; }; then | |
12857 | lt_cv_sys_argz_works=yes | |
12858 | fi | |
12859 | fi | |
12860 | ;; #( | |
12861 | *) lt_cv_sys_argz_works=yes ;; | |
12862 | esac | |
12863 | fi | |
12864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 | |
12865 | $as_echo "$lt_cv_sys_argz_works" >&6; } | |
12866 | if test "$lt_cv_sys_argz_works" = yes; then : | |
12867 | ||
12868 | $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h | |
12869 | ||
12870 | else | |
12871 | ARGZ_H=argz.h | |
12872 | ||
12873 | ||
12874 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" | |
12875 | ||
12876 | fi | |
12877 | fi | |
12878 | ||
12879 | ||
12880 | ||
12881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 | |
12882 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } | |
12883 | if ${libltdl_cv_preloaded_symbols+:} false; then : | |
12884 | $as_echo_n "(cached) " >&6 | |
12885 | else | |
12886 | if test -n "$lt_cv_sys_global_symbol_pipe"; then | |
12887 | libltdl_cv_preloaded_symbols=yes | |
12888 | else | |
12889 | libltdl_cv_preloaded_symbols=no | |
12890 | fi | |
12891 | ||
12892 | fi | |
12893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 | |
12894 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } | |
12895 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | |
12896 | ||
12897 | $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h | |
12898 | ||
12899 | fi | |
12900 | ||
12901 | ||
12902 | ||
12903 | # Set options | |
12904 | ||
12905 | ||
12906 | ||
12907 | ||
12908 | ||
12909 | ||
12910 | ||
12911 | ||
12912 | ||
12913 | ||
12914 | ||
12915 | ||
12916 | # Check whether --with-included_ltdl was given. | |
12917 | if test "${with_included_ltdl+set}" = set; then : | |
12918 | withval=$with_included_ltdl; | |
12919 | fi | |
12920 | ||
12921 | ||
12922 | if test "x$with_included_ltdl" != xyes; then | |
12923 | # We are not being forced to use the included libltdl sources, so | |
12924 | # decide whether there is a useful installed version we can use. | |
12925 | ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default | |
12926 | ||
12927 | " | |
12928 | if test "x$ac_cv_header_ltdl_h" = xyes; then : | |
12929 | ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default | |
12930 | #include <ltdl.h> | |
12931 | " | |
12932 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : | |
12933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 | |
12934 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } | |
12935 | if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : | |
12936 | $as_echo_n "(cached) " >&6 | |
12937 | else | |
12938 | ac_check_lib_save_LIBS=$LIBS | |
12939 | LIBS="-lltdl $LIBS" | |
12940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12941 | /* end confdefs.h. */ | |
12942 | ||
12943 | /* Override any GCC internal prototype to avoid an error. | |
12944 | Use char because int might match the return type of a GCC | |
12945 | builtin and then its argument prototype would still apply. */ | |
12946 | #ifdef __cplusplus | |
12947 | extern "C" | |
12948 | #endif | |
12949 | char lt_dladvise_preload (); | |
12950 | int | |
12951 | main () | |
12952 | { | |
12953 | return lt_dladvise_preload (); | |
12954 | ; | |
12955 | return 0; | |
12956 | } | |
12957 | _ACEOF | |
12958 | if ac_fn_c_try_link "$LINENO"; then : | |
12959 | ac_cv_lib_ltdl_lt_dladvise_preload=yes | |
12960 | else | |
12961 | ac_cv_lib_ltdl_lt_dladvise_preload=no | |
12962 | fi | |
12963 | rm -f core conftest.err conftest.$ac_objext \ | |
12964 | conftest$ac_exeext conftest.$ac_ext | |
12965 | LIBS=$ac_check_lib_save_LIBS | |
12966 | fi | |
12967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 | |
12968 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } | |
12969 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : | |
12970 | with_included_ltdl=no | |
12971 | else | |
12972 | with_included_ltdl=yes | |
12973 | fi | |
12974 | ||
12975 | else | |
12976 | with_included_ltdl=yes | |
12977 | fi | |
12978 | ||
12979 | else | |
12980 | with_included_ltdl=yes | |
12981 | fi | |
12982 | ||
12983 | ||
12984 | fi | |
12985 | ||
12986 | ||
12987 | ||
12988 | ||
12989 | # Check whether --with-ltdl_include was given. | |
12990 | if test "${with_ltdl_include+set}" = set; then : | |
12991 | withval=$with_ltdl_include; | |
12992 | fi | |
12993 | ||
12994 | ||
12995 | if test -n "$with_ltdl_include"; then | |
12996 | if test -f "$with_ltdl_include/ltdl.h"; then : | |
12997 | else | |
12998 | as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 | |
12999 | fi | |
13000 | else | |
13001 | with_ltdl_include=no | |
13002 | fi | |
13003 | ||
13004 | ||
13005 | # Check whether --with-ltdl_lib was given. | |
13006 | if test "${with_ltdl_lib+set}" = set; then : | |
13007 | withval=$with_ltdl_lib; | |
13008 | fi | |
13009 | ||
13010 | ||
13011 | if test -n "$with_ltdl_lib"; then | |
13012 | if test -f "$with_ltdl_lib/libltdl.la"; then : | |
13013 | else | |
13014 | as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 | |
13015 | fi | |
13016 | else | |
13017 | with_ltdl_lib=no | |
13018 | fi | |
13019 | ||
13020 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in | |
13021 | ,yes,no,no,) | |
13022 | case $enable_ltdl_convenience in | |
13023 | no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; | |
13024 | "") enable_ltdl_convenience=yes | |
13025 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | |
13026 | esac | |
13027 | LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" | |
13028 | LTDLDEPS=$LIBLTDL | |
13029 | LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" | |
13030 | ||
13031 | ||
13032 | ||
13033 | ||
13034 | ||
13035 | # For backwards non-gettext consistent compatibility... | |
13036 | INCLTDL="$LTDLINCL" | |
13037 | ||
13038 | ||
13039 | ;; | |
13040 | ,no,no,no,) | |
13041 | # If the included ltdl is not to be used, then use the | |
13042 | # preinstalled libltdl we found. | |
13043 | ||
13044 | $as_echo "#define HAVE_LTDL 1" >>confdefs.h | |
13045 | ||
13046 | LIBLTDL=-lltdl | |
13047 | LTDLDEPS= | |
13048 | LTDLINCL= | |
13049 | ;; | |
13050 | ,no*,no,*) | |
13051 | as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 | |
13052 | ;; | |
13053 | *) with_included_ltdl=no | |
13054 | LIBLTDL="-L$with_ltdl_lib -lltdl" | |
13055 | LTDLDEPS= | |
13056 | LTDLINCL="-I$with_ltdl_include" | |
13057 | ;; | |
13058 | esac | |
13059 | INCLTDL="$LTDLINCL" | |
13060 | ||
13061 | # Report our decision... | |
13062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 | |
13063 | $as_echo_n "checking where to find libltdl headers... " >&6; } | |
13064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 | |
13065 | $as_echo "$LTDLINCL" >&6; } | |
13066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 | |
13067 | $as_echo_n "checking where to find libltdl library... " >&6; } | |
13068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 | |
13069 | $as_echo "$LIBLTDL" >&6; } | |
13070 | ||
13071 | ||
13072 | ||
13073 | # Check whether --enable-ltdl-install was given. | |
13074 | if test "${enable_ltdl_install+set}" = set; then : | |
13075 | enableval=$enable_ltdl_install; | |
13076 | fi | |
13077 | ||
13078 | ||
13079 | case ,${enable_ltdl_install},${enable_ltdl_convenience} in | |
13080 | *yes*) ;; | |
13081 | *) enable_ltdl_convenience=yes ;; | |
13082 | esac | |
13083 | ||
13084 | if test x"${enable_ltdl_install-no}" != xno; then | |
13085 | INSTALL_LTDL_TRUE= | |
13086 | INSTALL_LTDL_FALSE='#' | |
13087 | else | |
13088 | INSTALL_LTDL_TRUE='#' | |
13089 | INSTALL_LTDL_FALSE= | |
13090 | fi | |
13091 | ||
13092 | if test x"${enable_ltdl_convenience-no}" != xno; then | |
13093 | CONVENIENCE_LTDL_TRUE= | |
13094 | CONVENIENCE_LTDL_FALSE='#' | |
13095 | else | |
13096 | CONVENIENCE_LTDL_TRUE='#' | |
13097 | CONVENIENCE_LTDL_FALSE= | |
13098 | fi | |
13099 | ||
13100 | ||
13101 | ||
13102 | subdirs="$subdirs extra/libltdl" | |
13103 | ||
13104 | ||
13105 | ||
13106 | ||
13107 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS | |
13108 | # the user used. This is so that ltdl.h can pick up the parent projects | |
13109 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the | |
13110 | # definitions required by ltdl.c. | |
13111 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). | |
13112 | ||
13113 | ||
13114 | ||
13115 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h | |
13116 | do : | |
13117 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13118 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
13119 | " | |
13120 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
13121 | cat >>confdefs.h <<_ACEOF | |
13122 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13123 | _ACEOF | |
13124 | ||
13125 | fi | |
13126 | ||
13127 | done | |
13128 | ||
13129 | ||
13130 | for ac_func in closedir opendir readdir | |
13131 | do : | |
13132 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13133 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13134 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13135 | cat >>confdefs.h <<_ACEOF | |
13136 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13137 | _ACEOF | |
13138 | ||
13139 | else | |
13140 | ||
13141 | ||
13142 | _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" | |
13143 | ||
13144 | fi | |
13145 | done | |
13146 | ||
13147 | for ac_func in strlcat strlcpy | |
13148 | do : | |
13149 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13150 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13151 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13152 | cat >>confdefs.h <<_ACEOF | |
13153 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13154 | _ACEOF | |
13155 | ||
13156 | else | |
13157 | ||
13158 | ||
13159 | _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" | |
13160 | ||
13161 | fi | |
13162 | done | |
13163 | ||
13164 | ||
13165 | ||
13166 | cat >>confdefs.h <<_ACEOF | |
13167 | #define LT_LIBEXT "$libext" | |
13168 | _ACEOF | |
13169 | ||
13170 | ||
13171 | name= | |
13172 | eval "lt_libprefix=\"$libname_spec\"" | |
13173 | ||
13174 | cat >>confdefs.h <<_ACEOF | |
13175 | #define LT_LIBPREFIX "$lt_libprefix" | |
13176 | _ACEOF | |
13177 | ||
13178 | ||
13179 | name=ltdl | |
13180 | eval "LTDLOPEN=\"$libname_spec\"" | |
13181 | ||
13182 | ||
13183 | ||
13184 | ||
13185 | ||
13186 | ||
13187 | ||
13188 | ||
13189 | # Only expand once: | |
13190 | ||
13191 | ||
13192 | ||
13193 | build_ltdl=$with_included_ltdl | |
13194 | if test x"$build_ltdl" = x"yes"; then | |
13195 | BUILD_LTDL_TRUE= | |
13196 | BUILD_LTDL_FALSE='#' | |
13197 | else | |
13198 | BUILD_LTDL_TRUE='#' | |
13199 | BUILD_LTDL_FALSE= | |
13200 | fi | |
13201 | ||
13202 | ||
13203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 | |
13204 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
13205 | if ${ac_cv_prog_cc_c99+:} false; then : | |
13206 | $as_echo_n "(cached) " >&6 | |
13207 | else | |
13208 | ac_cv_prog_cc_c99=no | |
13209 | ac_save_CC=$CC | |
13210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13211 | /* end confdefs.h. */ | |
13212 | #include <stdarg.h> | |
13213 | #include <stdbool.h> | |
13214 | #include <stdlib.h> | |
13215 | #include <wchar.h> | |
13216 | #include <stdio.h> | |
13217 | ||
13218 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
13219 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
13220 | #define showlist(...) puts (#__VA_ARGS__) | |
13221 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
13222 | static void | |
13223 | test_varargs_macros (void) | |
13224 | { | |
13225 | int x = 1234; | |
13226 | int y = 5678; | |
13227 | debug ("Flag"); | |
13228 | debug ("X = %d\n", x); | |
13229 | showlist (The first, second, and third items.); | |
13230 | report (x>y, "x is %d but y is %d", x, y); | |
13231 | } | |
13232 | ||
13233 | // Check long long types. | |
13234 | #define BIG64 18446744073709551615ull | |
13235 | #define BIG32 4294967295ul | |
13236 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
13237 | #if !BIG_OK | |
13238 | your preprocessor is broken; | |
13239 | #endif | |
13240 | #if BIG_OK | |
13241 | #else | |
13242 | your preprocessor is broken; | |
13243 | #endif | |
13244 | static long long int bignum = -9223372036854775807LL; | |
13245 | static unsigned long long int ubignum = BIG64; | |
13246 | ||
13247 | struct incomplete_array | |
13248 | { | |
13249 | int datasize; | |
13250 | double data[]; | |
13251 | }; | |
13252 | ||
13253 | struct named_init { | |
13254 | int number; | |
13255 | const wchar_t *name; | |
13256 | double average; | |
13257 | }; | |
13258 | ||
13259 | typedef const char *ccp; | |
13260 | ||
13261 | static inline int | |
13262 | test_restrict (ccp restrict text) | |
13263 | { | |
13264 | // See if C++-style comments work. | |
13265 | // Iterate through items via the restricted pointer. | |
13266 | // Also check for declarations in for loops. | |
13267 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
13268 | continue; | |
13269 | return 0; | |
13270 | } | |
13271 | ||
13272 | // Check varargs and va_copy. | |
13273 | static void | |
13274 | test_varargs (const char *format, ...) | |
13275 | { | |
13276 | va_list args; | |
13277 | va_start (args, format); | |
13278 | va_list args_copy; | |
13279 | va_copy (args_copy, args); | |
13280 | ||
13281 | const char *str; | |
13282 | int number; | |
13283 | float fnumber; | |
13284 | ||
13285 | while (*format) | |
13286 | { | |
13287 | switch (*format++) | |
13288 | { | |
13289 | case 's': // string | |
13290 | str = va_arg (args_copy, const char *); | |
13291 | break; | |
13292 | case 'd': // int | |
13293 | number = va_arg (args_copy, int); | |
13294 | break; | |
13295 | case 'f': // float | |
13296 | fnumber = va_arg (args_copy, double); | |
13297 | break; | |
13298 | default: | |
13299 | break; | |
13300 | } | |
13301 | } | |
13302 | va_end (args_copy); | |
13303 | va_end (args); | |
13304 | } | |
13305 | ||
13306 | int | |
13307 | main () | |
13308 | { | |
13309 | ||
13310 | // Check bool. | |
13311 | _Bool success = false; | |
13312 | ||
13313 | // Check restrict. | |
13314 | if (test_restrict ("String literal") == 0) | |
13315 | success = true; | |
13316 | char *restrict newvar = "Another string"; | |
13317 | ||
13318 | // Check varargs. | |
13319 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
13320 | test_varargs_macros (); | |
13321 | ||
13322 | // Check flexible array members. | |
13323 | struct incomplete_array *ia = | |
13324 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
13325 | ia->datasize = 10; | |
13326 | for (int i = 0; i < ia->datasize; ++i) | |
13327 | ia->data[i] = i * 1.234; | |
13328 | ||
13329 | // Check named initializers. | |
13330 | struct named_init ni = { | |
13331 | .number = 34, | |
13332 | .name = L"Test wide string", | |
13333 | .average = 543.34343, | |
13334 | }; | |
13335 | ||
13336 | ni.number = 58; | |
13337 | ||
13338 | int dynamic_array[ni.number]; | |
13339 | dynamic_array[ni.number - 1] = 543; | |
13340 | ||
13341 | // work around unused variable warnings | |
13342 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
13343 | || dynamic_array[ni.number - 1] != 543); | |
13344 | ||
13345 | ; | |
13346 | return 0; | |
13347 | } | |
13348 | _ACEOF | |
13349 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 | |
13350 | do | |
13351 | CC="$ac_save_CC $ac_arg" | |
13352 | if ac_fn_c_try_compile "$LINENO"; then : | |
13353 | ac_cv_prog_cc_c99=$ac_arg | |
13354 | fi | |
13355 | rm -f core conftest.err conftest.$ac_objext | |
13356 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
13357 | done | |
13358 | rm -f conftest.$ac_ext | |
13359 | CC=$ac_save_CC | |
13360 | ||
13361 | fi | |
13362 | # AC_CACHE_VAL | |
13363 | case "x$ac_cv_prog_cc_c99" in | |
13364 | x) | |
13365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
13366 | $as_echo "none needed" >&6; } ;; | |
13367 | xno) | |
13368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
13369 | $as_echo "unsupported" >&6; } ;; | |
13370 | *) | |
13371 | CC="$CC $ac_cv_prog_cc_c99" | |
13372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
13373 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
13374 | esac | |
13375 | if test "x$ac_cv_prog_cc_c99" != xno; then : | |
13376 | ||
13377 | fi | |
13378 | ||
13379 | ||
13380 | ||
13381 | ||
13382 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
13383 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
13384 | MINIX=yes | |
13385 | else | |
13386 | MINIX= | |
13387 | fi | |
13388 | ||
13389 | ||
13390 | if test "$MINIX" = yes; then | |
13391 | ||
13392 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
13393 | ||
13394 | ||
13395 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
13396 | ||
13397 | ||
13398 | $as_echo "#define _MINIX 1" >>confdefs.h | |
13399 | ||
13400 | fi | |
13401 | ||
13402 | ||
13403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
13404 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
13405 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
13406 | $as_echo_n "(cached) " >&6 | |
13407 | else | |
13408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13409 | /* end confdefs.h. */ | |
13410 | ||
13411 | # define __EXTENSIONS__ 1 | |
13412 | $ac_includes_default | |
13413 | int | |
13414 | main () | |
13415 | { | |
13416 | ||
13417 | ; | |
13418 | return 0; | |
13419 | } | |
13420 | _ACEOF | |
13421 | if ac_fn_c_try_compile "$LINENO"; then : | |
13422 | ac_cv_safe_to_define___extensions__=yes | |
13423 | else | |
13424 | ac_cv_safe_to_define___extensions__=no | |
13425 | fi | |
13426 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13427 | fi | |
13428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
13429 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
13430 | test $ac_cv_safe_to_define___extensions__ = yes && | |
13431 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
13432 | ||
13433 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
13434 | ||
13435 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
13436 | ||
13437 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
13438 | ||
13439 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
13440 | ||
13441 | ||
13442 | ||
13443 | ||
13444 | OLD_CFLAGS="$CFLAGS" | |
13445 | ac_ext=c | |
13446 | ac_cpp='$CPP $CPPFLAGS' | |
13447 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13448 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13449 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13450 | if test -n "$ac_tool_prefix"; then | |
13451 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
13452 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
13453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13454 | $as_echo_n "checking for $ac_word... " >&6; } | |
13455 | if ${ac_cv_prog_CC+:} false; then : | |
13456 | $as_echo_n "(cached) " >&6 | |
13457 | else | |
13458 | if test -n "$CC"; then | |
13459 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
13460 | else | |
13461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13462 | for as_dir in $PATH | |
13463 | do | |
13464 | IFS=$as_save_IFS | |
13465 | test -z "$as_dir" && as_dir=. | |
13466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13467 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13468 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
13469 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13470 | break 2 | |
13471 | fi | |
13472 | done | |
13473 | done | |
13474 | IFS=$as_save_IFS | |
13475 | ||
13476 | fi | |
13477 | fi | |
13478 | CC=$ac_cv_prog_CC | |
13479 | if test -n "$CC"; then | |
13480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
13481 | $as_echo "$CC" >&6; } | |
13482 | else | |
13483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13484 | $as_echo "no" >&6; } | |
13485 | fi | |
13486 | ||
13487 | ||
13488 | fi | |
13489 | if test -z "$ac_cv_prog_CC"; then | |
13490 | ac_ct_CC=$CC | |
13491 | # Extract the first word of "gcc", so it can be a program name with args. | |
13492 | set dummy gcc; ac_word=$2 | |
13493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13494 | $as_echo_n "checking for $ac_word... " >&6; } | |
13495 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
13496 | $as_echo_n "(cached) " >&6 | |
13497 | else | |
13498 | if test -n "$ac_ct_CC"; then | |
13499 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
13500 | else | |
13501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13502 | for as_dir in $PATH | |
13503 | do | |
13504 | IFS=$as_save_IFS | |
13505 | test -z "$as_dir" && as_dir=. | |
13506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13507 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13508 | ac_cv_prog_ac_ct_CC="gcc" | |
13509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13510 | break 2 | |
13511 | fi | |
13512 | done | |
13513 | done | |
13514 | IFS=$as_save_IFS | |
13515 | ||
13516 | fi | |
13517 | fi | |
13518 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
13519 | if test -n "$ac_ct_CC"; then | |
13520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
13521 | $as_echo "$ac_ct_CC" >&6; } | |
13522 | else | |
13523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13524 | $as_echo "no" >&6; } | |
13525 | fi | |
13526 | ||
13527 | if test "x$ac_ct_CC" = x; then | |
13528 | CC="" | |
13529 | else | |
13530 | case $cross_compiling:$ac_tool_warned in | |
13531 | yes:) | |
13532 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13533 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13534 | ac_tool_warned=yes ;; | |
13535 | esac | |
13536 | CC=$ac_ct_CC | |
13537 | fi | |
13538 | else | |
13539 | CC="$ac_cv_prog_CC" | |
13540 | fi | |
13541 | ||
13542 | if test -z "$CC"; then | |
13543 | if test -n "$ac_tool_prefix"; then | |
13544 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
13545 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
13546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13547 | $as_echo_n "checking for $ac_word... " >&6; } | |
13548 | if ${ac_cv_prog_CC+:} false; then : | |
13549 | $as_echo_n "(cached) " >&6 | |
13550 | else | |
13551 | if test -n "$CC"; then | |
13552 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
13553 | else | |
13554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13555 | for as_dir in $PATH | |
13556 | do | |
13557 | IFS=$as_save_IFS | |
13558 | test -z "$as_dir" && as_dir=. | |
13559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13560 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13561 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
13562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13563 | break 2 | |
13564 | fi | |
13565 | done | |
13566 | done | |
13567 | IFS=$as_save_IFS | |
13568 | ||
13569 | fi | |
13570 | fi | |
13571 | CC=$ac_cv_prog_CC | |
13572 | if test -n "$CC"; then | |
13573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
13574 | $as_echo "$CC" >&6; } | |
13575 | else | |
13576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13577 | $as_echo "no" >&6; } | |
13578 | fi | |
13579 | ||
13580 | ||
13581 | fi | |
13582 | fi | |
13583 | if test -z "$CC"; then | |
13584 | # Extract the first word of "cc", so it can be a program name with args. | |
13585 | set dummy cc; ac_word=$2 | |
13586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13587 | $as_echo_n "checking for $ac_word... " >&6; } | |
13588 | if ${ac_cv_prog_CC+:} false; then : | |
13589 | $as_echo_n "(cached) " >&6 | |
13590 | else | |
13591 | if test -n "$CC"; then | |
13592 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
13593 | else | |
13594 | ac_prog_rejected=no | |
13595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13596 | for as_dir in $PATH | |
13597 | do | |
13598 | IFS=$as_save_IFS | |
13599 | test -z "$as_dir" && as_dir=. | |
13600 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13601 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13602 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
13603 | ac_prog_rejected=yes | |
13604 | continue | |
13605 | fi | |
13606 | ac_cv_prog_CC="cc" | |
13607 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13608 | break 2 | |
13609 | fi | |
13610 | done | |
13611 | done | |
13612 | IFS=$as_save_IFS | |
13613 | ||
13614 | if test $ac_prog_rejected = yes; then | |
13615 | # We found a bogon in the path, so make sure we never use it. | |
13616 | set dummy $ac_cv_prog_CC | |
13617 | shift | |
13618 | if test $# != 0; then | |
13619 | # We chose a different compiler from the bogus one. | |
13620 | # However, it has the same basename, so the bogon will be chosen | |
13621 | # first if we set CC to just the basename; use the full file name. | |
13622 | shift | |
13623 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
13624 | fi | |
13625 | fi | |
13626 | fi | |
13627 | fi | |
13628 | CC=$ac_cv_prog_CC | |
13629 | if test -n "$CC"; then | |
13630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
13631 | $as_echo "$CC" >&6; } | |
13632 | else | |
13633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13634 | $as_echo "no" >&6; } | |
13635 | fi | |
13636 | ||
13637 | ||
13638 | fi | |
13639 | if test -z "$CC"; then | |
13640 | if test -n "$ac_tool_prefix"; then | |
13641 | for ac_prog in cl.exe | |
13642 | do | |
13643 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
13644 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
13645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13646 | $as_echo_n "checking for $ac_word... " >&6; } | |
13647 | if ${ac_cv_prog_CC+:} false; then : | |
13648 | $as_echo_n "(cached) " >&6 | |
13649 | else | |
13650 | if test -n "$CC"; then | |
13651 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
13652 | else | |
13653 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13654 | for as_dir in $PATH | |
13655 | do | |
13656 | IFS=$as_save_IFS | |
13657 | test -z "$as_dir" && as_dir=. | |
13658 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13659 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13660 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
13661 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13662 | break 2 | |
13663 | fi | |
13664 | done | |
13665 | done | |
13666 | IFS=$as_save_IFS | |
13667 | ||
13668 | fi | |
13669 | fi | |
13670 | CC=$ac_cv_prog_CC | |
13671 | if test -n "$CC"; then | |
13672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
13673 | $as_echo "$CC" >&6; } | |
13674 | else | |
13675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13676 | $as_echo "no" >&6; } | |
13677 | fi | |
13678 | ||
13679 | ||
13680 | test -n "$CC" && break | |
13681 | done | |
13682 | fi | |
13683 | if test -z "$CC"; then | |
13684 | ac_ct_CC=$CC | |
13685 | for ac_prog in cl.exe | |
13686 | do | |
13687 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13688 | set dummy $ac_prog; ac_word=$2 | |
13689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13690 | $as_echo_n "checking for $ac_word... " >&6; } | |
13691 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
13692 | $as_echo_n "(cached) " >&6 | |
13693 | else | |
13694 | if test -n "$ac_ct_CC"; then | |
13695 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
13696 | else | |
13697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13698 | for as_dir in $PATH | |
13699 | do | |
13700 | IFS=$as_save_IFS | |
13701 | test -z "$as_dir" && as_dir=. | |
13702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13703 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
13704 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
13705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13706 | break 2 | |
13707 | fi | |
13708 | done | |
13709 | done | |
13710 | IFS=$as_save_IFS | |
13711 | ||
13712 | fi | |
13713 | fi | |
13714 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
13715 | if test -n "$ac_ct_CC"; then | |
13716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
13717 | $as_echo "$ac_ct_CC" >&6; } | |
13718 | else | |
13719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13720 | $as_echo "no" >&6; } | |
13721 | fi | |
13722 | ||
13723 | ||
13724 | test -n "$ac_ct_CC" && break | |
13725 | done | |
13726 | ||
13727 | if test "x$ac_ct_CC" = x; then | |
13728 | CC="" | |
13729 | else | |
13730 | case $cross_compiling:$ac_tool_warned in | |
13731 | yes:) | |
13732 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
13733 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
13734 | ac_tool_warned=yes ;; | |
13735 | esac | |
13736 | CC=$ac_ct_CC | |
13737 | fi | |
13738 | fi | |
13739 | ||
13740 | fi | |
13741 | ||
13742 | ||
13743 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
13744 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13745 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
13746 | See \`config.log' for more details" "$LINENO" 5; } | |
13747 | ||
13748 | # Provide some information about the compiler. | |
13749 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
13750 | set X $ac_compile | |
13751 | ac_compiler=$2 | |
13752 | for ac_option in --version -v -V -qversion; do | |
13753 | { { ac_try="$ac_compiler $ac_option >&5" | |
13754 | case "(($ac_try" in | |
13755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13756 | *) ac_try_echo=$ac_try;; | |
13757 | esac | |
13758 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
13759 | $as_echo "$ac_try_echo"; } >&5 | |
13760 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
13761 | ac_status=$? | |
13762 | if test -s conftest.err; then | |
13763 | sed '10a\ | |
13764 | ... rest of stderr output deleted ... | |
13765 | 10q' conftest.err >conftest.er1 | |
13766 | cat conftest.er1 >&5 | |
13767 | fi | |
13768 | rm -f conftest.er1 conftest.err | |
13769 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13770 | test $ac_status = 0; } | |
13771 | done | |
13772 | ||
13773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
13774 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
13775 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
13776 | $as_echo_n "(cached) " >&6 | |
13777 | else | |
13778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13779 | /* end confdefs.h. */ | |
13780 | ||
13781 | int | |
13782 | main () | |
13783 | { | |
13784 | #ifndef __GNUC__ | |
13785 | choke me | |
13786 | #endif | |
13787 | ||
13788 | ; | |
13789 | return 0; | |
13790 | } | |
13791 | _ACEOF | |
13792 | if ac_fn_c_try_compile "$LINENO"; then : | |
13793 | ac_compiler_gnu=yes | |
13794 | else | |
13795 | ac_compiler_gnu=no | |
13796 | fi | |
13797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13798 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
13799 | ||
13800 | fi | |
13801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
13802 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
13803 | if test $ac_compiler_gnu = yes; then | |
13804 | GCC=yes | |
13805 | else | |
13806 | GCC= | |
13807 | fi | |
13808 | ac_test_CFLAGS=${CFLAGS+set} | |
13809 | ac_save_CFLAGS=$CFLAGS | |
13810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
13811 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
13812 | if ${ac_cv_prog_cc_g+:} false; then : | |
13813 | $as_echo_n "(cached) " >&6 | |
13814 | else | |
13815 | ac_save_c_werror_flag=$ac_c_werror_flag | |
13816 | ac_c_werror_flag=yes | |
13817 | ac_cv_prog_cc_g=no | |
13818 | CFLAGS="-g" | |
13819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13820 | /* end confdefs.h. */ | |
13821 | ||
13822 | int | |
13823 | main () | |
13824 | { | |
13825 | ||
13826 | ; | |
13827 | return 0; | |
13828 | } | |
13829 | _ACEOF | |
13830 | if ac_fn_c_try_compile "$LINENO"; then : | |
13831 | ac_cv_prog_cc_g=yes | |
13832 | else | |
13833 | CFLAGS="" | |
13834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13835 | /* end confdefs.h. */ | |
13836 | ||
13837 | int | |
13838 | main () | |
13839 | { | |
13840 | ||
13841 | ; | |
13842 | return 0; | |
13843 | } | |
13844 | _ACEOF | |
13845 | if ac_fn_c_try_compile "$LINENO"; then : | |
13846 | ||
13847 | else | |
13848 | ac_c_werror_flag=$ac_save_c_werror_flag | |
13849 | CFLAGS="-g" | |
13850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13851 | /* end confdefs.h. */ | |
13852 | ||
13853 | int | |
13854 | main () | |
13855 | { | |
13856 | ||
13857 | ; | |
13858 | return 0; | |
13859 | } | |
13860 | _ACEOF | |
13861 | if ac_fn_c_try_compile "$LINENO"; then : | |
13862 | ac_cv_prog_cc_g=yes | |
13863 | fi | |
13864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13865 | fi | |
13866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13867 | fi | |
13868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13869 | ac_c_werror_flag=$ac_save_c_werror_flag | |
13870 | fi | |
13871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
13872 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
13873 | if test "$ac_test_CFLAGS" = set; then | |
13874 | CFLAGS=$ac_save_CFLAGS | |
13875 | elif test $ac_cv_prog_cc_g = yes; then | |
13876 | if test "$GCC" = yes; then | |
13877 | CFLAGS="-g -O2" | |
13878 | else | |
13879 | CFLAGS="-g" | |
13880 | fi | |
13881 | else | |
13882 | if test "$GCC" = yes; then | |
13883 | CFLAGS="-O2" | |
13884 | else | |
13885 | CFLAGS= | |
13886 | fi | |
13887 | fi | |
13888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
13889 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
13890 | if ${ac_cv_prog_cc_c89+:} false; then : | |
13891 | $as_echo_n "(cached) " >&6 | |
13892 | else | |
13893 | ac_cv_prog_cc_c89=no | |
13894 | ac_save_CC=$CC | |
13895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13896 | /* end confdefs.h. */ | |
13897 | #include <stdarg.h> | |
13898 | #include <stdio.h> | |
13899 | struct stat; | |
13900 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
13901 | struct buf { int x; }; | |
13902 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
13903 | static char *e (p, i) | |
13904 | char **p; | |
13905 | int i; | |
13906 | { | |
13907 | return p[i]; | |
13908 | } | |
13909 | static char *f (char * (*g) (char **, int), char **p, ...) | |
13910 | { | |
13911 | char *s; | |
13912 | va_list v; | |
13913 | va_start (v,p); | |
13914 | s = g (p, va_arg (v,int)); | |
13915 | va_end (v); | |
13916 | return s; | |
13917 | } | |
13918 | ||
13919 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
13920 | function prototypes and stuff, but not '\xHH' hex character constants. | |
13921 | These don't provoke an error unfortunately, instead are silently treated | |
13922 | as 'x'. The following induces an error, until -std is added to get | |
13923 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
13924 | array size at least. It's necessary to write '\x00'==0 to get something | |
13925 | that's true only with -std. */ | |
13926 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
13927 | ||
13928 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
13929 | inside strings and character constants. */ | |
13930 | #define FOO(x) 'x' | |
13931 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
13932 | ||
13933 | int test (int i, double x); | |
13934 | struct s1 {int (*f) (int a);}; | |
13935 | struct s2 {int (*f) (double a);}; | |
13936 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
13937 | int argc; | |
13938 | char **argv; | |
13939 | int | |
13940 | main () | |
13941 | { | |
13942 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
13943 | ; | |
13944 | return 0; | |
13945 | } | |
13946 | _ACEOF | |
13947 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
13948 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
13949 | do | |
13950 | CC="$ac_save_CC $ac_arg" | |
13951 | if ac_fn_c_try_compile "$LINENO"; then : | |
13952 | ac_cv_prog_cc_c89=$ac_arg | |
13953 | fi | |
13954 | rm -f core conftest.err conftest.$ac_objext | |
13955 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
13956 | done | |
13957 | rm -f conftest.$ac_ext | |
13958 | CC=$ac_save_CC | |
13959 | ||
13960 | fi | |
13961 | # AC_CACHE_VAL | |
13962 | case "x$ac_cv_prog_cc_c89" in | |
13963 | x) | |
13964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
13965 | $as_echo "none needed" >&6; } ;; | |
13966 | xno) | |
13967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
13968 | $as_echo "unsupported" >&6; } ;; | |
13969 | *) | |
13970 | CC="$CC $ac_cv_prog_cc_c89" | |
13971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
13972 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
13973 | esac | |
13974 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
13975 | ||
13976 | fi | |
13977 | ||
13978 | ac_ext=c | |
13979 | ac_cpp='$CPP $CPPFLAGS' | |
13980 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13981 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13982 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13983 | ||
13984 | ac_ext=c | |
13985 | ac_cpp='$CPP $CPPFLAGS' | |
13986 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13987 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13988 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
13990 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
13991 | if ${am_cv_prog_cc_c_o+:} false; then : | |
13992 | $as_echo_n "(cached) " >&6 | |
13993 | else | |
13994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13995 | /* end confdefs.h. */ | |
13996 | ||
13997 | int | |
13998 | main () | |
13999 | { | |
14000 | ||
14001 | ; | |
14002 | return 0; | |
14003 | } | |
14004 | _ACEOF | |
14005 | # Make sure it works both with $CC and with simple cc. | |
14006 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
14007 | # compilers refuse to overwrite an existing .o file with -o, | |
14008 | # though they will create one. | |
14009 | am_cv_prog_cc_c_o=yes | |
14010 | for am_i in 1 2; do | |
14011 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
14012 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
14013 | ac_status=$? | |
14014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14015 | (exit $ac_status); } \ | |
14016 | && test -f conftest2.$ac_objext; then | |
14017 | : OK | |
14018 | else | |
14019 | am_cv_prog_cc_c_o=no | |
14020 | break | |
14021 | fi | |
14022 | done | |
14023 | rm -f core conftest* | |
14024 | unset am_i | |
14025 | fi | |
14026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
14027 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
14028 | if test "$am_cv_prog_cc_c_o" != yes; then | |
14029 | # Losing compiler, so override with the script. | |
14030 | # FIXME: It is wrong to rewrite CC. | |
14031 | # But if we don't then we get into trouble of one sort or another. | |
14032 | # A longer-term fix would be to have automake use am__CC in this case, | |
14033 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
14034 | CC="$am_aux_dir/compile $CC" | |
14035 | fi | |
14036 | ac_ext=c | |
14037 | ac_cpp='$CPP $CPPFLAGS' | |
14038 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14039 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14040 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14041 | ||
14042 | ||
14043 | depcc="$CC" am_compiler_list= | |
14044 | ||
14045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
14046 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
14047 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
14048 | $as_echo_n "(cached) " >&6 | |
14049 | else | |
14050 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
14051 | # We make a subdir and do the tests there. Otherwise we can end up | |
14052 | # making bogus files that we don't know about and never remove. For | |
14053 | # instance it was reported that on HP-UX the gcc test will end up | |
14054 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
14055 | # in D". | |
14056 | rm -rf conftest.dir | |
14057 | mkdir conftest.dir | |
14058 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
14059 | # using a relative directory. | |
14060 | cp "$am_depcomp" conftest.dir | |
14061 | cd conftest.dir | |
14062 | # We will build objects and dependencies in a subdirectory because | |
14063 | # it helps to detect inapplicable dependency modes. For instance | |
14064 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
14065 | # side effect of compilation, but ICC will put the dependencies in | |
14066 | # the current directory while Tru64 will put them in the object | |
14067 | # directory. | |
14068 | mkdir sub | |
14069 | ||
14070 | am_cv_CC_dependencies_compiler_type=none | |
14071 | if test "$am_compiler_list" = ""; then | |
14072 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
14073 | fi | |
14074 | am__universal=false | |
14075 | case " $depcc " in #( | |
14076 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
14077 | esac | |
14078 | ||
14079 | for depmode in $am_compiler_list; do | |
14080 | # Setup a source with many dependencies, because some compilers | |
14081 | # like to wrap large dependency lists on column 80 (with \), and | |
14082 | # we should not choose a depcomp mode which is confused by this. | |
14083 | # | |
14084 | # We need to recreate these files for each test, as the compiler may | |
14085 | # overwrite some of them when testing with obscure command lines. | |
14086 | # This happens at least with the AIX C compiler. | |
14087 | : > sub/conftest.c | |
14088 | for i in 1 2 3 4 5 6; do | |
14089 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
14090 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
14091 | # Solaris 10 /bin/sh. | |
14092 | echo '/* dummy */' > sub/conftst$i.h | |
14093 | done | |
14094 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
14095 | ||
14096 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
14097 | # mode. It turns out that the SunPro C++ compiler does not properly | |
14098 | # handle '-M -o', and we need to detect this. Also, some Intel | |
14099 | # versions had trouble with output in subdirs. | |
14100 | am__obj=sub/conftest.${OBJEXT-o} | |
14101 | am__minus_obj="-o $am__obj" | |
14102 | case $depmode in | |
14103 | gcc) | |
14104 | # This depmode causes a compiler race in universal mode. | |
14105 | test "$am__universal" = false || continue | |
14106 | ;; | |
14107 | nosideeffect) | |
14108 | # After this tag, mechanisms are not by side-effect, so they'll | |
14109 | # only be used when explicitly requested. | |
14110 | if test "x$enable_dependency_tracking" = xyes; then | |
14111 | continue | |
14112 | else | |
14113 | break | |
14114 | fi | |
14115 | ;; | |
14116 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
14117 | # This compiler won't grok '-c -o', but also, the minuso test has | |
14118 | # not run yet. These depmodes are late enough in the game, and | |
14119 | # so weak that their functioning should not be impacted. | |
14120 | am__obj=conftest.${OBJEXT-o} | |
14121 | am__minus_obj= | |
14122 | ;; | |
14123 | none) break ;; | |
14124 | esac | |
14125 | if depmode=$depmode \ | |
14126 | source=sub/conftest.c object=$am__obj \ | |
14127 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
14128 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
14129 | >/dev/null 2>conftest.err && | |
14130 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
14131 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
14132 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
14133 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
14134 | # icc doesn't choke on unknown options, it will just issue warnings | |
14135 | # or remarks (even with -Werror). So we grep stderr for any message | |
14136 | # that says an option was ignored or not supported. | |
14137 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
14138 | # icc: Command line warning: ignoring option '-M'; no argument required | |
14139 | # The diagnosis changed in icc 8.0: | |
14140 | # icc: Command line remark: option '-MP' not supported | |
14141 | if (grep 'ignoring option' conftest.err || | |
14142 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
14143 | am_cv_CC_dependencies_compiler_type=$depmode | |
14144 | break | |
14145 | fi | |
14146 | fi | |
14147 | done | |
14148 | ||
14149 | cd .. | |
14150 | rm -rf conftest.dir | |
14151 | else | |
14152 | am_cv_CC_dependencies_compiler_type=none | |
14153 | fi | |
14154 | ||
14155 | fi | |
14156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
14157 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
14158 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
14159 | ||
14160 | if | |
14161 | test "x$enable_dependency_tracking" != xno \ | |
14162 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
14163 | am__fastdepCC_TRUE= | |
14164 | am__fastdepCC_FALSE='#' | |
14165 | else | |
14166 | am__fastdepCC_TRUE='#' | |
14167 | am__fastdepCC_FALSE= | |
14168 | fi | |
14169 | ||
14170 | ||
14171 | ac_ext=c | |
14172 | ac_cpp='$CPP $CPPFLAGS' | |
14173 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
14174 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
14175 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
14176 | ||
14177 | ||
14178 | CFLAGS="$OLD_CFLAGS" | |
14179 | ||
14180 | subdirs="$subdirs libratbox" | |
14181 | ||
14182 | ||
14183 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
14184 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99" | |
14185 | fi | |
14186 | ||
14187 | if test "$ac_cv_prog_cc_g" = yes; then | |
14188 | IRC_CFLAGS="$IRC_CFLAGS -g" | |
14189 | fi | |
14190 | ||
14191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 | |
14192 | $as_echo_n "checking for /dev/null... " >&6; } | |
14193 | if test -c /dev/null ; then | |
14194 | ||
14195 | $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h | |
14196 | ||
14197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14198 | $as_echo "yes" >&6; } | |
14199 | else | |
14200 | ||
14201 | $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h | |
14202 | ||
14203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5 | |
14204 | $as_echo "no - using devnull.log" >&6; } | |
14205 | fi | |
14206 | ||
14207 | if test ! -z "$CFLAGS"; then | |
14208 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
14209 | fi | |
14210 | ||
14211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 | |
14212 | $as_echo_n "checking for library containing strerror... " >&6; } | |
14213 | if ${ac_cv_search_strerror+:} false; then : | |
14214 | $as_echo_n "(cached) " >&6 | |
14215 | else | |
14216 | ac_func_search_save_LIBS=$LIBS | |
14217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14218 | /* end confdefs.h. */ | |
14219 | ||
14220 | /* Override any GCC internal prototype to avoid an error. | |
14221 | Use char because int might match the return type of a GCC | |
14222 | builtin and then its argument prototype would still apply. */ | |
14223 | #ifdef __cplusplus | |
14224 | extern "C" | |
14225 | #endif | |
14226 | char strerror (); | |
14227 | int | |
14228 | main () | |
14229 | { | |
14230 | return strerror (); | |
14231 | ; | |
14232 | return 0; | |
14233 | } | |
14234 | _ACEOF | |
14235 | for ac_lib in '' cposix; do | |
14236 | if test -z "$ac_lib"; then | |
14237 | ac_res="none required" | |
14238 | else | |
14239 | ac_res=-l$ac_lib | |
14240 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14241 | fi | |
14242 | if ac_fn_c_try_link "$LINENO"; then : | |
14243 | ac_cv_search_strerror=$ac_res | |
14244 | fi | |
14245 | rm -f core conftest.err conftest.$ac_objext \ | |
14246 | conftest$ac_exeext | |
14247 | if ${ac_cv_search_strerror+:} false; then : | |
14248 | break | |
14249 | fi | |
14250 | done | |
14251 | if ${ac_cv_search_strerror+:} false; then : | |
14252 | ||
14253 | else | |
14254 | ac_cv_search_strerror=no | |
14255 | fi | |
14256 | rm conftest.$ac_ext | |
14257 | LIBS=$ac_func_search_save_LIBS | |
14258 | fi | |
14259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | |
14260 | $as_echo "$ac_cv_search_strerror" >&6; } | |
14261 | ac_res=$ac_cv_search_strerror | |
14262 | if test "$ac_res" != no; then : | |
14263 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
14264 | ||
14265 | fi | |
14266 | ||
14267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
14268 | $as_echo_n "checking for inline... " >&6; } | |
14269 | if ${ac_cv_c_inline+:} false; then : | |
14270 | $as_echo_n "(cached) " >&6 | |
14271 | else | |
14272 | ac_cv_c_inline=no | |
14273 | for ac_kw in inline __inline__ __inline; do | |
14274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14275 | /* end confdefs.h. */ | |
14276 | #ifndef __cplusplus | |
14277 | typedef int foo_t; | |
14278 | static $ac_kw foo_t static_foo () {return 0; } | |
14279 | $ac_kw foo_t foo () {return 0; } | |
14280 | #endif | |
14281 | ||
14282 | _ACEOF | |
14283 | if ac_fn_c_try_compile "$LINENO"; then : | |
14284 | ac_cv_c_inline=$ac_kw | |
14285 | fi | |
14286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14287 | test "$ac_cv_c_inline" != no && break | |
14288 | done | |
14289 | ||
14290 | fi | |
14291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
14292 | $as_echo "$ac_cv_c_inline" >&6; } | |
14293 | ||
14294 | case $ac_cv_c_inline in | |
14295 | inline | yes) ;; | |
14296 | *) | |
14297 | case $ac_cv_c_inline in | |
14298 | no) ac_val=;; | |
14299 | *) ac_val=$ac_cv_c_inline;; | |
14300 | esac | |
14301 | cat >>confdefs.h <<_ACEOF | |
14302 | #ifndef __cplusplus | |
14303 | #define inline $ac_val | |
14304 | #endif | |
14305 | _ACEOF | |
14306 | ;; | |
14307 | esac | |
14308 | ||
14309 | if test $ac_cv_c_compiler_gnu = yes; then | |
14310 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 | |
14311 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } | |
14312 | if ${ac_cv_prog_gcc_traditional+:} false; then : | |
14313 | $as_echo_n "(cached) " >&6 | |
14314 | else | |
14315 | ac_pattern="Autoconf.*'x'" | |
14316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14317 | /* end confdefs.h. */ | |
14318 | #include <sgtty.h> | |
14319 | Autoconf TIOCGETP | |
14320 | _ACEOF | |
14321 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14322 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
14323 | ac_cv_prog_gcc_traditional=yes | |
14324 | else | |
14325 | ac_cv_prog_gcc_traditional=no | |
14326 | fi | |
14327 | rm -f conftest* | |
14328 | ||
14329 | ||
14330 | if test $ac_cv_prog_gcc_traditional = no; then | |
14331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14332 | /* end confdefs.h. */ | |
14333 | #include <termio.h> | |
14334 | Autoconf TCGETA | |
14335 | _ACEOF | |
14336 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14337 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : | |
14338 | ac_cv_prog_gcc_traditional=yes | |
14339 | fi | |
14340 | rm -f conftest* | |
14341 | ||
14342 | fi | |
14343 | fi | |
14344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 | |
14345 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } | |
14346 | if test $ac_cv_prog_gcc_traditional = yes; then | |
14347 | CC="$CC -traditional" | |
14348 | fi | |
14349 | fi | |
14350 | ||
14351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
14352 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
14353 | set x ${MAKE-make} | |
14354 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
14355 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
14356 | $as_echo_n "(cached) " >&6 | |
14357 | else | |
14358 | cat >conftest.make <<\_ACEOF | |
14359 | SHELL = /bin/sh | |
14360 | all: | |
14361 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
14362 | _ACEOF | |
14363 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
14364 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
14365 | *@@@%%%=?*=@@@%%%*) | |
14366 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
14367 | *) | |
14368 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
14369 | esac | |
14370 | rm -f conftest.make | |
14371 | fi | |
14372 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
14373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14374 | $as_echo "yes" >&6; } | |
14375 | SET_MAKE= | |
14376 | else | |
14377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14378 | $as_echo "no" >&6; } | |
14379 | SET_MAKE="MAKE=${MAKE-make}" | |
14380 | fi | |
14381 | ||
14382 | ||
14383 | # Extract the first word of "rm", so it can be a program name with args. | |
14384 | set dummy rm; ac_word=$2 | |
14385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14386 | $as_echo_n "checking for $ac_word... " >&6; } | |
14387 | if ${ac_cv_path_RM+:} false; then : | |
14388 | $as_echo_n "(cached) " >&6 | |
14389 | else | |
14390 | case $RM in | |
14391 | [\\/]* | ?:[\\/]*) | |
14392 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
14393 | ;; | |
14394 | *) | |
14395 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14396 | for as_dir in $PATH | |
14397 | do | |
14398 | IFS=$as_save_IFS | |
14399 | test -z "$as_dir" && as_dir=. | |
14400 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14401 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14402 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | |
14403 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14404 | break 2 | |
14405 | fi | |
14406 | done | |
14407 | done | |
14408 | IFS=$as_save_IFS | |
14409 | ||
14410 | ;; | |
14411 | esac | |
14412 | fi | |
14413 | RM=$ac_cv_path_RM | |
14414 | if test -n "$RM"; then | |
14415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
14416 | $as_echo "$RM" >&6; } | |
14417 | else | |
14418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14419 | $as_echo "no" >&6; } | |
14420 | fi | |
14421 | ||
14422 | ||
14423 | # Extract the first word of "cp", so it can be a program name with args. | |
14424 | set dummy cp; ac_word=$2 | |
14425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14426 | $as_echo_n "checking for $ac_word... " >&6; } | |
14427 | if ${ac_cv_path_CP+:} false; then : | |
14428 | $as_echo_n "(cached) " >&6 | |
14429 | else | |
14430 | case $CP in | |
14431 | [\\/]* | ?:[\\/]*) | |
14432 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
14433 | ;; | |
14434 | *) | |
14435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14436 | for as_dir in $PATH | |
14437 | do | |
14438 | IFS=$as_save_IFS | |
14439 | test -z "$as_dir" && as_dir=. | |
14440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14441 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14442 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" | |
14443 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14444 | break 2 | |
14445 | fi | |
14446 | done | |
14447 | done | |
14448 | IFS=$as_save_IFS | |
14449 | ||
14450 | ;; | |
14451 | esac | |
14452 | fi | |
14453 | CP=$ac_cv_path_CP | |
14454 | if test -n "$CP"; then | |
14455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 | |
14456 | $as_echo "$CP" >&6; } | |
14457 | else | |
14458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14459 | $as_echo "no" >&6; } | |
14460 | fi | |
14461 | ||
14462 | ||
14463 | # Extract the first word of "mv", so it can be a program name with args. | |
14464 | set dummy mv; ac_word=$2 | |
14465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14466 | $as_echo_n "checking for $ac_word... " >&6; } | |
14467 | if ${ac_cv_path_MV+:} false; then : | |
14468 | $as_echo_n "(cached) " >&6 | |
14469 | else | |
14470 | case $MV in | |
14471 | [\\/]* | ?:[\\/]*) | |
14472 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
14473 | ;; | |
14474 | *) | |
14475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14476 | for as_dir in $PATH | |
14477 | do | |
14478 | IFS=$as_save_IFS | |
14479 | test -z "$as_dir" && as_dir=. | |
14480 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14481 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14482 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | |
14483 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14484 | break 2 | |
14485 | fi | |
14486 | done | |
14487 | done | |
14488 | IFS=$as_save_IFS | |
14489 | ||
14490 | ;; | |
14491 | esac | |
14492 | fi | |
14493 | MV=$ac_cv_path_MV | |
14494 | if test -n "$MV"; then | |
14495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
14496 | $as_echo "$MV" >&6; } | |
14497 | else | |
14498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14499 | $as_echo "no" >&6; } | |
14500 | fi | |
14501 | ||
14502 | ||
14503 | # Extract the first word of "ln", so it can be a program name with args. | |
14504 | set dummy ln; ac_word=$2 | |
14505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14506 | $as_echo_n "checking for $ac_word... " >&6; } | |
14507 | if ${ac_cv_path_LN+:} false; then : | |
14508 | $as_echo_n "(cached) " >&6 | |
14509 | else | |
14510 | case $LN in | |
14511 | [\\/]* | ?:[\\/]*) | |
14512 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
14513 | ;; | |
14514 | *) | |
14515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14516 | for as_dir in $PATH | |
14517 | do | |
14518 | IFS=$as_save_IFS | |
14519 | test -z "$as_dir" && as_dir=. | |
14520 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14521 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14522 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" | |
14523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14524 | break 2 | |
14525 | fi | |
14526 | done | |
14527 | done | |
14528 | IFS=$as_save_IFS | |
14529 | ||
14530 | ;; | |
14531 | esac | |
14532 | fi | |
14533 | LN=$ac_cv_path_LN | |
14534 | if test -n "$LN"; then | |
14535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
14536 | $as_echo "$LN" >&6; } | |
14537 | else | |
14538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14539 | $as_echo "no" >&6; } | |
14540 | fi | |
14541 | ||
14542 | ||
14543 | # Extract the first word of "sed", so it can be a program name with args. | |
14544 | set dummy sed; ac_word=$2 | |
14545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14546 | $as_echo_n "checking for $ac_word... " >&6; } | |
14547 | if ${ac_cv_path_SED+:} false; then : | |
14548 | $as_echo_n "(cached) " >&6 | |
14549 | else | |
14550 | case $SED in | |
14551 | [\\/]* | ?:[\\/]*) | |
14552 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
14553 | ;; | |
14554 | *) | |
14555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14556 | for as_dir in $PATH | |
14557 | do | |
14558 | IFS=$as_save_IFS | |
14559 | test -z "$as_dir" && as_dir=. | |
14560 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14561 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14562 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | |
14563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14564 | break 2 | |
14565 | fi | |
14566 | done | |
14567 | done | |
14568 | IFS=$as_save_IFS | |
14569 | ||
14570 | ;; | |
14571 | esac | |
14572 | fi | |
14573 | SED=$ac_cv_path_SED | |
14574 | if test -n "$SED"; then | |
14575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
14576 | $as_echo "$SED" >&6; } | |
14577 | else | |
14578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14579 | $as_echo "no" >&6; } | |
14580 | fi | |
14581 | ||
14582 | ||
14583 | # Extract the first word of "ar", so it can be a program name with args. | |
14584 | set dummy ar; ac_word=$2 | |
14585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14586 | $as_echo_n "checking for $ac_word... " >&6; } | |
14587 | if ${ac_cv_path_AR+:} false; then : | |
14588 | $as_echo_n "(cached) " >&6 | |
14589 | else | |
14590 | case $AR in | |
14591 | [\\/]* | ?:[\\/]*) | |
14592 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
14593 | ;; | |
14594 | *) | |
14595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14596 | for as_dir in $PATH | |
14597 | do | |
14598 | IFS=$as_save_IFS | |
14599 | test -z "$as_dir" && as_dir=. | |
14600 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14601 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14602 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | |
14603 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14604 | break 2 | |
14605 | fi | |
14606 | done | |
14607 | done | |
14608 | IFS=$as_save_IFS | |
14609 | ||
14610 | ;; | |
14611 | esac | |
14612 | fi | |
14613 | AR=$ac_cv_path_AR | |
14614 | if test -n "$AR"; then | |
14615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
14616 | $as_echo "$AR" >&6; } | |
14617 | else | |
14618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14619 | $as_echo "no" >&6; } | |
14620 | fi | |
14621 | ||
14622 | ||
14623 | # Extract the first word of "ld", so it can be a program name with args. | |
14624 | set dummy ld; ac_word=$2 | |
14625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14626 | $as_echo_n "checking for $ac_word... " >&6; } | |
14627 | if ${ac_cv_path_LD+:} false; then : | |
14628 | $as_echo_n "(cached) " >&6 | |
14629 | else | |
14630 | case $LD in | |
14631 | [\\/]* | ?:[\\/]*) | |
14632 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
14633 | ;; | |
14634 | *) | |
14635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14636 | for as_dir in $PATH | |
14637 | do | |
14638 | IFS=$as_save_IFS | |
14639 | test -z "$as_dir" && as_dir=. | |
14640 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14641 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14642 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" | |
14643 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14644 | break 2 | |
14645 | fi | |
14646 | done | |
14647 | done | |
14648 | IFS=$as_save_IFS | |
14649 | ||
14650 | ;; | |
14651 | esac | |
14652 | fi | |
14653 | LD=$ac_cv_path_LD | |
14654 | if test -n "$LD"; then | |
14655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
14656 | $as_echo "$LD" >&6; } | |
14657 | else | |
14658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14659 | $as_echo "no" >&6; } | |
14660 | fi | |
14661 | ||
14662 | ||
14663 | # Extract the first word of "ranlib", so it can be a program name with args. | |
14664 | set dummy ranlib; ac_word=$2 | |
14665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14666 | $as_echo_n "checking for $ac_word... " >&6; } | |
14667 | if ${ac_cv_path_RANLIB+:} false; then : | |
14668 | $as_echo_n "(cached) " >&6 | |
14669 | else | |
14670 | case $RANLIB in | |
14671 | [\\/]* | ?:[\\/]*) | |
14672 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
14673 | ;; | |
14674 | *) | |
14675 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14676 | for as_dir in $PATH | |
14677 | do | |
14678 | IFS=$as_save_IFS | |
14679 | test -z "$as_dir" && as_dir=. | |
14680 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14681 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14682 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" | |
14683 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14684 | break 2 | |
14685 | fi | |
14686 | done | |
14687 | done | |
14688 | IFS=$as_save_IFS | |
14689 | ||
14690 | ;; | |
14691 | esac | |
14692 | fi | |
14693 | RANLIB=$ac_cv_path_RANLIB | |
14694 | if test -n "$RANLIB"; then | |
14695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
14696 | $as_echo "$RANLIB" >&6; } | |
14697 | else | |
14698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14699 | $as_echo "no" >&6; } | |
14700 | fi | |
14701 | ||
14702 | ||
14703 | # Extract the first word of "touch", so it can be a program name with args. | |
14704 | set dummy touch; ac_word=$2 | |
14705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14706 | $as_echo_n "checking for $ac_word... " >&6; } | |
14707 | if ${ac_cv_path_TOUCH+:} false; then : | |
14708 | $as_echo_n "(cached) " >&6 | |
14709 | else | |
14710 | case $TOUCH in | |
14711 | [\\/]* | ?:[\\/]*) | |
14712 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
14713 | ;; | |
14714 | *) | |
14715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14716 | for as_dir in $PATH | |
14717 | do | |
14718 | IFS=$as_save_IFS | |
14719 | test -z "$as_dir" && as_dir=. | |
14720 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14721 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14722 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" | |
14723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14724 | break 2 | |
14725 | fi | |
14726 | done | |
14727 | done | |
14728 | IFS=$as_save_IFS | |
14729 | ||
14730 | ;; | |
14731 | esac | |
14732 | fi | |
14733 | TOUCH=$ac_cv_path_TOUCH | |
14734 | if test -n "$TOUCH"; then | |
14735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 | |
14736 | $as_echo "$TOUCH" >&6; } | |
14737 | else | |
14738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14739 | $as_echo "no" >&6; } | |
14740 | fi | |
14741 | ||
14742 | ||
14743 | ||
14744 | for ac_prog in 'bison -y' byacc | |
14745 | do | |
14746 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14747 | set dummy $ac_prog; ac_word=$2 | |
14748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14749 | $as_echo_n "checking for $ac_word... " >&6; } | |
14750 | if ${ac_cv_prog_YACC+:} false; then : | |
14751 | $as_echo_n "(cached) " >&6 | |
14752 | else | |
14753 | if test -n "$YACC"; then | |
14754 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
14755 | else | |
14756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14757 | for as_dir in $PATH | |
14758 | do | |
14759 | IFS=$as_save_IFS | |
14760 | test -z "$as_dir" && as_dir=. | |
14761 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14762 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14763 | ac_cv_prog_YACC="$ac_prog" | |
14764 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14765 | break 2 | |
14766 | fi | |
14767 | done | |
14768 | done | |
14769 | IFS=$as_save_IFS | |
14770 | ||
14771 | fi | |
14772 | fi | |
14773 | YACC=$ac_cv_prog_YACC | |
14774 | if test -n "$YACC"; then | |
14775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
14776 | $as_echo "$YACC" >&6; } | |
14777 | else | |
14778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14779 | $as_echo "no" >&6; } | |
14780 | fi | |
14781 | ||
14782 | ||
14783 | test -n "$YACC" && break | |
14784 | done | |
14785 | test -n "$YACC" || YACC="yacc" | |
14786 | ||
14787 | ||
14788 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then | |
14789 | as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5 | |
14790 | fi | |
14791 | ||
14792 | for ac_prog in flex lex | |
14793 | do | |
14794 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14795 | set dummy $ac_prog; ac_word=$2 | |
14796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14797 | $as_echo_n "checking for $ac_word... " >&6; } | |
14798 | if ${ac_cv_prog_LEX+:} false; then : | |
14799 | $as_echo_n "(cached) " >&6 | |
14800 | else | |
14801 | if test -n "$LEX"; then | |
14802 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
14803 | else | |
14804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14805 | for as_dir in $PATH | |
14806 | do | |
14807 | IFS=$as_save_IFS | |
14808 | test -z "$as_dir" && as_dir=. | |
14809 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14810 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
14811 | ac_cv_prog_LEX="$ac_prog" | |
14812 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14813 | break 2 | |
14814 | fi | |
14815 | done | |
14816 | done | |
14817 | IFS=$as_save_IFS | |
14818 | ||
14819 | fi | |
14820 | fi | |
14821 | LEX=$ac_cv_prog_LEX | |
14822 | if test -n "$LEX"; then | |
14823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
14824 | $as_echo "$LEX" >&6; } | |
14825 | else | |
14826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14827 | $as_echo "no" >&6; } | |
14828 | fi | |
14829 | ||
14830 | ||
14831 | test -n "$LEX" && break | |
14832 | done | |
14833 | test -n "$LEX" || LEX=":" | |
14834 | ||
14835 | if test "x$LEX" != "x:"; then | |
14836 | cat >conftest.l <<_ACEOF | |
14837 | %% | |
14838 | a { ECHO; } | |
14839 | b { REJECT; } | |
14840 | c { yymore (); } | |
14841 | d { yyless (1); } | |
14842 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ | |
14843 | yyless ((input () != 0)); } | |
14844 | f { unput (yytext[0]); } | |
14845 | . { BEGIN INITIAL; } | |
14846 | %% | |
14847 | #ifdef YYTEXT_POINTER | |
14848 | extern char *yytext; | |
14849 | #endif | |
14850 | int | |
14851 | main (void) | |
14852 | { | |
14853 | return ! yylex () + ! yywrap (); | |
14854 | } | |
14855 | _ACEOF | |
14856 | { { ac_try="$LEX conftest.l" | |
14857 | case "(($ac_try" in | |
14858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14859 | *) ac_try_echo=$ac_try;; | |
14860 | esac | |
14861 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
14862 | $as_echo "$ac_try_echo"; } >&5 | |
14863 | (eval "$LEX conftest.l") 2>&5 | |
14864 | ac_status=$? | |
14865 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14866 | test $ac_status = 0; } | |
14867 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
14868 | $as_echo_n "checking lex output file root... " >&6; } | |
14869 | if ${ac_cv_prog_lex_root+:} false; then : | |
14870 | $as_echo_n "(cached) " >&6 | |
14871 | else | |
14872 | ||
14873 | if test -f lex.yy.c; then | |
14874 | ac_cv_prog_lex_root=lex.yy | |
14875 | elif test -f lexyy.c; then | |
14876 | ac_cv_prog_lex_root=lexyy | |
14877 | else | |
14878 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 | |
14879 | fi | |
14880 | fi | |
14881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
14882 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
14883 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
14884 | ||
14885 | if test -z "${LEXLIB+set}"; then | |
14886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
14887 | $as_echo_n "checking lex library... " >&6; } | |
14888 | if ${ac_cv_lib_lex+:} false; then : | |
14889 | $as_echo_n "(cached) " >&6 | |
14890 | else | |
14891 | ||
14892 | ac_save_LIBS=$LIBS | |
14893 | ac_cv_lib_lex='none needed' | |
14894 | for ac_lib in '' -lfl -ll; do | |
14895 | LIBS="$ac_lib $ac_save_LIBS" | |
14896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14897 | /* end confdefs.h. */ | |
14898 | `cat $LEX_OUTPUT_ROOT.c` | |
14899 | _ACEOF | |
14900 | if ac_fn_c_try_link "$LINENO"; then : | |
14901 | ac_cv_lib_lex=$ac_lib | |
14902 | fi | |
14903 | rm -f core conftest.err conftest.$ac_objext \ | |
14904 | conftest$ac_exeext conftest.$ac_ext | |
14905 | test "$ac_cv_lib_lex" != 'none needed' && break | |
14906 | done | |
14907 | LIBS=$ac_save_LIBS | |
14908 | ||
14909 | fi | |
14910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 | |
14911 | $as_echo "$ac_cv_lib_lex" >&6; } | |
14912 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
14913 | fi | |
14914 | ||
14915 | ||
14916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
14917 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
14918 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : | |
14919 | $as_echo_n "(cached) " >&6 | |
14920 | else | |
14921 | # POSIX says lex can declare yytext either as a pointer or an array; the | |
14922 | # default is implementation-dependent. Figure out which it is, since | |
14923 | # not all implementations provide the %pointer and %array declarations. | |
14924 | ac_cv_prog_lex_yytext_pointer=no | |
14925 | ac_save_LIBS=$LIBS | |
14926 | LIBS="$LEXLIB $ac_save_LIBS" | |
14927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14928 | /* end confdefs.h. */ | |
14929 | ||
14930 | #define YYTEXT_POINTER 1 | |
14931 | `cat $LEX_OUTPUT_ROOT.c` | |
14932 | _ACEOF | |
14933 | if ac_fn_c_try_link "$LINENO"; then : | |
14934 | ac_cv_prog_lex_yytext_pointer=yes | |
14935 | fi | |
14936 | rm -f core conftest.err conftest.$ac_objext \ | |
14937 | conftest$ac_exeext conftest.$ac_ext | |
14938 | LIBS=$ac_save_LIBS | |
14939 | ||
14940 | fi | |
14941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 | |
14942 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
14943 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
14944 | ||
14945 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h | |
14946 | ||
14947 | fi | |
14948 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
14949 | ||
14950 | fi | |
14951 | ||
14952 | if test "$LEX" = ":"; then | |
14953 | as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5 | |
14954 | fi | |
14955 | ||
14956 | # Check whether --enable-fhs-paths was given. | |
14957 | if test "${enable_fhs_paths+set}" = set; then : | |
14958 | enableval=$enable_fhs_paths; | |
14959 | else | |
14960 | if test "$libexecdir" = '${exec_prefix}/libexec' && \ | |
14961 | test "$localstatedir" = '${prefix}/var' && \ | |
14962 | test "$libdir" = '${exec_prefix}/lib'; then : | |
14963 | enable_fhs_paths=no | |
14964 | else | |
14965 | enable_fhs_paths=yes | |
14966 | fi | |
14967 | ||
14968 | fi | |
14969 | ||
14970 | if test "x$enable_fhs_paths" = "xyes"; then : | |
14971 | pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}' | |
14972 | rundir=${rundir-'${prefix}/run'} | |
14973 | pkgrundir='${rundir}/${PACKAGE_TARNAME}' | |
14974 | pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}' | |
14975 | else | |
14976 | libexecdir='${bindir}' | |
14977 | pkglibexecdir='${libexecdir}' | |
14978 | rundir='${sysconfdir}' | |
14979 | pkgrundir='${rundir}' | |
14980 | localstatedir='${prefix}' | |
14981 | pkglocalstatedir='${sysconfdir}' | |
14982 | fi | |
14983 | pkglibdir='${libdir}/${PACKAGE_TARNAME}' | |
14984 | ||
14985 | ||
14986 | ||
14987 | ||
14988 | ||
14989 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
14990 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14991 | last_ac_define_dir=`eval echo $pkglocalstatedir` | |
14992 | ac_define_dir=`eval echo $last_ac_define_dir` | |
14993 | ac_define_dir_counter=0 | |
14994 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
14995 | last_ac_define_dir="$ac_define_dir" | |
14996 | ac_define_dir=`eval echo $last_ac_define_dir` | |
14997 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val | |
14998 | if test "x$ac_define_dir_counter" = x128; then : | |
14999 | as_fn_error $? "detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5 | |
15000 | break | |
15001 | fi | |
15002 | done | |
15003 | PKGLOCALSTATEDIR="$ac_define_dir" | |
15004 | ||
15005 | ||
15006 | cat >>confdefs.h <<_ACEOF | |
15007 | #define PKGLOCALSTATEDIR "$ac_define_dir" | |
15008 | _ACEOF | |
15009 | ||
15010 | ||
15011 | ||
15012 | ||
15013 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
15014 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15015 | last_ac_define_dir=`eval echo $pkglibexecdir` | |
15016 | ac_define_dir=`eval echo $last_ac_define_dir` | |
15017 | ac_define_dir_counter=0 | |
15018 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
15019 | last_ac_define_dir="$ac_define_dir" | |
15020 | ac_define_dir=`eval echo $last_ac_define_dir` | |
15021 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val | |
15022 | if test "x$ac_define_dir_counter" = x128; then : | |
15023 | as_fn_error $? "detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5 | |
15024 | break | |
15025 | fi | |
15026 | done | |
15027 | PKGLIBEXECDIR="$ac_define_dir" | |
15028 | ||
15029 | ||
15030 | cat >>confdefs.h <<_ACEOF | |
15031 | #define PKGLIBEXECDIR "$ac_define_dir" | |
15032 | _ACEOF | |
15033 | ||
15034 | ||
15035 | ||
15036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
15037 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
15038 | if ${ac_cv_header_stdc+:} false; then : | |
15039 | $as_echo_n "(cached) " >&6 | |
15040 | else | |
15041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15042 | /* end confdefs.h. */ | |
15043 | #include <stdlib.h> | |
15044 | #include <stdarg.h> | |
15045 | #include <string.h> | |
15046 | #include <float.h> | |
15047 | ||
15048 | int | |
15049 | main () | |
15050 | { | |
15051 | ||
15052 | ; | |
15053 | return 0; | |
15054 | } | |
15055 | _ACEOF | |
15056 | if ac_fn_c_try_compile "$LINENO"; then : | |
15057 | ac_cv_header_stdc=yes | |
15058 | else | |
15059 | ac_cv_header_stdc=no | |
15060 | fi | |
15061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15062 | ||
15063 | if test $ac_cv_header_stdc = yes; then | |
15064 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
15065 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15066 | /* end confdefs.h. */ | |
15067 | #include <string.h> | |
15068 | ||
15069 | _ACEOF | |
15070 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15071 | $EGREP "memchr" >/dev/null 2>&1; then : | |
15072 | ||
15073 | else | |
15074 | ac_cv_header_stdc=no | |
15075 | fi | |
15076 | rm -f conftest* | |
15077 | ||
15078 | fi | |
15079 | ||
15080 | if test $ac_cv_header_stdc = yes; then | |
15081 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
15082 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15083 | /* end confdefs.h. */ | |
15084 | #include <stdlib.h> | |
15085 | ||
15086 | _ACEOF | |
15087 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15088 | $EGREP "free" >/dev/null 2>&1; then : | |
15089 | ||
15090 | else | |
15091 | ac_cv_header_stdc=no | |
15092 | fi | |
15093 | rm -f conftest* | |
15094 | ||
15095 | fi | |
15096 | ||
15097 | if test $ac_cv_header_stdc = yes; then | |
15098 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
15099 | if test "$cross_compiling" = yes; then : | |
15100 | : | |
15101 | else | |
15102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15103 | /* end confdefs.h. */ | |
15104 | #include <ctype.h> | |
15105 | #include <stdlib.h> | |
15106 | #if ((' ' & 0x0FF) == 0x020) | |
15107 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
15108 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
15109 | #else | |
15110 | # define ISLOWER(c) \ | |
15111 | (('a' <= (c) && (c) <= 'i') \ | |
15112 | || ('j' <= (c) && (c) <= 'r') \ | |
15113 | || ('s' <= (c) && (c) <= 'z')) | |
15114 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
15115 | #endif | |
15116 | ||
15117 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
15118 | int | |
15119 | main () | |
15120 | { | |
15121 | int i; | |
15122 | for (i = 0; i < 256; i++) | |
15123 | if (XOR (islower (i), ISLOWER (i)) | |
15124 | || toupper (i) != TOUPPER (i)) | |
15125 | return 2; | |
15126 | return 0; | |
15127 | } | |
15128 | _ACEOF | |
15129 | if ac_fn_c_try_run "$LINENO"; then : | |
15130 | ||
15131 | else | |
15132 | ac_cv_header_stdc=no | |
15133 | fi | |
15134 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15135 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15136 | fi | |
15137 | ||
15138 | fi | |
15139 | fi | |
15140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
15141 | $as_echo "$ac_cv_header_stdc" >&6; } | |
15142 | if test $ac_cv_header_stdc = yes; then | |
15143 | ||
15144 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
15145 | ||
15146 | fi | |
15147 | ||
15148 | ||
15149 | for ac_header in crypt.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h sys/wait.h wait.h sys/epoll.h sys/uio.h machine/endian.h | |
15150 | do : | |
15151 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
15152 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
15153 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
15154 | cat >>confdefs.h <<_ACEOF | |
15155 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15156 | _ACEOF | |
15157 | ||
15158 | fi | |
15159 | ||
15160 | done | |
15161 | ||
15162 | ||
15163 | ||
15164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
15165 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
15166 | if ${ac_cv_c_const+:} false; then : | |
15167 | $as_echo_n "(cached) " >&6 | |
15168 | else | |
15169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15170 | /* end confdefs.h. */ | |
15171 | ||
15172 | int | |
15173 | main () | |
15174 | { | |
15175 | ||
15176 | #ifndef __cplusplus | |
15177 | /* Ultrix mips cc rejects this sort of thing. */ | |
15178 | typedef int charset[2]; | |
15179 | const charset cs = { 0, 0 }; | |
15180 | /* SunOS 4.1.1 cc rejects this. */ | |
15181 | char const *const *pcpcc; | |
15182 | char **ppc; | |
15183 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
15184 | struct point {int x, y;}; | |
15185 | static struct point const zero = {0,0}; | |
15186 | /* AIX XL C 1.02.0.0 rejects this. | |
15187 | It does not let you subtract one const X* pointer from another in | |
15188 | an arm of an if-expression whose if-part is not a constant | |
15189 | expression */ | |
15190 | const char *g = "string"; | |
15191 | pcpcc = &g + (g ? g-g : 0); | |
15192 | /* HPUX 7.0 cc rejects these. */ | |
15193 | ++pcpcc; | |
15194 | ppc = (char**) pcpcc; | |
15195 | pcpcc = (char const *const *) ppc; | |
15196 | { /* SCO 3.2v4 cc rejects this sort of thing. */ | |
15197 | char tx; | |
15198 | char *t = &tx; | |
15199 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
15200 | ||
15201 | *t++ = 0; | |
15202 | if (s) return 0; | |
15203 | } | |
15204 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15205 | int x[] = {25, 17}; | |
15206 | const int *foo = &x[0]; | |
15207 | ++foo; | |
15208 | } | |
15209 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15210 | typedef const int *iptr; | |
15211 | iptr p = 0; | |
15212 | ++p; | |
15213 | } | |
15214 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying | |
15215 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
15216 | struct s { int j; const int *ap[3]; } bx; | |
15217 | struct s *b = &bx; b->j = 5; | |
15218 | } | |
15219 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15220 | const int foo = 10; | |
15221 | if (!foo) return 0; | |
15222 | } | |
15223 | return !cs[0] && !zero.x; | |
15224 | #endif | |
15225 | ||
15226 | ; | |
15227 | return 0; | |
15228 | } | |
15229 | _ACEOF | |
15230 | if ac_fn_c_try_compile "$LINENO"; then : | |
15231 | ac_cv_c_const=yes | |
15232 | else | |
15233 | ac_cv_c_const=no | |
15234 | fi | |
15235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15236 | fi | |
15237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
15238 | $as_echo "$ac_cv_c_const" >&6; } | |
15239 | if test $ac_cv_c_const = no; then | |
15240 | ||
15241 | $as_echo "#define const /**/" >>confdefs.h | |
15242 | ||
15243 | fi | |
15244 | ||
15245 | if test "$ac_cv_header_machine_endian_h" = "no" ; then | |
15246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
15247 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
15248 | if ${ac_cv_c_bigendian+:} false; then : | |
15249 | $as_echo_n "(cached) " >&6 | |
15250 | else | |
15251 | ac_cv_c_bigendian=unknown | |
15252 | # See if we're dealing with a universal compiler. | |
15253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15254 | /* end confdefs.h. */ | |
15255 | #ifndef __APPLE_CC__ | |
15256 | not a universal capable compiler | |
15257 | #endif | |
15258 | typedef int dummy; | |
15259 | ||
15260 | _ACEOF | |
15261 | if ac_fn_c_try_compile "$LINENO"; then : | |
15262 | ||
15263 | # Check for potential -arch flags. It is not universal unless | |
15264 | # there are at least two -arch flags with different values. | |
15265 | ac_arch= | |
15266 | ac_prev= | |
15267 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
15268 | if test -n "$ac_prev"; then | |
15269 | case $ac_word in | |
15270 | i?86 | x86_64 | ppc | ppc64) | |
15271 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
15272 | ac_arch=$ac_word | |
15273 | else | |
15274 | ac_cv_c_bigendian=universal | |
15275 | break | |
15276 | fi | |
15277 | ;; | |
15278 | esac | |
15279 | ac_prev= | |
15280 | elif test "x$ac_word" = "x-arch"; then | |
15281 | ac_prev=arch | |
15282 | fi | |
15283 | done | |
15284 | fi | |
15285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15286 | if test $ac_cv_c_bigendian = unknown; then | |
15287 | # See if sys/param.h defines the BYTE_ORDER macro. | |
15288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15289 | /* end confdefs.h. */ | |
15290 | #include <sys/types.h> | |
15291 | #include <sys/param.h> | |
15292 | ||
15293 | int | |
15294 | main () | |
15295 | { | |
15296 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
15297 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
15298 | && LITTLE_ENDIAN) | |
15299 | bogus endian macros | |
15300 | #endif | |
15301 | ||
15302 | ; | |
15303 | return 0; | |
15304 | } | |
15305 | _ACEOF | |
15306 | if ac_fn_c_try_compile "$LINENO"; then : | |
15307 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
15308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15309 | /* end confdefs.h. */ | |
15310 | #include <sys/types.h> | |
15311 | #include <sys/param.h> | |
15312 | ||
15313 | int | |
15314 | main () | |
15315 | { | |
15316 | #if BYTE_ORDER != BIG_ENDIAN | |
15317 | not big endian | |
15318 | #endif | |
15319 | ||
15320 | ; | |
15321 | return 0; | |
15322 | } | |
15323 | _ACEOF | |
15324 | if ac_fn_c_try_compile "$LINENO"; then : | |
15325 | ac_cv_c_bigendian=yes | |
15326 | else | |
15327 | ac_cv_c_bigendian=no | |
15328 | fi | |
15329 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15330 | fi | |
15331 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15332 | fi | |
15333 | if test $ac_cv_c_bigendian = unknown; then | |
15334 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
15335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15336 | /* end confdefs.h. */ | |
15337 | #include <limits.h> | |
15338 | ||
15339 | int | |
15340 | main () | |
15341 | { | |
15342 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
15343 | bogus endian macros | |
15344 | #endif | |
15345 | ||
15346 | ; | |
15347 | return 0; | |
15348 | } | |
15349 | _ACEOF | |
15350 | if ac_fn_c_try_compile "$LINENO"; then : | |
15351 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
15352 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15353 | /* end confdefs.h. */ | |
15354 | #include <limits.h> | |
15355 | ||
15356 | int | |
15357 | main () | |
15358 | { | |
15359 | #ifndef _BIG_ENDIAN | |
15360 | not big endian | |
15361 | #endif | |
15362 | ||
15363 | ; | |
15364 | return 0; | |
15365 | } | |
15366 | _ACEOF | |
15367 | if ac_fn_c_try_compile "$LINENO"; then : | |
15368 | ac_cv_c_bigendian=yes | |
15369 | else | |
15370 | ac_cv_c_bigendian=no | |
15371 | fi | |
15372 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15373 | fi | |
15374 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15375 | fi | |
15376 | if test $ac_cv_c_bigendian = unknown; then | |
15377 | # Compile a test program. | |
15378 | if test "$cross_compiling" = yes; then : | |
15379 | # Try to guess by grepping values from an object file. | |
15380 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15381 | /* end confdefs.h. */ | |
15382 | short int ascii_mm[] = | |
15383 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
15384 | short int ascii_ii[] = | |
15385 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
15386 | int use_ascii (int i) { | |
15387 | return ascii_mm[i] + ascii_ii[i]; | |
15388 | } | |
15389 | short int ebcdic_ii[] = | |
15390 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
15391 | short int ebcdic_mm[] = | |
15392 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
15393 | int use_ebcdic (int i) { | |
15394 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
15395 | } | |
15396 | extern int foo; | |
15397 | ||
15398 | int | |
15399 | main () | |
15400 | { | |
15401 | return use_ascii (foo) == use_ebcdic (foo); | |
15402 | ; | |
15403 | return 0; | |
15404 | } | |
15405 | _ACEOF | |
15406 | if ac_fn_c_try_compile "$LINENO"; then : | |
15407 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
15408 | ac_cv_c_bigendian=yes | |
15409 | fi | |
15410 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
15411 | if test "$ac_cv_c_bigendian" = unknown; then | |
15412 | ac_cv_c_bigendian=no | |
15413 | else | |
15414 | # finding both strings is unlikely to happen, but who knows? | |
15415 | ac_cv_c_bigendian=unknown | |
15416 | fi | |
15417 | fi | |
15418 | fi | |
15419 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15420 | else | |
15421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15422 | /* end confdefs.h. */ | |
15423 | $ac_includes_default | |
15424 | int | |
15425 | main () | |
15426 | { | |
15427 | ||
15428 | /* Are we little or big endian? From Harbison&Steele. */ | |
15429 | union | |
15430 | { | |
15431 | long int l; | |
15432 | char c[sizeof (long int)]; | |
15433 | } u; | |
15434 | u.l = 1; | |
15435 | return u.c[sizeof (long int) - 1] == 1; | |
15436 | ||
15437 | ; | |
15438 | return 0; | |
15439 | } | |
15440 | _ACEOF | |
15441 | if ac_fn_c_try_run "$LINENO"; then : | |
15442 | ac_cv_c_bigendian=no | |
15443 | else | |
15444 | ac_cv_c_bigendian=yes | |
15445 | fi | |
15446 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
15447 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15448 | fi | |
15449 | ||
15450 | fi | |
15451 | fi | |
15452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
15453 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
15454 | case $ac_cv_c_bigendian in #( | |
15455 | yes) | |
15456 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
15457 | ;; #( | |
15458 | no) | |
15459 | ;; #( | |
15460 | universal) | |
15461 | ||
15462 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
15463 | ||
15464 | ;; #( | |
15465 | *) | |
15466 | as_fn_error $? "unknown endianness | |
15467 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
15468 | esac | |
15469 | ||
15470 | fi | |
15471 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | |
15472 | if test "x$ac_cv_type_pid_t" = xyes; then : | |
15473 | ||
15474 | else | |
15475 | ||
15476 | cat >>confdefs.h <<_ACEOF | |
15477 | #define pid_t int | |
15478 | _ACEOF | |
15479 | ||
15480 | fi | |
15481 | ||
15482 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
15483 | if test "x$ac_cv_type_size_t" = xyes; then : | |
15484 | ||
15485 | else | |
15486 | ||
15487 | cat >>confdefs.h <<_ACEOF | |
15488 | #define size_t unsigned int | |
15489 | _ACEOF | |
15490 | ||
15491 | fi | |
15492 | ||
15493 | # The cast to long int works around a bug in the HP C Compiler | |
15494 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15495 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15496 | # This bug is HP SR number 8606223364. | |
15497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
15498 | $as_echo_n "checking size of short... " >&6; } | |
15499 | if ${ac_cv_sizeof_short+:} false; then : | |
15500 | $as_echo_n "(cached) " >&6 | |
15501 | else | |
15502 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : | |
15503 | ||
15504 | else | |
15505 | if test "$ac_cv_type_short" = yes; then | |
15506 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15507 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15508 | as_fn_error 77 "cannot compute sizeof (short) | |
15509 | See \`config.log' for more details" "$LINENO" 5; } | |
15510 | else | |
15511 | ac_cv_sizeof_short=0 | |
15512 | fi | |
15513 | fi | |
15514 | ||
15515 | fi | |
15516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 | |
15517 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
15518 | ||
15519 | ||
15520 | ||
15521 | cat >>confdefs.h <<_ACEOF | |
15522 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15523 | _ACEOF | |
15524 | ||
15525 | ||
15526 | # The cast to long int works around a bug in the HP C Compiler | |
15527 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15528 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15529 | # This bug is HP SR number 8606223364. | |
15530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
15531 | $as_echo_n "checking size of int... " >&6; } | |
15532 | if ${ac_cv_sizeof_int+:} false; then : | |
15533 | $as_echo_n "(cached) " >&6 | |
15534 | else | |
15535 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
15536 | ||
15537 | else | |
15538 | if test "$ac_cv_type_int" = yes; then | |
15539 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15540 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15541 | as_fn_error 77 "cannot compute sizeof (int) | |
15542 | See \`config.log' for more details" "$LINENO" 5; } | |
15543 | else | |
15544 | ac_cv_sizeof_int=0 | |
15545 | fi | |
15546 | fi | |
15547 | ||
15548 | fi | |
15549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
15550 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
15551 | ||
15552 | ||
15553 | ||
15554 | cat >>confdefs.h <<_ACEOF | |
15555 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15556 | _ACEOF | |
15557 | ||
15558 | ||
15559 | # The cast to long int works around a bug in the HP C Compiler | |
15560 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15561 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15562 | # This bug is HP SR number 8606223364. | |
15563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
15564 | $as_echo_n "checking size of long... " >&6; } | |
15565 | if ${ac_cv_sizeof_long+:} false; then : | |
15566 | $as_echo_n "(cached) " >&6 | |
15567 | else | |
15568 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : | |
15569 | ||
15570 | else | |
15571 | if test "$ac_cv_type_long" = yes; then | |
15572 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15573 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15574 | as_fn_error 77 "cannot compute sizeof (long) | |
15575 | See \`config.log' for more details" "$LINENO" 5; } | |
15576 | else | |
15577 | ac_cv_sizeof_long=0 | |
15578 | fi | |
15579 | fi | |
15580 | ||
15581 | fi | |
15582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
15583 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
15584 | ||
15585 | ||
15586 | ||
15587 | cat >>confdefs.h <<_ACEOF | |
15588 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
15589 | _ACEOF | |
15590 | ||
15591 | ||
15592 | # The cast to long int works around a bug in the HP C Compiler | |
15593 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15594 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15595 | # This bug is HP SR number 8606223364. | |
15596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
15597 | $as_echo_n "checking size of long long... " >&6; } | |
15598 | if ${ac_cv_sizeof_long_long+:} false; then : | |
15599 | $as_echo_n "(cached) " >&6 | |
15600 | else | |
15601 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
15602 | ||
15603 | else | |
15604 | if test "$ac_cv_type_long_long" = yes; then | |
15605 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
15606 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15607 | as_fn_error 77 "cannot compute sizeof (long long) | |
15608 | See \`config.log' for more details" "$LINENO" 5; } | |
15609 | else | |
15610 | ac_cv_sizeof_long_long=0 | |
15611 | fi | |
15612 | fi | |
15613 | ||
15614 | fi | |
15615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | |
15616 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
15617 | ||
15618 | ||
15619 | ||
15620 | cat >>confdefs.h <<_ACEOF | |
15621 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
15622 | _ACEOF | |
15623 | ||
15624 | ||
15625 | ||
15626 | ||
15627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
15628 | $as_echo_n "checking for library containing socket... " >&6; } | |
15629 | if ${ac_cv_search_socket+:} false; then : | |
15630 | $as_echo_n "(cached) " >&6 | |
15631 | else | |
15632 | ac_func_search_save_LIBS=$LIBS | |
15633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15634 | /* end confdefs.h. */ | |
15635 | ||
15636 | /* Override any GCC internal prototype to avoid an error. | |
15637 | Use char because int might match the return type of a GCC | |
15638 | builtin and then its argument prototype would still apply. */ | |
15639 | #ifdef __cplusplus | |
15640 | extern "C" | |
15641 | #endif | |
15642 | char socket (); | |
15643 | int | |
15644 | main () | |
15645 | { | |
15646 | return socket (); | |
15647 | ; | |
15648 | return 0; | |
15649 | } | |
15650 | _ACEOF | |
15651 | for ac_lib in '' socket; do | |
15652 | if test -z "$ac_lib"; then | |
15653 | ac_res="none required" | |
15654 | else | |
15655 | ac_res=-l$ac_lib | |
15656 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15657 | fi | |
15658 | if ac_fn_c_try_link "$LINENO"; then : | |
15659 | ac_cv_search_socket=$ac_res | |
15660 | fi | |
15661 | rm -f core conftest.err conftest.$ac_objext \ | |
15662 | conftest$ac_exeext | |
15663 | if ${ac_cv_search_socket+:} false; then : | |
15664 | break | |
15665 | fi | |
15666 | done | |
15667 | if ${ac_cv_search_socket+:} false; then : | |
15668 | ||
15669 | else | |
15670 | ac_cv_search_socket=no | |
15671 | fi | |
15672 | rm conftest.$ac_ext | |
15673 | LIBS=$ac_func_search_save_LIBS | |
15674 | fi | |
15675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
15676 | $as_echo "$ac_cv_search_socket" >&6; } | |
15677 | ac_res=$ac_cv_search_socket | |
15678 | if test "$ac_res" != no; then : | |
15679 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15680 | ||
15681 | else | |
15682 | as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5 | |
15683 | fi | |
15684 | ||
15685 | ||
15686 | if test x"$SUN" = xyes; then | |
15687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 | |
15688 | $as_echo_n "checking for library containing inet_ntoa... " >&6; } | |
15689 | if ${ac_cv_search_inet_ntoa+:} false; then : | |
15690 | $as_echo_n "(cached) " >&6 | |
15691 | else | |
15692 | ac_func_search_save_LIBS=$LIBS | |
15693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15694 | /* end confdefs.h. */ | |
15695 | ||
15696 | /* Override any GCC internal prototype to avoid an error. | |
15697 | Use char because int might match the return type of a GCC | |
15698 | builtin and then its argument prototype would still apply. */ | |
15699 | #ifdef __cplusplus | |
15700 | extern "C" | |
15701 | #endif | |
15702 | char inet_ntoa (); | |
15703 | int | |
15704 | main () | |
15705 | { | |
15706 | return inet_ntoa (); | |
15707 | ; | |
15708 | return 0; | |
15709 | } | |
15710 | _ACEOF | |
15711 | for ac_lib in '' nsl; do | |
15712 | if test -z "$ac_lib"; then | |
15713 | ac_res="none required" | |
15714 | else | |
15715 | ac_res=-l$ac_lib | |
15716 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15717 | fi | |
15718 | if ac_fn_c_try_link "$LINENO"; then : | |
15719 | ac_cv_search_inet_ntoa=$ac_res | |
15720 | fi | |
15721 | rm -f core conftest.err conftest.$ac_objext \ | |
15722 | conftest$ac_exeext | |
15723 | if ${ac_cv_search_inet_ntoa+:} false; then : | |
15724 | break | |
15725 | fi | |
15726 | done | |
15727 | if ${ac_cv_search_inet_ntoa+:} false; then : | |
15728 | ||
15729 | else | |
15730 | ac_cv_search_inet_ntoa=no | |
15731 | fi | |
15732 | rm conftest.$ac_ext | |
15733 | LIBS=$ac_func_search_save_LIBS | |
15734 | fi | |
15735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 | |
15736 | $as_echo "$ac_cv_search_inet_ntoa" >&6; } | |
15737 | ac_res=$ac_cv_search_inet_ntoa | |
15738 | if test "$ac_res" != no; then : | |
15739 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15740 | ||
15741 | else | |
15742 | as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5 | |
15743 | fi | |
15744 | ||
15745 | fi | |
15746 | ||
15747 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> | |
15748 | #include <sys/socket.h> | |
15749 | " | |
15750 | if test "x$ac_cv_type_socklen_t" = xyes; then : | |
15751 | ||
15752 | else | |
15753 | ||
15754 | $as_echo "#define socklen_t unsigned int" >>confdefs.h | |
15755 | ||
15756 | fi | |
15757 | ||
15758 | ||
15759 | # Check whether --enable-ipv6 was given. | |
15760 | if test "${enable_ipv6+set}" = set; then : | |
15761 | enableval=$enable_ipv6; ipv6=$enableval | |
15762 | else | |
15763 | ipv6=no | |
15764 | fi | |
15765 | ||
15766 | ||
15767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 | |
15768 | $as_echo_n "checking for library containing crypt... " >&6; } | |
15769 | if ${ac_cv_search_crypt+:} false; then : | |
15770 | $as_echo_n "(cached) " >&6 | |
15771 | else | |
15772 | ac_func_search_save_LIBS=$LIBS | |
15773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15774 | /* end confdefs.h. */ | |
15775 | ||
15776 | /* Override any GCC internal prototype to avoid an error. | |
15777 | Use char because int might match the return type of a GCC | |
15778 | builtin and then its argument prototype would still apply. */ | |
15779 | #ifdef __cplusplus | |
15780 | extern "C" | |
15781 | #endif | |
15782 | char crypt (); | |
15783 | int | |
15784 | main () | |
15785 | { | |
15786 | return crypt (); | |
15787 | ; | |
15788 | return 0; | |
15789 | } | |
15790 | _ACEOF | |
15791 | for ac_lib in '' crypt descrypt; do | |
15792 | if test -z "$ac_lib"; then | |
15793 | ac_res="none required" | |
15794 | else | |
15795 | ac_res=-l$ac_lib | |
15796 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15797 | fi | |
15798 | if ac_fn_c_try_link "$LINENO"; then : | |
15799 | ac_cv_search_crypt=$ac_res | |
15800 | fi | |
15801 | rm -f core conftest.err conftest.$ac_objext \ | |
15802 | conftest$ac_exeext | |
15803 | if ${ac_cv_search_crypt+:} false; then : | |
15804 | break | |
15805 | fi | |
15806 | done | |
15807 | if ${ac_cv_search_crypt+:} false; then : | |
15808 | ||
15809 | else | |
15810 | ac_cv_search_crypt=no | |
15811 | fi | |
15812 | rm conftest.$ac_ext | |
15813 | LIBS=$ac_func_search_save_LIBS | |
15814 | fi | |
15815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | |
15816 | $as_echo "$ac_cv_search_crypt" >&6; } | |
15817 | ac_res=$ac_cv_search_crypt | |
15818 | if test "$ac_res" != no; then : | |
15819 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15820 | ||
15821 | fi | |
15822 | ||
15823 | ||
15824 | CRYPT_LIB=$ac_cv_search_crypt | |
15825 | ||
15826 | if test "$CRYPT_LIB" = "none required"; then | |
15827 | unset CRYPT_LIB | |
15828 | elif test "$CRYPT_LIB" = no; then | |
15829 | unset CRYPT_LIB | |
15830 | fi | |
15831 | ||
15832 | ||
15833 | ||
15834 | if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then | |
15835 | VICONF=viconf | |
15836 | else | |
15837 | VICONF="" | |
15838 | fi | |
15839 | ||
15840 | ||
15841 | ||
15842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5 | |
15843 | $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; } | |
15844 | if ${gcc_cv_header_string+:} false; then : | |
15845 | $as_echo_n "(cached) " >&6 | |
15846 | else | |
15847 | ||
15848 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15849 | /* end confdefs.h. */ | |
15850 | #include <string.h> | |
15851 | #include <strings.h> | |
15852 | _ACEOF | |
15853 | if ac_fn_c_try_compile "$LINENO"; then : | |
15854 | gcc_cv_header_string=yes | |
15855 | else | |
15856 | gcc_cv_header_string=no | |
15857 | fi | |
15858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15859 | ||
15860 | fi | |
15861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5 | |
15862 | $as_echo "$gcc_cv_header_string" >&6; } | |
15863 | ||
15864 | if test "$gcc_cv_header_string" = "yes"; then | |
15865 | ||
15866 | $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h | |
15867 | ||
15868 | fi | |
15869 | ||
15870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
15871 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
15872 | if ${ac_cv_c_bigendian+:} false; then : | |
15873 | $as_echo_n "(cached) " >&6 | |
15874 | else | |
15875 | ac_cv_c_bigendian=unknown | |
15876 | # See if we're dealing with a universal compiler. | |
15877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15878 | /* end confdefs.h. */ | |
15879 | #ifndef __APPLE_CC__ | |
15880 | not a universal capable compiler | |
15881 | #endif | |
15882 | typedef int dummy; | |
15883 | ||
15884 | _ACEOF | |
15885 | if ac_fn_c_try_compile "$LINENO"; then : | |
15886 | ||
15887 | # Check for potential -arch flags. It is not universal unless | |
15888 | # there are at least two -arch flags with different values. | |
15889 | ac_arch= | |
15890 | ac_prev= | |
15891 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
15892 | if test -n "$ac_prev"; then | |
15893 | case $ac_word in | |
15894 | i?86 | x86_64 | ppc | ppc64) | |
15895 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
15896 | ac_arch=$ac_word | |
15897 | else | |
15898 | ac_cv_c_bigendian=universal | |
15899 | break | |
15900 | fi | |
15901 | ;; | |
15902 | esac | |
15903 | ac_prev= | |
15904 | elif test "x$ac_word" = "x-arch"; then | |
15905 | ac_prev=arch | |
15906 | fi | |
15907 | done | |
15908 | fi | |
15909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15910 | if test $ac_cv_c_bigendian = unknown; then | |
15911 | # See if sys/param.h defines the BYTE_ORDER macro. | |
15912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15913 | /* end confdefs.h. */ | |
15914 | #include <sys/types.h> | |
15915 | #include <sys/param.h> | |
15916 | ||
15917 | int | |
15918 | main () | |
15919 | { | |
15920 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
15921 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
15922 | && LITTLE_ENDIAN) | |
15923 | bogus endian macros | |
15924 | #endif | |
15925 | ||
15926 | ; | |
15927 | return 0; | |
15928 | } | |
15929 | _ACEOF | |
15930 | if ac_fn_c_try_compile "$LINENO"; then : | |
15931 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
15932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15933 | /* end confdefs.h. */ | |
15934 | #include <sys/types.h> | |
15935 | #include <sys/param.h> | |
15936 | ||
15937 | int | |
15938 | main () | |
15939 | { | |
15940 | #if BYTE_ORDER != BIG_ENDIAN | |
15941 | not big endian | |
15942 | #endif | |
15943 | ||
15944 | ; | |
15945 | return 0; | |
15946 | } | |
15947 | _ACEOF | |
15948 | if ac_fn_c_try_compile "$LINENO"; then : | |
15949 | ac_cv_c_bigendian=yes | |
15950 | else | |
15951 | ac_cv_c_bigendian=no | |
15952 | fi | |
15953 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15954 | fi | |
15955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15956 | fi | |
15957 | if test $ac_cv_c_bigendian = unknown; then | |
15958 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
15959 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15960 | /* end confdefs.h. */ | |
15961 | #include <limits.h> | |
15962 | ||
15963 | int | |
15964 | main () | |
15965 | { | |
15966 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
15967 | bogus endian macros | |
15968 | #endif | |
15969 | ||
15970 | ; | |
15971 | return 0; | |
15972 | } | |
15973 | _ACEOF | |
15974 | if ac_fn_c_try_compile "$LINENO"; then : | |
15975 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
15976 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15977 | /* end confdefs.h. */ | |
15978 | #include <limits.h> | |
15979 | ||
15980 | int | |
15981 | main () | |
15982 | { | |
15983 | #ifndef _BIG_ENDIAN | |
15984 | not big endian | |
15985 | #endif | |
15986 | ||
15987 | ; | |
15988 | return 0; | |
15989 | } | |
15990 | _ACEOF | |
15991 | if ac_fn_c_try_compile "$LINENO"; then : | |
15992 | ac_cv_c_bigendian=yes | |
15993 | else | |
15994 | ac_cv_c_bigendian=no | |
15995 | fi | |
15996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15997 | fi | |
15998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15999 | fi | |
16000 | if test $ac_cv_c_bigendian = unknown; then | |
16001 | # Compile a test program. | |
16002 | if test "$cross_compiling" = yes; then : | |
16003 | # Try to guess by grepping values from an object file. | |
16004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16005 | /* end confdefs.h. */ | |
16006 | short int ascii_mm[] = | |
16007 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
16008 | short int ascii_ii[] = | |
16009 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
16010 | int use_ascii (int i) { | |
16011 | return ascii_mm[i] + ascii_ii[i]; | |
16012 | } | |
16013 | short int ebcdic_ii[] = | |
16014 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
16015 | short int ebcdic_mm[] = | |
16016 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
16017 | int use_ebcdic (int i) { | |
16018 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
16019 | } | |
16020 | extern int foo; | |
16021 | ||
16022 | int | |
16023 | main () | |
16024 | { | |
16025 | return use_ascii (foo) == use_ebcdic (foo); | |
16026 | ; | |
16027 | return 0; | |
16028 | } | |
16029 | _ACEOF | |
16030 | if ac_fn_c_try_compile "$LINENO"; then : | |
16031 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
16032 | ac_cv_c_bigendian=yes | |
16033 | fi | |
16034 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
16035 | if test "$ac_cv_c_bigendian" = unknown; then | |
16036 | ac_cv_c_bigendian=no | |
16037 | else | |
16038 | # finding both strings is unlikely to happen, but who knows? | |
16039 | ac_cv_c_bigendian=unknown | |
16040 | fi | |
16041 | fi | |
16042 | fi | |
16043 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
16044 | else | |
16045 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16046 | /* end confdefs.h. */ | |
16047 | $ac_includes_default | |
16048 | int | |
16049 | main () | |
16050 | { | |
16051 | ||
16052 | /* Are we little or big endian? From Harbison&Steele. */ | |
16053 | union | |
16054 | { | |
16055 | long int l; | |
16056 | char c[sizeof (long int)]; | |
16057 | } u; | |
16058 | u.l = 1; | |
16059 | return u.c[sizeof (long int) - 1] == 1; | |
16060 | ||
16061 | ; | |
16062 | return 0; | |
16063 | } | |
16064 | _ACEOF | |
16065 | if ac_fn_c_try_run "$LINENO"; then : | |
16066 | ac_cv_c_bigendian=no | |
16067 | else | |
16068 | ac_cv_c_bigendian=yes | |
16069 | fi | |
16070 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16071 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16072 | fi | |
16073 | ||
16074 | fi | |
16075 | fi | |
16076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
16077 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
16078 | case $ac_cv_c_bigendian in #( | |
16079 | yes) | |
16080 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
16081 | ;; #( | |
16082 | no) | |
16083 | ;; #( | |
16084 | universal) | |
16085 | ||
16086 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
16087 | ||
16088 | ;; #( | |
16089 | *) | |
16090 | as_fn_error $? "unknown endianness | |
16091 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
16092 | esac | |
16093 | ||
16094 | ||
16095 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" | |
16096 | if test "x$ac_cv_header_stdarg_h" = xyes; then : | |
16097 | ||
16098 | else | |
16099 | as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5 | |
16100 | fi | |
16101 | ||
16102 | ||
16103 | ||
16104 | ||
16105 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
16106 | ||
16107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5 | |
16108 | $as_echo_n "checking for strlcpy... " >&6; } | |
16109 | save_CFLAGS=$CFLAGS | |
16110 | CFLAGS="$CFLAGS -Wimplicit -Werror" | |
16111 | ||
16112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16113 | /* end confdefs.h. */ | |
16114 | #include <string.h> | |
16115 | #include <stdlib.h> | |
16116 | int | |
16117 | main () | |
16118 | { | |
16119 | char *a = malloc(6); | |
16120 | strlcpy(a, "hello", 6); | |
16121 | ||
16122 | ; | |
16123 | return 0; | |
16124 | } | |
16125 | _ACEOF | |
16126 | if ac_fn_c_try_link "$LINENO"; then : | |
16127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16128 | $as_echo "yes" >&6; } | |
16129 | ||
16130 | $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h | |
16131 | ||
16132 | else | |
16133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16134 | $as_echo "no" >&6; } | |
16135 | ||
16136 | fi | |
16137 | rm -f core conftest.err conftest.$ac_objext \ | |
16138 | conftest$ac_exeext conftest.$ac_ext | |
16139 | ||
16140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5 | |
16141 | $as_echo_n "checking for strlcat... " >&6; } | |
16142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16143 | /* end confdefs.h. */ | |
16144 | #include <string.h> | |
16145 | #include <stdlib.h> | |
16146 | int | |
16147 | main () | |
16148 | { | |
16149 | char *a = malloc(6); | |
16150 | a[0] = '\0'; | |
16151 | strlcat(a, "hello", 6); | |
16152 | ||
16153 | ; | |
16154 | return 0; | |
16155 | } | |
16156 | _ACEOF | |
16157 | if ac_fn_c_try_link "$LINENO"; then : | |
16158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16159 | $as_echo "yes" >&6; } | |
16160 | ||
16161 | $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h | |
16162 | ||
16163 | else | |
16164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16165 | $as_echo "no" >&6; } | |
16166 | ||
16167 | fi | |
16168 | rm -f core conftest.err conftest.$ac_objext \ | |
16169 | conftest$ac_exeext conftest.$ac_ext | |
16170 | ||
16171 | CFLAGS=$save_CFLAGS | |
16172 | ||
16173 | else | |
16174 | ||
16175 | ||
16176 | for ac_func in strlcat strlcpy | |
16177 | do : | |
16178 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16179 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16180 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
16181 | cat >>confdefs.h <<_ACEOF | |
16182 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16183 | _ACEOF | |
16184 | ||
16185 | fi | |
16186 | done | |
16187 | ||
16188 | ||
16189 | fi | |
16190 | ||
16191 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" | |
16192 | if test "x$ac_cv_type_u_int32_t" = xyes; then : | |
16193 | ||
16194 | else | |
16195 | ||
16196 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" | |
16197 | if test "x$ac_cv_type_uint32_t" = xyes; then : | |
16198 | ||
16199 | ||
16200 | $as_echo "#define u_int32_t uint32_t" >>confdefs.h | |
16201 | ||
16202 | ||
16203 | else | |
16204 | ||
16205 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 | |
16206 | $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
16207 | ||
16208 | $as_echo "#define u_int32_t unsigned long int" >>confdefs.h | |
16209 | ||
16210 | ||
16211 | fi | |
16212 | ||
16213 | ||
16214 | fi | |
16215 | ||
16216 | ||
16217 | ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" | |
16218 | if test "x$ac_cv_type_u_int16_t" = xyes; then : | |
16219 | ||
16220 | else | |
16221 | ||
16222 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" | |
16223 | if test "x$ac_cv_type_uint16_t" = xyes; then : | |
16224 | ||
16225 | ||
16226 | $as_echo "#define u_int16_t uint16_t" >>confdefs.h | |
16227 | ||
16228 | ||
16229 | else | |
16230 | ||
16231 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 | |
16232 | $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
16233 | ||
16234 | $as_echo "#define u_int16_t unsigned short int" >>confdefs.h | |
16235 | ||
16236 | ||
16237 | fi | |
16238 | ||
16239 | ||
16240 | fi | |
16241 | ||
16242 | ||
16243 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> | |
16244 | #include <netinet/in.h> | |
16245 | " | |
16246 | if test "x$ac_cv_type_in_port_t" = xyes; then : | |
16247 | ||
16248 | else | |
16249 | ||
16250 | $as_echo "#define in_port_t u_int16_t" >>confdefs.h | |
16251 | ||
16252 | fi | |
16253 | ||
16254 | ||
16255 | ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h> | |
16256 | #include <sys/socket.h> | |
16257 | " | |
16258 | if test "x$ac_cv_type_sa_family_t" = xyes; then : | |
16259 | ||
16260 | else | |
16261 | ||
16262 | $as_echo "#define sa_family_t u_int16_t" >>confdefs.h | |
16263 | ||
16264 | fi | |
16265 | ||
16266 | ||
16267 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" | |
16268 | if test "x$ac_cv_type_uintptr_t" = xyes; then : | |
16269 | ||
16270 | cat >>confdefs.h <<_ACEOF | |
16271 | #define HAVE_UINTPTR_T 1 | |
16272 | _ACEOF | |
16273 | ||
16274 | ||
16275 | fi | |
16276 | ||
16277 | ||
16278 | for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup | |
16279 | do : | |
16280 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16281 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16282 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
16283 | cat >>confdefs.h <<_ACEOF | |
16284 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16285 | _ACEOF | |
16286 | ||
16287 | fi | |
16288 | done | |
16289 | ||
16290 | ||
16291 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
16292 | # for constant arguments. Useless! | |
16293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
16294 | $as_echo_n "checking for working alloca.h... " >&6; } | |
16295 | if ${ac_cv_working_alloca_h+:} false; then : | |
16296 | $as_echo_n "(cached) " >&6 | |
16297 | else | |
16298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16299 | /* end confdefs.h. */ | |
16300 | #include <alloca.h> | |
16301 | int | |
16302 | main () | |
16303 | { | |
16304 | char *p = (char *) alloca (2 * sizeof (int)); | |
16305 | if (p) return 0; | |
16306 | ; | |
16307 | return 0; | |
16308 | } | |
16309 | _ACEOF | |
16310 | if ac_fn_c_try_link "$LINENO"; then : | |
16311 | ac_cv_working_alloca_h=yes | |
16312 | else | |
16313 | ac_cv_working_alloca_h=no | |
16314 | fi | |
16315 | rm -f core conftest.err conftest.$ac_objext \ | |
16316 | conftest$ac_exeext conftest.$ac_ext | |
16317 | fi | |
16318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | |
16319 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
16320 | if test $ac_cv_working_alloca_h = yes; then | |
16321 | ||
16322 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h | |
16323 | ||
16324 | fi | |
16325 | ||
16326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | |
16327 | $as_echo_n "checking for alloca... " >&6; } | |
16328 | if ${ac_cv_func_alloca_works+:} false; then : | |
16329 | $as_echo_n "(cached) " >&6 | |
16330 | else | |
16331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16332 | /* end confdefs.h. */ | |
16333 | #ifdef __GNUC__ | |
16334 | # define alloca __builtin_alloca | |
16335 | #else | |
16336 | # ifdef _MSC_VER | |
16337 | # include <malloc.h> | |
16338 | # define alloca _alloca | |
16339 | # else | |
16340 | # ifdef HAVE_ALLOCA_H | |
16341 | # include <alloca.h> | |
16342 | # else | |
16343 | # ifdef _AIX | |
16344 | #pragma alloca | |
16345 | # else | |
16346 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
16347 | void *alloca (size_t); | |
16348 | # endif | |
16349 | # endif | |
16350 | # endif | |
16351 | # endif | |
16352 | #endif | |
16353 | ||
16354 | int | |
16355 | main () | |
16356 | { | |
16357 | char *p = (char *) alloca (1); | |
16358 | if (p) return 0; | |
16359 | ; | |
16360 | return 0; | |
16361 | } | |
16362 | _ACEOF | |
16363 | if ac_fn_c_try_link "$LINENO"; then : | |
16364 | ac_cv_func_alloca_works=yes | |
16365 | else | |
16366 | ac_cv_func_alloca_works=no | |
16367 | fi | |
16368 | rm -f core conftest.err conftest.$ac_objext \ | |
16369 | conftest$ac_exeext conftest.$ac_ext | |
16370 | fi | |
16371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
16372 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
16373 | ||
16374 | if test $ac_cv_func_alloca_works = yes; then | |
16375 | ||
16376 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h | |
16377 | ||
16378 | else | |
16379 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
16380 | # that cause trouble. Some versions do not even contain alloca or | |
16381 | # contain a buggy version. If you still want to use their alloca, | |
16382 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
16383 | ||
16384 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | |
16385 | ||
16386 | $as_echo "#define C_ALLOCA 1" >>confdefs.h | |
16387 | ||
16388 | ||
16389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 | |
16390 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
16391 | if ${ac_cv_os_cray+:} false; then : | |
16392 | $as_echo_n "(cached) " >&6 | |
16393 | else | |
16394 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16395 | /* end confdefs.h. */ | |
16396 | #if defined CRAY && ! defined CRAY2 | |
16397 | webecray | |
16398 | #else | |
16399 | wenotbecray | |
16400 | #endif | |
16401 | ||
16402 | _ACEOF | |
16403 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16404 | $EGREP "webecray" >/dev/null 2>&1; then : | |
16405 | ac_cv_os_cray=yes | |
16406 | else | |
16407 | ac_cv_os_cray=no | |
16408 | fi | |
16409 | rm -f conftest* | |
16410 | ||
16411 | fi | |
16412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 | |
16413 | $as_echo "$ac_cv_os_cray" >&6; } | |
16414 | if test $ac_cv_os_cray = yes; then | |
16415 | for ac_func in _getb67 GETB67 getb67; do | |
16416 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16417 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
16418 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
16419 | ||
16420 | cat >>confdefs.h <<_ACEOF | |
16421 | #define CRAY_STACKSEG_END $ac_func | |
16422 | _ACEOF | |
16423 | ||
16424 | break | |
16425 | fi | |
16426 | ||
16427 | done | |
16428 | fi | |
16429 | ||
16430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | |
16431 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
16432 | if ${ac_cv_c_stack_direction+:} false; then : | |
16433 | $as_echo_n "(cached) " >&6 | |
16434 | else | |
16435 | if test "$cross_compiling" = yes; then : | |
16436 | ac_cv_c_stack_direction=0 | |
16437 | else | |
16438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16439 | /* end confdefs.h. */ | |
16440 | $ac_includes_default | |
16441 | int | |
16442 | find_stack_direction (int *addr, int depth) | |
16443 | { | |
16444 | int dir, dummy = 0; | |
16445 | if (! addr) | |
16446 | addr = &dummy; | |
16447 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
16448 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
16449 | return dir + dummy; | |
16450 | } | |
16451 | ||
16452 | int | |
16453 | main (int argc, char **argv) | |
16454 | { | |
16455 | return find_stack_direction (0, argc + !argv + 20) < 0; | |
16456 | } | |
16457 | _ACEOF | |
16458 | if ac_fn_c_try_run "$LINENO"; then : | |
16459 | ac_cv_c_stack_direction=1 | |
16460 | else | |
16461 | ac_cv_c_stack_direction=-1 | |
16462 | fi | |
16463 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16464 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16465 | fi | |
16466 | ||
16467 | fi | |
16468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
16469 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
16470 | cat >>confdefs.h <<_ACEOF | |
16471 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
16472 | _ACEOF | |
16473 | ||
16474 | ||
16475 | fi | |
16476 | ||
16477 | ||
16478 | ||
16479 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" | |
16480 | if test "x$ac_cv_func_nanosleep" = xyes; then : | |
16481 | ||
16482 | else | |
16483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 | |
16484 | $as_echo_n "checking for nanosleep in -lrt... " >&6; } | |
16485 | if ${ac_cv_lib_rt_nanosleep+:} false; then : | |
16486 | $as_echo_n "(cached) " >&6 | |
16487 | else | |
16488 | ac_check_lib_save_LIBS=$LIBS | |
16489 | LIBS="-lrt $LIBS" | |
16490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16491 | /* end confdefs.h. */ | |
16492 | ||
16493 | /* Override any GCC internal prototype to avoid an error. | |
16494 | Use char because int might match the return type of a GCC | |
16495 | builtin and then its argument prototype would still apply. */ | |
16496 | #ifdef __cplusplus | |
16497 | extern "C" | |
16498 | #endif | |
16499 | char nanosleep (); | |
16500 | int | |
16501 | main () | |
16502 | { | |
16503 | return nanosleep (); | |
16504 | ; | |
16505 | return 0; | |
16506 | } | |
16507 | _ACEOF | |
16508 | if ac_fn_c_try_link "$LINENO"; then : | |
16509 | ac_cv_lib_rt_nanosleep=yes | |
16510 | else | |
16511 | ac_cv_lib_rt_nanosleep=no | |
16512 | fi | |
16513 | rm -f core conftest.err conftest.$ac_objext \ | |
16514 | conftest$ac_exeext conftest.$ac_ext | |
16515 | LIBS=$ac_check_lib_save_LIBS | |
16516 | fi | |
16517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 | |
16518 | $as_echo "$ac_cv_lib_rt_nanosleep" >&6; } | |
16519 | if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : | |
16520 | LIBS="${LIBS} -lrt" | |
16521 | else | |
16522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 | |
16523 | $as_echo_n "checking for nanosleep in -lposix4... " >&6; } | |
16524 | if ${ac_cv_lib_posix4_nanosleep+:} false; then : | |
16525 | $as_echo_n "(cached) " >&6 | |
16526 | else | |
16527 | ac_check_lib_save_LIBS=$LIBS | |
16528 | LIBS="-lposix4 $LIBS" | |
16529 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16530 | /* end confdefs.h. */ | |
16531 | ||
16532 | /* Override any GCC internal prototype to avoid an error. | |
16533 | Use char because int might match the return type of a GCC | |
16534 | builtin and then its argument prototype would still apply. */ | |
16535 | #ifdef __cplusplus | |
16536 | extern "C" | |
16537 | #endif | |
16538 | char nanosleep (); | |
16539 | int | |
16540 | main () | |
16541 | { | |
16542 | return nanosleep (); | |
16543 | ; | |
16544 | return 0; | |
16545 | } | |
16546 | _ACEOF | |
16547 | if ac_fn_c_try_link "$LINENO"; then : | |
16548 | ac_cv_lib_posix4_nanosleep=yes | |
16549 | else | |
16550 | ac_cv_lib_posix4_nanosleep=no | |
16551 | fi | |
16552 | rm -f core conftest.err conftest.$ac_objext \ | |
16553 | conftest$ac_exeext conftest.$ac_ext | |
16554 | LIBS=$ac_check_lib_save_LIBS | |
16555 | fi | |
16556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
16557 | $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } | |
16558 | if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : | |
16559 | LIBS="${LIBS} -lposix4" | |
16560 | ||
16561 | fi | |
16562 | ||
16563 | fi | |
16564 | ||
16565 | fi | |
16566 | ||
16567 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
16568 | then | |
16569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5 | |
16570 | $as_echo "\"nanosleep not found..using select for delay\"" >&6; } | |
16571 | else | |
16572 | ||
16573 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h | |
16574 | ||
16575 | fi | |
16576 | ||
16577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 | |
16578 | $as_echo_n "checking for OpenSSL... " >&6; } | |
16579 | # Check whether --enable-openssl was given. | |
16580 | if test "${enable_openssl+set}" = set; then : | |
16581 | enableval=$enable_openssl; cf_enable_openssl=$enableval | |
16582 | else | |
16583 | cf_enable_openssl="auto" | |
16584 | fi | |
16585 | ||
16586 | ||
16587 | if test "$cf_enable_openssl" != "no" ; then | |
16588 | cf_openssl_basedir="" | |
16589 | if test "$cf_enable_openssl" != "auto" && | |
16590 | test "$cf_enable_openssl" != "yes" ; then | |
16591 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
16592 | else | |
16593 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
16594 | /usr/local/openssl ; do | |
16595 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
16596 | cf_openssl_basedir="${dirs}" | |
16597 | break | |
16598 | fi | |
16599 | done | |
16600 | unset dirs | |
16601 | fi | |
16602 | if test ! -z "$cf_openssl_basedir"; then | |
16603 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
16604 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
16605 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
16606 | else | |
16607 | cf_openssl_basedir="" | |
16608 | fi | |
16609 | else | |
16610 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
16611 | cf_openssl_basedir="/usr" | |
16612 | fi | |
16613 | fi | |
16614 | ||
16615 | if test ! -z "$cf_openssl_basedir"; then | |
16616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 | |
16617 | $as_echo "$cf_openssl_basedir" >&6; } | |
16618 | cf_enable_openssl="yes" | |
16619 | else | |
16620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 | |
16621 | $as_echo "not found. Specify a correct path?" >&6; } | |
16622 | cf_enable_openssl="no" | |
16623 | fi | |
16624 | unset cf_openssl_basedir | |
16625 | else | |
16626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 | |
16627 | $as_echo "disabled" >&6; } | |
16628 | fi | |
16629 | ||
16630 | save_CPPFLAGS="$CPPFLAGS" | |
16631 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
16632 | save_LIBS="$LIBS" | |
16633 | LIBS="$LIBS $SSL_LIBS" | |
16634 | if test "$cf_enable_openssl" != no; then | |
16635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5 | |
16636 | $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; } | |
16637 | if test "$cross_compiling" = yes; then : | |
16638 | cf_openssl_version_ok=no | |
16639 | else | |
16640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16641 | /* end confdefs.h. */ | |
16642 | #include <openssl/opensslv.h> | |
16643 | #include <stdlib.h> | |
16644 | int | |
16645 | main () | |
16646 | { | |
16647 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
16648 | exit(0); else exit(1); | |
16649 | ; | |
16650 | return 0; | |
16651 | } | |
16652 | _ACEOF | |
16653 | if ac_fn_c_try_run "$LINENO"; then : | |
16654 | cf_openssl_version_ok=yes | |
16655 | else | |
16656 | cf_openssl_version_ok=no | |
16657 | fi | |
16658 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
16659 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
16660 | fi | |
16661 | ||
16662 | ||
16663 | if test "$cf_openssl_version_ok" = yes; then | |
16664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 | |
16665 | $as_echo "found" >&6; } | |
16666 | ||
16667 | ENCSPEED=encspeed | |
16668 | ||
16669 | ||
16670 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
16671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 | |
16672 | $as_echo_n "checking for RSA_free in -lcrypto... " >&6; } | |
16673 | if ${ac_cv_lib_crypto_RSA_free+:} false; then : | |
16674 | $as_echo_n "(cached) " >&6 | |
16675 | else | |
16676 | ac_check_lib_save_LIBS=$LIBS | |
16677 | LIBS="-lcrypto $LIBS" | |
16678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16679 | /* end confdefs.h. */ | |
16680 | ||
16681 | /* Override any GCC internal prototype to avoid an error. | |
16682 | Use char because int might match the return type of a GCC | |
16683 | builtin and then its argument prototype would still apply. */ | |
16684 | #ifdef __cplusplus | |
16685 | extern "C" | |
16686 | #endif | |
16687 | char RSA_free (); | |
16688 | int | |
16689 | main () | |
16690 | { | |
16691 | return RSA_free (); | |
16692 | ; | |
16693 | return 0; | |
16694 | } | |
16695 | _ACEOF | |
16696 | if ac_fn_c_try_link "$LINENO"; then : | |
16697 | ac_cv_lib_crypto_RSA_free=yes | |
16698 | else | |
16699 | ac_cv_lib_crypto_RSA_free=no | |
16700 | fi | |
16701 | rm -f core conftest.err conftest.$ac_objext \ | |
16702 | conftest$ac_exeext conftest.$ac_ext | |
16703 | LIBS=$ac_check_lib_save_LIBS | |
16704 | fi | |
16705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 | |
16706 | $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } | |
16707 | if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : | |
16708 | cat >>confdefs.h <<_ACEOF | |
16709 | #define HAVE_LIBCRYPTO 1 | |
16710 | _ACEOF | |
16711 | ||
16712 | LIBS="-lcrypto $LIBS" | |
16713 | ||
16714 | fi | |
16715 | ||
16716 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
16717 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
16718 | else | |
16719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 | |
16720 | $as_echo "no - OpenSSL support disabled" >&6; } | |
16721 | fi | |
16722 | fi | |
16723 | ||
16724 | CPPFLAGS="$save_CPPFLAGS" | |
16725 | LIBS="$save_LIBS" | |
16726 | ||
16727 | ||
16728 | ||
16729 | ||
16730 | ||
16731 | # Check whether --with-zlib-path was given. | |
16732 | if test "${with_zlib_path+set}" = set; then : | |
16733 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" | |
16734 | fi | |
16735 | ||
16736 | ||
16737 | # Check whether --enable-zlib was given. | |
16738 | if test "${enable_zlib+set}" = set; then : | |
16739 | enableval=$enable_zlib; zlib=$enableval | |
16740 | else | |
16741 | zlib=yes | |
16742 | fi | |
16743 | ||
16744 | ||
16745 | if test "$zlib" = yes; then | |
16746 | ||
16747 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
16748 | if test "x$ac_cv_header_zlib_h" = xyes; then : | |
16749 | ||
16750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 | |
16751 | $as_echo_n "checking for zlibVersion in -lz... " >&6; } | |
16752 | if ${ac_cv_lib_z_zlibVersion+:} false; then : | |
16753 | $as_echo_n "(cached) " >&6 | |
16754 | else | |
16755 | ac_check_lib_save_LIBS=$LIBS | |
16756 | LIBS="-lz $LIBS" | |
16757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
16758 | /* end confdefs.h. */ | |
16759 | ||
16760 | /* Override any GCC internal prototype to avoid an error. | |
16761 | Use char because int might match the return type of a GCC | |
16762 | builtin and then its argument prototype would still apply. */ | |
16763 | #ifdef __cplusplus | |
16764 | extern "C" | |
16765 | #endif | |
16766 | char zlibVersion (); | |
16767 | int | |
16768 | main () | |
16769 | { | |
16770 | return zlibVersion (); | |
16771 | ; | |
16772 | return 0; | |
16773 | } | |
16774 | _ACEOF | |
16775 | if ac_fn_c_try_link "$LINENO"; then : | |
16776 | ac_cv_lib_z_zlibVersion=yes | |
16777 | else | |
16778 | ac_cv_lib_z_zlibVersion=no | |
16779 | fi | |
16780 | rm -f core conftest.err conftest.$ac_objext \ | |
16781 | conftest$ac_exeext conftest.$ac_ext | |
16782 | LIBS=$ac_check_lib_save_LIBS | |
16783 | fi | |
16784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 | |
16785 | $as_echo "$ac_cv_lib_z_zlibVersion" >&6; } | |
16786 | if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : | |
16787 | ||
16788 | ZLIB_LD=-lz | |
16789 | ||
16790 | ||
16791 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h | |
16792 | ||
16793 | ||
16794 | else | |
16795 | zlib=no | |
16796 | fi | |
16797 | ||
16798 | ||
16799 | else | |
16800 | zlib=no | |
16801 | fi | |
16802 | ||
16803 | ||
16804 | ||
16805 | fi | |
16806 | ||
16807 | ||
16808 | # Check whether --with-shared-sqlite was given. | |
16809 | if test "${with_shared_sqlite+set}" = set; then : | |
16810 | withval=$with_shared_sqlite; shared_sqlite=$withval | |
16811 | else | |
16812 | shared_sqlite=no | |
16813 | fi | |
16814 | ||
16815 | ||
16816 | if test "$shared_sqlite" = yes; then | |
16817 | ||
16818 | ||
16819 | ||
16820 | ||
16821 | ||
16822 | ||
16823 | ||
16824 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
16825 | if test -n "$ac_tool_prefix"; then | |
16826 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
16827 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
16828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16829 | $as_echo_n "checking for $ac_word... " >&6; } | |
16830 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
16831 | $as_echo_n "(cached) " >&6 | |
16832 | else | |
16833 | case $PKG_CONFIG in | |
16834 | [\\/]* | ?:[\\/]*) | |
16835 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
16836 | ;; | |
16837 | *) | |
16838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16839 | for as_dir in $PATH | |
16840 | do | |
16841 | IFS=$as_save_IFS | |
16842 | test -z "$as_dir" && as_dir=. | |
16843 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16844 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16845 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
16846 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16847 | break 2 | |
16848 | fi | |
16849 | done | |
16850 | done | |
16851 | IFS=$as_save_IFS | |
16852 | ||
16853 | ;; | |
16854 | esac | |
16855 | fi | |
16856 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
16857 | if test -n "$PKG_CONFIG"; then | |
16858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
16859 | $as_echo "$PKG_CONFIG" >&6; } | |
16860 | else | |
16861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16862 | $as_echo "no" >&6; } | |
16863 | fi | |
16864 | ||
16865 | ||
16866 | fi | |
16867 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
16868 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
16869 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
16870 | set dummy pkg-config; ac_word=$2 | |
16871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16872 | $as_echo_n "checking for $ac_word... " >&6; } | |
16873 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
16874 | $as_echo_n "(cached) " >&6 | |
16875 | else | |
16876 | case $ac_pt_PKG_CONFIG in | |
16877 | [\\/]* | ?:[\\/]*) | |
16878 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
16879 | ;; | |
16880 | *) | |
16881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16882 | for as_dir in $PATH | |
16883 | do | |
16884 | IFS=$as_save_IFS | |
16885 | test -z "$as_dir" && as_dir=. | |
16886 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16887 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16888 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
16889 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16890 | break 2 | |
16891 | fi | |
16892 | done | |
16893 | done | |
16894 | IFS=$as_save_IFS | |
16895 | ||
16896 | ;; | |
16897 | esac | |
16898 | fi | |
16899 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
16900 | if test -n "$ac_pt_PKG_CONFIG"; then | |
16901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
16902 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
16903 | else | |
16904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16905 | $as_echo "no" >&6; } | |
16906 | fi | |
16907 | ||
16908 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
16909 | PKG_CONFIG="" | |
16910 | else | |
16911 | case $cross_compiling:$ac_tool_warned in | |
16912 | yes:) | |
16913 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16914 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16915 | ac_tool_warned=yes ;; | |
16916 | esac | |
16917 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
16918 | fi | |
16919 | else | |
16920 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
16921 | fi | |
16922 | ||
16923 | fi | |
16924 | if test -n "$PKG_CONFIG"; then | |
16925 | _pkg_min_version=0.9.0 | |
16926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
16927 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
16928 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
16929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16930 | $as_echo "yes" >&6; } | |
16931 | else | |
16932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16933 | $as_echo "no" >&6; } | |
16934 | PKG_CONFIG="" | |
16935 | fi | |
16936 | fi | |
16937 | ||
16938 | pkg_failed=no | |
16939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5 | |
16940 | $as_echo_n "checking for SQLITE... " >&6; } | |
16941 | ||
16942 | if test -n "$SQLITE_CFLAGS"; then | |
16943 | pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS" | |
16944 | elif test -n "$PKG_CONFIG"; then | |
16945 | if test -n "$PKG_CONFIG" && \ | |
16946 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
16947 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
16948 | ac_status=$? | |
16949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16950 | test $ac_status = 0; }; then | |
16951 | pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null` | |
16952 | test "x$?" != "x0" && pkg_failed=yes | |
16953 | else | |
16954 | pkg_failed=yes | |
16955 | fi | |
16956 | else | |
16957 | pkg_failed=untried | |
16958 | fi | |
16959 | if test -n "$SQLITE_LIBS"; then | |
16960 | pkg_cv_SQLITE_LIBS="$SQLITE_LIBS" | |
16961 | elif test -n "$PKG_CONFIG"; then | |
16962 | if test -n "$PKG_CONFIG" && \ | |
16963 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
16964 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
16965 | ac_status=$? | |
16966 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16967 | test $ac_status = 0; }; then | |
16968 | pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null` | |
16969 | test "x$?" != "x0" && pkg_failed=yes | |
16970 | else | |
16971 | pkg_failed=yes | |
16972 | fi | |
16973 | else | |
16974 | pkg_failed=untried | |
16975 | fi | |
16976 | ||
16977 | ||
16978 | ||
16979 | if test $pkg_failed = yes; then | |
16980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16981 | $as_echo "no" >&6; } | |
16982 | ||
16983 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16984 | _pkg_short_errors_supported=yes | |
16985 | else | |
16986 | _pkg_short_errors_supported=no | |
16987 | fi | |
16988 | if test $_pkg_short_errors_supported = yes; then | |
16989 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1` | |
16990 | else | |
16991 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1` | |
16992 | fi | |
16993 | # Put the nasty error message in config.log where it belongs | |
16994 | echo "$SQLITE_PKG_ERRORS" >&5 | |
16995 | ||
16996 | shared_sqlite=no | |
16997 | elif test $pkg_failed = untried; then | |
16998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16999 | $as_echo "no" >&6; } | |
17000 | shared_sqlite=no | |
17001 | else | |
17002 | SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS | |
17003 | SQLITE_LIBS=$pkg_cv_SQLITE_LIBS | |
17004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17005 | $as_echo "yes" >&6; } | |
17006 | ||
17007 | shared_sqlite=yes | |
17008 | ||
17009 | fi | |
17010 | fi | |
17011 | ||
17012 | if test "$shared_sqlite" = no; then | |
17013 | SQLITE_OBJ='sqlite3.$(OBJEXT)' | |
17014 | fi | |
17015 | ||
17016 | SQLITE_LD="$SQLITE_LIBS" | |
17017 | ||
17018 | SQLITE_INCLUDES="$SQLITE_CFLAGS" | |
17019 | ||
17020 | ||
17021 | ||
17022 | ||
17023 | # Check whether --enable-ports was given. | |
17024 | if test "${enable_ports+set}" = set; then : | |
17025 | enableval=$enable_ports; if test $enableval = yes; then | |
17026 | SELECT_TYPE_EXPLICIT="ports" | |
17027 | else | |
17028 | use_ports=no | |
17029 | fi | |
17030 | ||
17031 | fi | |
17032 | ||
17033 | ||
17034 | # Check whether --enable-poll was given. | |
17035 | if test "${enable_poll+set}" = set; then : | |
17036 | enableval=$enable_poll; if test $enableval = yes; then | |
17037 | SELECT_TYPE_EXPLICIT="poll" | |
17038 | else | |
17039 | use_poll=no | |
17040 | fi | |
17041 | ||
17042 | fi | |
17043 | ||
17044 | ||
17045 | # Check whether --enable-select was given. | |
17046 | if test "${enable_select+set}" = set; then : | |
17047 | enableval=$enable_select; if test $enableval = yes; then | |
17048 | SELECT_TYPE_EXPLICIT="select" | |
17049 | else | |
17050 | use_select=no | |
17051 | fi | |
17052 | ||
17053 | fi | |
17054 | ||
17055 | ||
17056 | # Check whether --enable-kqueue was given. | |
17057 | if test "${enable_kqueue+set}" = set; then : | |
17058 | enableval=$enable_kqueue; if test $enableval = yes; then | |
17059 | SELECT_TYPE_EXPLICIT="kqueue" | |
17060 | else | |
17061 | use_kqueue=no | |
17062 | fi | |
17063 | ||
17064 | fi | |
17065 | ||
17066 | ||
17067 | # Check whether --enable-epoll was given. | |
17068 | if test "${enable_epoll+set}" = set; then : | |
17069 | enableval=$enable_epoll; if test $enableval = yes; then | |
17070 | SELECT_TYPE_EXPLICIT="epoll" | |
17071 | for ac_func in epoll_ctl | |
17072 | do : | |
17073 | ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" | |
17074 | if test "x$ac_cv_func_epoll_ctl" = xyes; then : | |
17075 | cat >>confdefs.h <<_ACEOF | |
17076 | #define HAVE_EPOLL_CTL 1 | |
17077 | _ACEOF | |
17078 | haveepoll=yes | |
17079 | else | |
17080 | haveepoll=no | |
17081 | fi | |
17082 | done | |
17083 | ||
17084 | else | |
17085 | use_epoll=no | |
17086 | fi | |
17087 | ||
17088 | fi | |
17089 | ||
17090 | ||
17091 | ||
17092 | ||
17093 | # Check whether --with-confdir was given. | |
17094 | if test "${with_confdir+set}" = set; then : | |
17095 | withval=$with_confdir; sysconfdir=`echo $withval | sed 's/\/$//'` | |
17096 | else | |
17097 | confdir='${sysconfdir}' | |
17098 | fi | |
17099 | ||
17100 | ||
17101 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
17102 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17103 | last_ac_define_dir=`eval echo $sysconfdir` | |
17104 | ac_define_dir=`eval echo $last_ac_define_dir` | |
17105 | ac_define_dir_counter=0 | |
17106 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
17107 | last_ac_define_dir="$ac_define_dir" | |
17108 | ac_define_dir=`eval echo $last_ac_define_dir` | |
17109 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val | |
17110 | if test "x$ac_define_dir_counter" = x128; then : | |
17111 | as_fn_error $? "detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5 | |
17112 | break | |
17113 | fi | |
17114 | done | |
17115 | ETC_DIR="$ac_define_dir" | |
17116 | ||
17117 | ||
17118 | cat >>confdefs.h <<_ACEOF | |
17119 | #define ETC_DIR "$ac_define_dir" | |
17120 | _ACEOF | |
17121 | ||
17122 | ||
17123 | ||
17124 | ||
17125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5 | |
17126 | $as_echo_n "checking whether to modify logdir... " >&6; } | |
17127 | ||
17128 | # Check whether --with-logdir was given. | |
17129 | if test "${with_logdir+set}" = set; then : | |
17130 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` | |
17131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17132 | $as_echo "yes" >&6; } | |
17133 | else | |
17134 | if test "x$enable_fhs_paths" = "xyes"; then : | |
17135 | logdir='${localstatedir}/log/${PACKAGE_TARNAME}' | |
17136 | else | |
17137 | logdir='${prefix}/logs' | |
17138 | fi | |
17139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17140 | $as_echo "no" >&6; } | |
17141 | fi | |
17142 | ||
17143 | ||
17144 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
17145 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17146 | last_ac_define_dir=`eval echo $logdir` | |
17147 | ac_define_dir=`eval echo $last_ac_define_dir` | |
17148 | ac_define_dir_counter=0 | |
17149 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
17150 | last_ac_define_dir="$ac_define_dir" | |
17151 | ac_define_dir=`eval echo $last_ac_define_dir` | |
17152 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val | |
17153 | if test "x$ac_define_dir_counter" = x128; then : | |
17154 | as_fn_error $? "detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5 | |
17155 | break | |
17156 | fi | |
17157 | done | |
17158 | LOG_DIR="$ac_define_dir" | |
17159 | ||
17160 | ||
17161 | cat >>confdefs.h <<_ACEOF | |
17162 | #define LOG_DIR "$ac_define_dir" | |
17163 | _ACEOF | |
17164 | ||
17165 | ||
17166 | ||
17167 | ||
17168 | logdir=`( | |
17169 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
17170 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
17171 | eval echo \""$logdir"\" | |
17172 | )` | |
17173 | ||
17174 | ||
17175 | ||
17176 | ||
17177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5 | |
17178 | $as_echo_n "checking whether to modify helpdir... " >&6; } | |
17179 | ||
17180 | # Check whether --with-helpdir was given. | |
17181 | if test "${with_helpdir+set}" = set; then : | |
17182 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` | |
17183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17184 | $as_echo "yes" >&6; } | |
17185 | else | |
17186 | if test "x$enable_fhs_paths" = "xyes"; then : | |
17187 | helpdir='${datadir}/${PACKAGE_TARNAME}/help' | |
17188 | else | |
17189 | helpdir='${prefix}/help' | |
17190 | fi | |
17191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17192 | $as_echo "no" >&6; } | |
17193 | fi | |
17194 | ||
17195 | ||
17196 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
17197 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17198 | last_ac_define_dir=`eval echo $helpdir` | |
17199 | ac_define_dir=`eval echo $last_ac_define_dir` | |
17200 | ac_define_dir_counter=0 | |
17201 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
17202 | last_ac_define_dir="$ac_define_dir" | |
17203 | ac_define_dir=`eval echo $last_ac_define_dir` | |
17204 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val | |
17205 | if test "x$ac_define_dir_counter" = x128; then : | |
17206 | as_fn_error $? "detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5 | |
17207 | break | |
17208 | fi | |
17209 | done | |
17210 | HELP_DIR="$ac_define_dir" | |
17211 | ||
17212 | ||
17213 | cat >>confdefs.h <<_ACEOF | |
17214 | #define HELP_DIR "$ac_define_dir" | |
17215 | _ACEOF | |
17216 | ||
17217 | ||
17218 | ||
17219 | ||
17220 | helpdir=`( | |
17221 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
17222 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
17223 | eval echo \""$helpdir"\" | |
17224 | )` | |
17225 | ||
17226 | ||
17227 | ||
17228 | ||
17229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5 | |
17230 | $as_echo_n "checking whether to modify moduledir... " >&6; } | |
17231 | ||
17232 | # Check whether --with-moduledir was given. | |
17233 | if test "${with_moduledir+set}" = set; then : | |
17234 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` | |
17235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17236 | $as_echo "yes" >&6; } | |
17237 | else | |
17238 | if test "x$enable_fhs_paths" = "xyes"; then : | |
17239 | moduledir='${pkglibdir}/modules' | |
17240 | else | |
17241 | moduledir='${prefix}/modules' | |
17242 | fi | |
17243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17244 | $as_echo "no" >&6; } | |
17245 | ||
17246 | fi | |
17247 | ||
17248 | ||
17249 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
17250 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17251 | last_ac_define_dir=`eval echo $moduledir` | |
17252 | ac_define_dir=`eval echo $last_ac_define_dir` | |
17253 | ac_define_dir_counter=0 | |
17254 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
17255 | last_ac_define_dir="$ac_define_dir" | |
17256 | ac_define_dir=`eval echo $last_ac_define_dir` | |
17257 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val | |
17258 | if test "x$ac_define_dir_counter" = x128; then : | |
17259 | as_fn_error $? "detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5 | |
17260 | break | |
17261 | fi | |
17262 | done | |
17263 | MODULE_DIR="$ac_define_dir" | |
17264 | ||
17265 | ||
17266 | cat >>confdefs.h <<_ACEOF | |
17267 | #define MODULE_DIR "$ac_define_dir" | |
17268 | _ACEOF | |
17269 | ||
17270 | ||
17271 | ||
17272 | ||
17273 | moduledir=`( | |
17274 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
17275 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
17276 | eval echo \""$moduledir"\" | |
17277 | )` | |
17278 | ||
17279 | ||
17280 | ||
17281 | ||
17282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5 | |
17283 | $as_echo_n "checking whether or modify rundir... " >&6; } | |
17284 | ||
17285 | # Check whether --with-rundir was given. | |
17286 | if test "${with_rundir+set}" = set; then : | |
17287 | withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17288 | $as_echo "yes" >&6; } | |
17289 | rundir=`echo $withval | sed 's/\/$//'` | |
17290 | else | |
17291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17292 | $as_echo "no" >&6; } | |
17293 | if test "x$enable_fhs_paths" = "xyes"; then : | |
17294 | rundir='${prefix}/run' | |
17295 | else | |
17296 | rundir='${sysconfdir}' | |
17297 | fi | |
17298 | fi | |
17299 | ||
17300 | ||
17301 | ||
17302 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
17303 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17304 | last_ac_define_dir=`eval echo $pkgrundir` | |
17305 | ac_define_dir=`eval echo $last_ac_define_dir` | |
17306 | ac_define_dir_counter=0 | |
17307 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do | |
17308 | last_ac_define_dir="$ac_define_dir" | |
17309 | ac_define_dir=`eval echo $last_ac_define_dir` | |
17310 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val | |
17311 | if test "x$ac_define_dir_counter" = x128; then : | |
17312 | as_fn_error $? "detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5 | |
17313 | break | |
17314 | fi | |
17315 | done | |
17316 | PKGRUNDIR="$ac_define_dir" | |
17317 | ||
17318 | ||
17319 | cat >>confdefs.h <<_ACEOF | |
17320 | #define PKGRUNDIR "$ac_define_dir" | |
17321 | _ACEOF | |
17322 | ||
17323 | ||
17324 | ||
17325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5 | |
17326 | $as_echo_n "checking for program prefix... " >&6; } | |
17327 | ||
17328 | # Check whether --with-program-prefix was given. | |
17329 | if test "${with_program_prefix+set}" = set; then : | |
17330 | withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix= | |
17331 | else | |
17332 | with_program_prefix= | |
17333 | fi | |
17334 | ||
17335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5 | |
17336 | $as_echo "\"$with_program_prefix\"" >&6; } | |
17337 | PROGRAM_PREFIX="$with_program_prefix" | |
17338 | ||
17339 | ||
17340 | cat >>confdefs.h <<_ACEOF | |
17341 | #define PROGRAM_PREFIX "$with_program_prefix" | |
17342 | _ACEOF | |
17343 | ||
17344 | ||
17345 | ||
17346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5 | |
17347 | $as_echo_n "checking whether custom branding is requested... " >&6; } | |
17348 | ||
17349 | # Check whether --with-custom-branding was given. | |
17350 | if test "${with_custom_branding+set}" = set; then : | |
17351 | withval=$with_custom_branding; BRANDING_NAME=$withval | |
17352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17353 | $as_echo "yes" >&6; } | |
17354 | else | |
17355 | BRANDING_NAME=$PACKAGE_NAME | |
17356 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17357 | $as_echo "no" >&6; } | |
17358 | ||
17359 | fi | |
17360 | ||
17361 | ||
17362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5 | |
17363 | $as_echo_n "checking whether a custom version is requested... " >&6; } | |
17364 | ||
17365 | # Check whether --with-custom-version was given. | |
17366 | if test "${with_custom_version+set}" = set; then : | |
17367 | withval=$with_custom_version; BRANDING_VERSION=$withval | |
17368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17369 | $as_echo "yes" >&6; } | |
17370 | else | |
17371 | BRANDING_VERSION=$PACKAGE_VERSION | |
17372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17373 | $as_echo "no" >&6; } | |
17374 | ||
17375 | fi | |
17376 | ||
17377 | ||
17378 | ||
17379 | cat >>confdefs.h <<_ACEOF | |
17380 | #define BRANDING_NAME "$BRANDING_NAME" | |
17381 | _ACEOF | |
17382 | ||
17383 | ||
17384 | cat >>confdefs.h <<_ACEOF | |
17385 | #define BRANDING_VERSION "$BRANDING_VERSION" | |
17386 | _ACEOF | |
17387 | ||
17388 | ||
17389 | if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then | |
17390 | ||
17391 | $as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h | |
17392 | ||
17393 | fi | |
17394 | ||
17395 | if test ! -z "$SELECT_TYPE_EXPLICIT"; then | |
17396 | SELECT_TYPE="$SELECT_TYPE_EXPLICIT"; | |
17397 | echo "Forcing $SELECT_TYPE to be enabled" | |
17398 | else | |
17399 | ||
17400 | if test ! "x$use_ports" = "xno"; then | |
17401 | for ac_func in port_getn | |
17402 | do : | |
17403 | ac_fn_c_check_func "$LINENO" "port_getn" "ac_cv_func_port_getn" | |
17404 | if test "x$ac_cv_func_port_getn" = xyes; then : | |
17405 | cat >>confdefs.h <<_ACEOF | |
17406 | #define HAVE_PORT_GETN 1 | |
17407 | _ACEOF | |
17408 | haveports=yes | |
17409 | else | |
17410 | haveports=no | |
17411 | fi | |
17412 | done | |
17413 | ||
17414 | if test "x$haveports" = "xyes" ; then | |
17415 | SELECT_TYPE="ports" | |
17416 | fi | |
17417 | fi | |
17418 | ||
17419 | if test ! "x$use_select" = "xno"; then | |
17420 | for ac_func in select | |
17421 | do : | |
17422 | ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" | |
17423 | if test "x$ac_cv_func_select" = xyes; then : | |
17424 | cat >>confdefs.h <<_ACEOF | |
17425 | #define HAVE_SELECT 1 | |
17426 | _ACEOF | |
17427 | haveselect=yes | |
17428 | else | |
17429 | haveselect=no | |
17430 | fi | |
17431 | done | |
17432 | ||
17433 | if test "x$haveselect" = "xyes" ; then | |
17434 | SELECT_TYPE="select" | |
17435 | fi | |
17436 | fi | |
17437 | ||
17438 | if test ! "x$use_poll" = "xno"; then | |
17439 | for ac_func in poll | |
17440 | do : | |
17441 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" | |
17442 | if test "x$ac_cv_func_poll" = xyes; then : | |
17443 | cat >>confdefs.h <<_ACEOF | |
17444 | #define HAVE_POLL 1 | |
17445 | _ACEOF | |
17446 | havepoll=yes | |
17447 | else | |
17448 | havepoll=no | |
17449 | fi | |
17450 | done | |
17451 | ||
17452 | if test "x$havepoll" = "xyes" ; then | |
17453 | SELECT_TYPE="poll" | |
17454 | fi | |
17455 | fi | |
17456 | ||
17457 | if test ! "x$use_kqueue" = "xno"; then | |
17458 | for ac_func in kevent | |
17459 | do : | |
17460 | ac_fn_c_check_func "$LINENO" "kevent" "ac_cv_func_kevent" | |
17461 | if test "x$ac_cv_func_kevent" = xyes; then : | |
17462 | cat >>confdefs.h <<_ACEOF | |
17463 | #define HAVE_KEVENT 1 | |
17464 | _ACEOF | |
17465 | havekqueue=yes | |
17466 | else | |
17467 | havekqueue=no | |
17468 | fi | |
17469 | done | |
17470 | ||
17471 | if test "x$havekqueue" = "xyes" ; then | |
17472 | SELECT_TYPE="kqueue" | |
17473 | fi | |
17474 | fi | |
17475 | ||
17476 | if test ! "x$use_epoll" = "xno"; then | |
17477 | for ac_func in epoll_ctl | |
17478 | do : | |
17479 | ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl" | |
17480 | if test "x$ac_cv_func_epoll_ctl" = xyes; then : | |
17481 | cat >>confdefs.h <<_ACEOF | |
17482 | #define HAVE_EPOLL_CTL 1 | |
17483 | _ACEOF | |
17484 | haveepoll=yes | |
17485 | else | |
17486 | haveepoll=no | |
17487 | fi | |
17488 | done | |
17489 | ||
17490 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
17491 | if test "x$haveepoll" = "xyes" ; then | |
17492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5 | |
17493 | $as_echo_n "checking for epoll support in kernel... " >&6; } | |
17494 | if test "$cross_compiling" = yes; then : | |
17495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17496 | $as_echo "no" >&6; } | |
17497 | else | |
17498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17499 | /* end confdefs.h. */ | |
17500 | #include <stdint.h> | |
17501 | #include <sys/param.h> | |
17502 | #include <sys/types.h> | |
17503 | #include <sys/epoll.h> | |
17504 | #include <sys/syscall.h> | |
17505 | #include <unistd.h> | |
17506 | ||
17507 | int | |
17508 | main(int argc, char **argv) | |
17509 | { | |
17510 | int epfd; | |
17511 | ||
17512 | epfd = epoll_create(256); | |
17513 | return (epfd == -1 ? 1 : 0); | |
17514 | } | |
17515 | _ACEOF | |
17516 | if ac_fn_c_try_run "$LINENO"; then : | |
17517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17518 | $as_echo "yes" >&6; } | |
17519 | ||
17520 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | |
17521 | ||
17522 | SELECT_TYPE="epoll" | |
17523 | else | |
17524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17525 | $as_echo "no" >&6; } | |
17526 | fi | |
17527 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
17528 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
17529 | fi | |
17530 | ||
17531 | fi | |
17532 | fi | |
17533 | ||
17534 | haveepollsyscall=no | |
17535 | ||
17536 | if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then | |
17537 | if test "x$haveepoll" = "xno" ; then | |
17538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5 | |
17539 | $as_echo_n "checking for epoll system call... " >&6; } | |
17540 | if test "$cross_compiling" = yes; then : | |
17541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17542 | $as_echo "no" >&6; } | |
17543 | else | |
17544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17545 | /* end confdefs.h. */ | |
17546 | #include <stdint.h> | |
17547 | #include <sys/param.h> | |
17548 | #include <sys/types.h> | |
17549 | #include <sys/epoll.h> | |
17550 | #include <sys/syscall.h> | |
17551 | #include <unistd.h> | |
17552 | ||
17553 | int | |
17554 | epoll_create(int size) | |
17555 | { | |
17556 | return (syscall(__NR_epoll_create, size)); | |
17557 | } | |
17558 | ||
17559 | int | |
17560 | main(int argc, char **argv) | |
17561 | { | |
17562 | int epfd; | |
17563 | ||
17564 | epfd = epoll_create(256); | |
17565 | exit (epfd == -1 ? 1 : 0); | |
17566 | } | |
17567 | _ACEOF | |
17568 | if ac_fn_c_try_run "$LINENO"; then : | |
17569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17570 | $as_echo "yes" >&6; } | |
17571 | ||
17572 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | |
17573 | ||
17574 | SELECT_TYPE="epoll" | |
17575 | else | |
17576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17577 | $as_echo "no" >&6; } | |
17578 | fi | |
17579 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
17580 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
17581 | fi | |
17582 | ||
17583 | fi | |
17584 | fi | |
17585 | ||
17586 | fi | |
17587 | ||
17588 | fi | |
17589 | ||
17590 | if test -z "$SELECT_TYPE"; then | |
17591 | as_fn_error $? "Unable to find a usable IO interface" "$LINENO" 5 | |
17592 | fi | |
17593 | ||
17594 | echo "Using $SELECT_TYPE for select loop." | |
17595 | ||
17596 | ||
17597 | cat >>confdefs.h <<_ACEOF | |
17598 | #define SELECT_TYPE "$SELECT_TYPE" | |
17599 | _ACEOF | |
17600 | ||
17601 | ||
17602 | ||
17603 | ||
17604 | ||
17605 | # Check whether --enable-assert was given. | |
17606 | if test "${enable_assert+set}" = set; then : | |
17607 | enableval=$enable_assert; assert=$enableval | |
17608 | else | |
17609 | assert=no | |
17610 | fi | |
17611 | ||
17612 | ||
17613 | if test "$assert" = no; then | |
17614 | ||
17615 | $as_echo "#define NDEBUG 1" >>confdefs.h | |
17616 | ||
17617 | elif test "$assert" = soft; then | |
17618 | ||
17619 | $as_echo "#define SOFT_ASSERT 1" >>confdefs.h | |
17620 | ||
17621 | ||
17622 | $as_echo "#define NDEBUG 1" >>confdefs.h | |
17623 | ||
17624 | elif test "$assert" = yes; then | |
17625 | assert = "hard"; | |
17626 | fi | |
17627 | ||
17628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5 | |
17629 | $as_echo_n "checking if you want IO Debugging hooks... " >&6; } | |
17630 | # Check whether --enable-iodebug was given. | |
17631 | if test "${enable_iodebug+set}" = set; then : | |
17632 | enableval=$enable_iodebug; iodebug=$enableval | |
17633 | else | |
17634 | iodebug=no | |
17635 | fi | |
17636 | ||
17637 | ||
17638 | if test "$iodebug" = yes; then | |
17639 | ||
17640 | $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h | |
17641 | ||
17642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
17643 | $as_echo "yes" >&6; } | |
17644 | else | |
17645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17646 | $as_echo "no" >&6; } | |
17647 | fi | |
17648 | ||
17649 | ||
17650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 | |
17651 | $as_echo_n "checking if you want to do a profile build... " >&6; } | |
17652 | # Check whether --enable-profile was given. | |
17653 | if test "${enable_profile+set}" = set; then : | |
17654 | enableval=$enable_profile; profile=$enableval | |
17655 | else | |
17656 | profile=no | |
17657 | fi | |
17658 | ||
17659 | ||
17660 | if test "$profile" = yes; then | |
17661 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
17662 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
17663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5 | |
17664 | $as_echo "yes, adding -pg" >&6; } | |
17665 | ||
17666 | $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h | |
17667 | ||
17668 | else | |
17669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 | |
17670 | $as_echo "no, profile builds only work with gcc" >&6; } | |
17671 | fi | |
17672 | else | |
17673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17674 | $as_echo "no" >&6; } | |
17675 | fi | |
17676 | ||
17677 | # Check whether --enable-balloc was given. | |
17678 | if test "${enable_balloc+set}" = set; then : | |
17679 | enableval=$enable_balloc; balloc=$enableval | |
17680 | else | |
17681 | balloc=yes | |
17682 | fi | |
17683 | ||
17684 | ||
17685 | if test "$balloc" = no; then | |
17686 | ||
17687 | $as_echo "#define NOBALLOC 1" >>confdefs.h | |
17688 | ||
17689 | fi | |
17690 | ||
17691 | # Check whether --enable-small-net was given. | |
17692 | if test "${enable_small_net+set}" = set; then : | |
17693 | enableval=$enable_small_net; small_net=$enableval | |
17694 | else | |
17695 | small_net=no | |
17696 | fi | |
17697 | ||
17698 | ||
17699 | if test "$small_net" = yes; then | |
17700 | ||
17701 | $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h | |
17702 | ||
17703 | ||
17704 | $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h | |
17705 | ||
17706 | ||
17707 | $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h | |
17708 | ||
17709 | ||
17710 | $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h | |
17711 | ||
17712 | ||
17713 | $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h | |
17714 | ||
17715 | ||
17716 | $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h | |
17717 | ||
17718 | ||
17719 | $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h | |
17720 | ||
17721 | ||
17722 | $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h | |
17723 | ||
17724 | ||
17725 | $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h | |
17726 | ||
17727 | ||
17728 | $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h | |
17729 | ||
17730 | ||
17731 | $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h | |
17732 | ||
17733 | ||
17734 | $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h | |
17735 | ||
17736 | ||
17737 | $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h | |
17738 | ||
17739 | ||
17740 | $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h | |
17741 | ||
17742 | ||
17743 | $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h | |
17744 | ||
17745 | ||
17746 | $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h | |
17747 | ||
17748 | else | |
17749 | ||
17750 | $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h | |
17751 | ||
17752 | ||
17753 | $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h | |
17754 | ||
17755 | ||
17756 | $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h | |
17757 | ||
17758 | ||
17759 | $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h | |
17760 | ||
17761 | ||
17762 | $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h | |
17763 | ||
17764 | ||
17765 | $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h | |
17766 | ||
17767 | ||
17768 | $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h | |
17769 | ||
17770 | ||
17771 | $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h | |
17772 | ||
17773 | ||
17774 | $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h | |
17775 | ||
17776 | ||
17777 | $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h | |
17778 | ||
17779 | ||
17780 | $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h | |
17781 | ||
17782 | ||
17783 | $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h | |
17784 | ||
17785 | ||
17786 | $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h | |
17787 | ||
17788 | ||
17789 | $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h | |
17790 | ||
17791 | ||
17792 | $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h | |
17793 | ||
17794 | ||
17795 | $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h | |
17796 | ||
17797 | fi | |
17798 | ||
17799 | ||
17800 | # Check whether --with-nicklen was given. | |
17801 | if test "${with_nicklen+set}" = set; then : | |
17802 | withval=$with_nicklen; | |
17803 | if ! expr "$withval" + 0 >/dev/null 2>&1; then | |
17804 | as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5 | |
17805 | fi | |
17806 | if test $withval -gt 50; then | |
17807 | NICKLEN=50 | |
17808 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 | |
17809 | $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
17810 | elif test $withval -lt 9; then | |
17811 | NICKLEN=9 | |
17812 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5 | |
17813 | $as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;} | |
17814 | else | |
17815 | NICKLEN="$withval" | |
17816 | fi | |
17817 | ||
17818 | else | |
17819 | NICKLEN=31 | |
17820 | fi | |
17821 | ||
17822 | ||
17823 | ||
17824 | # Check whether --with-topiclen was given. | |
17825 | if test "${with_topiclen+set}" = set; then : | |
17826 | withval=$with_topiclen; | |
17827 | if test $withval -ge 390; then | |
17828 | TOPICLEN=390 | |
17829 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 | |
17830 | $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
17831 | else | |
17832 | TOPICLEN=$withval | |
17833 | fi | |
17834 | ||
17835 | else | |
17836 | TOPICLEN=390 | |
17837 | fi | |
17838 | ||
17839 | ||
17840 | ||
17841 | cat >>confdefs.h <<_ACEOF | |
17842 | #define TOPICLEN ${TOPICLEN} | |
17843 | _ACEOF | |
17844 | ||
17845 | ||
17846 | cat >>confdefs.h <<_ACEOF | |
17847 | #define NICKLEN (${NICKLEN}+1) | |
17848 | _ACEOF | |
17849 | ||
17850 | ||
17851 | # rpath, for finding libratbox.so at run time | |
17852 | hold_ldflags=$LDFLAGS | |
17853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5 | |
17854 | $as_echo_n "checking for the ld -rpath flag... " >&6; } | |
17855 | LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}" | |
17856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17857 | /* end confdefs.h. */ | |
17858 | ||
17859 | int | |
17860 | main () | |
17861 | { | |
17862 | int i; | |
17863 | ; | |
17864 | return 0; | |
17865 | } | |
17866 | _ACEOF | |
17867 | if ac_fn_c_try_link "$LINENO"; then : | |
17868 | found=yes | |
17869 | else | |
17870 | found=no | |
17871 | fi | |
17872 | rm -f core conftest.err conftest.$ac_objext \ | |
17873 | conftest$ac_exeext conftest.$ac_ext | |
17874 | LDFLAGS=$hold_ldflags | |
17875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 | |
17876 | $as_echo "$found" >&6; } | |
17877 | if test "$found" = yes; then | |
17878 | LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}" | |
17879 | fi | |
17880 | ||
17881 | # This must be down here, or it will mess up checks like the ones | |
17882 | # for -Wl,-export-dynamic | |
17883 | # -- jilles | |
17884 | CWARNS="" | |
17885 | # Check whether --enable-warnings was given. | |
17886 | if test "${enable_warnings+set}" = set; then : | |
17887 | enableval=$enable_warnings; | |
17888 | IRC_CFLAGS="$IRC_CFLAGS -O0" | |
17889 | CFLAGS="$IRC_CFLAGS" | |
17890 | ||
17891 | ||
17892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5 | |
17893 | $as_echo_n "checking GCC flag(s) -Wall... " >&6; } | |
17894 | if test "${GCC-no}" = yes | |
17895 | then | |
17896 | if ${charybdis_cv_c_gcc_w_all+:} false; then : | |
17897 | $as_echo_n "(cached) " >&6 | |
17898 | else | |
17899 | ||
17900 | oldcflags="${CFLAGS-}" | |
17901 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
17902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17903 | /* end confdefs.h. */ | |
17904 | ||
17905 | #include <string.h> | |
17906 | #include <stdio.h> | |
17907 | int main(void); | |
17908 | ||
17909 | int | |
17910 | main () | |
17911 | { | |
17912 | ||
17913 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17914 | ||
17915 | ; | |
17916 | return 0; | |
17917 | } | |
17918 | _ACEOF | |
17919 | if ac_fn_c_try_compile "$LINENO"; then : | |
17920 | charybdis_cv_c_gcc_w_all=yes | |
17921 | else | |
17922 | charybdis_cv_c_gcc_w_all=no | |
17923 | fi | |
17924 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17925 | CFLAGS="${oldcflags}" | |
17926 | fi | |
17927 | ||
17928 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
17929 | CWARNS="${CWARNS}-Wall " | |
17930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17931 | $as_echo "ok" >&6; } | |
17932 | else | |
17933 | charybdis_cv_c_gcc_w_all='' | |
17934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17935 | $as_echo "no" >&6; } | |
17936 | fi | |
17937 | else | |
17938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17939 | $as_echo "no" >&6; } | |
17940 | fi | |
17941 | ||
17942 | ||
17943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5 | |
17944 | $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; } | |
17945 | if test "${GCC-no}" = yes | |
17946 | then | |
17947 | if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then : | |
17948 | $as_echo_n "(cached) " >&6 | |
17949 | else | |
17950 | ||
17951 | oldcflags="${CFLAGS-}" | |
17952 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
17953 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
17954 | /* end confdefs.h. */ | |
17955 | ||
17956 | #include <string.h> | |
17957 | #include <stdio.h> | |
17958 | int main(void); | |
17959 | ||
17960 | int | |
17961 | main () | |
17962 | { | |
17963 | ||
17964 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17965 | ||
17966 | ; | |
17967 | return 0; | |
17968 | } | |
17969 | _ACEOF | |
17970 | if ac_fn_c_try_compile "$LINENO"; then : | |
17971 | charybdis_cv_c_gcc_w_pointer_arith=yes | |
17972 | else | |
17973 | charybdis_cv_c_gcc_w_pointer_arith=no | |
17974 | fi | |
17975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17976 | CFLAGS="${oldcflags}" | |
17977 | fi | |
17978 | ||
17979 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
17980 | CWARNS="${CWARNS}-Wpointer-arith " | |
17981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17982 | $as_echo "ok" >&6; } | |
17983 | else | |
17984 | charybdis_cv_c_gcc_w_pointer_arith='' | |
17985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17986 | $as_echo "no" >&6; } | |
17987 | fi | |
17988 | else | |
17989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17990 | $as_echo "no" >&6; } | |
17991 | fi | |
17992 | ||
17993 | ||
17994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 | |
17995 | $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; } | |
17996 | if test "${GCC-no}" = yes | |
17997 | then | |
17998 | if ${charybdis_cv_c_gcc_w_implicit+:} false; then : | |
17999 | $as_echo_n "(cached) " >&6 | |
18000 | else | |
18001 | ||
18002 | oldcflags="${CFLAGS-}" | |
18003 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
18004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18005 | /* end confdefs.h. */ | |
18006 | ||
18007 | #include <string.h> | |
18008 | #include <stdio.h> | |
18009 | int main(void); | |
18010 | ||
18011 | int | |
18012 | main () | |
18013 | { | |
18014 | ||
18015 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18016 | ||
18017 | ; | |
18018 | return 0; | |
18019 | } | |
18020 | _ACEOF | |
18021 | if ac_fn_c_try_compile "$LINENO"; then : | |
18022 | charybdis_cv_c_gcc_w_implicit=yes | |
18023 | else | |
18024 | charybdis_cv_c_gcc_w_implicit=no | |
18025 | fi | |
18026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18027 | CFLAGS="${oldcflags}" | |
18028 | fi | |
18029 | ||
18030 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
18031 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
18032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18033 | $as_echo "ok" >&6; } | |
18034 | else | |
18035 | charybdis_cv_c_gcc_w_implicit='' | |
18036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18037 | $as_echo "no" >&6; } | |
18038 | fi | |
18039 | else | |
18040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18041 | $as_echo "no" >&6; } | |
18042 | fi | |
18043 | ||
18044 | ||
18045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5 | |
18046 | $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; } | |
18047 | if test "${GCC-no}" = yes | |
18048 | then | |
18049 | if ${charybdis_cv_c_gcc_w_cast_align+:} false; then : | |
18050 | $as_echo_n "(cached) " >&6 | |
18051 | else | |
18052 | ||
18053 | oldcflags="${CFLAGS-}" | |
18054 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
18055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18056 | /* end confdefs.h. */ | |
18057 | ||
18058 | #include <string.h> | |
18059 | #include <stdio.h> | |
18060 | int main(void); | |
18061 | ||
18062 | int | |
18063 | main () | |
18064 | { | |
18065 | ||
18066 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18067 | ||
18068 | ; | |
18069 | return 0; | |
18070 | } | |
18071 | _ACEOF | |
18072 | if ac_fn_c_try_compile "$LINENO"; then : | |
18073 | charybdis_cv_c_gcc_w_cast_align=yes | |
18074 | else | |
18075 | charybdis_cv_c_gcc_w_cast_align=no | |
18076 | fi | |
18077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18078 | CFLAGS="${oldcflags}" | |
18079 | fi | |
18080 | ||
18081 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
18082 | CWARNS="${CWARNS}-Wcast-align " | |
18083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18084 | $as_echo "ok" >&6; } | |
18085 | else | |
18086 | charybdis_cv_c_gcc_w_cast_align='' | |
18087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18088 | $as_echo "no" >&6; } | |
18089 | fi | |
18090 | else | |
18091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18092 | $as_echo "no" >&6; } | |
18093 | fi | |
18094 | ||
18095 | ||
18096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5 | |
18097 | $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; } | |
18098 | if test "${GCC-no}" = yes | |
18099 | then | |
18100 | if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then : | |
18101 | $as_echo_n "(cached) " >&6 | |
18102 | else | |
18103 | ||
18104 | oldcflags="${CFLAGS-}" | |
18105 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
18106 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18107 | /* end confdefs.h. */ | |
18108 | ||
18109 | #include <string.h> | |
18110 | #include <stdio.h> | |
18111 | int main(void); | |
18112 | ||
18113 | int | |
18114 | main () | |
18115 | { | |
18116 | ||
18117 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18118 | ||
18119 | ; | |
18120 | return 0; | |
18121 | } | |
18122 | _ACEOF | |
18123 | if ac_fn_c_try_compile "$LINENO"; then : | |
18124 | charybdis_cv_c_gcc_w_cast_qual=yes | |
18125 | else | |
18126 | charybdis_cv_c_gcc_w_cast_qual=no | |
18127 | fi | |
18128 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18129 | CFLAGS="${oldcflags}" | |
18130 | fi | |
18131 | ||
18132 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
18133 | CWARNS="${CWARNS}-Wcast-qual " | |
18134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18135 | $as_echo "ok" >&6; } | |
18136 | else | |
18137 | charybdis_cv_c_gcc_w_cast_qual='' | |
18138 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18139 | $as_echo "no" >&6; } | |
18140 | fi | |
18141 | else | |
18142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18143 | $as_echo "no" >&6; } | |
18144 | fi | |
18145 | ||
18146 | ||
18147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5 | |
18148 | $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; } | |
18149 | if test "${GCC-no}" = yes | |
18150 | then | |
18151 | if ${charybdis_cv_c_gcc_w_write_strings+:} false; then : | |
18152 | $as_echo_n "(cached) " >&6 | |
18153 | else | |
18154 | ||
18155 | oldcflags="${CFLAGS-}" | |
18156 | CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror" | |
18157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18158 | /* end confdefs.h. */ | |
18159 | ||
18160 | #include <string.h> | |
18161 | #include <stdio.h> | |
18162 | int main(void); | |
18163 | ||
18164 | int | |
18165 | main () | |
18166 | { | |
18167 | ||
18168 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18169 | ||
18170 | ; | |
18171 | return 0; | |
18172 | } | |
18173 | _ACEOF | |
18174 | if ac_fn_c_try_compile "$LINENO"; then : | |
18175 | charybdis_cv_c_gcc_w_write_strings=yes | |
18176 | else | |
18177 | charybdis_cv_c_gcc_w_write_strings=no | |
18178 | fi | |
18179 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18180 | CFLAGS="${oldcflags}" | |
18181 | fi | |
18182 | ||
18183 | if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then | |
18184 | CWARNS="${CWARNS}-Wwrite-strings " | |
18185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18186 | $as_echo "ok" >&6; } | |
18187 | else | |
18188 | charybdis_cv_c_gcc_w_write_strings='' | |
18189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18190 | $as_echo "no" >&6; } | |
18191 | fi | |
18192 | else | |
18193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18194 | $as_echo "no" >&6; } | |
18195 | fi | |
18196 | ||
18197 | ||
18198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5 | |
18199 | $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; } | |
18200 | if test "${GCC-no}" = yes | |
18201 | then | |
18202 | if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then : | |
18203 | $as_echo_n "(cached) " >&6 | |
18204 | else | |
18205 | ||
18206 | oldcflags="${CFLAGS-}" | |
18207 | CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror" | |
18208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18209 | /* end confdefs.h. */ | |
18210 | ||
18211 | #include <string.h> | |
18212 | #include <stdio.h> | |
18213 | int main(void); | |
18214 | ||
18215 | int | |
18216 | main () | |
18217 | { | |
18218 | ||
18219 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18220 | ||
18221 | ; | |
18222 | return 0; | |
18223 | } | |
18224 | _ACEOF | |
18225 | if ac_fn_c_try_compile "$LINENO"; then : | |
18226 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes | |
18227 | else | |
18228 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=no | |
18229 | fi | |
18230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18231 | CFLAGS="${oldcflags}" | |
18232 | fi | |
18233 | ||
18234 | if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then | |
18235 | CWARNS="${CWARNS}-Werror-implicit-function-declaration " | |
18236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18237 | $as_echo "ok" >&6; } | |
18238 | else | |
18239 | charybdis_cv_c_gcc_w_error_implicit_function_declaration='' | |
18240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18241 | $as_echo "no" >&6; } | |
18242 | fi | |
18243 | else | |
18244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18245 | $as_echo "no" >&6; } | |
18246 | fi | |
18247 | ||
18248 | ||
18249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 | |
18250 | $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; } | |
18251 | if test "${GCC-no}" = yes | |
18252 | then | |
18253 | if ${charybdis_cv_c_gcc_prototypes+:} false; then : | |
18254 | $as_echo_n "(cached) " >&6 | |
18255 | else | |
18256 | ||
18257 | oldcflags="${CFLAGS-}" | |
18258 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
18259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18260 | /* end confdefs.h. */ | |
18261 | ||
18262 | #include <string.h> | |
18263 | #include <stdio.h> | |
18264 | int main(void); | |
18265 | ||
18266 | int | |
18267 | main () | |
18268 | { | |
18269 | ||
18270 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18271 | ||
18272 | ; | |
18273 | return 0; | |
18274 | } | |
18275 | _ACEOF | |
18276 | if ac_fn_c_try_compile "$LINENO"; then : | |
18277 | charybdis_cv_c_gcc_prototypes=yes | |
18278 | else | |
18279 | charybdis_cv_c_gcc_prototypes=no | |
18280 | fi | |
18281 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18282 | CFLAGS="${oldcflags}" | |
18283 | fi | |
18284 | ||
18285 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
18286 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
18287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18288 | $as_echo "ok" >&6; } | |
18289 | else | |
18290 | charybdis_cv_c_gcc_prototypes='' | |
18291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18292 | $as_echo "no" >&6; } | |
18293 | fi | |
18294 | else | |
18295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18296 | $as_echo "no" >&6; } | |
18297 | fi | |
18298 | ||
18299 | ||
18300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5 | |
18301 | $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; } | |
18302 | if test "${GCC-no}" = yes | |
18303 | then | |
18304 | if ${charybdis_cv_c_gcc_parenthesis+:} false; then : | |
18305 | $as_echo_n "(cached) " >&6 | |
18306 | else | |
18307 | ||
18308 | oldcflags="${CFLAGS-}" | |
18309 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
18310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18311 | /* end confdefs.h. */ | |
18312 | ||
18313 | #include <string.h> | |
18314 | #include <stdio.h> | |
18315 | int main(void); | |
18316 | ||
18317 | int | |
18318 | main () | |
18319 | { | |
18320 | ||
18321 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18322 | ||
18323 | ; | |
18324 | return 0; | |
18325 | } | |
18326 | _ACEOF | |
18327 | if ac_fn_c_try_compile "$LINENO"; then : | |
18328 | charybdis_cv_c_gcc_parenthesis=yes | |
18329 | else | |
18330 | charybdis_cv_c_gcc_parenthesis=no | |
18331 | fi | |
18332 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18333 | CFLAGS="${oldcflags}" | |
18334 | fi | |
18335 | ||
18336 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
18337 | CWARNS="${CWARNS}-Wparenthesis " | |
18338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18339 | $as_echo "ok" >&6; } | |
18340 | else | |
18341 | charybdis_cv_c_gcc_parenthesis='' | |
18342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18343 | $as_echo "no" >&6; } | |
18344 | fi | |
18345 | else | |
18346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18347 | $as_echo "no" >&6; } | |
18348 | fi | |
18349 | ||
18350 | ||
18351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5 | |
18352 | $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; } | |
18353 | if test "${GCC-no}" = yes | |
18354 | then | |
18355 | if ${charybdis_cv_c_gcc_w+:} false; then : | |
18356 | $as_echo_n "(cached) " >&6 | |
18357 | else | |
18358 | ||
18359 | oldcflags="${CFLAGS-}" | |
18360 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
18361 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18362 | /* end confdefs.h. */ | |
18363 | ||
18364 | #include <string.h> | |
18365 | #include <stdio.h> | |
18366 | int main(void); | |
18367 | ||
18368 | int | |
18369 | main () | |
18370 | { | |
18371 | ||
18372 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18373 | ||
18374 | ; | |
18375 | return 0; | |
18376 | } | |
18377 | _ACEOF | |
18378 | if ac_fn_c_try_compile "$LINENO"; then : | |
18379 | charybdis_cv_c_gcc_w=yes | |
18380 | else | |
18381 | charybdis_cv_c_gcc_w=no | |
18382 | fi | |
18383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18384 | CFLAGS="${oldcflags}" | |
18385 | fi | |
18386 | ||
18387 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
18388 | CWARNS="${CWARNS}-W -Wno-unused " | |
18389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18390 | $as_echo "ok" >&6; } | |
18391 | else | |
18392 | charybdis_cv_c_gcc_w='' | |
18393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18394 | $as_echo "no" >&6; } | |
18395 | fi | |
18396 | else | |
18397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18398 | $as_echo "no" >&6; } | |
18399 | fi | |
18400 | ||
18401 | ||
18402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5 | |
18403 | $as_echo_n "checking GCC flag(s) -Wextra... " >&6; } | |
18404 | if test "${GCC-no}" = yes | |
18405 | then | |
18406 | if ${charybdis_cv_c_gcc_w_extra+:} false; then : | |
18407 | $as_echo_n "(cached) " >&6 | |
18408 | else | |
18409 | ||
18410 | oldcflags="${CFLAGS-}" | |
18411 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
18412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18413 | /* end confdefs.h. */ | |
18414 | ||
18415 | #include <string.h> | |
18416 | #include <stdio.h> | |
18417 | int main(void); | |
18418 | ||
18419 | int | |
18420 | main () | |
18421 | { | |
18422 | ||
18423 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18424 | ||
18425 | ; | |
18426 | return 0; | |
18427 | } | |
18428 | _ACEOF | |
18429 | if ac_fn_c_try_compile "$LINENO"; then : | |
18430 | charybdis_cv_c_gcc_w_extra=yes | |
18431 | else | |
18432 | charybdis_cv_c_gcc_w_extra=no | |
18433 | fi | |
18434 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18435 | CFLAGS="${oldcflags}" | |
18436 | fi | |
18437 | ||
18438 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
18439 | CWARNS="${CWARNS}-Wextra " | |
18440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18441 | $as_echo "ok" >&6; } | |
18442 | else | |
18443 | charybdis_cv_c_gcc_w_extra='' | |
18444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18445 | $as_echo "no" >&6; } | |
18446 | fi | |
18447 | else | |
18448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18449 | $as_echo "no" >&6; } | |
18450 | fi | |
18451 | ||
18452 | ||
18453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5 | |
18454 | $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; } | |
18455 | if test "${GCC-no}" = yes | |
18456 | then | |
18457 | if ${charybdis_cv_c_gcc_w_shadow+:} false; then : | |
18458 | $as_echo_n "(cached) " >&6 | |
18459 | else | |
18460 | ||
18461 | oldcflags="${CFLAGS-}" | |
18462 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
18463 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18464 | /* end confdefs.h. */ | |
18465 | ||
18466 | #include <string.h> | |
18467 | #include <stdio.h> | |
18468 | int main(void); | |
18469 | ||
18470 | int | |
18471 | main () | |
18472 | { | |
18473 | ||
18474 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18475 | ||
18476 | ; | |
18477 | return 0; | |
18478 | } | |
18479 | _ACEOF | |
18480 | if ac_fn_c_try_compile "$LINENO"; then : | |
18481 | charybdis_cv_c_gcc_w_shadow=yes | |
18482 | else | |
18483 | charybdis_cv_c_gcc_w_shadow=no | |
18484 | fi | |
18485 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18486 | CFLAGS="${oldcflags}" | |
18487 | fi | |
18488 | ||
18489 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
18490 | CWARNS="${CWARNS}-Wshadow " | |
18491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18492 | $as_echo "ok" >&6; } | |
18493 | else | |
18494 | charybdis_cv_c_gcc_w_shadow='' | |
18495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18496 | $as_echo "no" >&6; } | |
18497 | fi | |
18498 | else | |
18499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18500 | $as_echo "no" >&6; } | |
18501 | fi | |
18502 | ||
18503 | ||
18504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5 | |
18505 | $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; } | |
18506 | if test "${GCC-no}" = yes | |
18507 | then | |
18508 | if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then : | |
18509 | $as_echo_n "(cached) " >&6 | |
18510 | else | |
18511 | ||
18512 | oldcflags="${CFLAGS-}" | |
18513 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
18514 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18515 | /* end confdefs.h. */ | |
18516 | ||
18517 | #include <string.h> | |
18518 | #include <stdio.h> | |
18519 | int main(void); | |
18520 | ||
18521 | int | |
18522 | main () | |
18523 | { | |
18524 | ||
18525 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18526 | ||
18527 | ; | |
18528 | return 0; | |
18529 | } | |
18530 | _ACEOF | |
18531 | if ac_fn_c_try_compile "$LINENO"; then : | |
18532 | charybdis_cv_c_gcc_w_missing_noreturn=yes | |
18533 | else | |
18534 | charybdis_cv_c_gcc_w_missing_noreturn=no | |
18535 | fi | |
18536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18537 | CFLAGS="${oldcflags}" | |
18538 | fi | |
18539 | ||
18540 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
18541 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
18542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18543 | $as_echo "ok" >&6; } | |
18544 | else | |
18545 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
18546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18547 | $as_echo "no" >&6; } | |
18548 | fi | |
18549 | else | |
18550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18551 | $as_echo "no" >&6; } | |
18552 | fi | |
18553 | ||
18554 | ||
18555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5 | |
18556 | $as_echo_n "checking GCC flag(s) -Wundef... " >&6; } | |
18557 | if test "${GCC-no}" = yes | |
18558 | then | |
18559 | if ${charybdis_cv_c_gcc_w_undef+:} false; then : | |
18560 | $as_echo_n "(cached) " >&6 | |
18561 | else | |
18562 | ||
18563 | oldcflags="${CFLAGS-}" | |
18564 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
18565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18566 | /* end confdefs.h. */ | |
18567 | ||
18568 | #include <string.h> | |
18569 | #include <stdio.h> | |
18570 | int main(void); | |
18571 | ||
18572 | int | |
18573 | main () | |
18574 | { | |
18575 | ||
18576 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18577 | ||
18578 | ; | |
18579 | return 0; | |
18580 | } | |
18581 | _ACEOF | |
18582 | if ac_fn_c_try_compile "$LINENO"; then : | |
18583 | charybdis_cv_c_gcc_w_undef=yes | |
18584 | else | |
18585 | charybdis_cv_c_gcc_w_undef=no | |
18586 | fi | |
18587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18588 | CFLAGS="${oldcflags}" | |
18589 | fi | |
18590 | ||
18591 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
18592 | CWARNS="${CWARNS}-Wundef " | |
18593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18594 | $as_echo "ok" >&6; } | |
18595 | else | |
18596 | charybdis_cv_c_gcc_w_undef='' | |
18597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18598 | $as_echo "no" >&6; } | |
18599 | fi | |
18600 | else | |
18601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18602 | $as_echo "no" >&6; } | |
18603 | fi | |
18604 | ||
18605 | ||
18606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5 | |
18607 | $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; } | |
18608 | if test "${GCC-no}" = yes | |
18609 | then | |
18610 | if ${charybdis_cv_c_gcc_w_packed+:} false; then : | |
18611 | $as_echo_n "(cached) " >&6 | |
18612 | else | |
18613 | ||
18614 | oldcflags="${CFLAGS-}" | |
18615 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
18616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18617 | /* end confdefs.h. */ | |
18618 | ||
18619 | #include <string.h> | |
18620 | #include <stdio.h> | |
18621 | int main(void); | |
18622 | ||
18623 | int | |
18624 | main () | |
18625 | { | |
18626 | ||
18627 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18628 | ||
18629 | ; | |
18630 | return 0; | |
18631 | } | |
18632 | _ACEOF | |
18633 | if ac_fn_c_try_compile "$LINENO"; then : | |
18634 | charybdis_cv_c_gcc_w_packed=yes | |
18635 | else | |
18636 | charybdis_cv_c_gcc_w_packed=no | |
18637 | fi | |
18638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18639 | CFLAGS="${oldcflags}" | |
18640 | fi | |
18641 | ||
18642 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
18643 | CWARNS="${CWARNS}-Wpacked " | |
18644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18645 | $as_echo "ok" >&6; } | |
18646 | else | |
18647 | charybdis_cv_c_gcc_w_packed='' | |
18648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18649 | $as_echo "no" >&6; } | |
18650 | fi | |
18651 | else | |
18652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18653 | $as_echo "no" >&6; } | |
18654 | fi | |
18655 | ||
18656 | ||
18657 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5 | |
18658 | $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; } | |
18659 | if test "${GCC-no}" = yes | |
18660 | then | |
18661 | if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then : | |
18662 | $as_echo_n "(cached) " >&6 | |
18663 | else | |
18664 | ||
18665 | oldcflags="${CFLAGS-}" | |
18666 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
18667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18668 | /* end confdefs.h. */ | |
18669 | ||
18670 | #include <string.h> | |
18671 | #include <stdio.h> | |
18672 | int main(void); | |
18673 | ||
18674 | int | |
18675 | main () | |
18676 | { | |
18677 | ||
18678 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18679 | ||
18680 | ; | |
18681 | return 0; | |
18682 | } | |
18683 | _ACEOF | |
18684 | if ac_fn_c_try_compile "$LINENO"; then : | |
18685 | charybdis_cv_c_gcc_w_nested_externs=yes | |
18686 | else | |
18687 | charybdis_cv_c_gcc_w_nested_externs=no | |
18688 | fi | |
18689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18690 | CFLAGS="${oldcflags}" | |
18691 | fi | |
18692 | ||
18693 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
18694 | CWARNS="${CWARNS}-Wnested-externs " | |
18695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18696 | $as_echo "ok" >&6; } | |
18697 | else | |
18698 | charybdis_cv_c_gcc_w_nested_externs='' | |
18699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18700 | $as_echo "no" >&6; } | |
18701 | fi | |
18702 | else | |
18703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18704 | $as_echo "no" >&6; } | |
18705 | fi | |
18706 | ||
18707 | ||
18708 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 | |
18709 | $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; } | |
18710 | if test "${GCC-no}" = yes | |
18711 | then | |
18712 | if ${charybdis_cv_c_gcc_w_unused+:} false; then : | |
18713 | $as_echo_n "(cached) " >&6 | |
18714 | else | |
18715 | ||
18716 | oldcflags="${CFLAGS-}" | |
18717 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
18718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18719 | /* end confdefs.h. */ | |
18720 | ||
18721 | #include <string.h> | |
18722 | #include <stdio.h> | |
18723 | int main(void); | |
18724 | ||
18725 | int | |
18726 | main () | |
18727 | { | |
18728 | ||
18729 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18730 | ||
18731 | ; | |
18732 | return 0; | |
18733 | } | |
18734 | _ACEOF | |
18735 | if ac_fn_c_try_compile "$LINENO"; then : | |
18736 | charybdis_cv_c_gcc_w_unused=yes | |
18737 | else | |
18738 | charybdis_cv_c_gcc_w_unused=no | |
18739 | fi | |
18740 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18741 | CFLAGS="${oldcflags}" | |
18742 | fi | |
18743 | ||
18744 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
18745 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
18746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18747 | $as_echo "ok" >&6; } | |
18748 | else | |
18749 | charybdis_cv_c_gcc_w_unused='' | |
18750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18751 | $as_echo "no" >&6; } | |
18752 | fi | |
18753 | else | |
18754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18755 | $as_echo "no" >&6; } | |
18756 | fi | |
18757 | ||
18758 | ||
18759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5 | |
18760 | $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; } | |
18761 | if test "${GCC-no}" = yes | |
18762 | then | |
18763 | if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then : | |
18764 | $as_echo_n "(cached) " >&6 | |
18765 | else | |
18766 | ||
18767 | oldcflags="${CFLAGS-}" | |
18768 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
18769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18770 | /* end confdefs.h. */ | |
18771 | ||
18772 | #include <string.h> | |
18773 | #include <stdio.h> | |
18774 | int main(void); | |
18775 | ||
18776 | int | |
18777 | main () | |
18778 | { | |
18779 | ||
18780 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18781 | ||
18782 | ; | |
18783 | return 0; | |
18784 | } | |
18785 | _ACEOF | |
18786 | if ac_fn_c_try_compile "$LINENO"; then : | |
18787 | charybdis_cv_c_gcc_w_redundant_decls=yes | |
18788 | else | |
18789 | charybdis_cv_c_gcc_w_redundant_decls=no | |
18790 | fi | |
18791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18792 | CFLAGS="${oldcflags}" | |
18793 | fi | |
18794 | ||
18795 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
18796 | CWARNS="${CWARNS}-Wredundant-decls " | |
18797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18798 | $as_echo "ok" >&6; } | |
18799 | else | |
18800 | charybdis_cv_c_gcc_w_redundant_decls='' | |
18801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18802 | $as_echo "no" >&6; } | |
18803 | fi | |
18804 | else | |
18805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18806 | $as_echo "no" >&6; } | |
18807 | fi | |
18808 | ||
18809 | ||
18810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5 | |
18811 | $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; } | |
18812 | if test "${GCC-no}" = yes | |
18813 | then | |
18814 | if ${charybdis_cv_c_gcc_w_float_equal+:} false; then : | |
18815 | $as_echo_n "(cached) " >&6 | |
18816 | else | |
18817 | ||
18818 | oldcflags="${CFLAGS-}" | |
18819 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
18820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18821 | /* end confdefs.h. */ | |
18822 | ||
18823 | #include <string.h> | |
18824 | #include <stdio.h> | |
18825 | int main(void); | |
18826 | ||
18827 | int | |
18828 | main () | |
18829 | { | |
18830 | ||
18831 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18832 | ||
18833 | ; | |
18834 | return 0; | |
18835 | } | |
18836 | _ACEOF | |
18837 | if ac_fn_c_try_compile "$LINENO"; then : | |
18838 | charybdis_cv_c_gcc_w_float_equal=yes | |
18839 | else | |
18840 | charybdis_cv_c_gcc_w_float_equal=no | |
18841 | fi | |
18842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18843 | CFLAGS="${oldcflags}" | |
18844 | fi | |
18845 | ||
18846 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
18847 | CWARNS="${CWARNS}-Wfloat-equal " | |
18848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18849 | $as_echo "ok" >&6; } | |
18850 | else | |
18851 | charybdis_cv_c_gcc_w_float_equal='' | |
18852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18853 | $as_echo "no" >&6; } | |
18854 | fi | |
18855 | else | |
18856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18857 | $as_echo "no" >&6; } | |
18858 | fi | |
18859 | ||
18860 | ||
18861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5 | |
18862 | $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; } | |
18863 | if test "${GCC-no}" = yes | |
18864 | then | |
18865 | if ${charybdis_cv_c_gcc_w_format+:} false; then : | |
18866 | $as_echo_n "(cached) " >&6 | |
18867 | else | |
18868 | ||
18869 | oldcflags="${CFLAGS-}" | |
18870 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror" | |
18871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
18872 | /* end confdefs.h. */ | |
18873 | ||
18874 | #include <string.h> | |
18875 | #include <stdio.h> | |
18876 | int main(void); | |
18877 | ||
18878 | int | |
18879 | main () | |
18880 | { | |
18881 | ||
18882 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
18883 | ||
18884 | ; | |
18885 | return 0; | |
18886 | } | |
18887 | _ACEOF | |
18888 | if ac_fn_c_try_compile "$LINENO"; then : | |
18889 | charybdis_cv_c_gcc_w_format=yes | |
18890 | else | |
18891 | charybdis_cv_c_gcc_w_format=no | |
18892 | fi | |
18893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
18894 | CFLAGS="${oldcflags}" | |
18895 | fi | |
18896 | ||
18897 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
18898 | CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security " | |
18899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
18900 | $as_echo "ok" >&6; } | |
18901 | else | |
18902 | charybdis_cv_c_gcc_w_format='' | |
18903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18904 | $as_echo "no" >&6; } | |
18905 | fi | |
18906 | else | |
18907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
18908 | $as_echo "no" >&6; } | |
18909 | fi | |
18910 | ||
18911 | ||
18912 | IRC_CFLAGS="$CFLAGS" | |
18913 | ||
18914 | fi | |
18915 | ||
18916 | ||
18917 | IRC_CFLAGS="$IRC_CFLAGS $CWARNS" | |
18918 | ||
18919 | ||
18920 | ||
18921 | ||
18922 | ||
18923 | ||
18924 | ||
18925 | ||
18926 | ||
18927 | ||
18928 | ||
18929 | ||
18930 | ||
18931 | ||
18932 | if test "$prefix" = "NONE"; then | |
18933 | ||
18934 | cat >>confdefs.h <<_ACEOF | |
18935 | #define IRCD_PREFIX "$ac_default_prefix" | |
18936 | _ACEOF | |
18937 | ||
18938 | ||
18939 | else | |
18940 | ||
18941 | ||
18942 | prefix=`echo $prefix | sed 's/\/$//'` | |
18943 | ||
18944 | cat >>confdefs.h <<_ACEOF | |
18945 | #define IRCD_PREFIX "$prefix" | |
18946 | _ACEOF | |
18947 | ||
18948 | ||
18949 | fi | |
18950 | ||
18951 | ac_config_files="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile ircd/Makefile modules/Makefile tools/Makefile tools/genssl doc/Makefile help/Makefile" | |
18952 | ||
18953 | ac_config_commands="$ac_config_commands tools/genssl_chmod" | |
18954 | ||
18955 | ||
18956 | cat >confcache <<\_ACEOF | |
18957 | # This file is a shell script that caches the results of configure | |
18958 | # tests run on this system so they can be shared between configure | |
18959 | # scripts and configure runs, see configure's option --config-cache. | |
18960 | # It is not useful on other systems. If it contains results you don't | |
18961 | # want to keep, you may remove or edit it. | |
18962 | # | |
18963 | # config.status only pays attention to the cache file if you give it | |
18964 | # the --recheck option to rerun configure. | |
18965 | # | |
18966 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
18967 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18968 | # following values. | |
18969 | ||
18970 | _ACEOF | |
18971 | ||
18972 | # The following way of writing the cache mishandles newlines in values, | |
18973 | # but we know of no workaround that is simple, portable, and efficient. | |
18974 | # So, we kill variables containing newlines. | |
18975 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18976 | # and sets the high bit in the cache file unless we assign to the vars. | |
18977 | ( | |
18978 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
18979 | eval ac_val=\$$ac_var | |
18980 | case $ac_val in #( | |
18981 | *${as_nl}*) | |
18982 | case $ac_var in #( | |
18983 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
18984 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
18985 | esac | |
18986 | case $ac_var in #( | |
18987 | _ | IFS | as_nl) ;; #( | |
18988 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
18989 | *) { eval $ac_var=; unset $ac_var;} ;; | |
18990 | esac ;; | |
18991 | esac | |
18992 | done | |
18993 | ||
18994 | (set) 2>&1 | | |
18995 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
18996 | *${as_nl}ac_space=\ *) | |
18997 | # `set' does not quote correctly, so add quotes: double-quote | |
18998 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
18999 | sed -n \ | |
19000 | "s/'/'\\\\''/g; | |
19001 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
19002 | ;; #( | |
19003 | *) | |
19004 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
19005 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
19006 | ;; | |
19007 | esac | | |
19008 | sort | |
19009 | ) | | |
19010 | sed ' | |
19011 | /^ac_cv_env_/b end | |
19012 | t clear | |
19013 | :clear | |
19014 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
19015 | t end | |
19016 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
19017 | :end' >>confcache | |
19018 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
19019 | if test -w "$cache_file"; then | |
19020 | if test "x$cache_file" != "x/dev/null"; then | |
19021 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
19022 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
19023 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
19024 | cat confcache >"$cache_file" | |
19025 | else | |
19026 | case $cache_file in #( | |
19027 | */* | ?:*) | |
19028 | mv -f confcache "$cache_file"$$ && | |
19029 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
19030 | *) | |
19031 | mv -f confcache "$cache_file" ;; | |
19032 | esac | |
19033 | fi | |
19034 | fi | |
19035 | else | |
19036 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
19037 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
19038 | fi | |
19039 | fi | |
19040 | rm -f confcache | |
19041 | ||
19042 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
19043 | # Let make expand exec_prefix. | |
19044 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
19045 | ||
19046 | DEFS=-DHAVE_CONFIG_H | |
19047 | ||
19048 | ac_libobjs= | |
19049 | ac_ltlibobjs= | |
19050 | U= | |
19051 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
19052 | # 1. Remove the extension, and $U if already installed. | |
19053 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
19054 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
19055 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
19056 | # will be set to the directory where LIBOBJS objects are built. | |
19057 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
19058 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
19059 | done | |
19060 | LIBOBJS=$ac_libobjs | |
19061 | ||
19062 | LTLIBOBJS=$ac_ltlibobjs | |
19063 | ||
19064 | ||
19065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
19066 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
19067 | if test -n "$am_sleep_pid"; then | |
19068 | # Hide warnings about reused PIDs. | |
19069 | wait $am_sleep_pid 2>/dev/null | |
19070 | fi | |
19071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
19072 | $as_echo "done" >&6; } | |
19073 | if test -n "$EXEEXT"; then | |
19074 | am__EXEEXT_TRUE= | |
19075 | am__EXEEXT_FALSE='#' | |
19076 | else | |
19077 | am__EXEEXT_TRUE='#' | |
19078 | am__EXEEXT_FALSE= | |
19079 | fi | |
19080 | ||
19081 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
19082 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
19083 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19084 | fi | |
19085 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
19086 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
19087 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19088 | fi | |
19089 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then | |
19090 | as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. | |
19091 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19092 | fi | |
19093 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | |
19094 | as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. | |
19095 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19096 | fi | |
19097 | LT_CONFIG_H=include/setup.h | |
19098 | ||
19099 | _ltdl_libobjs= | |
19100 | _ltdl_ltlibobjs= | |
19101 | if test -n "$_LT_LIBOBJS"; then | |
19102 | # Remove the extension. | |
19103 | _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' | |
19104 | for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do | |
19105 | _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" | |
19106 | _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" | |
19107 | done | |
19108 | fi | |
19109 | ltdl_LIBOBJS=$_ltdl_libobjs | |
19110 | ||
19111 | ltdl_LTLIBOBJS=$_ltdl_ltlibobjs | |
19112 | ||
19113 | ||
19114 | if test -z "${BUILD_LTDL_TRUE}" && test -z "${BUILD_LTDL_FALSE}"; then | |
19115 | as_fn_error $? "conditional \"BUILD_LTDL\" was never defined. | |
19116 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19117 | fi | |
19118 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
19119 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
19120 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
19121 | fi | |
19122 | ||
19123 | ||
19124 | ||
19125 | : "${CONFIG_STATUS=./config.status}" | |
19126 | ac_write_fail=0 | |
19127 | ac_clean_files_save=$ac_clean_files | |
19128 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
19129 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
19130 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
19131 | as_write_fail=0 | |
19132 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
19133 | #! $SHELL | |
19134 | # Generated by $as_me. | |
19135 | # Run this file to recreate the current configuration. | |
19136 | # Compiler output produced by configure, useful for debugging | |
19137 | # configure, is in config.log if it exists. | |
19138 | ||
19139 | debug=false | |
19140 | ac_cs_recheck=false | |
19141 | ac_cs_silent=false | |
19142 | ||
19143 | SHELL=\${CONFIG_SHELL-$SHELL} | |
19144 | export SHELL | |
19145 | _ASEOF | |
19146 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
19147 | ## -------------------- ## | |
19148 | ## M4sh Initialization. ## | |
19149 | ## -------------------- ## | |
19150 | ||
19151 | # Be more Bourne compatible | |
19152 | DUALCASE=1; export DUALCASE # for MKS sh | |
19153 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
19154 | emulate sh | |
19155 | NULLCMD=: | |
19156 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
19157 | # is contrary to our usage. Disable this feature. | |
19158 | alias -g '${1+"$@"}'='"$@"' | |
19159 | setopt NO_GLOB_SUBST | |
19160 | else | |
19161 | case `(set -o) 2>/dev/null` in #( | |
19162 | *posix*) : | |
19163 | set -o posix ;; #( | |
19164 | *) : | |
19165 | ;; | |
19166 | esac | |
19167 | fi | |
19168 | ||
19169 | ||
19170 | as_nl=' | |
19171 | ' | |
19172 | export as_nl | |
19173 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
19174 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
19175 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
19176 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
19177 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
19178 | # but without wasting forks for bash or zsh. | |
19179 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
19180 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19181 | as_echo='print -r --' | |
19182 | as_echo_n='print -rn --' | |
19183 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
19184 | as_echo='printf %s\n' | |
19185 | as_echo_n='printf %s' | |
19186 | else | |
19187 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
19188 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
19189 | as_echo_n='/usr/ucb/echo -n' | |
19190 | else | |
19191 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
19192 | as_echo_n_body='eval | |
19193 | arg=$1; | |
19194 | case $arg in #( | |
19195 | *"$as_nl"*) | |
19196 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
19197 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
19198 | esac; | |
19199 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
19200 | ' | |
19201 | export as_echo_n_body | |
19202 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
19203 | fi | |
19204 | export as_echo_body | |
19205 | as_echo='sh -c $as_echo_body as_echo' | |
19206 | fi | |
19207 | ||
19208 | # The user is always right. | |
19209 | if test "${PATH_SEPARATOR+set}" != set; then | |
19210 | PATH_SEPARATOR=: | |
19211 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
19212 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
19213 | PATH_SEPARATOR=';' | |
19214 | } | |
19215 | fi | |
19216 | ||
19217 | ||
19218 | # IFS | |
19219 | # We need space, tab and new line, in precisely that order. Quoting is | |
19220 | # there to prevent editors from complaining about space-tab. | |
19221 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
19222 | # splitting by setting IFS to empty value.) | |
19223 | IFS=" "" $as_nl" | |
19224 | ||
19225 | # Find who we are. Look in the path if we contain no directory separator. | |
19226 | as_myself= | |
19227 | case $0 in #(( | |
19228 | *[\\/]* ) as_myself=$0 ;; | |
19229 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19230 | for as_dir in $PATH | |
19231 | do | |
19232 | IFS=$as_save_IFS | |
19233 | test -z "$as_dir" && as_dir=. | |
19234 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
19235 | done | |
19236 | IFS=$as_save_IFS | |
19237 | ||
19238 | ;; | |
19239 | esac | |
19240 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
19241 | # in which case we are not to be found in the path. | |
19242 | if test "x$as_myself" = x; then | |
19243 | as_myself=$0 | |
19244 | fi | |
19245 | if test ! -f "$as_myself"; then | |
19246 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
19247 | exit 1 | |
19248 | fi | |
19249 | ||
19250 | # Unset variables that we do not need and which cause bugs (e.g. in | |
19251 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
19252 | # suppresses any "Segmentation fault" message there. '((' could | |
19253 | # trigger a bug in pdksh 5.2.14. | |
19254 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
19255 | do eval test x\${$as_var+set} = xset \ | |
19256 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
19257 | done | |
19258 | PS1='$ ' | |
19259 | PS2='> ' | |
19260 | PS4='+ ' | |
19261 | ||
19262 | # NLS nuisances. | |
19263 | LC_ALL=C | |
19264 | export LC_ALL | |
19265 | LANGUAGE=C | |
19266 | export LANGUAGE | |
19267 | ||
19268 | # CDPATH. | |
19269 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
19270 | ||
19271 | ||
19272 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
19273 | # ---------------------------------------- | |
19274 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
19275 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
19276 | # script with STATUS, using 1 if that was 0. | |
19277 | as_fn_error () | |
19278 | { | |
19279 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
19280 | if test "$4"; then | |
19281 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
19282 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
19283 | fi | |
19284 | $as_echo "$as_me: error: $2" >&2 | |
19285 | as_fn_exit $as_status | |
19286 | } # as_fn_error | |
19287 | ||
19288 | ||
19289 | # as_fn_set_status STATUS | |
19290 | # ----------------------- | |
19291 | # Set $? to STATUS, without forking. | |
19292 | as_fn_set_status () | |
19293 | { | |
19294 | return $1 | |
19295 | } # as_fn_set_status | |
19296 | ||
19297 | # as_fn_exit STATUS | |
19298 | # ----------------- | |
19299 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
19300 | as_fn_exit () | |
19301 | { | |
19302 | set +e | |
19303 | as_fn_set_status $1 | |
19304 | exit $1 | |
19305 | } # as_fn_exit | |
19306 | ||
19307 | # as_fn_unset VAR | |
19308 | # --------------- | |
19309 | # Portably unset VAR. | |
19310 | as_fn_unset () | |
19311 | { | |
19312 | { eval $1=; unset $1;} | |
19313 | } | |
19314 | as_unset=as_fn_unset | |
19315 | # as_fn_append VAR VALUE | |
19316 | # ---------------------- | |
19317 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
19318 | # advantage of any shell optimizations that allow amortized linear growth over | |
19319 | # repeated appends, instead of the typical quadratic growth present in naive | |
19320 | # implementations. | |
19321 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
19322 | eval 'as_fn_append () | |
19323 | { | |
19324 | eval $1+=\$2 | |
19325 | }' | |
19326 | else | |
19327 | as_fn_append () | |
19328 | { | |
19329 | eval $1=\$$1\$2 | |
19330 | } | |
19331 | fi # as_fn_append | |
19332 | ||
19333 | # as_fn_arith ARG... | |
19334 | # ------------------ | |
19335 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
19336 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
19337 | # must be portable across $(()) and expr. | |
19338 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
19339 | eval 'as_fn_arith () | |
19340 | { | |
19341 | as_val=$(( $* )) | |
19342 | }' | |
19343 | else | |
19344 | as_fn_arith () | |
19345 | { | |
19346 | as_val=`expr "$@" || test $? -eq 1` | |
19347 | } | |
19348 | fi # as_fn_arith | |
19349 | ||
19350 | ||
19351 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
19352 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
19353 | as_expr=expr | |
19354 | else | |
19355 | as_expr=false | |
19356 | fi | |
19357 | ||
19358 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
19359 | as_basename=basename | |
19360 | else | |
19361 | as_basename=false | |
19362 | fi | |
19363 | ||
19364 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
19365 | as_dirname=dirname | |
19366 | else | |
19367 | as_dirname=false | |
19368 | fi | |
19369 | ||
19370 | as_me=`$as_basename -- "$0" || | |
19371 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
19372 | X"$0" : 'X\(//\)$' \| \ | |
19373 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
19374 | $as_echo X/"$0" | | |
19375 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
19376 | s//\1/ | |
19377 | q | |
19378 | } | |
19379 | /^X\/\(\/\/\)$/{ | |
19380 | s//\1/ | |
19381 | q | |
19382 | } | |
19383 | /^X\/\(\/\).*/{ | |
19384 | s//\1/ | |
19385 | q | |
19386 | } | |
19387 | s/.*/./; q'` | |
19388 | ||
19389 | # Avoid depending upon Character Ranges. | |
19390 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
19391 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
19392 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
19393 | as_cr_digits='0123456789' | |
19394 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
19395 | ||
19396 | ECHO_C= ECHO_N= ECHO_T= | |
19397 | case `echo -n x` in #((((( | |
19398 | -n*) | |
19399 | case `echo 'xy\c'` in | |
19400 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
19401 | xy) ECHO_C='\c';; | |
19402 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
19403 | ECHO_T=' ';; | |
19404 | esac;; | |
19405 | *) | |
19406 | ECHO_N='-n';; | |
19407 | esac | |
19408 | ||
19409 | rm -f conf$$ conf$$.exe conf$$.file | |
19410 | if test -d conf$$.dir; then | |
19411 | rm -f conf$$.dir/conf$$.file | |
19412 | else | |
19413 | rm -f conf$$.dir | |
19414 | mkdir conf$$.dir 2>/dev/null | |
19415 | fi | |
19416 | if (echo >conf$$.file) 2>/dev/null; then | |
19417 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
19418 | as_ln_s='ln -s' | |
19419 | # ... but there are two gotchas: | |
19420 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
19421 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
19422 | # In both cases, we have to default to `cp -pR'. | |
19423 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
19424 | as_ln_s='cp -pR' | |
19425 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
19426 | as_ln_s=ln | |
19427 | else | |
19428 | as_ln_s='cp -pR' | |
19429 | fi | |
19430 | else | |
19431 | as_ln_s='cp -pR' | |
19432 | fi | |
19433 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
19434 | rmdir conf$$.dir 2>/dev/null | |
19435 | ||
19436 | ||
19437 | # as_fn_mkdir_p | |
19438 | # ------------- | |
19439 | # Create "$as_dir" as a directory, including parents if necessary. | |
19440 | as_fn_mkdir_p () | |
19441 | { | |
19442 | ||
19443 | case $as_dir in #( | |
19444 | -*) as_dir=./$as_dir;; | |
19445 | esac | |
19446 | test -d "$as_dir" || eval $as_mkdir_p || { | |
19447 | as_dirs= | |
19448 | while :; do | |
19449 | case $as_dir in #( | |
19450 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
19451 | *) as_qdir=$as_dir;; | |
19452 | esac | |
19453 | as_dirs="'$as_qdir' $as_dirs" | |
19454 | as_dir=`$as_dirname -- "$as_dir" || | |
19455 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19456 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
19457 | X"$as_dir" : 'X\(//\)$' \| \ | |
19458 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
19459 | $as_echo X"$as_dir" | | |
19460 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19461 | s//\1/ | |
19462 | q | |
19463 | } | |
19464 | /^X\(\/\/\)[^/].*/{ | |
19465 | s//\1/ | |
19466 | q | |
19467 | } | |
19468 | /^X\(\/\/\)$/{ | |
19469 | s//\1/ | |
19470 | q | |
19471 | } | |
19472 | /^X\(\/\).*/{ | |
19473 | s//\1/ | |
19474 | q | |
19475 | } | |
19476 | s/.*/./; q'` | |
19477 | test -d "$as_dir" && break | |
19478 | done | |
19479 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
19480 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
19481 | ||
19482 | ||
19483 | } # as_fn_mkdir_p | |
19484 | if mkdir -p . 2>/dev/null; then | |
19485 | as_mkdir_p='mkdir -p "$as_dir"' | |
19486 | else | |
19487 | test -d ./-p && rmdir ./-p | |
19488 | as_mkdir_p=false | |
19489 | fi | |
19490 | ||
19491 | ||
19492 | # as_fn_executable_p FILE | |
19493 | # ----------------------- | |
19494 | # Test if FILE is an executable regular file. | |
19495 | as_fn_executable_p () | |
19496 | { | |
19497 | test -f "$1" && test -x "$1" | |
19498 | } # as_fn_executable_p | |
19499 | as_test_x='test -x' | |
19500 | as_executable_p=as_fn_executable_p | |
19501 | ||
19502 | # Sed expression to map a string onto a valid CPP name. | |
19503 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
19504 | ||
19505 | # Sed expression to map a string onto a valid variable name. | |
19506 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
19507 | ||
19508 | ||
19509 | exec 6>&1 | |
19510 | ## ----------------------------------- ## | |
19511 | ## Main body of $CONFIG_STATUS script. ## | |
19512 | ## ----------------------------------- ## | |
19513 | _ASEOF | |
19514 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
19515 | ||
19516 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19517 | # Save the log message, to keep $0 and so on meaningful, and to | |
19518 | # report actual input values of CONFIG_FILES etc. instead of their | |
19519 | # values after options handling. | |
19520 | ac_log=" | |
19521 | This file was extended by charybdis $as_me 3.6.0-dev, which was | |
19522 | generated by GNU Autoconf 2.69. Invocation command line was | |
19523 | ||
19524 | CONFIG_FILES = $CONFIG_FILES | |
19525 | CONFIG_HEADERS = $CONFIG_HEADERS | |
19526 | CONFIG_LINKS = $CONFIG_LINKS | |
19527 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
19528 | $ $0 $@ | |
19529 | ||
19530 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
19531 | " | |
19532 | ||
19533 | _ACEOF | |
19534 | ||
19535 | case $ac_config_files in *" | |
19536 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
19537 | esac | |
19538 | ||
19539 | case $ac_config_headers in *" | |
19540 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
19541 | esac | |
19542 | ||
19543 | ||
19544 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19545 | # Files that config.status was made for. | |
19546 | config_files="$ac_config_files" | |
19547 | config_headers="$ac_config_headers" | |
19548 | config_commands="$ac_config_commands" | |
19549 | ||
19550 | _ACEOF | |
19551 | ||
19552 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19553 | ac_cs_usage="\ | |
19554 | \`$as_me' instantiates files and other configuration actions | |
19555 | from templates according to the current configuration. Unless the files | |
19556 | and actions are specified as TAGs, all are instantiated by default. | |
19557 | ||
19558 | Usage: $0 [OPTION]... [TAG]... | |
19559 | ||
19560 | -h, --help print this help, then exit | |
19561 | -V, --version print version number and configuration settings, then exit | |
19562 | --config print configuration, then exit | |
19563 | -q, --quiet, --silent | |
19564 | do not print progress messages | |
19565 | -d, --debug don't remove temporary files | |
19566 | --recheck update $as_me by reconfiguring in the same conditions | |
19567 | --file=FILE[:TEMPLATE] | |
19568 | instantiate the configuration file FILE | |
19569 | --header=FILE[:TEMPLATE] | |
19570 | instantiate the configuration header FILE | |
19571 | ||
19572 | Configuration files: | |
19573 | $config_files | |
19574 | ||
19575 | Configuration headers: | |
19576 | $config_headers | |
19577 | ||
19578 | Configuration commands: | |
19579 | $config_commands | |
19580 | ||
19581 | Report bugs to the package provider." | |
19582 | ||
19583 | _ACEOF | |
19584 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19585 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
19586 | ac_cs_version="\\ | |
19587 | charybdis config.status 3.6.0-dev | |
19588 | configured by $0, generated by GNU Autoconf 2.69, | |
19589 | with options \\"\$ac_cs_config\\" | |
19590 | ||
19591 | Copyright (C) 2012 Free Software Foundation, Inc. | |
19592 | This config.status script is free software; the Free Software Foundation | |
19593 | gives unlimited permission to copy, distribute and modify it." | |
19594 | ||
19595 | ac_pwd='$ac_pwd' | |
19596 | srcdir='$srcdir' | |
19597 | INSTALL='$INSTALL' | |
19598 | MKDIR_P='$MKDIR_P' | |
19599 | AWK='$AWK' | |
19600 | test -n "\$AWK" || AWK=awk | |
19601 | _ACEOF | |
19602 | ||
19603 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19604 | # The default lists apply if the user does not specify any file. | |
19605 | ac_need_defaults=: | |
19606 | while test $# != 0 | |
19607 | do | |
19608 | case $1 in | |
19609 | --*=?*) | |
19610 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
19611 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
19612 | ac_shift=: | |
19613 | ;; | |
19614 | --*=) | |
19615 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
19616 | ac_optarg= | |
19617 | ac_shift=: | |
19618 | ;; | |
19619 | *) | |
19620 | ac_option=$1 | |
19621 | ac_optarg=$2 | |
19622 | ac_shift=shift | |
19623 | ;; | |
19624 | esac | |
19625 | ||
19626 | case $ac_option in | |
19627 | # Handling of the options. | |
19628 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
19629 | ac_cs_recheck=: ;; | |
19630 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
19631 | $as_echo "$ac_cs_version"; exit ;; | |
19632 | --config | --confi | --conf | --con | --co | --c ) | |
19633 | $as_echo "$ac_cs_config"; exit ;; | |
19634 | --debug | --debu | --deb | --de | --d | -d ) | |
19635 | debug=: ;; | |
19636 | --file | --fil | --fi | --f ) | |
19637 | $ac_shift | |
19638 | case $ac_optarg in | |
19639 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
19640 | '') as_fn_error $? "missing file argument" ;; | |
19641 | esac | |
19642 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
19643 | ac_need_defaults=false;; | |
19644 | --header | --heade | --head | --hea ) | |
19645 | $ac_shift | |
19646 | case $ac_optarg in | |
19647 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
19648 | esac | |
19649 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
19650 | ac_need_defaults=false;; | |
19651 | --he | --h) | |
19652 | # Conflict between --help and --header | |
19653 | as_fn_error $? "ambiguous option: \`$1' | |
19654 | Try \`$0 --help' for more information.";; | |
19655 | --help | --hel | -h ) | |
19656 | $as_echo "$ac_cs_usage"; exit ;; | |
19657 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
19658 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
19659 | ac_cs_silent=: ;; | |
19660 | ||
19661 | # This is an error. | |
19662 | -*) as_fn_error $? "unrecognized option: \`$1' | |
19663 | Try \`$0 --help' for more information." ;; | |
19664 | ||
19665 | *) as_fn_append ac_config_targets " $1" | |
19666 | ac_need_defaults=false ;; | |
19667 | ||
19668 | esac | |
19669 | shift | |
19670 | done | |
19671 | ||
19672 | ac_configure_extra_args= | |
19673 | ||
19674 | if $ac_cs_silent; then | |
19675 | exec 6>/dev/null | |
19676 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
19677 | fi | |
19678 | ||
19679 | _ACEOF | |
19680 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19681 | if \$ac_cs_recheck; then | |
19682 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
19683 | shift | |
19684 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
19685 | CONFIG_SHELL='$SHELL' | |
19686 | export CONFIG_SHELL | |
19687 | exec "\$@" | |
19688 | fi | |
19689 | ||
19690 | _ACEOF | |
19691 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19692 | exec 5>>config.log | |
19693 | { | |
19694 | echo | |
19695 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
19696 | ## Running $as_me. ## | |
19697 | _ASBOX | |
19698 | $as_echo "$ac_log" | |
19699 | } >&5 | |
19700 | ||
19701 | _ACEOF | |
19702 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19703 | # | |
19704 | # INIT-COMMANDS | |
19705 | # | |
19706 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
19707 | ||
19708 | ||
19709 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
19710 | # if CDPATH is set. | |
19711 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
19712 | ||
19713 | sed_quote_subst='$sed_quote_subst' | |
19714 | double_quote_subst='$double_quote_subst' | |
19715 | delay_variable_subst='$delay_variable_subst' | |
19716 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
19717 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
19718 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
19719 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
19720 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
19721 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
19722 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
19723 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
19724 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
19725 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
19726 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
19727 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
19728 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
19729 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
19730 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
19731 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
19732 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
19733 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
19734 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
19735 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
19736 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
19737 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
19738 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
19739 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
19740 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
19741 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
19742 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
19743 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
19744 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
19745 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
19746 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
19747 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
19748 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
19749 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
19750 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
19751 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
19752 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
19753 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
19754 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
19755 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
19756 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
19757 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
19758 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
19759 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
19760 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
19761 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
19762 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
19763 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
19764 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
19765 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
19766 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
19767 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
19768 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
19769 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
19770 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
19771 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
19772 | 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"`' | |
19773 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
19774 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
19775 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
19776 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
19777 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
19778 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
19779 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
19780 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
19781 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
19782 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
19783 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
19784 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
19785 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
19786 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
19787 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
19788 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
19789 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
19790 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
19791 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
19792 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
19793 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
19794 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
19795 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
19796 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
19797 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
19798 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
19799 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
19800 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
19801 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
19802 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
19803 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
19804 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
19805 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
19806 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
19807 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
19808 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
19809 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
19810 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
19811 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
19812 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
19813 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
19814 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
19815 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
19816 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
19817 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
19818 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
19819 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
19820 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
19821 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
19822 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
19823 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
19824 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
19825 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
19826 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
19827 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
19828 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
19829 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
19830 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
19831 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
19832 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
19833 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
19834 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
19835 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
19836 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
19837 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
19838 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
19839 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
19840 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
19841 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
19842 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
19843 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
19844 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
19845 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
19846 | ||
19847 | LTCC='$LTCC' | |
19848 | LTCFLAGS='$LTCFLAGS' | |
19849 | compiler='$compiler_DEFAULT' | |
19850 | ||
19851 | # A function that is used when there is no print builtin or printf. | |
19852 | func_fallback_echo () | |
19853 | { | |
19854 | eval 'cat <<_LTECHO_EOF | |
19855 | \$1 | |
19856 | _LTECHO_EOF' | |
19857 | } | |
19858 | ||
19859 | # Quote evaled strings. | |
19860 | for var in SHELL \ | |
19861 | ECHO \ | |
19862 | PATH_SEPARATOR \ | |
19863 | SED \ | |
19864 | GREP \ | |
19865 | EGREP \ | |
19866 | FGREP \ | |
19867 | LD \ | |
19868 | NM \ | |
19869 | LN_S \ | |
19870 | lt_SP2NL \ | |
19871 | lt_NL2SP \ | |
19872 | reload_flag \ | |
19873 | OBJDUMP \ | |
19874 | deplibs_check_method \ | |
19875 | file_magic_cmd \ | |
19876 | file_magic_glob \ | |
19877 | want_nocaseglob \ | |
19878 | DLLTOOL \ | |
19879 | sharedlib_from_linklib_cmd \ | |
19880 | AR \ | |
19881 | AR_FLAGS \ | |
19882 | archiver_list_spec \ | |
19883 | STRIP \ | |
19884 | RANLIB \ | |
19885 | CC \ | |
19886 | CFLAGS \ | |
19887 | compiler \ | |
19888 | lt_cv_sys_global_symbol_pipe \ | |
19889 | lt_cv_sys_global_symbol_to_cdecl \ | |
19890 | lt_cv_sys_global_symbol_to_c_name_address \ | |
19891 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
19892 | nm_file_list_spec \ | |
19893 | lt_prog_compiler_no_builtin_flag \ | |
19894 | lt_prog_compiler_pic \ | |
19895 | lt_prog_compiler_wl \ | |
19896 | lt_prog_compiler_static \ | |
19897 | lt_cv_prog_compiler_c_o \ | |
19898 | need_locks \ | |
19899 | MANIFEST_TOOL \ | |
19900 | DSYMUTIL \ | |
19901 | NMEDIT \ | |
19902 | LIPO \ | |
19903 | OTOOL \ | |
19904 | OTOOL64 \ | |
19905 | shrext_cmds \ | |
19906 | export_dynamic_flag_spec \ | |
19907 | whole_archive_flag_spec \ | |
19908 | compiler_needs_object \ | |
19909 | with_gnu_ld \ | |
19910 | allow_undefined_flag \ | |
19911 | no_undefined_flag \ | |
19912 | hardcode_libdir_flag_spec \ | |
19913 | hardcode_libdir_separator \ | |
19914 | exclude_expsyms \ | |
19915 | include_expsyms \ | |
19916 | file_list_spec \ | |
19917 | variables_saved_for_relink \ | |
19918 | libname_spec \ | |
19919 | library_names_spec \ | |
19920 | soname_spec \ | |
19921 | install_override_mode \ | |
19922 | finish_eval \ | |
19923 | old_striplib \ | |
19924 | striplib; do | |
19925 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
19926 | *[\\\\\\\`\\"\\\$]*) | |
19927 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
19928 | ;; | |
19929 | *) | |
19930 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
19931 | ;; | |
19932 | esac | |
19933 | done | |
19934 | ||
19935 | # Double-quote double-evaled strings. | |
19936 | for var in reload_cmds \ | |
19937 | old_postinstall_cmds \ | |
19938 | old_postuninstall_cmds \ | |
19939 | old_archive_cmds \ | |
19940 | extract_expsyms_cmds \ | |
19941 | old_archive_from_new_cmds \ | |
19942 | old_archive_from_expsyms_cmds \ | |
19943 | archive_cmds \ | |
19944 | archive_expsym_cmds \ | |
19945 | module_cmds \ | |
19946 | module_expsym_cmds \ | |
19947 | export_symbols_cmds \ | |
19948 | prelink_cmds \ | |
19949 | postlink_cmds \ | |
19950 | postinstall_cmds \ | |
19951 | postuninstall_cmds \ | |
19952 | finish_cmds \ | |
19953 | sys_lib_search_path_spec \ | |
19954 | sys_lib_dlsearch_path_spec; do | |
19955 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
19956 | *[\\\\\\\`\\"\\\$]*) | |
19957 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
19958 | ;; | |
19959 | *) | |
19960 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
19961 | ;; | |
19962 | esac | |
19963 | done | |
19964 | ||
19965 | ac_aux_dir='$ac_aux_dir' | |
19966 | xsi_shell='$xsi_shell' | |
19967 | lt_shell_append='$lt_shell_append' | |
19968 | ||
19969 | # See if we are running on zsh, and set the options which allow our | |
19970 | # commands through without removal of \ escapes INIT. | |
19971 | if test -n "\${ZSH_VERSION+set}" ; then | |
19972 | setopt NO_GLOB_SUBST | |
19973 | fi | |
19974 | ||
19975 | ||
19976 | PACKAGE='$PACKAGE' | |
19977 | VERSION='$VERSION' | |
19978 | TIMESTAMP='$TIMESTAMP' | |
19979 | RM='$RM' | |
19980 | ofile='$ofile' | |
19981 | ||
19982 | ||
19983 | ||
19984 | ||
19985 | _ACEOF | |
19986 | ||
19987 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
19988 | ||
19989 | # Handling of arguments. | |
19990 | for ac_config_target in $ac_config_targets | |
19991 | do | |
19992 | case $ac_config_target in | |
19993 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
19994 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
19995 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
19996 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
19997 | "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;; | |
19998 | "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;; | |
19999 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; | |
20000 | "ircd/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;; | |
20001 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; | |
20002 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
20003 | "tools/genssl") CONFIG_FILES="$CONFIG_FILES tools/genssl" ;; | |
20004 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
20005 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
20006 | "tools/genssl_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl_chmod" ;; | |
20007 | ||
20008 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
20009 | esac | |
20010 | done | |
20011 | ||
20012 | ||
20013 | # If the user did not use the arguments to specify the items to instantiate, | |
20014 | # then the envvar interface is used. Set only those that are not. | |
20015 | # We use the long form for the default assignment because of an extremely | |
20016 | # bizarre bug on SunOS 4.1.3. | |
20017 | if $ac_need_defaults; then | |
20018 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
20019 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
20020 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
20021 | fi | |
20022 | ||
20023 | # Have a temporary directory for convenience. Make it in the build tree | |
20024 | # simply because there is no reason against having it here, and in addition, | |
20025 | # creating and moving files from /tmp can sometimes cause problems. | |
20026 | # Hook for its removal unless debugging. | |
20027 | # Note that there is a small window in which the directory will not be cleaned: | |
20028 | # after its creation but before its name has been assigned to `$tmp'. | |
20029 | $debug || | |
20030 | { | |
20031 | tmp= ac_tmp= | |
20032 | trap 'exit_status=$? | |
20033 | : "${ac_tmp:=$tmp}" | |
20034 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
20035 | ' 0 | |
20036 | trap 'as_fn_exit 1' 1 2 13 15 | |
20037 | } | |
20038 | # Create a (secure) tmp directory for tmp files. | |
20039 | ||
20040 | { | |
20041 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
20042 | test -d "$tmp" | |
20043 | } || | |
20044 | { | |
20045 | tmp=./conf$$-$RANDOM | |
20046 | (umask 077 && mkdir "$tmp") | |
20047 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
20048 | ac_tmp=$tmp | |
20049 | ||
20050 | # Set up the scripts for CONFIG_FILES section. | |
20051 | # No need to generate them if there are no CONFIG_FILES. | |
20052 | # This happens for instance with `./config.status config.h'. | |
20053 | if test -n "$CONFIG_FILES"; then | |
20054 | ||
20055 | ||
20056 | ac_cr=`echo X | tr X '\015'` | |
20057 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
20058 | # But we know of no other shell where ac_cr would be empty at this | |
20059 | # point, so we can use a bashism as a fallback. | |
20060 | if test "x$ac_cr" = x; then | |
20061 | eval ac_cr=\$\'\\r\' | |
20062 | fi | |
20063 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
20064 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
20065 | ac_cs_awk_cr='\\r' | |
20066 | else | |
20067 | ac_cs_awk_cr=$ac_cr | |
20068 | fi | |
20069 | ||
20070 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
20071 | _ACEOF | |
20072 | ||
20073 | ||
20074 | { | |
20075 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
20076 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
20077 | echo "_ACEOF" | |
20078 | } >conf$$subs.sh || | |
20079 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
20080 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
20081 | ac_delim='%!_!# ' | |
20082 | for ac_last_try in false false false false false :; do | |
20083 | . ./conf$$subs.sh || | |
20084 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
20085 | ||
20086 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
20087 | if test $ac_delim_n = $ac_delim_num; then | |
20088 | break | |
20089 | elif $ac_last_try; then | |
20090 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
20091 | else | |
20092 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
20093 | fi | |
20094 | done | |
20095 | rm -f conf$$subs.sh | |
20096 | ||
20097 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20098 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
20099 | _ACEOF | |
20100 | sed -n ' | |
20101 | h | |
20102 | s/^/S["/; s/!.*/"]=/ | |
20103 | p | |
20104 | g | |
20105 | s/^[^!]*!// | |
20106 | :repl | |
20107 | t repl | |
20108 | s/'"$ac_delim"'$// | |
20109 | t delim | |
20110 | :nl | |
20111 | h | |
20112 | s/\(.\{148\}\)..*/\1/ | |
20113 | t more1 | |
20114 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
20115 | p | |
20116 | n | |
20117 | b repl | |
20118 | :more1 | |
20119 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
20120 | p | |
20121 | g | |
20122 | s/.\{148\}// | |
20123 | t nl | |
20124 | :delim | |
20125 | h | |
20126 | s/\(.\{148\}\)..*/\1/ | |
20127 | t more2 | |
20128 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
20129 | p | |
20130 | b | |
20131 | :more2 | |
20132 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
20133 | p | |
20134 | g | |
20135 | s/.\{148\}// | |
20136 | t delim | |
20137 | ' <conf$$subs.awk | sed ' | |
20138 | /^[^""]/{ | |
20139 | N | |
20140 | s/\n// | |
20141 | } | |
20142 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
20143 | rm -f conf$$subs.awk | |
20144 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20145 | _ACAWK | |
20146 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
20147 | for (key in S) S_is_set[key] = 1 | |
20148 | FS = "\a" | |
20149 | ||
20150 | } | |
20151 | { | |
20152 | line = $ 0 | |
20153 | nfields = split(line, field, "@") | |
20154 | substed = 0 | |
20155 | len = length(field[1]) | |
20156 | for (i = 2; i < nfields; i++) { | |
20157 | key = field[i] | |
20158 | keylen = length(key) | |
20159 | if (S_is_set[key]) { | |
20160 | value = S[key] | |
20161 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
20162 | len += length(value) + length(field[++i]) | |
20163 | substed = 1 | |
20164 | } else | |
20165 | len += 1 + keylen | |
20166 | } | |
20167 | ||
20168 | print line | |
20169 | } | |
20170 | ||
20171 | _ACAWK | |
20172 | _ACEOF | |
20173 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20174 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
20175 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
20176 | else | |
20177 | cat | |
20178 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
20179 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
20180 | _ACEOF | |
20181 | ||
20182 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
20183 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
20184 | # trailing colons and then remove the whole line if VPATH becomes empty | |
20185 | # (actually we leave an empty line to preserve line numbers). | |
20186 | if test "x$srcdir" = x.; then | |
20187 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
20188 | h | |
20189 | s/// | |
20190 | s/^/:/ | |
20191 | s/[ ]*$/:/ | |
20192 | s/:\$(srcdir):/:/g | |
20193 | s/:\${srcdir}:/:/g | |
20194 | s/:@srcdir@:/:/g | |
20195 | s/^:*// | |
20196 | s/:*$// | |
20197 | x | |
20198 | s/\(=[ ]*\).*/\1/ | |
20199 | G | |
20200 | s/\n// | |
20201 | s/^[^=]*=[ ]*$// | |
20202 | }' | |
20203 | fi | |
20204 | ||
20205 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20206 | fi # test -n "$CONFIG_FILES" | |
20207 | ||
20208 | # Set up the scripts for CONFIG_HEADERS section. | |
20209 | # No need to generate them if there are no CONFIG_HEADERS. | |
20210 | # This happens for instance with `./config.status Makefile'. | |
20211 | if test -n "$CONFIG_HEADERS"; then | |
20212 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
20213 | BEGIN { | |
20214 | _ACEOF | |
20215 | ||
20216 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
20217 | # here-document in config.status, that substitutes the proper values into | |
20218 | # config.h.in to produce config.h. | |
20219 | ||
20220 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
20221 | # handling of long lines. | |
20222 | ac_delim='%!_!# ' | |
20223 | for ac_last_try in false false :; do | |
20224 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
20225 | if test -z "$ac_tt"; then | |
20226 | break | |
20227 | elif $ac_last_try; then | |
20228 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
20229 | else | |
20230 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
20231 | fi | |
20232 | done | |
20233 | ||
20234 | # For the awk script, D is an array of macro values keyed by name, | |
20235 | # likewise P contains macro parameters if any. Preserve backslash | |
20236 | # newline sequences. | |
20237 | ||
20238 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
20239 | sed -n ' | |
20240 | s/.\{148\}/&'"$ac_delim"'/g | |
20241 | t rset | |
20242 | :rset | |
20243 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
20244 | t def | |
20245 | d | |
20246 | :def | |
20247 | s/\\$// | |
20248 | t bsnl | |
20249 | s/["\\]/\\&/g | |
20250 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
20251 | D["\1"]=" \3"/p | |
20252 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
20253 | d | |
20254 | :bsnl | |
20255 | s/["\\]/\\&/g | |
20256 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
20257 | D["\1"]=" \3\\\\\\n"\\/p | |
20258 | t cont | |
20259 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
20260 | t cont | |
20261 | d | |
20262 | :cont | |
20263 | n | |
20264 | s/.\{148\}/&'"$ac_delim"'/g | |
20265 | t clear | |
20266 | :clear | |
20267 | s/\\$// | |
20268 | t bsnlc | |
20269 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
20270 | d | |
20271 | :bsnlc | |
20272 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
20273 | b cont | |
20274 | ' <confdefs.h | sed ' | |
20275 | s/'"$ac_delim"'/"\\\ | |
20276 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
20277 | ||
20278 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20279 | for (key in D) D_is_set[key] = 1 | |
20280 | FS = "\a" | |
20281 | } | |
20282 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
20283 | line = \$ 0 | |
20284 | split(line, arg, " ") | |
20285 | if (arg[1] == "#") { | |
20286 | defundef = arg[2] | |
20287 | mac1 = arg[3] | |
20288 | } else { | |
20289 | defundef = substr(arg[1], 2) | |
20290 | mac1 = arg[2] | |
20291 | } | |
20292 | split(mac1, mac2, "(") #) | |
20293 | macro = mac2[1] | |
20294 | prefix = substr(line, 1, index(line, defundef) - 1) | |
20295 | if (D_is_set[macro]) { | |
20296 | # Preserve the white space surrounding the "#". | |
20297 | print prefix "define", macro P[macro] D[macro] | |
20298 | next | |
20299 | } else { | |
20300 | # Replace #undef with comments. This is necessary, for example, | |
20301 | # in the case of _POSIX_SOURCE, which is predefined and required | |
20302 | # on some systems where configure will not decide to define it. | |
20303 | if (defundef == "undef") { | |
20304 | print "/*", prefix defundef, macro, "*/" | |
20305 | next | |
20306 | } | |
20307 | } | |
20308 | } | |
20309 | { print } | |
20310 | _ACAWK | |
20311 | _ACEOF | |
20312 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20313 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
20314 | fi # test -n "$CONFIG_HEADERS" | |
20315 | ||
20316 | ||
20317 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
20318 | shift | |
20319 | for ac_tag | |
20320 | do | |
20321 | case $ac_tag in | |
20322 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
20323 | esac | |
20324 | case $ac_mode$ac_tag in | |
20325 | :[FHL]*:*);; | |
20326 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
20327 | :[FH]-) ac_tag=-:-;; | |
20328 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
20329 | esac | |
20330 | ac_save_IFS=$IFS | |
20331 | IFS=: | |
20332 | set x $ac_tag | |
20333 | IFS=$ac_save_IFS | |
20334 | shift | |
20335 | ac_file=$1 | |
20336 | shift | |
20337 | ||
20338 | case $ac_mode in | |
20339 | :L) ac_source=$1;; | |
20340 | :[FH]) | |
20341 | ac_file_inputs= | |
20342 | for ac_f | |
20343 | do | |
20344 | case $ac_f in | |
20345 | -) ac_f="$ac_tmp/stdin";; | |
20346 | *) # Look for the file first in the build tree, then in the source tree | |
20347 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
20348 | # because $ac_f cannot contain `:'. | |
20349 | test -f "$ac_f" || | |
20350 | case $ac_f in | |
20351 | [\\/$]*) false;; | |
20352 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
20353 | esac || | |
20354 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
20355 | esac | |
20356 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
20357 | as_fn_append ac_file_inputs " '$ac_f'" | |
20358 | done | |
20359 | ||
20360 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
20361 | # use $as_me), people would be surprised to read: | |
20362 | # /* config.h. Generated by config.status. */ | |
20363 | configure_input='Generated from '` | |
20364 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
20365 | `' by configure.' | |
20366 | if test x"$ac_file" != x-; then | |
20367 | configure_input="$ac_file. $configure_input" | |
20368 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
20369 | $as_echo "$as_me: creating $ac_file" >&6;} | |
20370 | fi | |
20371 | # Neutralize special characters interpreted by sed in replacement strings. | |
20372 | case $configure_input in #( | |
20373 | *\&* | *\|* | *\\* ) | |
20374 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
20375 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
20376 | *) ac_sed_conf_input=$configure_input;; | |
20377 | esac | |
20378 | ||
20379 | case $ac_tag in | |
20380 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
20381 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
20382 | esac | |
20383 | ;; | |
20384 | esac | |
20385 | ||
20386 | ac_dir=`$as_dirname -- "$ac_file" || | |
20387 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20388 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
20389 | X"$ac_file" : 'X\(//\)$' \| \ | |
20390 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
20391 | $as_echo X"$ac_file" | | |
20392 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20393 | s//\1/ | |
20394 | q | |
20395 | } | |
20396 | /^X\(\/\/\)[^/].*/{ | |
20397 | s//\1/ | |
20398 | q | |
20399 | } | |
20400 | /^X\(\/\/\)$/{ | |
20401 | s//\1/ | |
20402 | q | |
20403 | } | |
20404 | /^X\(\/\).*/{ | |
20405 | s//\1/ | |
20406 | q | |
20407 | } | |
20408 | s/.*/./; q'` | |
20409 | as_dir="$ac_dir"; as_fn_mkdir_p | |
20410 | ac_builddir=. | |
20411 | ||
20412 | case "$ac_dir" in | |
20413 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20414 | *) | |
20415 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
20416 | # A ".." for each directory in $ac_dir_suffix. | |
20417 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
20418 | case $ac_top_builddir_sub in | |
20419 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20420 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
20421 | esac ;; | |
20422 | esac | |
20423 | ac_abs_top_builddir=$ac_pwd | |
20424 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
20425 | # for backward compatibility: | |
20426 | ac_top_builddir=$ac_top_build_prefix | |
20427 | ||
20428 | case $srcdir in | |
20429 | .) # We are building in place. | |
20430 | ac_srcdir=. | |
20431 | ac_top_srcdir=$ac_top_builddir_sub | |
20432 | ac_abs_top_srcdir=$ac_pwd ;; | |
20433 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
20434 | ac_srcdir=$srcdir$ac_dir_suffix; | |
20435 | ac_top_srcdir=$srcdir | |
20436 | ac_abs_top_srcdir=$srcdir ;; | |
20437 | *) # Relative name. | |
20438 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
20439 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
20440 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
20441 | esac | |
20442 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
20443 | ||
20444 | ||
20445 | case $ac_mode in | |
20446 | :F) | |
20447 | # | |
20448 | # CONFIG_FILE | |
20449 | # | |
20450 | ||
20451 | case $INSTALL in | |
20452 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
20453 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
20454 | esac | |
20455 | ac_MKDIR_P=$MKDIR_P | |
20456 | case $MKDIR_P in | |
20457 | [\\/$]* | ?:[\\/]* ) ;; | |
20458 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
20459 | esac | |
20460 | _ACEOF | |
20461 | ||
20462 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20463 | # If the template does not know about datarootdir, expand it. | |
20464 | # FIXME: This hack should be removed a few years after 2.60. | |
20465 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
20466 | ac_sed_dataroot=' | |
20467 | /datarootdir/ { | |
20468 | p | |
20469 | q | |
20470 | } | |
20471 | /@datadir@/p | |
20472 | /@docdir@/p | |
20473 | /@infodir@/p | |
20474 | /@localedir@/p | |
20475 | /@mandir@/p' | |
20476 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
20477 | *datarootdir*) ac_datarootdir_seen=yes;; | |
20478 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
20479 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
20480 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
20481 | _ACEOF | |
20482 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20483 | ac_datarootdir_hack=' | |
20484 | s&@datadir@&$datadir&g | |
20485 | s&@docdir@&$docdir&g | |
20486 | s&@infodir@&$infodir&g | |
20487 | s&@localedir@&$localedir&g | |
20488 | s&@mandir@&$mandir&g | |
20489 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
20490 | esac | |
20491 | _ACEOF | |
20492 | ||
20493 | # Neutralize VPATH when `$srcdir' = `.'. | |
20494 | # Shell code in configure.ac might set extrasub. | |
20495 | # FIXME: do we really want to maintain this feature? | |
20496 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
20497 | ac_sed_extra="$ac_vpsub | |
20498 | $extrasub | |
20499 | _ACEOF | |
20500 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
20501 | :t | |
20502 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
20503 | s|@configure_input@|$ac_sed_conf_input|;t t | |
20504 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
20505 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
20506 | s&@srcdir@&$ac_srcdir&;t t | |
20507 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
20508 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
20509 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
20510 | s&@builddir@&$ac_builddir&;t t | |
20511 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
20512 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
20513 | s&@INSTALL@&$ac_INSTALL&;t t | |
20514 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
20515 | $ac_datarootdir_hack | |
20516 | " | |
20517 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
20518 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
20519 | ||
20520 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
20521 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
20522 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
20523 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
20524 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
20525 | which seems to be undefined. Please make sure it is defined" >&5 | |
20526 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
20527 | which seems to be undefined. Please make sure it is defined" >&2;} | |
20528 | ||
20529 | rm -f "$ac_tmp/stdin" | |
20530 | case $ac_file in | |
20531 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
20532 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
20533 | esac \ | |
20534 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
20535 | ;; | |
20536 | :H) | |
20537 | # | |
20538 | # CONFIG_HEADER | |
20539 | # | |
20540 | if test x"$ac_file" != x-; then | |
20541 | { | |
20542 | $as_echo "/* $configure_input */" \ | |
20543 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
20544 | } >"$ac_tmp/config.h" \ | |
20545 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
20546 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
20547 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
20548 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
20549 | else | |
20550 | rm -f "$ac_file" | |
20551 | mv "$ac_tmp/config.h" "$ac_file" \ | |
20552 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
20553 | fi | |
20554 | else | |
20555 | $as_echo "/* $configure_input */" \ | |
20556 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
20557 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
20558 | fi | |
20559 | # Compute "$ac_file"'s index in $config_headers. | |
20560 | _am_arg="$ac_file" | |
20561 | _am_stamp_count=1 | |
20562 | for _am_header in $config_headers :; do | |
20563 | case $_am_header in | |
20564 | $_am_arg | $_am_arg:* ) | |
20565 | break ;; | |
20566 | * ) | |
20567 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
20568 | esac | |
20569 | done | |
20570 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
20571 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20572 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
20573 | X"$_am_arg" : 'X\(//\)$' \| \ | |
20574 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
20575 | $as_echo X"$_am_arg" | | |
20576 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20577 | s//\1/ | |
20578 | q | |
20579 | } | |
20580 | /^X\(\/\/\)[^/].*/{ | |
20581 | s//\1/ | |
20582 | q | |
20583 | } | |
20584 | /^X\(\/\/\)$/{ | |
20585 | s//\1/ | |
20586 | q | |
20587 | } | |
20588 | /^X\(\/\).*/{ | |
20589 | s//\1/ | |
20590 | q | |
20591 | } | |
20592 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
20593 | ;; | |
20594 | ||
20595 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
20596 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
20597 | ;; | |
20598 | esac | |
20599 | ||
20600 | ||
20601 | case $ac_file$ac_mode in | |
20602 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
20603 | # Older Autoconf quotes --file arguments for eval, but not when files | |
20604 | # are listed without --file. Let's play safe and only enable the eval | |
20605 | # if we detect the quoting. | |
20606 | case $CONFIG_FILES in | |
20607 | *\'*) eval set x "$CONFIG_FILES" ;; | |
20608 | *) set x $CONFIG_FILES ;; | |
20609 | esac | |
20610 | shift | |
20611 | for mf | |
20612 | do | |
20613 | # Strip MF so we end up with the name of the file. | |
20614 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
20615 | # Check whether this is an Automake generated Makefile or not. | |
20616 | # We used to match only the files named 'Makefile.in', but | |
20617 | # some people rename them; so instead we look at the file content. | |
20618 | # Grep'ing the first line is not enough: some people post-process | |
20619 | # each Makefile.in and add a new line on top of each file to say so. | |
20620 | # Grep'ing the whole file is not good either: AIX grep has a line | |
20621 | # limit of 2048, but all sed's we know have understand at least 4000. | |
20622 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
20623 | dirpart=`$as_dirname -- "$mf" || | |
20624 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20625 | X"$mf" : 'X\(//\)[^/]' \| \ | |
20626 | X"$mf" : 'X\(//\)$' \| \ | |
20627 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
20628 | $as_echo X"$mf" | | |
20629 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20630 | s//\1/ | |
20631 | q | |
20632 | } | |
20633 | /^X\(\/\/\)[^/].*/{ | |
20634 | s//\1/ | |
20635 | q | |
20636 | } | |
20637 | /^X\(\/\/\)$/{ | |
20638 | s//\1/ | |
20639 | q | |
20640 | } | |
20641 | /^X\(\/\).*/{ | |
20642 | s//\1/ | |
20643 | q | |
20644 | } | |
20645 | s/.*/./; q'` | |
20646 | else | |
20647 | continue | |
20648 | fi | |
20649 | # Extract the definition of DEPDIR, am__include, and am__quote | |
20650 | # from the Makefile without running 'make'. | |
20651 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
20652 | test -z "$DEPDIR" && continue | |
20653 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
20654 | test -z "$am__include" && continue | |
20655 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
20656 | # Find all dependency output files, they are included files with | |
20657 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
20658 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
20659 | # expansion. | |
20660 | for file in `sed -n " | |
20661 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
20662 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
20663 | # Make sure the directory exists. | |
20664 | test -f "$dirpart/$file" && continue | |
20665 | fdir=`$as_dirname -- "$file" || | |
20666 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
20667 | X"$file" : 'X\(//\)[^/]' \| \ | |
20668 | X"$file" : 'X\(//\)$' \| \ | |
20669 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
20670 | $as_echo X"$file" | | |
20671 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
20672 | s//\1/ | |
20673 | q | |
20674 | } | |
20675 | /^X\(\/\/\)[^/].*/{ | |
20676 | s//\1/ | |
20677 | q | |
20678 | } | |
20679 | /^X\(\/\/\)$/{ | |
20680 | s//\1/ | |
20681 | q | |
20682 | } | |
20683 | /^X\(\/\).*/{ | |
20684 | s//\1/ | |
20685 | q | |
20686 | } | |
20687 | s/.*/./; q'` | |
20688 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
20689 | # echo "creating $dirpart/$file" | |
20690 | echo '# dummy' > "$dirpart/$file" | |
20691 | done | |
20692 | done | |
20693 | } | |
20694 | ;; | |
20695 | "libtool":C) | |
20696 | ||
20697 | # See if we are running on zsh, and set the options which allow our | |
20698 | # commands through without removal of \ escapes. | |
20699 | if test -n "${ZSH_VERSION+set}" ; then | |
20700 | setopt NO_GLOB_SUBST | |
20701 | fi | |
20702 | ||
20703 | cfgfile="${ofile}T" | |
20704 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
20705 | $RM "$cfgfile" | |
20706 | ||
20707 | cat <<_LT_EOF >> "$cfgfile" | |
20708 | #! $SHELL | |
20709 | ||
20710 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
20711 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
20712 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20713 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
20714 | # | |
20715 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
20716 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
20717 | # Foundation, Inc. | |
20718 | # Written by Gordon Matzigkeit, 1996 | |
20719 | # | |
20720 | # This file is part of GNU Libtool. | |
20721 | # | |
20722 | # GNU Libtool is free software; you can redistribute it and/or | |
20723 | # modify it under the terms of the GNU General Public License as | |
20724 | # published by the Free Software Foundation; either version 2 of | |
20725 | # the License, or (at your option) any later version. | |
20726 | # | |
20727 | # As a special exception to the GNU General Public License, | |
20728 | # if you distribute this file as part of a program or library that | |
20729 | # is built using GNU Libtool, you may include this file under the | |
20730 | # same distribution terms that you use for the rest of that program. | |
20731 | # | |
20732 | # GNU Libtool is distributed in the hope that it will be useful, | |
20733 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
20734 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20735 | # GNU General Public License for more details. | |
20736 | # | |
20737 | # You should have received a copy of the GNU General Public License | |
20738 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
20739 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
20740 | # obtained by writing to the Free Software Foundation, Inc., | |
20741 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
20742 | ||
20743 | ||
20744 | # The names of the tagged configurations supported by this script. | |
20745 | available_tags="" | |
20746 | ||
20747 | # ### BEGIN LIBTOOL CONFIG | |
20748 | ||
20749 | # Which release of libtool.m4 was used? | |
20750 | macro_version=$macro_version | |
20751 | macro_revision=$macro_revision | |
20752 | ||
20753 | # Whether or not to build static libraries. | |
20754 | build_old_libs=$enable_static | |
20755 | ||
20756 | # Whether or not to build shared libraries. | |
20757 | build_libtool_libs=$enable_shared | |
20758 | ||
20759 | # What type of objects to build. | |
20760 | pic_mode=$pic_mode | |
20761 | ||
20762 | # Whether or not to optimize for fast installation. | |
20763 | fast_install=$enable_fast_install | |
20764 | ||
20765 | # Shell to use when invoking shell scripts. | |
20766 | SHELL=$lt_SHELL | |
20767 | ||
20768 | # An echo program that protects backslashes. | |
20769 | ECHO=$lt_ECHO | |
20770 | ||
20771 | # The PATH separator for the build system. | |
20772 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
20773 | ||
20774 | # The host system. | |
20775 | host_alias=$host_alias | |
20776 | host=$host | |
20777 | host_os=$host_os | |
20778 | ||
20779 | # The build system. | |
20780 | build_alias=$build_alias | |
20781 | build=$build | |
20782 | build_os=$build_os | |
20783 | ||
20784 | # A sed program that does not truncate output. | |
20785 | SED=$lt_SED | |
20786 | ||
20787 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
20788 | Xsed="\$SED -e 1s/^X//" | |
20789 | ||
20790 | # A grep program that handles long lines. | |
20791 | GREP=$lt_GREP | |
20792 | ||
20793 | # An ERE matcher. | |
20794 | EGREP=$lt_EGREP | |
20795 | ||
20796 | # A literal string matcher. | |
20797 | FGREP=$lt_FGREP | |
20798 | ||
20799 | # A BSD- or MS-compatible name lister. | |
20800 | NM=$lt_NM | |
20801 | ||
20802 | # Whether we need soft or hard links. | |
20803 | LN_S=$lt_LN_S | |
20804 | ||
20805 | # What is the maximum length of a command? | |
20806 | max_cmd_len=$max_cmd_len | |
20807 | ||
20808 | # Object file suffix (normally "o"). | |
20809 | objext=$ac_objext | |
20810 | ||
20811 | # Executable file suffix (normally ""). | |
20812 | exeext=$exeext | |
20813 | ||
20814 | # whether the shell understands "unset". | |
20815 | lt_unset=$lt_unset | |
20816 | ||
20817 | # turn spaces into newlines. | |
20818 | SP2NL=$lt_lt_SP2NL | |
20819 | ||
20820 | # turn newlines into spaces. | |
20821 | NL2SP=$lt_lt_NL2SP | |
20822 | ||
20823 | # convert \$build file names to \$host format. | |
20824 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
20825 | ||
20826 | # convert \$build files to toolchain format. | |
20827 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
20828 | ||
20829 | # An object symbol dumper. | |
20830 | OBJDUMP=$lt_OBJDUMP | |
20831 | ||
20832 | # Method to check whether dependent libraries are shared objects. | |
20833 | deplibs_check_method=$lt_deplibs_check_method | |
20834 | ||
20835 | # Command to use when deplibs_check_method = "file_magic". | |
20836 | file_magic_cmd=$lt_file_magic_cmd | |
20837 | ||
20838 | # How to find potential files when deplibs_check_method = "file_magic". | |
20839 | file_magic_glob=$lt_file_magic_glob | |
20840 | ||
20841 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
20842 | want_nocaseglob=$lt_want_nocaseglob | |
20843 | ||
20844 | # DLL creation program. | |
20845 | DLLTOOL=$lt_DLLTOOL | |
20846 | ||
20847 | # Command to associate shared and link libraries. | |
20848 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
20849 | ||
20850 | # The archiver. | |
20851 | AR=$lt_AR | |
20852 | ||
20853 | # Flags to create an archive. | |
20854 | AR_FLAGS=$lt_AR_FLAGS | |
20855 | ||
20856 | # How to feed a file listing to the archiver. | |
20857 | archiver_list_spec=$lt_archiver_list_spec | |
20858 | ||
20859 | # A symbol stripping program. | |
20860 | STRIP=$lt_STRIP | |
20861 | ||
20862 | # Commands used to install an old-style archive. | |
20863 | RANLIB=$lt_RANLIB | |
20864 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
20865 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
20866 | ||
20867 | # Whether to use a lock for old archive extraction. | |
20868 | lock_old_archive_extraction=$lock_old_archive_extraction | |
20869 | ||
20870 | # A C compiler. | |
20871 | LTCC=$lt_CC | |
20872 | ||
20873 | # LTCC compiler flags. | |
20874 | LTCFLAGS=$lt_CFLAGS | |
20875 | ||
20876 | # Take the output of nm and produce a listing of raw symbols and C names. | |
20877 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
20878 | ||
20879 | # Transform the output of nm in a proper C declaration. | |
20880 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
20881 | ||
20882 | # Transform the output of nm in a C name address pair. | |
20883 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
20884 | ||
20885 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
20886 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
20887 | ||
20888 | # Specify filename containing input files for \$NM. | |
20889 | nm_file_list_spec=$lt_nm_file_list_spec | |
20890 | ||
20891 | # The root where to search for dependent libraries,and in which our libraries should be installed. | |
20892 | lt_sysroot=$lt_sysroot | |
20893 | ||
20894 | # The name of the directory that contains temporary libtool files. | |
20895 | objdir=$objdir | |
20896 | ||
20897 | # Used to examine libraries when file_magic_cmd begins with "file". | |
20898 | MAGIC_CMD=$MAGIC_CMD | |
20899 | ||
20900 | # Must we lock files when doing compilation? | |
20901 | need_locks=$lt_need_locks | |
20902 | ||
20903 | # Manifest tool. | |
20904 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
20905 | ||
20906 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
20907 | DSYMUTIL=$lt_DSYMUTIL | |
20908 | ||
20909 | # Tool to change global to local symbols on Mac OS X. | |
20910 | NMEDIT=$lt_NMEDIT | |
20911 | ||
20912 | # Tool to manipulate fat objects and archives on Mac OS X. | |
20913 | LIPO=$lt_LIPO | |
20914 | ||
20915 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
20916 | OTOOL=$lt_OTOOL | |
20917 | ||
20918 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
20919 | OTOOL64=$lt_OTOOL64 | |
20920 | ||
20921 | # Old archive suffix (normally "a"). | |
20922 | libext=$libext | |
20923 | ||
20924 | # Shared library suffix (normally ".so"). | |
20925 | shrext_cmds=$lt_shrext_cmds | |
20926 | ||
20927 | # The commands to extract the exported symbol list from a shared archive. | |
20928 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
20929 | ||
20930 | # Variables whose values should be saved in libtool wrapper scripts and | |
20931 | # restored at link time. | |
20932 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
20933 | ||
20934 | # Do we need the "lib" prefix for modules? | |
20935 | need_lib_prefix=$need_lib_prefix | |
20936 | ||
20937 | # Do we need a version for libraries? | |
20938 | need_version=$need_version | |
20939 | ||
20940 | # Library versioning type. | |
20941 | version_type=$version_type | |
20942 | ||
20943 | # Shared library runtime path variable. | |
20944 | runpath_var=$runpath_var | |
20945 | ||
20946 | # Shared library path variable. | |
20947 | shlibpath_var=$shlibpath_var | |
20948 | ||
20949 | # Is shlibpath searched before the hard-coded library search path? | |
20950 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
20951 | ||
20952 | # Format of library name prefix. | |
20953 | libname_spec=$lt_libname_spec | |
20954 | ||
20955 | # List of archive names. First name is the real one, the rest are links. | |
20956 | # The last name is the one that the linker finds with -lNAME | |
20957 | library_names_spec=$lt_library_names_spec | |
20958 | ||
20959 | # The coded name of the library, if different from the real name. | |
20960 | soname_spec=$lt_soname_spec | |
20961 | ||
20962 | # Permission mode override for installation of shared libraries. | |
20963 | install_override_mode=$lt_install_override_mode | |
20964 | ||
20965 | # Command to use after installation of a shared archive. | |
20966 | postinstall_cmds=$lt_postinstall_cmds | |
20967 | ||
20968 | # Command to use after uninstallation of a shared archive. | |
20969 | postuninstall_cmds=$lt_postuninstall_cmds | |
20970 | ||
20971 | # Commands used to finish a libtool library installation in a directory. | |
20972 | finish_cmds=$lt_finish_cmds | |
20973 | ||
20974 | # As "finish_cmds", except a single script fragment to be evaled but | |
20975 | # not shown. | |
20976 | finish_eval=$lt_finish_eval | |
20977 | ||
20978 | # Whether we should hardcode library paths into libraries. | |
20979 | hardcode_into_libs=$hardcode_into_libs | |
20980 | ||
20981 | # Compile-time system search path for libraries. | |
20982 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
20983 | ||
20984 | # Run-time system search path for libraries. | |
20985 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
20986 | ||
20987 | # Whether dlopen is supported. | |
20988 | dlopen_support=$enable_dlopen | |
20989 | ||
20990 | # Whether dlopen of programs is supported. | |
20991 | dlopen_self=$enable_dlopen_self | |
20992 | ||
20993 | # Whether dlopen of statically linked programs is supported. | |
20994 | dlopen_self_static=$enable_dlopen_self_static | |
20995 | ||
20996 | # Commands to strip libraries. | |
20997 | old_striplib=$lt_old_striplib | |
20998 | striplib=$lt_striplib | |
20999 | ||
21000 | ||
21001 | # The linker used to build libraries. | |
21002 | LD=$lt_LD | |
21003 | ||
21004 | # How to create reloadable object files. | |
21005 | reload_flag=$lt_reload_flag | |
21006 | reload_cmds=$lt_reload_cmds | |
21007 | ||
21008 | # Commands used to build an old-style archive. | |
21009 | old_archive_cmds=$lt_old_archive_cmds | |
21010 | ||
21011 | # A language specific compiler. | |
21012 | CC=$lt_compiler | |
21013 | ||
21014 | # Is the compiler the GNU compiler? | |
21015 | with_gcc=$GCC | |
21016 | ||
21017 | # Compiler flag to turn off builtin functions. | |
21018 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
21019 | ||
21020 | # Additional compiler flags for building library objects. | |
21021 | pic_flag=$lt_lt_prog_compiler_pic | |
21022 | ||
21023 | # How to pass a linker flag through the compiler. | |
21024 | wl=$lt_lt_prog_compiler_wl | |
21025 | ||
21026 | # Compiler flag to prevent dynamic linking. | |
21027 | link_static_flag=$lt_lt_prog_compiler_static | |
21028 | ||
21029 | # Does compiler simultaneously support -c and -o options? | |
21030 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
21031 | ||
21032 | # Whether or not to add -lc for building shared libraries. | |
21033 | build_libtool_need_lc=$archive_cmds_need_lc | |
21034 | ||
21035 | # Whether or not to disallow shared libs when runtime libs are static. | |
21036 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
21037 | ||
21038 | # Compiler flag to allow reflexive dlopens. | |
21039 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
21040 | ||
21041 | # Compiler flag to generate shared objects directly from archives. | |
21042 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
21043 | ||
21044 | # Whether the compiler copes with passing no objects directly. | |
21045 | compiler_needs_object=$lt_compiler_needs_object | |
21046 | ||
21047 | # Create an old-style archive from a shared archive. | |
21048 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
21049 | ||
21050 | # Create a temporary old-style archive to link instead of a shared archive. | |
21051 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
21052 | ||
21053 | # Commands used to build a shared archive. | |
21054 | archive_cmds=$lt_archive_cmds | |
21055 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
21056 | ||
21057 | # Commands used to build a loadable module if different from building | |
21058 | # a shared archive. | |
21059 | module_cmds=$lt_module_cmds | |
21060 | module_expsym_cmds=$lt_module_expsym_cmds | |
21061 | ||
21062 | # Whether we are building with GNU ld or not. | |
21063 | with_gnu_ld=$lt_with_gnu_ld | |
21064 | ||
21065 | # Flag that allows shared libraries with undefined symbols to be built. | |
21066 | allow_undefined_flag=$lt_allow_undefined_flag | |
21067 | ||
21068 | # Flag that enforces no undefined symbols. | |
21069 | no_undefined_flag=$lt_no_undefined_flag | |
21070 | ||
21071 | # Flag to hardcode \$libdir into a binary during linking. | |
21072 | # This must work even if \$libdir does not exist | |
21073 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
21074 | ||
21075 | # Whether we need a single "-rpath" flag with a separated argument. | |
21076 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
21077 | ||
21078 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
21079 | # DIR into the resulting binary. | |
21080 | hardcode_direct=$hardcode_direct | |
21081 | ||
21082 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
21083 | # DIR into the resulting binary and the resulting library dependency is | |
21084 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
21085 | # library is relocated. | |
21086 | hardcode_direct_absolute=$hardcode_direct_absolute | |
21087 | ||
21088 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
21089 | # into the resulting binary. | |
21090 | hardcode_minus_L=$hardcode_minus_L | |
21091 | ||
21092 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
21093 | # into the resulting binary. | |
21094 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
21095 | ||
21096 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
21097 | # into the library and all subsequent libraries and executables linked | |
21098 | # against it. | |
21099 | hardcode_automatic=$hardcode_automatic | |
21100 | ||
21101 | # Set to yes if linker adds runtime paths of dependent libraries | |
21102 | # to runtime path list. | |
21103 | inherit_rpath=$inherit_rpath | |
21104 | ||
21105 | # Whether libtool must link a program against all its dependency libraries. | |
21106 | link_all_deplibs=$link_all_deplibs | |
21107 | ||
21108 | # Set to "yes" if exported symbols are required. | |
21109 | always_export_symbols=$always_export_symbols | |
21110 | ||
21111 | # The commands to list exported symbols. | |
21112 | export_symbols_cmds=$lt_export_symbols_cmds | |
21113 | ||
21114 | # Symbols that should not be listed in the preloaded symbols. | |
21115 | exclude_expsyms=$lt_exclude_expsyms | |
21116 | ||
21117 | # Symbols that must always be exported. | |
21118 | include_expsyms=$lt_include_expsyms | |
21119 | ||
21120 | # Commands necessary for linking programs (against libraries) with templates. | |
21121 | prelink_cmds=$lt_prelink_cmds | |
21122 | ||
21123 | # Commands necessary for finishing linking programs. | |
21124 | postlink_cmds=$lt_postlink_cmds | |
21125 | ||
21126 | # Specify filename containing input files. | |
21127 | file_list_spec=$lt_file_list_spec | |
21128 | ||
21129 | # How to hardcode a shared library path into an executable. | |
21130 | hardcode_action=$hardcode_action | |
21131 | ||
21132 | # ### END LIBTOOL CONFIG | |
21133 | ||
21134 | _LT_EOF | |
21135 | ||
21136 | case $host_os in | |
21137 | aix3*) | |
21138 | cat <<\_LT_EOF >> "$cfgfile" | |
21139 | # AIX sometimes has problems with the GCC collect2 program. For some | |
21140 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
21141 | # vanish in a puff of smoke. | |
21142 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
21143 | COLLECT_NAMES= | |
21144 | export COLLECT_NAMES | |
21145 | fi | |
21146 | _LT_EOF | |
21147 | ;; | |
21148 | esac | |
21149 | ||
21150 | ||
21151 | ltmain="$ac_aux_dir/ltmain.sh" | |
21152 | ||
21153 | ||
21154 | # We use sed instead of cat because bash on DJGPP gets confused if | |
21155 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
21156 | # text mode, it properly converts lines to CR/LF. This bash problem | |
21157 | # is reportedly fixed, but why not run on old versions too? | |
21158 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
21159 | || (rm -f "$cfgfile"; exit 1) | |
21160 | ||
21161 | if test x"$xsi_shell" = xyes; then | |
21162 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
21163 | func_dirname ()\ | |
21164 | {\ | |
21165 | \ case ${1} in\ | |
21166 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
21167 | \ * ) func_dirname_result="${3}" ;;\ | |
21168 | \ esac\ | |
21169 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
21170 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21171 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21172 | test 0 -eq $? || _lt_function_replace_fail=: | |
21173 | ||
21174 | ||
21175 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
21176 | func_basename ()\ | |
21177 | {\ | |
21178 | \ func_basename_result="${1##*/}"\ | |
21179 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
21180 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21181 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21182 | test 0 -eq $? || _lt_function_replace_fail=: | |
21183 | ||
21184 | ||
21185 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
21186 | func_dirname_and_basename ()\ | |
21187 | {\ | |
21188 | \ case ${1} in\ | |
21189 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
21190 | \ * ) func_dirname_result="${3}" ;;\ | |
21191 | \ esac\ | |
21192 | \ func_basename_result="${1##*/}"\ | |
21193 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
21194 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21195 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21196 | test 0 -eq $? || _lt_function_replace_fail=: | |
21197 | ||
21198 | ||
21199 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
21200 | func_stripname ()\ | |
21201 | {\ | |
21202 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
21203 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
21204 | \ func_stripname_result=${3}\ | |
21205 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
21206 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
21207 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
21208 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21209 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21210 | test 0 -eq $? || _lt_function_replace_fail=: | |
21211 | ||
21212 | ||
21213 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
21214 | func_split_long_opt ()\ | |
21215 | {\ | |
21216 | \ func_split_long_opt_name=${1%%=*}\ | |
21217 | \ func_split_long_opt_arg=${1#*=}\ | |
21218 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
21219 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21220 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21221 | test 0 -eq $? || _lt_function_replace_fail=: | |
21222 | ||
21223 | ||
21224 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
21225 | func_split_short_opt ()\ | |
21226 | {\ | |
21227 | \ func_split_short_opt_arg=${1#??}\ | |
21228 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
21229 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
21230 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21231 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21232 | test 0 -eq $? || _lt_function_replace_fail=: | |
21233 | ||
21234 | ||
21235 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
21236 | func_lo2o ()\ | |
21237 | {\ | |
21238 | \ case ${1} in\ | |
21239 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
21240 | \ *) func_lo2o_result=${1} ;;\ | |
21241 | \ esac\ | |
21242 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
21243 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21244 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21245 | test 0 -eq $? || _lt_function_replace_fail=: | |
21246 | ||
21247 | ||
21248 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
21249 | func_xform ()\ | |
21250 | {\ | |
21251 | func_xform_result=${1%.*}.lo\ | |
21252 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
21253 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21254 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21255 | test 0 -eq $? || _lt_function_replace_fail=: | |
21256 | ||
21257 | ||
21258 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
21259 | func_arith ()\ | |
21260 | {\ | |
21261 | func_arith_result=$(( $* ))\ | |
21262 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
21263 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21264 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21265 | test 0 -eq $? || _lt_function_replace_fail=: | |
21266 | ||
21267 | ||
21268 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
21269 | func_len ()\ | |
21270 | {\ | |
21271 | func_len_result=${#1}\ | |
21272 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
21273 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21274 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21275 | test 0 -eq $? || _lt_function_replace_fail=: | |
21276 | ||
21277 | fi | |
21278 | ||
21279 | if test x"$lt_shell_append" = xyes; then | |
21280 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
21281 | func_append ()\ | |
21282 | {\ | |
21283 | eval "${1}+=\\${2}"\ | |
21284 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
21285 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21286 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21287 | test 0 -eq $? || _lt_function_replace_fail=: | |
21288 | ||
21289 | ||
21290 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
21291 | func_append_quoted ()\ | |
21292 | {\ | |
21293 | \ func_quote_for_eval "${2}"\ | |
21294 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
21295 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
21296 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21297 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21298 | test 0 -eq $? || _lt_function_replace_fail=: | |
21299 | ||
21300 | ||
21301 | # Save a `func_append' function call where possible by direct use of '+=' | |
21302 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
21303 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21304 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21305 | test 0 -eq $? || _lt_function_replace_fail=: | |
21306 | else | |
21307 | # Save a `func_append' function call even when '+=' is not available | |
21308 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
21309 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
21310 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
21311 | test 0 -eq $? || _lt_function_replace_fail=: | |
21312 | fi | |
21313 | ||
21314 | if test x"$_lt_function_replace_fail" = x":"; then | |
21315 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
21316 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
21317 | fi | |
21318 | ||
21319 | ||
21320 | mv -f "$cfgfile" "$ofile" || | |
21321 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
21322 | chmod +x "$ofile" | |
21323 | ||
21324 | ;; | |
21325 | "tools/genssl_chmod":C) chmod 755 tools/genssl ;; | |
21326 | ||
21327 | esac | |
21328 | done # for ac_tag | |
21329 | ||
21330 | ||
21331 | as_fn_exit 0 | |
21332 | _ACEOF | |
21333 | ac_clean_files=$ac_clean_files_save | |
21334 | ||
21335 | test $ac_write_fail = 0 || | |
21336 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
21337 | ||
21338 | ||
21339 | # configure is writing to config.log, and then calls config.status. | |
21340 | # config.status does its own redirection, appending to config.log. | |
21341 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
21342 | # by configure, so config.status won't be able to write to it; its | |
21343 | # output is simply discarded. So we exec the FD to /dev/null, | |
21344 | # effectively closing config.log, so it can be properly (re)opened and | |
21345 | # appended to by config.status. When coming back to configure, we | |
21346 | # need to make the FD available again. | |
21347 | if test "$no_create" != yes; then | |
21348 | ac_cs_success=: | |
21349 | ac_config_status_args= | |
21350 | test "$silent" = yes && | |
21351 | ac_config_status_args="$ac_config_status_args --quiet" | |
21352 | exec 5>/dev/null | |
21353 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
21354 | exec 5>>config.log | |
21355 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
21356 | # would make configure fail if this is the last instruction. | |
21357 | $ac_cs_success || as_fn_exit 1 | |
21358 | fi | |
21359 | ||
21360 | # | |
21361 | # CONFIG_SUBDIRS section. | |
21362 | # | |
21363 | if test "$no_recursion" != yes; then | |
21364 | ||
21365 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments | |
21366 | # so they do not pile up. | |
21367 | ac_sub_configure_args= | |
21368 | ac_prev= | |
21369 | eval "set x $ac_configure_args" | |
21370 | shift | |
21371 | for ac_arg | |
21372 | do | |
21373 | if test -n "$ac_prev"; then | |
21374 | ac_prev= | |
21375 | continue | |
21376 | fi | |
21377 | case $ac_arg in | |
21378 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
21379 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
21380 | ac_prev=cache_file ;; | |
21381 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
21382 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
21383 | | --c=*) | |
21384 | ;; | |
21385 | --config-cache | -C) | |
21386 | ;; | |
21387 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
21388 | ac_prev=srcdir ;; | |
21389 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
21390 | ;; | |
21391 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
21392 | ac_prev=prefix ;; | |
21393 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
21394 | ;; | |
21395 | --disable-option-checking) | |
21396 | ;; | |
21397 | *) | |
21398 | case $ac_arg in | |
21399 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
21400 | esac | |
21401 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; | |
21402 | esac | |
21403 | done | |
21404 | ||
21405 | # Always prepend --prefix to ensure using the same prefix | |
21406 | # in subdir configurations. | |
21407 | ac_arg="--prefix=$prefix" | |
21408 | case $ac_arg in | |
21409 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
21410 | esac | |
21411 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
21412 | ||
21413 | # Pass --silent | |
21414 | if test "$silent" = yes; then | |
21415 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
21416 | fi | |
21417 | ||
21418 | # Always prepend --disable-option-checking to silence warnings, since | |
21419 | # different subdirs can have different --enable and --with options. | |
21420 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
21421 | ||
21422 | ac_popdir=`pwd` | |
21423 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
21424 | ||
21425 | # Do not complain, so a configure script can configure whichever | |
21426 | # parts of a large source tree are present. | |
21427 | test -d "$srcdir/$ac_dir" || continue | |
21428 | ||
21429 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
21430 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
21431 | $as_echo "$ac_msg" >&6 | |
21432 | as_dir="$ac_dir"; as_fn_mkdir_p | |
21433 | ac_builddir=. | |
21434 | ||
21435 | case "$ac_dir" in | |
21436 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
21437 | *) | |
21438 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
21439 | # A ".." for each directory in $ac_dir_suffix. | |
21440 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
21441 | case $ac_top_builddir_sub in | |
21442 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
21443 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
21444 | esac ;; | |
21445 | esac | |
21446 | ac_abs_top_builddir=$ac_pwd | |
21447 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
21448 | # for backward compatibility: | |
21449 | ac_top_builddir=$ac_top_build_prefix | |
21450 | ||
21451 | case $srcdir in | |
21452 | .) # We are building in place. | |
21453 | ac_srcdir=. | |
21454 | ac_top_srcdir=$ac_top_builddir_sub | |
21455 | ac_abs_top_srcdir=$ac_pwd ;; | |
21456 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
21457 | ac_srcdir=$srcdir$ac_dir_suffix; | |
21458 | ac_top_srcdir=$srcdir | |
21459 | ac_abs_top_srcdir=$srcdir ;; | |
21460 | *) # Relative name. | |
21461 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
21462 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
21463 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
21464 | esac | |
21465 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
21466 | ||
21467 | ||
21468 | cd "$ac_dir" | |
21469 | ||
21470 | # Check for guested configure; otherwise get Cygnus style configure. | |
21471 | if test -f "$ac_srcdir/configure.gnu"; then | |
21472 | ac_sub_configure=$ac_srcdir/configure.gnu | |
21473 | elif test -f "$ac_srcdir/configure"; then | |
21474 | ac_sub_configure=$ac_srcdir/configure | |
21475 | elif test -f "$ac_srcdir/configure.in"; then | |
21476 | # This should be Cygnus configure. | |
21477 | ac_sub_configure=$ac_aux_dir/configure | |
21478 | else | |
21479 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 | |
21480 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
21481 | ac_sub_configure= | |
21482 | fi | |
21483 | ||
21484 | # The recursion is here. | |
21485 | if test -n "$ac_sub_configure"; then | |
21486 | # Make the cache file name correct relative to the subdirectory. | |
21487 | case $cache_file in | |
21488 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
21489 | *) # Relative name. | |
21490 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
21491 | esac | |
21492 | ||
21493 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
21494 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
21495 | # The eval makes quoting arguments work. | |
21496 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
21497 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
21498 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 | |
21499 | fi | |
21500 | ||
21501 | cd "$ac_popdir" | |
21502 | done | |
21503 | fi | |
21504 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
21505 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
21506 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
21507 | fi | |
21508 | ||
21509 | ||
21510 | if test "$cf_openssl_version_ok" = yes; then | |
21511 | openssl="yes" | |
21512 | else | |
21513 | openssl="no" | |
21514 | fi | |
21515 | ||
21516 | echo " | |
21517 | Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}: | |
21518 | Install directory : $prefix | |
21519 | ||
21520 | Ziplinks : $zlib | |
21521 | OpenSSL : $openssl | |
21522 | Socket Engine : $SELECT_TYPE | |
21523 | Small network : $small_net | |
21524 | Block allocator : $balloc | |
21525 | ||
21526 | Nickname length : $NICKLEN | |
21527 | Topic length : $TOPICLEN | |
21528 | ||
21529 | Use (g)make to compile $BRANDING_NAME, then (g)make install to install it. | |
21530 | " |