]>
Commit | Line | Data |
---|---|---|
212380e3 AC |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
c52df125 | 3 | # Generated by GNU Autoconf 2.69 for charybdis 3.6.0-dev. |
212380e3 | 4 | # |
6fb6bd15 | 5 | # |
2eff3833 | 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
6fb6bd15 | 7 | # |
7083c021 | 8 | # |
212380e3 AC |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
7083c021 AC |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
212380e3 | 14 | |
631ef239 AC |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
7083c021 | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
212380e3 AC |
18 | emulate sh |
19 | NULLCMD=: | |
7083c021 | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
212380e3 AC |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 AC |
23 | setopt NO_GLOB_SUBST |
24 | else | |
7083c021 AC |
25 | case `(set -o) 2>/dev/null` in #( |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
631ef239 | 30 | esac |
631ef239 AC |
31 | fi |
32 | ||
33 | ||
7083c021 AC |
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' | |
631ef239 | 54 | else |
7083c021 AC |
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' | |
631ef239 | 67 | fi |
7083c021 AC |
68 | export as_echo_body |
69 | as_echo='sh -c $as_echo_body as_echo' | |
212380e3 | 70 | fi |
212380e3 | 71 | |
7083c021 AC |
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 | } | |
212380e3 AC |
79 | fi |
80 | ||
81 | ||
631ef239 AC |
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.) | |
631ef239 AC |
87 | IFS=" "" $as_nl" |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
b6d0720c | 90 | as_myself= |
7083c021 | 91 | case $0 in #(( |
631ef239 AC |
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=. | |
7083c021 AC |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
99 | done | |
631ef239 AC |
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 | |
7083c021 AC |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
111 | exit 1 | |
631ef239 AC |
112 | fi |
113 | ||
7083c021 AC |
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 || : | |
631ef239 | 121 | done |
212380e3 AC |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
7083c021 AC |
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 | ||
2eff3833 JT |
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;} | |
7083c021 AC |
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 | |
2eff3833 JT |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
7083c021 AC |
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 | |
eec2776c | 199 | test \$(( 1 + 1 )) = 2 || exit 1 |
c52df125 AC |
200 | |
201 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
202 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | PATH=/empty FPATH=/empty; export PATH FPATH | |
206 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
eec2776c | 207 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
7083c021 AC |
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 | |
212380e3 | 219 | do |
7083c021 AC |
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 : | |
2eff3833 JT |
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 | |
7083c021 AC |
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." | |
212380e3 | 274 | else |
7083c021 AC |
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." | |
212380e3 | 279 | fi |
7083c021 AC |
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" | |
b6d0720c | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
2eff3833 JT |
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 | |
7083c021 AC |
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 | ||
b6d0720c AC |
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
7083c021 AC |
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 | |
b6d0720c | 415 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
416 | as_fn_error () |
417 | { | |
b6d0720c AC |
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 | |
7083c021 | 422 | fi |
b6d0720c | 423 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
212380e3 | 426 | |
631ef239 AC |
427 | if expr a : '\(a\)' >/dev/null 2>&1 && |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
429 | as_expr=expr |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
631ef239 | 434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
435 | as_basename=basename |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
7083c021 AC |
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 | |
212380e3 | 445 | |
631ef239 | 446 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
448 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 450 | $as_echo X/"$0" | |
631ef239 AC |
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'` | |
212380e3 | 464 | |
7083c021 AC |
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 | |
212380e3 | 471 | |
212380e3 | 472 | |
7083c021 AC |
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; } | |
212380e3 | 495 | |
2eff3833 JT |
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 | |
7083c021 AC |
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 | |
631ef239 | 506 | } |
212380e3 | 507 | |
7083c021 AC |
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 | |
631ef239 | 520 | |
7083c021 AC |
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. | |
2eff3833 | 534 | # In both cases, we have to default to `cp -pR'. |
7083c021 | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
2eff3833 | 536 | as_ln_s='cp -pR' |
7083c021 AC |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
2eff3833 | 540 | as_ln_s='cp -pR' |
7083c021 | 541 | fi |
631ef239 | 542 | else |
2eff3833 | 543 | as_ln_s='cp -pR' |
631ef239 | 544 | fi |
7083c021 AC |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 | rmdir conf$$.dir 2>/dev/null | |
631ef239 | 547 | |
7083c021 AC |
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 | |
631ef239 AC |
553 | fi |
554 | ||
2eff3833 JT |
555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
631ef239 | 557 | |
7083c021 AC |
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'" | |
631ef239 | 560 | |
7083c021 AC |
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'" | |
631ef239 | 563 | |
c52df125 AC |
564 | SHELL=${CONFIG_SHELL-/bin/sh} |
565 | ||
566 | lt_ltdl_dir='extra/libltdl' | |
567 | ||
568 | lt_dlopen_dir="$lt_ltdl_dir" | |
569 | ||
631ef239 | 570 | |
6fb6bd15 AC |
571 | test -n "$DJDIR" || exec 7<&0 </dev/null |
572 | exec 6>&1 | |
631ef239 | 573 | |
7083c021 | 574 | # Name of the host. |
b6d0720c | 575 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
7083c021 AC |
576 | # so uname gets run too. |
577 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
631ef239 | 578 | |
7083c021 AC |
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= | |
212380e3 | 590 | |
212380e3 AC |
591 | # Identity of this package. |
592 | PACKAGE_NAME='charybdis' | |
593 | PACKAGE_TARNAME='charybdis' | |
c52df125 AC |
594 | PACKAGE_VERSION='3.6.0-dev' |
595 | PACKAGE_STRING='charybdis 3.6.0-dev' | |
212380e3 | 596 | PACKAGE_BUGREPORT='' |
7083c021 | 597 | PACKAGE_URL='' |
212380e3 | 598 | |
212380e3 AC |
599 | # Factoring default headers for most tests. |
600 | ac_includes_default="\ | |
601 | #include <stdio.h> | |
631ef239 | 602 | #ifdef HAVE_SYS_TYPES_H |
212380e3 AC |
603 | # include <sys/types.h> |
604 | #endif | |
631ef239 | 605 | #ifdef HAVE_SYS_STAT_H |
212380e3 AC |
606 | # include <sys/stat.h> |
607 | #endif | |
631ef239 | 608 | #ifdef STDC_HEADERS |
212380e3 AC |
609 | # include <stdlib.h> |
610 | # include <stddef.h> | |
611 | #else | |
631ef239 | 612 | # ifdef HAVE_STDLIB_H |
212380e3 AC |
613 | # include <stdlib.h> |
614 | # endif | |
615 | #endif | |
631ef239 AC |
616 | #ifdef HAVE_STRING_H |
617 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
212380e3 AC |
618 | # include <memory.h> |
619 | # endif | |
620 | # include <string.h> | |
621 | #endif | |
631ef239 | 622 | #ifdef HAVE_STRINGS_H |
212380e3 AC |
623 | # include <strings.h> |
624 | #endif | |
631ef239 | 625 | #ifdef HAVE_INTTYPES_H |
212380e3 | 626 | # include <inttypes.h> |
212380e3 | 627 | #endif |
631ef239 AC |
628 | #ifdef HAVE_STDINT_H |
629 | # include <stdint.h> | |
630 | #endif | |
631 | #ifdef HAVE_UNISTD_H | |
212380e3 AC |
632 | # include <unistd.h> |
633 | #endif" | |
634 | ||
eec2776c | 635 | ac_default_prefix=$HOME/ircd |
1db8e007 | 636 | enable_option_checking=no |
c52df125 AC |
637 | ac_subst_vars='ltdl_LTLIBOBJS |
638 | ltdl_LIBOBJS | |
639 | am__EXEEXT_FALSE | |
640 | am__EXEEXT_TRUE | |
641 | LTLIBOBJS | |
631ef239 | 642 | LIBOBJS |
7083c021 AC |
643 | SEDOBJ |
644 | IRC_CFLAGS | |
645 | PICFLAGS | |
646 | SSL_LIBS | |
647 | SSL_INCLUDES | |
648 | SSL_SRCS_ENABLE | |
649 | MOD_TARGET | |
650 | MODULES_LIBS | |
9f9b7042 NPB |
651 | PROGRAM_PREFIX |
652 | PKGRUNDIR | |
7083c021 AC |
653 | moduledir |
654 | MODULE_DIR | |
655 | helpdir | |
656 | HELP_DIR | |
657 | logdir | |
658 | LOG_DIR | |
7083c021 | 659 | ETC_DIR |
c52df125 | 660 | SQLITE_OBJ |
a5471f24 | 661 | SQLITE_INCLUDES |
497e30a0 | 662 | SQLITE_LD |
a5471f24 LS |
663 | SQLITE_LIBS |
664 | SQLITE_CFLAGS | |
665 | PKG_CONFIG_LIBDIR | |
666 | PKG_CONFIG_PATH | |
667 | PKG_CONFIG | |
7083c021 AC |
668 | ZLIB_LD |
669 | ENCSPEED | |
670 | ALLOCA | |
671 | VICONF | |
672 | CRYPT_LIB | |
9f9b7042 NPB |
673 | PKGLIBEXECDIR |
674 | pkglibexecdir | |
675 | PKGLOCALSTATEDIR | |
676 | pkglocalstatedir | |
677 | pkgrundir | |
678 | rundir | |
679 | pkglibdir | |
7083c021 AC |
680 | LEXLIB |
681 | LEX_OUTPUT_ROOT | |
682 | LEX | |
683 | YFLAGS | |
684 | YACC | |
685 | TOUCH | |
7083c021 AC |
686 | LN |
687 | MV | |
688 | CP | |
689 | RM | |
c52df125 AC |
690 | BUILD_LTDL_FALSE |
691 | BUILD_LTDL_TRUE | |
692 | LTDLOPEN | |
693 | LT_CONFIG_H | |
c52df125 AC |
694 | CONVENIENCE_LTDL_FALSE |
695 | CONVENIENCE_LTDL_TRUE | |
696 | INSTALL_LTDL_FALSE | |
697 | INSTALL_LTDL_TRUE | |
698 | ARGZ_H | |
699 | sys_symbol_underscore | |
700 | LIBADD_DL | |
701 | LT_DLPREOPEN | |
702 | LIBADD_DLD_LINK | |
703 | LIBADD_SHL_LOAD | |
704 | LIBADD_DLOPEN | |
705 | LT_DLLOADERS | |
706 | INCLTDL | |
707 | LTDLINCL | |
708 | LTDLDEPS | |
709 | LIBLTDL | |
c52df125 AC |
710 | OTOOL64 |
711 | OTOOL | |
712 | LIPO | |
713 | NMEDIT | |
714 | DSYMUTIL | |
715 | MANIFEST_TOOL | |
716 | RANLIB | |
717 | DLLTOOL | |
718 | OBJDUMP | |
719 | LN_S | |
720 | NM | |
721 | ac_ct_DUMPBIN | |
722 | DUMPBIN | |
723 | LD | |
724 | FGREP | |
c52df125 AC |
725 | SED |
726 | host_os | |
727 | host_vendor | |
728 | host_cpu | |
729 | host | |
730 | build_os | |
731 | build_vendor | |
732 | build_cpu | |
733 | build | |
734 | LIBTOOL | |
eec2776c AJ |
735 | ac_ct_AR |
736 | AR | |
737 | AM_BACKSLASH | |
738 | AM_DEFAULT_VERBOSITY | |
739 | AM_DEFAULT_V | |
740 | AM_V | |
c52df125 AC |
741 | am__fastdepCC_FALSE |
742 | am__fastdepCC_TRUE | |
743 | CCDEPMODE | |
744 | am__nodep | |
745 | AMDEPBACKSLASH | |
746 | AMDEP_FALSE | |
747 | AMDEP_TRUE | |
748 | am__quote | |
749 | am__include | |
750 | DEPDIR | |
c52df125 AC |
751 | am__untar |
752 | am__tar | |
753 | AMTAR | |
754 | am__leading_dot | |
755 | SET_MAKE | |
756 | AWK | |
757 | mkdir_p | |
758 | MKDIR_P | |
759 | INSTALL_STRIP_PROGRAM | |
760 | STRIP | |
761 | install_sh | |
762 | MAKEINFO | |
763 | AUTOHEADER | |
764 | AUTOMAKE | |
765 | AUTOCONF | |
766 | ACLOCAL | |
767 | VERSION | |
768 | PACKAGE | |
769 | CYGPATH_W | |
770 | am__isrc | |
771 | INSTALL_DATA | |
772 | INSTALL_SCRIPT | |
773 | INSTALL_PROGRAM | |
eec2776c AJ |
774 | subdirs |
775 | EGREP | |
776 | GREP | |
777 | CPP | |
778 | OBJEXT | |
779 | EXEEXT | |
780 | ac_ct_CC | |
781 | CPPFLAGS | |
782 | LDFLAGS | |
783 | CFLAGS | |
784 | CC | |
7083c021 AC |
785 | target_alias |
786 | host_alias | |
787 | build_alias | |
788 | LIBS | |
789 | ECHO_T | |
790 | ECHO_N | |
791 | ECHO_C | |
792 | DEFS | |
793 | mandir | |
794 | localedir | |
795 | libdir | |
796 | psdir | |
797 | pdfdir | |
798 | dvidir | |
799 | htmldir | |
800 | infodir | |
801 | docdir | |
802 | oldincludedir | |
803 | includedir | |
804 | localstatedir | |
805 | sharedstatedir | |
806 | sysconfdir | |
807 | datadir | |
808 | datarootdir | |
809 | libexecdir | |
810 | sbindir | |
811 | bindir | |
812 | program_transform_name | |
813 | prefix | |
814 | exec_prefix | |
815 | PACKAGE_URL | |
816 | PACKAGE_BUGREPORT | |
817 | PACKAGE_STRING | |
818 | PACKAGE_VERSION | |
819 | PACKAGE_TARNAME | |
820 | PACKAGE_NAME | |
821 | PATH_SEPARATOR | |
822 | SHELL' | |
212380e3 | 823 | ac_subst_files='' |
7083c021 AC |
824 | ac_user_opts=' |
825 | enable_option_checking | |
c52df125 | 826 | enable_dependency_tracking |
eec2776c | 827 | enable_silent_rules |
c52df125 AC |
828 | enable_static |
829 | enable_shared | |
830 | with_pic | |
831 | enable_fast_install | |
832 | with_gnu_ld | |
833 | with_sysroot | |
834 | enable_libtool_lock | |
835 | with_included_ltdl | |
836 | with_ltdl_include | |
837 | with_ltdl_lib | |
838 | enable_ltdl_install | |
9f9b7042 | 839 | enable_fhs_paths |
7083c021 AC |
840 | enable_ipv6 |
841 | enable_openssl | |
842 | with_zlib_path | |
843 | enable_zlib | |
a6ef3156 | 844 | with_shared_sqlite |
7083c021 AC |
845 | with_confdir |
846 | with_logdir | |
847 | with_helpdir | |
848 | with_moduledir | |
9f9b7042 NPB |
849 | with_rundir |
850 | with_program_prefix | |
b6d0720c AC |
851 | with_custom_branding |
852 | with_custom_version | |
7083c021 AC |
853 | enable_assert |
854 | enable_iodebug | |
855 | enable_profile | |
856 | enable_balloc | |
857 | enable_small_net | |
858 | with_nicklen | |
859 | with_topiclen | |
860 | enable_warnings | |
861 | ' | |
631ef239 AC |
862 | ac_precious_vars='build_alias |
863 | host_alias | |
864 | target_alias | |
865 | CC | |
866 | CFLAGS | |
867 | LDFLAGS | |
868 | LIBS | |
869 | CPPFLAGS | |
870 | CPP | |
871 | YACC | |
a5471f24 LS |
872 | YFLAGS |
873 | PKG_CONFIG | |
874 | PKG_CONFIG_PATH | |
875 | PKG_CONFIG_LIBDIR | |
876 | SQLITE_CFLAGS | |
877 | SQLITE_LIBS' | |
eec2776c AJ |
878 | ac_subdirs_all='libratbox |
879 | extra/libltdl | |
880 | libltdl' | |
212380e3 AC |
881 | |
882 | # Initialize some variables set by options. | |
883 | ac_init_help= | |
884 | ac_init_version=false | |
7083c021 AC |
885 | ac_unrecognized_opts= |
886 | ac_unrecognized_sep= | |
212380e3 AC |
887 | # The variables have the same names as the options, with |
888 | # dashes changed to underlines. | |
889 | cache_file=/dev/null | |
890 | exec_prefix=NONE | |
891 | no_create= | |
892 | no_recursion= | |
893 | prefix=NONE | |
894 | program_prefix=NONE | |
895 | program_suffix=NONE | |
896 | program_transform_name=s,x,x, | |
897 | silent= | |
898 | site= | |
899 | srcdir= | |
900 | verbose= | |
901 | x_includes=NONE | |
902 | x_libraries=NONE | |
903 | ||
904 | # Installation directory options. | |
905 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
906 | # and all the variables that are supposed to be based on exec_prefix | |
907 | # by default will actually change. | |
908 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
631ef239 | 909 | # (The list follows the same order as the GNU Coding Standards.) |
212380e3 AC |
910 | bindir='${exec_prefix}/bin' |
911 | sbindir='${exec_prefix}/sbin' | |
912 | libexecdir='${exec_prefix}/libexec' | |
631ef239 AC |
913 | datarootdir='${prefix}/share' |
914 | datadir='${datarootdir}' | |
212380e3 AC |
915 | sysconfdir='${prefix}/etc' |
916 | sharedstatedir='${prefix}/com' | |
917 | localstatedir='${prefix}/var' | |
212380e3 AC |
918 | includedir='${prefix}/include' |
919 | oldincludedir='/usr/include' | |
631ef239 AC |
920 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
921 | infodir='${datarootdir}/info' | |
922 | htmldir='${docdir}' | |
923 | dvidir='${docdir}' | |
924 | pdfdir='${docdir}' | |
925 | psdir='${docdir}' | |
926 | libdir='${exec_prefix}/lib' | |
927 | localedir='${datarootdir}/locale' | |
928 | mandir='${datarootdir}/man' | |
212380e3 AC |
929 | |
930 | ac_prev= | |
631ef239 | 931 | ac_dashdash= |
212380e3 AC |
932 | for ac_option |
933 | do | |
934 | # If the previous option needs an argument, assign it. | |
935 | if test -n "$ac_prev"; then | |
631ef239 | 936 | eval $ac_prev=\$ac_option |
212380e3 AC |
937 | ac_prev= |
938 | continue | |
939 | fi | |
940 | ||
631ef239 | 941 | case $ac_option in |
b6d0720c AC |
942 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
943 | *=) ac_optarg= ;; | |
944 | *) ac_optarg=yes ;; | |
631ef239 | 945 | esac |
212380e3 AC |
946 | |
947 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
948 | ||
631ef239 AC |
949 | case $ac_dashdash$ac_option in |
950 | --) | |
951 | ac_dashdash=yes ;; | |
212380e3 AC |
952 | |
953 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
954 | ac_prev=bindir ;; | |
955 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
956 | bindir=$ac_optarg ;; | |
957 | ||
958 | -build | --build | --buil | --bui | --bu) | |
959 | ac_prev=build_alias ;; | |
960 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
961 | build_alias=$ac_optarg ;; | |
962 | ||
963 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
964 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
965 | ac_prev=cache_file ;; | |
966 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
967 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
968 | cache_file=$ac_optarg ;; | |
969 | ||
970 | --config-cache | -C) | |
971 | cache_file=config.cache ;; | |
972 | ||
631ef239 | 973 | -datadir | --datadir | --datadi | --datad) |
212380e3 | 974 | ac_prev=datadir ;; |
631ef239 | 975 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
212380e3 AC |
976 | datadir=$ac_optarg ;; |
977 | ||
631ef239 AC |
978 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
979 | | --dataroo | --dataro | --datar) | |
980 | ac_prev=datarootdir ;; | |
981 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
982 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
983 | datarootdir=$ac_optarg ;; | |
984 | ||
212380e3 | 985 | -disable-* | --disable-*) |
7083c021 | 986 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
212380e3 | 987 | # Reject names that are not valid shell variable names. |
7083c021 | 988 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 989 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
990 | ac_useropt_orig=$ac_useropt |
991 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
992 | case $ac_user_opts in | |
993 | *" | |
994 | "enable_$ac_useropt" | |
995 | "*) ;; | |
996 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
997 | ac_unrecognized_sep=', ';; | |
998 | esac | |
999 | eval enable_$ac_useropt=no ;; | |
631ef239 AC |
1000 | |
1001 | -docdir | --docdir | --docdi | --doc | --do) | |
1002 | ac_prev=docdir ;; | |
1003 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1004 | docdir=$ac_optarg ;; | |
1005 | ||
1006 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1007 | ac_prev=dvidir ;; | |
1008 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1009 | dvidir=$ac_optarg ;; | |
212380e3 AC |
1010 | |
1011 | -enable-* | --enable-*) | |
7083c021 | 1012 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
212380e3 | 1013 | # Reject names that are not valid shell variable names. |
7083c021 | 1014 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1015 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
1016 | ac_useropt_orig=$ac_useropt |
1017 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1018 | case $ac_user_opts in | |
1019 | *" | |
1020 | "enable_$ac_useropt" | |
1021 | "*) ;; | |
1022 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1023 | ac_unrecognized_sep=', ';; | |
1024 | esac | |
1025 | eval enable_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
1026 | |
1027 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1028 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1029 | | --exec | --exe | --ex) | |
1030 | ac_prev=exec_prefix ;; | |
1031 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1032 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1033 | | --exec=* | --exe=* | --ex=*) | |
1034 | exec_prefix=$ac_optarg ;; | |
1035 | ||
1036 | -gas | --gas | --ga | --g) | |
1037 | # Obsolete; use --with-gas. | |
1038 | with_gas=yes ;; | |
1039 | ||
1040 | -help | --help | --hel | --he | -h) | |
1041 | ac_init_help=long ;; | |
1042 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1043 | ac_init_help=recursive ;; | |
1044 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1045 | ac_init_help=short ;; | |
1046 | ||
1047 | -host | --host | --hos | --ho) | |
1048 | ac_prev=host_alias ;; | |
1049 | -host=* | --host=* | --hos=* | --ho=*) | |
1050 | host_alias=$ac_optarg ;; | |
1051 | ||
631ef239 AC |
1052 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1053 | ac_prev=htmldir ;; | |
1054 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1055 | | --ht=*) | |
1056 | htmldir=$ac_optarg ;; | |
1057 | ||
212380e3 AC |
1058 | -includedir | --includedir | --includedi | --included | --include \ |
1059 | | --includ | --inclu | --incl | --inc) | |
1060 | ac_prev=includedir ;; | |
1061 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1062 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1063 | includedir=$ac_optarg ;; | |
1064 | ||
1065 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1066 | ac_prev=infodir ;; | |
1067 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1068 | infodir=$ac_optarg ;; | |
1069 | ||
1070 | -libdir | --libdir | --libdi | --libd) | |
1071 | ac_prev=libdir ;; | |
1072 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1073 | libdir=$ac_optarg ;; | |
1074 | ||
1075 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1076 | | --libexe | --libex | --libe) | |
1077 | ac_prev=libexecdir ;; | |
1078 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1079 | | --libexe=* | --libex=* | --libe=*) | |
1080 | libexecdir=$ac_optarg ;; | |
1081 | ||
631ef239 AC |
1082 | -localedir | --localedir | --localedi | --localed | --locale) |
1083 | ac_prev=localedir ;; | |
1084 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1085 | localedir=$ac_optarg ;; | |
1086 | ||
212380e3 | 1087 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
631ef239 | 1088 | | --localstate | --localstat | --localsta | --localst | --locals) |
212380e3 AC |
1089 | ac_prev=localstatedir ;; |
1090 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
631ef239 | 1091 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
212380e3 AC |
1092 | localstatedir=$ac_optarg ;; |
1093 | ||
1094 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1095 | ac_prev=mandir ;; | |
1096 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1097 | mandir=$ac_optarg ;; | |
1098 | ||
1099 | -nfp | --nfp | --nf) | |
1100 | # Obsolete; use --without-fp. | |
1101 | with_fp=no ;; | |
1102 | ||
1103 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1104 | | --no-cr | --no-c | -n) | |
1105 | no_create=yes ;; | |
1106 | ||
1107 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1108 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1109 | no_recursion=yes ;; | |
1110 | ||
1111 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1112 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1113 | | --oldin | --oldi | --old | --ol | --o) | |
1114 | ac_prev=oldincludedir ;; | |
1115 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1116 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1117 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1118 | oldincludedir=$ac_optarg ;; | |
1119 | ||
1120 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1121 | ac_prev=prefix ;; | |
1122 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1123 | prefix=$ac_optarg ;; | |
1124 | ||
1125 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1126 | | --program-pre | --program-pr | --program-p) | |
1127 | ac_prev=program_prefix ;; | |
1128 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1129 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1130 | program_prefix=$ac_optarg ;; | |
1131 | ||
1132 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1133 | | --program-suf | --program-su | --program-s) | |
1134 | ac_prev=program_suffix ;; | |
1135 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1136 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1137 | program_suffix=$ac_optarg ;; | |
1138 | ||
1139 | -program-transform-name | --program-transform-name \ | |
1140 | | --program-transform-nam | --program-transform-na \ | |
1141 | | --program-transform-n | --program-transform- \ | |
1142 | | --program-transform | --program-transfor \ | |
1143 | | --program-transfo | --program-transf \ | |
1144 | | --program-trans | --program-tran \ | |
1145 | | --progr-tra | --program-tr | --program-t) | |
1146 | ac_prev=program_transform_name ;; | |
1147 | -program-transform-name=* | --program-transform-name=* \ | |
1148 | | --program-transform-nam=* | --program-transform-na=* \ | |
1149 | | --program-transform-n=* | --program-transform-=* \ | |
1150 | | --program-transform=* | --program-transfor=* \ | |
1151 | | --program-transfo=* | --program-transf=* \ | |
1152 | | --program-trans=* | --program-tran=* \ | |
1153 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1154 | program_transform_name=$ac_optarg ;; | |
1155 | ||
631ef239 AC |
1156 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1157 | ac_prev=pdfdir ;; | |
1158 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1159 | pdfdir=$ac_optarg ;; | |
1160 | ||
1161 | -psdir | --psdir | --psdi | --psd | --ps) | |
1162 | ac_prev=psdir ;; | |
1163 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1164 | psdir=$ac_optarg ;; | |
1165 | ||
212380e3 AC |
1166 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1167 | | -silent | --silent | --silen | --sile | --sil) | |
1168 | silent=yes ;; | |
1169 | ||
1170 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1171 | ac_prev=sbindir ;; | |
1172 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1173 | | --sbi=* | --sb=*) | |
1174 | sbindir=$ac_optarg ;; | |
1175 | ||
1176 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1177 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1178 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1179 | | --sha | --sh) | |
1180 | ac_prev=sharedstatedir ;; | |
1181 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1182 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1183 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1184 | | --sha=* | --sh=*) | |
1185 | sharedstatedir=$ac_optarg ;; | |
1186 | ||
1187 | -site | --site | --sit) | |
1188 | ac_prev=site ;; | |
1189 | -site=* | --site=* | --sit=*) | |
1190 | site=$ac_optarg ;; | |
1191 | ||
1192 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1193 | ac_prev=srcdir ;; | |
1194 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1195 | srcdir=$ac_optarg ;; | |
1196 | ||
1197 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1198 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1199 | ac_prev=sysconfdir ;; | |
1200 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1201 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1202 | sysconfdir=$ac_optarg ;; | |
1203 | ||
1204 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1205 | ac_prev=target_alias ;; | |
1206 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1207 | target_alias=$ac_optarg ;; | |
1208 | ||
1209 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1210 | verbose=yes ;; | |
1211 | ||
1212 | -version | --version | --versio | --versi | --vers | -V) | |
1213 | ac_init_version=: ;; | |
1214 | ||
1215 | -with-* | --with-*) | |
7083c021 | 1216 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
212380e3 | 1217 | # Reject names that are not valid shell variable names. |
7083c021 | 1218 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1219 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1220 | ac_useropt_orig=$ac_useropt |
1221 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1222 | case $ac_user_opts in | |
1223 | *" | |
1224 | "with_$ac_useropt" | |
1225 | "*) ;; | |
1226 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1227 | ac_unrecognized_sep=', ';; | |
1228 | esac | |
1229 | eval with_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
1230 | |
1231 | -without-* | --without-*) | |
7083c021 | 1232 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
212380e3 | 1233 | # Reject names that are not valid shell variable names. |
7083c021 | 1234 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1235 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1236 | ac_useropt_orig=$ac_useropt |
1237 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1238 | case $ac_user_opts in | |
1239 | *" | |
1240 | "with_$ac_useropt" | |
1241 | "*) ;; | |
1242 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1243 | ac_unrecognized_sep=', ';; | |
1244 | esac | |
1245 | eval with_$ac_useropt=no ;; | |
212380e3 AC |
1246 | |
1247 | --x) | |
1248 | # Obsolete; use --with-x. | |
1249 | with_x=yes ;; | |
1250 | ||
1251 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1252 | | --x-incl | --x-inc | --x-in | --x-i) | |
1253 | ac_prev=x_includes ;; | |
1254 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1255 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1256 | x_includes=$ac_optarg ;; | |
1257 | ||
1258 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1259 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1260 | ac_prev=x_libraries ;; | |
1261 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1262 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1263 | x_libraries=$ac_optarg ;; | |
1264 | ||
b6d0720c AC |
1265 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1266 | Try \`$0 --help' for more information" | |
212380e3 AC |
1267 | ;; |
1268 | ||
1269 | *=*) | |
1270 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1271 | # Reject names that are not valid shell variable names. | |
7083c021 AC |
1272 | case $ac_envvar in #( |
1273 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
b6d0720c | 1274 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
7083c021 | 1275 | esac |
631ef239 | 1276 | eval $ac_envvar=\$ac_optarg |
212380e3 AC |
1277 | export $ac_envvar ;; |
1278 | ||
1279 | *) | |
1280 | # FIXME: should be removed in autoconf 3.0. | |
7083c021 | 1281 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
212380e3 | 1282 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
7083c021 | 1283 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b6d0720c | 1284 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
212380e3 AC |
1285 | ;; |
1286 | ||
1287 | esac | |
1288 | done | |
1289 | ||
1290 | if test -n "$ac_prev"; then | |
1291 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b6d0720c | 1292 | as_fn_error $? "missing argument to $ac_option" |
212380e3 AC |
1293 | fi |
1294 | ||
7083c021 AC |
1295 | if test -n "$ac_unrecognized_opts"; then |
1296 | case $enable_option_checking in | |
1297 | no) ;; | |
b6d0720c | 1298 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
7083c021 AC |
1299 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1300 | esac | |
1301 | fi | |
1302 | ||
1303 | # Check all directory arguments for consistency. | |
631ef239 AC |
1304 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1305 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1306 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1307 | libdir localedir mandir | |
212380e3 | 1308 | do |
631ef239 | 1309 | eval ac_val=\$$ac_var |
7083c021 AC |
1310 | # Remove trailing slashes. |
1311 | case $ac_val in | |
1312 | */ ) | |
1313 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1314 | eval $ac_var=\$ac_val;; | |
1315 | esac | |
1316 | # Be sure to have absolute directory names. | |
212380e3 | 1317 | case $ac_val in |
631ef239 AC |
1318 | [\\/$]* | ?:[\\/]* ) continue;; |
1319 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
212380e3 | 1320 | esac |
b6d0720c | 1321 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
212380e3 AC |
1322 | done |
1323 | ||
1324 | # There might be people who depend on the old broken behavior: `$host' | |
1325 | # used to hold the argument of --host etc. | |
1326 | # FIXME: To remove some day. | |
1327 | build=$build_alias | |
1328 | host=$host_alias | |
1329 | target=$target_alias | |
1330 | ||
1331 | # FIXME: To remove some day. | |
1332 | if test "x$host_alias" != x; then | |
1333 | if test "x$build_alias" = x; then | |
1334 | cross_compiling=maybe | |
212380e3 AC |
1335 | elif test "x$build_alias" != "x$host_alias"; then |
1336 | cross_compiling=yes | |
1337 | fi | |
1338 | fi | |
1339 | ||
1340 | ac_tool_prefix= | |
1341 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1342 | ||
1343 | test "$silent" = yes && exec 6>/dev/null | |
1344 | ||
1345 | ||
631ef239 AC |
1346 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1347 | ac_ls_di=`ls -di .` && | |
1348 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b6d0720c | 1349 | as_fn_error $? "working directory cannot be determined" |
631ef239 | 1350 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b6d0720c | 1351 | as_fn_error $? "pwd does not report name of working directory" |
631ef239 AC |
1352 | |
1353 | ||
1354 | # Find the source files, if location was not specified. | |
1355 | if test -z "$srcdir"; then | |
212380e3 | 1356 | ac_srcdir_defaulted=yes |
631ef239 | 1357 | # Try the directory containing this script, then the parent directory. |
7083c021 AC |
1358 | ac_confdir=`$as_dirname -- "$as_myself" || |
1359 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1360 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1361 | X"$as_myself" : 'X\(//\)$' \| \ | |
1362 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1363 | $as_echo X"$as_myself" | | |
631ef239 AC |
1364 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1365 | s//\1/ | |
1366 | q | |
1367 | } | |
1368 | /^X\(\/\/\)[^/].*/{ | |
1369 | s//\1/ | |
1370 | q | |
1371 | } | |
1372 | /^X\(\/\/\)$/{ | |
1373 | s//\1/ | |
1374 | q | |
1375 | } | |
1376 | /^X\(\/\).*/{ | |
1377 | s//\1/ | |
1378 | q | |
1379 | } | |
1380 | s/.*/./; q'` | |
212380e3 | 1381 | srcdir=$ac_confdir |
631ef239 | 1382 | if test ! -r "$srcdir/$ac_unique_file"; then |
212380e3 AC |
1383 | srcdir=.. |
1384 | fi | |
1385 | else | |
1386 | ac_srcdir_defaulted=no | |
1387 | fi | |
631ef239 AC |
1388 | if test ! -r "$srcdir/$ac_unique_file"; then |
1389 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b6d0720c | 1390 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
212380e3 | 1391 | fi |
631ef239 AC |
1392 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1393 | ac_abs_confdir=`( | |
b6d0720c | 1394 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
631ef239 AC |
1395 | pwd)` |
1396 | # When building in place, set srcdir=. | |
1397 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1398 | srcdir=. | |
1399 | fi | |
1400 | # Remove unnecessary trailing slashes from srcdir. | |
1401 | # Double slashes in file names in object file debugging info | |
1402 | # mess up M-x gdb in Emacs. | |
1403 | case $srcdir in | |
1404 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1405 | esac | |
1406 | for ac_var in $ac_precious_vars; do | |
1407 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1408 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1409 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1410 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1411 | done | |
212380e3 AC |
1412 | |
1413 | # | |
1414 | # Report the --help message. | |
1415 | # | |
1416 | if test "$ac_init_help" = "long"; then | |
1417 | # Omit some internal or obsolete options to make the list less imposing. | |
1418 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1419 | cat <<_ACEOF | |
c52df125 | 1420 | \`configure' configures charybdis 3.6.0-dev to adapt to many kinds of systems. |
212380e3 AC |
1421 | |
1422 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1423 | ||
1424 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1425 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1426 | ||
1427 | Defaults for the options are specified in brackets. | |
1428 | ||
1429 | Configuration: | |
1430 | -h, --help display this help and exit | |
1431 | --help=short display options specific to this package | |
1432 | --help=recursive display the short help of all the included packages | |
1433 | -V, --version display version information and exit | |
b6d0720c | 1434 | -q, --quiet, --silent do not print \`checking ...' messages |
212380e3 AC |
1435 | --cache-file=FILE cache test results in FILE [disabled] |
1436 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1437 | -n, --no-create do not create output files | |
1438 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1439 | ||
212380e3 AC |
1440 | Installation directories: |
1441 | --prefix=PREFIX install architecture-independent files in PREFIX | |
7083c021 | 1442 | [$ac_default_prefix] |
212380e3 | 1443 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
7083c021 | 1444 | [PREFIX] |
212380e3 AC |
1445 | |
1446 | By default, \`make install' will install all the files in | |
1447 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1448 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1449 | for instance \`--prefix=\$HOME'. | |
1450 | ||
1451 | For better control, use the options below. | |
1452 | ||
1453 | Fine tuning of the installation directories: | |
7083c021 AC |
1454 | --bindir=DIR user executables [EPREFIX/bin] |
1455 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1456 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1457 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1458 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1459 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1460 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1461 | --includedir=DIR C header files [PREFIX/include] | |
1462 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1463 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1464 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1465 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1466 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1467 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1468 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1469 | --htmldir=DIR html documentation [DOCDIR] | |
1470 | --dvidir=DIR dvi documentation [DOCDIR] | |
1471 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1472 | --psdir=DIR ps documentation [DOCDIR] | |
212380e3 AC |
1473 | _ACEOF |
1474 | ||
1475 | cat <<\_ACEOF | |
c52df125 AC |
1476 | |
1477 | Program names: | |
1478 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1479 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1480 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1481 | ||
1482 | System types: | |
1483 | --build=BUILD configure for building on BUILD [guessed] | |
1484 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
212380e3 AC |
1485 | _ACEOF |
1486 | fi | |
1487 | ||
1488 | if test -n "$ac_init_help"; then | |
1489 | case $ac_init_help in | |
c52df125 | 1490 | short | recursive ) echo "Configuration of charybdis 3.6.0-dev:";; |
212380e3 AC |
1491 | esac |
1492 | cat <<\_ACEOF | |
1493 | ||
1494 | Optional Features: | |
7083c021 | 1495 | --disable-option-checking ignore unrecognized --enable/--with options |
212380e3 AC |
1496 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1497 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c52df125 AC |
1498 | --enable-dependency-tracking |
1499 | do not reject slow dependency extractors | |
1500 | --disable-dependency-tracking | |
1501 | speeds up one-time build | |
eec2776c AJ |
1502 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1503 | --disable-silent-rules verbose build output (undo: "make V=0") | |
c52df125 AC |
1504 | --enable-static[=PKGS] build static libraries [default=no] |
1505 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1506 | --enable-fast-install[=PKGS] | |
1507 | optimize for fast installation [default=yes] | |
1508 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1509 | --enable-ltdl-install install libltdl | |
6929cd01 | 1510 | --enable-fhs-paths Use more FHS-like pathnames (for packagers). |
212380e3 | 1511 | --enable-ipv6 Enable IPv6 support |
631ef239 | 1512 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
212380e3 AC |
1513 | --disable-openssl Disable OpenSSL support. |
1514 | --disable-zlib Disable ziplinks support | |
212380e3 AC |
1515 | --enable-assert Enable assert(). Choose between soft(warnings) and |
1516 | hard(aborts the daemon) | |
1517 | --enable-iodebug Enable IO Debugging hooks | |
1518 | --enable-profile Enable profiling | |
1519 | --disable-balloc Disable the block allocator. | |
212380e3 | 1520 | --enable-small-net Enable small network support. |
212380e3 AC |
1521 | --enable-warnings Enable all sorts of warnings for debugging. |
1522 | ||
1523 | Optional Packages: | |
1524 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1525 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
c52df125 AC |
1526 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
1527 | both] | |
1528 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1529 | --with-sysroot=DIR Search for dependent libraries within DIR | |
1530 | (or the compiler's sysroot if not specified). | |
1531 | --with-included-ltdl use the GNU ltdl sources included here | |
1532 | --with-ltdl-include=DIR use the ltdl headers installed in DIR | |
1533 | --with-ltdl-lib=DIR use the libltdl.la installed in DIR | |
212380e3 | 1534 | --with-zlib-path=DIR Path to libz.so for ziplinks support. |
a6ef3156 | 1535 | --with-shared-sqlite Use shared sqlite |
634d4aad NPB |
1536 | --with-confdir=DIR Directory to install config files [deprecated, use |
1537 | --sysconfdir instead]. | |
212380e3 AC |
1538 | --with-logdir=DIR Directory where to write logfiles. |
1539 | --with-helpdir=DIR Directory to install help files. | |
1540 | --with-moduledir=DIR Directory to install modules. | |
9f9b7042 NPB |
1541 | --with-rundir=DIR Directory in which to store pidfile. |
1542 | --with-program-prefix= If set, programs installed into PATH will be | |
1543 | installed with names prefixed by this prefix. | |
b6d0720c AC |
1544 | --with-custom-branding=NAME |
1545 | Custom branding name. | |
1546 | --with-custom-version=NAME | |
1547 | Custom version branding. | |
b583faf9 | 1548 | --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default |
cf533739 | 1549 | 31, max 50) |
212380e3 AC |
1550 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max |
1551 | 390) | |
212380e3 AC |
1552 | |
1553 | Some influential environment variables: | |
1554 | CC C compiler command | |
1555 | CFLAGS C compiler flags | |
1556 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1557 | nonstandard directory <lib dir> | |
631ef239 | 1558 | LIBS libraries to pass to the linker, e.g. -l<library> |
6fb6bd15 | 1559 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
631ef239 | 1560 | you have headers in a nonstandard directory <include dir> |
212380e3 | 1561 | CPP C preprocessor |
b6d0720c AC |
1562 | YACC The `Yet Another Compiler Compiler' implementation to use. |
1563 | Defaults to the first program found out of: `bison -y', `byacc', | |
1564 | `yacc'. | |
631ef239 AC |
1565 | YFLAGS The list of arguments that will be passed by default to $YACC. |
1566 | This script will default YFLAGS to the empty string to avoid a | |
1567 | default value of `-d' given by some make applications. | |
a5471f24 LS |
1568 | PKG_CONFIG path to pkg-config utility |
1569 | PKG_CONFIG_PATH | |
1570 | directories to add to pkg-config's search path | |
1571 | PKG_CONFIG_LIBDIR | |
1572 | path overriding pkg-config's built-in search path | |
1573 | SQLITE_CFLAGS | |
1574 | C compiler flags for SQLITE, overriding pkg-config | |
1575 | SQLITE_LIBS linker flags for SQLITE, overriding pkg-config | |
212380e3 AC |
1576 | |
1577 | Use these variables to override the choices made by `configure' or to help | |
1578 | it to find libraries and programs with nonstandard names/locations. | |
1579 | ||
7083c021 | 1580 | Report bugs to the package provider. |
212380e3 | 1581 | _ACEOF |
631ef239 | 1582 | ac_status=$? |
212380e3 AC |
1583 | fi |
1584 | ||
1585 | if test "$ac_init_help" = "recursive"; then | |
1586 | # If there are subdirs, report their specific --help. | |
212380e3 | 1587 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
7083c021 AC |
1588 | test -d "$ac_dir" || |
1589 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1590 | continue | |
212380e3 AC |
1591 | ac_builddir=. |
1592 | ||
631ef239 AC |
1593 | case "$ac_dir" in |
1594 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1595 | *) | |
7083c021 | 1596 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 1597 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 1598 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
1599 | case $ac_top_builddir_sub in |
1600 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1601 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1602 | esac ;; | |
1603 | esac | |
1604 | ac_abs_top_builddir=$ac_pwd | |
1605 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1606 | # for backward compatibility: | |
1607 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
1608 | |
1609 | case $srcdir in | |
631ef239 | 1610 | .) # We are building in place. |
212380e3 | 1611 | ac_srcdir=. |
631ef239 AC |
1612 | ac_top_srcdir=$ac_top_builddir_sub |
1613 | ac_abs_top_srcdir=$ac_pwd ;; | |
1614 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 1615 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
1616 | ac_top_srcdir=$srcdir |
1617 | ac_abs_top_srcdir=$srcdir ;; | |
1618 | *) # Relative name. | |
1619 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1620 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1621 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 1622 | esac |
631ef239 AC |
1623 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1624 | ||
1625 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1626 | # Check for guested configure. | |
1627 | if test -f "$ac_srcdir/configure.gnu"; then | |
1628 | echo && | |
1629 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1630 | elif test -f "$ac_srcdir/configure"; then | |
1631 | echo && | |
1632 | $SHELL "$ac_srcdir/configure" --help=recursive | |
212380e3 | 1633 | else |
7083c021 | 1634 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
631ef239 AC |
1635 | fi || ac_status=$? |
1636 | cd "$ac_pwd" || { ac_status=$?; break; } | |
212380e3 AC |
1637 | done |
1638 | fi | |
1639 | ||
631ef239 | 1640 | test -n "$ac_init_help" && exit $ac_status |
212380e3 AC |
1641 | if $ac_init_version; then |
1642 | cat <<\_ACEOF | |
c52df125 | 1643 | charybdis configure 3.6.0-dev |
2eff3833 | 1644 | generated by GNU Autoconf 2.69 |
212380e3 | 1645 | |
2eff3833 | 1646 | Copyright (C) 2012 Free Software Foundation, Inc. |
212380e3 AC |
1647 | This configure script is free software; the Free Software Foundation |
1648 | gives unlimited permission to copy, distribute and modify it. | |
212380e3 | 1649 | _ACEOF |
631ef239 | 1650 | exit |
212380e3 | 1651 | fi |
212380e3 | 1652 | |
7083c021 AC |
1653 | ## ------------------------ ## |
1654 | ## Autoconf initialization. ## | |
1655 | ## ------------------------ ## | |
212380e3 | 1656 | |
7083c021 AC |
1657 | # ac_fn_c_try_compile LINENO |
1658 | # -------------------------- | |
1659 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1660 | ac_fn_c_try_compile () | |
1661 | { | |
1662 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1663 | rm -f conftest.$ac_objext | |
1664 | if { { ac_try="$ac_compile" | |
1665 | case "(($ac_try" in | |
1666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1667 | *) ac_try_echo=$ac_try;; | |
1668 | esac | |
1669 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1670 | $as_echo "$ac_try_echo"; } >&5 | |
1671 | (eval "$ac_compile") 2>conftest.err | |
1672 | ac_status=$? | |
1673 | if test -s conftest.err; then | |
1674 | grep -v '^ *+' conftest.err >conftest.er1 | |
1675 | cat conftest.er1 >&5 | |
1676 | mv -f conftest.er1 conftest.err | |
1677 | fi | |
1678 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1679 | test $ac_status = 0; } && { | |
1680 | test -z "$ac_c_werror_flag" || | |
1681 | test ! -s conftest.err | |
1682 | } && test -s conftest.$ac_objext; then : | |
1683 | ac_retval=0 | |
1684 | else | |
1685 | $as_echo "$as_me: failed program was:" >&5 | |
1686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1687 | |
7083c021 AC |
1688 | ac_retval=1 |
1689 | fi | |
b6d0720c | 1690 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1691 | as_fn_set_status $ac_retval |
7083c021 AC |
1692 | |
1693 | } # ac_fn_c_try_compile | |
1694 | ||
eec2776c AJ |
1695 | # ac_fn_c_try_cpp LINENO |
1696 | # ---------------------- | |
1697 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1698 | ac_fn_c_try_cpp () | |
212380e3 | 1699 | { |
7083c021 | 1700 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
eec2776c | 1701 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
7083c021 AC |
1702 | case "(($ac_try" in |
1703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1704 | *) ac_try_echo=$ac_try;; | |
1705 | esac | |
1706 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1707 | $as_echo "$ac_try_echo"; } >&5 | |
eec2776c | 1708 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
7083c021 AC |
1709 | ac_status=$? |
1710 | if test -s conftest.err; then | |
1711 | grep -v '^ *+' conftest.err >conftest.er1 | |
1712 | cat conftest.er1 >&5 | |
1713 | mv -f conftest.er1 conftest.err | |
1714 | fi | |
1715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
1716 | test $ac_status = 0; } > conftest.i && { |
1717 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7083c021 AC |
1718 | test ! -s conftest.err |
1719 | }; then : | |
1720 | ac_retval=0 | |
1721 | else | |
1722 | $as_echo "$as_me: failed program was:" >&5 | |
1723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1724 | |
eec2776c | 1725 | ac_retval=1 |
7083c021 | 1726 | fi |
b6d0720c | 1727 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1728 | as_fn_set_status $ac_retval |
212380e3 | 1729 | |
eec2776c | 1730 | } # ac_fn_c_try_cpp |
212380e3 | 1731 | |
eec2776c | 1732 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
7083c021 | 1733 | # ------------------------------------------------------- |
eec2776c AJ |
1734 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1735 | # the include files in INCLUDES and setting the cache variable VAR | |
1736 | # accordingly. | |
1737 | ac_fn_c_check_header_mongrel () | |
7083c021 AC |
1738 | { |
1739 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
eec2776c | 1740 | if eval \${$3+:} false; then : |
7083c021 AC |
1741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1742 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1743 | if eval \${$3+:} false; then : |
7083c021 | 1744 | $as_echo_n "(cached) " >&6 |
eec2776c AJ |
1745 | fi |
1746 | eval ac_res=\$$3 | |
1747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1748 | $as_echo "$ac_res" >&6; } | |
7083c021 | 1749 | else |
eec2776c AJ |
1750 | # Is the header compilable? |
1751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1752 | $as_echo_n "checking $2 usability... " >&6; } | |
1753 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7083c021 AC |
1754 | /* end confdefs.h. */ |
1755 | $4 | |
1756 | #include <$2> | |
1757 | _ACEOF | |
1758 | if ac_fn_c_try_compile "$LINENO"; then : | |
eec2776c | 1759 | ac_header_compiler=yes |
7083c021 | 1760 | else |
eec2776c | 1761 | ac_header_compiler=no |
7083c021 AC |
1762 | fi |
1763 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
eec2776c AJ |
1764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1765 | $as_echo "$ac_header_compiler" >&6; } | |
c52df125 | 1766 | |
eec2776c AJ |
1767 | # Is the header present? |
1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1769 | $as_echo_n "checking $2 presence... " >&6; } | |
1770 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1771 | /* end confdefs.h. */ | |
1772 | #include <$2> | |
1773 | _ACEOF | |
1774 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1775 | ac_header_preproc=yes | |
1776 | else | |
1777 | ac_header_preproc=no | |
1778 | fi | |
1779 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1781 | $as_echo "$ac_header_preproc" >&6; } | |
c52df125 | 1782 | |
eec2776c AJ |
1783 | # So? What about this header? |
1784 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1785 | yes:no: ) | |
1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1787 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1789 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1790 | ;; | |
1791 | no:yes:* ) | |
1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1793 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1794 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1795 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1797 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1798 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1799 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1801 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1802 | ;; | |
c52df125 | 1803 | esac |
eec2776c AJ |
1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1805 | $as_echo_n "checking for $2... " >&6; } | |
1806 | if eval \${$3+:} false; then : | |
1807 | $as_echo_n "(cached) " >&6 | |
c52df125 | 1808 | else |
eec2776c AJ |
1809 | eval "$3=\$ac_header_compiler" |
1810 | fi | |
1811 | eval ac_res=\$$3 | |
1812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1813 | $as_echo "$ac_res" >&6; } | |
7083c021 | 1814 | fi |
b6d0720c | 1815 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1816 | |
eec2776c | 1817 | } # ac_fn_c_check_header_mongrel |
212380e3 | 1818 | |
7083c021 AC |
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 | |
212380e3 | 1852 | |
7083c021 AC |
1853 | ac_retval=$ac_status |
1854 | fi | |
1855 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
b6d0720c | 1856 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1857 | as_fn_set_status $ac_retval |
212380e3 | 1858 | |
7083c021 | 1859 | } # ac_fn_c_try_run |
212380e3 | 1860 | |
eec2776c AJ |
1861 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1862 | # ------------------------------------------------------- | |
1863 | # Tests whether HEADER exists and can be compiled using the include files in | |
1864 | # INCLUDES, setting the cache variable VAR accordingly. | |
1865 | ac_fn_c_check_header_compile () | |
1866 | { | |
1867 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1869 | $as_echo_n "checking for $2... " >&6; } | |
1870 | if eval \${$3+:} false; then : | |
1871 | $as_echo_n "(cached) " >&6 | |
1872 | else | |
1873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1874 | /* end confdefs.h. */ | |
1875 | $4 | |
1876 | #include <$2> | |
1877 | _ACEOF | |
1878 | if ac_fn_c_try_compile "$LINENO"; then : | |
1879 | eval "$3=yes" | |
1880 | else | |
1881 | eval "$3=no" | |
1882 | fi | |
1883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1884 | fi | |
1885 | eval ac_res=\$$3 | |
1886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1887 | $as_echo "$ac_res" >&6; } | |
1888 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1889 | ||
1890 | } # ac_fn_c_check_header_compile | |
1891 | ||
1892 | # ac_fn_c_try_link LINENO | |
1893 | # ----------------------- | |
1894 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1895 | ac_fn_c_try_link () | |
1896 | { | |
1897 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1898 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1899 | if { { ac_try="$ac_link" | |
1900 | case "(($ac_try" in | |
1901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1902 | *) ac_try_echo=$ac_try;; | |
1903 | esac | |
1904 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1905 | $as_echo "$ac_try_echo"; } >&5 | |
1906 | (eval "$ac_link") 2>conftest.err | |
1907 | ac_status=$? | |
1908 | if test -s conftest.err; then | |
1909 | grep -v '^ *+' conftest.err >conftest.er1 | |
1910 | cat conftest.er1 >&5 | |
1911 | mv -f conftest.er1 conftest.err | |
1912 | fi | |
1913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1914 | test $ac_status = 0; } && { | |
1915 | test -z "$ac_c_werror_flag" || | |
1916 | test ! -s conftest.err | |
1917 | } && test -s conftest$ac_exeext && { | |
1918 | test "$cross_compiling" = yes || | |
1919 | test -x conftest$ac_exeext | |
1920 | }; then : | |
1921 | ac_retval=0 | |
1922 | else | |
1923 | $as_echo "$as_me: failed program was:" >&5 | |
1924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1925 | ||
1926 | ac_retval=1 | |
1927 | fi | |
1928 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1929 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1930 | # interfere with the next link command; also delete a directory that is | |
1931 | # left behind by Apple's compiler. We do this before executing the actions. | |
1932 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1933 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1934 | as_fn_set_status $ac_retval | |
1935 | ||
1936 | } # ac_fn_c_try_link | |
1937 | ||
c52df125 AC |
1938 | # ac_fn_c_check_func LINENO FUNC VAR |
1939 | # ---------------------------------- | |
1940 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1941 | ac_fn_c_check_func () | |
7083c021 AC |
1942 | { |
1943 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1945 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1946 | if eval \${$3+:} false; then : |
7083c021 AC |
1947 | $as_echo_n "(cached) " >&6 |
1948 | else | |
1949 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1950 | /* end confdefs.h. */ | |
c52df125 AC |
1951 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1952 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1953 | #define $2 innocuous_$2 | |
1954 | ||
1955 | /* System header to define __stub macros and hopefully few prototypes, | |
1956 | which can conflict with char $2 (); below. | |
1957 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1958 | <limits.h> exists even on freestanding compilers. */ | |
1959 | ||
1960 | #ifdef __STDC__ | |
1961 | # include <limits.h> | |
1962 | #else | |
1963 | # include <assert.h> | |
1964 | #endif | |
1965 | ||
1966 | #undef $2 | |
1967 | ||
1968 | /* Override any GCC internal prototype to avoid an error. | |
1969 | Use char because int might match the return type of a GCC | |
1970 | builtin and then its argument prototype would still apply. */ | |
1971 | #ifdef __cplusplus | |
1972 | extern "C" | |
1973 | #endif | |
1974 | char $2 (); | |
1975 | /* The GNU C library defines this for functions which it implements | |
1976 | to always fail with ENOSYS. Some functions are actually named | |
1977 | something starting with __ and the normal name is an alias. */ | |
1978 | #if defined __stub_$2 || defined __stub___$2 | |
1979 | choke me | |
1980 | #endif | |
1981 | ||
1982 | int | |
1983 | main () | |
1984 | { | |
1985 | return $2 (); | |
1986 | ; | |
1987 | return 0; | |
1988 | } | |
1989 | _ACEOF | |
1990 | if ac_fn_c_try_link "$LINENO"; then : | |
1991 | eval "$3=yes" | |
1992 | else | |
1993 | eval "$3=no" | |
1994 | fi | |
1995 | rm -f core conftest.err conftest.$ac_objext \ | |
1996 | conftest$ac_exeext conftest.$ac_ext | |
1997 | fi | |
1998 | eval ac_res=\$$3 | |
1999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2000 | $as_echo "$ac_res" >&6; } | |
2001 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2002 | ||
2003 | } # ac_fn_c_check_func | |
2004 | ||
2005 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
2006 | # --------------------------------------------- | |
2007 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2008 | # accordingly. | |
2009 | ac_fn_c_check_decl () | |
2010 | { | |
2011 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2012 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2013 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2015 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2016 | if eval \${$3+:} false; then : | |
2017 | $as_echo_n "(cached) " >&6 | |
2018 | else | |
2019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2020 | /* end confdefs.h. */ | |
7083c021 | 2021 | $4 |
c52df125 AC |
2022 | int |
2023 | main () | |
2024 | { | |
2025 | #ifndef $as_decl_name | |
2026 | #ifdef __cplusplus | |
2027 | (void) $as_decl_use; | |
2028 | #else | |
2029 | (void) $as_decl_name; | |
2030 | #endif | |
2031 | #endif | |
2032 | ||
2033 | ; | |
2034 | return 0; | |
2035 | } | |
212380e3 | 2036 | _ACEOF |
7083c021 AC |
2037 | if ac_fn_c_try_compile "$LINENO"; then : |
2038 | eval "$3=yes" | |
2039 | else | |
2040 | eval "$3=no" | |
2041 | fi | |
2042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2043 | fi | |
2044 | eval ac_res=\$$3 | |
2045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2046 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 2047 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 2048 | |
c52df125 | 2049 | } # ac_fn_c_check_decl |
212380e3 | 2050 | |
c52df125 AC |
2051 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2052 | # ------------------------------------------- | |
2053 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2054 | # variable VAR accordingly. | |
2055 | ac_fn_c_check_type () | |
7083c021 AC |
2056 | { |
2057 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2059 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 2060 | if eval \${$3+:} false; then : |
7083c021 | 2061 | $as_echo_n "(cached) " >&6 |
212380e3 | 2062 | else |
7083c021 AC |
2063 | eval "$3=no" |
2064 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2065 | /* end confdefs.h. */ | |
2066 | $4 | |
2067 | int | |
2068 | main () | |
2069 | { | |
2070 | if (sizeof ($2)) | |
2071 | return 0; | |
2072 | ; | |
2073 | return 0; | |
2074 | } | |
212380e3 | 2075 | _ACEOF |
7083c021 AC |
2076 | if ac_fn_c_try_compile "$LINENO"; then : |
2077 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 2078 | /* end confdefs.h. */ |
7083c021 | 2079 | $4 |
212380e3 AC |
2080 | int |
2081 | main () | |
2082 | { | |
7083c021 AC |
2083 | if (sizeof (($2))) |
2084 | return 0; | |
212380e3 AC |
2085 | ; |
2086 | return 0; | |
2087 | } | |
2088 | _ACEOF | |
7083c021 | 2089 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 2090 | |
631ef239 | 2091 | else |
7083c021 | 2092 | eval "$3=yes" |
212380e3 | 2093 | fi |
7083c021 | 2094 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 2095 | fi |
7083c021 | 2096 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 2097 | fi |
7083c021 AC |
2098 | eval ac_res=\$$3 |
2099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2100 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 2101 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 2102 | |
7083c021 AC |
2103 | } # ac_fn_c_check_type |
2104 | ||
2105 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2106 | # -------------------------------------------- | |
2107 | # Tries to find the compile-time value of EXPR in a program that includes | |
2108 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2109 | # computed | |
2110 | ac_fn_c_compute_int () | |
2111 | { | |
2112 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2113 | if test "$cross_compiling" = yes; then | |
2114 | # Depending upon the size, compute the lo and hi bounds. | |
2115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2116 | /* end confdefs.h. */ | |
2117 | $4 | |
2118 | int | |
2119 | main () | |
2120 | { | |
2121 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2eff3833 JT |
2122 | test_array [0] = 0; |
2123 | return test_array [0]; | |
7083c021 AC |
2124 | |
2125 | ; | |
2126 | return 0; | |
2127 | } | |
212380e3 | 2128 | _ACEOF |
7083c021 AC |
2129 | if ac_fn_c_try_compile "$LINENO"; then : |
2130 | ac_lo=0 ac_mid=0 | |
2131 | while :; do | |
2132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 2133 | /* end confdefs.h. */ |
7083c021 AC |
2134 | $4 |
2135 | int | |
2136 | main () | |
2137 | { | |
2138 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2eff3833 JT |
2139 | test_array [0] = 0; |
2140 | return test_array [0]; | |
212380e3 | 2141 | |
7083c021 AC |
2142 | ; |
2143 | return 0; | |
2144 | } | |
212380e3 | 2145 | _ACEOF |
7083c021 AC |
2146 | if ac_fn_c_try_compile "$LINENO"; then : |
2147 | ac_hi=$ac_mid; break | |
212380e3 | 2148 | else |
7083c021 AC |
2149 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2150 | if test $ac_lo -le $ac_mid; then | |
2151 | ac_lo= ac_hi= | |
2152 | break | |
2153 | fi | |
2154 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
212380e3 | 2155 | fi |
631ef239 | 2156 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
2157 | done |
2158 | else | |
2159 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2160 | /* end confdefs.h. */ | |
2161 | $4 | |
2162 | int | |
2163 | main () | |
2164 | { | |
2165 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2eff3833 JT |
2166 | test_array [0] = 0; |
2167 | return test_array [0]; | |
212380e3 | 2168 | |
7083c021 AC |
2169 | ; |
2170 | return 0; | |
2171 | } | |
212380e3 | 2172 | _ACEOF |
7083c021 AC |
2173 | if ac_fn_c_try_compile "$LINENO"; then : |
2174 | ac_hi=-1 ac_mid=-1 | |
2175 | while :; do | |
2176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2177 | /* end confdefs.h. */ | |
2178 | $4 | |
2179 | int | |
2180 | main () | |
2181 | { | |
2182 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2eff3833 JT |
2183 | test_array [0] = 0; |
2184 | return test_array [0]; | |
212380e3 | 2185 | |
7083c021 AC |
2186 | ; |
2187 | return 0; | |
2188 | } | |
2189 | _ACEOF | |
2190 | if ac_fn_c_try_compile "$LINENO"; then : | |
2191 | ac_lo=$ac_mid; break | |
2192 | else | |
2193 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2194 | if test $ac_mid -le $ac_hi; then | |
2195 | ac_lo= ac_hi= | |
2196 | break | |
2197 | fi | |
2198 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
212380e3 | 2199 | fi |
7083c021 AC |
2200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2201 | done | |
212380e3 | 2202 | else |
7083c021 AC |
2203 | ac_lo= ac_hi= |
2204 | fi | |
2205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2206 | fi | |
2207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2208 | # Binary search between lo and hi bounds. | |
2209 | while test "x$ac_lo" != "x$ac_hi"; do | |
2210 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2211 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 2212 | /* end confdefs.h. */ |
7083c021 AC |
2213 | $4 |
2214 | int | |
2215 | main () | |
2216 | { | |
2217 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2eff3833 JT |
2218 | test_array [0] = 0; |
2219 | return test_array [0]; | |
7083c021 AC |
2220 | |
2221 | ; | |
2222 | return 0; | |
2223 | } | |
212380e3 | 2224 | _ACEOF |
7083c021 AC |
2225 | if ac_fn_c_try_compile "$LINENO"; then : |
2226 | ac_hi=$ac_mid | |
212380e3 | 2227 | else |
7083c021 | 2228 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
212380e3 | 2229 | fi |
7083c021 AC |
2230 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2231 | done | |
2232 | case $ac_lo in #(( | |
2233 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2234 | '') ac_retval=1 ;; | |
2235 | esac | |
2236 | else | |
2237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2238 | /* end confdefs.h. */ | |
2239 | $4 | |
2240 | static long int longval () { return $2; } | |
2241 | static unsigned long int ulongval () { return $2; } | |
2242 | #include <stdio.h> | |
2243 | #include <stdlib.h> | |
2244 | int | |
2245 | main () | |
2246 | { | |
631ef239 | 2247 | |
7083c021 AC |
2248 | FILE *f = fopen ("conftest.val", "w"); |
2249 | if (! f) | |
2250 | return 1; | |
2251 | if (($2) < 0) | |
2252 | { | |
2253 | long int i = longval (); | |
2254 | if (i != ($2)) | |
2255 | return 1; | |
2256 | fprintf (f, "%ld", i); | |
2257 | } | |
2258 | else | |
2259 | { | |
2260 | unsigned long int i = ulongval (); | |
2261 | if (i != ($2)) | |
2262 | return 1; | |
2263 | fprintf (f, "%lu", i); | |
2264 | } | |
2265 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2266 | on some platforms. */ | |
2267 | return ferror (f) || fclose (f) != 0; | |
212380e3 | 2268 | |
7083c021 AC |
2269 | ; |
2270 | return 0; | |
2271 | } | |
212380e3 | 2272 | _ACEOF |
7083c021 AC |
2273 | if ac_fn_c_try_run "$LINENO"; then : |
2274 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
212380e3 | 2275 | else |
7083c021 | 2276 | ac_retval=1 |
212380e3 | 2277 | fi |
7083c021 AC |
2278 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2279 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2280 | rm -f conftest.val | |
631ef239 | 2281 | |
7083c021 | 2282 | fi |
b6d0720c | 2283 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 2284 | as_fn_set_status $ac_retval |
212380e3 | 2285 | |
7083c021 | 2286 | } # ac_fn_c_compute_int |
7083c021 AC |
2287 | cat >config.log <<_ACEOF |
2288 | This file contains any messages produced by compilers while | |
2289 | running configure, to aid debugging if configure makes a mistake. | |
212380e3 | 2290 | |
c52df125 | 2291 | It was created by charybdis $as_me 3.6.0-dev, which was |
2eff3833 | 2292 | generated by GNU Autoconf 2.69. Invocation command line was |
212380e3 | 2293 | |
7083c021 | 2294 | $ $0 $@ |
212380e3 | 2295 | |
7083c021 AC |
2296 | _ACEOF |
2297 | exec 5>>config.log | |
2298 | { | |
2299 | cat <<_ASUNAME | |
2300 | ## --------- ## | |
2301 | ## Platform. ## | |
2302 | ## --------- ## | |
2303 | ||
2304 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2305 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2306 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2307 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2308 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2309 | ||
2310 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2311 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2312 | ||
2313 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2314 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2315 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2316 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2317 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2318 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2319 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2320 | ||
2321 | _ASUNAME | |
212380e3 | 2322 | |
631ef239 | 2323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7083c021 | 2324 | for as_dir in $PATH |
631ef239 AC |
2325 | do |
2326 | IFS=$as_save_IFS | |
2327 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2328 | $as_echo "PATH: $as_dir" |
631ef239 | 2329 | done |
631ef239 AC |
2330 | IFS=$as_save_IFS |
2331 | ||
7083c021 | 2332 | } >&5 |
631ef239 | 2333 | |
7083c021 | 2334 | cat >&5 <<_ACEOF |
631ef239 | 2335 | |
631ef239 | 2336 | |
7083c021 AC |
2337 | ## ----------- ## |
2338 | ## Core tests. ## | |
2339 | ## ----------- ## | |
631ef239 | 2340 | |
7083c021 | 2341 | _ACEOF |
631ef239 AC |
2342 | |
2343 | ||
7083c021 AC |
2344 | # Keep a trace of the command line. |
2345 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2346 | # Strip out --silent because we don't want to record it for future runs. | |
2347 | # Also quote any args containing shell meta-characters. | |
2348 | # Make two passes to allow for proper duplicate-argument suppression. | |
2349 | ac_configure_args= | |
2350 | ac_configure_args0= | |
2351 | ac_configure_args1= | |
2352 | ac_must_keep_next=false | |
2353 | for ac_pass in 1 2 | |
631ef239 | 2354 | do |
7083c021 | 2355 | for ac_arg |
631ef239 | 2356 | do |
7083c021 AC |
2357 | case $ac_arg in |
2358 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2359 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2360 | | -silent | --silent | --silen | --sile | --sil) | |
2361 | continue ;; | |
2362 | *\'*) | |
2363 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2364 | esac | |
2365 | case $ac_pass in | |
2366 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2367 | 2) | |
2368 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2369 | if test $ac_must_keep_next = true; then | |
2370 | ac_must_keep_next=false # Got value, back to normal. | |
2371 | else | |
2372 | case $ac_arg in | |
2373 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2374 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2375 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2376 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2377 | case "$ac_configure_args0 " in | |
2378 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2379 | esac | |
2380 | ;; | |
2381 | -* ) ac_must_keep_next=true ;; | |
2382 | esac | |
2383 | fi | |
2384 | as_fn_append ac_configure_args " '$ac_arg'" | |
2385 | ;; | |
2386 | esac | |
631ef239 AC |
2387 | done |
2388 | done | |
7083c021 AC |
2389 | { ac_configure_args0=; unset ac_configure_args0;} |
2390 | { ac_configure_args1=; unset ac_configure_args1;} | |
631ef239 | 2391 | |
7083c021 AC |
2392 | # When interrupted or exit'd, cleanup temporary files, and complete |
2393 | # config.log. We remove comments because anyway the quotes in there | |
2394 | # would cause problems or look ugly. | |
2395 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2396 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2397 | trap 'exit_status=$? | |
2398 | # Save into config.log some information that might help in debugging. | |
2399 | { | |
2400 | echo | |
631ef239 | 2401 | |
b6d0720c | 2402 | $as_echo "## ---------------- ## |
7083c021 | 2403 | ## Cache variables. ## |
b6d0720c | 2404 | ## ---------------- ##" |
7083c021 AC |
2405 | echo |
2406 | # The following way of writing the cache mishandles newlines in values, | |
2407 | ( | |
2408 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2409 | eval ac_val=\$$ac_var | |
2410 | case $ac_val in #( | |
2411 | *${as_nl}*) | |
2412 | case $ac_var in #( | |
2413 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2414 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2415 | esac | |
2416 | case $ac_var in #( | |
2417 | _ | IFS | as_nl) ;; #( | |
2418 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2419 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2420 | esac ;; | |
2421 | esac | |
2422 | done | |
2423 | (set) 2>&1 | | |
2424 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2425 | *${as_nl}ac_space=\ *) | |
2426 | sed -n \ | |
2427 | "s/'\''/'\''\\\\'\'''\''/g; | |
2428 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2429 | ;; #( | |
2430 | *) | |
2431 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2432 | ;; | |
2433 | esac | | |
2434 | sort | |
2435 | ) | |
2436 | echo | |
631ef239 | 2437 | |
b6d0720c | 2438 | $as_echo "## ----------------- ## |
7083c021 | 2439 | ## Output variables. ## |
b6d0720c | 2440 | ## ----------------- ##" |
7083c021 AC |
2441 | echo |
2442 | for ac_var in $ac_subst_vars | |
2443 | do | |
2444 | eval ac_val=\$$ac_var | |
2445 | case $ac_val in | |
2446 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2447 | esac | |
2448 | $as_echo "$ac_var='\''$ac_val'\''" | |
2449 | done | sort | |
2450 | echo | |
631ef239 | 2451 | |
7083c021 | 2452 | if test -n "$ac_subst_files"; then |
b6d0720c | 2453 | $as_echo "## ------------------- ## |
7083c021 | 2454 | ## File substitutions. ## |
b6d0720c | 2455 | ## ------------------- ##" |
7083c021 AC |
2456 | echo |
2457 | for ac_var in $ac_subst_files | |
2458 | do | |
2459 | eval ac_val=\$$ac_var | |
2460 | case $ac_val in | |
2461 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2462 | esac | |
2463 | $as_echo "$ac_var='\''$ac_val'\''" | |
2464 | done | sort | |
2465 | echo | |
2466 | fi | |
631ef239 | 2467 | |
7083c021 | 2468 | if test -s confdefs.h; then |
b6d0720c | 2469 | $as_echo "## ----------- ## |
7083c021 | 2470 | ## confdefs.h. ## |
b6d0720c | 2471 | ## ----------- ##" |
7083c021 AC |
2472 | echo |
2473 | cat confdefs.h | |
2474 | echo | |
2475 | fi | |
2476 | test "$ac_signal" != 0 && | |
2477 | $as_echo "$as_me: caught signal $ac_signal" | |
2478 | $as_echo "$as_me: exit $exit_status" | |
2479 | } >&5 | |
2480 | rm -f core *.core core.conftest.* && | |
2481 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2482 | exit $exit_status | |
2483 | ' 0 | |
2484 | for ac_signal in 1 2 13 15; do | |
2485 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2486 | done | |
2487 | ac_signal=0 | |
631ef239 | 2488 | |
7083c021 AC |
2489 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2490 | rm -f -r conftest* confdefs.h | |
631ef239 | 2491 | |
7083c021 | 2492 | $as_echo "/* confdefs.h */" > confdefs.h |
212380e3 | 2493 | |
7083c021 | 2494 | # Predefined preprocessor variables. |
212380e3 | 2495 | |
7083c021 AC |
2496 | cat >>confdefs.h <<_ACEOF |
2497 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
212380e3 | 2498 | _ACEOF |
212380e3 | 2499 | |
7083c021 AC |
2500 | cat >>confdefs.h <<_ACEOF |
2501 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
212380e3 | 2502 | _ACEOF |
212380e3 | 2503 | |
7083c021 AC |
2504 | cat >>confdefs.h <<_ACEOF |
2505 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
212380e3 | 2506 | _ACEOF |
212380e3 | 2507 | |
7083c021 AC |
2508 | cat >>confdefs.h <<_ACEOF |
2509 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2510 | _ACEOF | |
212380e3 | 2511 | |
7083c021 AC |
2512 | cat >>confdefs.h <<_ACEOF |
2513 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2514 | _ACEOF | |
212380e3 | 2515 | |
7083c021 AC |
2516 | cat >>confdefs.h <<_ACEOF |
2517 | #define PACKAGE_URL "$PACKAGE_URL" | |
2518 | _ACEOF | |
212380e3 | 2519 | |
631ef239 | 2520 | |
7083c021 AC |
2521 | # Let the site file select an alternate cache file if it wants to. |
2522 | # Prefer an explicitly selected file to automatically selected ones. | |
2523 | ac_site_file1=NONE | |
2524 | ac_site_file2=NONE | |
2525 | if test -n "$CONFIG_SITE"; then | |
b6d0720c AC |
2526 | # We do not want a PATH search for config.site. |
2527 | case $CONFIG_SITE in #(( | |
2528 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2529 | */*) ac_site_file1=$CONFIG_SITE;; | |
2530 | *) ac_site_file1=./$CONFIG_SITE;; | |
2531 | esac | |
7083c021 AC |
2532 | elif test "x$prefix" != xNONE; then |
2533 | ac_site_file1=$prefix/share/config.site | |
2534 | ac_site_file2=$prefix/etc/config.site | |
212380e3 | 2535 | else |
7083c021 AC |
2536 | ac_site_file1=$ac_default_prefix/share/config.site |
2537 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2538 | fi | |
2539 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
212380e3 | 2540 | do |
7083c021 | 2541 | test "x$ac_site_file" = xNONE && continue |
6fb6bd15 | 2542 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
7083c021 AC |
2543 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2544 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2545 | sed 's/^/| /' "$ac_site_file" >&5 | |
b6d0720c AC |
2546 | . "$ac_site_file" \ |
2547 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2548 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2549 | as_fn_error $? "failed to load site script $ac_site_file | |
2550 | See \`config.log' for more details" "$LINENO" 5; } | |
212380e3 AC |
2551 | fi |
2552 | done | |
212380e3 | 2553 | |
7083c021 | 2554 | if test -r "$cache_file"; then |
6fb6bd15 AC |
2555 | # Some versions of bash will fail to source /dev/null (special files |
2556 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2557 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
7083c021 AC |
2558 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2559 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2560 | case $cache_file in | |
2561 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2562 | *) . "./$cache_file";; | |
2563 | esac | |
2564 | fi | |
212380e3 | 2565 | else |
7083c021 AC |
2566 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2567 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2568 | >$cache_file | |
212380e3 AC |
2569 | fi |
2570 | ||
7083c021 AC |
2571 | # Check that the precious variables saved in the cache have kept the same |
2572 | # value. | |
2573 | ac_cache_corrupted=false | |
2574 | for ac_var in $ac_precious_vars; do | |
2575 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2576 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2577 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2578 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2579 | case $ac_old_set,$ac_new_set in | |
2580 | set,) | |
2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2582 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2583 | ac_cache_corrupted=: ;; | |
2584 | ,set) | |
2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2586 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2587 | ac_cache_corrupted=: ;; | |
2588 | ,);; | |
2589 | *) | |
2590 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2591 | # differences in whitespace do not lead to failure. | |
2592 | ac_old_val_w=`echo x $ac_old_val` | |
2593 | ac_new_val_w=`echo x $ac_new_val` | |
2594 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2596 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2597 | ac_cache_corrupted=: | |
2598 | else | |
2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2600 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2601 | eval $ac_var=\$ac_old_val | |
2602 | fi | |
2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2604 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2606 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2607 | fi;; | |
2608 | esac | |
2609 | # Pass precious variables to config.status. | |
2610 | if test "$ac_new_set" = set; then | |
2611 | case $ac_new_val in | |
2612 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2613 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2614 | esac | |
2615 | case " $ac_configure_args " in | |
2616 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2617 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2618 | esac | |
212380e3 AC |
2619 | fi |
2620 | done | |
7083c021 AC |
2621 | if $ac_cache_corrupted; then |
2622 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2623 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2624 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2625 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
b6d0720c | 2626 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
212380e3 | 2627 | fi |
7083c021 AC |
2628 | ## -------------------- ## |
2629 | ## Main body of script. ## | |
2630 | ## -------------------- ## | |
212380e3 | 2631 | |
7083c021 AC |
2632 | ac_ext=c |
2633 | ac_cpp='$CPP $CPPFLAGS' | |
2634 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2635 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2636 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 | 2637 | |
212380e3 | 2638 | |
212380e3 | 2639 | |
eec2776c AJ |
2640 | ac_ext=c |
2641 | ac_cpp='$CPP $CPPFLAGS' | |
2642 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2643 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2644 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 | 2645 | |
c52df125 | 2646 | ac_aux_dir= |
eec2776c | 2647 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
c52df125 AC |
2648 | if test -f "$ac_dir/install-sh"; then |
2649 | ac_aux_dir=$ac_dir | |
2650 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2651 | break | |
2652 | elif test -f "$ac_dir/install.sh"; then | |
2653 | ac_aux_dir=$ac_dir | |
2654 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2655 | break | |
2656 | elif test -f "$ac_dir/shtool"; then | |
2657 | ac_aux_dir=$ac_dir | |
2658 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2659 | break | |
212380e3 AC |
2660 | fi |
2661 | done | |
c52df125 | 2662 | if test -z "$ac_aux_dir"; then |
eec2776c | 2663 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
212380e3 AC |
2664 | fi |
2665 | ||
c52df125 AC |
2666 | # These three variables are undocumented and unsupported, |
2667 | # and are intended to be withdrawn in a future Autoconf release. | |
2668 | # They can cause serious problems if a builder's source tree is in a directory | |
2669 | # whose full name contains unusual characters. | |
2670 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2671 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2672 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
631ef239 | 2673 | |
c52df125 | 2674 | |
eec2776c AJ |
2675 | # Expand $ac_aux_dir to an absolute path. |
2676 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
c52df125 | 2677 | |
eec2776c AJ |
2678 | ac_ext=c |
2679 | ac_cpp='$CPP $CPPFLAGS' | |
2680 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2681 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2682 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2683 | if test -n "$ac_tool_prefix"; then | |
2684 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2685 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2687 | $as_echo_n "checking for $ac_word... " >&6; } | |
2688 | if ${ac_cv_prog_CC+:} false; then : | |
7083c021 | 2689 | $as_echo_n "(cached) " >&6 |
212380e3 | 2690 | else |
eec2776c AJ |
2691 | if test -n "$CC"; then |
2692 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2693 | else | |
2694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2695 | for as_dir in $PATH |
2696 | do | |
2697 | IFS=$as_save_IFS | |
2698 | test -z "$as_dir" && as_dir=. | |
eec2776c AJ |
2699 | for ac_exec_ext in '' $ac_executable_extensions; do |
2700 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2701 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2702 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2703 | break 2 | |
2704 | fi | |
2705 | done | |
7083c021 | 2706 | done |
631ef239 | 2707 | IFS=$as_save_IFS |
212380e3 | 2708 | |
212380e3 | 2709 | fi |
7083c021 | 2710 | fi |
eec2776c AJ |
2711 | CC=$ac_cv_prog_CC |
2712 | if test -n "$CC"; then | |
2713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2714 | $as_echo "$CC" >&6; } | |
2715 | else | |
2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2717 | $as_echo "no" >&6; } | |
2718 | fi | |
212380e3 | 2719 | |
c52df125 | 2720 | |
eec2776c AJ |
2721 | fi |
2722 | if test -z "$ac_cv_prog_CC"; then | |
2723 | ac_ct_CC=$CC | |
2724 | # Extract the first word of "gcc", so it can be a program name with args. | |
2725 | set dummy gcc; ac_word=$2 | |
2726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2727 | $as_echo_n "checking for $ac_word... " >&6; } | |
2728 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2729 | $as_echo_n "(cached) " >&6 | |
2730 | else | |
2731 | if test -n "$ac_ct_CC"; then | |
2732 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2733 | else | |
2734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2735 | for as_dir in $PATH | |
2736 | do | |
2737 | IFS=$as_save_IFS | |
2738 | test -z "$as_dir" && as_dir=. | |
2739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2740 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2741 | ac_cv_prog_ac_ct_CC="gcc" | |
2742 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2743 | break 2 | |
2744 | fi | |
2745 | done | |
2746 | done | |
2747 | IFS=$as_save_IFS | |
c52df125 | 2748 | |
eec2776c AJ |
2749 | fi |
2750 | fi | |
2751 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2752 | if test -n "$ac_ct_CC"; then | |
2753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2754 | $as_echo "$ac_ct_CC" >&6; } | |
2755 | else | |
2756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2757 | $as_echo "no" >&6; } | |
2758 | fi | |
c52df125 | 2759 | |
eec2776c AJ |
2760 | if test "x$ac_ct_CC" = x; then |
2761 | CC="" | |
2762 | else | |
2763 | case $cross_compiling:$ac_tool_warned in | |
2764 | yes:) | |
2765 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2766 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2767 | ac_tool_warned=yes ;; | |
c52df125 | 2768 | esac |
eec2776c AJ |
2769 | CC=$ac_ct_CC |
2770 | fi | |
c52df125 | 2771 | else |
eec2776c | 2772 | CC="$ac_cv_prog_CC" |
c52df125 AC |
2773 | fi |
2774 | ||
eec2776c AJ |
2775 | if test -z "$CC"; then |
2776 | if test -n "$ac_tool_prefix"; then | |
2777 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2778 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
7083c021 AC |
2779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2780 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 2781 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2782 | $as_echo_n "(cached) " >&6 |
212380e3 | 2783 | else |
eec2776c AJ |
2784 | if test -n "$CC"; then |
2785 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7083c021 AC |
2786 | else |
2787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2788 | for as_dir in $PATH |
2789 | do | |
2790 | IFS=$as_save_IFS | |
2791 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2792 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2793 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eec2776c | 2794 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
7083c021 | 2795 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
212380e3 AC |
2796 | break 2 |
2797 | fi | |
2798 | done | |
7083c021 | 2799 | done |
631ef239 | 2800 | IFS=$as_save_IFS |
7083c021 | 2801 | |
212380e3 | 2802 | fi |
7083c021 | 2803 | fi |
eec2776c AJ |
2804 | CC=$ac_cv_prog_CC |
2805 | if test -n "$CC"; then | |
2806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2807 | $as_echo "$CC" >&6; } | |
212380e3 | 2808 | else |
7083c021 AC |
2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2810 | $as_echo "no" >&6; } | |
212380e3 AC |
2811 | fi |
2812 | ||
631ef239 | 2813 | |
eec2776c | 2814 | fi |
7083c021 | 2815 | fi |
eec2776c AJ |
2816 | if test -z "$CC"; then |
2817 | # Extract the first word of "cc", so it can be a program name with args. | |
2818 | set dummy cc; ac_word=$2 | |
7083c021 AC |
2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2820 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 2821 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2822 | $as_echo_n "(cached) " >&6 |
212380e3 | 2823 | else |
eec2776c AJ |
2824 | if test -n "$CC"; then |
2825 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7083c021 | 2826 | else |
eec2776c | 2827 | ac_prog_rejected=no |
7083c021 | 2828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
212380e3 AC |
2829 | for as_dir in $PATH |
2830 | do | |
2831 | IFS=$as_save_IFS | |
2832 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2833 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2834 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eec2776c AJ |
2835 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2836 | ac_prog_rejected=yes | |
2837 | continue | |
2838 | fi | |
2839 | ac_cv_prog_CC="cc" | |
7083c021 | 2840 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
212380e3 AC |
2841 | break 2 |
2842 | fi | |
2843 | done | |
7083c021 | 2844 | done |
631ef239 | 2845 | IFS=$as_save_IFS |
212380e3 | 2846 | |
eec2776c AJ |
2847 | if test $ac_prog_rejected = yes; then |
2848 | # We found a bogon in the path, so make sure we never use it. | |
2849 | set dummy $ac_cv_prog_CC | |
2850 | shift | |
2851 | if test $# != 0; then | |
2852 | # We chose a different compiler from the bogus one. | |
2853 | # However, it has the same basename, so the bogon will be chosen | |
2854 | # first if we set CC to just the basename; use the full file name. | |
2855 | shift | |
2856 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2857 | fi | |
212380e3 | 2858 | fi |
7083c021 | 2859 | fi |
eec2776c AJ |
2860 | fi |
2861 | CC=$ac_cv_prog_CC | |
2862 | if test -n "$CC"; then | |
2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2864 | $as_echo "$CC" >&6; } | |
212380e3 | 2865 | else |
7083c021 AC |
2866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2867 | $as_echo "no" >&6; } | |
212380e3 AC |
2868 | fi |
2869 | ||
631ef239 | 2870 | |
212380e3 | 2871 | fi |
eec2776c AJ |
2872 | if test -z "$CC"; then |
2873 | if test -n "$ac_tool_prefix"; then | |
2874 | for ac_prog in cl.exe | |
2875 | do | |
2876 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2877 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7083c021 AC |
2878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2879 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 2880 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2881 | $as_echo_n "(cached) " >&6 |
212380e3 | 2882 | else |
eec2776c AJ |
2883 | if test -n "$CC"; then |
2884 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 AC |
2885 | else |
2886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2887 | for as_dir in $PATH | |
2888 | do | |
2889 | IFS=$as_save_IFS | |
2890 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2891 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2892 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eec2776c | 2893 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
7083c021 | 2894 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
212380e3 AC |
2895 | break 2 |
2896 | fi | |
2897 | done | |
7083c021 | 2898 | done |
631ef239 | 2899 | IFS=$as_save_IFS |
212380e3 AC |
2900 | |
2901 | fi | |
2902 | fi | |
eec2776c AJ |
2903 | CC=$ac_cv_prog_CC |
2904 | if test -n "$CC"; then | |
2905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2906 | $as_echo "$CC" >&6; } | |
212380e3 | 2907 | else |
7083c021 AC |
2908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2909 | $as_echo "no" >&6; } | |
212380e3 AC |
2910 | fi |
2911 | ||
631ef239 | 2912 | |
eec2776c AJ |
2913 | test -n "$CC" && break |
2914 | done | |
2915 | fi | |
2916 | if test -z "$CC"; then | |
2917 | ac_ct_CC=$CC | |
2918 | for ac_prog in cl.exe | |
2919 | do | |
2920 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2921 | set dummy $ac_prog; ac_word=$2 | |
2922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2923 | $as_echo_n "checking for $ac_word... " >&6; } | |
2924 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
c52df125 AC |
2925 | $as_echo_n "(cached) " >&6 |
2926 | else | |
eec2776c AJ |
2927 | if test -n "$ac_ct_CC"; then |
2928 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2929 | else | |
2930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2931 | for as_dir in $PATH | |
2932 | do | |
2933 | IFS=$as_save_IFS | |
2934 | test -z "$as_dir" && as_dir=. | |
2935 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2936 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2937 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2939 | break 2 | |
2940 | fi | |
2941 | done | |
2942 | done | |
2943 | IFS=$as_save_IFS | |
2944 | ||
c52df125 | 2945 | fi |
eec2776c AJ |
2946 | fi |
2947 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2948 | if test -n "$ac_ct_CC"; then | |
2949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2950 | $as_echo "$ac_ct_CC" >&6; } | |
c52df125 AC |
2951 | else |
2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2953 | $as_echo "no" >&6; } | |
c52df125 AC |
2954 | fi |
2955 | ||
c52df125 | 2956 | |
eec2776c AJ |
2957 | test -n "$ac_ct_CC" && break |
2958 | done | |
c52df125 | 2959 | |
eec2776c AJ |
2960 | if test "x$ac_ct_CC" = x; then |
2961 | CC="" | |
2962 | else | |
2963 | case $cross_compiling:$ac_tool_warned in | |
2964 | yes:) | |
2965 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2966 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2967 | ac_tool_warned=yes ;; | |
c52df125 | 2968 | esac |
eec2776c | 2969 | CC=$ac_ct_CC |
c52df125 AC |
2970 | fi |
2971 | fi | |
2972 | ||
c52df125 AC |
2973 | fi |
2974 | ||
2975 | ||
eec2776c AJ |
2976 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2977 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2978 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2979 | See \`config.log' for more details" "$LINENO" 5; } | |
c52df125 | 2980 | |
eec2776c AJ |
2981 | # Provide some information about the compiler. |
2982 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2983 | set X $ac_compile | |
2984 | ac_compiler=$2 | |
2985 | for ac_option in --version -v -V -qversion; do | |
2986 | { { ac_try="$ac_compiler $ac_option >&5" | |
2987 | case "(($ac_try" in | |
2988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2989 | *) ac_try_echo=$ac_try;; | |
2990 | esac | |
2991 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2992 | $as_echo "$ac_try_echo"; } >&5 | |
2993 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2994 | ac_status=$? | |
2995 | if test -s conftest.err; then | |
2996 | sed '10a\ | |
2997 | ... rest of stderr output deleted ... | |
2998 | 10q' conftest.err >conftest.er1 | |
2999 | cat conftest.er1 >&5 | |
3000 | fi | |
3001 | rm -f conftest.er1 conftest.err | |
3002 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3003 | test $ac_status = 0; } | |
3004 | done | |
c52df125 | 3005 | |
eec2776c AJ |
3006 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3007 | /* end confdefs.h. */ | |
c52df125 | 3008 | |
eec2776c AJ |
3009 | int |
3010 | main () | |
3011 | { | |
c52df125 | 3012 | |
eec2776c AJ |
3013 | ; |
3014 | return 0; | |
3015 | } | |
c52df125 | 3016 | _ACEOF |
eec2776c AJ |
3017 | ac_clean_files_save=$ac_clean_files |
3018 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3019 | # Try to create an executable without -o first, disregard a.out. | |
3020 | # It will help us diagnose broken compilers, and finding out an intuition | |
3021 | # of exeext. | |
3022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3023 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3024 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
c52df125 | 3025 | |
eec2776c AJ |
3026 | # The possible output files: |
3027 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
c52df125 | 3028 | |
eec2776c AJ |
3029 | ac_rmfiles= |
3030 | for ac_file in $ac_files | |
3031 | do | |
3032 | case $ac_file in | |
3033 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3034 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3035 | esac | |
3036 | done | |
3037 | rm -f $ac_rmfiles | |
c52df125 | 3038 | |
eec2776c AJ |
3039 | if { { ac_try="$ac_link_default" |
3040 | case "(($ac_try" in | |
3041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3042 | *) ac_try_echo=$ac_try;; | |
3043 | esac | |
3044 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3045 | $as_echo "$ac_try_echo"; } >&5 | |
3046 | (eval "$ac_link_default") 2>&5 | |
3047 | ac_status=$? | |
3048 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3049 | test $ac_status = 0; }; then : | |
3050 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3051 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3052 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3053 | # so that the user can short-circuit this test for compilers unknown to | |
3054 | # Autoconf. | |
3055 | for ac_file in $ac_files '' | |
3056 | do | |
3057 | test -f "$ac_file" || continue | |
3058 | case $ac_file in | |
3059 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3060 | ;; | |
3061 | [ab].out ) | |
3062 | # We found the default executable, but exeext='' is most | |
3063 | # certainly right. | |
3064 | break;; | |
3065 | *.* ) | |
3066 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3067 | then :; else | |
3068 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3069 | fi | |
3070 | # We set ac_cv_exeext here because the later test for it is not | |
3071 | # safe: cross compilers may not add the suffix if given an `-o' | |
3072 | # argument, so we may need to know it at that point already. | |
3073 | # Even if this section looks crufty: it has the advantage of | |
3074 | # actually working. | |
3075 | break;; | |
3076 | * ) | |
3077 | break;; | |
3078 | esac | |
3079 | done | |
3080 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
c52df125 | 3081 | |
eec2776c AJ |
3082 | else |
3083 | ac_file='' | |
3084 | fi | |
3085 | if test -z "$ac_file"; then : | |
3086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3087 | $as_echo "no" >&6; } | |
3088 | $as_echo "$as_me: failed program was:" >&5 | |
3089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c52df125 | 3090 | |
eec2776c AJ |
3091 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3092 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3093 | as_fn_error 77 "C compiler cannot create executables | |
3094 | See \`config.log' for more details" "$LINENO" 5; } | |
3095 | else | |
3096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3097 | $as_echo "yes" >&6; } | |
3098 | fi | |
3099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3100 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3102 | $as_echo "$ac_file" >&6; } | |
3103 | ac_exeext=$ac_cv_exeext | |
c52df125 | 3104 | |
eec2776c AJ |
3105 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3106 | ac_clean_files=$ac_clean_files_save | |
3107 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3108 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3109 | if { { ac_try="$ac_link" | |
3110 | case "(($ac_try" in | |
3111 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3112 | *) ac_try_echo=$ac_try;; | |
3113 | esac | |
3114 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3115 | $as_echo "$ac_try_echo"; } >&5 | |
3116 | (eval "$ac_link") 2>&5 | |
3117 | ac_status=$? | |
3118 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3119 | test $ac_status = 0; }; then : | |
3120 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3121 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3122 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3123 | # `rm'. | |
3124 | for ac_file in conftest.exe conftest conftest.*; do | |
3125 | test -f "$ac_file" || continue | |
3126 | case $ac_file in | |
3127 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3128 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3129 | break;; | |
3130 | * ) break;; | |
3131 | esac | |
3132 | done | |
3133 | else | |
3134 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3135 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3136 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3137 | See \`config.log' for more details" "$LINENO" 5; } | |
3138 | fi | |
3139 | rm -f conftest conftest$ac_cv_exeext | |
3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3141 | $as_echo "$ac_cv_exeext" >&6; } | |
c52df125 | 3142 | |
eec2776c AJ |
3143 | rm -f conftest.$ac_ext |
3144 | EXEEXT=$ac_cv_exeext | |
3145 | ac_exeext=$EXEEXT | |
3146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3147 | /* end confdefs.h. */ | |
3148 | #include <stdio.h> | |
3149 | int | |
3150 | main () | |
3151 | { | |
3152 | FILE *f = fopen ("conftest.out", "w"); | |
3153 | return ferror (f) || fclose (f) != 0; | |
c52df125 | 3154 | |
eec2776c AJ |
3155 | ; |
3156 | return 0; | |
3157 | } | |
3158 | _ACEOF | |
3159 | ac_clean_files="$ac_clean_files conftest.out" | |
3160 | # Check that the compiler produces executables we can run. If not, either | |
3161 | # the compiler is broken, or we cross compile. | |
3162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3163 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3164 | if test "$cross_compiling" != yes; then | |
3165 | { { ac_try="$ac_link" | |
3166 | case "(($ac_try" in | |
3167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3168 | *) ac_try_echo=$ac_try;; | |
3169 | esac | |
3170 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3171 | $as_echo "$ac_try_echo"; } >&5 | |
3172 | (eval "$ac_link") 2>&5 | |
3173 | ac_status=$? | |
3174 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3175 | test $ac_status = 0; } | |
3176 | if { ac_try='./conftest$ac_cv_exeext' | |
3177 | { { case "(($ac_try" in | |
3178 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3179 | *) ac_try_echo=$ac_try;; | |
3180 | esac | |
3181 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3182 | $as_echo "$ac_try_echo"; } >&5 | |
3183 | (eval "$ac_try") 2>&5 | |
3184 | ac_status=$? | |
3185 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3186 | test $ac_status = 0; }; }; then | |
3187 | cross_compiling=no | |
c52df125 | 3188 | else |
eec2776c AJ |
3189 | if test "$cross_compiling" = maybe; then |
3190 | cross_compiling=yes | |
3191 | else | |
3192 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3193 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3194 | as_fn_error $? "cannot run C compiled programs. | |
3195 | If you meant to cross compile, use \`--host'. | |
3196 | See \`config.log' for more details" "$LINENO" 5; } | |
3197 | fi | |
c52df125 AC |
3198 | fi |
3199 | fi | |
eec2776c AJ |
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3201 | $as_echo "$cross_compiling" >&6; } | |
c52df125 | 3202 | |
eec2776c AJ |
3203 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3204 | ac_clean_files=$ac_clean_files_save | |
3205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3206 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3207 | if ${ac_cv_objext+:} false; then : | |
c52df125 AC |
3208 | $as_echo_n "(cached) " >&6 |
3209 | else | |
eec2776c AJ |
3210 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3211 | /* end confdefs.h. */ | |
3212 | ||
3213 | int | |
3214 | main () | |
3215 | { | |
3216 | ||
3217 | ; | |
3218 | return 0; | |
3219 | } | |
3220 | _ACEOF | |
3221 | rm -f conftest.o conftest.obj | |
3222 | if { { ac_try="$ac_compile" | |
3223 | case "(($ac_try" in | |
3224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3225 | *) ac_try_echo=$ac_try;; | |
3226 | esac | |
3227 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3228 | $as_echo "$ac_try_echo"; } >&5 | |
3229 | (eval "$ac_compile") 2>&5 | |
3230 | ac_status=$? | |
3231 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3232 | test $ac_status = 0; }; then : | |
3233 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3234 | test -f "$ac_file" || continue; | |
3235 | case $ac_file in | |
3236 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3237 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3238 | break;; | |
3239 | esac | |
3240 | done | |
c52df125 | 3241 | else |
eec2776c AJ |
3242 | $as_echo "$as_me: failed program was:" >&5 |
3243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3244 | ||
3245 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3246 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3247 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3248 | See \`config.log' for more details" "$LINENO" 5; } | |
c52df125 | 3249 | fi |
eec2776c | 3250 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
c52df125 | 3251 | fi |
eec2776c AJ |
3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3253 | $as_echo "$ac_cv_objext" >&6; } | |
3254 | OBJEXT=$ac_cv_objext | |
3255 | ac_objext=$OBJEXT | |
3256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3257 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3258 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3259 | $as_echo_n "(cached) " >&6 | |
c52df125 | 3260 | else |
eec2776c AJ |
3261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3262 | /* end confdefs.h. */ | |
c52df125 | 3263 | |
eec2776c AJ |
3264 | int |
3265 | main () | |
3266 | { | |
3267 | #ifndef __GNUC__ | |
3268 | choke me | |
3269 | #endif | |
c52df125 | 3270 | |
eec2776c AJ |
3271 | ; |
3272 | return 0; | |
3273 | } | |
3274 | _ACEOF | |
3275 | if ac_fn_c_try_compile "$LINENO"; then : | |
3276 | ac_compiler_gnu=yes | |
3277 | else | |
3278 | ac_compiler_gnu=no | |
c52df125 | 3279 | fi |
eec2776c AJ |
3280 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3281 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
c52df125 | 3282 | |
c52df125 | 3283 | fi |
eec2776c AJ |
3284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3285 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3286 | if test $ac_compiler_gnu = yes; then | |
3287 | GCC=yes | |
c52df125 | 3288 | else |
eec2776c | 3289 | GCC= |
c52df125 | 3290 | fi |
eec2776c AJ |
3291 | ac_test_CFLAGS=${CFLAGS+set} |
3292 | ac_save_CFLAGS=$CFLAGS | |
3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3294 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3295 | if ${ac_cv_prog_cc_g+:} false; then : | |
c52df125 AC |
3296 | $as_echo_n "(cached) " >&6 |
3297 | else | |
eec2776c AJ |
3298 | ac_save_c_werror_flag=$ac_c_werror_flag |
3299 | ac_c_werror_flag=yes | |
3300 | ac_cv_prog_cc_g=no | |
3301 | CFLAGS="-g" | |
3302 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3303 | /* end confdefs.h. */ | |
c52df125 | 3304 | |
eec2776c AJ |
3305 | int |
3306 | main () | |
3307 | { | |
3308 | ||
3309 | ; | |
3310 | return 0; | |
3311 | } | |
3312 | _ACEOF | |
3313 | if ac_fn_c_try_compile "$LINENO"; then : | |
3314 | ac_cv_prog_cc_g=yes | |
c52df125 | 3315 | else |
eec2776c AJ |
3316 | CFLAGS="" |
3317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3318 | /* end confdefs.h. */ | |
c52df125 | 3319 | |
eec2776c AJ |
3320 | int |
3321 | main () | |
3322 | { | |
3323 | ||
3324 | ; | |
3325 | return 0; | |
3326 | } | |
3327 | _ACEOF | |
3328 | if ac_fn_c_try_compile "$LINENO"; then : | |
c52df125 | 3329 | |
c52df125 | 3330 | else |
eec2776c AJ |
3331 | ac_c_werror_flag=$ac_save_c_werror_flag |
3332 | CFLAGS="-g" | |
3333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3334 | /* end confdefs.h. */ | |
3335 | ||
3336 | int | |
3337 | main () | |
3338 | { | |
c52df125 | 3339 | |
eec2776c AJ |
3340 | ; |
3341 | return 0; | |
3342 | } | |
3343 | _ACEOF | |
3344 | if ac_fn_c_try_compile "$LINENO"; then : | |
3345 | ac_cv_prog_cc_g=yes | |
c52df125 | 3346 | fi |
eec2776c | 3347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c52df125 | 3348 | fi |
eec2776c | 3349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c52df125 | 3350 | fi |
eec2776c AJ |
3351 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3352 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3353 | fi | |
3354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3355 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3356 | if test "$ac_test_CFLAGS" = set; then | |
3357 | CFLAGS=$ac_save_CFLAGS | |
3358 | elif test $ac_cv_prog_cc_g = yes; then | |
3359 | if test "$GCC" = yes; then | |
3360 | CFLAGS="-g -O2" | |
7083c021 | 3361 | else |
eec2776c | 3362 | CFLAGS="-g" |
7083c021 | 3363 | fi |
c52df125 | 3364 | else |
eec2776c AJ |
3365 | if test "$GCC" = yes; then |
3366 | CFLAGS="-O2" | |
3367 | else | |
3368 | CFLAGS= | |
c52df125 | 3369 | fi |
c52df125 | 3370 | fi |
eec2776c AJ |
3371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3372 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3373 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3374 | $as_echo_n "(cached) " >&6 | |
c52df125 | 3375 | else |
eec2776c AJ |
3376 | ac_cv_prog_cc_c89=no |
3377 | ac_save_CC=$CC | |
3378 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3379 | /* end confdefs.h. */ | |
3380 | #include <stdarg.h> | |
3381 | #include <stdio.h> | |
3382 | struct stat; | |
3383 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3384 | struct buf { int x; }; | |
3385 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3386 | static char *e (p, i) | |
3387 | char **p; | |
3388 | int i; | |
3389 | { | |
3390 | return p[i]; | |
3391 | } | |
3392 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3393 | { | |
3394 | char *s; | |
3395 | va_list v; | |
3396 | va_start (v,p); | |
3397 | s = g (p, va_arg (v,int)); | |
3398 | va_end (v); | |
3399 | return s; | |
3400 | } | |
3401 | ||
3402 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3403 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3404 | These don't provoke an error unfortunately, instead are silently treated | |
3405 | as 'x'. The following induces an error, until -std is added to get | |
3406 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3407 | array size at least. It's necessary to write '\x00'==0 to get something | |
3408 | that's true only with -std. */ | |
3409 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
c52df125 | 3410 | |
eec2776c AJ |
3411 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3412 | inside strings and character constants. */ | |
3413 | #define FOO(x) 'x' | |
3414 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
c52df125 | 3415 | |
eec2776c AJ |
3416 | int test (int i, double x); |
3417 | struct s1 {int (*f) (int a);}; | |
3418 | struct s2 {int (*f) (double a);}; | |
3419 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3420 | int argc; | |
3421 | char **argv; | |
3422 | int | |
3423 | main () | |
3424 | { | |
3425 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3426 | ; | |
3427 | return 0; | |
3428 | } | |
3429 | _ACEOF | |
3430 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3431 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c52df125 | 3432 | do |
eec2776c AJ |
3433 | CC="$ac_save_CC $ac_arg" |
3434 | if ac_fn_c_try_compile "$LINENO"; then : | |
3435 | ac_cv_prog_cc_c89=$ac_arg | |
3436 | fi | |
3437 | rm -f core conftest.err conftest.$ac_objext | |
3438 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c52df125 | 3439 | done |
eec2776c AJ |
3440 | rm -f conftest.$ac_ext |
3441 | CC=$ac_save_CC | |
c52df125 | 3442 | |
c52df125 | 3443 | fi |
eec2776c AJ |
3444 | # AC_CACHE_VAL |
3445 | case "x$ac_cv_prog_cc_c89" in | |
3446 | x) | |
3447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3448 | $as_echo "none needed" >&6; } ;; | |
3449 | xno) | |
3450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3451 | $as_echo "unsupported" >&6; } ;; | |
3452 | *) | |
3453 | CC="$CC $ac_cv_prog_cc_c89" | |
3454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3455 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3456 | esac | |
3457 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3458 | ||
c52df125 AC |
3459 | fi |
3460 | ||
eec2776c AJ |
3461 | ac_ext=c |
3462 | ac_cpp='$CPP $CPPFLAGS' | |
3463 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3464 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3465 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 3466 | |
eec2776c AJ |
3467 | ac_ext=c |
3468 | ac_cpp='$CPP $CPPFLAGS' | |
3469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3470 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3471 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3473 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3474 | if ${am_cv_prog_cc_c_o+:} false; then : | |
c52df125 AC |
3475 | $as_echo_n "(cached) " >&6 |
3476 | else | |
eec2776c AJ |
3477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3478 | /* end confdefs.h. */ | |
c52df125 | 3479 | |
eec2776c AJ |
3480 | int |
3481 | main () | |
3482 | { | |
3483 | ||
3484 | ; | |
3485 | return 0; | |
3486 | } | |
3487 | _ACEOF | |
3488 | # Make sure it works both with $CC and with simple cc. | |
3489 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3490 | # compilers refuse to overwrite an existing .o file with -o, | |
3491 | # though they will create one. | |
3492 | am_cv_prog_cc_c_o=yes | |
3493 | for am_i in 1 2; do | |
3494 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3495 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3496 | ac_status=$? | |
3497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3498 | (exit $ac_status); } \ | |
3499 | && test -f conftest2.$ac_objext; then | |
3500 | : OK | |
3501 | else | |
3502 | am_cv_prog_cc_c_o=no | |
3503 | break | |
3504 | fi | |
3505 | done | |
3506 | rm -f core conftest* | |
3507 | unset am_i | |
c52df125 | 3508 | fi |
eec2776c AJ |
3509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
3510 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3511 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3512 | # Losing compiler, so override with the script. | |
3513 | # FIXME: It is wrong to rewrite CC. | |
3514 | # But if we don't then we get into trouble of one sort or another. | |
3515 | # A longer-term fix would be to have automake use am__CC in this case, | |
3516 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3517 | CC="$am_aux_dir/compile $CC" | |
c52df125 | 3518 | fi |
eec2776c AJ |
3519 | ac_ext=c |
3520 | ac_cpp='$CPP $CPPFLAGS' | |
3521 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3522 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3523 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
3524 | |
3525 | ||
eec2776c AJ |
3526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
3527 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
3528 | if ${ac_cv_prog_cc_c99+:} false; then : | |
c52df125 AC |
3529 | $as_echo_n "(cached) " >&6 |
3530 | else | |
eec2776c AJ |
3531 | ac_cv_prog_cc_c99=no |
3532 | ac_save_CC=$CC | |
3533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3534 | /* end confdefs.h. */ | |
3535 | #include <stdarg.h> | |
3536 | #include <stdbool.h> | |
3537 | #include <stdlib.h> | |
3538 | #include <wchar.h> | |
3539 | #include <stdio.h> | |
c52df125 | 3540 | |
eec2776c AJ |
3541 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
3542 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
3543 | #define showlist(...) puts (#__VA_ARGS__) | |
3544 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
3545 | static void | |
3546 | test_varargs_macros (void) | |
3547 | { | |
3548 | int x = 1234; | |
3549 | int y = 5678; | |
3550 | debug ("Flag"); | |
3551 | debug ("X = %d\n", x); | |
3552 | showlist (The first, second, and third items.); | |
3553 | report (x>y, "x is %d but y is %d", x, y); | |
3554 | } | |
c52df125 | 3555 | |
eec2776c AJ |
3556 | // Check long long types. |
3557 | #define BIG64 18446744073709551615ull | |
3558 | #define BIG32 4294967295ul | |
3559 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
3560 | #if !BIG_OK | |
3561 | your preprocessor is broken; | |
3562 | #endif | |
3563 | #if BIG_OK | |
3564 | #else | |
3565 | your preprocessor is broken; | |
3566 | #endif | |
3567 | static long long int bignum = -9223372036854775807LL; | |
3568 | static unsigned long long int ubignum = BIG64; | |
c52df125 | 3569 | |
eec2776c AJ |
3570 | struct incomplete_array |
3571 | { | |
3572 | int datasize; | |
3573 | double data[]; | |
3574 | }; | |
c52df125 | 3575 | |
eec2776c AJ |
3576 | struct named_init { |
3577 | int number; | |
3578 | const wchar_t *name; | |
3579 | double average; | |
3580 | }; | |
c52df125 | 3581 | |
eec2776c | 3582 | typedef const char *ccp; |
c52df125 | 3583 | |
eec2776c AJ |
3584 | static inline int |
3585 | test_restrict (ccp restrict text) | |
3586 | { | |
3587 | // See if C++-style comments work. | |
3588 | // Iterate through items via the restricted pointer. | |
3589 | // Also check for declarations in for loops. | |
3590 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
3591 | continue; | |
3592 | return 0; | |
3593 | } | |
c52df125 | 3594 | |
eec2776c AJ |
3595 | // Check varargs and va_copy. |
3596 | static void | |
3597 | test_varargs (const char *format, ...) | |
3598 | { | |
3599 | va_list args; | |
3600 | va_start (args, format); | |
3601 | va_list args_copy; | |
3602 | va_copy (args_copy, args); | |
c52df125 | 3603 | |
eec2776c AJ |
3604 | const char *str; |
3605 | int number; | |
3606 | float fnumber; | |
3607 | ||
3608 | while (*format) | |
3609 | { | |
3610 | switch (*format++) | |
3611 | { | |
3612 | case 's': // string | |
3613 | str = va_arg (args_copy, const char *); | |
3614 | break; | |
3615 | case 'd': // int | |
3616 | number = va_arg (args_copy, int); | |
3617 | break; | |
3618 | case 'f': // float | |
3619 | fnumber = va_arg (args_copy, double); | |
3620 | break; | |
3621 | default: | |
3622 | break; | |
3623 | } | |
3624 | } | |
3625 | va_end (args_copy); | |
3626 | va_end (args); | |
3627 | } | |
c52df125 AC |
3628 | |
3629 | int | |
3630 | main () | |
3631 | { | |
3632 | ||
eec2776c AJ |
3633 | // Check bool. |
3634 | _Bool success = false; | |
3635 | ||
3636 | // Check restrict. | |
3637 | if (test_restrict ("String literal") == 0) | |
3638 | success = true; | |
3639 | char *restrict newvar = "Another string"; | |
3640 | ||
3641 | // Check varargs. | |
3642 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
3643 | test_varargs_macros (); | |
3644 | ||
3645 | // Check flexible array members. | |
3646 | struct incomplete_array *ia = | |
3647 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
3648 | ia->datasize = 10; | |
3649 | for (int i = 0; i < ia->datasize; ++i) | |
3650 | ia->data[i] = i * 1.234; | |
3651 | ||
3652 | // Check named initializers. | |
3653 | struct named_init ni = { | |
3654 | .number = 34, | |
3655 | .name = L"Test wide string", | |
3656 | .average = 543.34343, | |
3657 | }; | |
3658 | ||
3659 | ni.number = 58; | |
3660 | ||
3661 | int dynamic_array[ni.number]; | |
3662 | dynamic_array[ni.number - 1] = 543; | |
3663 | ||
3664 | // work around unused variable warnings | |
3665 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
3666 | || dynamic_array[ni.number - 1] != 543); | |
3667 | ||
c52df125 AC |
3668 | ; |
3669 | return 0; | |
3670 | } | |
3671 | _ACEOF | |
eec2776c | 3672 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 |
c52df125 | 3673 | do |
eec2776c AJ |
3674 | CC="$ac_save_CC $ac_arg" |
3675 | if ac_fn_c_try_compile "$LINENO"; then : | |
3676 | ac_cv_prog_cc_c99=$ac_arg | |
3677 | fi | |
3678 | rm -f core conftest.err conftest.$ac_objext | |
3679 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
c52df125 | 3680 | done |
eec2776c AJ |
3681 | rm -f conftest.$ac_ext |
3682 | CC=$ac_save_CC | |
c52df125 | 3683 | |
c52df125 | 3684 | fi |
eec2776c AJ |
3685 | # AC_CACHE_VAL |
3686 | case "x$ac_cv_prog_cc_c99" in | |
3687 | x) | |
3688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3689 | $as_echo "none needed" >&6; } ;; | |
3690 | xno) | |
3691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3692 | $as_echo "unsupported" >&6; } ;; | |
3693 | *) | |
3694 | CC="$CC $ac_cv_prog_cc_c99" | |
3695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
3696 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
c52df125 | 3697 | esac |
eec2776c AJ |
3698 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
3699 | ||
c52df125 | 3700 | fi |
c52df125 | 3701 | |
c52df125 | 3702 | |
c52df125 | 3703 | |
eec2776c AJ |
3704 | ac_ext=c |
3705 | ac_cpp='$CPP $CPPFLAGS' | |
3706 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3707 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3708 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3710 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3711 | # On Suns, sometimes $CPP names a directory. | |
3712 | if test -n "$CPP" && test -d "$CPP"; then | |
3713 | CPP= | |
3714 | fi | |
3715 | if test -z "$CPP"; then | |
3716 | if ${ac_cv_prog_CPP+:} false; then : | |
c52df125 AC |
3717 | $as_echo_n "(cached) " >&6 |
3718 | else | |
eec2776c AJ |
3719 | # Double quotes because CPP needs to be expanded |
3720 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3721 | do | |
3722 | ac_preproc_ok=false | |
3723 | for ac_c_preproc_warn_flag in '' yes | |
3724 | do | |
3725 | # Use a header file that comes with gcc, so configuring glibc | |
3726 | # with a fresh cross-compiler works. | |
3727 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3728 | # <limits.h> exists even on freestanding compilers. | |
3729 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3730 | # not just through cpp. "Syntax error" is here to catch this case. | |
c52df125 AC |
3731 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3732 | /* end confdefs.h. */ | |
eec2776c AJ |
3733 | #ifdef __STDC__ |
3734 | # include <limits.h> | |
3735 | #else | |
3736 | # include <assert.h> | |
3737 | #endif | |
3738 | Syntax error | |
c52df125 | 3739 | _ACEOF |
eec2776c | 3740 | if ac_fn_c_try_cpp "$LINENO"; then : |
c52df125 | 3741 | |
c52df125 | 3742 | else |
eec2776c AJ |
3743 | # Broken: fails on valid input. |
3744 | continue | |
3745 | fi | |
3746 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3747 | ||
3748 | # OK, works on sane cases. Now check whether nonexistent headers | |
3749 | # can be detected and how. | |
c52df125 AC |
3750 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3751 | /* end confdefs.h. */ | |
eec2776c | 3752 | #include <ac_nonexistent.h> |
c52df125 | 3753 | _ACEOF |
eec2776c AJ |
3754 | if ac_fn_c_try_cpp "$LINENO"; then : |
3755 | # Broken: success on invalid input. | |
3756 | continue | |
c52df125 | 3757 | else |
eec2776c AJ |
3758 | # Passes both tests. |
3759 | ac_preproc_ok=: | |
3760 | break | |
c52df125 | 3761 | fi |
eec2776c | 3762 | rm -f conftest.err conftest.i conftest.$ac_ext |
c52df125 | 3763 | |
eec2776c AJ |
3764 | done |
3765 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3766 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3767 | if $ac_preproc_ok; then : | |
3768 | break | |
c52df125 | 3769 | fi |
eec2776c AJ |
3770 | |
3771 | done | |
3772 | ac_cv_prog_CPP=$CPP | |
3773 | ||
c52df125 | 3774 | fi |
eec2776c | 3775 | CPP=$ac_cv_prog_CPP |
c52df125 | 3776 | else |
eec2776c AJ |
3777 | ac_cv_prog_CPP=$CPP |
3778 | fi | |
3779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3780 | $as_echo "$CPP" >&6; } | |
3781 | ac_preproc_ok=false | |
3782 | for ac_c_preproc_warn_flag in '' yes | |
3783 | do | |
3784 | # Use a header file that comes with gcc, so configuring glibc | |
3785 | # with a fresh cross-compiler works. | |
3786 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3787 | # <limits.h> exists even on freestanding compilers. | |
3788 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3789 | # not just through cpp. "Syntax error" is here to catch this case. | |
3790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 3791 | /* end confdefs.h. */ |
eec2776c AJ |
3792 | #ifdef __STDC__ |
3793 | # include <limits.h> | |
3794 | #else | |
3795 | # include <assert.h> | |
3796 | #endif | |
3797 | Syntax error | |
3798 | _ACEOF | |
3799 | if ac_fn_c_try_cpp "$LINENO"; then : | |
c52df125 | 3800 | |
eec2776c AJ |
3801 | else |
3802 | # Broken: fails on valid input. | |
3803 | continue | |
3804 | fi | |
3805 | rm -f conftest.err conftest.i conftest.$ac_ext | |
c52df125 | 3806 | |
eec2776c AJ |
3807 | # OK, works on sane cases. Now check whether nonexistent headers |
3808 | # can be detected and how. | |
3809 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3810 | /* end confdefs.h. */ | |
3811 | #include <ac_nonexistent.h> | |
c52df125 | 3812 | _ACEOF |
eec2776c AJ |
3813 | if ac_fn_c_try_cpp "$LINENO"; then : |
3814 | # Broken: success on invalid input. | |
3815 | continue | |
c52df125 | 3816 | else |
eec2776c AJ |
3817 | # Passes both tests. |
3818 | ac_preproc_ok=: | |
3819 | break | |
3820 | fi | |
3821 | rm -f conftest.err conftest.i conftest.$ac_ext | |
c52df125 | 3822 | |
eec2776c AJ |
3823 | done |
3824 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3825 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3826 | if $ac_preproc_ok; then : | |
3827 | ||
3828 | else | |
3829 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3830 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3831 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3832 | See \`config.log' for more details" "$LINENO" 5; } | |
3833 | fi | |
3834 | ||
3835 | ac_ext=c | |
3836 | ac_cpp='$CPP $CPPFLAGS' | |
3837 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3838 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3839 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 3840 | |
c52df125 | 3841 | |
eec2776c AJ |
3842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3843 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3844 | if ${ac_cv_path_GREP+:} false; then : | |
3845 | $as_echo_n "(cached) " >&6 | |
c52df125 | 3846 | else |
eec2776c AJ |
3847 | if test -z "$GREP"; then |
3848 | ac_path_GREP_found=false | |
3849 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3851 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3852 | do | |
3853 | IFS=$as_save_IFS | |
3854 | test -z "$as_dir" && as_dir=. | |
3855 | for ac_prog in grep ggrep; do | |
3856 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3857 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3858 | as_fn_executable_p "$ac_path_GREP" || continue | |
3859 | # Check for GNU ac_path_GREP and select it if it is found. | |
3860 | # Check for GNU $ac_path_GREP | |
3861 | case `"$ac_path_GREP" --version 2>&1` in | |
3862 | *GNU*) | |
3863 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3864 | *) | |
3865 | ac_count=0 | |
3866 | $as_echo_n 0123456789 >"conftest.in" | |
3867 | while : | |
3868 | do | |
3869 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3870 | mv "conftest.tmp" "conftest.in" | |
3871 | cp "conftest.in" "conftest.nl" | |
3872 | $as_echo 'GREP' >> "conftest.nl" | |
3873 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3874 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3875 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3876 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3877 | # Best one so far, save it but keep looking for a better one | |
3878 | ac_cv_path_GREP="$ac_path_GREP" | |
3879 | ac_path_GREP_max=$ac_count | |
3880 | fi | |
3881 | # 10*(2^10) chars as input seems more than enough | |
3882 | test $ac_count -gt 10 && break | |
3883 | done | |
3884 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3885 | esac | |
3886 | ||
3887 | $ac_path_GREP_found && break 3 | |
3888 | done | |
3889 | done | |
3890 | done | |
3891 | IFS=$as_save_IFS | |
3892 | if test -z "$ac_cv_path_GREP"; then | |
3893 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3894 | fi | |
3895 | else | |
3896 | ac_cv_path_GREP=$GREP | |
3897 | fi | |
3898 | ||
3899 | fi | |
3900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3901 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3902 | GREP="$ac_cv_path_GREP" | |
3903 | ||
3904 | ||
3905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3906 | $as_echo_n "checking for egrep... " >&6; } | |
3907 | if ${ac_cv_path_EGREP+:} false; then : | |
3908 | $as_echo_n "(cached) " >&6 | |
3909 | else | |
3910 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3911 | then ac_cv_path_EGREP="$GREP -E" | |
3912 | else | |
3913 | if test -z "$EGREP"; then | |
3914 | ac_path_EGREP_found=false | |
3915 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3917 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3918 | do | |
3919 | IFS=$as_save_IFS | |
3920 | test -z "$as_dir" && as_dir=. | |
3921 | for ac_prog in egrep; do | |
3922 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3923 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3924 | as_fn_executable_p "$ac_path_EGREP" || continue | |
3925 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3926 | # Check for GNU $ac_path_EGREP | |
3927 | case `"$ac_path_EGREP" --version 2>&1` in | |
3928 | *GNU*) | |
3929 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3930 | *) | |
3931 | ac_count=0 | |
3932 | $as_echo_n 0123456789 >"conftest.in" | |
3933 | while : | |
3934 | do | |
3935 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3936 | mv "conftest.tmp" "conftest.in" | |
3937 | cp "conftest.in" "conftest.nl" | |
3938 | $as_echo 'EGREP' >> "conftest.nl" | |
3939 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3940 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3941 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3942 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3943 | # Best one so far, save it but keep looking for a better one | |
3944 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3945 | ac_path_EGREP_max=$ac_count | |
3946 | fi | |
3947 | # 10*(2^10) chars as input seems more than enough | |
3948 | test $ac_count -gt 10 && break | |
3949 | done | |
3950 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3951 | esac | |
3952 | ||
3953 | $ac_path_EGREP_found && break 3 | |
3954 | done | |
3955 | done | |
3956 | done | |
3957 | IFS=$as_save_IFS | |
3958 | if test -z "$ac_cv_path_EGREP"; then | |
3959 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3960 | fi | |
3961 | else | |
3962 | ac_cv_path_EGREP=$EGREP | |
3963 | fi | |
3964 | ||
3965 | fi | |
3966 | fi | |
3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3968 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3969 | EGREP="$ac_cv_path_EGREP" | |
3970 | ||
3971 | ||
3972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3973 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3974 | if ${ac_cv_header_stdc+:} false; then : | |
3975 | $as_echo_n "(cached) " >&6 | |
3976 | else | |
3977 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 3978 | /* end confdefs.h. */ |
eec2776c AJ |
3979 | #include <stdlib.h> |
3980 | #include <stdarg.h> | |
3981 | #include <string.h> | |
3982 | #include <float.h> | |
c52df125 AC |
3983 | |
3984 | int | |
3985 | main () | |
3986 | { | |
3987 | ||
3988 | ; | |
3989 | return 0; | |
3990 | } | |
3991 | _ACEOF | |
3992 | if ac_fn_c_try_compile "$LINENO"; then : | |
eec2776c AJ |
3993 | ac_cv_header_stdc=yes |
3994 | else | |
3995 | ac_cv_header_stdc=no | |
c52df125 AC |
3996 | fi |
3997 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
eec2776c AJ |
3998 | |
3999 | if test $ac_cv_header_stdc = yes; then | |
4000 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4002 | /* end confdefs.h. */ | |
4003 | #include <string.h> | |
4004 | ||
4005 | _ACEOF | |
4006 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4007 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4008 | ||
4009 | else | |
4010 | ac_cv_header_stdc=no | |
c52df125 | 4011 | fi |
eec2776c AJ |
4012 | rm -f conftest* |
4013 | ||
c52df125 | 4014 | fi |
eec2776c AJ |
4015 | |
4016 | if test $ac_cv_header_stdc = yes; then | |
4017 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 4019 | /* end confdefs.h. */ |
eec2776c | 4020 | #include <stdlib.h> |
c52df125 | 4021 | |
eec2776c AJ |
4022 | _ACEOF |
4023 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4024 | $EGREP "free" >/dev/null 2>&1; then : | |
c52df125 | 4025 | |
eec2776c AJ |
4026 | else |
4027 | ac_cv_header_stdc=no | |
4028 | fi | |
4029 | rm -f conftest* | |
c52df125 | 4030 | |
eec2776c AJ |
4031 | fi |
4032 | ||
4033 | if test $ac_cv_header_stdc = yes; then | |
4034 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4035 | if test "$cross_compiling" = yes; then : | |
4036 | : | |
4037 | else | |
4038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4039 | /* end confdefs.h. */ | |
4040 | #include <ctype.h> | |
4041 | #include <stdlib.h> | |
4042 | #if ((' ' & 0x0FF) == 0x020) | |
4043 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4044 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4045 | #else | |
4046 | # define ISLOWER(c) \ | |
4047 | (('a' <= (c) && (c) <= 'i') \ | |
4048 | || ('j' <= (c) && (c) <= 'r') \ | |
4049 | || ('s' <= (c) && (c) <= 'z')) | |
4050 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4051 | #endif | |
4052 | ||
4053 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
c52df125 AC |
4054 | int |
4055 | main () | |
4056 | { | |
eec2776c AJ |
4057 | int i; |
4058 | for (i = 0; i < 256; i++) | |
4059 | if (XOR (islower (i), ISLOWER (i)) | |
4060 | || toupper (i) != TOUPPER (i)) | |
4061 | return 2; | |
c52df125 AC |
4062 | return 0; |
4063 | } | |
4064 | _ACEOF | |
eec2776c AJ |
4065 | if ac_fn_c_try_run "$LINENO"; then : |
4066 | ||
4067 | else | |
4068 | ac_cv_header_stdc=no | |
4069 | fi | |
4070 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4071 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c52df125 | 4072 | fi |
c52df125 AC |
4073 | |
4074 | fi | |
eec2776c AJ |
4075 | fi |
4076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4077 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4078 | if test $ac_cv_header_stdc = yes; then | |
4079 | ||
4080 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
c52df125 AC |
4081 | |
4082 | fi | |
4083 | ||
eec2776c AJ |
4084 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4085 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4086 | inttypes.h stdint.h unistd.h | |
4087 | do : | |
4088 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4089 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4090 | " | |
4091 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4092 | cat >>confdefs.h <<_ACEOF | |
4093 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4094 | _ACEOF | |
c52df125 | 4095 | |
eec2776c AJ |
4096 | fi |
4097 | ||
4098 | done | |
4099 | ||
4100 | ||
4101 | ||
4102 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
4103 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
4104 | MINIX=yes | |
4105 | else | |
4106 | MINIX= | |
4107 | fi | |
4108 | ||
4109 | ||
4110 | if test "$MINIX" = yes; then | |
4111 | ||
4112 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4113 | ||
4114 | ||
4115 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4116 | ||
4117 | ||
4118 | $as_echo "#define _MINIX 1" >>confdefs.h | |
4119 | ||
4120 | fi | |
4121 | ||
4122 | ||
4123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4124 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4125 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
c52df125 AC |
4126 | $as_echo_n "(cached) " >&6 |
4127 | else | |
4128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4129 | /* end confdefs.h. */ | |
4130 | ||
eec2776c AJ |
4131 | # define __EXTENSIONS__ 1 |
4132 | $ac_includes_default | |
c52df125 AC |
4133 | int |
4134 | main () | |
4135 | { | |
4136 | ||
4137 | ; | |
4138 | return 0; | |
4139 | } | |
4140 | _ACEOF | |
eec2776c AJ |
4141 | if ac_fn_c_try_compile "$LINENO"; then : |
4142 | ac_cv_safe_to_define___extensions__=yes | |
4143 | else | |
4144 | ac_cv_safe_to_define___extensions__=no | |
c52df125 | 4145 | fi |
eec2776c | 4146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c52df125 | 4147 | fi |
eec2776c AJ |
4148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4149 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4150 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4151 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
c52df125 | 4152 | |
eec2776c | 4153 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
c52df125 | 4154 | |
eec2776c | 4155 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
c52df125 | 4156 | |
eec2776c | 4157 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
c52df125 | 4158 | |
eec2776c | 4159 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
c52df125 | 4160 | |
c52df125 | 4161 | |
c52df125 | 4162 | |
c52df125 | 4163 | |
c52df125 | 4164 | |
c52df125 | 4165 | |
eec2776c | 4166 | ac_config_headers="$ac_config_headers include/setup.h" |
c52df125 AC |
4167 | |
4168 | ||
eec2776c AJ |
4169 | |
4170 | subdirs="$subdirs libratbox" | |
4171 | ||
4172 | ac_aux_dir= | |
4173 | for ac_dir in libltdl/config "$srcdir"/libltdl/config; do | |
4174 | if test -f "$ac_dir/install-sh"; then | |
4175 | ac_aux_dir=$ac_dir | |
4176 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
4177 | break | |
4178 | elif test -f "$ac_dir/install.sh"; then | |
4179 | ac_aux_dir=$ac_dir | |
4180 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
4181 | break | |
4182 | elif test -f "$ac_dir/shtool"; then | |
4183 | ac_aux_dir=$ac_dir | |
4184 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
4185 | break | |
c52df125 AC |
4186 | fi |
4187 | done | |
eec2776c AJ |
4188 | if test -z "$ac_aux_dir"; then |
4189 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5 | |
c52df125 AC |
4190 | fi |
4191 | ||
eec2776c AJ |
4192 | # These three variables are undocumented and unsupported, |
4193 | # and are intended to be withdrawn in a future Autoconf release. | |
4194 | # They can cause serious problems if a builder's source tree is in a directory | |
4195 | # whose full name contains unusual characters. | |
4196 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
4197 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
4198 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
4199 | ||
c52df125 | 4200 | |
eec2776c AJ |
4201 | |
4202 | ||
4203 | am__api_version='1.15' | |
4204 | ||
4205 | # Find a good install program. We prefer a C program (faster), | |
4206 | # so one script is as good as another. But avoid the broken or | |
4207 | # incompatible versions: | |
4208 | # SysV /etc/install, /usr/sbin/install | |
4209 | # SunOS /usr/etc/install | |
4210 | # IRIX /sbin/install | |
4211 | # AIX /bin/install | |
4212 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4213 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4214 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4215 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4216 | # OS/2's system install, which has a completely different semantic | |
4217 | # ./install, which can be erroneously created by make from ./install.sh. | |
4218 | # Reject install programs that cannot install multiple files. | |
4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4220 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4221 | if test -z "$INSTALL"; then | |
4222 | if ${ac_cv_path_install+:} false; then : | |
c52df125 AC |
4223 | $as_echo_n "(cached) " >&6 |
4224 | else | |
eec2776c | 4225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
c52df125 AC |
4226 | for as_dir in $PATH |
4227 | do | |
4228 | IFS=$as_save_IFS | |
4229 | test -z "$as_dir" && as_dir=. | |
eec2776c AJ |
4230 | # Account for people who put trailing slashes in PATH elements. |
4231 | case $as_dir/ in #(( | |
4232 | ./ | .// | /[cC]/* | \ | |
4233 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4234 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4235 | /usr/ucb/* ) ;; | |
4236 | *) | |
4237 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4238 | # Don't use installbsd from OSF since it installs stuff as root | |
4239 | # by default. | |
4240 | for ac_prog in ginstall scoinst install; do | |
4241 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4242 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4243 | if test $ac_prog = install && | |
4244 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4245 | # AIX install. It has an incompatible calling convention. | |
4246 | : | |
4247 | elif test $ac_prog = install && | |
4248 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4249 | # program-specific install script used by HP pwplus--don't use. | |
4250 | : | |
4251 | else | |
4252 | rm -rf conftest.one conftest.two conftest.dir | |
4253 | echo one > conftest.one | |
4254 | echo two > conftest.two | |
4255 | mkdir conftest.dir | |
4256 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4257 | test -s conftest.one && test -s conftest.two && | |
4258 | test -s conftest.dir/conftest.one && | |
4259 | test -s conftest.dir/conftest.two | |
4260 | then | |
4261 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4262 | break 3 | |
4263 | fi | |
4264 | fi | |
4265 | fi | |
4266 | done | |
4267 | done | |
4268 | ;; | |
4269 | esac | |
4270 | ||
c52df125 AC |
4271 | done |
4272 | IFS=$as_save_IFS | |
4273 | ||
eec2776c AJ |
4274 | rm -rf conftest.one conftest.two conftest.dir |
4275 | ||
c52df125 | 4276 | fi |
eec2776c AJ |
4277 | if test "${ac_cv_path_install+set}" = set; then |
4278 | INSTALL=$ac_cv_path_install | |
4279 | else | |
4280 | # As a last resort, use the slow shell script. Don't cache a | |
4281 | # value for INSTALL within a source directory, because that will | |
4282 | # break other packages using the cache if that directory is | |
4283 | # removed, or if the value is a relative name. | |
4284 | INSTALL=$ac_install_sh | |
4285 | fi | |
4286 | fi | |
4287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
4288 | $as_echo "$INSTALL" >&6; } | |
4289 | ||
4290 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4291 | # It thinks the first close brace ends the variable substitution. | |
4292 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4293 | ||
4294 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4295 | ||
4296 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4297 | ||
4298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
4299 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
4300 | # Reject unsafe characters in $srcdir or the absolute working directory | |
4301 | # name. Accept space and tab only in the latter. | |
4302 | am_lf=' | |
4303 | ' | |
4304 | case `pwd` in | |
4305 | *[\\\"\#\$\&\'\`$am_lf]*) | |
4306 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
4307 | esac | |
4308 | case $srcdir in | |
4309 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
4310 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
4311 | esac | |
4312 | ||
4313 | # Do 'set' in a subshell so we don't clobber the current shell's | |
4314 | # arguments. Must try -L first in case configure is actually a | |
4315 | # symlink; some systems play weird games with the mod time of symlinks | |
4316 | # (eg FreeBSD returns the mod time of the symlink's containing | |
4317 | # directory). | |
4318 | if ( | |
4319 | am_has_slept=no | |
4320 | for am_try in 1 2; do | |
4321 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
4322 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
4323 | if test "$*" = "X"; then | |
4324 | # -L didn't work. | |
4325 | set X `ls -t "$srcdir/configure" conftest.file` | |
4326 | fi | |
4327 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
4328 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
4329 | ||
4330 | # If neither matched, then we have a broken ls. This can happen | |
4331 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
4332 | # broken ls alias from the environment. This has actually | |
4333 | # happened. Such a system could not be considered "sane". | |
4334 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
4335 | alias in your environment" "$LINENO" 5 | |
4336 | fi | |
4337 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
4338 | break | |
4339 | fi | |
4340 | # Just in case. | |
4341 | sleep 1 | |
4342 | am_has_slept=yes | |
4343 | done | |
4344 | test "$2" = conftest.file | |
4345 | ) | |
4346 | then | |
4347 | # Ok. | |
4348 | : | |
4349 | else | |
4350 | as_fn_error $? "newly created file is older than distributed files! | |
4351 | Check your system clock" "$LINENO" 5 | |
4352 | fi | |
4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4354 | $as_echo "yes" >&6; } | |
4355 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
4356 | # generated files are strictly newer. | |
4357 | am_sleep_pid= | |
4358 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
4359 | ( sleep 1 ) & | |
4360 | am_sleep_pid=$! | |
4361 | fi | |
4362 | ||
4363 | rm -f conftest.file | |
4364 | ||
4365 | test "$program_prefix" != NONE && | |
4366 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4367 | # Use a double $ so make ignores it. | |
4368 | test "$program_suffix" != NONE && | |
4369 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4370 | # Double any \ or $. | |
4371 | # By default was `s,x,x', remove it if useless. | |
4372 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4373 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4374 | ||
4375 | if test x"${MISSING+set}" != xset; then | |
4376 | case $am_aux_dir in | |
4377 | *\ * | *\ *) | |
4378 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
4379 | *) | |
4380 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
4381 | esac | |
4382 | fi | |
4383 | # Use eval to expand $SHELL | |
4384 | if eval "$MISSING --is-lightweight"; then | |
4385 | am_missing_run="$MISSING " | |
4386 | else | |
4387 | am_missing_run= | |
4388 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
4389 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
4390 | fi | |
4391 | ||
4392 | if test x"${install_sh+set}" != xset; then | |
4393 | case $am_aux_dir in | |
4394 | *\ * | *\ *) | |
4395 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
4396 | *) | |
4397 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
4398 | esac | |
4399 | fi | |
4400 | ||
4401 | # Installed binaries are usually stripped using 'strip' when the user | |
4402 | # run "make install-strip". However 'strip' might not be the right | |
4403 | # tool to use in cross-compilation environments, therefore Automake | |
4404 | # will honor the 'STRIP' environment variable to overrule this program. | |
4405 | if test "$cross_compiling" != no; then | |
4406 | if test -n "$ac_tool_prefix"; then | |
4407 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4408 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4410 | $as_echo_n "checking for $ac_word... " >&6; } | |
4411 | if ${ac_cv_prog_STRIP+:} false; then : | |
4412 | $as_echo_n "(cached) " >&6 | |
4413 | else | |
4414 | if test -n "$STRIP"; then | |
4415 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4416 | else | |
4417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4418 | for as_dir in $PATH | |
4419 | do | |
4420 | IFS=$as_save_IFS | |
4421 | test -z "$as_dir" && as_dir=. | |
4422 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4423 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4424 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4425 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4426 | break 2 | |
4427 | fi | |
4428 | done | |
4429 | done | |
4430 | IFS=$as_save_IFS | |
4431 | ||
4432 | fi | |
4433 | fi | |
4434 | STRIP=$ac_cv_prog_STRIP | |
4435 | if test -n "$STRIP"; then | |
4436 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4437 | $as_echo "$STRIP" >&6; } | |
c52df125 AC |
4438 | else |
4439 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4440 | $as_echo "no" >&6; } | |
4441 | fi | |
4442 | ||
4443 | ||
eec2776c AJ |
4444 | fi |
4445 | if test -z "$ac_cv_prog_STRIP"; then | |
4446 | ac_ct_STRIP=$STRIP | |
4447 | # Extract the first word of "strip", so it can be a program name with args. | |
4448 | set dummy strip; ac_word=$2 | |
4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4450 | $as_echo_n "checking for $ac_word... " >&6; } | |
4451 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
4452 | $as_echo_n "(cached) " >&6 | |
4453 | else | |
4454 | if test -n "$ac_ct_STRIP"; then | |
4455 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4456 | else | |
4457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4458 | for as_dir in $PATH | |
4459 | do | |
4460 | IFS=$as_save_IFS | |
4461 | test -z "$as_dir" && as_dir=. | |
4462 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4463 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4464 | ac_cv_prog_ac_ct_STRIP="strip" | |
4465 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4466 | break 2 | |
4467 | fi | |
c52df125 | 4468 | done |
eec2776c AJ |
4469 | done |
4470 | IFS=$as_save_IFS | |
c52df125 | 4471 | |
eec2776c AJ |
4472 | fi |
4473 | fi | |
4474 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4475 | if test -n "$ac_ct_STRIP"; then | |
4476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4477 | $as_echo "$ac_ct_STRIP" >&6; } | |
4478 | else | |
4479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4480 | $as_echo "no" >&6; } | |
4481 | fi | |
4482 | ||
4483 | if test "x$ac_ct_STRIP" = x; then | |
4484 | STRIP=":" | |
c52df125 AC |
4485 | else |
4486 | case $cross_compiling:$ac_tool_warned in | |
4487 | yes:) | |
4488 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4489 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4490 | ac_tool_warned=yes ;; | |
4491 | esac | |
eec2776c | 4492 | STRIP=$ac_ct_STRIP |
c52df125 | 4493 | fi |
eec2776c AJ |
4494 | else |
4495 | STRIP="$ac_cv_prog_STRIP" | |
c52df125 AC |
4496 | fi |
4497 | ||
eec2776c AJ |
4498 | fi |
4499 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
c52df125 | 4500 | |
eec2776c AJ |
4501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4502 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4503 | if test -z "$MKDIR_P"; then | |
4504 | if ${ac_cv_path_mkdir+:} false; then : | |
c52df125 AC |
4505 | $as_echo_n "(cached) " >&6 |
4506 | else | |
eec2776c AJ |
4507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4508 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4509 | do | |
4510 | IFS=$as_save_IFS | |
4511 | test -z "$as_dir" && as_dir=. | |
4512 | for ac_prog in mkdir gmkdir; do | |
4513 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4514 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
4515 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4516 | 'mkdir (GNU coreutils) '* | \ | |
4517 | 'mkdir (coreutils) '* | \ | |
4518 | 'mkdir (fileutils) '4.1*) | |
4519 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4520 | break 3;; | |
4521 | esac | |
4522 | done | |
4523 | done | |
4524 | done | |
4525 | IFS=$as_save_IFS | |
c52df125 | 4526 | |
eec2776c | 4527 | fi |
c52df125 | 4528 | |
eec2776c AJ |
4529 | test -d ./--version && rmdir ./--version |
4530 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4531 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4532 | else | |
4533 | # As a last resort, use the slow shell script. Don't cache a | |
4534 | # value for MKDIR_P within a source directory, because that will | |
4535 | # break other packages using the cache if that directory is | |
4536 | # removed, or if the value is a relative name. | |
4537 | MKDIR_P="$ac_install_sh -d" | |
4538 | fi | |
c52df125 | 4539 | fi |
eec2776c AJ |
4540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4541 | $as_echo "$MKDIR_P" >&6; } | |
4542 | ||
4543 | for ac_prog in gawk mawk nawk awk | |
4544 | do | |
4545 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4546 | set dummy $ac_prog; ac_word=$2 | |
4547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4548 | $as_echo_n "checking for $ac_word... " >&6; } | |
4549 | if ${ac_cv_prog_AWK+:} false; then : | |
4550 | $as_echo_n "(cached) " >&6 | |
4551 | else | |
4552 | if test -n "$AWK"; then | |
4553 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4554 | else | |
4555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4556 | for as_dir in $PATH | |
4557 | do | |
4558 | IFS=$as_save_IFS | |
4559 | test -z "$as_dir" && as_dir=. | |
4560 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4561 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4562 | ac_cv_prog_AWK="$ac_prog" | |
4563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4564 | break 2 | |
4565 | fi | |
4566 | done | |
4567 | done | |
4568 | IFS=$as_save_IFS | |
c52df125 AC |
4569 | |
4570 | fi | |
eec2776c AJ |
4571 | fi |
4572 | AWK=$ac_cv_prog_AWK | |
4573 | if test -n "$AWK"; then | |
4574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
4575 | $as_echo "$AWK" >&6; } | |
4576 | else | |
4577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4578 | $as_echo "no" >&6; } | |
4579 | fi | |
c52df125 | 4580 | |
c52df125 | 4581 | |
eec2776c AJ |
4582 | test -n "$AWK" && break |
4583 | done | |
c52df125 | 4584 | |
eec2776c AJ |
4585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4586 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4587 | set x ${MAKE-make} | |
4588 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4589 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
4590 | $as_echo_n "(cached) " >&6 | |
4591 | else | |
4592 | cat >conftest.make <<\_ACEOF | |
4593 | SHELL = /bin/sh | |
4594 | all: | |
4595 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4596 | _ACEOF | |
4597 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
4598 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4599 | *@@@%%%=?*=@@@%%%*) | |
4600 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4601 | *) | |
4602 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
c52df125 | 4603 | esac |
eec2776c AJ |
4604 | rm -f conftest.make |
4605 | fi | |
4606 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4608 | $as_echo "yes" >&6; } | |
4609 | SET_MAKE= | |
4610 | else | |
4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4612 | $as_echo "no" >&6; } | |
4613 | SET_MAKE="MAKE=${MAKE-make}" | |
4614 | fi | |
c52df125 | 4615 | |
eec2776c AJ |
4616 | rm -rf .tst 2>/dev/null |
4617 | mkdir .tst 2>/dev/null | |
4618 | if test -d .tst; then | |
4619 | am__leading_dot=. | |
4620 | else | |
4621 | am__leading_dot=_ | |
4622 | fi | |
4623 | rmdir .tst 2>/dev/null | |
c52df125 | 4624 | |
eec2776c | 4625 | DEPDIR="${am__leading_dot}deps" |
c52df125 | 4626 | |
eec2776c | 4627 | ac_config_commands="$ac_config_commands depfiles" |
c52df125 AC |
4628 | |
4629 | ||
eec2776c AJ |
4630 | am_make=${MAKE-make} |
4631 | cat > confinc << 'END' | |
4632 | am__doit: | |
4633 | @echo this is the am__doit target | |
4634 | .PHONY: am__doit | |
4635 | END | |
4636 | # If we don't find an include directive, just comment out the code. | |
4637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4638 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4639 | am__include="#" | |
4640 | am__quote= | |
4641 | _am_result=none | |
4642 | # First try GNU make style include. | |
4643 | echo "include confinc" > confmf | |
4644 | # Ignore all kinds of additional output from 'make'. | |
4645 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4646 | *the\ am__doit\ target*) | |
4647 | am__include=include | |
4648 | am__quote= | |
4649 | _am_result=GNU | |
4650 | ;; | |
4651 | esac | |
4652 | # Now try BSD make style include. | |
4653 | if test "$am__include" = "#"; then | |
4654 | echo '.include "confinc"' > confmf | |
4655 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4656 | *the\ am__doit\ target*) | |
4657 | am__include=.include | |
4658 | am__quote="\"" | |
4659 | _am_result=BSD | |
4660 | ;; | |
4661 | esac | |
4662 | fi | |
c52df125 AC |
4663 | |
4664 | ||
eec2776c AJ |
4665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4666 | $as_echo "$_am_result" >&6; } | |
4667 | rm -f confinc confmf | |
c52df125 | 4668 | |
eec2776c AJ |
4669 | # Check whether --enable-dependency-tracking was given. |
4670 | if test "${enable_dependency_tracking+set}" = set; then : | |
4671 | enableval=$enable_dependency_tracking; | |
4672 | fi | |
c52df125 | 4673 | |
eec2776c AJ |
4674 | if test "x$enable_dependency_tracking" != xno; then |
4675 | am_depcomp="$ac_aux_dir/depcomp" | |
4676 | AMDEPBACKSLASH='\' | |
4677 | am__nodep='_no' | |
4678 | fi | |
4679 | if test "x$enable_dependency_tracking" != xno; then | |
4680 | AMDEP_TRUE= | |
4681 | AMDEP_FALSE='#' | |
4682 | else | |
4683 | AMDEP_TRUE='#' | |
4684 | AMDEP_FALSE= | |
4685 | fi | |
c52df125 AC |
4686 | |
4687 | ||
eec2776c AJ |
4688 | # Check whether --enable-silent-rules was given. |
4689 | if test "${enable_silent_rules+set}" = set; then : | |
4690 | enableval=$enable_silent_rules; | |
4691 | fi | |
c52df125 | 4692 | |
eec2776c AJ |
4693 | case $enable_silent_rules in # ((( |
4694 | yes) AM_DEFAULT_VERBOSITY=0;; | |
4695 | no) AM_DEFAULT_VERBOSITY=1;; | |
4696 | *) AM_DEFAULT_VERBOSITY=1;; | |
4697 | esac | |
4698 | am_make=${MAKE-make} | |
4699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
4700 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
4701 | if ${am_cv_make_support_nested_variables+:} false; then : | |
4702 | $as_echo_n "(cached) " >&6 | |
4703 | else | |
4704 | if $as_echo 'TRUE=$(BAR$(V)) | |
4705 | BAR0=false | |
4706 | BAR1=true | |
4707 | V=1 | |
4708 | am__doit: | |
4709 | @$(TRUE) | |
4710 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
4711 | am_cv_make_support_nested_variables=yes | |
4712 | else | |
4713 | am_cv_make_support_nested_variables=no | |
4714 | fi | |
4715 | fi | |
4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
4717 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
4718 | if test $am_cv_make_support_nested_variables = yes; then | |
4719 | AM_V='$(V)' | |
4720 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
4721 | else | |
4722 | AM_V=$AM_DEFAULT_VERBOSITY | |
4723 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
4724 | fi | |
4725 | AM_BACKSLASH='\' | |
c52df125 | 4726 | |
eec2776c AJ |
4727 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4728 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4729 | # is not polluted with repeated "-I." | |
4730 | am__isrc=' -I$(srcdir)' | |
4731 | # test to see if srcdir already configured | |
4732 | if test -f $srcdir/config.status; then | |
4733 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4734 | fi | |
4735 | fi | |
c52df125 | 4736 | |
eec2776c AJ |
4737 | # test whether we have cygpath |
4738 | if test -z "$CYGPATH_W"; then | |
4739 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4740 | CYGPATH_W='cygpath -w' | |
4741 | else | |
4742 | CYGPATH_W=echo | |
4743 | fi | |
4744 | fi | |
c52df125 AC |
4745 | |
4746 | ||
eec2776c AJ |
4747 | # Define the identity of the package. |
4748 | PACKAGE='charybdis' | |
4749 | VERSION='3.6.0-dev' | |
c52df125 | 4750 | |
c52df125 | 4751 | |
eec2776c AJ |
4752 | cat >>confdefs.h <<_ACEOF |
4753 | #define PACKAGE "$PACKAGE" | |
4754 | _ACEOF | |
c52df125 | 4755 | |
c52df125 | 4756 | |
eec2776c AJ |
4757 | cat >>confdefs.h <<_ACEOF |
4758 | #define VERSION "$VERSION" | |
4759 | _ACEOF | |
c52df125 | 4760 | |
eec2776c | 4761 | # Some tools Automake needs. |
c52df125 | 4762 | |
eec2776c | 4763 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
c52df125 | 4764 | |
c52df125 | 4765 | |
eec2776c | 4766 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
c52df125 | 4767 | |
c52df125 | 4768 | |
eec2776c | 4769 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
c52df125 | 4770 | |
c52df125 | 4771 | |
eec2776c | 4772 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
c52df125 AC |
4773 | |
4774 | ||
eec2776c | 4775 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
c52df125 | 4776 | |
eec2776c AJ |
4777 | # For better backward compatibility. To be removed once Automake 1.9.x |
4778 | # dies out for good. For more background, see: | |
4779 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
4780 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
4781 | mkdir_p='$(MKDIR_P)' | |
c52df125 | 4782 | |
eec2776c AJ |
4783 | # We need awk for the "check" target (and possibly the TAP driver). The |
4784 | # system "awk" is bad on some platforms. | |
4785 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
4786 | # in the wild :-( We should find a proper way to deprecate it ... | |
4787 | AMTAR='$${TAR-tar}' | |
c52df125 AC |
4788 | |
4789 | ||
eec2776c AJ |
4790 | # We'll loop over all known methods to create a tar archive until one works. |
4791 | _am_tools='gnutar pax cpio none' | |
c52df125 | 4792 | |
eec2776c | 4793 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
c52df125 AC |
4794 | |
4795 | ||
4796 | ||
4797 | ||
4798 | ||
eec2776c | 4799 | depcc="$CC" am_compiler_list= |
c52df125 | 4800 | |
eec2776c AJ |
4801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4802 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4803 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
c52df125 AC |
4804 | $as_echo_n "(cached) " >&6 |
4805 | else | |
eec2776c AJ |
4806 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4807 | # We make a subdir and do the tests there. Otherwise we can end up | |
4808 | # making bogus files that we don't know about and never remove. For | |
4809 | # instance it was reported that on HP-UX the gcc test will end up | |
4810 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4811 | # in D". | |
4812 | rm -rf conftest.dir | |
4813 | mkdir conftest.dir | |
4814 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4815 | # using a relative directory. | |
4816 | cp "$am_depcomp" conftest.dir | |
4817 | cd conftest.dir | |
4818 | # We will build objects and dependencies in a subdirectory because | |
4819 | # it helps to detect inapplicable dependency modes. For instance | |
4820 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4821 | # side effect of compilation, but ICC will put the dependencies in | |
4822 | # the current directory while Tru64 will put them in the object | |
4823 | # directory. | |
4824 | mkdir sub | |
c52df125 | 4825 | |
eec2776c AJ |
4826 | am_cv_CC_dependencies_compiler_type=none |
4827 | if test "$am_compiler_list" = ""; then | |
4828 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
c52df125 | 4829 | fi |
eec2776c AJ |
4830 | am__universal=false |
4831 | case " $depcc " in #( | |
4832 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4833 | esac | |
c52df125 | 4834 | |
eec2776c AJ |
4835 | for depmode in $am_compiler_list; do |
4836 | # Setup a source with many dependencies, because some compilers | |
4837 | # like to wrap large dependency lists on column 80 (with \), and | |
4838 | # we should not choose a depcomp mode which is confused by this. | |
4839 | # | |
4840 | # We need to recreate these files for each test, as the compiler may | |
4841 | # overwrite some of them when testing with obscure command lines. | |
4842 | # This happens at least with the AIX C compiler. | |
4843 | : > sub/conftest.c | |
4844 | for i in 1 2 3 4 5 6; do | |
4845 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4846 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4847 | # Solaris 10 /bin/sh. | |
4848 | echo '/* dummy */' > sub/conftst$i.h | |
4849 | done | |
4850 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
c52df125 | 4851 | |
eec2776c AJ |
4852 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
4853 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4854 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4855 | # versions had trouble with output in subdirs. | |
4856 | am__obj=sub/conftest.${OBJEXT-o} | |
4857 | am__minus_obj="-o $am__obj" | |
4858 | case $depmode in | |
4859 | gcc) | |
4860 | # This depmode causes a compiler race in universal mode. | |
4861 | test "$am__universal" = false || continue | |
4862 | ;; | |
4863 | nosideeffect) | |
4864 | # After this tag, mechanisms are not by side-effect, so they'll | |
4865 | # only be used when explicitly requested. | |
4866 | if test "x$enable_dependency_tracking" = xyes; then | |
4867 | continue | |
4868 | else | |
4869 | break | |
4870 | fi | |
4871 | ;; | |
4872 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4873 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4874 | # not run yet. These depmodes are late enough in the game, and | |
4875 | # so weak that their functioning should not be impacted. | |
4876 | am__obj=conftest.${OBJEXT-o} | |
4877 | am__minus_obj= | |
4878 | ;; | |
4879 | none) break ;; | |
4880 | esac | |
4881 | if depmode=$depmode \ | |
4882 | source=sub/conftest.c object=$am__obj \ | |
4883 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4884 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4885 | >/dev/null 2>conftest.err && | |
4886 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4887 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4888 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4889 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4890 | # icc doesn't choke on unknown options, it will just issue warnings | |
4891 | # or remarks (even with -Werror). So we grep stderr for any message | |
4892 | # that says an option was ignored or not supported. | |
4893 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4894 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4895 | # The diagnosis changed in icc 8.0: | |
4896 | # icc: Command line remark: option '-MP' not supported | |
4897 | if (grep 'ignoring option' conftest.err || | |
4898 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4899 | am_cv_CC_dependencies_compiler_type=$depmode | |
4900 | break | |
4901 | fi | |
c52df125 | 4902 | fi |
c52df125 | 4903 | done |
c52df125 | 4904 | |
eec2776c AJ |
4905 | cd .. |
4906 | rm -rf conftest.dir | |
c52df125 | 4907 | else |
eec2776c | 4908 | am_cv_CC_dependencies_compiler_type=none |
c52df125 AC |
4909 | fi |
4910 | ||
4911 | fi | |
eec2776c AJ |
4912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4913 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4914 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
c52df125 | 4915 | |
eec2776c AJ |
4916 | if |
4917 | test "x$enable_dependency_tracking" != xno \ | |
4918 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4919 | am__fastdepCC_TRUE= | |
4920 | am__fastdepCC_FALSE='#' | |
c52df125 | 4921 | else |
eec2776c AJ |
4922 | am__fastdepCC_TRUE='#' |
4923 | am__fastdepCC_FALSE= | |
4924 | fi | |
c52df125 | 4925 | |
eec2776c AJ |
4926 | |
4927 | ||
4928 | # POSIX will say in a future version that running "rm -f" with no argument | |
4929 | # is OK; and we want to be able to make that assumption in our Makefile | |
4930 | # recipes. So use an aggressive probe to check that the usage we want is | |
4931 | # actually supported "in the wild" to an acceptable degree. | |
4932 | # See automake bug#10828. | |
4933 | # To make any issue more visible, cause the running configure to be aborted | |
4934 | # by default if the 'rm' program in use doesn't match our expectations; the | |
4935 | # user can still override this though. | |
4936 | if rm -f && rm -fr && rm -rf; then : OK; else | |
4937 | cat >&2 <<'END' | |
4938 | Oops! | |
4939 | ||
4940 | Your 'rm' program seems unable to run without file operands specified | |
4941 | on the command line, even when the '-f' option is present. This is contrary | |
4942 | to the behaviour of most rm programs out there, and not conforming with | |
4943 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
4944 | ||
4945 | Please tell bug-automake@gnu.org about your system, including the value | |
4946 | of your $PATH and any error possibly output before this message. This | |
4947 | can help us improve future automake versions. | |
4948 | ||
4949 | END | |
4950 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
4951 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
4952 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
4953 | echo >&2 | |
4954 | else | |
4955 | cat >&2 <<'END' | |
4956 | Aborting the configuration process, to ensure you take notice of the issue. | |
4957 | ||
4958 | You can download and install GNU coreutils to get an 'rm' implementation | |
4959 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
4960 | ||
4961 | If you want to complete the configuration process using your problematic | |
4962 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
4963 | to "yes", and re-run configure. | |
4964 | ||
4965 | END | |
4966 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
c52df125 | 4967 | fi |
c52df125 AC |
4968 | fi |
4969 | ||
eec2776c AJ |
4970 | # Check whether --enable-silent-rules was given. |
4971 | if test "${enable_silent_rules+set}" = set; then : | |
4972 | enableval=$enable_silent_rules; | |
c52df125 | 4973 | fi |
c52df125 | 4974 | |
eec2776c AJ |
4975 | case $enable_silent_rules in # ((( |
4976 | yes) AM_DEFAULT_VERBOSITY=0;; | |
4977 | no) AM_DEFAULT_VERBOSITY=1;; | |
4978 | *) AM_DEFAULT_VERBOSITY=0;; | |
4979 | esac | |
4980 | am_make=${MAKE-make} | |
4981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
4982 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
4983 | if ${am_cv_make_support_nested_variables+:} false; then : | |
c52df125 AC |
4984 | $as_echo_n "(cached) " >&6 |
4985 | else | |
eec2776c AJ |
4986 | if $as_echo 'TRUE=$(BAR$(V)) |
4987 | BAR0=false | |
4988 | BAR1=true | |
4989 | V=1 | |
4990 | am__doit: | |
4991 | @$(TRUE) | |
4992 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
4993 | am_cv_make_support_nested_variables=yes | |
c52df125 | 4994 | else |
eec2776c | 4995 | am_cv_make_support_nested_variables=no |
c52df125 | 4996 | fi |
c52df125 | 4997 | fi |
eec2776c AJ |
4998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
4999 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
5000 | if test $am_cv_make_support_nested_variables = yes; then | |
5001 | AM_V='$(V)' | |
5002 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
c52df125 | 5003 | else |
eec2776c AJ |
5004 | AM_V=$AM_DEFAULT_VERBOSITY |
5005 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
c52df125 | 5006 | fi |
eec2776c | 5007 | AM_BACKSLASH='\' |
c52df125 | 5008 | |
eec2776c AJ |
5009 | if test -n "$ac_tool_prefix"; then |
5010 | for ac_prog in ar lib "link -lib" | |
c52df125 AC |
5011 | do |
5012 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5013 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5015 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5016 | if ${ac_cv_prog_AR+:} false; then : |
c52df125 AC |
5017 | $as_echo_n "(cached) " >&6 |
5018 | else | |
eec2776c AJ |
5019 | if test -n "$AR"; then |
5020 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
c52df125 AC |
5021 | else |
5022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5023 | for as_dir in $PATH | |
5024 | do | |
5025 | IFS=$as_save_IFS | |
5026 | test -z "$as_dir" && as_dir=. | |
5027 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5028 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5029 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
c52df125 AC |
5030 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5031 | break 2 | |
5032 | fi | |
5033 | done | |
5034 | done | |
5035 | IFS=$as_save_IFS | |
5036 | ||
5037 | fi | |
5038 | fi | |
eec2776c AJ |
5039 | AR=$ac_cv_prog_AR |
5040 | if test -n "$AR"; then | |
5041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5042 | $as_echo "$AR" >&6; } | |
c52df125 AC |
5043 | else |
5044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5045 | $as_echo "no" >&6; } | |
5046 | fi | |
5047 | ||
5048 | ||
eec2776c | 5049 | test -n "$AR" && break |
c52df125 AC |
5050 | done |
5051 | fi | |
eec2776c AJ |
5052 | if test -z "$AR"; then |
5053 | ac_ct_AR=$AR | |
5054 | for ac_prog in ar lib "link -lib" | |
c52df125 AC |
5055 | do |
5056 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5057 | set dummy $ac_prog; ac_word=$2 | |
5058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5059 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5060 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
c52df125 AC |
5061 | $as_echo_n "(cached) " >&6 |
5062 | else | |
eec2776c AJ |
5063 | if test -n "$ac_ct_AR"; then |
5064 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
c52df125 AC |
5065 | else |
5066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5067 | for as_dir in $PATH | |
5068 | do | |
5069 | IFS=$as_save_IFS | |
5070 | test -z "$as_dir" && as_dir=. | |
5071 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5072 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5073 | ac_cv_prog_ac_ct_AR="$ac_prog" |
c52df125 AC |
5074 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5075 | break 2 | |
5076 | fi | |
5077 | done | |
5078 | done | |
5079 | IFS=$as_save_IFS | |
5080 | ||
5081 | fi | |
5082 | fi | |
eec2776c AJ |
5083 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5084 | if test -n "$ac_ct_AR"; then | |
5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5086 | $as_echo "$ac_ct_AR" >&6; } | |
c52df125 AC |
5087 | else |
5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5089 | $as_echo "no" >&6; } | |
5090 | fi | |
5091 | ||
5092 | ||
eec2776c | 5093 | test -n "$ac_ct_AR" && break |
c52df125 AC |
5094 | done |
5095 | ||
eec2776c AJ |
5096 | if test "x$ac_ct_AR" = x; then |
5097 | AR="false" | |
c52df125 AC |
5098 | else |
5099 | case $cross_compiling:$ac_tool_warned in | |
5100 | yes:) | |
5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5102 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5103 | ac_tool_warned=yes ;; | |
5104 | esac | |
eec2776c | 5105 | AR=$ac_ct_AR |
c52df125 AC |
5106 | fi |
5107 | fi | |
5108 | ||
eec2776c AJ |
5109 | : ${AR=ar} |
5110 | ||
5111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 | |
5112 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } | |
5113 | if ${am_cv_ar_interface+:} false; then : | |
5114 | $as_echo_n "(cached) " >&6 | |
5115 | else | |
5116 | ac_ext=c | |
5117 | ac_cpp='$CPP $CPPFLAGS' | |
5118 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5119 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5120 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5121 | ||
5122 | am_cv_ar_interface=ar | |
5123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5124 | /* end confdefs.h. */ | |
5125 | int some_variable = 0; | |
5126 | _ACEOF | |
5127 | if ac_fn_c_try_compile "$LINENO"; then : | |
5128 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' | |
5129 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5130 | (eval $am_ar_try) 2>&5 | |
5131 | ac_status=$? | |
5132 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5133 | test $ac_status = 0; } | |
5134 | if test "$ac_status" -eq 0; then | |
5135 | am_cv_ar_interface=ar | |
5136 | else | |
5137 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' | |
5138 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5139 | (eval $am_ar_try) 2>&5 | |
5140 | ac_status=$? | |
5141 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5142 | test $ac_status = 0; } | |
5143 | if test "$ac_status" -eq 0; then | |
5144 | am_cv_ar_interface=lib | |
5145 | else | |
5146 | am_cv_ar_interface=unknown | |
5147 | fi | |
5148 | fi | |
5149 | rm -f conftest.lib libconftest.a | |
c52df125 | 5150 | |
c52df125 | 5151 | fi |
eec2776c AJ |
5152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5153 | ac_ext=c | |
5154 | ac_cpp='$CPP $CPPFLAGS' | |
5155 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5156 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5157 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 5158 | |
eec2776c AJ |
5159 | fi |
5160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 | |
5161 | $as_echo "$am_cv_ar_interface" >&6; } | |
c52df125 | 5162 | |
eec2776c AJ |
5163 | case $am_cv_ar_interface in |
5164 | ar) | |
5165 | ;; | |
5166 | lib) | |
5167 | # Microsoft lib, so override with the ar-lib wrapper script. | |
5168 | # FIXME: It is wrong to rewrite AR. | |
5169 | # But if we don't then we get into trouble of one sort or another. | |
5170 | # A longer-term fix would be to have automake use am__AR in this case, | |
5171 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something | |
5172 | # similar. | |
5173 | AR="$am_aux_dir/ar-lib $AR" | |
5174 | ;; | |
5175 | unknown) | |
5176 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 | |
5177 | ;; | |
5178 | esac | |
c52df125 AC |
5179 | |
5180 | ||
eec2776c AJ |
5181 | case `pwd` in |
5182 | *\ * | *\ *) | |
5183 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5184 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5185 | esac | |
c52df125 AC |
5186 | |
5187 | ||
c52df125 | 5188 | |
eec2776c AJ |
5189 | macro_version='2.4.2' |
5190 | macro_revision='1.3337' | |
c52df125 | 5191 | |
c52df125 | 5192 | |
c52df125 | 5193 | |
c52df125 | 5194 | |
c52df125 | 5195 | |
c52df125 | 5196 | |
c52df125 | 5197 | |
c52df125 | 5198 | |
c52df125 | 5199 | |
c52df125 AC |
5200 | |
5201 | ||
5202 | ||
5203 | ||
eec2776c | 5204 | ltmain="$ac_aux_dir/ltmain.sh" |
c52df125 | 5205 | |
eec2776c AJ |
5206 | # Make sure we can run config.sub. |
5207 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5208 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
c52df125 | 5209 | |
eec2776c AJ |
5210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
5211 | $as_echo_n "checking build system type... " >&6; } | |
5212 | if ${ac_cv_build+:} false; then : | |
5213 | $as_echo_n "(cached) " >&6 | |
5214 | else | |
5215 | ac_build_alias=$build_alias | |
5216 | test "x$ac_build_alias" = x && | |
5217 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5218 | test "x$ac_build_alias" = x && | |
5219 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
5220 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5221 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
c52df125 | 5222 | |
eec2776c AJ |
5223 | fi |
5224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
5225 | $as_echo "$ac_cv_build" >&6; } | |
5226 | case $ac_cv_build in | |
5227 | *-*-*) ;; | |
5228 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
5229 | esac | |
5230 | build=$ac_cv_build | |
5231 | ac_save_IFS=$IFS; IFS='-' | |
5232 | set x $ac_cv_build | |
5233 | shift | |
5234 | build_cpu=$1 | |
5235 | build_vendor=$2 | |
5236 | shift; shift | |
5237 | # Remember, the first character of IFS is used to create $*, | |
5238 | # except with old shells: | |
5239 | build_os=$* | |
5240 | IFS=$ac_save_IFS | |
5241 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
c52df125 AC |
5242 | |
5243 | ||
eec2776c AJ |
5244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
5245 | $as_echo_n "checking host system type... " >&6; } | |
5246 | if ${ac_cv_host+:} false; then : | |
5247 | $as_echo_n "(cached) " >&6 | |
c52df125 | 5248 | else |
eec2776c AJ |
5249 | if test "x$host_alias" = x; then |
5250 | ac_cv_host=$ac_cv_build | |
5251 | else | |
5252 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5253 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
c52df125 AC |
5254 | fi |
5255 | ||
eec2776c AJ |
5256 | fi |
5257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5258 | $as_echo "$ac_cv_host" >&6; } | |
5259 | case $ac_cv_host in | |
5260 | *-*-*) ;; | |
5261 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
c52df125 | 5262 | esac |
eec2776c AJ |
5263 | host=$ac_cv_host |
5264 | ac_save_IFS=$IFS; IFS='-' | |
5265 | set x $ac_cv_host | |
5266 | shift | |
5267 | host_cpu=$1 | |
5268 | host_vendor=$2 | |
5269 | shift; shift | |
5270 | # Remember, the first character of IFS is used to create $*, | |
5271 | # except with old shells: | |
5272 | host_os=$* | |
5273 | IFS=$ac_save_IFS | |
5274 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c52df125 AC |
5275 | |
5276 | ||
eec2776c AJ |
5277 | # Backslashify metacharacters that are still active within |
5278 | # double-quoted strings. | |
5279 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
c52df125 | 5280 | |
eec2776c AJ |
5281 | # Same as above, but do not quote variable references. |
5282 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
c52df125 | 5283 | |
eec2776c AJ |
5284 | # Sed substitution to delay expansion of an escaped shell variable in a |
5285 | # double_quote_subst'ed string. | |
5286 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
c52df125 | 5287 | |
eec2776c AJ |
5288 | # Sed substitution to delay expansion of an escaped single quote. |
5289 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
c52df125 | 5290 | |
eec2776c AJ |
5291 | # Sed substitution to avoid accidental globbing in evaled expressions |
5292 | no_glob_subst='s/\*/\\\*/g' | |
c52df125 | 5293 | |
eec2776c AJ |
5294 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
5295 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5296 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
c52df125 | 5297 | |
eec2776c AJ |
5298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
5299 | $as_echo_n "checking how to print strings... " >&6; } | |
5300 | # Test print first, because it will be a builtin if present. | |
5301 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5302 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5303 | ECHO='print -r --' | |
5304 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5305 | ECHO='printf %s\n' | |
c52df125 | 5306 | else |
eec2776c AJ |
5307 | # Use this function as a fallback that always works. |
5308 | func_fallback_echo () | |
5309 | { | |
5310 | eval 'cat <<_LTECHO_EOF | |
5311 | $1 | |
5312 | _LTECHO_EOF' | |
5313 | } | |
5314 | ECHO='func_fallback_echo' | |
5315 | fi | |
5316 | ||
5317 | # func_echo_all arg... | |
5318 | # Invoke $ECHO with all args, space-separated. | |
5319 | func_echo_all () | |
5320 | { | |
5321 | $ECHO "" | |
5322 | } | |
5323 | ||
5324 | case "$ECHO" in | |
5325 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5326 | $as_echo "printf" >&6; } ;; | |
5327 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5328 | $as_echo "print -r" >&6; } ;; | |
5329 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5330 | $as_echo "cat" >&6; } ;; | |
c52df125 AC |
5331 | esac |
5332 | ||
c52df125 | 5333 | |
c52df125 AC |
5334 | |
5335 | ||
5336 | ||
5337 | ||
5338 | ||
c52df125 | 5339 | |
c52df125 | 5340 | |
c52df125 AC |
5341 | |
5342 | ||
5343 | ||
5344 | ||
5345 | ||
eec2776c AJ |
5346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5347 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5348 | if ${ac_cv_path_SED+:} false; then : | |
c52df125 AC |
5349 | $as_echo_n "(cached) " >&6 |
5350 | else | |
eec2776c AJ |
5351 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5352 | for ac_i in 1 2 3 4 5 6 7; do | |
5353 | ac_script="$ac_script$as_nl$ac_script" | |
5354 | done | |
5355 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5356 | { ac_script=; unset ac_script;} | |
5357 | if test -z "$SED"; then | |
5358 | ac_path_SED_found=false | |
5359 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5361 | for as_dir in $PATH | |
5362 | do | |
5363 | IFS=$as_save_IFS | |
5364 | test -z "$as_dir" && as_dir=. | |
5365 | for ac_prog in sed gsed; do | |
5366 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5367 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5368 | as_fn_executable_p "$ac_path_SED" || continue | |
5369 | # Check for GNU ac_path_SED and select it if it is found. | |
5370 | # Check for GNU $ac_path_SED | |
5371 | case `"$ac_path_SED" --version 2>&1` in | |
5372 | *GNU*) | |
5373 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5374 | *) | |
5375 | ac_count=0 | |
5376 | $as_echo_n 0123456789 >"conftest.in" | |
5377 | while : | |
5378 | do | |
5379 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5380 | mv "conftest.tmp" "conftest.in" | |
5381 | cp "conftest.in" "conftest.nl" | |
5382 | $as_echo '' >> "conftest.nl" | |
5383 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5384 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5385 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5386 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5387 | # Best one so far, save it but keep looking for a better one | |
5388 | ac_cv_path_SED="$ac_path_SED" | |
5389 | ac_path_SED_max=$ac_count | |
c52df125 | 5390 | fi |
eec2776c AJ |
5391 | # 10*(2^10) chars as input seems more than enough |
5392 | test $ac_count -gt 10 && break | |
5393 | done | |
5394 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
c52df125 AC |
5395 | esac |
5396 | ||
eec2776c AJ |
5397 | $ac_path_SED_found && break 3 |
5398 | done | |
5399 | done | |
5400 | done | |
5401 | IFS=$as_save_IFS | |
5402 | if test -z "$ac_cv_path_SED"; then | |
5403 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5404 | fi | |
5405 | else | |
5406 | ac_cv_path_SED=$SED | |
5407 | fi | |
5408 | ||
5409 | fi | |
5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5411 | $as_echo "$ac_cv_path_SED" >&6; } | |
5412 | SED="$ac_cv_path_SED" | |
5413 | rm -f conftest.sed | |
5414 | ||
5415 | test -z "$SED" && SED=sed | |
5416 | Xsed="$SED -e 1s/^X//" | |
c52df125 AC |
5417 | |
5418 | ||
5419 | ||
5420 | ||
5421 | ||
5422 | ||
5423 | ||
5424 | ||
c52df125 | 5425 | |
c52df125 AC |
5426 | |
5427 | ||
eec2776c AJ |
5428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5429 | $as_echo_n "checking for fgrep... " >&6; } | |
5430 | if ${ac_cv_path_FGREP+:} false; then : | |
c52df125 AC |
5431 | $as_echo_n "(cached) " >&6 |
5432 | else | |
eec2776c AJ |
5433 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5434 | then ac_cv_path_FGREP="$GREP -F" | |
5435 | else | |
5436 | if test -z "$FGREP"; then | |
5437 | ac_path_FGREP_found=false | |
5438 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5439 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5440 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
c52df125 AC |
5441 | do |
5442 | IFS=$as_save_IFS | |
5443 | test -z "$as_dir" && as_dir=. | |
eec2776c | 5444 | for ac_prog in fgrep; do |
c52df125 | 5445 | for ac_exec_ext in '' $ac_executable_extensions; do |
eec2776c AJ |
5446 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
5447 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5448 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5449 | # Check for GNU $ac_path_FGREP | |
5450 | case `"$ac_path_FGREP" --version 2>&1` in | |
5451 | *GNU*) | |
5452 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5453 | *) | |
5454 | ac_count=0 | |
5455 | $as_echo_n 0123456789 >"conftest.in" | |
5456 | while : | |
5457 | do | |
5458 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5459 | mv "conftest.tmp" "conftest.in" | |
5460 | cp "conftest.in" "conftest.nl" | |
5461 | $as_echo 'FGREP' >> "conftest.nl" | |
5462 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5463 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5464 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5465 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5466 | # Best one so far, save it but keep looking for a better one | |
5467 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5468 | ac_path_FGREP_max=$ac_count | |
5469 | fi | |
5470 | # 10*(2^10) chars as input seems more than enough | |
5471 | test $ac_count -gt 10 && break | |
c52df125 | 5472 | done |
eec2776c AJ |
5473 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5474 | esac | |
c52df125 | 5475 | |
eec2776c AJ |
5476 | $ac_path_FGREP_found && break 3 |
5477 | done | |
5478 | done | |
5479 | done | |
5480 | IFS=$as_save_IFS | |
5481 | if test -z "$ac_cv_path_FGREP"; then | |
5482 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5483 | fi | |
c52df125 | 5484 | else |
eec2776c | 5485 | ac_cv_path_FGREP=$FGREP |
c52df125 AC |
5486 | fi |
5487 | ||
eec2776c | 5488 | fi |
c52df125 | 5489 | fi |
eec2776c AJ |
5490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5491 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5492 | FGREP="$ac_cv_path_FGREP" | |
c52df125 | 5493 | |
c52df125 | 5494 | |
eec2776c | 5495 | test -z "$GREP" && GREP=grep |
c52df125 AC |
5496 | |
5497 | ||
5498 | ||
5499 | ||
5500 | ||
5501 | ||
5502 | ||
5503 | ||
c52df125 | 5504 | |
c52df125 | 5505 | |
c52df125 | 5506 | |
c52df125 | 5507 | |
c52df125 | 5508 | |
c52df125 | 5509 | |
c52df125 | 5510 | |
c52df125 | 5511 | |
c52df125 | 5512 | |
c52df125 | 5513 | |
c52df125 | 5514 | |
eec2776c AJ |
5515 | # Check whether --with-gnu-ld was given. |
5516 | if test "${with_gnu_ld+set}" = set; then : | |
5517 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5518 | else | |
5519 | with_gnu_ld=no | |
5520 | fi | |
c52df125 | 5521 | |
eec2776c AJ |
5522 | ac_prog=ld |
5523 | if test "$GCC" = yes; then | |
5524 | # Check if gcc -print-prog-name=ld gives a path. | |
5525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5526 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5527 | case $host in | |
5528 | *-*-mingw*) | |
5529 | # gcc leaves a trailing carriage return which upsets mingw | |
5530 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5531 | *) | |
5532 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
c52df125 | 5533 | esac |
eec2776c AJ |
5534 | case $ac_prog in |
5535 | # Accept absolute paths. | |
5536 | [\\/]* | ?:[\\/]*) | |
5537 | re_direlt='/[^/][^/]*/\.\./' | |
5538 | # Canonicalize the pathname of ld | |
5539 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5540 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5541 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5542 | done | |
5543 | test -z "$LD" && LD="$ac_prog" | |
5544 | ;; | |
5545 | "") | |
5546 | # If it fails, then pretend we aren't using GCC. | |
5547 | ac_prog=ld | |
c52df125 | 5548 | ;; |
eec2776c AJ |
5549 | *) |
5550 | # If it is relative, then search for the first ld in PATH. | |
5551 | with_gnu_ld=unknown | |
c52df125 AC |
5552 | ;; |
5553 | esac | |
eec2776c AJ |
5554 | elif test "$with_gnu_ld" = yes; then |
5555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5556 | $as_echo_n "checking for GNU ld... " >&6; } | |
5557 | else | |
5558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5559 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
c52df125 | 5560 | fi |
eec2776c AJ |
5561 | if ${lt_cv_path_LD+:} false; then : |
5562 | $as_echo_n "(cached) " >&6 | |
5563 | else | |
5564 | if test -z "$LD"; then | |
5565 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5566 | for ac_dir in $PATH; do | |
5567 | IFS="$lt_save_ifs" | |
5568 | test -z "$ac_dir" && ac_dir=. | |
5569 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5570 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5571 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5572 | # but apparently some variants of GNU ld only accept -v. | |
5573 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5574 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5575 | *GNU* | *'with BFD'*) | |
5576 | test "$with_gnu_ld" != no && break | |
5577 | ;; | |
5578 | *) | |
5579 | test "$with_gnu_ld" != yes && break | |
5580 | ;; | |
5581 | esac | |
c52df125 | 5582 | fi |
eec2776c AJ |
5583 | done |
5584 | IFS="$lt_save_ifs" | |
5585 | else | |
5586 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5587 | fi | |
c52df125 AC |
5588 | fi |
5589 | ||
eec2776c AJ |
5590 | LD="$lt_cv_path_LD" |
5591 | if test -n "$LD"; then | |
5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5593 | $as_echo "$LD" >&6; } | |
5594 | else | |
5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5596 | $as_echo "no" >&6; } | |
5597 | fi | |
5598 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5600 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5601 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5602 | $as_echo_n "(cached) " >&6 | |
5603 | else | |
5604 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5605 | case `$LD -v 2>&1 </dev/null` in | |
5606 | *GNU* | *'with BFD'*) | |
5607 | lt_cv_prog_gnu_ld=yes | |
5608 | ;; | |
5609 | *) | |
5610 | lt_cv_prog_gnu_ld=no | |
5611 | ;; | |
5612 | esac | |
5613 | fi | |
5614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5615 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5616 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
c52df125 AC |
5617 | |
5618 | ||
5619 | ||
5620 | ||
5621 | ||
5622 | ||
5623 | ||
5624 | ||
5625 | ||
eec2776c AJ |
5626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5627 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5628 | if ${lt_cv_path_NM+:} false; then : | |
c52df125 AC |
5629 | $as_echo_n "(cached) " >&6 |
5630 | else | |
eec2776c AJ |
5631 | if test -n "$NM"; then |
5632 | # Let the user override the test. | |
5633 | lt_cv_path_NM="$NM" | |
c52df125 | 5634 | else |
eec2776c AJ |
5635 | lt_nm_to_check="${ac_tool_prefix}nm" |
5636 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5637 | lt_nm_to_check="$lt_nm_to_check nm" | |
c52df125 | 5638 | fi |
eec2776c AJ |
5639 | for lt_tmp_nm in $lt_nm_to_check; do |
5640 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5641 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5642 | IFS="$lt_save_ifs" | |
5643 | test -z "$ac_dir" && ac_dir=. | |
5644 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5645 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5646 | # Check to see if the nm accepts a BSD-compat flag. | |
5647 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5648 | # nm: unknown option "B" ignored | |
5649 | # Tru64's nm complains that /dev/null is an invalid object file | |
5650 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5651 | */dev/null* | *'Invalid file or object type'*) | |
5652 | lt_cv_path_NM="$tmp_nm -B" | |
5653 | break | |
5654 | ;; | |
5655 | *) | |
5656 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5657 | */dev/null*) | |
5658 | lt_cv_path_NM="$tmp_nm -p" | |
5659 | break | |
5660 | ;; | |
5661 | *) | |
5662 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5663 | continue # so that we can try to find one that supports BSD flags | |
5664 | ;; | |
5665 | esac | |
5666 | ;; | |
5667 | esac | |
5668 | fi | |
5669 | done | |
5670 | IFS="$lt_save_ifs" | |
c52df125 | 5671 | done |
eec2776c | 5672 | : ${lt_cv_path_NM=no} |
c52df125 AC |
5673 | fi |
5674 | fi | |
eec2776c AJ |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5676 | $as_echo "$lt_cv_path_NM" >&6; } | |
5677 | if test "$lt_cv_path_NM" != "no"; then | |
5678 | NM="$lt_cv_path_NM" | |
c52df125 | 5679 | else |
eec2776c AJ |
5680 | # Didn't find any BSD compatible name lister, look for dumpbin. |
5681 | if test -n "$DUMPBIN"; then : | |
5682 | # Let the user override the test. | |
c52df125 | 5683 | else |
eec2776c AJ |
5684 | if test -n "$ac_tool_prefix"; then |
5685 | for ac_prog in dumpbin "link -dump" | |
c52df125 AC |
5686 | do |
5687 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5688 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5690 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5691 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
c52df125 AC |
5692 | $as_echo_n "(cached) " >&6 |
5693 | else | |
eec2776c AJ |
5694 | if test -n "$DUMPBIN"; then |
5695 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
c52df125 AC |
5696 | else |
5697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5698 | for as_dir in $PATH | |
5699 | do | |
5700 | IFS=$as_save_IFS | |
5701 | test -z "$as_dir" && as_dir=. | |
5702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5703 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5704 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
c52df125 AC |
5705 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5706 | break 2 | |
5707 | fi | |
5708 | done | |
5709 | done | |
5710 | IFS=$as_save_IFS | |
5711 | ||
5712 | fi | |
5713 | fi | |
eec2776c AJ |
5714 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5715 | if test -n "$DUMPBIN"; then | |
5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5717 | $as_echo "$DUMPBIN" >&6; } | |
c52df125 AC |
5718 | else |
5719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5720 | $as_echo "no" >&6; } | |
5721 | fi | |
5722 | ||
5723 | ||
eec2776c | 5724 | test -n "$DUMPBIN" && break |
c52df125 AC |
5725 | done |
5726 | fi | |
eec2776c AJ |
5727 | if test -z "$DUMPBIN"; then |
5728 | ac_ct_DUMPBIN=$DUMPBIN | |
5729 | for ac_prog in dumpbin "link -dump" | |
c52df125 AC |
5730 | do |
5731 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5732 | set dummy $ac_prog; ac_word=$2 | |
5733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5734 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5735 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
c52df125 AC |
5736 | $as_echo_n "(cached) " >&6 |
5737 | else | |
eec2776c AJ |
5738 | if test -n "$ac_ct_DUMPBIN"; then |
5739 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
c52df125 AC |
5740 | else |
5741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5742 | for as_dir in $PATH | |
5743 | do | |
5744 | IFS=$as_save_IFS | |
5745 | test -z "$as_dir" && as_dir=. | |
5746 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5747 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5748 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
c52df125 AC |
5749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5750 | break 2 | |
5751 | fi | |
5752 | done | |
5753 | done | |
5754 | IFS=$as_save_IFS | |
5755 | ||
5756 | fi | |
5757 | fi | |
eec2776c AJ |
5758 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5759 | if test -n "$ac_ct_DUMPBIN"; then | |
5760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5761 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
c52df125 AC |
5762 | else |
5763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5764 | $as_echo "no" >&6; } | |
5765 | fi | |
5766 | ||
5767 | ||
eec2776c | 5768 | test -n "$ac_ct_DUMPBIN" && break |
c52df125 AC |
5769 | done |
5770 | ||
eec2776c AJ |
5771 | if test "x$ac_ct_DUMPBIN" = x; then |
5772 | DUMPBIN=":" | |
c52df125 AC |
5773 | else |
5774 | case $cross_compiling:$ac_tool_warned in | |
5775 | yes:) | |
5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5777 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5778 | ac_tool_warned=yes ;; | |
5779 | esac | |
eec2776c | 5780 | DUMPBIN=$ac_ct_DUMPBIN |
c52df125 AC |
5781 | fi |
5782 | fi | |
5783 | ||
eec2776c AJ |
5784 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5785 | *COFF*) | |
5786 | DUMPBIN="$DUMPBIN -symbols" | |
5787 | ;; | |
5788 | *) | |
5789 | DUMPBIN=: | |
5790 | ;; | |
5791 | esac | |
5792 | fi | |
c52df125 | 5793 | |
eec2776c AJ |
5794 | if test "$DUMPBIN" != ":"; then |
5795 | NM="$DUMPBIN" | |
5796 | fi | |
5797 | fi | |
5798 | test -z "$NM" && NM=nm | |
c52df125 AC |
5799 | |
5800 | ||
5801 | ||
5802 | ||
5803 | ||
5804 | ||
eec2776c AJ |
5805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5806 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5807 | if ${lt_cv_nm_interface+:} false; then : | |
c52df125 AC |
5808 | $as_echo_n "(cached) " >&6 |
5809 | else | |
eec2776c AJ |
5810 | lt_cv_nm_interface="BSD nm" |
5811 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5812 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5813 | (eval "$ac_compile" 2>conftest.err) | |
5814 | cat conftest.err >&5 | |
5815 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5816 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5817 | cat conftest.err >&5 | |
5818 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5819 | cat conftest.out >&5 | |
5820 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5821 | lt_cv_nm_interface="MS dumpbin" | |
5822 | fi | |
5823 | rm -f conftest* | |
c52df125 | 5824 | fi |
eec2776c AJ |
5825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5826 | $as_echo "$lt_cv_nm_interface" >&6; } | |
c52df125 | 5827 | |
eec2776c AJ |
5828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5829 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5830 | LN_S=$as_ln_s | |
5831 | if test "$LN_S" = "ln -s"; then | |
5832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5833 | $as_echo "yes" >&6; } | |
5834 | else | |
5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5836 | $as_echo "no, using $LN_S" >&6; } | |
c52df125 | 5837 | fi |
c52df125 | 5838 | |
eec2776c AJ |
5839 | # find the maximum length of command line arguments |
5840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5841 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5842 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
5843 | $as_echo_n "(cached) " >&6 | |
c52df125 | 5844 | else |
eec2776c AJ |
5845 | i=0 |
5846 | teststring="ABCD" | |
c52df125 | 5847 | |
eec2776c AJ |
5848 | case $build_os in |
5849 | msdosdjgpp*) | |
5850 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5851 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5852 | # during glob expansion). Even if it were fixed, the result of this | |
5853 | # check would be larger than it should be. | |
5854 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5855 | ;; | |
c52df125 | 5856 | |
eec2776c AJ |
5857 | gnu*) |
5858 | # Under GNU Hurd, this test is not required because there is | |
5859 | # no limit to the length of command line arguments. | |
5860 | # Libtool will interpret -1 as no limit whatsoever | |
5861 | lt_cv_sys_max_cmd_len=-1; | |
5862 | ;; | |
c52df125 | 5863 | |
eec2776c AJ |
5864 | cygwin* | mingw* | cegcc*) |
5865 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5866 | # about 5 minutes as the teststring grows exponentially. | |
5867 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5868 | # you end up with a "frozen" computer, even though with patience | |
5869 | # the test eventually succeeds (with a max line length of 256k). | |
5870 | # Instead, let's just punt: use the minimum linelength reported by | |
5871 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5872 | lt_cv_sys_max_cmd_len=8192; | |
5873 | ;; | |
c52df125 | 5874 | |
eec2776c AJ |
5875 | mint*) |
5876 | # On MiNT this can take a long time and run out of memory. | |
5877 | lt_cv_sys_max_cmd_len=8192; | |
5878 | ;; | |
c52df125 | 5879 | |
eec2776c AJ |
5880 | amigaos*) |
5881 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5882 | # So we just punt and use a minimum line length of 8192. | |
5883 | lt_cv_sys_max_cmd_len=8192; | |
5884 | ;; | |
c52df125 | 5885 | |
eec2776c AJ |
5886 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5887 | # This has been around since 386BSD, at least. Likely further. | |
5888 | if test -x /sbin/sysctl; then | |
5889 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5890 | elif test -x /usr/sbin/sysctl; then | |
5891 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5892 | else | |
5893 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5894 | fi | |
5895 | # And add a safety zone | |
5896 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5897 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5898 | ;; | |
c52df125 | 5899 | |
eec2776c AJ |
5900 | interix*) |
5901 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5902 | lt_cv_sys_max_cmd_len=196608 | |
5903 | ;; | |
c52df125 | 5904 | |
eec2776c AJ |
5905 | os2*) |
5906 | # The test takes a long time on OS/2. | |
5907 | lt_cv_sys_max_cmd_len=8192 | |
5908 | ;; | |
c52df125 | 5909 | |
eec2776c AJ |
5910 | osf*) |
5911 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5912 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5913 | # nice to cause kernel panics so lets avoid the loop below. | |
5914 | # First set a reasonable default. | |
5915 | lt_cv_sys_max_cmd_len=16384 | |
5916 | # | |
5917 | if test -x /sbin/sysconfig; then | |
5918 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5919 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5920 | esac | |
5921 | fi | |
5922 | ;; | |
5923 | sco3.2v5*) | |
5924 | lt_cv_sys_max_cmd_len=102400 | |
5925 | ;; | |
5926 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5927 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5928 | if test -n "$kargmax"; then | |
5929 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5930 | else | |
5931 | lt_cv_sys_max_cmd_len=32768 | |
5932 | fi | |
5933 | ;; | |
5934 | *) | |
5935 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5936 | if test -n "$lt_cv_sys_max_cmd_len" && \ | |
5937 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
5938 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5939 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5940 | else | |
5941 | # Make teststring a little bigger before we do anything with it. | |
5942 | # a 1K string should be a reasonable start. | |
5943 | for i in 1 2 3 4 5 6 7 8 ; do | |
5944 | teststring=$teststring$teststring | |
5945 | done | |
5946 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5947 | # If test is not a shell built-in, we'll probably end up computing a | |
5948 | # maximum length that is only half of the actual maximum length, but | |
5949 | # we can't tell. | |
5950 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |
5951 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5952 | test $i != 17 # 1/2 MB should be enough | |
5953 | do | |
5954 | i=`expr $i + 1` | |
5955 | teststring=$teststring$teststring | |
5956 | done | |
5957 | # Only check the string length outside the loop. | |
5958 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5959 | teststring= | |
5960 | # Add a significant safety factor because C++ compilers can tack on | |
5961 | # massive amounts of additional arguments before passing them to the | |
5962 | # linker. It appears as though 1/2 is a usable value. | |
5963 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5964 | fi | |
5965 | ;; | |
5966 | esac | |
c52df125 AC |
5967 | |
5968 | fi | |
c52df125 | 5969 | |
eec2776c AJ |
5970 | if test -n $lt_cv_sys_max_cmd_len ; then |
5971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5972 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
c52df125 | 5973 | else |
eec2776c AJ |
5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5975 | $as_echo "none" >&6; } | |
c52df125 | 5976 | fi |
eec2776c | 5977 | max_cmd_len=$lt_cv_sys_max_cmd_len |
c52df125 | 5978 | |
eec2776c AJ |
5979 | |
5980 | ||
5981 | ||
5982 | ||
5983 | ||
5984 | : ${CP="cp -f"} | |
5985 | : ${MV="mv -f"} | |
5986 | : ${RM="rm -f"} | |
5987 | ||
5988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
5989 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5990 | # Try some XSI features | |
5991 | xsi_shell=no | |
5992 | ( _lt_dummy="a/b/c" | |
5993 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
5994 | = c,a/b,b/c, \ | |
5995 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5996 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5997 | && xsi_shell=yes | |
5998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5999 | $as_echo "$xsi_shell" >&6; } | |
6000 | ||
6001 | ||
6002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
6003 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
6004 | lt_shell_append=no | |
6005 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6006 | >/dev/null 2>&1 \ | |
6007 | && lt_shell_append=yes | |
6008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6009 | $as_echo "$lt_shell_append" >&6; } | |
6010 | ||
6011 | ||
6012 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6013 | lt_unset=unset | |
6014 | else | |
6015 | lt_unset=false | |
6016 | fi | |
6017 | ||
6018 | ||
6019 | ||
6020 | ||
6021 | ||
6022 | # test EBCDIC or ASCII | |
6023 | case `echo X|tr X '\101'` in | |
6024 | A) # ASCII based system | |
6025 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6026 | lt_SP2NL='tr \040 \012' | |
6027 | lt_NL2SP='tr \015\012 \040\040' | |
6028 | ;; | |
6029 | *) # EBCDIC based system | |
6030 | lt_SP2NL='tr \100 \n' | |
6031 | lt_NL2SP='tr \r\n \100\100' | |
6032 | ;; | |
c52df125 | 6033 | esac |
eec2776c AJ |
6034 | |
6035 | ||
6036 | ||
6037 | ||
6038 | ||
6039 | ||
6040 | ||
6041 | ||
6042 | ||
6043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
6044 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
6045 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
6046 | $as_echo_n "(cached) " >&6 | |
c52df125 | 6047 | else |
eec2776c AJ |
6048 | case $host in |
6049 | *-*-mingw* ) | |
6050 | case $build in | |
6051 | *-*-mingw* ) # actually msys | |
6052 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
6053 | ;; | |
6054 | *-*-cygwin* ) | |
6055 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6056 | ;; | |
6057 | * ) # otherwise, assume *nix | |
6058 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6059 | ;; | |
6060 | esac | |
6061 | ;; | |
6062 | *-*-cygwin* ) | |
6063 | case $build in | |
6064 | *-*-mingw* ) # actually msys | |
6065 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6066 | ;; | |
6067 | *-*-cygwin* ) | |
6068 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6069 | ;; | |
6070 | * ) # otherwise, assume *nix | |
6071 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6072 | ;; | |
6073 | esac | |
6074 | ;; | |
6075 | * ) # unhandled hosts (and "normal" native builds) | |
6076 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6077 | ;; | |
6078 | esac | |
6079 | ||
c52df125 AC |
6080 | fi |
6081 | ||
eec2776c AJ |
6082 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
6083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6084 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
6085 | ||
6086 | ||
6087 | ||
6088 | ||
6089 | ||
6090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
6091 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6092 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6093 | $as_echo_n "(cached) " >&6 | |
6094 | else | |
6095 | #assume ordinary cross tools, or native build. | |
6096 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6097 | case $host in | |
6098 | *-*-mingw* ) | |
6099 | case $build in | |
6100 | *-*-mingw* ) # actually msys | |
6101 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6102 | ;; | |
6103 | esac | |
6104 | ;; | |
6105 | esac | |
6106 | ||
6107 | fi | |
6108 | ||
6109 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
6110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6111 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
6112 | ||
6113 | ||
6114 | ||
6115 | ||
6116 | ||
6117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6118 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6119 | if ${lt_cv_ld_reload_flag+:} false; then : | |
6120 | $as_echo_n "(cached) " >&6 | |
6121 | else | |
6122 | lt_cv_ld_reload_flag='-r' | |
6123 | fi | |
6124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6125 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6126 | reload_flag=$lt_cv_ld_reload_flag | |
6127 | case $reload_flag in | |
6128 | "" | " "*) ;; | |
6129 | *) reload_flag=" $reload_flag" ;; | |
6130 | esac | |
6131 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6132 | case $host_os in | |
6133 | cygwin* | mingw* | pw32* | cegcc*) | |
6134 | if test "$GCC" != yes; then | |
6135 | reload_cmds=false | |
6136 | fi | |
6137 | ;; | |
6138 | darwin*) | |
6139 | if test "$GCC" = yes; then | |
6140 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6141 | else | |
6142 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6143 | fi | |
6144 | ;; | |
6145 | esac | |
6146 | ||
6147 | ||
6148 | ||
c52df125 AC |
6149 | |
6150 | ||
6151 | ||
6152 | ||
6153 | ||
6154 | ||
6155 | if test -n "$ac_tool_prefix"; then | |
eec2776c AJ |
6156 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
6157 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
c52df125 AC |
6158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6159 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6160 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
c52df125 AC |
6161 | $as_echo_n "(cached) " >&6 |
6162 | else | |
eec2776c AJ |
6163 | if test -n "$OBJDUMP"; then |
6164 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
c52df125 AC |
6165 | else |
6166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6167 | for as_dir in $PATH | |
6168 | do | |
6169 | IFS=$as_save_IFS | |
6170 | test -z "$as_dir" && as_dir=. | |
6171 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6172 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6173 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
c52df125 AC |
6174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6175 | break 2 | |
6176 | fi | |
6177 | done | |
6178 | done | |
6179 | IFS=$as_save_IFS | |
6180 | ||
6181 | fi | |
6182 | fi | |
eec2776c AJ |
6183 | OBJDUMP=$ac_cv_prog_OBJDUMP |
6184 | if test -n "$OBJDUMP"; then | |
6185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6186 | $as_echo "$OBJDUMP" >&6; } | |
c52df125 AC |
6187 | else |
6188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6189 | $as_echo "no" >&6; } | |
6190 | fi | |
6191 | ||
6192 | ||
6193 | fi | |
eec2776c AJ |
6194 | if test -z "$ac_cv_prog_OBJDUMP"; then |
6195 | ac_ct_OBJDUMP=$OBJDUMP | |
6196 | # Extract the first word of "objdump", so it can be a program name with args. | |
6197 | set dummy objdump; ac_word=$2 | |
c52df125 AC |
6198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6199 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6200 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
c52df125 AC |
6201 | $as_echo_n "(cached) " >&6 |
6202 | else | |
eec2776c AJ |
6203 | if test -n "$ac_ct_OBJDUMP"; then |
6204 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
c52df125 AC |
6205 | else |
6206 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6207 | for as_dir in $PATH | |
6208 | do | |
6209 | IFS=$as_save_IFS | |
6210 | test -z "$as_dir" && as_dir=. | |
6211 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6212 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6213 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
c52df125 AC |
6214 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6215 | break 2 | |
6216 | fi | |
6217 | done | |
6218 | done | |
6219 | IFS=$as_save_IFS | |
6220 | ||
6221 | fi | |
6222 | fi | |
eec2776c AJ |
6223 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6224 | if test -n "$ac_ct_OBJDUMP"; then | |
6225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6226 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
c52df125 AC |
6227 | else |
6228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6229 | $as_echo "no" >&6; } | |
6230 | fi | |
6231 | ||
eec2776c AJ |
6232 | if test "x$ac_ct_OBJDUMP" = x; then |
6233 | OBJDUMP="false" | |
c52df125 AC |
6234 | else |
6235 | case $cross_compiling:$ac_tool_warned in | |
6236 | yes:) | |
6237 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6238 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6239 | ac_tool_warned=yes ;; | |
6240 | esac | |
eec2776c | 6241 | OBJDUMP=$ac_ct_OBJDUMP |
c52df125 AC |
6242 | fi |
6243 | else | |
eec2776c | 6244 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
c52df125 AC |
6245 | fi |
6246 | ||
eec2776c | 6247 | test -z "$OBJDUMP" && OBJDUMP=objdump |
c52df125 AC |
6248 | |
6249 | ||
c52df125 | 6250 | |
c52df125 | 6251 | |
c52df125 AC |
6252 | |
6253 | ||
6254 | ||
6255 | ||
6256 | ||
eec2776c AJ |
6257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6258 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6259 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6260 | $as_echo_n "(cached) " >&6 | |
6261 | else | |
6262 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6263 | lt_cv_file_magic_test_file= | |
6264 | lt_cv_deplibs_check_method='unknown' | |
6265 | # Need to set the preceding variable on all platforms that support | |
6266 | # interlibrary dependencies. | |
6267 | # 'none' -- dependencies not supported. | |
6268 | # `unknown' -- same as none, but documents that we really don't know. | |
6269 | # 'pass_all' -- all dependencies passed with no checks. | |
6270 | # 'test_compile' -- check by making test program. | |
6271 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6272 | # which responds to the $file_magic_cmd with a given extended regex. | |
6273 | # If you have `file' or equivalent on your system and you're not sure | |
6274 | # whether `pass_all' will *always* work, you probably want this one. | |
c52df125 | 6275 | |
eec2776c AJ |
6276 | case $host_os in |
6277 | aix[4-9]*) | |
6278 | lt_cv_deplibs_check_method=pass_all | |
6279 | ;; | |
c52df125 | 6280 | |
eec2776c AJ |
6281 | beos*) |
6282 | lt_cv_deplibs_check_method=pass_all | |
6283 | ;; | |
c52df125 | 6284 | |
eec2776c AJ |
6285 | bsdi[45]*) |
6286 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6287 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6288 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6289 | ;; | |
c52df125 | 6290 | |
eec2776c AJ |
6291 | cygwin*) |
6292 | # func_win32_libid is a shell function defined in ltmain.sh | |
6293 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6294 | lt_cv_file_magic_cmd='func_win32_libid' | |
6295 | ;; | |
c52df125 | 6296 | |
eec2776c AJ |
6297 | mingw* | pw32*) |
6298 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6299 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6300 | # unless we find 'file', for example because we are cross-compiling. | |
6301 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6302 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6303 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6304 | lt_cv_file_magic_cmd='func_win32_libid' | |
6305 | else | |
6306 | # Keep this pattern in sync with the one in func_win32_libid. | |
6307 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
6308 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6309 | fi | |
6310 | ;; | |
c52df125 | 6311 | |
eec2776c AJ |
6312 | cegcc*) |
6313 | # use the weaker test based on 'objdump'. See mingw*. | |
6314 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6315 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6316 | ;; | |
c52df125 | 6317 | |
eec2776c AJ |
6318 | darwin* | rhapsody*) |
6319 | lt_cv_deplibs_check_method=pass_all | |
6320 | ;; | |
c52df125 | 6321 | |
eec2776c AJ |
6322 | freebsd* | dragonfly*) |
6323 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6324 | case $host_cpu in | |
6325 | i*86 ) | |
6326 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6327 | # Let's accept both of them until this is cleared up. | |
6328 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6329 | lt_cv_file_magic_cmd=/usr/bin/file | |
6330 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6331 | ;; | |
6332 | esac | |
6333 | else | |
6334 | lt_cv_deplibs_check_method=pass_all | |
6335 | fi | |
6336 | ;; | |
c52df125 | 6337 | |
eec2776c AJ |
6338 | haiku*) |
6339 | lt_cv_deplibs_check_method=pass_all | |
6340 | ;; | |
c52df125 | 6341 | |
eec2776c AJ |
6342 | hpux10.20* | hpux11*) |
6343 | lt_cv_file_magic_cmd=/usr/bin/file | |
6344 | case $host_cpu in | |
6345 | ia64*) | |
6346 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6347 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6348 | ;; | |
6349 | hppa*64*) | |
6350 | 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]' | |
6351 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6352 | ;; | |
6353 | *) | |
6354 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6355 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6356 | ;; | |
6357 | esac | |
6358 | ;; | |
c52df125 | 6359 | |
eec2776c AJ |
6360 | interix[3-9]*) |
6361 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6362 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6363 | ;; | |
c52df125 | 6364 | |
eec2776c AJ |
6365 | irix5* | irix6* | nonstopux*) |
6366 | case $LD in | |
6367 | *-32|*"-32 ") libmagic=32-bit;; | |
6368 | *-n32|*"-n32 ") libmagic=N32;; | |
6369 | *-64|*"-64 ") libmagic=64-bit;; | |
6370 | *) libmagic=never-match;; | |
6371 | esac | |
6372 | lt_cv_deplibs_check_method=pass_all | |
6373 | ;; | |
c52df125 | 6374 | |
eec2776c AJ |
6375 | # This must be glibc/ELF. |
6376 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
6377 | lt_cv_deplibs_check_method=pass_all | |
6378 | ;; | |
c52df125 | 6379 | |
eec2776c AJ |
6380 | netbsd* | netbsdelf*-gnu) |
6381 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6382 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6383 | else | |
6384 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6385 | fi | |
6386 | ;; | |
c52df125 | 6387 | |
eec2776c AJ |
6388 | newos6*) |
6389 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6390 | lt_cv_file_magic_cmd=/usr/bin/file | |
6391 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6392 | ;; | |
c52df125 | 6393 | |
eec2776c AJ |
6394 | *nto* | *qnx*) |
6395 | lt_cv_deplibs_check_method=pass_all | |
6396 | ;; | |
c52df125 | 6397 | |
eec2776c AJ |
6398 | openbsd*) |
6399 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6400 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6401 | else | |
6402 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6403 | fi | |
6404 | ;; | |
c52df125 | 6405 | |
eec2776c AJ |
6406 | osf3* | osf4* | osf5*) |
6407 | lt_cv_deplibs_check_method=pass_all | |
6408 | ;; | |
c52df125 | 6409 | |
eec2776c AJ |
6410 | rdos*) |
6411 | lt_cv_deplibs_check_method=pass_all | |
6412 | ;; | |
c52df125 | 6413 | |
eec2776c AJ |
6414 | solaris*) |
6415 | lt_cv_deplibs_check_method=pass_all | |
6416 | ;; | |
c52df125 | 6417 | |
eec2776c AJ |
6418 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6419 | lt_cv_deplibs_check_method=pass_all | |
6420 | ;; | |
c52df125 | 6421 | |
eec2776c AJ |
6422 | sysv4 | sysv4.3*) |
6423 | case $host_vendor in | |
6424 | motorola) | |
6425 | 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]' | |
6426 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6427 | ;; | |
6428 | ncr) | |
6429 | lt_cv_deplibs_check_method=pass_all | |
6430 | ;; | |
6431 | sequent) | |
6432 | lt_cv_file_magic_cmd='/bin/file' | |
6433 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6434 | ;; | |
6435 | sni) | |
6436 | lt_cv_file_magic_cmd='/bin/file' | |
6437 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6438 | lt_cv_file_magic_test_file=/lib/libc.so | |
6439 | ;; | |
6440 | siemens) | |
6441 | lt_cv_deplibs_check_method=pass_all | |
6442 | ;; | |
6443 | pc) | |
6444 | lt_cv_deplibs_check_method=pass_all | |
6445 | ;; | |
6446 | esac | |
6447 | ;; | |
c52df125 | 6448 | |
eec2776c AJ |
6449 | tpf*) |
6450 | lt_cv_deplibs_check_method=pass_all | |
6451 | ;; | |
6452 | esac | |
c52df125 | 6453 | |
eec2776c AJ |
6454 | fi |
6455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6456 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
c52df125 | 6457 | |
eec2776c AJ |
6458 | file_magic_glob= |
6459 | want_nocaseglob=no | |
6460 | if test "$build" = "$host"; then | |
6461 | case $host_os in | |
6462 | mingw* | pw32*) | |
6463 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6464 | want_nocaseglob=yes | |
6465 | else | |
6466 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6467 | fi | |
6468 | ;; | |
6469 | esac | |
6470 | fi | |
c52df125 | 6471 | |
eec2776c AJ |
6472 | file_magic_cmd=$lt_cv_file_magic_cmd |
6473 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6474 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
c52df125 AC |
6475 | |
6476 | ||
6477 | ||
6478 | ||
6479 | ||
6480 | ||
6481 | ||
6482 | ||
c52df125 | 6483 | |
c52df125 | 6484 | |
c52df125 AC |
6485 | |
6486 | ||
c52df125 | 6487 | |
c52df125 | 6488 | |
c52df125 | 6489 | |
c52df125 | 6490 | |
c52df125 | 6491 | |
c52df125 | 6492 | |
c52df125 | 6493 | |
c52df125 | 6494 | |
c52df125 | 6495 | |
c52df125 | 6496 | |
eec2776c AJ |
6497 | if test -n "$ac_tool_prefix"; then |
6498 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
6499 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6501 | $as_echo_n "checking for $ac_word... " >&6; } | |
6502 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
6503 | $as_echo_n "(cached) " >&6 | |
6504 | else | |
6505 | if test -n "$DLLTOOL"; then | |
6506 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
6507 | else | |
6508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6509 | for as_dir in $PATH | |
6510 | do | |
6511 | IFS=$as_save_IFS | |
6512 | test -z "$as_dir" && as_dir=. | |
6513 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6514 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6515 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
6516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6517 | break 2 | |
c52df125 | 6518 | fi |
eec2776c AJ |
6519 | done |
6520 | done | |
6521 | IFS=$as_save_IFS | |
c52df125 | 6522 | |
eec2776c AJ |
6523 | fi |
6524 | fi | |
6525 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
6526 | if test -n "$DLLTOOL"; then | |
6527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6528 | $as_echo "$DLLTOOL" >&6; } | |
6529 | else | |
6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6531 | $as_echo "no" >&6; } | |
6532 | fi | |
c52df125 | 6533 | |
c52df125 | 6534 | |
eec2776c AJ |
6535 | fi |
6536 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
6537 | ac_ct_DLLTOOL=$DLLTOOL | |
6538 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6539 | set dummy dlltool; ac_word=$2 | |
6540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6541 | $as_echo_n "checking for $ac_word... " >&6; } | |
6542 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
6543 | $as_echo_n "(cached) " >&6 | |
6544 | else | |
6545 | if test -n "$ac_ct_DLLTOOL"; then | |
6546 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
6547 | else | |
6548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6549 | for as_dir in $PATH | |
6550 | do | |
6551 | IFS=$as_save_IFS | |
6552 | test -z "$as_dir" && as_dir=. | |
6553 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6554 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6555 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
6556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6557 | break 2 | |
c52df125 AC |
6558 | fi |
6559 | done | |
eec2776c AJ |
6560 | done |
6561 | IFS=$as_save_IFS | |
c52df125 AC |
6562 | |
6563 | fi | |
c52df125 | 6564 | fi |
eec2776c AJ |
6565 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
6566 | if test -n "$ac_ct_DLLTOOL"; then | |
6567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6568 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
c52df125 | 6569 | else |
eec2776c AJ |
6570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6571 | $as_echo "no" >&6; } | |
c52df125 AC |
6572 | fi |
6573 | ||
eec2776c AJ |
6574 | if test "x$ac_ct_DLLTOOL" = x; then |
6575 | DLLTOOL="false" | |
6576 | else | |
6577 | case $cross_compiling:$ac_tool_warned in | |
6578 | yes:) | |
6579 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6580 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6581 | ac_tool_warned=yes ;; | |
6582 | esac | |
6583 | DLLTOOL=$ac_ct_DLLTOOL | |
6584 | fi | |
6585 | else | |
6586 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
c52df125 AC |
6587 | fi |
6588 | ||
eec2776c | 6589 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
c52df125 AC |
6590 | |
6591 | ||
6592 | ||
6593 | ||
6594 | ||
6595 | ||
6596 | ||
6597 | ||
6598 | ||
6599 | ||
eec2776c AJ |
6600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
6601 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6602 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
6603 | $as_echo_n "(cached) " >&6 | |
6604 | else | |
6605 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
c52df125 | 6606 | |
eec2776c AJ |
6607 | case $host_os in |
6608 | cygwin* | mingw* | pw32* | cegcc*) | |
6609 | # two different shell functions defined in ltmain.sh | |
6610 | # decide which to use based on capabilities of $DLLTOOL | |
6611 | case `$DLLTOOL --help 2>&1` in | |
6612 | *--identify-strict*) | |
6613 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6614 | ;; | |
6615 | *) | |
6616 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6617 | ;; | |
6618 | esac | |
6619 | ;; | |
6620 | *) | |
6621 | # fallback: assume linklib IS sharedlib | |
6622 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
6623 | ;; | |
6624 | esac | |
c52df125 | 6625 | |
eec2776c AJ |
6626 | fi |
6627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
6628 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6629 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6630 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
c52df125 AC |
6631 | |
6632 | ||
6633 | ||
6634 | ||
6635 | ||
6636 | ||
6637 | ||
eec2776c AJ |
6638 | if test -n "$ac_tool_prefix"; then |
6639 | for ac_prog in ar | |
6640 | do | |
6641 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6642 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6644 | $as_echo_n "checking for $ac_word... " >&6; } | |
6645 | if ${ac_cv_prog_AR+:} false; then : | |
6646 | $as_echo_n "(cached) " >&6 | |
6647 | else | |
6648 | if test -n "$AR"; then | |
6649 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6650 | else | |
6651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6652 | for as_dir in $PATH | |
6653 | do | |
6654 | IFS=$as_save_IFS | |
6655 | test -z "$as_dir" && as_dir=. | |
6656 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6657 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6658 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
6659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6660 | break 2 | |
6661 | fi | |
6662 | done | |
6663 | done | |
6664 | IFS=$as_save_IFS | |
c52df125 | 6665 | |
eec2776c AJ |
6666 | fi |
6667 | fi | |
6668 | AR=$ac_cv_prog_AR | |
6669 | if test -n "$AR"; then | |
6670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6671 | $as_echo "$AR" >&6; } | |
6672 | else | |
6673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6674 | $as_echo "no" >&6; } | |
6675 | fi | |
c52df125 AC |
6676 | |
6677 | ||
eec2776c AJ |
6678 | test -n "$AR" && break |
6679 | done | |
6680 | fi | |
6681 | if test -z "$AR"; then | |
6682 | ac_ct_AR=$AR | |
6683 | for ac_prog in ar | |
6684 | do | |
6685 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6686 | set dummy $ac_prog; ac_word=$2 | |
6687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6688 | $as_echo_n "checking for $ac_word... " >&6; } | |
6689 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
6690 | $as_echo_n "(cached) " >&6 | |
6691 | else | |
6692 | if test -n "$ac_ct_AR"; then | |
6693 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6694 | else | |
6695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6696 | for as_dir in $PATH | |
6697 | do | |
6698 | IFS=$as_save_IFS | |
6699 | test -z "$as_dir" && as_dir=. | |
6700 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6701 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6702 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
6703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6704 | break 2 | |
6705 | fi | |
6706 | done | |
6707 | done | |
6708 | IFS=$as_save_IFS | |
c52df125 | 6709 | |
eec2776c AJ |
6710 | fi |
6711 | fi | |
6712 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6713 | if test -n "$ac_ct_AR"; then | |
6714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6715 | $as_echo "$ac_ct_AR" >&6; } | |
c52df125 | 6716 | else |
eec2776c AJ |
6717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6718 | $as_echo "no" >&6; } | |
c52df125 AC |
6719 | fi |
6720 | ||
6721 | ||
eec2776c AJ |
6722 | test -n "$ac_ct_AR" && break |
6723 | done | |
6724 | ||
6725 | if test "x$ac_ct_AR" = x; then | |
6726 | AR="false" | |
6727 | else | |
6728 | case $cross_compiling:$ac_tool_warned in | |
6729 | yes:) | |
6730 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6731 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6732 | ac_tool_warned=yes ;; | |
c52df125 | 6733 | esac |
eec2776c AJ |
6734 | AR=$ac_ct_AR |
6735 | fi | |
6736 | fi | |
c52df125 | 6737 | |
eec2776c AJ |
6738 | : ${AR=ar} |
6739 | : ${AR_FLAGS=cru} | |
c52df125 AC |
6740 | |
6741 | ||
6742 | ||
6743 | ||
6744 | ||
c52df125 | 6745 | |
c52df125 | 6746 | |
eec2776c AJ |
6747 | |
6748 | ||
6749 | ||
6750 | ||
6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6752 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6753 | if ${lt_cv_ar_at_file+:} false; then : | |
6754 | $as_echo_n "(cached) " >&6 | |
6755 | else | |
6756 | lt_cv_ar_at_file=no | |
6757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6758 | /* end confdefs.h. */ | |
6759 | ||
6760 | int | |
6761 | main () | |
6762 | { | |
6763 | ||
6764 | ; | |
6765 | return 0; | |
6766 | } | |
6767 | _ACEOF | |
6768 | if ac_fn_c_try_compile "$LINENO"; then : | |
6769 | echo conftest.$ac_objext > conftest.lst | |
6770 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6771 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6772 | (eval $lt_ar_try) 2>&5 | |
c52df125 AC |
6773 | ac_status=$? |
6774 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
6775 | test $ac_status = 0; } |
6776 | if test "$ac_status" -eq 0; then | |
6777 | # Ensure the archiver fails upon bogus file names. | |
6778 | rm -f conftest.$ac_objext libconftest.a | |
6779 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6780 | (eval $lt_ar_try) 2>&5 | |
c52df125 AC |
6781 | ac_status=$? |
6782 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
6783 | test $ac_status = 0; } |
6784 | if test "$ac_status" -ne 0; then | |
6785 | lt_cv_ar_at_file=@ | |
6786 | fi | |
6787 | fi | |
6788 | rm -f conftest.* libconftest.a | |
c52df125 | 6789 | |
eec2776c AJ |
6790 | fi |
6791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c52df125 | 6792 | |
eec2776c AJ |
6793 | fi |
6794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6795 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6796 | ||
6797 | if test "x$lt_cv_ar_at_file" = xno; then | |
6798 | archiver_list_spec= | |
c52df125 | 6799 | else |
eec2776c AJ |
6800 | archiver_list_spec=$lt_cv_ar_at_file |
6801 | fi | |
6802 | ||
c52df125 | 6803 | |
c52df125 | 6804 | |
c52df125 | 6805 | |
c52df125 | 6806 | |
c52df125 | 6807 | |
c52df125 AC |
6808 | |
6809 | if test -n "$ac_tool_prefix"; then | |
eec2776c AJ |
6810 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6811 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
c52df125 AC |
6812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6813 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6814 | if ${ac_cv_prog_STRIP+:} false; then : |
c52df125 AC |
6815 | $as_echo_n "(cached) " >&6 |
6816 | else | |
eec2776c AJ |
6817 | if test -n "$STRIP"; then |
6818 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
c52df125 AC |
6819 | else |
6820 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6821 | for as_dir in $PATH | |
6822 | do | |
6823 | IFS=$as_save_IFS | |
6824 | test -z "$as_dir" && as_dir=. | |
6825 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6826 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6827 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
c52df125 AC |
6828 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6829 | break 2 | |
6830 | fi | |
6831 | done | |
6832 | done | |
6833 | IFS=$as_save_IFS | |
6834 | ||
6835 | fi | |
6836 | fi | |
eec2776c AJ |
6837 | STRIP=$ac_cv_prog_STRIP |
6838 | if test -n "$STRIP"; then | |
6839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6840 | $as_echo "$STRIP" >&6; } | |
c52df125 AC |
6841 | else |
6842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6843 | $as_echo "no" >&6; } | |
6844 | fi | |
6845 | ||
6846 | ||
6847 | fi | |
eec2776c AJ |
6848 | if test -z "$ac_cv_prog_STRIP"; then |
6849 | ac_ct_STRIP=$STRIP | |
6850 | # Extract the first word of "strip", so it can be a program name with args. | |
6851 | set dummy strip; ac_word=$2 | |
c52df125 AC |
6852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6853 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6854 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
c52df125 AC |
6855 | $as_echo_n "(cached) " >&6 |
6856 | else | |
eec2776c AJ |
6857 | if test -n "$ac_ct_STRIP"; then |
6858 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
c52df125 AC |
6859 | else |
6860 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6861 | for as_dir in $PATH | |
6862 | do | |
6863 | IFS=$as_save_IFS | |
6864 | test -z "$as_dir" && as_dir=. | |
6865 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6866 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6867 | ac_cv_prog_ac_ct_STRIP="strip" |
c52df125 AC |
6868 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6869 | break 2 | |
6870 | fi | |
6871 | done | |
6872 | done | |
6873 | IFS=$as_save_IFS | |
6874 | ||
6875 | fi | |
6876 | fi | |
eec2776c AJ |
6877 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6878 | if test -n "$ac_ct_STRIP"; then | |
6879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6880 | $as_echo "$ac_ct_STRIP" >&6; } | |
c52df125 AC |
6881 | else |
6882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6883 | $as_echo "no" >&6; } | |
6884 | fi | |
6885 | ||
eec2776c AJ |
6886 | if test "x$ac_ct_STRIP" = x; then |
6887 | STRIP=":" | |
c52df125 AC |
6888 | else |
6889 | case $cross_compiling:$ac_tool_warned in | |
6890 | yes:) | |
6891 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6892 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6893 | ac_tool_warned=yes ;; | |
6894 | esac | |
eec2776c | 6895 | STRIP=$ac_ct_STRIP |
c52df125 AC |
6896 | fi |
6897 | else | |
eec2776c | 6898 | STRIP="$ac_cv_prog_STRIP" |
c52df125 AC |
6899 | fi |
6900 | ||
eec2776c | 6901 | test -z "$STRIP" && STRIP=: |
c52df125 AC |
6902 | |
6903 | ||
6904 | ||
6905 | ||
6906 | ||
6907 | ||
eec2776c AJ |
6908 | if test -n "$ac_tool_prefix"; then |
6909 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6910 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
c52df125 AC |
6911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6912 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6913 | if ${ac_cv_prog_RANLIB+:} false; then : |
c52df125 AC |
6914 | $as_echo_n "(cached) " >&6 |
6915 | else | |
eec2776c AJ |
6916 | if test -n "$RANLIB"; then |
6917 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
c52df125 AC |
6918 | else |
6919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6920 | for as_dir in $PATH | |
6921 | do | |
6922 | IFS=$as_save_IFS | |
6923 | test -z "$as_dir" && as_dir=. | |
6924 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6925 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6926 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
c52df125 AC |
6927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6928 | break 2 | |
6929 | fi | |
6930 | done | |
6931 | done | |
6932 | IFS=$as_save_IFS | |
6933 | ||
6934 | fi | |
6935 | fi | |
eec2776c AJ |
6936 | RANLIB=$ac_cv_prog_RANLIB |
6937 | if test -n "$RANLIB"; then | |
6938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6939 | $as_echo "$RANLIB" >&6; } | |
c52df125 AC |
6940 | else |
6941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6942 | $as_echo "no" >&6; } | |
6943 | fi | |
6944 | ||
6945 | ||
6946 | fi | |
eec2776c AJ |
6947 | if test -z "$ac_cv_prog_RANLIB"; then |
6948 | ac_ct_RANLIB=$RANLIB | |
6949 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6950 | set dummy ranlib; ac_word=$2 | |
c52df125 AC |
6951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6952 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6953 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
c52df125 AC |
6954 | $as_echo_n "(cached) " >&6 |
6955 | else | |
eec2776c AJ |
6956 | if test -n "$ac_ct_RANLIB"; then |
6957 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
c52df125 AC |
6958 | else |
6959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6960 | for as_dir in $PATH | |
6961 | do | |
6962 | IFS=$as_save_IFS | |
6963 | test -z "$as_dir" && as_dir=. | |
6964 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6965 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6966 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
c52df125 AC |
6967 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6968 | break 2 | |
6969 | fi | |
6970 | done | |
6971 | done | |
6972 | IFS=$as_save_IFS | |
6973 | ||
6974 | fi | |
6975 | fi | |
eec2776c AJ |
6976 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6977 | if test -n "$ac_ct_RANLIB"; then | |
6978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6979 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6980 | else | |
6981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
c52df125 AC |
6982 | $as_echo "no" >&6; } |
6983 | fi | |
6984 | ||
eec2776c AJ |
6985 | if test "x$ac_ct_RANLIB" = x; then |
6986 | RANLIB=":" | |
c52df125 AC |
6987 | else |
6988 | case $cross_compiling:$ac_tool_warned in | |
6989 | yes:) | |
6990 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6991 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6992 | ac_tool_warned=yes ;; | |
6993 | esac | |
eec2776c | 6994 | RANLIB=$ac_ct_RANLIB |
c52df125 AC |
6995 | fi |
6996 | else | |
eec2776c | 6997 | RANLIB="$ac_cv_prog_RANLIB" |
c52df125 AC |
6998 | fi |
6999 | ||
eec2776c | 7000 | test -z "$RANLIB" && RANLIB=: |
c52df125 | 7001 | |
c52df125 AC |
7002 | |
7003 | ||
c52df125 | 7004 | |
eec2776c AJ |
7005 | |
7006 | ||
7007 | # Determine commands to create old-style static archives. | |
7008 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7009 | old_postinstall_cmds='chmod 644 $oldlib' | |
7010 | old_postuninstall_cmds= | |
7011 | ||
7012 | if test -n "$RANLIB"; then | |
7013 | case $host_os in | |
7014 | openbsd*) | |
7015 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
7016 | ;; | |
7017 | *) | |
7018 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
7019 | ;; | |
7020 | esac | |
7021 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
c52df125 AC |
7022 | fi |
7023 | ||
eec2776c AJ |
7024 | case $host_os in |
7025 | darwin*) | |
7026 | lock_old_archive_extraction=yes ;; | |
7027 | *) | |
7028 | lock_old_archive_extraction=no ;; | |
c52df125 | 7029 | esac |
c52df125 | 7030 | |
c52df125 | 7031 | |
c52df125 AC |
7032 | |
7033 | ||
c52df125 | 7034 | |
c52df125 | 7035 | |
c52df125 | 7036 | |
c52df125 | 7037 | |
c52df125 AC |
7038 | |
7039 | ||
c52df125 | 7040 | |
c52df125 | 7041 | |
c52df125 AC |
7042 | |
7043 | ||
c52df125 | 7044 | |
c52df125 | 7045 | |
c52df125 AC |
7046 | |
7047 | ||
7048 | ||
7049 | ||
7050 | ||
7051 | ||
7052 | ||
7053 | ||
7054 | ||
7055 | ||
7056 | ||
7057 | ||
7058 | ||
7059 | ||
7060 | ||
7061 | ||
7062 | ||
7063 | ||
7064 | ||
7065 | ||
7066 | ||
7067 | ||
7068 | ||
eec2776c AJ |
7069 | # If no C compiler was specified, use CC. |
7070 | LTCC=${LTCC-"$CC"} | |
c52df125 | 7071 | |
eec2776c AJ |
7072 | # If no C compiler flags were specified, use CFLAGS. |
7073 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
c52df125 | 7074 | |
eec2776c AJ |
7075 | # Allow CC to be a program name with arguments. |
7076 | compiler=$CC | |
c52df125 AC |
7077 | |
7078 | ||
eec2776c AJ |
7079 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7081 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7082 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
c52df125 AC |
7083 | $as_echo_n "(cached) " >&6 |
7084 | else | |
c52df125 | 7085 | |
eec2776c AJ |
7086 | # These are sane defaults that work on at least a few old systems. |
7087 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
c52df125 | 7088 | |
eec2776c AJ |
7089 | # Character class describing NM global symbol codes. |
7090 | symcode='[BCDEGRST]' | |
c52df125 | 7091 | |
eec2776c AJ |
7092 | # Regexp to match symbols that can be accessed directly from C. |
7093 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
c52df125 | 7094 | |
eec2776c AJ |
7095 | # Define system-specific variables. |
7096 | case $host_os in | |
7097 | aix*) | |
7098 | symcode='[BCDT]' | |
7099 | ;; | |
7100 | cygwin* | mingw* | pw32* | cegcc*) | |
7101 | symcode='[ABCDGISTW]' | |
7102 | ;; | |
7103 | hpux*) | |
7104 | if test "$host_cpu" = ia64; then | |
7105 | symcode='[ABCDEGRST]' | |
7106 | fi | |
7107 | ;; | |
7108 | irix* | nonstopux*) | |
7109 | symcode='[BCDEGRST]' | |
7110 | ;; | |
7111 | osf*) | |
7112 | symcode='[BCDEGQRST]' | |
7113 | ;; | |
7114 | solaris*) | |
7115 | symcode='[BDRT]' | |
7116 | ;; | |
7117 | sco3.2v5*) | |
7118 | symcode='[DT]' | |
7119 | ;; | |
7120 | sysv4.2uw2*) | |
7121 | symcode='[DT]' | |
7122 | ;; | |
7123 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7124 | symcode='[ABDT]' | |
7125 | ;; | |
7126 | sysv4) | |
7127 | symcode='[DFNSTU]' | |
7128 | ;; | |
7129 | esac | |
c52df125 | 7130 | |
eec2776c AJ |
7131 | # If we're using GNU nm, then use its standard symbol codes. |
7132 | case `$NM -V 2>&1` in | |
7133 | *GNU* | *'with BFD'*) | |
7134 | symcode='[ABCDGIRSTW]' ;; | |
7135 | esac | |
c52df125 | 7136 | |
eec2776c AJ |
7137 | # Transform an extracted symbol line into a proper C declaration. |
7138 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7139 | # so use this general approach. | |
7140 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
c52df125 | 7141 | |
eec2776c AJ |
7142 | # Transform an extracted symbol line into symbol name and symbol address |
7143 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7144 | 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'" | |
c52df125 | 7145 | |
eec2776c AJ |
7146 | # Handle CRLF in mingw tool chain |
7147 | opt_cr= | |
7148 | case $build_os in | |
7149 | mingw*) | |
7150 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7151 | ;; | |
7152 | esac | |
c52df125 | 7153 | |
eec2776c AJ |
7154 | # Try without a prefix underscore, then with it. |
7155 | for ac_symprfx in "" "_"; do | |
c52df125 | 7156 | |
eec2776c AJ |
7157 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7158 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
c52df125 | 7159 | |
eec2776c AJ |
7160 | # Write the raw and C identifiers. |
7161 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7162 | # Fake it for dumpbin and say T for any non-static function | |
7163 | # and D for any global variable. | |
7164 | # Also find C++ and __fastcall symbols from MSVC++, | |
7165 | # which start with @ or ?. | |
7166 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7167 | " {last_section=section; section=\$ 3};"\ | |
7168 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
7169 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7170 | " \$ 0!~/External *\|/{next};"\ | |
7171 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7172 | " {if(hide[section]) next};"\ | |
7173 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7174 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7175 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7176 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7177 | " ' prfx=^$ac_symprfx" | |
7178 | else | |
7179 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7180 | fi | |
7181 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
c52df125 | 7182 | |
eec2776c AJ |
7183 | # Check to see that the pipe works correctly. |
7184 | pipe_works=no | |
7185 | ||
7186 | rm -f conftest* | |
7187 | cat > conftest.$ac_ext <<_LT_EOF | |
7188 | #ifdef __cplusplus | |
7189 | extern "C" { | |
c52df125 | 7190 | #endif |
eec2776c AJ |
7191 | char nm_test_var; |
7192 | void nm_test_func(void); | |
7193 | void nm_test_func(void){} | |
7194 | #ifdef __cplusplus | |
7195 | } | |
7196 | #endif | |
7197 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7198 | _LT_EOF | |
c52df125 | 7199 | |
eec2776c AJ |
7200 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7201 | (eval $ac_compile) 2>&5 | |
7202 | ac_status=$? | |
7203 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7204 | test $ac_status = 0; }; then | |
7205 | # Now try to grab the symbols. | |
7206 | nlist=conftest.nm | |
7207 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7208 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7209 | ac_status=$? | |
7210 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7211 | test $ac_status = 0; } && test -s "$nlist"; then | |
7212 | # Try sorting and uniquifying the output. | |
7213 | if sort "$nlist" | uniq > "$nlist"T; then | |
7214 | mv -f "$nlist"T "$nlist" | |
7215 | else | |
7216 | rm -f "$nlist"T | |
7217 | fi | |
c52df125 | 7218 | |
eec2776c AJ |
7219 | # Make sure that we snagged all the symbols we need. |
7220 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7221 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7222 | cat <<_LT_EOF > conftest.$ac_ext | |
7223 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
7224 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
7225 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
7226 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
7227 | # define LT_DLSYM_CONST | |
7228 | #elif defined(__osf__) | |
7229 | /* This system does not cope well with relocations in const data. */ | |
7230 | # define LT_DLSYM_CONST | |
7231 | #else | |
7232 | # define LT_DLSYM_CONST const | |
7233 | #endif | |
c52df125 | 7234 | |
eec2776c AJ |
7235 | #ifdef __cplusplus |
7236 | extern "C" { | |
7237 | #endif | |
c52df125 | 7238 | |
eec2776c AJ |
7239 | _LT_EOF |
7240 | # Now generate the symbol file. | |
7241 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
c52df125 | 7242 | |
eec2776c | 7243 | cat <<_LT_EOF >> conftest.$ac_ext |
c52df125 | 7244 | |
eec2776c AJ |
7245 | /* The mapping between symbol names and symbols. */ |
7246 | LT_DLSYM_CONST struct { | |
7247 | const char *name; | |
7248 | void *address; | |
7249 | } | |
7250 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
c52df125 | 7251 | { |
eec2776c AJ |
7252 | { "@PROGRAM@", (void *) 0 }, |
7253 | _LT_EOF | |
7254 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7255 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7256 | {0, (void *) 0} | |
7257 | }; | |
c52df125 | 7258 | |
eec2776c AJ |
7259 | /* This works around a problem in FreeBSD linker */ |
7260 | #ifdef FREEBSD_WORKAROUND | |
7261 | static const void *lt_preloaded_setup() { | |
7262 | return lt__PROGRAM__LTX_preloaded_symbols; | |
c52df125 | 7263 | } |
eec2776c | 7264 | #endif |
c52df125 | 7265 | |
eec2776c AJ |
7266 | #ifdef __cplusplus |
7267 | } | |
7268 | #endif | |
7269 | _LT_EOF | |
7270 | # Now try linking the two files. | |
7271 | mv conftest.$ac_objext conftstm.$ac_objext | |
7272 | lt_globsym_save_LIBS=$LIBS | |
7273 | lt_globsym_save_CFLAGS=$CFLAGS | |
7274 | LIBS="conftstm.$ac_objext" | |
7275 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7276 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7277 | (eval $ac_link) 2>&5 | |
7278 | ac_status=$? | |
7279 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7280 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7281 | pipe_works=yes | |
7282 | fi | |
7283 | LIBS=$lt_globsym_save_LIBS | |
7284 | CFLAGS=$lt_globsym_save_CFLAGS | |
7285 | else | |
7286 | echo "cannot find nm_test_func in $nlist" >&5 | |
7287 | fi | |
7288 | else | |
7289 | echo "cannot find nm_test_var in $nlist" >&5 | |
7290 | fi | |
7291 | else | |
7292 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7293 | fi | |
7294 | else | |
7295 | echo "$progname: failed program was:" >&5 | |
7296 | cat conftest.$ac_ext >&5 | |
7297 | fi | |
7298 | rm -rf conftest* conftst* | |
c52df125 | 7299 | |
eec2776c AJ |
7300 | # Do not use the global_symbol_pipe unless it works. |
7301 | if test "$pipe_works" = yes; then | |
7302 | break | |
7303 | else | |
7304 | lt_cv_sys_global_symbol_pipe= | |
7305 | fi | |
7306 | done | |
c52df125 | 7307 | |
c52df125 | 7308 | fi |
c52df125 | 7309 | |
eec2776c AJ |
7310 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
7311 | lt_cv_sys_global_symbol_to_cdecl= | |
c52df125 | 7312 | fi |
eec2776c AJ |
7313 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
7314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7315 | $as_echo "failed" >&6; } | |
c52df125 | 7316 | else |
eec2776c AJ |
7317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7318 | $as_echo "ok" >&6; } | |
c52df125 | 7319 | fi |
c52df125 | 7320 | |
eec2776c AJ |
7321 | # Response file support. |
7322 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7323 | nm_file_list_spec='@' | |
7324 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7325 | nm_file_list_spec='@' | |
c52df125 AC |
7326 | fi |
7327 | ||
c52df125 | 7328 | |
c52df125 | 7329 | |
c52df125 | 7330 | |
c52df125 | 7331 | |
c52df125 | 7332 | |
c52df125 | 7333 | |
c52df125 | 7334 | |
c52df125 | 7335 | |
c52df125 AC |
7336 | |
7337 | ||
c52df125 | 7338 | |
c52df125 | 7339 | |
c52df125 AC |
7340 | |
7341 | ||
7342 | ||
7343 | ||
7344 | ||
c52df125 AC |
7345 | |
7346 | ||
7347 | ||
7348 | ||
7349 | ||
7350 | ||
7351 | ||
7352 | ||
7353 | ||
eec2776c AJ |
7354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
7355 | $as_echo_n "checking for sysroot... " >&6; } | |
c52df125 | 7356 | |
eec2776c AJ |
7357 | # Check whether --with-sysroot was given. |
7358 | if test "${with_sysroot+set}" = set; then : | |
7359 | withval=$with_sysroot; | |
7360 | else | |
7361 | with_sysroot=no | |
7362 | fi | |
c52df125 AC |
7363 | |
7364 | ||
eec2776c AJ |
7365 | lt_sysroot= |
7366 | case ${with_sysroot} in #( | |
7367 | yes) | |
7368 | if test "$GCC" = yes; then | |
7369 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
7370 | fi | |
7371 | ;; #( | |
7372 | /*) | |
7373 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7374 | ;; #( | |
7375 | no|'') | |
7376 | ;; #( | |
7377 | *) | |
7378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
7379 | $as_echo "${with_sysroot}" >&6; } | |
7380 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
7381 | ;; | |
7382 | esac | |
c52df125 | 7383 | |
eec2776c AJ |
7384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
7385 | $as_echo "${lt_sysroot:-no}" >&6; } | |
c52df125 AC |
7386 | |
7387 | ||
7388 | ||
7389 | ||
7390 | ||
eec2776c AJ |
7391 | # Check whether --enable-libtool-lock was given. |
7392 | if test "${enable_libtool_lock+set}" = set; then : | |
7393 | enableval=$enable_libtool_lock; | |
c52df125 AC |
7394 | fi |
7395 | ||
eec2776c | 7396 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
c52df125 | 7397 | |
eec2776c AJ |
7398 | # Some flags need to be propagated to the compiler or linker for good |
7399 | # libtool support. | |
7400 | case $host in | |
7401 | ia64-*-hpux*) | |
7402 | # Find out which ABI we are using. | |
7403 | echo 'int i;' > conftest.$ac_ext | |
7404 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7405 | (eval $ac_compile) 2>&5 | |
7406 | ac_status=$? | |
7407 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7408 | test $ac_status = 0; }; then | |
7409 | case `/usr/bin/file conftest.$ac_objext` in | |
7410 | *ELF-32*) | |
7411 | HPUX_IA64_MODE="32" | |
7412 | ;; | |
7413 | *ELF-64*) | |
7414 | HPUX_IA64_MODE="64" | |
7415 | ;; | |
7416 | esac | |
7417 | fi | |
7418 | rm -rf conftest* | |
7419 | ;; | |
7420 | *-*-irix6*) | |
7421 | # Find out which ABI we are using. | |
7422 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7423 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7424 | (eval $ac_compile) 2>&5 | |
7425 | ac_status=$? | |
7426 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7427 | test $ac_status = 0; }; then | |
7428 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7429 | case `/usr/bin/file conftest.$ac_objext` in | |
7430 | *32-bit*) | |
7431 | LD="${LD-ld} -melf32bsmip" | |
7432 | ;; | |
7433 | *N32*) | |
7434 | LD="${LD-ld} -melf32bmipn32" | |
7435 | ;; | |
7436 | *64-bit*) | |
7437 | LD="${LD-ld} -melf64bmip" | |
7438 | ;; | |
7439 | esac | |
7440 | else | |
7441 | case `/usr/bin/file conftest.$ac_objext` in | |
7442 | *32-bit*) | |
7443 | LD="${LD-ld} -32" | |
7444 | ;; | |
7445 | *N32*) | |
7446 | LD="${LD-ld} -n32" | |
7447 | ;; | |
7448 | *64-bit*) | |
7449 | LD="${LD-ld} -64" | |
7450 | ;; | |
7451 | esac | |
7452 | fi | |
7453 | fi | |
7454 | rm -rf conftest* | |
7455 | ;; | |
c52df125 | 7456 | |
eec2776c AJ |
7457 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7458 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7459 | # Find out which ABI we are using. | |
7460 | echo 'int i;' > conftest.$ac_ext | |
7461 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7462 | (eval $ac_compile) 2>&5 | |
7463 | ac_status=$? | |
7464 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7465 | test $ac_status = 0; }; then | |
7466 | case `/usr/bin/file conftest.o` in | |
7467 | *32-bit*) | |
7468 | case $host in | |
7469 | x86_64-*kfreebsd*-gnu) | |
7470 | LD="${LD-ld} -m elf_i386_fbsd" | |
7471 | ;; | |
7472 | x86_64-*linux*) | |
7473 | case `/usr/bin/file conftest.o` in | |
7474 | *x86-64*) | |
7475 | LD="${LD-ld} -m elf32_x86_64" | |
7476 | ;; | |
7477 | *) | |
7478 | LD="${LD-ld} -m elf_i386" | |
7479 | ;; | |
7480 | esac | |
7481 | ;; | |
7482 | powerpc64le-*) | |
7483 | LD="${LD-ld} -m elf32lppclinux" | |
7484 | ;; | |
7485 | powerpc64-*) | |
7486 | LD="${LD-ld} -m elf32ppclinux" | |
7487 | ;; | |
7488 | s390x-*linux*) | |
7489 | LD="${LD-ld} -m elf_s390" | |
7490 | ;; | |
7491 | sparc64-*linux*) | |
7492 | LD="${LD-ld} -m elf32_sparc" | |
7493 | ;; | |
7494 | esac | |
7495 | ;; | |
7496 | *64-bit*) | |
7497 | case $host in | |
7498 | x86_64-*kfreebsd*-gnu) | |
7499 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7500 | ;; | |
7501 | x86_64-*linux*) | |
7502 | LD="${LD-ld} -m elf_x86_64" | |
7503 | ;; | |
7504 | powerpcle-*) | |
7505 | LD="${LD-ld} -m elf64lppc" | |
7506 | ;; | |
7507 | powerpc-*) | |
7508 | LD="${LD-ld} -m elf64ppc" | |
7509 | ;; | |
7510 | s390*-*linux*|s390*-*tpf*) | |
7511 | LD="${LD-ld} -m elf64_s390" | |
7512 | ;; | |
7513 | sparc*-*linux*) | |
7514 | LD="${LD-ld} -m elf64_sparc" | |
7515 | ;; | |
7516 | esac | |
7517 | ;; | |
7518 | esac | |
7519 | fi | |
7520 | rm -rf conftest* | |
7521 | ;; | |
c52df125 | 7522 | |
eec2776c AJ |
7523 | *-*-sco3.2v5*) |
7524 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7525 | SAVE_CFLAGS="$CFLAGS" | |
7526 | CFLAGS="$CFLAGS -belf" | |
7527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7528 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7529 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7530 | $as_echo_n "(cached) " >&6 | |
7531 | else | |
7532 | ac_ext=c | |
7533 | ac_cpp='$CPP $CPPFLAGS' | |
7534 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7535 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7536 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 7537 | |
eec2776c AJ |
7538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7539 | /* end confdefs.h. */ | |
c52df125 | 7540 | |
eec2776c AJ |
7541 | int |
7542 | main () | |
7543 | { | |
c52df125 | 7544 | |
eec2776c AJ |
7545 | ; |
7546 | return 0; | |
7547 | } | |
7548 | _ACEOF | |
7549 | if ac_fn_c_try_link "$LINENO"; then : | |
7550 | lt_cv_cc_needs_belf=yes | |
c52df125 | 7551 | else |
eec2776c | 7552 | lt_cv_cc_needs_belf=no |
c52df125 | 7553 | fi |
eec2776c AJ |
7554 | rm -f core conftest.err conftest.$ac_objext \ |
7555 | conftest$ac_exeext conftest.$ac_ext | |
7556 | ac_ext=c | |
7557 | ac_cpp='$CPP $CPPFLAGS' | |
7558 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7559 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7560 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 7561 | |
eec2776c AJ |
7562 | fi |
7563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7564 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7565 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7566 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7567 | CFLAGS="$SAVE_CFLAGS" | |
7568 | fi | |
7569 | ;; | |
7570 | *-*solaris*) | |
7571 | # Find out which ABI we are using. | |
7572 | echo 'int i;' > conftest.$ac_ext | |
7573 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7574 | (eval $ac_compile) 2>&5 | |
7575 | ac_status=$? | |
7576 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7577 | test $ac_status = 0; }; then | |
7578 | case `/usr/bin/file conftest.o` in | |
7579 | *64-bit*) | |
7580 | case $lt_cv_prog_gnu_ld in | |
7581 | yes*) | |
7582 | case $host in | |
7583 | i?86-*-solaris*) | |
7584 | LD="${LD-ld} -m elf_x86_64" | |
7585 | ;; | |
7586 | sparc*-*-solaris*) | |
7587 | LD="${LD-ld} -m elf64_sparc" | |
7588 | ;; | |
7589 | esac | |
7590 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7591 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
7592 | LD="${LD-ld}_sol2" | |
7593 | fi | |
7594 | ;; | |
7595 | *) | |
7596 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7597 | LD="${LD-ld} -64" | |
7598 | fi | |
7599 | ;; | |
7600 | esac | |
7601 | ;; | |
7602 | esac | |
7603 | fi | |
7604 | rm -rf conftest* | |
7605 | ;; | |
7606 | esac | |
c52df125 | 7607 | |
eec2776c | 7608 | need_locks="$enable_libtool_lock" |
c52df125 | 7609 | |
eec2776c AJ |
7610 | if test -n "$ac_tool_prefix"; then |
7611 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7612 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7614 | $as_echo_n "checking for $ac_word... " >&6; } | |
7615 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7616 | $as_echo_n "(cached) " >&6 | |
7617 | else | |
7618 | if test -n "$MANIFEST_TOOL"; then | |
7619 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7620 | else | |
7621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7622 | for as_dir in $PATH | |
7623 | do | |
7624 | IFS=$as_save_IFS | |
7625 | test -z "$as_dir" && as_dir=. | |
7626 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7628 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7630 | break 2 | |
7631 | fi | |
7632 | done | |
7633 | done | |
7634 | IFS=$as_save_IFS | |
c52df125 | 7635 | |
eec2776c AJ |
7636 | fi |
7637 | fi | |
7638 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7639 | if test -n "$MANIFEST_TOOL"; then | |
7640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7641 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7642 | else | |
7643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7644 | $as_echo "no" >&6; } | |
7645 | fi | |
c52df125 AC |
7646 | |
7647 | ||
eec2776c AJ |
7648 | fi |
7649 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7650 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7651 | # Extract the first word of "mt", so it can be a program name with args. | |
7652 | set dummy mt; ac_word=$2 | |
7653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7654 | $as_echo_n "checking for $ac_word... " >&6; } | |
7655 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7656 | $as_echo_n "(cached) " >&6 | |
7657 | else | |
7658 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7659 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7660 | else | |
7661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7662 | for as_dir in $PATH | |
7663 | do | |
7664 | IFS=$as_save_IFS | |
7665 | test -z "$as_dir" && as_dir=. | |
7666 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7667 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7668 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7669 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7670 | break 2 | |
7671 | fi | |
7672 | done | |
7673 | done | |
7674 | IFS=$as_save_IFS | |
c52df125 | 7675 | |
eec2776c AJ |
7676 | fi |
7677 | fi | |
7678 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7679 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7681 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7682 | else | |
7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7684 | $as_echo "no" >&6; } | |
7685 | fi | |
c52df125 | 7686 | |
eec2776c AJ |
7687 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
7688 | MANIFEST_TOOL=":" | |
7689 | else | |
7690 | case $cross_compiling:$ac_tool_warned in | |
7691 | yes:) | |
7692 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7693 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7694 | ac_tool_warned=yes ;; | |
7695 | esac | |
7696 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7697 | fi | |
7698 | else | |
7699 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7700 | fi | |
c52df125 | 7701 | |
eec2776c AJ |
7702 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
7703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7704 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7705 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7706 | $as_echo_n "(cached) " >&6 | |
7707 | else | |
7708 | lt_cv_path_mainfest_tool=no | |
7709 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7710 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7711 | cat conftest.err >&5 | |
7712 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7713 | lt_cv_path_mainfest_tool=yes | |
7714 | fi | |
7715 | rm -f conftest* | |
7716 | fi | |
7717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7718 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7719 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
7720 | MANIFEST_TOOL=: | |
7721 | fi | |
c52df125 AC |
7722 | |
7723 | ||
7724 | ||
7725 | ||
7726 | ||
7727 | ||
eec2776c AJ |
7728 | case $host_os in |
7729 | rhapsody* | darwin*) | |
7730 | if test -n "$ac_tool_prefix"; then | |
7731 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7732 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7734 | $as_echo_n "checking for $ac_word... " >&6; } | |
7735 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7736 | $as_echo_n "(cached) " >&6 | |
7737 | else | |
7738 | if test -n "$DSYMUTIL"; then | |
7739 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7740 | else | |
7741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7742 | for as_dir in $PATH | |
7743 | do | |
7744 | IFS=$as_save_IFS | |
7745 | test -z "$as_dir" && as_dir=. | |
7746 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7747 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7748 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7750 | break 2 | |
7751 | fi | |
7752 | done | |
7753 | done | |
7754 | IFS=$as_save_IFS | |
c52df125 | 7755 | |
eec2776c AJ |
7756 | fi |
7757 | fi | |
7758 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7759 | if test -n "$DSYMUTIL"; then | |
7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7761 | $as_echo "$DSYMUTIL" >&6; } | |
7762 | else | |
7763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7764 | $as_echo "no" >&6; } | |
7765 | fi | |
c52df125 AC |
7766 | |
7767 | ||
c52df125 | 7768 | fi |
eec2776c AJ |
7769 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
7770 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7771 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7772 | set dummy dsymutil; ac_word=$2 | |
7773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7774 | $as_echo_n "checking for $ac_word... " >&6; } | |
7775 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
c52df125 AC |
7776 | $as_echo_n "(cached) " >&6 |
7777 | else | |
eec2776c AJ |
7778 | if test -n "$ac_ct_DSYMUTIL"; then |
7779 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
c52df125 | 7780 | else |
eec2776c AJ |
7781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7782 | for as_dir in $PATH | |
7783 | do | |
7784 | IFS=$as_save_IFS | |
7785 | test -z "$as_dir" && as_dir=. | |
7786 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7787 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7788 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7789 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7790 | break 2 | |
7791 | fi | |
7792 | done | |
7793 | done | |
7794 | IFS=$as_save_IFS | |
7795 | ||
c52df125 | 7796 | fi |
c52df125 | 7797 | fi |
eec2776c AJ |
7798 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7799 | if test -n "$ac_ct_DSYMUTIL"; then | |
7800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7801 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7802 | else | |
7803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7804 | $as_echo "no" >&6; } | |
7805 | fi | |
c52df125 | 7806 | |
eec2776c AJ |
7807 | if test "x$ac_ct_DSYMUTIL" = x; then |
7808 | DSYMUTIL=":" | |
7809 | else | |
7810 | case $cross_compiling:$ac_tool_warned in | |
7811 | yes:) | |
7812 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7813 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7814 | ac_tool_warned=yes ;; | |
c52df125 | 7815 | esac |
eec2776c AJ |
7816 | DSYMUTIL=$ac_ct_DSYMUTIL |
7817 | fi | |
7818 | else | |
7819 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7820 | fi | |
c52df125 | 7821 | |
eec2776c AJ |
7822 | if test -n "$ac_tool_prefix"; then |
7823 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7824 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7826 | $as_echo_n "checking for $ac_word... " >&6; } | |
7827 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
c52df125 AC |
7828 | $as_echo_n "(cached) " >&6 |
7829 | else | |
eec2776c AJ |
7830 | if test -n "$NMEDIT"; then |
7831 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7832 | else | |
7833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7834 | for as_dir in $PATH | |
7835 | do | |
7836 | IFS=$as_save_IFS | |
7837 | test -z "$as_dir" && as_dir=. | |
7838 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7839 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7840 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7841 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7842 | break 2 | |
7843 | fi | |
7844 | done | |
c52df125 | 7845 | done |
eec2776c | 7846 | IFS=$as_save_IFS |
c52df125 | 7847 | |
eec2776c AJ |
7848 | fi |
7849 | fi | |
7850 | NMEDIT=$ac_cv_prog_NMEDIT | |
7851 | if test -n "$NMEDIT"; then | |
7852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7853 | $as_echo "$NMEDIT" >&6; } | |
c52df125 AC |
7854 | else |
7855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7856 | $as_echo "no" >&6; } | |
7857 | fi | |
7858 | ||
7859 | ||
eec2776c AJ |
7860 | fi |
7861 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7862 | ac_ct_NMEDIT=$NMEDIT | |
7863 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7864 | set dummy nmedit; ac_word=$2 | |
7865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7866 | $as_echo_n "checking for $ac_word... " >&6; } | |
7867 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
c52df125 AC |
7868 | $as_echo_n "(cached) " >&6 |
7869 | else | |
eec2776c AJ |
7870 | if test -n "$ac_ct_NMEDIT"; then |
7871 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7872 | else | |
7873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7874 | for as_dir in $PATH | |
7875 | do | |
7876 | IFS=$as_save_IFS | |
7877 | test -z "$as_dir" && as_dir=. | |
7878 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7879 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7880 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7882 | break 2 | |
7883 | fi | |
7884 | done | |
c52df125 | 7885 | done |
eec2776c | 7886 | IFS=$as_save_IFS |
c52df125 | 7887 | |
eec2776c AJ |
7888 | fi |
7889 | fi | |
7890 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7891 | if test -n "$ac_ct_NMEDIT"; then | |
7892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7893 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
c52df125 AC |
7894 | else |
7895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7896 | $as_echo "no" >&6; } | |
7897 | fi | |
7898 | ||
eec2776c AJ |
7899 | if test "x$ac_ct_NMEDIT" = x; then |
7900 | NMEDIT=":" | |
c52df125 | 7901 | else |
eec2776c AJ |
7902 | case $cross_compiling:$ac_tool_warned in |
7903 | yes:) | |
7904 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7905 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7906 | ac_tool_warned=yes ;; | |
7907 | esac | |
7908 | NMEDIT=$ac_ct_NMEDIT | |
c52df125 | 7909 | fi |
eec2776c AJ |
7910 | else |
7911 | NMEDIT="$ac_cv_prog_NMEDIT" | |
c52df125 AC |
7912 | fi |
7913 | ||
eec2776c AJ |
7914 | if test -n "$ac_tool_prefix"; then |
7915 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7916 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7918 | $as_echo_n "checking for $ac_word... " >&6; } | |
7919 | if ${ac_cv_prog_LIPO+:} false; then : | |
7920 | $as_echo_n "(cached) " >&6 | |
7921 | else | |
7922 | if test -n "$LIPO"; then | |
7923 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7924 | else | |
7925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7926 | for as_dir in $PATH | |
7927 | do | |
7928 | IFS=$as_save_IFS | |
7929 | test -z "$as_dir" && as_dir=. | |
7930 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7931 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7932 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7933 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7934 | break 2 | |
7935 | fi | |
7936 | done | |
7937 | done | |
7938 | IFS=$as_save_IFS | |
c52df125 | 7939 | |
eec2776c AJ |
7940 | fi |
7941 | fi | |
7942 | LIPO=$ac_cv_prog_LIPO | |
7943 | if test -n "$LIPO"; then | |
7944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7945 | $as_echo "$LIPO" >&6; } | |
7946 | else | |
7947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7948 | $as_echo "no" >&6; } | |
7949 | fi | |
c52df125 | 7950 | |
c52df125 | 7951 | |
eec2776c AJ |
7952 | fi |
7953 | if test -z "$ac_cv_prog_LIPO"; then | |
7954 | ac_ct_LIPO=$LIPO | |
7955 | # Extract the first word of "lipo", so it can be a program name with args. | |
7956 | set dummy lipo; ac_word=$2 | |
7957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7958 | $as_echo_n "checking for $ac_word... " >&6; } | |
7959 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
c52df125 AC |
7960 | $as_echo_n "(cached) " >&6 |
7961 | else | |
eec2776c AJ |
7962 | if test -n "$ac_ct_LIPO"; then |
7963 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7964 | else | |
7965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7966 | for as_dir in $PATH | |
7967 | do | |
7968 | IFS=$as_save_IFS | |
7969 | test -z "$as_dir" && as_dir=. | |
7970 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7971 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7972 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7974 | break 2 | |
7975 | fi | |
7976 | done | |
7977 | done | |
7978 | IFS=$as_save_IFS | |
c52df125 AC |
7979 | |
7980 | fi | |
eec2776c AJ |
7981 | fi |
7982 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7983 | if test -n "$ac_ct_LIPO"; then | |
7984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7985 | $as_echo "$ac_ct_LIPO" >&6; } | |
c52df125 | 7986 | else |
eec2776c AJ |
7987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7988 | $as_echo "no" >&6; } | |
c52df125 AC |
7989 | fi |
7990 | ||
eec2776c AJ |
7991 | if test "x$ac_ct_LIPO" = x; then |
7992 | LIPO=":" | |
7993 | else | |
7994 | case $cross_compiling:$ac_tool_warned in | |
7995 | yes:) | |
7996 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7997 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7998 | ac_tool_warned=yes ;; | |
7999 | esac | |
8000 | LIPO=$ac_ct_LIPO | |
8001 | fi | |
8002 | else | |
8003 | LIPO="$ac_cv_prog_LIPO" | |
c52df125 AC |
8004 | fi |
8005 | ||
eec2776c AJ |
8006 | if test -n "$ac_tool_prefix"; then |
8007 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8008 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8010 | $as_echo_n "checking for $ac_word... " >&6; } | |
8011 | if ${ac_cv_prog_OTOOL+:} false; then : | |
8012 | $as_echo_n "(cached) " >&6 | |
8013 | else | |
8014 | if test -n "$OTOOL"; then | |
8015 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8016 | else | |
8017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8018 | for as_dir in $PATH | |
8019 | do | |
8020 | IFS=$as_save_IFS | |
8021 | test -z "$as_dir" && as_dir=. | |
8022 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8023 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8024 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8026 | break 2 | |
8027 | fi | |
8028 | done | |
8029 | done | |
8030 | IFS=$as_save_IFS | |
c52df125 | 8031 | |
eec2776c AJ |
8032 | fi |
8033 | fi | |
8034 | OTOOL=$ac_cv_prog_OTOOL | |
8035 | if test -n "$OTOOL"; then | |
8036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8037 | $as_echo "$OTOOL" >&6; } | |
8038 | else | |
8039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8040 | $as_echo "no" >&6; } | |
8041 | fi | |
c52df125 AC |
8042 | |
8043 | ||
eec2776c AJ |
8044 | fi |
8045 | if test -z "$ac_cv_prog_OTOOL"; then | |
8046 | ac_ct_OTOOL=$OTOOL | |
8047 | # Extract the first word of "otool", so it can be a program name with args. | |
8048 | set dummy otool; ac_word=$2 | |
8049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8050 | $as_echo_n "checking for $ac_word... " >&6; } | |
8051 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
8052 | $as_echo_n "(cached) " >&6 | |
8053 | else | |
8054 | if test -n "$ac_ct_OTOOL"; then | |
8055 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8056 | else | |
8057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8058 | for as_dir in $PATH | |
8059 | do | |
8060 | IFS=$as_save_IFS | |
8061 | test -z "$as_dir" && as_dir=. | |
8062 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8063 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8064 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8065 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8066 | break 2 | |
8067 | fi | |
8068 | done | |
8069 | done | |
8070 | IFS=$as_save_IFS | |
c52df125 | 8071 | |
eec2776c AJ |
8072 | fi |
8073 | fi | |
8074 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8075 | if test -n "$ac_ct_OTOOL"; then | |
8076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8077 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8078 | else | |
8079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8080 | $as_echo "no" >&6; } | |
8081 | fi | |
c52df125 | 8082 | |
eec2776c AJ |
8083 | if test "x$ac_ct_OTOOL" = x; then |
8084 | OTOOL=":" | |
8085 | else | |
8086 | case $cross_compiling:$ac_tool_warned in | |
8087 | yes:) | |
8088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8089 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8090 | ac_tool_warned=yes ;; | |
8091 | esac | |
8092 | OTOOL=$ac_ct_OTOOL | |
8093 | fi | |
8094 | else | |
8095 | OTOOL="$ac_cv_prog_OTOOL" | |
8096 | fi | |
c52df125 | 8097 | |
eec2776c AJ |
8098 | if test -n "$ac_tool_prefix"; then |
8099 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8100 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8102 | $as_echo_n "checking for $ac_word... " >&6; } | |
8103 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8104 | $as_echo_n "(cached) " >&6 | |
8105 | else | |
8106 | if test -n "$OTOOL64"; then | |
8107 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8108 | else | |
8109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8110 | for as_dir in $PATH | |
8111 | do | |
8112 | IFS=$as_save_IFS | |
8113 | test -z "$as_dir" && as_dir=. | |
8114 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8115 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8116 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8118 | break 2 | |
8119 | fi | |
8120 | done | |
8121 | done | |
8122 | IFS=$as_save_IFS | |
c52df125 | 8123 | |
eec2776c AJ |
8124 | fi |
8125 | fi | |
8126 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8127 | if test -n "$OTOOL64"; then | |
8128 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8129 | $as_echo "$OTOOL64" >&6; } | |
8130 | else | |
8131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8132 | $as_echo "no" >&6; } | |
8133 | fi | |
c52df125 | 8134 | |
c52df125 | 8135 | |
eec2776c AJ |
8136 | fi |
8137 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8138 | ac_ct_OTOOL64=$OTOOL64 | |
8139 | # Extract the first word of "otool64", so it can be a program name with args. | |
8140 | set dummy otool64; ac_word=$2 | |
8141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8142 | $as_echo_n "checking for $ac_word... " >&6; } | |
8143 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8144 | $as_echo_n "(cached) " >&6 | |
8145 | else | |
8146 | if test -n "$ac_ct_OTOOL64"; then | |
8147 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8148 | else | |
8149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8150 | for as_dir in $PATH | |
8151 | do | |
8152 | IFS=$as_save_IFS | |
8153 | test -z "$as_dir" && as_dir=. | |
8154 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8155 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8156 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8158 | break 2 | |
8159 | fi | |
8160 | done | |
8161 | done | |
8162 | IFS=$as_save_IFS | |
c52df125 | 8163 | |
eec2776c AJ |
8164 | fi |
8165 | fi | |
8166 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8167 | if test -n "$ac_ct_OTOOL64"; then | |
8168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8169 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8170 | else | |
8171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8172 | $as_echo "no" >&6; } | |
8173 | fi | |
c52df125 | 8174 | |
eec2776c AJ |
8175 | if test "x$ac_ct_OTOOL64" = x; then |
8176 | OTOOL64=":" | |
8177 | else | |
8178 | case $cross_compiling:$ac_tool_warned in | |
8179 | yes:) | |
8180 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8181 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8182 | ac_tool_warned=yes ;; | |
8183 | esac | |
8184 | OTOOL64=$ac_ct_OTOOL64 | |
8185 | fi | |
8186 | else | |
8187 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8188 | fi | |
c52df125 | 8189 | |
c52df125 | 8190 | |
c52df125 | 8191 | |
c52df125 | 8192 | |
c52df125 | 8193 | |
c52df125 | 8194 | |
c52df125 | 8195 | |
c52df125 | 8196 | |
c52df125 | 8197 | |
c52df125 | 8198 | |
c52df125 | 8199 | |
c52df125 | 8200 | |
c52df125 | 8201 | |
c52df125 | 8202 | |
c52df125 | 8203 | |
c52df125 | 8204 | |
c52df125 | 8205 | |
c52df125 | 8206 | |
c52df125 | 8207 | |
c52df125 | 8208 | |
c52df125 | 8209 | |
c52df125 | 8210 | |
c52df125 | 8211 | |
c52df125 | 8212 | |
c52df125 | 8213 | |
c52df125 | 8214 | |
c52df125 | 8215 | |
eec2776c AJ |
8216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8217 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8218 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
c52df125 AC |
8219 | $as_echo_n "(cached) " >&6 |
8220 | else | |
eec2776c AJ |
8221 | lt_cv_apple_cc_single_mod=no |
8222 | if test -z "${LT_MULTI_MODULE}"; then | |
8223 | # By default we will add the -single_module flag. You can override | |
8224 | # by either setting the environment variable LT_MULTI_MODULE | |
8225 | # non-empty at configure time, or by adding -multi_module to the | |
8226 | # link flags. | |
8227 | rm -rf libconftest.dylib* | |
8228 | echo "int foo(void){return 1;}" > conftest.c | |
8229 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8230 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8231 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8232 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8233 | _lt_result=$? | |
8234 | # If there is a non-empty error log, and "single_module" | |
8235 | # appears in it, assume the flag caused a linker warning | |
8236 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8237 | cat conftest.err >&5 | |
8238 | # Otherwise, if the output was created with a 0 exit code from | |
8239 | # the compiler, it worked. | |
8240 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
8241 | lt_cv_apple_cc_single_mod=yes | |
8242 | else | |
8243 | cat conftest.err >&5 | |
8244 | fi | |
8245 | rm -rf libconftest.dylib* | |
8246 | rm -f conftest.* | |
8247 | fi | |
c52df125 | 8248 | fi |
eec2776c AJ |
8249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8250 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
c52df125 | 8251 | |
eec2776c AJ |
8252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
8253 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8254 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
c52df125 AC |
8255 | $as_echo_n "(cached) " >&6 |
8256 | else | |
eec2776c AJ |
8257 | lt_cv_ld_exported_symbols_list=no |
8258 | save_LDFLAGS=$LDFLAGS | |
8259 | echo "_main" > conftest.sym | |
8260 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8261 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8262 | /* end confdefs.h. */ | |
c52df125 | 8263 | |
eec2776c AJ |
8264 | int |
8265 | main () | |
8266 | { | |
c52df125 | 8267 | |
eec2776c AJ |
8268 | ; |
8269 | return 0; | |
8270 | } | |
8271 | _ACEOF | |
8272 | if ac_fn_c_try_link "$LINENO"; then : | |
8273 | lt_cv_ld_exported_symbols_list=yes | |
c52df125 | 8274 | else |
eec2776c | 8275 | lt_cv_ld_exported_symbols_list=no |
c52df125 | 8276 | fi |
eec2776c AJ |
8277 | rm -f core conftest.err conftest.$ac_objext \ |
8278 | conftest$ac_exeext conftest.$ac_ext | |
8279 | LDFLAGS="$save_LDFLAGS" | |
c52df125 AC |
8280 | |
8281 | fi | |
eec2776c AJ |
8282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8283 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
c52df125 | 8284 | |
eec2776c AJ |
8285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8286 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8287 | if ${lt_cv_ld_force_load+:} false; then : | |
c52df125 AC |
8288 | $as_echo_n "(cached) " >&6 |
8289 | else | |
eec2776c AJ |
8290 | lt_cv_ld_force_load=no |
8291 | cat > conftest.c << _LT_EOF | |
8292 | int forced_loaded() { return 2;} | |
8293 | _LT_EOF | |
8294 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8295 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8296 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8297 | $AR cru libconftest.a conftest.o 2>&5 | |
8298 | echo "$RANLIB libconftest.a" >&5 | |
8299 | $RANLIB libconftest.a 2>&5 | |
8300 | cat > conftest.c << _LT_EOF | |
8301 | int main() { return 0;} | |
8302 | _LT_EOF | |
8303 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8304 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8305 | _lt_result=$? | |
8306 | if test -s conftest.err && $GREP force_load conftest.err; then | |
8307 | cat conftest.err >&5 | |
8308 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
8309 | lt_cv_ld_force_load=yes | |
8310 | else | |
8311 | cat conftest.err >&5 | |
8312 | fi | |
8313 | rm -f conftest.err libconftest.a conftest conftest.c | |
8314 | rm -rf conftest.dSYM | |
c52df125 AC |
8315 | |
8316 | fi | |
eec2776c AJ |
8317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
8318 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8319 | case $host_os in | |
8320 | rhapsody* | darwin1.[012]) | |
8321 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8322 | darwin1.*) | |
8323 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8324 | darwin*) # darwin 5.x on | |
8325 | # if running on 10.5 or later, the deployment target defaults | |
8326 | # to the OS version, if on x86, and 10.4, the deployment | |
8327 | # target defaults to 10.4. Don't you love it? | |
8328 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8329 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8330 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8331 | 10.[012]*) | |
8332 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8333 | 10.*) | |
8334 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8335 | esac | |
8336 | ;; | |
8337 | esac | |
8338 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8339 | _lt_dar_single_mod='$single_module' | |
8340 | fi | |
8341 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8342 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8343 | else | |
8344 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8345 | fi | |
8346 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8347 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8348 | else | |
8349 | _lt_dsymutil= | |
8350 | fi | |
8351 | ;; | |
8352 | esac | |
c52df125 | 8353 | |
eec2776c AJ |
8354 | for ac_header in dlfcn.h |
8355 | do : | |
8356 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8357 | " | |
8358 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8359 | cat >>confdefs.h <<_ACEOF | |
8360 | #define HAVE_DLFCN_H 1 | |
8361 | _ACEOF | |
c52df125 | 8362 | |
eec2776c | 8363 | fi |
c52df125 | 8364 | |
eec2776c | 8365 | done |
c52df125 AC |
8366 | |
8367 | ||
8368 | ||
8369 | ||
8370 | ||
eec2776c AJ |
8371 | # Set options |
8372 | enable_dlopen=yes | |
8373 | # Check whether --enable-static was given. | |
8374 | if test "${enable_static+set}" = set; then : | |
8375 | enableval=$enable_static; p=${PACKAGE-default} | |
8376 | case $enableval in | |
8377 | yes) enable_static=yes ;; | |
8378 | no) enable_static=no ;; | |
8379 | *) | |
8380 | enable_static=no | |
8381 | # Look at the argument we got. We use all the common list separators. | |
8382 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8383 | for pkg in $enableval; do | |
8384 | IFS="$lt_save_ifs" | |
8385 | if test "X$pkg" = "X$p"; then | |
8386 | enable_static=yes | |
8387 | fi | |
8388 | done | |
8389 | IFS="$lt_save_ifs" | |
8390 | ;; | |
8391 | esac | |
c52df125 | 8392 | else |
eec2776c | 8393 | enable_static=no |
c52df125 | 8394 | fi |
c52df125 AC |
8395 | |
8396 | ||
8397 | ||
8398 | ||
8399 | ||
8400 | ||
c52df125 | 8401 | |
c52df125 | 8402 | |
c52df125 AC |
8403 | |
8404 | ||
8405 | ||
eec2776c | 8406 | enable_win32_dll=no |
c52df125 | 8407 | |
eec2776c AJ |
8408 | |
8409 | # Check whether --enable-shared was given. | |
8410 | if test "${enable_shared+set}" = set; then : | |
8411 | enableval=$enable_shared; p=${PACKAGE-default} | |
8412 | case $enableval in | |
8413 | yes) enable_shared=yes ;; | |
8414 | no) enable_shared=no ;; | |
8415 | *) | |
8416 | enable_shared=no | |
8417 | # Look at the argument we got. We use all the common list separators. | |
8418 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8419 | for pkg in $enableval; do | |
8420 | IFS="$lt_save_ifs" | |
8421 | if test "X$pkg" = "X$p"; then | |
8422 | enable_shared=yes | |
8423 | fi | |
8424 | done | |
8425 | IFS="$lt_save_ifs" | |
8426 | ;; | |
8427 | esac | |
c52df125 | 8428 | else |
eec2776c | 8429 | enable_shared=yes |
c52df125 AC |
8430 | fi |
8431 | ||
8432 | ||
8433 | ||
8434 | ||
8435 | ||
8436 | ||
c52df125 | 8437 | |
c52df125 | 8438 | |
c52df125 | 8439 | |
c52df125 | 8440 | |
eec2776c AJ |
8441 | |
8442 | # Check whether --with-pic was given. | |
8443 | if test "${with_pic+set}" = set; then : | |
8444 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8445 | case $withval in | |
8446 | yes|no) pic_mode=$withval ;; | |
8447 | *) | |
8448 | pic_mode=default | |
8449 | # Look at the argument we got. We use all the common list separators. | |
8450 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8451 | for lt_pkg in $withval; do | |
8452 | IFS="$lt_save_ifs" | |
8453 | if test "X$lt_pkg" = "X$lt_p"; then | |
8454 | pic_mode=yes | |
8455 | fi | |
8456 | done | |
8457 | IFS="$lt_save_ifs" | |
8458 | ;; | |
c52df125 | 8459 | esac |
eec2776c AJ |
8460 | else |
8461 | pic_mode=default | |
8462 | fi | |
c52df125 | 8463 | |
c52df125 | 8464 | |
eec2776c | 8465 | test -z "$pic_mode" && pic_mode=default |
c52df125 | 8466 | |
c52df125 | 8467 | |
c52df125 | 8468 | |
c52df125 | 8469 | |
c52df125 | 8470 | |
c52df125 | 8471 | |
c52df125 | 8472 | |
eec2776c AJ |
8473 | # Check whether --enable-fast-install was given. |
8474 | if test "${enable_fast_install+set}" = set; then : | |
8475 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8476 | case $enableval in | |
8477 | yes) enable_fast_install=yes ;; | |
8478 | no) enable_fast_install=no ;; | |
8479 | *) | |
8480 | enable_fast_install=no | |
8481 | # Look at the argument we got. We use all the common list separators. | |
8482 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8483 | for pkg in $enableval; do | |
8484 | IFS="$lt_save_ifs" | |
8485 | if test "X$pkg" = "X$p"; then | |
8486 | enable_fast_install=yes | |
8487 | fi | |
8488 | done | |
8489 | IFS="$lt_save_ifs" | |
c52df125 | 8490 | ;; |
eec2776c AJ |
8491 | esac |
8492 | else | |
8493 | enable_fast_install=yes | |
8494 | fi | |
c52df125 | 8495 | |
c52df125 | 8496 | |
c52df125 | 8497 | |
c52df125 | 8498 | |
c52df125 | 8499 | |
c52df125 | 8500 | |
c52df125 | 8501 | |
c52df125 | 8502 | |
c52df125 | 8503 | |
c52df125 | 8504 | |
c52df125 | 8505 | |
eec2776c AJ |
8506 | # This can be used to rebuild libtool when needed |
8507 | LIBTOOL_DEPS="$ltmain" | |
c52df125 | 8508 | |
eec2776c AJ |
8509 | # Always use our own libtool. |
8510 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
c52df125 | 8511 | |
c52df125 | 8512 | |
c52df125 | 8513 | |
c52df125 | 8514 | |
c52df125 | 8515 | |
c52df125 | 8516 | |
c52df125 | 8517 | |
c52df125 | 8518 | |
c52df125 | 8519 | |
c52df125 | 8520 | |
c52df125 | 8521 | |
c52df125 | 8522 | |
c52df125 | 8523 | |
c52df125 | 8524 | |
c52df125 | 8525 | |
c52df125 | 8526 | |
c52df125 | 8527 | |
c52df125 | 8528 | |
c52df125 | 8529 | |
c52df125 | 8530 | |
c52df125 | 8531 | |
c52df125 | 8532 | |
c52df125 | 8533 | |
c52df125 | 8534 | |
c52df125 | 8535 | |
c52df125 | 8536 | |
c52df125 AC |
8537 | |
8538 | ||
c52df125 | 8539 | |
c52df125 | 8540 | |
eec2776c | 8541 | test -z "$LN_S" && LN_S="ln -s" |
c52df125 | 8542 | |
c52df125 | 8543 | |
c52df125 | 8544 | |
c52df125 | 8545 | |
c52df125 | 8546 | |
c52df125 | 8547 | |
c52df125 | 8548 | |
c52df125 | 8549 | |
c52df125 | 8550 | |
c52df125 | 8551 | |
c52df125 | 8552 | |
c52df125 | 8553 | |
c52df125 | 8554 | |
c52df125 | 8555 | |
eec2776c AJ |
8556 | if test -n "${ZSH_VERSION+set}" ; then |
8557 | setopt NO_GLOB_SUBST | |
8558 | fi | |
c52df125 | 8559 | |
eec2776c AJ |
8560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8561 | $as_echo_n "checking for objdir... " >&6; } | |
8562 | if ${lt_cv_objdir+:} false; then : | |
c52df125 AC |
8563 | $as_echo_n "(cached) " >&6 |
8564 | else | |
eec2776c AJ |
8565 | rm -f .libs 2>/dev/null |
8566 | mkdir .libs 2>/dev/null | |
8567 | if test -d .libs; then | |
8568 | lt_cv_objdir=.libs | |
c52df125 | 8569 | else |
eec2776c AJ |
8570 | # MS-DOS does not allow filenames that begin with a dot. |
8571 | lt_cv_objdir=_libs | |
c52df125 | 8572 | fi |
eec2776c | 8573 | rmdir .libs 2>/dev/null |
c52df125 | 8574 | fi |
eec2776c AJ |
8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8576 | $as_echo "$lt_cv_objdir" >&6; } | |
8577 | objdir=$lt_cv_objdir | |
c52df125 | 8578 | |
c52df125 | 8579 | |
c52df125 | 8580 | |
c52df125 | 8581 | |
c52df125 | 8582 | |
eec2776c AJ |
8583 | cat >>confdefs.h <<_ACEOF |
8584 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8585 | _ACEOF | |
c52df125 | 8586 | |
c52df125 | 8587 | |
c52df125 | 8588 | |
c52df125 | 8589 | |
eec2776c AJ |
8590 | case $host_os in |
8591 | aix3*) | |
8592 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8593 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8594 | # vanish in a puff of smoke. | |
8595 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8596 | COLLECT_NAMES= | |
8597 | export COLLECT_NAMES | |
8598 | fi | |
8599 | ;; | |
8600 | esac | |
c52df125 | 8601 | |
eec2776c AJ |
8602 | # Global variables: |
8603 | ofile=libtool | |
8604 | can_build_shared=yes | |
c52df125 | 8605 | |
eec2776c AJ |
8606 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8607 | # which needs '.lib'). | |
8608 | libext=a | |
c52df125 | 8609 | |
eec2776c | 8610 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
c52df125 | 8611 | |
eec2776c AJ |
8612 | old_CC="$CC" |
8613 | old_CFLAGS="$CFLAGS" | |
c52df125 | 8614 | |
eec2776c AJ |
8615 | # Set sane defaults for various variables |
8616 | test -z "$CC" && CC=cc | |
8617 | test -z "$LTCC" && LTCC=$CC | |
8618 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8619 | test -z "$LD" && LD=ld | |
8620 | test -z "$ac_objext" && ac_objext=o | |
c52df125 | 8621 | |
eec2776c AJ |
8622 | for cc_temp in $compiler""; do |
8623 | case $cc_temp in | |
8624 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8625 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8626 | \-*) ;; | |
8627 | *) break;; | |
8628 | esac | |
8629 | done | |
8630 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
c52df125 | 8631 | |
c52df125 | 8632 | |
eec2776c AJ |
8633 | # Only perform the check for file, if the check method requires it |
8634 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8635 | case $deplibs_check_method in | |
8636 | file_magic*) | |
8637 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8639 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8640 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8641 | $as_echo_n "(cached) " >&6 | |
8642 | else | |
8643 | case $MAGIC_CMD in | |
8644 | [\\/*] | ?:[\\/]*) | |
8645 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8646 | ;; | |
8647 | *) | |
8648 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8649 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8650 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8651 | for ac_dir in $ac_dummy; do | |
8652 | IFS="$lt_save_ifs" | |
8653 | test -z "$ac_dir" && ac_dir=. | |
8654 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8655 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8656 | if test -n "$file_magic_test_file"; then | |
8657 | case $deplibs_check_method in | |
8658 | "file_magic "*) | |
8659 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8660 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8661 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8662 | $EGREP "$file_magic_regex" > /dev/null; then | |
8663 | : | |
8664 | else | |
8665 | cat <<_LT_EOF 1>&2 | |
c52df125 | 8666 | |
eec2776c AJ |
8667 | *** Warning: the command libtool uses to detect shared libraries, |
8668 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8669 | *** The result is that libtool may fail to recognize shared libraries | |
8670 | *** as such. This will affect the creation of libtool libraries that | |
8671 | *** depend on shared libraries, but programs linked with such libtool | |
8672 | *** libraries will work regardless of this problem. Nevertheless, you | |
8673 | *** may want to report the problem to your system manager and/or to | |
8674 | *** bug-libtool@gnu.org | |
c52df125 | 8675 | |
eec2776c AJ |
8676 | _LT_EOF |
8677 | fi ;; | |
8678 | esac | |
8679 | fi | |
8680 | break | |
c52df125 | 8681 | fi |
eec2776c AJ |
8682 | done |
8683 | IFS="$lt_save_ifs" | |
8684 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8685 | ;; | |
8686 | esac | |
8687 | fi | |
c52df125 | 8688 | |
eec2776c AJ |
8689 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8690 | if test -n "$MAGIC_CMD"; then | |
8691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8692 | $as_echo "$MAGIC_CMD" >&6; } | |
8693 | else | |
8694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8695 | $as_echo "no" >&6; } | |
8696 | fi | |
c52df125 AC |
8697 | |
8698 | ||
8699 | ||
8700 | ||
8701 | ||
eec2776c AJ |
8702 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8703 | if test -n "$ac_tool_prefix"; then | |
8704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8705 | $as_echo_n "checking for file... " >&6; } | |
8706 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8707 | $as_echo_n "(cached) " >&6 | |
8708 | else | |
8709 | case $MAGIC_CMD in | |
8710 | [\\/*] | ?:[\\/]*) | |
8711 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8712 | ;; | |
8713 | *) | |
8714 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8715 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8716 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8717 | for ac_dir in $ac_dummy; do | |
8718 | IFS="$lt_save_ifs" | |
8719 | test -z "$ac_dir" && ac_dir=. | |
8720 | if test -f $ac_dir/file; then | |
8721 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8722 | if test -n "$file_magic_test_file"; then | |
8723 | case $deplibs_check_method in | |
8724 | "file_magic "*) | |
8725 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8726 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8727 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8728 | $EGREP "$file_magic_regex" > /dev/null; then | |
8729 | : | |
8730 | else | |
8731 | cat <<_LT_EOF 1>&2 | |
c52df125 | 8732 | |
eec2776c AJ |
8733 | *** Warning: the command libtool uses to detect shared libraries, |
8734 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8735 | *** The result is that libtool may fail to recognize shared libraries | |
8736 | *** as such. This will affect the creation of libtool libraries that | |
8737 | *** depend on shared libraries, but programs linked with such libtool | |
8738 | *** libraries will work regardless of this problem. Nevertheless, you | |
8739 | *** may want to report the problem to your system manager and/or to | |
8740 | *** bug-libtool@gnu.org | |
c52df125 | 8741 | |
eec2776c AJ |
8742 | _LT_EOF |
8743 | fi ;; | |
8744 | esac | |
8745 | fi | |
8746 | break | |
8747 | fi | |
8748 | done | |
8749 | IFS="$lt_save_ifs" | |
8750 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8751 | ;; | |
8752 | esac | |
8753 | fi | |
c52df125 | 8754 | |
eec2776c AJ |
8755 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8756 | if test -n "$MAGIC_CMD"; then | |
8757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8758 | $as_echo "$MAGIC_CMD" >&6; } | |
8759 | else | |
8760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8761 | $as_echo "no" >&6; } | |
8762 | fi | |
c52df125 AC |
8763 | |
8764 | ||
eec2776c AJ |
8765 | else |
8766 | MAGIC_CMD=: | |
8767 | fi | |
8768 | fi | |
c52df125 | 8769 | |
c52df125 AC |
8770 | fi |
8771 | ;; | |
8772 | esac | |
8773 | ||
eec2776c | 8774 | # Use C for the default configuration in the libtool script |
c52df125 | 8775 | |
eec2776c AJ |
8776 | lt_save_CC="$CC" |
8777 | ac_ext=c | |
8778 | ac_cpp='$CPP $CPPFLAGS' | |
8779 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8780 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8781 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
8782 | |
8783 | ||
eec2776c AJ |
8784 | # Source file extension for C test sources. |
8785 | ac_ext=c | |
c52df125 | 8786 | |
eec2776c AJ |
8787 | # Object file extension for compiled C test sources. |
8788 | objext=o | |
8789 | objext=$objext | |
c52df125 | 8790 | |
eec2776c AJ |
8791 | # Code to be used in simple compile tests |
8792 | lt_simple_compile_test_code="int some_variable = 0;" | |
c52df125 | 8793 | |
eec2776c AJ |
8794 | # Code to be used in simple link tests |
8795 | lt_simple_link_test_code='int main(){return(0);}' | |
c52df125 AC |
8796 | |
8797 | ||
8798 | ||
8799 | ||
8800 | ||
8801 | ||
8802 | ||
eec2776c AJ |
8803 | # If no C compiler was specified, use CC. |
8804 | LTCC=${LTCC-"$CC"} | |
c52df125 | 8805 | |
eec2776c AJ |
8806 | # If no C compiler flags were specified, use CFLAGS. |
8807 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
c52df125 | 8808 | |
eec2776c AJ |
8809 | # Allow CC to be a program name with arguments. |
8810 | compiler=$CC | |
c52df125 | 8811 | |
eec2776c AJ |
8812 | # Save the default compiler, since it gets overwritten when the other |
8813 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8814 | compiler_DEFAULT=$CC | |
c52df125 | 8815 | |
eec2776c AJ |
8816 | # save warnings/boilerplate of simple test code |
8817 | ac_outfile=conftest.$ac_objext | |
8818 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8819 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8820 | _lt_compiler_boilerplate=`cat conftest.err` | |
8821 | $RM conftest* | |
c52df125 | 8822 | |
eec2776c AJ |
8823 | ac_outfile=conftest.$ac_objext |
8824 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8825 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8826 | _lt_linker_boilerplate=`cat conftest.err` | |
8827 | $RM -r conftest* | |
c52df125 AC |
8828 | |
8829 | ||
eec2776c AJ |
8830 | ## CAVEAT EMPTOR: |
8831 | ## There is no encapsulation within the following macros, do not change | |
8832 | ## the running order or otherwise move them around unless you know exactly | |
8833 | ## what you are doing... | |
8834 | if test -n "$compiler"; then | |
c52df125 | 8835 | |
eec2776c | 8836 | lt_prog_compiler_no_builtin_flag= |
c52df125 | 8837 | |
eec2776c AJ |
8838 | if test "$GCC" = yes; then |
8839 | case $cc_basename in | |
8840 | nvcc*) | |
8841 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8842 | *) | |
8843 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8844 | esac | |
c52df125 | 8845 | |
eec2776c AJ |
8846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8847 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8848 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
8849 | $as_echo_n "(cached) " >&6 | |
8850 | else | |
8851 | lt_cv_prog_compiler_rtti_exceptions=no | |
8852 | ac_outfile=conftest.$ac_objext | |
8853 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8854 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8855 | # Insert the option either (1) after the last *FLAGS variable, or | |
8856 | # (2) before a word containing "conftest.", or (3) at the end. | |
8857 | # Note that $ac_compile itself does not contain backslashes and begins | |
8858 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8859 | # The option is referenced via a variable to avoid confusing sed. | |
8860 | lt_compile=`echo "$ac_compile" | $SED \ | |
8861 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8862 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8863 | -e 's:$: $lt_compiler_flag:'` | |
8864 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8865 | (eval "$lt_compile" 2>conftest.err) | |
8866 | ac_status=$? | |
8867 | cat conftest.err >&5 | |
8868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8869 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8870 | # The compiler can only warn and ignore the option if not recognized | |
8871 | # So say no if there are warnings other than the usual output. | |
8872 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8873 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8874 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8875 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8876 | fi | |
8877 | fi | |
8878 | $RM conftest* | |
c52df125 | 8879 | |
eec2776c AJ |
8880 | fi |
8881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8882 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
c52df125 | 8883 | |
eec2776c AJ |
8884 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8885 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8886 | else | |
8887 | : | |
8888 | fi | |
c52df125 | 8889 | |
eec2776c | 8890 | fi |
c52df125 AC |
8891 | |
8892 | ||
8893 | ||
8894 | ||
8895 | ||
8896 | ||
eec2776c AJ |
8897 | lt_prog_compiler_wl= |
8898 | lt_prog_compiler_pic= | |
8899 | lt_prog_compiler_static= | |
c52df125 AC |
8900 | |
8901 | ||
eec2776c AJ |
8902 | if test "$GCC" = yes; then |
8903 | lt_prog_compiler_wl='-Wl,' | |
8904 | lt_prog_compiler_static='-static' | |
c52df125 | 8905 | |
eec2776c AJ |
8906 | case $host_os in |
8907 | aix*) | |
8908 | # All AIX code is PIC. | |
8909 | if test "$host_cpu" = ia64; then | |
8910 | # AIX 5 now supports IA64 processor | |
8911 | lt_prog_compiler_static='-Bstatic' | |
8912 | fi | |
8913 | ;; | |
c52df125 | 8914 | |
eec2776c AJ |
8915 | amigaos*) |
8916 | case $host_cpu in | |
8917 | powerpc) | |
8918 | # see comment about AmigaOS4 .so support | |
8919 | lt_prog_compiler_pic='-fPIC' | |
8920 | ;; | |
8921 | m68k) | |
8922 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8923 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8924 | # like `-m68040'. | |
8925 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8926 | ;; | |
8927 | esac | |
8928 | ;; | |
c52df125 | 8929 | |
eec2776c AJ |
8930 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8931 | # PIC is the default for these OSes. | |
8932 | ;; | |
c52df125 | 8933 | |
eec2776c AJ |
8934 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8935 | # This hack is so that the source file can tell whether it is being | |
8936 | # built for inclusion in a dll (and should export symbols for example). | |
8937 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8938 | # (--disable-auto-import) libraries | |
8939 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8940 | ;; | |
c52df125 | 8941 | |
eec2776c AJ |
8942 | darwin* | rhapsody*) |
8943 | # PIC is the default on this platform | |
8944 | # Common symbols not allowed in MH_DYLIB files | |
8945 | lt_prog_compiler_pic='-fno-common' | |
8946 | ;; | |
c52df125 | 8947 | |
eec2776c AJ |
8948 | haiku*) |
8949 | # PIC is the default for Haiku. | |
8950 | # The "-static" flag exists, but is broken. | |
8951 | lt_prog_compiler_static= | |
8952 | ;; | |
c52df125 | 8953 | |
eec2776c AJ |
8954 | hpux*) |
8955 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8956 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8957 | # sets the default TLS model and affects inlining. | |
8958 | case $host_cpu in | |
8959 | hppa*64*) | |
8960 | # +Z the default | |
8961 | ;; | |
8962 | *) | |
8963 | lt_prog_compiler_pic='-fPIC' | |
8964 | ;; | |
8965 | esac | |
8966 | ;; | |
c52df125 | 8967 | |
eec2776c AJ |
8968 | interix[3-9]*) |
8969 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8970 | # Instead, we relocate shared libraries at runtime. | |
8971 | ;; | |
c52df125 | 8972 | |
eec2776c AJ |
8973 | msdosdjgpp*) |
8974 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8975 | # on systems that don't support them. | |
8976 | lt_prog_compiler_can_build_shared=no | |
8977 | enable_shared=no | |
8978 | ;; | |
c52df125 | 8979 | |
eec2776c AJ |
8980 | *nto* | *qnx*) |
8981 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8982 | # it will coredump. | |
8983 | lt_prog_compiler_pic='-fPIC -shared' | |
8984 | ;; | |
c52df125 | 8985 | |
eec2776c AJ |
8986 | sysv4*MP*) |
8987 | if test -d /usr/nec; then | |
8988 | lt_prog_compiler_pic=-Kconform_pic | |
8989 | fi | |
8990 | ;; | |
c52df125 | 8991 | |
eec2776c AJ |
8992 | *) |
8993 | lt_prog_compiler_pic='-fPIC' | |
8994 | ;; | |
8995 | esac | |
c52df125 | 8996 | |
eec2776c AJ |
8997 | case $cc_basename in |
8998 | nvcc*) # Cuda Compiler Driver 2.2 | |
8999 | lt_prog_compiler_wl='-Xlinker ' | |
9000 | if test -n "$lt_prog_compiler_pic"; then | |
9001 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
9002 | fi | |
9003 | ;; | |
9004 | esac | |
9005 | else | |
9006 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9007 | case $host_os in | |
9008 | aix*) | |
9009 | lt_prog_compiler_wl='-Wl,' | |
9010 | if test "$host_cpu" = ia64; then | |
9011 | # AIX 5 now supports IA64 processor | |
9012 | lt_prog_compiler_static='-Bstatic' | |
9013 | else | |
9014 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9015 | fi | |
9016 | ;; | |
c52df125 | 9017 | |
eec2776c AJ |
9018 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9019 | # This hack is so that the source file can tell whether it is being | |
9020 | # built for inclusion in a dll (and should export symbols for example). | |
9021 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9022 | ;; | |
c52df125 | 9023 | |
eec2776c AJ |
9024 | hpux9* | hpux10* | hpux11*) |
9025 | lt_prog_compiler_wl='-Wl,' | |
9026 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9027 | # not for PA HP-UX. | |
9028 | case $host_cpu in | |
9029 | hppa*64*|ia64*) | |
9030 | # +Z the default | |
9031 | ;; | |
9032 | *) | |
9033 | lt_prog_compiler_pic='+Z' | |
9034 | ;; | |
9035 | esac | |
9036 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9037 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9038 | ;; | |
c52df125 | 9039 | |
eec2776c AJ |
9040 | irix5* | irix6* | nonstopux*) |
9041 | lt_prog_compiler_wl='-Wl,' | |
9042 | # PIC (with -KPIC) is the default. | |
9043 | lt_prog_compiler_static='-non_shared' | |
9044 | ;; | |
c52df125 | 9045 | |
eec2776c AJ |
9046 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
9047 | case $cc_basename in | |
9048 | # old Intel for x86_64 which still supported -KPIC. | |
9049 | ecc*) | |
9050 | lt_prog_compiler_wl='-Wl,' | |
9051 | lt_prog_compiler_pic='-KPIC' | |
9052 | lt_prog_compiler_static='-static' | |
9053 | ;; | |
9054 | # icc used to be incompatible with GCC. | |
9055 | # ICC 10 doesn't accept -KPIC any more. | |
9056 | icc* | ifort*) | |
9057 | lt_prog_compiler_wl='-Wl,' | |
9058 | lt_prog_compiler_pic='-fPIC' | |
9059 | lt_prog_compiler_static='-static' | |
9060 | ;; | |
9061 | # Lahey Fortran 8.1. | |
9062 | lf95*) | |
9063 | lt_prog_compiler_wl='-Wl,' | |
9064 | lt_prog_compiler_pic='--shared' | |
9065 | lt_prog_compiler_static='--static' | |
9066 | ;; | |
9067 | nagfor*) | |
9068 | # NAG Fortran compiler | |
9069 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9070 | lt_prog_compiler_pic='-PIC' | |
9071 | lt_prog_compiler_static='-Bstatic' | |
9072 | ;; | |
9073 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9074 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9075 | # which looks to be a dead project) | |
9076 | lt_prog_compiler_wl='-Wl,' | |
9077 | lt_prog_compiler_pic='-fpic' | |
9078 | lt_prog_compiler_static='-Bstatic' | |
9079 | ;; | |
9080 | ccc*) | |
9081 | lt_prog_compiler_wl='-Wl,' | |
9082 | # All Alpha code is PIC. | |
9083 | lt_prog_compiler_static='-non_shared' | |
9084 | ;; | |
9085 | xl* | bgxl* | bgf* | mpixl*) | |
9086 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9087 | lt_prog_compiler_wl='-Wl,' | |
9088 | lt_prog_compiler_pic='-qpic' | |
9089 | lt_prog_compiler_static='-qstaticlink' | |
9090 | ;; | |
9091 | *) | |
9092 | case `$CC -V 2>&1 | sed 5q` in | |
9093 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
9094 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9095 | lt_prog_compiler_pic='-KPIC' | |
9096 | lt_prog_compiler_static='-Bstatic' | |
9097 | lt_prog_compiler_wl='' | |
9098 | ;; | |
9099 | *Sun\ F* | *Sun*Fortran*) | |
9100 | lt_prog_compiler_pic='-KPIC' | |
9101 | lt_prog_compiler_static='-Bstatic' | |
9102 | lt_prog_compiler_wl='-Qoption ld ' | |
9103 | ;; | |
9104 | *Sun\ C*) | |
9105 | # Sun C 5.9 | |
9106 | lt_prog_compiler_pic='-KPIC' | |
9107 | lt_prog_compiler_static='-Bstatic' | |
9108 | lt_prog_compiler_wl='-Wl,' | |
9109 | ;; | |
9110 | *Intel*\ [CF]*Compiler*) | |
9111 | lt_prog_compiler_wl='-Wl,' | |
9112 | lt_prog_compiler_pic='-fPIC' | |
9113 | lt_prog_compiler_static='-static' | |
9114 | ;; | |
9115 | *Portland\ Group*) | |
9116 | lt_prog_compiler_wl='-Wl,' | |
9117 | lt_prog_compiler_pic='-fpic' | |
9118 | lt_prog_compiler_static='-Bstatic' | |
9119 | ;; | |
9120 | esac | |
9121 | ;; | |
9122 | esac | |
9123 | ;; | |
c52df125 | 9124 | |
eec2776c AJ |
9125 | newsos6) |
9126 | lt_prog_compiler_pic='-KPIC' | |
9127 | lt_prog_compiler_static='-Bstatic' | |
9128 | ;; | |
c52df125 | 9129 | |
eec2776c AJ |
9130 | *nto* | *qnx*) |
9131 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9132 | # it will coredump. | |
9133 | lt_prog_compiler_pic='-fPIC -shared' | |
9134 | ;; | |
c52df125 | 9135 | |
eec2776c AJ |
9136 | osf3* | osf4* | osf5*) |
9137 | lt_prog_compiler_wl='-Wl,' | |
9138 | # All OSF/1 code is PIC. | |
9139 | lt_prog_compiler_static='-non_shared' | |
9140 | ;; | |
c52df125 | 9141 | |
eec2776c AJ |
9142 | rdos*) |
9143 | lt_prog_compiler_static='-non_shared' | |
9144 | ;; | |
c52df125 | 9145 | |
eec2776c AJ |
9146 | solaris*) |
9147 | lt_prog_compiler_pic='-KPIC' | |
9148 | lt_prog_compiler_static='-Bstatic' | |
9149 | case $cc_basename in | |
9150 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
9151 | lt_prog_compiler_wl='-Qoption ld ';; | |
9152 | *) | |
9153 | lt_prog_compiler_wl='-Wl,';; | |
9154 | esac | |
9155 | ;; | |
c52df125 | 9156 | |
eec2776c AJ |
9157 | sunos4*) |
9158 | lt_prog_compiler_wl='-Qoption ld ' | |
9159 | lt_prog_compiler_pic='-PIC' | |
9160 | lt_prog_compiler_static='-Bstatic' | |
9161 | ;; | |
c52df125 | 9162 | |
eec2776c AJ |
9163 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9164 | lt_prog_compiler_wl='-Wl,' | |
9165 | lt_prog_compiler_pic='-KPIC' | |
9166 | lt_prog_compiler_static='-Bstatic' | |
9167 | ;; | |
c52df125 | 9168 | |
eec2776c AJ |
9169 | sysv4*MP*) |
9170 | if test -d /usr/nec ;then | |
9171 | lt_prog_compiler_pic='-Kconform_pic' | |
9172 | lt_prog_compiler_static='-Bstatic' | |
9173 | fi | |
9174 | ;; | |
c52df125 | 9175 | |
eec2776c AJ |
9176 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9177 | lt_prog_compiler_wl='-Wl,' | |
9178 | lt_prog_compiler_pic='-KPIC' | |
9179 | lt_prog_compiler_static='-Bstatic' | |
9180 | ;; | |
c52df125 | 9181 | |
eec2776c AJ |
9182 | unicos*) |
9183 | lt_prog_compiler_wl='-Wl,' | |
9184 | lt_prog_compiler_can_build_shared=no | |
9185 | ;; | |
c52df125 | 9186 | |
eec2776c AJ |
9187 | uts4*) |
9188 | lt_prog_compiler_pic='-pic' | |
9189 | lt_prog_compiler_static='-Bstatic' | |
9190 | ;; | |
c52df125 | 9191 | |
eec2776c AJ |
9192 | *) |
9193 | lt_prog_compiler_can_build_shared=no | |
9194 | ;; | |
9195 | esac | |
9196 | fi | |
c52df125 | 9197 | |
eec2776c AJ |
9198 | case $host_os in |
9199 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9200 | *djgpp*) | |
9201 | lt_prog_compiler_pic= | |
9202 | ;; | |
9203 | *) | |
9204 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9205 | ;; | |
9206 | esac | |
c52df125 | 9207 | |
eec2776c AJ |
9208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9209 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9210 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9211 | $as_echo_n "(cached) " >&6 | |
9212 | else | |
9213 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9214 | fi | |
9215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9216 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9217 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
c52df125 | 9218 | |
eec2776c AJ |
9219 | # |
9220 | # Check to make sure the PIC flag actually works. | |
9221 | # | |
9222 | if test -n "$lt_prog_compiler_pic"; then | |
9223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9224 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9225 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9226 | $as_echo_n "(cached) " >&6 | |
9227 | else | |
9228 | lt_cv_prog_compiler_pic_works=no | |
9229 | ac_outfile=conftest.$ac_objext | |
9230 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9231 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9232 | # Insert the option either (1) after the last *FLAGS variable, or | |
9233 | # (2) before a word containing "conftest.", or (3) at the end. | |
9234 | # Note that $ac_compile itself does not contain backslashes and begins | |
9235 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9236 | # The option is referenced via a variable to avoid confusing sed. | |
9237 | lt_compile=`echo "$ac_compile" | $SED \ | |
9238 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9239 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9240 | -e 's:$: $lt_compiler_flag:'` | |
9241 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9242 | (eval "$lt_compile" 2>conftest.err) | |
9243 | ac_status=$? | |
9244 | cat conftest.err >&5 | |
9245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9246 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9247 | # The compiler can only warn and ignore the option if not recognized | |
9248 | # So say no if there are warnings other than the usual output. | |
9249 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9250 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9251 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9252 | lt_cv_prog_compiler_pic_works=yes | |
9253 | fi | |
9254 | fi | |
9255 | $RM conftest* | |
c52df125 | 9256 | |
eec2776c AJ |
9257 | fi |
9258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9259 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
c52df125 | 9260 | |
eec2776c AJ |
9261 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
9262 | case $lt_prog_compiler_pic in | |
9263 | "" | " "*) ;; | |
9264 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9265 | esac | |
9266 | else | |
9267 | lt_prog_compiler_pic= | |
9268 | lt_prog_compiler_can_build_shared=no | |
9269 | fi | |
c52df125 | 9270 | |
eec2776c | 9271 | fi |
c52df125 AC |
9272 | |
9273 | ||
9274 | ||
9275 | ||
9276 | ||
9277 | ||
9278 | ||
9279 | ||
9280 | ||
9281 | ||
9282 | ||
eec2776c AJ |
9283 | # |
9284 | # Check to make sure the static flag actually works. | |
9285 | # | |
9286 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9288 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9289 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9290 | $as_echo_n "(cached) " >&6 | |
9291 | else | |
9292 | lt_cv_prog_compiler_static_works=no | |
9293 | save_LDFLAGS="$LDFLAGS" | |
9294 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9295 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9296 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9297 | # The linker can only warn and ignore the option if not recognized | |
9298 | # So say no if there are warnings | |
9299 | if test -s conftest.err; then | |
9300 | # Append any errors to the config.log. | |
9301 | cat conftest.err 1>&5 | |
9302 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9303 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9304 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9305 | lt_cv_prog_compiler_static_works=yes | |
9306 | fi | |
9307 | else | |
9308 | lt_cv_prog_compiler_static_works=yes | |
9309 | fi | |
9310 | fi | |
9311 | $RM -r conftest* | |
9312 | LDFLAGS="$save_LDFLAGS" | |
c52df125 | 9313 | |
eec2776c AJ |
9314 | fi |
9315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9316 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
c52df125 | 9317 | |
eec2776c AJ |
9318 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
9319 | : | |
9320 | else | |
9321 | lt_prog_compiler_static= | |
9322 | fi | |
c52df125 AC |
9323 | |
9324 | ||
9325 | ||
9326 | ||
9327 | ||
9328 | ||
9329 | ||
eec2776c AJ |
9330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9331 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9332 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9333 | $as_echo_n "(cached) " >&6 | |
9334 | else | |
9335 | lt_cv_prog_compiler_c_o=no | |
9336 | $RM -r conftest 2>/dev/null | |
9337 | mkdir conftest | |
9338 | cd conftest | |
9339 | mkdir out | |
9340 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
c52df125 | 9341 | |
eec2776c AJ |
9342 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9343 | # Insert the option either (1) after the last *FLAGS variable, or | |
9344 | # (2) before a word containing "conftest.", or (3) at the end. | |
9345 | # Note that $ac_compile itself does not contain backslashes and begins | |
9346 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9347 | lt_compile=`echo "$ac_compile" | $SED \ | |
9348 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9349 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9350 | -e 's:$: $lt_compiler_flag:'` | |
9351 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9352 | (eval "$lt_compile" 2>out/conftest.err) | |
9353 | ac_status=$? | |
9354 | cat out/conftest.err >&5 | |
9355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9356 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9357 | then | |
9358 | # The compiler can only warn and ignore the option if not recognized | |
9359 | # So say no if there are warnings | |
9360 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9361 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9362 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9363 | lt_cv_prog_compiler_c_o=yes | |
9364 | fi | |
9365 | fi | |
9366 | chmod u+w . 2>&5 | |
9367 | $RM conftest* | |
9368 | # SGI C++ compiler will create directory out/ii_files/ for | |
9369 | # template instantiation | |
9370 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9371 | $RM out/* && rmdir out | |
9372 | cd .. | |
9373 | $RM -r conftest | |
9374 | $RM conftest* | |
c52df125 | 9375 | |
eec2776c AJ |
9376 | fi |
9377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9378 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
c52df125 AC |
9379 | |
9380 | ||
9381 | ||
9382 | ||
9383 | ||
9384 | ||
eec2776c AJ |
9385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9386 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9387 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9388 | $as_echo_n "(cached) " >&6 | |
9389 | else | |
9390 | lt_cv_prog_compiler_c_o=no | |
9391 | $RM -r conftest 2>/dev/null | |
9392 | mkdir conftest | |
9393 | cd conftest | |
9394 | mkdir out | |
9395 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
c52df125 | 9396 | |
eec2776c AJ |
9397 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9398 | # Insert the option either (1) after the last *FLAGS variable, or | |
9399 | # (2) before a word containing "conftest.", or (3) at the end. | |
9400 | # Note that $ac_compile itself does not contain backslashes and begins | |
9401 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9402 | lt_compile=`echo "$ac_compile" | $SED \ | |
9403 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9404 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9405 | -e 's:$: $lt_compiler_flag:'` | |
9406 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9407 | (eval "$lt_compile" 2>out/conftest.err) | |
9408 | ac_status=$? | |
9409 | cat out/conftest.err >&5 | |
9410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9411 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9412 | then | |
9413 | # The compiler can only warn and ignore the option if not recognized | |
9414 | # So say no if there are warnings | |
9415 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9416 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9417 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9418 | lt_cv_prog_compiler_c_o=yes | |
9419 | fi | |
9420 | fi | |
9421 | chmod u+w . 2>&5 | |
9422 | $RM conftest* | |
9423 | # SGI C++ compiler will create directory out/ii_files/ for | |
9424 | # template instantiation | |
9425 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9426 | $RM out/* && rmdir out | |
9427 | cd .. | |
9428 | $RM -r conftest | |
9429 | $RM conftest* | |
c52df125 | 9430 | |
eec2776c AJ |
9431 | fi |
9432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9433 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
c52df125 AC |
9434 | |
9435 | ||
9436 | ||
9437 | ||
eec2776c AJ |
9438 | hard_links="nottested" |
9439 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9440 | # do not overwrite the value of need_locks provided by the user | |
9441 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9442 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9443 | hard_links=yes | |
9444 | $RM conftest* | |
9445 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9446 | touch conftest.a | |
9447 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9448 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9450 | $as_echo "$hard_links" >&6; } | |
9451 | if test "$hard_links" = no; then | |
9452 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9453 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9454 | need_locks=warn | |
9455 | fi | |
9456 | else | |
9457 | need_locks=no | |
9458 | fi | |
c52df125 AC |
9459 | |
9460 | ||
9461 | ||
9462 | ||
9463 | ||
9464 | ||
eec2776c AJ |
9465 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9466 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
c52df125 | 9467 | |
eec2776c AJ |
9468 | runpath_var= |
9469 | allow_undefined_flag= | |
9470 | always_export_symbols=no | |
9471 | archive_cmds= | |
9472 | archive_expsym_cmds= | |
9473 | compiler_needs_object=no | |
9474 | enable_shared_with_static_runtimes=no | |
9475 | export_dynamic_flag_spec= | |
9476 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9477 | hardcode_automatic=no | |
9478 | hardcode_direct=no | |
9479 | hardcode_direct_absolute=no | |
9480 | hardcode_libdir_flag_spec= | |
9481 | hardcode_libdir_separator= | |
9482 | hardcode_minus_L=no | |
9483 | hardcode_shlibpath_var=unsupported | |
9484 | inherit_rpath=no | |
9485 | link_all_deplibs=unknown | |
9486 | module_cmds= | |
9487 | module_expsym_cmds= | |
9488 | old_archive_from_new_cmds= | |
9489 | old_archive_from_expsyms_cmds= | |
9490 | thread_safe_flag_spec= | |
9491 | whole_archive_flag_spec= | |
9492 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9493 | # included in the symbol list | |
9494 | include_expsyms= | |
9495 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9496 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9497 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9498 | # as well as any symbol that contains `d'. | |
9499 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9500 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9501 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9502 | # the symbol is explicitly referenced. Since portable code cannot | |
9503 | # rely on this symbol name, it's probably fine to never include it in | |
9504 | # preloaded symbol tables. | |
9505 | # Exclude shared library initialization/finalization symbols. | |
9506 | extract_expsyms_cmds= | |
c52df125 | 9507 | |
c52df125 | 9508 | case $host_os in |
eec2776c AJ |
9509 | cygwin* | mingw* | pw32* | cegcc*) |
9510 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9511 | # When not using gcc, we currently assume that we are using | |
9512 | # Microsoft Visual C++. | |
9513 | if test "$GCC" != yes; then | |
9514 | with_gnu_ld=no | |
9515 | fi | |
c52df125 | 9516 | ;; |
eec2776c AJ |
9517 | interix*) |
9518 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9519 | with_gnu_ld=yes | |
9520 | ;; | |
9521 | openbsd*) | |
9522 | with_gnu_ld=no | |
9523 | ;; | |
9524 | linux* | k*bsd*-gnu | gnu*) | |
9525 | link_all_deplibs=no | |
c52df125 AC |
9526 | ;; |
9527 | esac | |
c52df125 | 9528 | |
eec2776c | 9529 | ld_shlibs=yes |
c52df125 | 9530 | |
eec2776c AJ |
9531 | # On some targets, GNU ld is compatible enough with the native linker |
9532 | # that we're better off using the native interface for both. | |
9533 | lt_use_gnu_ld_interface=no | |
9534 | if test "$with_gnu_ld" = yes; then | |
c52df125 | 9535 | case $host_os in |
eec2776c AJ |
9536 | aix*) |
9537 | # The AIX port of GNU ld has always aspired to compatibility | |
9538 | # with the native linker. However, as the warning in the GNU ld | |
9539 | # block says, versions before 2.19.5* couldn't really create working | |
9540 | # shared libraries, regardless of the interface used. | |
9541 | case `$LD -v 2>&1` in | |
9542 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9543 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9544 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9545 | *) | |
9546 | lt_use_gnu_ld_interface=yes | |
9547 | ;; | |
9548 | esac | |
9549 | ;; | |
9550 | *) | |
9551 | lt_use_gnu_ld_interface=yes | |
9552 | ;; | |
c52df125 | 9553 | esac |
c52df125 | 9554 | fi |
c52df125 | 9555 | |
eec2776c AJ |
9556 | if test "$lt_use_gnu_ld_interface" = yes; then |
9557 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9558 | wlarc='${wl}' | |
c52df125 | 9559 | |
eec2776c AJ |
9560 | # Set some defaults for GNU ld with shared library support. These |
9561 | # are reset later if shared libraries are not supported. Putting them | |
9562 | # here allows them to be overridden if necessary. | |
9563 | runpath_var=LD_RUN_PATH | |
9564 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9565 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9566 | # ancient GNU ld didn't support --whole-archive et. al. | |
9567 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9568 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9569 | else | |
9570 | whole_archive_flag_spec= | |
9571 | fi | |
9572 | supports_anon_versioning=no | |
9573 | case `$LD -v 2>&1` in | |
9574 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9575 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9576 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9577 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9578 | *\ 2.11.*) ;; # other 2.11 versions | |
9579 | *) supports_anon_versioning=yes ;; | |
9580 | esac | |
c52df125 | 9581 | |
eec2776c AJ |
9582 | # See if GNU ld supports shared libraries. |
9583 | case $host_os in | |
9584 | aix[3-9]*) | |
9585 | # On AIX/PPC, the GNU linker is very broken | |
9586 | if test "$host_cpu" != ia64; then | |
9587 | ld_shlibs=no | |
9588 | cat <<_LT_EOF 1>&2 | |
c52df125 | 9589 | |
eec2776c AJ |
9590 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
9591 | *** to be unable to reliably create shared libraries on AIX. | |
9592 | *** Therefore, libtool is disabling shared libraries support. If you | |
9593 | *** really care for shared libraries, you may want to install binutils | |
9594 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9595 | *** You will then need to restart the configuration process. | |
c52df125 | 9596 | |
eec2776c AJ |
9597 | _LT_EOF |
9598 | fi | |
9599 | ;; | |
c52df125 | 9600 | |
eec2776c AJ |
9601 | amigaos*) |
9602 | case $host_cpu in | |
9603 | powerpc) | |
9604 | # see comment about AmigaOS4 .so support | |
9605 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9606 | archive_expsym_cmds='' | |
9607 | ;; | |
9608 | m68k) | |
9609 | 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)' | |
9610 | hardcode_libdir_flag_spec='-L$libdir' | |
9611 | hardcode_minus_L=yes | |
9612 | ;; | |
9613 | esac | |
9614 | ;; | |
c52df125 | 9615 | |
eec2776c AJ |
9616 | beos*) |
9617 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9618 | allow_undefined_flag=unsupported | |
9619 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9620 | # support --undefined. This deserves some investigation. FIXME | |
9621 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9622 | else | |
9623 | ld_shlibs=no | |
9624 | fi | |
c52df125 | 9625 | ;; |
eec2776c AJ |
9626 | |
9627 | cygwin* | mingw* | pw32* | cegcc*) | |
9628 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9629 | # as there is no search path for DLLs. | |
9630 | hardcode_libdir_flag_spec='-L$libdir' | |
9631 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9632 | allow_undefined_flag=unsupported | |
9633 | always_export_symbols=no | |
9634 | enable_shared_with_static_runtimes=yes | |
9635 | 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' | |
9636 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9637 | ||
9638 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9639 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9640 | # If the export-symbols file already is a .def file (1st line | |
9641 | # is EXPORTS), use it as is; otherwise, prepend... | |
9642 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9643 | cp $export_symbols $output_objdir/$soname.def; | |
9644 | else | |
9645 | echo EXPORTS > $output_objdir/$soname.def; | |
9646 | cat $export_symbols >> $output_objdir/$soname.def; | |
9647 | fi~ | |
9648 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9649 | else | |
9650 | ld_shlibs=no | |
9651 | fi | |
c52df125 | 9652 | ;; |
c52df125 | 9653 | |
eec2776c AJ |
9654 | haiku*) |
9655 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9656 | link_all_deplibs=yes | |
9657 | ;; | |
c52df125 | 9658 | |
eec2776c AJ |
9659 | interix[3-9]*) |
9660 | hardcode_direct=no | |
9661 | hardcode_shlibpath_var=no | |
9662 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9663 | export_dynamic_flag_spec='${wl}-E' | |
9664 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9665 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9666 | # default) and relocated if they conflict, which is a slow very memory | |
9667 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9668 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9669 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9670 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9671 | 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' | |
c52df125 | 9672 | ;; |
eec2776c AJ |
9673 | |
9674 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9675 | tmp_diet=no | |
9676 | if test "$host_os" = linux-dietlibc; then | |
9677 | case $cc_basename in | |
9678 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9679 | esac | |
9680 | fi | |
9681 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9682 | && test "$tmp_diet" = no | |
9683 | then | |
9684 | tmp_addflag=' $pic_flag' | |
9685 | tmp_sharedflag='-shared' | |
9686 | case $cc_basename,$host_cpu in | |
9687 | pgcc*) # Portland Group C compiler | |
9688 | 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' | |
9689 | tmp_addflag=' $pic_flag' | |
9690 | ;; | |
9691 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9692 | # Portland Group f77 and f90 compilers | |
9693 | 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' | |
9694 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9695 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9696 | tmp_addflag=' -i_dynamic' ;; | |
9697 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9698 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9699 | ifc* | ifort*) # Intel Fortran compiler | |
9700 | tmp_addflag=' -nofor_main' ;; | |
9701 | lf95*) # Lahey Fortran 8.1 | |
9702 | whole_archive_flag_spec= | |
9703 | tmp_sharedflag='--shared' ;; | |
9704 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9705 | tmp_sharedflag='-qmkshrobj' | |
9706 | tmp_addflag= ;; | |
9707 | nvcc*) # Cuda Compiler Driver 2.2 | |
9708 | 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' | |
9709 | compiler_needs_object=yes | |
9710 | ;; | |
9711 | esac | |
9712 | case `$CC -V 2>&1 | sed 5q` in | |
9713 | *Sun\ C*) # Sun C 5.9 | |
9714 | 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' | |
9715 | compiler_needs_object=yes | |
9716 | tmp_sharedflag='-G' ;; | |
9717 | *Sun\ F*) # Sun Fortran 8.3 | |
9718 | tmp_sharedflag='-G' ;; | |
9719 | esac | |
9720 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9721 | ||
9722 | if test "x$supports_anon_versioning" = xyes; then | |
9723 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9724 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9725 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9726 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9727 | fi | |
9728 | ||
9729 | case $cc_basename in | |
9730 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9731 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9732 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9733 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9734 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
9735 | if test "x$supports_anon_versioning" = xyes; then | |
9736 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9737 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9738 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9739 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9740 | fi | |
9741 | ;; | |
9742 | esac | |
9743 | else | |
9744 | ld_shlibs=no | |
9745 | fi | |
c52df125 | 9746 | ;; |
eec2776c AJ |
9747 | |
9748 | netbsd* | netbsdelf*-gnu) | |
9749 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9750 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9751 | wlarc= | |
c52df125 | 9752 | else |
eec2776c AJ |
9753 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9754 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
c52df125 | 9755 | fi |
c52df125 | 9756 | ;; |
c52df125 | 9757 | |
eec2776c AJ |
9758 | solaris*) |
9759 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9760 | ld_shlibs=no | |
9761 | cat <<_LT_EOF 1>&2 | |
c52df125 | 9762 | |
eec2776c AJ |
9763 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9764 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9765 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9766 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9767 | *** your PATH or compiler configuration so that the native linker is | |
9768 | *** used, and then restart. | |
c52df125 | 9769 | |
eec2776c AJ |
9770 | _LT_EOF |
9771 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9772 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9773 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9774 | else | |
9775 | ld_shlibs=no | |
9776 | fi | |
9777 | ;; | |
c52df125 | 9778 | |
eec2776c AJ |
9779 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9780 | case `$LD -v 2>&1` in | |
9781 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9782 | ld_shlibs=no | |
9783 | cat <<_LT_EOF 1>&2 | |
c52df125 | 9784 | |
eec2776c AJ |
9785 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
9786 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9787 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9788 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9789 | *** your PATH or compiler configuration so that the native linker is | |
9790 | *** used, and then restart. | |
c52df125 | 9791 | |
eec2776c AJ |
9792 | _LT_EOF |
9793 | ;; | |
9794 | *) | |
9795 | # For security reasons, it is highly recommended that you always | |
9796 | # use absolute paths for naming shared libraries, and exclude the | |
9797 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9798 | # requires that you compile everything twice, which is a pain. | |
9799 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9800 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9801 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9802 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9803 | else | |
9804 | ld_shlibs=no | |
9805 | fi | |
9806 | ;; | |
9807 | esac | |
c52df125 | 9808 | ;; |
eec2776c AJ |
9809 | |
9810 | sunos4*) | |
9811 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9812 | wlarc= | |
9813 | hardcode_direct=yes | |
9814 | hardcode_shlibpath_var=no | |
c52df125 | 9815 | ;; |
c52df125 | 9816 | |
eec2776c AJ |
9817 | *) |
9818 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9819 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9820 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9821 | else | |
9822 | ld_shlibs=no | |
9823 | fi | |
9824 | ;; | |
9825 | esac | |
c52df125 | 9826 | |
eec2776c AJ |
9827 | if test "$ld_shlibs" = no; then |
9828 | runpath_var= | |
9829 | hardcode_libdir_flag_spec= | |
9830 | export_dynamic_flag_spec= | |
9831 | whole_archive_flag_spec= | |
c52df125 | 9832 | fi |
eec2776c AJ |
9833 | else |
9834 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9835 | case $host_os in | |
9836 | aix3*) | |
9837 | allow_undefined_flag=unsupported | |
9838 | always_export_symbols=yes | |
9839 | 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' | |
9840 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9841 | # are no directories specified by -L. | |
9842 | hardcode_minus_L=yes | |
9843 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9844 | # Neither direct hardcoding nor static linking is supported with a | |
9845 | # broken collect2. | |
9846 | hardcode_direct=unsupported | |
9847 | fi | |
9848 | ;; | |
c52df125 | 9849 | |
eec2776c AJ |
9850 | aix[4-9]*) |
9851 | if test "$host_cpu" = ia64; then | |
9852 | # On IA64, the linker does run time linking by default, so we don't | |
9853 | # have to do anything special. | |
9854 | aix_use_runtimelinking=no | |
9855 | exp_sym_flag='-Bexport' | |
9856 | no_entry_flag="" | |
9857 | else | |
9858 | # If we're using GNU nm, then we don't want the "-C" option. | |
9859 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9860 | # Also, AIX nm treats weak defined symbols like other global | |
9861 | # defined symbols, whereas GNU nm marks them as "W". | |
9862 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9863 | 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' | |
c52df125 | 9864 | else |
eec2776c AJ |
9865 | 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' |
9866 | fi | |
9867 | aix_use_runtimelinking=no | |
c52df125 | 9868 | |
eec2776c AJ |
9869 | # Test if we are trying to use run time linking or normal |
9870 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9871 | # need to do runtime linking. | |
9872 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9873 | for ld_flag in $LDFLAGS; do | |
9874 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9875 | aix_use_runtimelinking=yes | |
9876 | break | |
9877 | fi | |
9878 | done | |
9879 | ;; | |
9880 | esac | |
c52df125 | 9881 | |
eec2776c AJ |
9882 | exp_sym_flag='-bexport' |
9883 | no_entry_flag='-bnoentry' | |
9884 | fi | |
c52df125 | 9885 | |
eec2776c AJ |
9886 | # When large executables or shared objects are built, AIX ld can |
9887 | # have problems creating the table of contents. If linking a library | |
9888 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9889 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9890 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
c52df125 | 9891 | |
eec2776c AJ |
9892 | archive_cmds='' |
9893 | hardcode_direct=yes | |
9894 | hardcode_direct_absolute=yes | |
9895 | hardcode_libdir_separator=':' | |
9896 | link_all_deplibs=yes | |
9897 | file_list_spec='${wl}-f,' | |
c52df125 | 9898 | |
eec2776c AJ |
9899 | if test "$GCC" = yes; then |
9900 | case $host_os in aix4.[012]|aix4.[012].*) | |
9901 | # We only want to do this on AIX 4.2 and lower, the check | |
9902 | # below for broken collect2 doesn't work under 4.3+ | |
9903 | collect2name=`${CC} -print-prog-name=collect2` | |
9904 | if test -f "$collect2name" && | |
9905 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9906 | then | |
9907 | # We have reworked collect2 | |
9908 | : | |
9909 | else | |
9910 | # We have old collect2 | |
9911 | hardcode_direct=unsupported | |
9912 | # It fails to find uninstalled libraries when the uninstalled | |
9913 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9914 | # to unsupported forces relinking | |
9915 | hardcode_minus_L=yes | |
9916 | hardcode_libdir_flag_spec='-L$libdir' | |
9917 | hardcode_libdir_separator= | |
9918 | fi | |
9919 | ;; | |
9920 | esac | |
9921 | shared_flag='-shared' | |
9922 | if test "$aix_use_runtimelinking" = yes; then | |
9923 | shared_flag="$shared_flag "'${wl}-G' | |
9924 | fi | |
9925 | link_all_deplibs=no | |
9926 | else | |
9927 | # not using gcc | |
9928 | if test "$host_cpu" = ia64; then | |
9929 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9930 | # chokes on -Wl,-G. The following line is correct: | |
9931 | shared_flag='-G' | |
9932 | else | |
9933 | if test "$aix_use_runtimelinking" = yes; then | |
9934 | shared_flag='${wl}-G' | |
9935 | else | |
9936 | shared_flag='${wl}-bM:SRE' | |
9937 | fi | |
9938 | fi | |
9939 | fi | |
9940 | ||
9941 | export_dynamic_flag_spec='${wl}-bexpall' | |
9942 | # It seems that -bexpall does not export symbols beginning with | |
9943 | # underscore (_), so it is better to generate a list of symbols to export. | |
9944 | always_export_symbols=yes | |
9945 | if test "$aix_use_runtimelinking" = yes; then | |
9946 | # Warning - without using the other runtime loading flags (-brtl), | |
9947 | # -berok will link without error, but may produce a broken library. | |
9948 | allow_undefined_flag='-berok' | |
9949 | # Determine the default libpath from the value encoded in an | |
9950 | # empty executable. | |
9951 | if test "${lt_cv_aix_libpath+set}" = set; then | |
9952 | aix_libpath=$lt_cv_aix_libpath | |
9953 | else | |
9954 | if ${lt_cv_aix_libpath_+:} false; then : | |
9955 | $as_echo_n "(cached) " >&6 | |
9956 | else | |
9957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9958 | /* end confdefs.h. */ | |
9959 | ||
9960 | int | |
9961 | main () | |
9962 | { | |
9963 | ||
9964 | ; | |
9965 | return 0; | |
9966 | } | |
9967 | _ACEOF | |
c52df125 | 9968 | if ac_fn_c_try_link "$LINENO"; then : |
eec2776c AJ |
9969 | |
9970 | lt_aix_libpath_sed=' | |
9971 | /Import File Strings/,/^$/ { | |
9972 | /^0/ { | |
9973 | s/^0 *\([^ ]*\) *$/\1/ | |
9974 | p | |
9975 | } | |
9976 | }' | |
9977 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9978 | # Check for a 64-bit object if we didn't find anything. | |
9979 | if test -z "$lt_cv_aix_libpath_"; then | |
9980 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9981 | fi | |
c52df125 AC |
9982 | fi |
9983 | rm -f core conftest.err conftest.$ac_objext \ | |
9984 | conftest$ac_exeext conftest.$ac_ext | |
eec2776c AJ |
9985 | if test -z "$lt_cv_aix_libpath_"; then |
9986 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
9987 | fi | |
c52df125 AC |
9988 | |
9989 | fi | |
9990 | ||
eec2776c AJ |
9991 | aix_libpath=$lt_cv_aix_libpath_ |
9992 | fi | |
c52df125 | 9993 | |
eec2776c AJ |
9994 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9995 | 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" | |
9996 | else | |
9997 | if test "$host_cpu" = ia64; then | |
9998 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9999 | allow_undefined_flag="-z nodefs" | |
10000 | 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" | |
10001 | else | |
10002 | # Determine the default libpath from the value encoded in an | |
10003 | # empty executable. | |
10004 | if test "${lt_cv_aix_libpath+set}" = set; then | |
10005 | aix_libpath=$lt_cv_aix_libpath | |
10006 | else | |
10007 | if ${lt_cv_aix_libpath_+:} false; then : | |
10008 | $as_echo_n "(cached) " >&6 | |
10009 | else | |
10010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10011 | /* end confdefs.h. */ | |
c52df125 | 10012 | |
eec2776c AJ |
10013 | int |
10014 | main () | |
10015 | { | |
c52df125 | 10016 | |
eec2776c AJ |
10017 | ; |
10018 | return 0; | |
10019 | } | |
10020 | _ACEOF | |
10021 | if ac_fn_c_try_link "$LINENO"; then : | |
c52df125 | 10022 | |
eec2776c AJ |
10023 | lt_aix_libpath_sed=' |
10024 | /Import File Strings/,/^$/ { | |
10025 | /^0/ { | |
10026 | s/^0 *\([^ ]*\) *$/\1/ | |
10027 | p | |
10028 | } | |
10029 | }' | |
10030 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10031 | # Check for a 64-bit object if we didn't find anything. | |
10032 | if test -z "$lt_cv_aix_libpath_"; then | |
10033 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
c52df125 | 10034 | fi |
eec2776c AJ |
10035 | fi |
10036 | rm -f core conftest.err conftest.$ac_objext \ | |
10037 | conftest$ac_exeext conftest.$ac_ext | |
10038 | if test -z "$lt_cv_aix_libpath_"; then | |
10039 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
c52df125 | 10040 | fi |
c52df125 | 10041 | |
eec2776c | 10042 | fi |
c52df125 | 10043 | |
eec2776c AJ |
10044 | aix_libpath=$lt_cv_aix_libpath_ |
10045 | fi | |
c52df125 | 10046 | |
eec2776c AJ |
10047 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10048 | # Warning - without using the other run time loading flags, | |
10049 | # -berok will link without error, but may produce a broken library. | |
10050 | no_undefined_flag=' ${wl}-bernotok' | |
10051 | allow_undefined_flag=' ${wl}-berok' | |
10052 | if test "$with_gnu_ld" = yes; then | |
10053 | # We only use this code for GNU lds that support --whole-archive. | |
10054 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10055 | else | |
10056 | # Exported symbols can be pulled into shared objects from archives | |
10057 | whole_archive_flag_spec='$convenience' | |
10058 | fi | |
10059 | archive_cmds_need_lc=yes | |
10060 | # This is similar to how AIX traditionally builds its shared libraries. | |
10061 | 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' | |
10062 | fi | |
10063 | fi | |
c52df125 | 10064 | ;; |
eec2776c AJ |
10065 | |
10066 | amigaos*) | |
10067 | case $host_cpu in | |
10068 | powerpc) | |
10069 | # see comment about AmigaOS4 .so support | |
10070 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10071 | archive_expsym_cmds='' | |
10072 | ;; | |
10073 | m68k) | |
10074 | 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)' | |
10075 | hardcode_libdir_flag_spec='-L$libdir' | |
10076 | hardcode_minus_L=yes | |
10077 | ;; | |
10078 | esac | |
c52df125 | 10079 | ;; |
c52df125 | 10080 | |
eec2776c AJ |
10081 | bsdi[45]*) |
10082 | export_dynamic_flag_spec=-rdynamic | |
10083 | ;; | |
c52df125 | 10084 | |
eec2776c AJ |
10085 | cygwin* | mingw* | pw32* | cegcc*) |
10086 | # When not using gcc, we currently assume that we are using | |
10087 | # Microsoft Visual C++. | |
10088 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10089 | # no search path for DLLs. | |
10090 | case $cc_basename in | |
10091 | cl*) | |
10092 | # Native MSVC | |
10093 | hardcode_libdir_flag_spec=' ' | |
10094 | allow_undefined_flag=unsupported | |
10095 | always_export_symbols=yes | |
10096 | file_list_spec='@' | |
10097 | # Tell ltmain to make .lib files, not .a files. | |
10098 | libext=lib | |
10099 | # Tell ltmain to make .dll files, not .so files. | |
10100 | shrext_cmds=".dll" | |
10101 | # FIXME: Setting linknames here is a bad hack. | |
10102 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
10103 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10104 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
10105 | else | |
10106 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
10107 | fi~ | |
10108 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10109 | linknames=' | |
10110 | # The linker will not automatically build a static lib if we build a DLL. | |
10111 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10112 | enable_shared_with_static_runtimes=yes | |
10113 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10114 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10115 | # Don't use ranlib | |
10116 | old_postinstall_cmds='chmod 644 $oldlib' | |
10117 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
10118 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
10119 | case $lt_outputfile in | |
10120 | *.exe|*.EXE) ;; | |
10121 | *) | |
10122 | lt_outputfile="$lt_outputfile.exe" | |
10123 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
10124 | ;; | |
10125 | esac~ | |
10126 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
10127 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10128 | $RM "$lt_outputfile.manifest"; | |
10129 | fi' | |
c52df125 | 10130 | ;; |
eec2776c AJ |
10131 | *) |
10132 | # Assume MSVC wrapper | |
10133 | hardcode_libdir_flag_spec=' ' | |
10134 | allow_undefined_flag=unsupported | |
10135 | # Tell ltmain to make .lib files, not .a files. | |
10136 | libext=lib | |
10137 | # Tell ltmain to make .dll files, not .so files. | |
10138 | shrext_cmds=".dll" | |
10139 | # FIXME: Setting linknames here is a bad hack. | |
10140 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10141 | # The linker will automatically build a .lib file if we build a DLL. | |
10142 | old_archive_from_new_cmds='true' | |
10143 | # FIXME: Should let the user specify the lib program. | |
10144 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10145 | enable_shared_with_static_runtimes=yes | |
10146 | ;; | |
10147 | esac | |
10148 | ;; | |
c52df125 | 10149 | |
eec2776c | 10150 | darwin* | rhapsody*) |
c52df125 AC |
10151 | |
10152 | ||
eec2776c AJ |
10153 | archive_cmds_need_lc=no |
10154 | hardcode_direct=no | |
10155 | hardcode_automatic=yes | |
10156 | hardcode_shlibpath_var=unsupported | |
10157 | if test "$lt_cv_ld_force_load" = "yes"; then | |
10158 | 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\"`' | |
c52df125 | 10159 | |
eec2776c AJ |
10160 | else |
10161 | whole_archive_flag_spec='' | |
10162 | fi | |
10163 | link_all_deplibs=yes | |
10164 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10165 | case $cc_basename in | |
10166 | ifort*) _lt_dar_can_shared=yes ;; | |
10167 | *) _lt_dar_can_shared=$GCC ;; | |
10168 | esac | |
10169 | if test "$_lt_dar_can_shared" = "yes"; then | |
10170 | output_verbose_link_cmd=func_echo_all | |
10171 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
10172 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10173 | 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}" | |
10174 | 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}" | |
c52df125 | 10175 | |
eec2776c AJ |
10176 | else |
10177 | ld_shlibs=no | |
10178 | fi | |
c52df125 | 10179 | |
eec2776c | 10180 | ;; |
c52df125 | 10181 | |
eec2776c AJ |
10182 | dgux*) |
10183 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10184 | hardcode_libdir_flag_spec='-L$libdir' | |
10185 | hardcode_shlibpath_var=no | |
10186 | ;; | |
c52df125 | 10187 | |
eec2776c AJ |
10188 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10189 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10190 | # does not break anything, and helps significantly (at the cost of a little | |
10191 | # extra space). | |
10192 | freebsd2.2*) | |
10193 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10194 | hardcode_libdir_flag_spec='-R$libdir' | |
10195 | hardcode_direct=yes | |
10196 | hardcode_shlibpath_var=no | |
10197 | ;; | |
c52df125 | 10198 | |
eec2776c AJ |
10199 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
10200 | freebsd2.*) | |
10201 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10202 | hardcode_direct=yes | |
10203 | hardcode_minus_L=yes | |
10204 | hardcode_shlibpath_var=no | |
10205 | ;; | |
c52df125 | 10206 | |
eec2776c AJ |
10207 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
10208 | freebsd* | dragonfly*) | |
10209 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10210 | hardcode_libdir_flag_spec='-R$libdir' | |
10211 | hardcode_direct=yes | |
10212 | hardcode_shlibpath_var=no | |
10213 | ;; | |
c52df125 | 10214 | |
eec2776c AJ |
10215 | hpux9*) |
10216 | if test "$GCC" = yes; then | |
10217 | 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' | |
10218 | else | |
10219 | 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' | |
10220 | fi | |
10221 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10222 | hardcode_libdir_separator=: | |
10223 | hardcode_direct=yes | |
c52df125 | 10224 | |
eec2776c AJ |
10225 | # hardcode_minus_L: Not really in the search PATH, |
10226 | # but as the default location of the library. | |
10227 | hardcode_minus_L=yes | |
10228 | export_dynamic_flag_spec='${wl}-E' | |
10229 | ;; | |
c52df125 | 10230 | |
eec2776c AJ |
10231 | hpux10*) |
10232 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10233 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10234 | else | |
10235 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10236 | fi | |
10237 | if test "$with_gnu_ld" = no; then | |
10238 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10239 | hardcode_libdir_separator=: | |
10240 | hardcode_direct=yes | |
10241 | hardcode_direct_absolute=yes | |
10242 | export_dynamic_flag_spec='${wl}-E' | |
10243 | # hardcode_minus_L: Not really in the search PATH, | |
10244 | # but as the default location of the library. | |
10245 | hardcode_minus_L=yes | |
10246 | fi | |
10247 | ;; | |
c52df125 | 10248 | |
eec2776c AJ |
10249 | hpux11*) |
10250 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10251 | case $host_cpu in | |
10252 | hppa*64*) | |
10253 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10254 | ;; | |
10255 | ia64*) | |
10256 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10257 | ;; | |
10258 | *) | |
10259 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10260 | ;; | |
10261 | esac | |
10262 | else | |
10263 | case $host_cpu in | |
10264 | hppa*64*) | |
10265 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10266 | ;; | |
10267 | ia64*) | |
10268 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10269 | ;; | |
10270 | *) | |
c52df125 | 10271 | |
eec2776c AJ |
10272 | # Older versions of the 11.00 compiler do not understand -b yet |
10273 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10275 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10276 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10277 | $as_echo_n "(cached) " >&6 | |
10278 | else | |
10279 | lt_cv_prog_compiler__b=no | |
10280 | save_LDFLAGS="$LDFLAGS" | |
10281 | LDFLAGS="$LDFLAGS -b" | |
10282 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10283 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10284 | # The linker can only warn and ignore the option if not recognized | |
10285 | # So say no if there are warnings | |
10286 | if test -s conftest.err; then | |
10287 | # Append any errors to the config.log. | |
10288 | cat conftest.err 1>&5 | |
10289 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10290 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10291 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10292 | lt_cv_prog_compiler__b=yes | |
10293 | fi | |
10294 | else | |
10295 | lt_cv_prog_compiler__b=yes | |
10296 | fi | |
10297 | fi | |
10298 | $RM -r conftest* | |
10299 | LDFLAGS="$save_LDFLAGS" | |
c52df125 | 10300 | |
eec2776c AJ |
10301 | fi |
10302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10303 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
c52df125 | 10304 | |
eec2776c AJ |
10305 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
10306 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10307 | else | |
10308 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10309 | fi | |
c52df125 | 10310 | |
eec2776c AJ |
10311 | ;; |
10312 | esac | |
10313 | fi | |
10314 | if test "$with_gnu_ld" = no; then | |
10315 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10316 | hardcode_libdir_separator=: | |
c52df125 | 10317 | |
eec2776c AJ |
10318 | case $host_cpu in |
10319 | hppa*64*|ia64*) | |
10320 | hardcode_direct=no | |
10321 | hardcode_shlibpath_var=no | |
10322 | ;; | |
10323 | *) | |
10324 | hardcode_direct=yes | |
10325 | hardcode_direct_absolute=yes | |
10326 | export_dynamic_flag_spec='${wl}-E' | |
c52df125 | 10327 | |
eec2776c AJ |
10328 | # hardcode_minus_L: Not really in the search PATH, |
10329 | # but as the default location of the library. | |
10330 | hardcode_minus_L=yes | |
10331 | ;; | |
10332 | esac | |
10333 | fi | |
10334 | ;; | |
c52df125 | 10335 | |
eec2776c AJ |
10336 | irix5* | irix6* | nonstopux*) |
10337 | if test "$GCC" = yes; then | |
10338 | 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' | |
10339 | # Try to use the -exported_symbol ld option, if it does not | |
10340 | # work, assume that -exports_file does not work either and | |
10341 | # implicitly export all symbols. | |
10342 | # This should be the same for all languages, so no per-tag cache variable. | |
10343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10344 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10345 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10346 | $as_echo_n "(cached) " >&6 | |
10347 | else | |
10348 | save_LDFLAGS="$LDFLAGS" | |
10349 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10351 | /* end confdefs.h. */ | |
10352 | int foo (void) { return 0; } | |
10353 | _ACEOF | |
10354 | if ac_fn_c_try_link "$LINENO"; then : | |
10355 | lt_cv_irix_exported_symbol=yes | |
10356 | else | |
10357 | lt_cv_irix_exported_symbol=no | |
10358 | fi | |
10359 | rm -f core conftest.err conftest.$ac_objext \ | |
10360 | conftest$ac_exeext conftest.$ac_ext | |
10361 | LDFLAGS="$save_LDFLAGS" | |
10362 | fi | |
10363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10364 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10365 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
10366 | 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' | |
10367 | fi | |
10368 | else | |
10369 | 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' | |
10370 | 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' | |
10371 | fi | |
10372 | archive_cmds_need_lc='no' | |
10373 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10374 | hardcode_libdir_separator=: | |
10375 | inherit_rpath=yes | |
10376 | link_all_deplibs=yes | |
10377 | ;; | |
c52df125 | 10378 | |
eec2776c AJ |
10379 | netbsd* | netbsdelf*-gnu) |
10380 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10381 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10382 | else | |
10383 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10384 | fi | |
10385 | hardcode_libdir_flag_spec='-R$libdir' | |
10386 | hardcode_direct=yes | |
10387 | hardcode_shlibpath_var=no | |
10388 | ;; | |
c52df125 | 10389 | |
eec2776c AJ |
10390 | newsos6) |
10391 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10392 | hardcode_direct=yes | |
10393 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10394 | hardcode_libdir_separator=: | |
10395 | hardcode_shlibpath_var=no | |
10396 | ;; | |
c52df125 | 10397 | |
eec2776c AJ |
10398 | *nto* | *qnx*) |
10399 | ;; | |
c52df125 | 10400 | |
eec2776c AJ |
10401 | openbsd*) |
10402 | if test -f /usr/libexec/ld.so; then | |
10403 | hardcode_direct=yes | |
10404 | hardcode_shlibpath_var=no | |
10405 | hardcode_direct_absolute=yes | |
10406 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10407 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10408 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10409 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10410 | export_dynamic_flag_spec='${wl}-E' | |
10411 | else | |
10412 | case $host_os in | |
10413 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10414 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10415 | hardcode_libdir_flag_spec='-R$libdir' | |
10416 | ;; | |
10417 | *) | |
10418 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10419 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10420 | ;; | |
10421 | esac | |
10422 | fi | |
10423 | else | |
10424 | ld_shlibs=no | |
10425 | fi | |
10426 | ;; | |
c52df125 | 10427 | |
eec2776c AJ |
10428 | os2*) |
10429 | hardcode_libdir_flag_spec='-L$libdir' | |
10430 | hardcode_minus_L=yes | |
10431 | allow_undefined_flag=unsupported | |
10432 | 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' | |
10433 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10434 | ;; | |
c52df125 | 10435 | |
eec2776c AJ |
10436 | osf3*) |
10437 | if test "$GCC" = yes; then | |
10438 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10439 | 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' | |
10440 | else | |
10441 | allow_undefined_flag=' -expect_unresolved \*' | |
10442 | 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' | |
10443 | fi | |
10444 | archive_cmds_need_lc='no' | |
10445 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10446 | hardcode_libdir_separator=: | |
10447 | ;; | |
c52df125 | 10448 | |
eec2776c AJ |
10449 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
10450 | if test "$GCC" = yes; then | |
10451 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10452 | 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' | |
10453 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10454 | else | |
10455 | allow_undefined_flag=' -expect_unresolved \*' | |
10456 | 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' | |
10457 | 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~ | |
10458 | $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' | |
c52df125 | 10459 | |
eec2776c AJ |
10460 | # Both c and cxx compiler support -rpath directly |
10461 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10462 | fi | |
10463 | archive_cmds_need_lc='no' | |
10464 | hardcode_libdir_separator=: | |
10465 | ;; | |
c52df125 | 10466 | |
eec2776c AJ |
10467 | solaris*) |
10468 | no_undefined_flag=' -z defs' | |
10469 | if test "$GCC" = yes; then | |
10470 | wlarc='${wl}' | |
10471 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10472 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10473 | $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' | |
10474 | else | |
10475 | case `$CC -V 2>&1` in | |
10476 | *"Compilers 5.0"*) | |
10477 | wlarc='' | |
10478 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10479 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10480 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10481 | ;; | |
10482 | *) | |
10483 | wlarc='${wl}' | |
10484 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10485 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10486 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10487 | ;; | |
10488 | esac | |
10489 | fi | |
10490 | hardcode_libdir_flag_spec='-R$libdir' | |
10491 | hardcode_shlibpath_var=no | |
10492 | case $host_os in | |
10493 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10494 | *) | |
10495 | # The compiler driver will combine and reorder linker options, | |
10496 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10497 | # but is careful enough not to reorder. | |
10498 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10499 | if test "$GCC" = yes; then | |
10500 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10501 | else | |
10502 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10503 | fi | |
10504 | ;; | |
10505 | esac | |
10506 | link_all_deplibs=yes | |
10507 | ;; | |
c52df125 | 10508 | |
eec2776c AJ |
10509 | sunos4*) |
10510 | if test "x$host_vendor" = xsequent; then | |
10511 | # Use $CC to link under sequent, because it throws in some extra .o | |
10512 | # files that make .init and .fini sections work. | |
10513 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10514 | else | |
10515 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10516 | fi | |
10517 | hardcode_libdir_flag_spec='-L$libdir' | |
10518 | hardcode_direct=yes | |
10519 | hardcode_minus_L=yes | |
10520 | hardcode_shlibpath_var=no | |
10521 | ;; | |
c52df125 | 10522 | |
eec2776c AJ |
10523 | sysv4) |
10524 | case $host_vendor in | |
10525 | sni) | |
10526 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10527 | hardcode_direct=yes # is this really true??? | |
10528 | ;; | |
10529 | siemens) | |
10530 | ## LD is ld it makes a PLAMLIB | |
10531 | ## CC just makes a GrossModule. | |
10532 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10533 | reload_cmds='$CC -r -o $output$reload_objs' | |
10534 | hardcode_direct=no | |
10535 | ;; | |
10536 | motorola) | |
10537 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10538 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10539 | ;; | |
10540 | esac | |
10541 | runpath_var='LD_RUN_PATH' | |
10542 | hardcode_shlibpath_var=no | |
10543 | ;; | |
c52df125 | 10544 | |
eec2776c AJ |
10545 | sysv4.3*) |
10546 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10547 | hardcode_shlibpath_var=no | |
10548 | export_dynamic_flag_spec='-Bexport' | |
10549 | ;; | |
c52df125 | 10550 | |
eec2776c AJ |
10551 | sysv4*MP*) |
10552 | if test -d /usr/nec; then | |
10553 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10554 | hardcode_shlibpath_var=no | |
10555 | runpath_var=LD_RUN_PATH | |
10556 | hardcode_runpath_var=yes | |
10557 | ld_shlibs=yes | |
10558 | fi | |
10559 | ;; | |
c52df125 | 10560 | |
eec2776c AJ |
10561 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10562 | no_undefined_flag='${wl}-z,text' | |
10563 | archive_cmds_need_lc=no | |
10564 | hardcode_shlibpath_var=no | |
10565 | runpath_var='LD_RUN_PATH' | |
c52df125 | 10566 | |
eec2776c AJ |
10567 | if test "$GCC" = yes; then |
10568 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10569 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10570 | else | |
10571 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10572 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10573 | fi | |
10574 | ;; | |
c52df125 | 10575 | |
eec2776c AJ |
10576 | sysv5* | sco3.2v5* | sco5v6*) |
10577 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10578 | # link with -lc, and that would cause any symbols used from libc to | |
10579 | # always be unresolved, which means just about no library would | |
10580 | # ever link correctly. If we're not using GNU ld we use -z text | |
10581 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10582 | # as -z defs. | |
10583 | no_undefined_flag='${wl}-z,text' | |
10584 | allow_undefined_flag='${wl}-z,nodefs' | |
10585 | archive_cmds_need_lc=no | |
10586 | hardcode_shlibpath_var=no | |
10587 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10588 | hardcode_libdir_separator=':' | |
10589 | link_all_deplibs=yes | |
10590 | export_dynamic_flag_spec='${wl}-Bexport' | |
10591 | runpath_var='LD_RUN_PATH' | |
c52df125 | 10592 | |
eec2776c AJ |
10593 | if test "$GCC" = yes; then |
10594 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10595 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10596 | else | |
10597 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10598 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10599 | fi | |
10600 | ;; | |
c52df125 | 10601 | |
eec2776c AJ |
10602 | uts4*) |
10603 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10604 | hardcode_libdir_flag_spec='-L$libdir' | |
10605 | hardcode_shlibpath_var=no | |
10606 | ;; | |
c52df125 | 10607 | |
eec2776c AJ |
10608 | *) |
10609 | ld_shlibs=no | |
10610 | ;; | |
10611 | esac | |
c52df125 | 10612 | |
eec2776c AJ |
10613 | if test x$host_vendor = xsni; then |
10614 | case $host in | |
10615 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10616 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10617 | ;; | |
10618 | esac | |
10619 | fi | |
10620 | fi | |
c52df125 | 10621 | |
eec2776c AJ |
10622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10623 | $as_echo "$ld_shlibs" >&6; } | |
10624 | test "$ld_shlibs" = no && can_build_shared=no | |
c52df125 | 10625 | |
eec2776c | 10626 | with_gnu_ld=$with_gnu_ld |
c52df125 AC |
10627 | |
10628 | ||
10629 | ||
10630 | ||
10631 | ||
10632 | ||
10633 | ||
10634 | ||
10635 | ||
10636 | ||
10637 | ||
10638 | ||
10639 | ||
10640 | ||
10641 | ||
eec2776c AJ |
10642 | # |
10643 | # Do we need to explicitly link libc? | |
10644 | # | |
10645 | case "x$archive_cmds_need_lc" in | |
10646 | x|xyes) | |
10647 | # Assume -lc should be added | |
10648 | archive_cmds_need_lc=yes | |
c52df125 | 10649 | |
eec2776c AJ |
10650 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
10651 | case $archive_cmds in | |
10652 | *'~'*) | |
10653 | # FIXME: we may have to deal with multi-command sequences. | |
10654 | ;; | |
10655 | '$CC '*) | |
10656 | # Test whether the compiler implicitly links with -lc since on some | |
10657 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10658 | # to ld, don't add -lc before -lgcc. | |
10659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10660 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10661 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10662 | $as_echo_n "(cached) " >&6 | |
10663 | else | |
10664 | $RM conftest* | |
10665 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
c52df125 | 10666 | |
eec2776c AJ |
10667 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
10668 | (eval $ac_compile) 2>&5 | |
10669 | ac_status=$? | |
10670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10671 | test $ac_status = 0; } 2>conftest.err; then | |
10672 | soname=conftest | |
10673 | lib=conftest | |
10674 | libobjs=conftest.$ac_objext | |
10675 | deplibs= | |
10676 | wl=$lt_prog_compiler_wl | |
10677 | pic_flag=$lt_prog_compiler_pic | |
10678 | compiler_flags=-v | |
10679 | linker_flags=-v | |
10680 | verstring= | |
10681 | output_objdir=. | |
10682 | libname=conftest | |
10683 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10684 | allow_undefined_flag= | |
10685 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10686 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10687 | ac_status=$? | |
10688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10689 | test $ac_status = 0; } | |
10690 | then | |
10691 | lt_cv_archive_cmds_need_lc=no | |
10692 | else | |
10693 | lt_cv_archive_cmds_need_lc=yes | |
10694 | fi | |
10695 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10696 | else | |
10697 | cat conftest.err 1>&5 | |
10698 | fi | |
10699 | $RM conftest* | |
c52df125 | 10700 | |
eec2776c AJ |
10701 | fi |
10702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10703 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10704 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10705 | ;; | |
10706 | esac | |
10707 | fi | |
10708 | ;; | |
10709 | esac | |
c52df125 AC |
10710 | |
10711 | ||
10712 | ||
10713 | ||
10714 | ||
10715 | ||
10716 | ||
10717 | ||
c52df125 | 10718 | |
c52df125 | 10719 | |
c52df125 AC |
10720 | |
10721 | ||
10722 | ||
10723 | ||
10724 | ||
10725 | ||
c52df125 | 10726 | |
c52df125 | 10727 | |
c52df125 | 10728 | |
c52df125 | 10729 | |
c52df125 | 10730 | |
c52df125 | 10731 | |
c52df125 | 10732 | |
c52df125 | 10733 | |
c52df125 | 10734 | |
c52df125 | 10735 | |
c52df125 | 10736 | |
c52df125 | 10737 | |
eec2776c AJ |
10738 | |
10739 | ||
10740 | ||
10741 | ||
10742 | ||
10743 | ||
10744 | ||
10745 | ||
10746 | ||
10747 | ||
10748 | ||
10749 | ||
10750 | ||
10751 | ||
10752 | ||
10753 | ||
10754 | ||
10755 | ||
10756 | ||
10757 | ||
10758 | ||
10759 | ||
10760 | ||
10761 | ||
10762 | ||
10763 | ||
10764 | ||
10765 | ||
10766 | ||
10767 | ||
10768 | ||
10769 | ||
10770 | ||
10771 | ||
10772 | ||
10773 | ||
10774 | ||
10775 | ||
10776 | ||
10777 | ||
10778 | ||
10779 | ||
10780 | ||
10781 | ||
10782 | ||
10783 | ||
10784 | ||
10785 | ||
10786 | ||
10787 | ||
10788 | ||
10789 | ||
10790 | ||
10791 | ||
10792 | ||
10793 | ||
10794 | ||
10795 | ||
10796 | ||
10797 | ||
10798 | ||
10799 | ||
10800 | ||
10801 | ||
10802 | ||
10803 | ||
10804 | ||
10805 | ||
10806 | ||
10807 | ||
10808 | ||
10809 | ||
10810 | ||
10811 | ||
10812 | ||
10813 | ||
10814 | ||
10815 | ||
10816 | ||
10817 | ||
10818 | ||
10819 | ||
10820 | ||
10821 | ||
10822 | ||
10823 | ||
10824 | ||
10825 | ||
10826 | ||
10827 | ||
10828 | ||
10829 | ||
10830 | ||
10831 | ||
10832 | ||
10833 | ||
10834 | ||
10835 | ||
10836 | ||
10837 | ||
10838 | ||
10839 | ||
10840 | ||
10841 | ||
10842 | ||
10843 | ||
10844 | ||
10845 | ||
10846 | ||
10847 | ||
10848 | ||
10849 | ||
10850 | ||
10851 | ||
10852 | ||
10853 | ||
10854 | ||
10855 | ||
10856 | ||
10857 | ||
10858 | ||
10859 | ||
10860 | ||
10861 | ||
10862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10863 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10864 | ||
10865 | if test "$GCC" = yes; then | |
10866 | case $host_os in | |
10867 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10868 | *) lt_awk_arg="/^libraries:/" ;; | |
10869 | esac | |
10870 | case $host_os in | |
10871 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10872 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10873 | esac | |
10874 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10875 | case $lt_search_path_spec in | |
10876 | *\;*) | |
10877 | # if the path contains ";" then we assume it to be the separator | |
10878 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10879 | # assumed that no part of a normal pathname contains ";" but that should | |
10880 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10881 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10882 | ;; | |
10883 | *) | |
10884 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10885 | ;; | |
10886 | esac | |
10887 | # Ok, now we have the path, separated by spaces, we can step through it | |
10888 | # and add multilib dir if necessary. | |
10889 | lt_tmp_lt_search_path_spec= | |
10890 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10891 | for lt_sys_path in $lt_search_path_spec; do | |
10892 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10893 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10894 | else | |
10895 | test -d "$lt_sys_path" && \ | |
10896 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10897 | fi | |
10898 | done | |
10899 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10900 | BEGIN {RS=" "; FS="/|\n";} { | |
10901 | lt_foo=""; | |
10902 | lt_count=0; | |
10903 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10904 | if ($lt_i != "" && $lt_i != ".") { | |
10905 | if ($lt_i == "..") { | |
10906 | lt_count++; | |
10907 | } else { | |
10908 | if (lt_count == 0) { | |
10909 | lt_foo="/" $lt_i lt_foo; | |
10910 | } else { | |
10911 | lt_count--; | |
10912 | } | |
10913 | } | |
10914 | } | |
10915 | } | |
10916 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10917 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10918 | }'` | |
10919 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10920 | # for these hosts. | |
10921 | case $host_os in | |
10922 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10923 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10924 | esac | |
10925 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10926 | else | |
10927 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10928 | fi | |
10929 | library_names_spec= | |
10930 | libname_spec='lib$name' | |
10931 | soname_spec= | |
10932 | shrext_cmds=".so" | |
10933 | postinstall_cmds= | |
10934 | postuninstall_cmds= | |
10935 | finish_cmds= | |
10936 | finish_eval= | |
10937 | shlibpath_var= | |
10938 | shlibpath_overrides_runpath=unknown | |
10939 | version_type=none | |
10940 | dynamic_linker="$host_os ld.so" | |
10941 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10942 | need_lib_prefix=unknown | |
10943 | hardcode_into_libs=no | |
10944 | ||
10945 | # when you set need_version to no, make sure it does not cause -set_version | |
10946 | # flags to be left without arguments | |
10947 | need_version=unknown | |
10948 | ||
10949 | case $host_os in | |
10950 | aix3*) | |
10951 | version_type=linux # correct to gnu/linux during the next big refactor | |
10952 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10953 | shlibpath_var=LIBPATH | |
10954 | ||
10955 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10956 | soname_spec='${libname}${release}${shared_ext}$major' | |
10957 | ;; | |
10958 | ||
10959 | aix[4-9]*) | |
10960 | version_type=linux # correct to gnu/linux during the next big refactor | |
10961 | need_lib_prefix=no | |
10962 | need_version=no | |
10963 | hardcode_into_libs=yes | |
10964 | if test "$host_cpu" = ia64; then | |
10965 | # AIX 5 supports IA64 | |
10966 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10967 | shlibpath_var=LD_LIBRARY_PATH | |
10968 | else | |
10969 | # With GCC up to 2.95.x, collect2 would create an import file | |
10970 | # for dependence libraries. The import file would start with | |
10971 | # the line `#! .'. This would cause the generated library to | |
10972 | # depend on `.', always an invalid library. This was fixed in | |
10973 | # development snapshots of GCC prior to 3.0. | |
10974 | case $host_os in | |
10975 | aix4 | aix4.[01] | aix4.[01].*) | |
10976 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10977 | echo ' yes ' | |
10978 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10979 | : | |
10980 | else | |
10981 | can_build_shared=no | |
10982 | fi | |
10983 | ;; | |
10984 | esac | |
10985 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10986 | # soname into executable. Probably we can add versioning support to | |
10987 | # collect2, so additional links can be useful in future. | |
10988 | if test "$aix_use_runtimelinking" = yes; then | |
10989 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10990 | # instead of lib<name>.a to let people know that these are not | |
10991 | # typical AIX shared libraries. | |
10992 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10993 | else | |
10994 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10995 | # and later when we are not doing run time linking. | |
10996 | library_names_spec='${libname}${release}.a $libname.a' | |
10997 | soname_spec='${libname}${release}${shared_ext}$major' | |
10998 | fi | |
10999 | shlibpath_var=LIBPATH | |
11000 | fi | |
11001 | ;; | |
11002 | ||
11003 | amigaos*) | |
11004 | case $host_cpu in | |
11005 | powerpc) | |
11006 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11007 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11008 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11009 | ;; | |
11010 | m68k) | |
11011 | library_names_spec='$libname.ixlibrary $libname.a' | |
11012 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11013 | 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' | |
11014 | ;; | |
11015 | esac | |
11016 | ;; | |
11017 | ||
11018 | beos*) | |
11019 | library_names_spec='${libname}${shared_ext}' | |
11020 | dynamic_linker="$host_os ld.so" | |
11021 | shlibpath_var=LIBRARY_PATH | |
11022 | ;; | |
11023 | ||
11024 | bsdi[45]*) | |
11025 | version_type=linux # correct to gnu/linux during the next big refactor | |
11026 | need_version=no | |
11027 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11028 | soname_spec='${libname}${release}${shared_ext}$major' | |
11029 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11030 | shlibpath_var=LD_LIBRARY_PATH | |
11031 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11032 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11033 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11034 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11035 | # libtool to hard-code these into programs | |
11036 | ;; | |
11037 | ||
11038 | cygwin* | mingw* | pw32* | cegcc*) | |
11039 | version_type=windows | |
11040 | shrext_cmds=".dll" | |
11041 | need_version=no | |
11042 | need_lib_prefix=no | |
11043 | ||
11044 | case $GCC,$cc_basename in | |
11045 | yes,*) | |
11046 | # gcc | |
11047 | library_names_spec='$libname.dll.a' | |
11048 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11049 | postinstall_cmds='base_file=`basename \${file}`~ | |
11050 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11051 | dldir=$destdir/`dirname \$dlpath`~ | |
11052 | test -d \$dldir || mkdir -p \$dldir~ | |
11053 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11054 | chmod a+x \$dldir/$dlname~ | |
11055 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11056 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11057 | fi' | |
11058 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11059 | dlpath=$dir/\$dldll~ | |
11060 | $RM \$dlpath' | |
11061 | shlibpath_overrides_runpath=yes | |
11062 | ||
11063 | case $host_os in | |
11064 | cygwin*) | |
11065 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11066 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11067 | ||
11068 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
11069 | ;; | |
11070 | mingw* | cegcc*) | |
11071 | # MinGW DLLs use traditional 'lib' prefix | |
11072 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11073 | ;; | |
11074 | pw32*) | |
11075 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11076 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11077 | ;; | |
11078 | esac | |
11079 | dynamic_linker='Win32 ld.exe' | |
11080 | ;; | |
11081 | ||
11082 | *,cl*) | |
11083 | # Native MSVC | |
11084 | libname_spec='$name' | |
11085 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11086 | library_names_spec='${libname}.dll.lib' | |
11087 | ||
11088 | case $build_os in | |
11089 | mingw*) | |
11090 | sys_lib_search_path_spec= | |
11091 | lt_save_ifs=$IFS | |
11092 | IFS=';' | |
11093 | for lt_path in $LIB | |
11094 | do | |
11095 | IFS=$lt_save_ifs | |
11096 | # Let DOS variable expansion print the short 8.3 style file name. | |
11097 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11098 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11099 | done | |
11100 | IFS=$lt_save_ifs | |
11101 | # Convert to MSYS style. | |
11102 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11103 | ;; | |
11104 | cygwin*) | |
11105 | # Convert to unix form, then to dos form, then back to unix form | |
11106 | # but this time dos style (no spaces!) so that the unix form looks | |
11107 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11108 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11109 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11110 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11111 | ;; | |
11112 | *) | |
11113 | sys_lib_search_path_spec="$LIB" | |
11114 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11115 | # It is most probably a Windows format PATH. | |
11116 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11117 | else | |
11118 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11119 | fi | |
11120 | # FIXME: find the short name or the path components, as spaces are | |
11121 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11122 | ;; | |
11123 | esac | |
11124 | ||
11125 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11126 | postinstall_cmds='base_file=`basename \${file}`~ | |
11127 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11128 | dldir=$destdir/`dirname \$dlpath`~ | |
11129 | test -d \$dldir || mkdir -p \$dldir~ | |
11130 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11131 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11132 | dlpath=$dir/\$dldll~ | |
11133 | $RM \$dlpath' | |
11134 | shlibpath_overrides_runpath=yes | |
11135 | dynamic_linker='Win32 link.exe' | |
11136 | ;; | |
11137 | ||
11138 | *) | |
11139 | # Assume MSVC wrapper | |
11140 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11141 | dynamic_linker='Win32 ld.exe' | |
11142 | ;; | |
11143 | esac | |
11144 | # FIXME: first we should search . and the directory the executable is in | |
11145 | shlibpath_var=PATH | |
11146 | ;; | |
11147 | ||
11148 | darwin* | rhapsody*) | |
11149 | dynamic_linker="$host_os dyld" | |
11150 | version_type=darwin | |
11151 | need_lib_prefix=no | |
11152 | need_version=no | |
11153 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11154 | soname_spec='${libname}${release}${major}$shared_ext' | |
11155 | shlibpath_overrides_runpath=yes | |
11156 | shlibpath_var=DYLD_LIBRARY_PATH | |
11157 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11158 | ||
11159 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11160 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11161 | ;; | |
11162 | ||
11163 | dgux*) | |
11164 | version_type=linux # correct to gnu/linux during the next big refactor | |
11165 | need_lib_prefix=no | |
11166 | need_version=no | |
11167 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11168 | soname_spec='${libname}${release}${shared_ext}$major' | |
11169 | shlibpath_var=LD_LIBRARY_PATH | |
11170 | ;; | |
11171 | ||
11172 | freebsd* | dragonfly*) | |
11173 | # DragonFly does not have aout. When/if they implement a new | |
11174 | # versioning mechanism, adjust this. | |
11175 | if test -x /usr/bin/objformat; then | |
11176 | objformat=`/usr/bin/objformat` | |
11177 | else | |
11178 | case $host_os in | |
11179 | freebsd[23].*) objformat=aout ;; | |
11180 | *) objformat=elf ;; | |
11181 | esac | |
11182 | fi | |
11183 | version_type=freebsd-$objformat | |
11184 | case $version_type in | |
11185 | freebsd-elf*) | |
11186 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11187 | need_version=no | |
11188 | need_lib_prefix=no | |
11189 | ;; | |
11190 | freebsd-*) | |
11191 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11192 | need_version=yes | |
11193 | ;; | |
11194 | esac | |
11195 | shlibpath_var=LD_LIBRARY_PATH | |
11196 | case $host_os in | |
11197 | freebsd2.*) | |
11198 | shlibpath_overrides_runpath=yes | |
11199 | ;; | |
11200 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11201 | shlibpath_overrides_runpath=yes | |
11202 | hardcode_into_libs=yes | |
11203 | ;; | |
11204 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11205 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11206 | shlibpath_overrides_runpath=no | |
11207 | hardcode_into_libs=yes | |
11208 | ;; | |
11209 | *) # from 4.6 on, and DragonFly | |
11210 | shlibpath_overrides_runpath=yes | |
11211 | hardcode_into_libs=yes | |
11212 | ;; | |
11213 | esac | |
11214 | ;; | |
11215 | ||
11216 | haiku*) | |
11217 | version_type=linux # correct to gnu/linux during the next big refactor | |
11218 | need_lib_prefix=no | |
11219 | need_version=no | |
11220 | dynamic_linker="$host_os runtime_loader" | |
11221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11222 | soname_spec='${libname}${release}${shared_ext}$major' | |
11223 | shlibpath_var=LIBRARY_PATH | |
11224 | shlibpath_overrides_runpath=yes | |
11225 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11226 | hardcode_into_libs=yes | |
11227 | ;; | |
11228 | ||
11229 | hpux9* | hpux10* | hpux11*) | |
11230 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11231 | # link against other versions. | |
11232 | version_type=sunos | |
11233 | need_lib_prefix=no | |
11234 | need_version=no | |
11235 | case $host_cpu in | |
11236 | ia64*) | |
11237 | shrext_cmds='.so' | |
11238 | hardcode_into_libs=yes | |
11239 | dynamic_linker="$host_os dld.so" | |
11240 | shlibpath_var=LD_LIBRARY_PATH | |
11241 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11242 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11243 | soname_spec='${libname}${release}${shared_ext}$major' | |
11244 | if test "X$HPUX_IA64_MODE" = X32; then | |
11245 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11246 | else | |
11247 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11248 | fi | |
11249 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11250 | ;; | |
11251 | hppa*64*) | |
11252 | shrext_cmds='.sl' | |
11253 | hardcode_into_libs=yes | |
11254 | dynamic_linker="$host_os dld.sl" | |
11255 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11256 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11257 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11258 | soname_spec='${libname}${release}${shared_ext}$major' | |
11259 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11260 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11261 | ;; | |
11262 | *) | |
11263 | shrext_cmds='.sl' | |
11264 | dynamic_linker="$host_os dld.sl" | |
11265 | shlibpath_var=SHLIB_PATH | |
11266 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11267 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11268 | soname_spec='${libname}${release}${shared_ext}$major' | |
11269 | ;; | |
11270 | esac | |
11271 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11272 | postinstall_cmds='chmod 555 $lib' | |
11273 | # or fails outright, so override atomically: | |
11274 | install_override_mode=555 | |
11275 | ;; | |
11276 | ||
11277 | interix[3-9]*) | |
11278 | version_type=linux # correct to gnu/linux during the next big refactor | |
11279 | need_lib_prefix=no | |
11280 | need_version=no | |
11281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11282 | soname_spec='${libname}${release}${shared_ext}$major' | |
11283 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11284 | shlibpath_var=LD_LIBRARY_PATH | |
11285 | shlibpath_overrides_runpath=no | |
11286 | hardcode_into_libs=yes | |
11287 | ;; | |
11288 | ||
11289 | irix5* | irix6* | nonstopux*) | |
11290 | case $host_os in | |
11291 | nonstopux*) version_type=nonstopux ;; | |
11292 | *) | |
11293 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11294 | version_type=linux # correct to gnu/linux during the next big refactor | |
11295 | else | |
11296 | version_type=irix | |
11297 | fi ;; | |
11298 | esac | |
11299 | need_lib_prefix=no | |
11300 | need_version=no | |
11301 | soname_spec='${libname}${release}${shared_ext}$major' | |
11302 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11303 | case $host_os in | |
11304 | irix5* | nonstopux*) | |
11305 | libsuff= shlibsuff= | |
11306 | ;; | |
11307 | *) | |
11308 | case $LD in # libtool.m4 will add one of these switches to LD | |
11309 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11310 | libsuff= shlibsuff= libmagic=32-bit;; | |
11311 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11312 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11313 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11314 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11315 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11316 | esac | |
11317 | ;; | |
11318 | esac | |
11319 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11320 | shlibpath_overrides_runpath=no | |
11321 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11322 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11323 | hardcode_into_libs=yes | |
11324 | ;; | |
11325 | ||
11326 | # No shared lib support for Linux oldld, aout, or coff. | |
11327 | linux*oldld* | linux*aout* | linux*coff*) | |
11328 | dynamic_linker=no | |
11329 | ;; | |
11330 | ||
11331 | # This must be glibc/ELF. | |
11332 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11333 | version_type=linux # correct to gnu/linux during the next big refactor | |
11334 | need_lib_prefix=no | |
11335 | need_version=no | |
11336 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11337 | soname_spec='${libname}${release}${shared_ext}$major' | |
11338 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11339 | shlibpath_var=LD_LIBRARY_PATH | |
11340 | shlibpath_overrides_runpath=no | |
11341 | ||
11342 | # Some binutils ld are patched to set DT_RUNPATH | |
11343 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
c52df125 AC |
11344 | $as_echo_n "(cached) " >&6 |
11345 | else | |
eec2776c AJ |
11346 | lt_cv_shlibpath_overrides_runpath=no |
11347 | save_LDFLAGS=$LDFLAGS | |
11348 | save_libdir=$libdir | |
11349 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11350 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 AC |
11352 | /* end confdefs.h. */ |
11353 | ||
c52df125 AC |
11354 | int |
11355 | main () | |
11356 | { | |
eec2776c | 11357 | |
c52df125 AC |
11358 | ; |
11359 | return 0; | |
11360 | } | |
11361 | _ACEOF | |
11362 | if ac_fn_c_try_link "$LINENO"; then : | |
eec2776c AJ |
11363 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
11364 | lt_cv_shlibpath_overrides_runpath=yes | |
11365 | fi | |
c52df125 AC |
11366 | fi |
11367 | rm -f core conftest.err conftest.$ac_objext \ | |
11368 | conftest$ac_exeext conftest.$ac_ext | |
eec2776c AJ |
11369 | LDFLAGS=$save_LDFLAGS |
11370 | libdir=$save_libdir | |
c52df125 AC |
11371 | |
11372 | fi | |
11373 | ||
eec2776c | 11374 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
c52df125 | 11375 | |
eec2776c AJ |
11376 | # This implies no fast_install, which is unacceptable. |
11377 | # Some rework will be needed to allow for fast_install | |
11378 | # before this can be enabled. | |
11379 | hardcode_into_libs=yes | |
c52df125 | 11380 | |
eec2776c AJ |
11381 | # Append ld.so.conf contents to the search path |
11382 | if test -f /etc/ld.so.conf; then | |
11383 | 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' ' '` | |
11384 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11385 | fi | |
c52df125 | 11386 | |
eec2776c AJ |
11387 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11388 | # powerpc, because MkLinux only supported shared libraries with the | |
11389 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11390 | # most powerpc-linux boxes support dynamic linking these days and | |
11391 | # people can always --disable-shared, the test was removed, and we | |
11392 | # assume the GNU/Linux dynamic linker is in use. | |
11393 | dynamic_linker='GNU/Linux ld.so' | |
11394 | ;; | |
c52df125 | 11395 | |
eec2776c AJ |
11396 | netbsdelf*-gnu) |
11397 | version_type=linux | |
11398 | need_lib_prefix=no | |
11399 | need_version=no | |
11400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11401 | soname_spec='${libname}${release}${shared_ext}$major' | |
11402 | shlibpath_var=LD_LIBRARY_PATH | |
11403 | shlibpath_overrides_runpath=no | |
11404 | hardcode_into_libs=yes | |
11405 | dynamic_linker='NetBSD ld.elf_so' | |
11406 | ;; | |
c52df125 | 11407 | |
eec2776c AJ |
11408 | netbsd*) |
11409 | version_type=sunos | |
11410 | need_lib_prefix=no | |
11411 | need_version=no | |
11412 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11414 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11415 | dynamic_linker='NetBSD (a.out) ld.so' | |
11416 | else | |
11417 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11418 | soname_spec='${libname}${release}${shared_ext}$major' | |
11419 | dynamic_linker='NetBSD ld.elf_so' | |
11420 | fi | |
11421 | shlibpath_var=LD_LIBRARY_PATH | |
11422 | shlibpath_overrides_runpath=yes | |
11423 | hardcode_into_libs=yes | |
11424 | ;; | |
c52df125 | 11425 | |
eec2776c AJ |
11426 | newsos6) |
11427 | version_type=linux # correct to gnu/linux during the next big refactor | |
11428 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11429 | shlibpath_var=LD_LIBRARY_PATH | |
11430 | shlibpath_overrides_runpath=yes | |
11431 | ;; | |
c52df125 | 11432 | |
eec2776c AJ |
11433 | *nto* | *qnx*) |
11434 | version_type=qnx | |
11435 | need_lib_prefix=no | |
11436 | need_version=no | |
11437 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11438 | soname_spec='${libname}${release}${shared_ext}$major' | |
11439 | shlibpath_var=LD_LIBRARY_PATH | |
11440 | shlibpath_overrides_runpath=no | |
11441 | hardcode_into_libs=yes | |
11442 | dynamic_linker='ldqnx.so' | |
11443 | ;; | |
c52df125 | 11444 | |
eec2776c AJ |
11445 | openbsd*) |
11446 | version_type=sunos | |
11447 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11448 | need_lib_prefix=no | |
11449 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11450 | case $host_os in | |
11451 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11452 | *) need_version=no ;; | |
c52df125 | 11453 | esac |
eec2776c AJ |
11454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11455 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11456 | shlibpath_var=LD_LIBRARY_PATH | |
11457 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11458 | case $host_os in | |
11459 | openbsd2.[89] | openbsd2.[89].*) | |
11460 | shlibpath_overrides_runpath=no | |
11461 | ;; | |
11462 | *) | |
11463 | shlibpath_overrides_runpath=yes | |
11464 | ;; | |
11465 | esac | |
c52df125 | 11466 | else |
eec2776c | 11467 | shlibpath_overrides_runpath=yes |
c52df125 | 11468 | fi |
eec2776c | 11469 | ;; |
c52df125 | 11470 | |
eec2776c AJ |
11471 | os2*) |
11472 | libname_spec='$name' | |
11473 | shrext_cmds=".dll" | |
11474 | need_lib_prefix=no | |
11475 | library_names_spec='$libname${shared_ext} $libname.a' | |
11476 | dynamic_linker='OS/2 ld.exe' | |
11477 | shlibpath_var=LIBPATH | |
11478 | ;; | |
c52df125 | 11479 | |
eec2776c AJ |
11480 | osf3* | osf4* | osf5*) |
11481 | version_type=osf | |
11482 | need_lib_prefix=no | |
11483 | need_version=no | |
11484 | soname_spec='${libname}${release}${shared_ext}$major' | |
11485 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11486 | shlibpath_var=LD_LIBRARY_PATH | |
11487 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11488 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11489 | ;; | |
c52df125 | 11490 | |
eec2776c AJ |
11491 | rdos*) |
11492 | dynamic_linker=no | |
11493 | ;; | |
c52df125 | 11494 | |
eec2776c AJ |
11495 | solaris*) |
11496 | version_type=linux # correct to gnu/linux during the next big refactor | |
11497 | need_lib_prefix=no | |
11498 | need_version=no | |
11499 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11500 | soname_spec='${libname}${release}${shared_ext}$major' | |
11501 | shlibpath_var=LD_LIBRARY_PATH | |
11502 | shlibpath_overrides_runpath=yes | |
11503 | hardcode_into_libs=yes | |
11504 | # ldd complains unless libraries are executable | |
11505 | postinstall_cmds='chmod +x $lib' | |
11506 | ;; | |
c52df125 | 11507 | |
eec2776c AJ |
11508 | sunos4*) |
11509 | version_type=sunos | |
11510 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11511 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11512 | shlibpath_var=LD_LIBRARY_PATH | |
11513 | shlibpath_overrides_runpath=yes | |
11514 | if test "$with_gnu_ld" = yes; then | |
11515 | need_lib_prefix=no | |
11516 | fi | |
11517 | need_version=yes | |
11518 | ;; | |
c52df125 | 11519 | |
eec2776c AJ |
11520 | sysv4 | sysv4.3*) |
11521 | version_type=linux # correct to gnu/linux during the next big refactor | |
11522 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11523 | soname_spec='${libname}${release}${shared_ext}$major' | |
11524 | shlibpath_var=LD_LIBRARY_PATH | |
11525 | case $host_vendor in | |
11526 | sni) | |
11527 | shlibpath_overrides_runpath=no | |
11528 | need_lib_prefix=no | |
11529 | runpath_var=LD_RUN_PATH | |
11530 | ;; | |
11531 | siemens) | |
11532 | need_lib_prefix=no | |
11533 | ;; | |
11534 | motorola) | |
11535 | need_lib_prefix=no | |
11536 | need_version=no | |
11537 | shlibpath_overrides_runpath=no | |
11538 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11539 | ;; | |
11540 | esac | |
11541 | ;; | |
c52df125 | 11542 | |
eec2776c AJ |
11543 | sysv4*MP*) |
11544 | if test -d /usr/nec ;then | |
11545 | version_type=linux # correct to gnu/linux during the next big refactor | |
11546 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11547 | soname_spec='$libname${shared_ext}.$major' | |
11548 | shlibpath_var=LD_LIBRARY_PATH | |
11549 | fi | |
11550 | ;; | |
c52df125 | 11551 | |
eec2776c AJ |
11552 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11553 | version_type=freebsd-elf | |
11554 | need_lib_prefix=no | |
11555 | need_version=no | |
11556 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11557 | soname_spec='${libname}${release}${shared_ext}$major' | |
11558 | shlibpath_var=LD_LIBRARY_PATH | |
11559 | shlibpath_overrides_runpath=yes | |
11560 | hardcode_into_libs=yes | |
11561 | if test "$with_gnu_ld" = yes; then | |
11562 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
c52df125 | 11563 | else |
eec2776c AJ |
11564 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
11565 | case $host_os in | |
11566 | sco3.2v5*) | |
11567 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11568 | ;; | |
c52df125 | 11569 | esac |
c52df125 | 11570 | fi |
eec2776c AJ |
11571 | sys_lib_dlsearch_path_spec='/usr/lib' |
11572 | ;; | |
c52df125 | 11573 | |
eec2776c AJ |
11574 | tpf*) |
11575 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11576 | version_type=linux # correct to gnu/linux during the next big refactor | |
11577 | need_lib_prefix=no | |
11578 | need_version=no | |
11579 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11580 | shlibpath_var=LD_LIBRARY_PATH | |
11581 | shlibpath_overrides_runpath=no | |
11582 | hardcode_into_libs=yes | |
11583 | ;; | |
c52df125 | 11584 | |
eec2776c AJ |
11585 | uts4*) |
11586 | version_type=linux # correct to gnu/linux during the next big refactor | |
11587 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11588 | soname_spec='${libname}${release}${shared_ext}$major' | |
11589 | shlibpath_var=LD_LIBRARY_PATH | |
11590 | ;; | |
c52df125 | 11591 | |
eec2776c AJ |
11592 | *) |
11593 | dynamic_linker=no | |
11594 | ;; | |
11595 | esac | |
11596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11597 | $as_echo "$dynamic_linker" >&6; } | |
11598 | test "$dynamic_linker" = no && can_build_shared=no | |
c52df125 | 11599 | |
eec2776c AJ |
11600 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11601 | if test "$GCC" = yes; then | |
11602 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11603 | fi | |
c52df125 | 11604 | |
eec2776c AJ |
11605 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11606 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11607 | fi | |
11608 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11609 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11610 | fi | |
c52df125 | 11611 | |
c52df125 | 11612 | |
c52df125 | 11613 | |
c52df125 | 11614 | |
c52df125 | 11615 | |
c52df125 | 11616 | |
c52df125 AC |
11617 | |
11618 | ||
c52df125 | 11619 | |
c52df125 | 11620 | |
c52df125 | 11621 | |
c52df125 AC |
11622 | |
11623 | ||
11624 | ||
11625 | ||
11626 | ||
11627 | ||
11628 | ||
11629 | ||
11630 | ||
11631 | ||
11632 | ||
11633 | ||
11634 | ||
11635 | ||
11636 | ||
11637 | ||
11638 | ||
c52df125 AC |
11639 | |
11640 | ||
11641 | ||
11642 | ||
11643 | ||
11644 | ||
11645 | ||
11646 | ||
11647 | ||
11648 | ||
11649 | ||
11650 | ||
c52df125 | 11651 | |
c52df125 | 11652 | |
c52df125 | 11653 | |
c52df125 | 11654 | |
c52df125 AC |
11655 | |
11656 | ||
11657 | ||
11658 | ||
c52df125 | 11659 | |
c52df125 AC |
11660 | |
11661 | ||
11662 | ||
11663 | ||
11664 | ||
11665 | ||
11666 | ||
11667 | ||
11668 | ||
11669 | ||
11670 | ||
11671 | ||
11672 | ||
11673 | ||
11674 | ||
c52df125 AC |
11675 | |
11676 | ||
11677 | ||
11678 | ||
c52df125 AC |
11679 | |
11680 | ||
11681 | ||
11682 | ||
11683 | ||
11684 | ||
11685 | ||
11686 | ||
11687 | ||
11688 | ||
c52df125 | 11689 | |
c52df125 | 11690 | |
c52df125 | 11691 | |
c52df125 | 11692 | |
c52df125 | 11693 | |
c52df125 | 11694 | |
c52df125 | 11695 | |
c52df125 | 11696 | |
c52df125 | 11697 | |
c52df125 | 11698 | |
eec2776c AJ |
11699 | |
11700 | ||
11701 | ||
11702 | ||
11703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11704 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11705 | hardcode_action= | |
11706 | if test -n "$hardcode_libdir_flag_spec" || | |
11707 | test -n "$runpath_var" || | |
11708 | test "X$hardcode_automatic" = "Xyes" ; then | |
11709 | ||
11710 | # We can hardcode non-existent directories. | |
11711 | if test "$hardcode_direct" != no && | |
11712 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11713 | # have to relink, otherwise we might link with an installed library | |
11714 | # when we should be linking with a yet-to-be-installed one | |
11715 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11716 | test "$hardcode_minus_L" != no; then | |
11717 | # Linking always hardcodes the temporary library directory. | |
11718 | hardcode_action=relink | |
11719 | else | |
11720 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11721 | hardcode_action=immediate | |
11722 | fi | |
c52df125 | 11723 | else |
eec2776c AJ |
11724 | # We cannot hardcode anything, or else we can only hardcode existing |
11725 | # directories. | |
11726 | hardcode_action=unsupported | |
c52df125 | 11727 | fi |
eec2776c AJ |
11728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11729 | $as_echo "$hardcode_action" >&6; } | |
c52df125 | 11730 | |
eec2776c AJ |
11731 | if test "$hardcode_action" = relink || |
11732 | test "$inherit_rpath" = yes; then | |
11733 | # Fast installation is not supported | |
11734 | enable_fast_install=no | |
11735 | elif test "$shlibpath_overrides_runpath" = yes || | |
11736 | test "$enable_shared" = no; then | |
11737 | # Fast installation is not necessary | |
11738 | enable_fast_install=needless | |
c52df125 AC |
11739 | fi |
11740 | ||
11741 | ||
c52df125 AC |
11742 | |
11743 | ||
c52df125 AC |
11744 | |
11745 | ||
eec2776c AJ |
11746 | if test "x$enable_dlopen" != xyes; then |
11747 | enable_dlopen=unknown | |
11748 | enable_dlopen_self=unknown | |
11749 | enable_dlopen_self_static=unknown | |
11750 | else | |
11751 | lt_cv_dlopen=no | |
11752 | lt_cv_dlopen_libs= | |
11753 | ||
11754 | case $host_os in | |
11755 | beos*) | |
11756 | lt_cv_dlopen="load_add_on" | |
11757 | lt_cv_dlopen_libs= | |
11758 | lt_cv_dlopen_self=yes | |
11759 | ;; | |
11760 | ||
11761 | mingw* | pw32* | cegcc*) | |
11762 | lt_cv_dlopen="LoadLibrary" | |
11763 | lt_cv_dlopen_libs= | |
11764 | ;; | |
11765 | ||
11766 | cygwin*) | |
11767 | lt_cv_dlopen="dlopen" | |
11768 | lt_cv_dlopen_libs= | |
11769 | ;; | |
11770 | ||
11771 | darwin*) | |
11772 | # if libdl is installed we need to link against it | |
11773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11774 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11775 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
c52df125 AC |
11776 | $as_echo_n "(cached) " >&6 |
11777 | else | |
eec2776c AJ |
11778 | ac_check_lib_save_LIBS=$LIBS |
11779 | LIBS="-ldl $LIBS" | |
c52df125 AC |
11780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11781 | /* end confdefs.h. */ | |
11782 | ||
11783 | /* Override any GCC internal prototype to avoid an error. | |
11784 | Use char because int might match the return type of a GCC | |
11785 | builtin and then its argument prototype would still apply. */ | |
11786 | #ifdef __cplusplus | |
11787 | extern "C" | |
11788 | #endif | |
11789 | char dlopen (); | |
11790 | int | |
11791 | main () | |
11792 | { | |
11793 | return dlopen (); | |
11794 | ; | |
11795 | return 0; | |
11796 | } | |
11797 | _ACEOF | |
eec2776c AJ |
11798 | if ac_fn_c_try_link "$LINENO"; then : |
11799 | ac_cv_lib_dl_dlopen=yes | |
11800 | else | |
11801 | ac_cv_lib_dl_dlopen=no | |
c52df125 AC |
11802 | fi |
11803 | rm -f core conftest.err conftest.$ac_objext \ | |
eec2776c AJ |
11804 | conftest$ac_exeext conftest.$ac_ext |
11805 | LIBS=$ac_check_lib_save_LIBS | |
c52df125 | 11806 | fi |
eec2776c AJ |
11807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11808 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11809 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11810 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
c52df125 | 11811 | else |
eec2776c AJ |
11812 | |
11813 | lt_cv_dlopen="dyld" | |
11814 | lt_cv_dlopen_libs= | |
11815 | lt_cv_dlopen_self=yes | |
11816 | ||
c52df125 | 11817 | fi |
c52df125 | 11818 | |
eec2776c | 11819 | ;; |
c52df125 | 11820 | |
eec2776c AJ |
11821 | *) |
11822 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11823 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
11824 | lt_cv_dlopen="shl_load" | |
c52df125 | 11825 | else |
eec2776c AJ |
11826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11827 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11828 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11829 | $as_echo_n "(cached) " >&6 | |
11830 | else | |
11831 | ac_check_lib_save_LIBS=$LIBS | |
11832 | LIBS="-ldld $LIBS" | |
11833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 11834 | /* end confdefs.h. */ |
c52df125 | 11835 | |
eec2776c AJ |
11836 | /* Override any GCC internal prototype to avoid an error. |
11837 | Use char because int might match the return type of a GCC | |
11838 | builtin and then its argument prototype would still apply. */ | |
11839 | #ifdef __cplusplus | |
11840 | extern "C" | |
11841 | #endif | |
11842 | char shl_load (); | |
c52df125 AC |
11843 | int |
11844 | main () | |
11845 | { | |
eec2776c | 11846 | return shl_load (); |
c52df125 AC |
11847 | ; |
11848 | return 0; | |
eec2776c AJ |
11849 | } |
11850 | _ACEOF | |
11851 | if ac_fn_c_try_link "$LINENO"; then : | |
11852 | ac_cv_lib_dld_shl_load=yes | |
c52df125 | 11853 | else |
eec2776c AJ |
11854 | ac_cv_lib_dld_shl_load=no |
11855 | fi | |
11856 | rm -f core conftest.err conftest.$ac_objext \ | |
11857 | conftest$ac_exeext conftest.$ac_ext | |
11858 | LIBS=$ac_check_lib_save_LIBS | |
11859 | fi | |
11860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11861 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11862 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11863 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
11864 | else | |
11865 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11866 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
11867 | lt_cv_dlopen="dlopen" | |
11868 | else | |
11869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11870 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11871 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
c52df125 AC |
11872 | $as_echo_n "(cached) " >&6 |
11873 | else | |
11874 | ac_check_lib_save_LIBS=$LIBS | |
eec2776c | 11875 | LIBS="-ldl $LIBS" |
c52df125 AC |
11876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11877 | /* end confdefs.h. */ | |
11878 | ||
11879 | /* Override any GCC internal prototype to avoid an error. | |
11880 | Use char because int might match the return type of a GCC | |
11881 | builtin and then its argument prototype would still apply. */ | |
11882 | #ifdef __cplusplus | |
11883 | extern "C" | |
11884 | #endif | |
11885 | char dlopen (); | |
11886 | int | |
11887 | main () | |
11888 | { | |
11889 | return dlopen (); | |
11890 | ; | |
11891 | return 0; | |
11892 | } | |
11893 | _ACEOF | |
11894 | if ac_fn_c_try_link "$LINENO"; then : | |
eec2776c | 11895 | ac_cv_lib_dl_dlopen=yes |
c52df125 | 11896 | else |
eec2776c | 11897 | ac_cv_lib_dl_dlopen=no |
7083c021 | 11898 | fi |
c52df125 AC |
11899 | rm -f core conftest.err conftest.$ac_objext \ |
11900 | conftest$ac_exeext conftest.$ac_ext | |
11901 | LIBS=$ac_check_lib_save_LIBS | |
11902 | fi | |
eec2776c AJ |
11903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11904 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11905 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11906 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
c52df125 | 11907 | else |
eec2776c AJ |
11908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11909 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11910 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
c52df125 AC |
11911 | $as_echo_n "(cached) " >&6 |
11912 | else | |
11913 | ac_check_lib_save_LIBS=$LIBS | |
eec2776c | 11914 | LIBS="-lsvld $LIBS" |
7083c021 AC |
11915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11916 | /* end confdefs.h. */ | |
6fb6bd15 | 11917 | |
c52df125 AC |
11918 | /* Override any GCC internal prototype to avoid an error. |
11919 | Use char because int might match the return type of a GCC | |
11920 | builtin and then its argument prototype would still apply. */ | |
11921 | #ifdef __cplusplus | |
11922 | extern "C" | |
11923 | #endif | |
eec2776c | 11924 | char dlopen (); |
212380e3 | 11925 | int |
7083c021 | 11926 | main () |
212380e3 | 11927 | { |
eec2776c | 11928 | return dlopen (); |
7083c021 AC |
11929 | ; |
11930 | return 0; | |
212380e3 AC |
11931 | } |
11932 | _ACEOF | |
c52df125 | 11933 | if ac_fn_c_try_link "$LINENO"; then : |
eec2776c | 11934 | ac_cv_lib_svld_dlopen=yes |
c52df125 | 11935 | else |
eec2776c | 11936 | ac_cv_lib_svld_dlopen=no |
c52df125 AC |
11937 | fi |
11938 | rm -f core conftest.err conftest.$ac_objext \ | |
11939 | conftest$ac_exeext conftest.$ac_ext | |
11940 | LIBS=$ac_check_lib_save_LIBS | |
11941 | fi | |
eec2776c AJ |
11942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11943 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11944 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11945 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
6fb6bd15 | 11946 | else |
eec2776c | 11947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
c52df125 AC |
11948 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
11949 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11950 | $as_echo_n "(cached) " >&6 | |
11951 | else | |
11952 | ac_check_lib_save_LIBS=$LIBS | |
11953 | LIBS="-ldld $LIBS" | |
6fb6bd15 AC |
11954 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11955 | /* end confdefs.h. */ | |
c52df125 AC |
11956 | |
11957 | /* Override any GCC internal prototype to avoid an error. | |
11958 | Use char because int might match the return type of a GCC | |
11959 | builtin and then its argument prototype would still apply. */ | |
11960 | #ifdef __cplusplus | |
11961 | extern "C" | |
11962 | #endif | |
11963 | char dld_link (); | |
6fb6bd15 AC |
11964 | int |
11965 | main () | |
11966 | { | |
c52df125 | 11967 | return dld_link (); |
6fb6bd15 AC |
11968 | ; |
11969 | return 0; | |
11970 | } | |
11971 | _ACEOF | |
c52df125 AC |
11972 | if ac_fn_c_try_link "$LINENO"; then : |
11973 | ac_cv_lib_dld_dld_link=yes | |
11974 | else | |
11975 | ac_cv_lib_dld_dld_link=no | |
11976 | fi | |
11977 | rm -f core conftest.err conftest.$ac_objext \ | |
11978 | conftest$ac_exeext conftest.$ac_ext | |
11979 | LIBS=$ac_check_lib_save_LIBS | |
11980 | fi | |
11981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11982 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11983 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
eec2776c AJ |
11984 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
11985 | fi | |
c52df125 | 11986 | |
c52df125 | 11987 | |
c52df125 AC |
11988 | fi |
11989 | ||
11990 | ||
eec2776c | 11991 | fi |
c52df125 AC |
11992 | |
11993 | ||
eec2776c | 11994 | fi |
c52df125 | 11995 | |
c52df125 AC |
11996 | |
11997 | fi | |
11998 | ||
11999 | ||
eec2776c AJ |
12000 | fi |
12001 | ||
12002 | ;; | |
12003 | esac | |
c52df125 | 12004 | |
eec2776c AJ |
12005 | if test "x$lt_cv_dlopen" != xno; then |
12006 | enable_dlopen=yes | |
12007 | else | |
12008 | enable_dlopen=no | |
12009 | fi | |
c52df125 | 12010 | |
eec2776c AJ |
12011 | case $lt_cv_dlopen in |
12012 | dlopen) | |
12013 | save_CPPFLAGS="$CPPFLAGS" | |
12014 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12015 | ||
12016 | save_LDFLAGS="$LDFLAGS" | |
12017 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12018 | ||
12019 | save_LIBS="$LIBS" | |
12020 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12021 | ||
12022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
12023 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12024 | if ${lt_cv_dlopen_self+:} false; then : | |
12025 | $as_echo_n "(cached) " >&6 | |
12026 | else | |
12027 | if test "$cross_compiling" = yes; then : | |
12028 | lt_cv_dlopen_self=cross | |
12029 | else | |
12030 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12031 | lt_status=$lt_dlunknown | |
12032 | cat > conftest.$ac_ext <<_LT_EOF | |
12033 | #line $LINENO "configure" | |
12034 | #include "confdefs.h" | |
12035 | ||
12036 | #if HAVE_DLFCN_H | |
12037 | #include <dlfcn.h> | |
12038 | #endif | |
12039 | ||
12040 | #include <stdio.h> | |
12041 | ||
12042 | #ifdef RTLD_GLOBAL | |
12043 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12044 | #else | |
12045 | # ifdef DL_GLOBAL | |
12046 | # define LT_DLGLOBAL DL_GLOBAL | |
12047 | # else | |
12048 | # define LT_DLGLOBAL 0 | |
12049 | # endif | |
12050 | #endif | |
12051 | ||
12052 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12053 | find out it does not work in some platform. */ | |
12054 | #ifndef LT_DLLAZY_OR_NOW | |
12055 | # ifdef RTLD_LAZY | |
12056 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12057 | # else | |
12058 | # ifdef DL_LAZY | |
12059 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12060 | # else | |
12061 | # ifdef RTLD_NOW | |
12062 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12063 | # else | |
12064 | # ifdef DL_NOW | |
12065 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12066 | # else | |
12067 | # define LT_DLLAZY_OR_NOW 0 | |
12068 | # endif | |
12069 | # endif | |
12070 | # endif | |
12071 | # endif | |
12072 | #endif | |
12073 | ||
12074 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12075 | correspondingly for the symbols needed. */ | |
12076 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12077 | int fnord () __attribute__((visibility("default"))); | |
12078 | #endif | |
12079 | ||
12080 | int fnord () { return 42; } | |
12081 | int main () | |
12082 | { | |
12083 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12084 | int status = $lt_dlunknown; | |
c52df125 | 12085 | |
eec2776c AJ |
12086 | if (self) |
12087 | { | |
12088 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12089 | else | |
12090 | { | |
12091 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12092 | else puts (dlerror ()); | |
12093 | } | |
12094 | /* dlclose (self); */ | |
12095 | } | |
12096 | else | |
12097 | puts (dlerror ()); | |
c52df125 | 12098 | |
eec2776c AJ |
12099 | return status; |
12100 | } | |
c52df125 | 12101 | _LT_EOF |
eec2776c AJ |
12102 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
12103 | (eval $ac_link) 2>&5 | |
6fb6bd15 AC |
12104 | ac_status=$? |
12105 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
12106 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
12107 | (./conftest; exit; ) >&5 2>/dev/null | |
12108 | lt_status=$? | |
12109 | case x$lt_status in | |
12110 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12111 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12112 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12113 | esac | |
12114 | else : | |
12115 | # compilation failed | |
12116 | lt_cv_dlopen_self=no | |
6fb6bd15 AC |
12117 | fi |
12118 | fi | |
eec2776c | 12119 | rm -fr conftest* |
6fb6bd15 | 12120 | |
c52df125 | 12121 | |
eec2776c AJ |
12122 | fi |
12123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12124 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12125 | ||
12126 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12127 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12129 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12130 | if ${lt_cv_dlopen_self_static+:} false; then : | |
7083c021 AC |
12131 | $as_echo_n "(cached) " >&6 |
12132 | else | |
eec2776c AJ |
12133 | if test "$cross_compiling" = yes; then : |
12134 | lt_cv_dlopen_self_static=cross | |
c52df125 AC |
12135 | else |
12136 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12137 | lt_status=$lt_dlunknown | |
12138 | cat > conftest.$ac_ext <<_LT_EOF | |
12139 | #line $LINENO "configure" | |
12140 | #include "confdefs.h" | |
212380e3 | 12141 | |
c52df125 AC |
12142 | #if HAVE_DLFCN_H |
12143 | #include <dlfcn.h> | |
12144 | #endif | |
12145 | ||
12146 | #include <stdio.h> | |
12147 | ||
12148 | #ifdef RTLD_GLOBAL | |
12149 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12150 | #else | |
12151 | # ifdef DL_GLOBAL | |
12152 | # define LT_DLGLOBAL DL_GLOBAL | |
12153 | # else | |
12154 | # define LT_DLGLOBAL 0 | |
12155 | # endif | |
12156 | #endif | |
12157 | ||
12158 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12159 | find out it does not work in some platform. */ | |
12160 | #ifndef LT_DLLAZY_OR_NOW | |
12161 | # ifdef RTLD_LAZY | |
12162 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12163 | # else | |
12164 | # ifdef DL_LAZY | |
12165 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12166 | # else | |
12167 | # ifdef RTLD_NOW | |
12168 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12169 | # else | |
12170 | # ifdef DL_NOW | |
12171 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12172 | # else | |
12173 | # define LT_DLLAZY_OR_NOW 0 | |
12174 | # endif | |
12175 | # endif | |
12176 | # endif | |
12177 | # endif | |
12178 | #endif | |
12179 | ||
12180 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12181 | correspondingly for the symbols needed. */ | |
12182 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12183 | int fnord () __attribute__((visibility("default"))); | |
12184 | #endif | |
12185 | ||
12186 | int fnord () { return 42; } | |
12187 | int main () | |
7083c021 | 12188 | { |
c52df125 AC |
12189 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12190 | int status = $lt_dlunknown; | |
7083c021 | 12191 | |
c52df125 AC |
12192 | if (self) |
12193 | { | |
12194 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12195 | else | |
12196 | { | |
12197 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12198 | else puts (dlerror ()); | |
12199 | } | |
12200 | /* dlclose (self); */ | |
12201 | } | |
12202 | else | |
12203 | puts (dlerror ()); | |
12204 | ||
12205 | return status; | |
7083c021 | 12206 | } |
c52df125 AC |
12207 | _LT_EOF |
12208 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12209 | (eval $ac_link) 2>&5 | |
212380e3 | 12210 | ac_status=$? |
7083c021 | 12211 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
c52df125 AC |
12212 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
12213 | (./conftest; exit; ) >&5 2>/dev/null | |
12214 | lt_status=$? | |
12215 | case x$lt_status in | |
eec2776c AJ |
12216 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
12217 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12218 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
c52df125 AC |
12219 | esac |
12220 | else : | |
12221 | # compilation failed | |
eec2776c | 12222 | lt_cv_dlopen_self_static=no |
c52df125 | 12223 | fi |
7083c021 | 12224 | fi |
c52df125 AC |
12225 | rm -fr conftest* |
12226 | ||
c52df125 | 12227 | |
212380e3 | 12228 | fi |
eec2776c AJ |
12229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12230 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12231 | fi | |
c52df125 | 12232 | |
eec2776c AJ |
12233 | CPPFLAGS="$save_CPPFLAGS" |
12234 | LDFLAGS="$save_LDFLAGS" | |
12235 | LIBS="$save_LIBS" | |
12236 | ;; | |
12237 | esac | |
c52df125 | 12238 | |
eec2776c AJ |
12239 | case $lt_cv_dlopen_self in |
12240 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12241 | *) enable_dlopen_self=unknown ;; | |
12242 | esac | |
c52df125 | 12243 | |
eec2776c AJ |
12244 | case $lt_cv_dlopen_self_static in |
12245 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12246 | *) enable_dlopen_self_static=unknown ;; | |
12247 | esac | |
c52df125 AC |
12248 | fi |
12249 | ||
eec2776c AJ |
12250 | |
12251 | ||
12252 | ||
12253 | ||
12254 | ||
12255 | ||
12256 | ||
12257 | ||
12258 | ||
12259 | ||
12260 | ||
12261 | ||
12262 | ||
12263 | ||
12264 | ||
12265 | ||
12266 | striplib= | |
12267 | old_striplib= | |
12268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12269 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12270 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12271 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12272 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12274 | $as_echo "yes" >&6; } | |
7083c021 | 12275 | else |
eec2776c | 12276 | # FIXME - insert some real tests, host_os isn't really good enough |
c52df125 | 12277 | case $host_os in |
c52df125 | 12278 | darwin*) |
eec2776c AJ |
12279 | if test -n "$STRIP" ; then |
12280 | striplib="$STRIP -x" | |
12281 | old_striplib="$STRIP -S" | |
12282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12283 | $as_echo "yes" >&6; } | |
12284 | else | |
12285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12286 | $as_echo "no" >&6; } | |
12287 | fi | |
c52df125 | 12288 | ;; |
eec2776c AJ |
12289 | *) |
12290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12291 | $as_echo "no" >&6; } | |
c52df125 | 12292 | ;; |
eec2776c AJ |
12293 | esac |
12294 | fi | |
12295 | ||
12296 | ||
12297 | ||
12298 | ||
12299 | ||
12300 | ||
12301 | ||
12302 | ||
12303 | ||
12304 | ||
12305 | ||
12306 | ||
12307 | # Report which library types will actually be built | |
12308 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12309 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12311 | $as_echo "$can_build_shared" >&6; } | |
12312 | ||
12313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12314 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12315 | test "$can_build_shared" = "no" && enable_shared=no | |
12316 | ||
12317 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12318 | # are all built from PIC. | |
12319 | case $host_os in | |
12320 | aix3*) | |
12321 | test "$enable_shared" = yes && enable_static=no | |
12322 | if test -n "$RANLIB"; then | |
12323 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12324 | postinstall_cmds='$RANLIB $lib' | |
12325 | fi | |
c52df125 | 12326 | ;; |
eec2776c AJ |
12327 | |
12328 | aix[4-9]*) | |
12329 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12330 | test "$enable_shared" = yes && enable_static=no | |
12331 | fi | |
c52df125 AC |
12332 | ;; |
12333 | esac | |
eec2776c AJ |
12334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
12335 | $as_echo "$enable_shared" >&6; } | |
12336 | ||
12337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12338 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12339 | # Make sure either enable_shared or enable_static is yes. | |
12340 | test "$enable_shared" = yes || enable_static=yes | |
12341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12342 | $as_echo "$enable_static" >&6; } | |
12343 | ||
212380e3 | 12344 | |
c52df125 | 12345 | |
c52df125 AC |
12346 | |
12347 | fi | |
eec2776c AJ |
12348 | ac_ext=c |
12349 | ac_cpp='$CPP $CPPFLAGS' | |
12350 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12351 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12352 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 12353 | |
eec2776c | 12354 | CC="$lt_save_CC" |
c52df125 | 12355 | |
c52df125 | 12356 | |
c52df125 | 12357 | |
c52df125 AC |
12358 | |
12359 | ||
212380e3 | 12360 | |
c52df125 AC |
12361 | |
12362 | ||
c52df125 | 12363 | |
c52df125 AC |
12364 | |
12365 | ||
7083c021 | 12366 | |
c52df125 AC |
12367 | |
12368 | ||
c52df125 | 12369 | |
eec2776c | 12370 | ac_config_commands="$ac_config_commands libtool" |
c52df125 | 12371 | |
c52df125 | 12372 | |
c52df125 AC |
12373 | |
12374 | ||
eec2776c | 12375 | # Only expand once: |
212380e3 | 12376 | |
631ef239 | 12377 | |
c52df125 AC |
12378 | |
12379 | ||
c52df125 | 12380 | |
c52df125 AC |
12381 | |
12382 | ||
12383 | ||
eec2776c AJ |
12384 | |
12385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 | |
12386 | $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } | |
12387 | if ${libltdl_cv_shlibext+:} false; then : | |
c52df125 AC |
12388 | $as_echo_n "(cached) " >&6 |
12389 | else | |
eec2776c AJ |
12390 | |
12391 | module=yes | |
12392 | eval libltdl_cv_shlibext=$shrext_cmds | |
12393 | module=no | |
12394 | eval libltdl_cv_shrext=$shrext_cmds | |
c52df125 AC |
12395 | |
12396 | fi | |
eec2776c AJ |
12397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 |
12398 | $as_echo "$libltdl_cv_shlibext" >&6; } | |
12399 | if test -n "$libltdl_cv_shlibext"; then | |
c52df125 | 12400 | |
eec2776c AJ |
12401 | cat >>confdefs.h <<_ACEOF |
12402 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" | |
12403 | _ACEOF | |
c52df125 AC |
12404 | |
12405 | fi | |
eec2776c | 12406 | if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then |
c52df125 | 12407 | |
eec2776c AJ |
12408 | cat >>confdefs.h <<_ACEOF |
12409 | #define LT_SHARED_EXT "$libltdl_cv_shrext" | |
12410 | _ACEOF | |
c52df125 | 12411 | |
eec2776c | 12412 | fi |
c52df125 | 12413 | |
eec2776c AJ |
12414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 |
12415 | $as_echo_n "checking which variable specifies run-time module search path... " >&6; } | |
12416 | if ${lt_cv_module_path_var+:} false; then : | |
12417 | $as_echo_n "(cached) " >&6 | |
12418 | else | |
12419 | lt_cv_module_path_var="$shlibpath_var" | |
12420 | fi | |
12421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 | |
12422 | $as_echo "$lt_cv_module_path_var" >&6; } | |
12423 | if test -n "$lt_cv_module_path_var"; then | |
12424 | ||
12425 | cat >>confdefs.h <<_ACEOF | |
12426 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" | |
12427 | _ACEOF | |
c52df125 | 12428 | |
eec2776c | 12429 | fi |
c52df125 | 12430 | |
eec2776c AJ |
12431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 |
12432 | $as_echo_n "checking for the default library search path... " >&6; } | |
12433 | if ${lt_cv_sys_dlsearch_path+:} false; then : | |
12434 | $as_echo_n "(cached) " >&6 | |
12435 | else | |
12436 | lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" | |
12437 | fi | |
12438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 | |
12439 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } | |
12440 | if test -n "$lt_cv_sys_dlsearch_path"; then | |
12441 | sys_dlsearch_path= | |
12442 | for dir in $lt_cv_sys_dlsearch_path; do | |
12443 | if test -z "$sys_dlsearch_path"; then | |
12444 | sys_dlsearch_path="$dir" | |
12445 | else | |
12446 | sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" | |
12447 | fi | |
12448 | done | |
c52df125 | 12449 | |
eec2776c AJ |
12450 | cat >>confdefs.h <<_ACEOF |
12451 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" | |
12452 | _ACEOF | |
c52df125 | 12453 | |
eec2776c | 12454 | fi |
c52df125 AC |
12455 | |
12456 | ||
eec2776c | 12457 | LT_DLLOADERS= |
c52df125 AC |
12458 | |
12459 | ||
eec2776c AJ |
12460 | ac_ext=c |
12461 | ac_cpp='$CPP $CPPFLAGS' | |
12462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
12465 | |
12466 | ||
eec2776c AJ |
12467 | LIBADD_DLOPEN= |
12468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | |
12469 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
12470 | if ${ac_cv_search_dlopen+:} false; then : | |
12471 | $as_echo_n "(cached) " >&6 | |
12472 | else | |
12473 | ac_func_search_save_LIBS=$LIBS | |
12474 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12475 | /* end confdefs.h. */ | |
c52df125 | 12476 | |
eec2776c AJ |
12477 | /* Override any GCC internal prototype to avoid an error. |
12478 | Use char because int might match the return type of a GCC | |
12479 | builtin and then its argument prototype would still apply. */ | |
12480 | #ifdef __cplusplus | |
12481 | extern "C" | |
12482 | #endif | |
12483 | char dlopen (); | |
12484 | int | |
12485 | main () | |
12486 | { | |
12487 | return dlopen (); | |
12488 | ; | |
12489 | return 0; | |
12490 | } | |
12491 | _ACEOF | |
12492 | for ac_lib in '' dl; do | |
12493 | if test -z "$ac_lib"; then | |
12494 | ac_res="none required" | |
12495 | else | |
12496 | ac_res=-l$ac_lib | |
12497 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12498 | fi | |
12499 | if ac_fn_c_try_link "$LINENO"; then : | |
12500 | ac_cv_search_dlopen=$ac_res | |
12501 | fi | |
12502 | rm -f core conftest.err conftest.$ac_objext \ | |
12503 | conftest$ac_exeext | |
12504 | if ${ac_cv_search_dlopen+:} false; then : | |
12505 | break | |
12506 | fi | |
12507 | done | |
12508 | if ${ac_cv_search_dlopen+:} false; then : | |
c52df125 | 12509 | |
eec2776c AJ |
12510 | else |
12511 | ac_cv_search_dlopen=no | |
12512 | fi | |
12513 | rm conftest.$ac_ext | |
12514 | LIBS=$ac_func_search_save_LIBS | |
c52df125 | 12515 | fi |
eec2776c AJ |
12516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
12517 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
12518 | ac_res=$ac_cv_search_dlopen | |
12519 | if test "$ac_res" != no; then : | |
12520 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
12521 | ||
12522 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | |
12523 | ||
12524 | if test "$ac_cv_search_dlopen" != "none required" ; then | |
12525 | LIBADD_DLOPEN="-ldl" | |
12526 | fi | |
12527 | libltdl_cv_lib_dl_dlopen="yes" | |
12528 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
12529 | else | |
12530 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12531 | /* end confdefs.h. */ | |
12532 | #if HAVE_DLFCN_H | |
12533 | # include <dlfcn.h> | |
12534 | #endif | |
212380e3 | 12535 | |
eec2776c AJ |
12536 | int |
12537 | main () | |
12538 | { | |
12539 | dlopen(0, 0); | |
12540 | ; | |
12541 | return 0; | |
12542 | } | |
12543 | _ACEOF | |
12544 | if ac_fn_c_try_link "$LINENO"; then : | |
631ef239 | 12545 | |
eec2776c | 12546 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
631ef239 | 12547 | |
eec2776c AJ |
12548 | libltdl_cv_func_dlopen="yes" |
12549 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
12550 | else | |
12551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12552 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12553 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
c52df125 | 12554 | $as_echo_n "(cached) " >&6 |
7083c021 | 12555 | else |
c52df125 | 12556 | ac_check_lib_save_LIBS=$LIBS |
eec2776c | 12557 | LIBS="-lsvld $LIBS" |
c52df125 | 12558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7083c021 | 12559 | /* end confdefs.h. */ |
212380e3 | 12560 | |
c52df125 AC |
12561 | /* Override any GCC internal prototype to avoid an error. |
12562 | Use char because int might match the return type of a GCC | |
12563 | builtin and then its argument prototype would still apply. */ | |
12564 | #ifdef __cplusplus | |
12565 | extern "C" | |
12566 | #endif | |
eec2776c | 12567 | char dlopen (); |
7083c021 AC |
12568 | int |
12569 | main () | |
12570 | { | |
eec2776c | 12571 | return dlopen (); |
7083c021 AC |
12572 | ; |
12573 | return 0; | |
12574 | } | |
212380e3 | 12575 | _ACEOF |
c52df125 | 12576 | if ac_fn_c_try_link "$LINENO"; then : |
eec2776c | 12577 | ac_cv_lib_svld_dlopen=yes |
c52df125 | 12578 | else |
eec2776c | 12579 | ac_cv_lib_svld_dlopen=no |
212380e3 | 12580 | fi |
c52df125 AC |
12581 | rm -f core conftest.err conftest.$ac_objext \ |
12582 | conftest$ac_exeext conftest.$ac_ext | |
12583 | LIBS=$ac_check_lib_save_LIBS | |
212380e3 | 12584 | fi |
eec2776c AJ |
12585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12586 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12587 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
c52df125 | 12588 | |
eec2776c | 12589 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
c52df125 | 12590 | |
eec2776c AJ |
12591 | LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" |
12592 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
c52df125 AC |
12593 | fi |
12594 | ||
c52df125 | 12595 | fi |
eec2776c AJ |
12596 | rm -f core conftest.err conftest.$ac_objext \ |
12597 | conftest$ac_exeext conftest.$ac_ext | |
c52df125 AC |
12598 | fi |
12599 | ||
eec2776c AJ |
12600 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
12601 | then | |
12602 | lt_save_LIBS="$LIBS" | |
12603 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12604 | for ac_func in dlerror | |
12605 | do : | |
12606 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" | |
12607 | if test "x$ac_cv_func_dlerror" = xyes; then : | |
12608 | cat >>confdefs.h <<_ACEOF | |
12609 | #define HAVE_DLERROR 1 | |
12610 | _ACEOF | |
c52df125 | 12611 | |
c52df125 | 12612 | fi |
eec2776c | 12613 | done |
c52df125 | 12614 | |
eec2776c | 12615 | LIBS="$lt_save_LIBS" |
c52df125 | 12616 | fi |
7083c021 | 12617 | |
631ef239 | 12618 | |
eec2776c AJ |
12619 | LIBADD_SHL_LOAD= |
12620 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12621 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
212380e3 | 12622 | |
eec2776c | 12623 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
212380e3 | 12624 | |
eec2776c | 12625 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
c52df125 | 12626 | else |
eec2776c AJ |
12627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
12628 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12629 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12630 | $as_echo_n "(cached) " >&6 | |
7083c021 | 12631 | else |
eec2776c AJ |
12632 | ac_check_lib_save_LIBS=$LIBS |
12633 | LIBS="-ldld $LIBS" | |
12634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12635 | /* end confdefs.h. */ | |
c52df125 | 12636 | |
eec2776c AJ |
12637 | /* Override any GCC internal prototype to avoid an error. |
12638 | Use char because int might match the return type of a GCC | |
12639 | builtin and then its argument prototype would still apply. */ | |
12640 | #ifdef __cplusplus | |
12641 | extern "C" | |
12642 | #endif | |
12643 | char shl_load (); | |
12644 | int | |
12645 | main () | |
12646 | { | |
12647 | return shl_load (); | |
12648 | ; | |
12649 | return 0; | |
12650 | } | |
212380e3 | 12651 | _ACEOF |
eec2776c AJ |
12652 | if ac_fn_c_try_link "$LINENO"; then : |
12653 | ac_cv_lib_dld_shl_load=yes | |
7083c021 | 12654 | else |
eec2776c AJ |
12655 | ac_cv_lib_dld_shl_load=no |
12656 | fi | |
12657 | rm -f core conftest.err conftest.$ac_objext \ | |
12658 | conftest$ac_exeext conftest.$ac_ext | |
12659 | LIBS=$ac_check_lib_save_LIBS | |
12660 | fi | |
12661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
12662 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12663 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
c52df125 | 12664 | |
eec2776c | 12665 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
c52df125 | 12666 | |
eec2776c AJ |
12667 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
12668 | LIBADD_SHL_LOAD="-ldld" | |
12669 | fi | |
c52df125 | 12670 | |
212380e3 AC |
12671 | fi |
12672 | ||
c52df125 | 12673 | |
212380e3 | 12674 | |
eec2776c AJ |
12675 | case $host_os in |
12676 | darwin[1567].*) | |
12677 | # We only want this for pre-Mac OS X 10.4. | |
12678 | ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" | |
12679 | if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : | |
212380e3 | 12680 | |
eec2776c | 12681 | $as_echo "#define HAVE_DYLD 1" >>confdefs.h |
7083c021 | 12682 | |
eec2776c | 12683 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" |
7083c021 | 12684 | fi |
c52df125 | 12685 | |
eec2776c AJ |
12686 | ;; |
12687 | beos*) | |
12688 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" | |
12689 | ;; | |
12690 | cygwin* | mingw* | os2* | pw32*) | |
12691 | ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> | |
12692 | " | |
12693 | if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : | |
12694 | ac_have_decl=1 | |
12695 | else | |
12696 | ac_have_decl=0 | |
12697 | fi | |
c52df125 AC |
12698 | |
12699 | cat >>confdefs.h <<_ACEOF | |
eec2776c | 12700 | #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl |
212380e3 AC |
12701 | _ACEOF |
12702 | ||
eec2776c AJ |
12703 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" |
12704 | ;; | |
12705 | esac | |
212380e3 | 12706 | |
eec2776c AJ |
12707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12708 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12709 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12710 | $as_echo_n "(cached) " >&6 | |
12711 | else | |
12712 | ac_check_lib_save_LIBS=$LIBS | |
12713 | LIBS="-ldld $LIBS" | |
12714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12715 | /* end confdefs.h. */ | |
c52df125 | 12716 | |
eec2776c AJ |
12717 | /* Override any GCC internal prototype to avoid an error. |
12718 | Use char because int might match the return type of a GCC | |
12719 | builtin and then its argument prototype would still apply. */ | |
12720 | #ifdef __cplusplus | |
12721 | extern "C" | |
12722 | #endif | |
12723 | char dld_link (); | |
12724 | int | |
12725 | main () | |
12726 | { | |
12727 | return dld_link (); | |
12728 | ; | |
12729 | return 0; | |
12730 | } | |
212380e3 | 12731 | _ACEOF |
eec2776c AJ |
12732 | if ac_fn_c_try_link "$LINENO"; then : |
12733 | ac_cv_lib_dld_dld_link=yes | |
12734 | else | |
12735 | ac_cv_lib_dld_dld_link=no | |
12736 | fi | |
12737 | rm -f core conftest.err conftest.$ac_objext \ | |
12738 | conftest$ac_exeext conftest.$ac_ext | |
12739 | LIBS=$ac_check_lib_save_LIBS | |
12740 | fi | |
12741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12742 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12743 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
212380e3 | 12744 | |
eec2776c AJ |
12745 | $as_echo "#define HAVE_DLD 1" >>confdefs.h |
12746 | ||
12747 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" | |
12748 | fi | |
212380e3 AC |
12749 | |
12750 | ||
12751 | ||
12752 | ||
eec2776c AJ |
12753 | LT_DLPREOPEN= |
12754 | if test -n "$LT_DLLOADERS" | |
12755 | then | |
12756 | for lt_loader in $LT_DLLOADERS; do | |
12757 | LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " | |
12758 | done | |
7083c021 | 12759 | |
eec2776c | 12760 | $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h |
212380e3 | 12761 | |
eec2776c | 12762 | fi |
631ef239 | 12763 | |
212380e3 | 12764 | |
eec2776c | 12765 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
212380e3 | 12766 | |
212380e3 | 12767 | |
eec2776c AJ |
12768 | ac_ext=c |
12769 | ac_cpp='$CPP $CPPFLAGS' | |
12770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
12773 | |
12774 | ||
eec2776c AJ |
12775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 |
12776 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } | |
12777 | if ${lt_cv_sys_symbol_underscore+:} false; then : | |
12778 | $as_echo_n "(cached) " >&6 | |
c52df125 | 12779 | else |
eec2776c AJ |
12780 | lt_cv_sys_symbol_underscore=no |
12781 | cat > conftest.$ac_ext <<_LT_EOF | |
12782 | void nm_test_func(){} | |
12783 | int main(){nm_test_func;return 0;} | |
12784 | _LT_EOF | |
12785 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
12786 | (eval $ac_compile) 2>&5 | |
12787 | ac_status=$? | |
12788 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12789 | test $ac_status = 0; }; then | |
12790 | # Now try to grab the symbols. | |
12791 | ac_nlist=conftest.nm | |
12792 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 | |
12793 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | |
12794 | ac_status=$? | |
12795 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12796 | test $ac_status = 0; } && test -s "$ac_nlist"; then | |
12797 | # See whether the symbols have a leading underscore. | |
12798 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | |
12799 | lt_cv_sys_symbol_underscore=yes | |
12800 | else | |
12801 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | |
12802 | : | |
12803 | else | |
12804 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | |
12805 | fi | |
12806 | fi | |
12807 | else | |
12808 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
12809 | fi | |
12810 | else | |
12811 | echo "configure: failed program was:" >&5 | |
12812 | cat conftest.c >&5 | |
12813 | fi | |
12814 | rm -rf conftest* | |
12815 | ||
212380e3 | 12816 | fi |
eec2776c AJ |
12817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 |
12818 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } | |
12819 | sys_symbol_underscore=$lt_cv_sys_symbol_underscore | |
212380e3 AC |
12820 | |
12821 | ||
eec2776c AJ |
12822 | if test x"$lt_cv_sys_symbol_underscore" = xyes; then |
12823 | if test x"$libltdl_cv_func_dlopen" = xyes || | |
12824 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | |
12825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 | |
12826 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } | |
12827 | if ${libltdl_cv_need_uscore+:} false; then : | |
7083c021 | 12828 | $as_echo_n "(cached) " >&6 |
212380e3 | 12829 | else |
eec2776c AJ |
12830 | libltdl_cv_need_uscore=unknown |
12831 | save_LIBS="$LIBS" | |
12832 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12833 | if test "$cross_compiling" = yes; then : | |
12834 | libltdl_cv_need_uscore=cross | |
12835 | else | |
12836 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12837 | lt_status=$lt_dlunknown | |
12838 | cat > conftest.$ac_ext <<_LT_EOF | |
12839 | #line $LINENO "configure" | |
12840 | #include "confdefs.h" | |
212380e3 | 12841 | |
eec2776c AJ |
12842 | #if HAVE_DLFCN_H |
12843 | #include <dlfcn.h> | |
c52df125 | 12844 | #endif |
c52df125 | 12845 | |
eec2776c | 12846 | #include <stdio.h> |
c52df125 | 12847 | |
eec2776c AJ |
12848 | #ifdef RTLD_GLOBAL |
12849 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12850 | #else | |
12851 | # ifdef DL_GLOBAL | |
12852 | # define LT_DLGLOBAL DL_GLOBAL | |
12853 | # else | |
12854 | # define LT_DLGLOBAL 0 | |
12855 | # endif | |
12856 | #endif | |
c52df125 | 12857 | |
eec2776c AJ |
12858 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12859 | find out it does not work in some platform. */ | |
12860 | #ifndef LT_DLLAZY_OR_NOW | |
12861 | # ifdef RTLD_LAZY | |
12862 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12863 | # else | |
12864 | # ifdef DL_LAZY | |
12865 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12866 | # else | |
12867 | # ifdef RTLD_NOW | |
12868 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12869 | # else | |
12870 | # ifdef DL_NOW | |
12871 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12872 | # else | |
12873 | # define LT_DLLAZY_OR_NOW 0 | |
12874 | # endif | |
12875 | # endif | |
12876 | # endif | |
12877 | # endif | |
12878 | #endif | |
212380e3 | 12879 | |
eec2776c AJ |
12880 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12881 | correspondingly for the symbols needed. */ | |
12882 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12883 | int fnord () __attribute__((visibility("default"))); | |
12884 | #endif | |
212380e3 | 12885 | |
eec2776c AJ |
12886 | int fnord () { return 42; } |
12887 | int main () | |
12888 | { | |
12889 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12890 | int status = $lt_dlunknown; | |
c52df125 | 12891 | |
eec2776c | 12892 | if (self) |
c52df125 | 12893 | { |
eec2776c AJ |
12894 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
12895 | else | |
12896 | { | |
12897 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12898 | else puts (dlerror ()); | |
c52df125 | 12899 | } |
eec2776c | 12900 | /* dlclose (self); */ |
c52df125 | 12901 | } |
eec2776c AJ |
12902 | else |
12903 | puts (dlerror ()); | |
12904 | ||
12905 | return status; | |
c52df125 | 12906 | } |
eec2776c AJ |
12907 | _LT_EOF |
12908 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12909 | (eval $ac_link) 2>&5 | |
12910 | ac_status=$? | |
12911 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12912 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12913 | (./conftest; exit; ) >&5 2>/dev/null | |
12914 | lt_status=$? | |
12915 | case x$lt_status in | |
12916 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | |
12917 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | |
12918 | x$lt_dlunknown|x*) ;; | |
12919 | esac | |
12920 | else : | |
12921 | # compilation failed | |
c52df125 | 12922 | |
eec2776c AJ |
12923 | fi |
12924 | fi | |
12925 | rm -fr conftest* | |
c52df125 | 12926 | |
eec2776c | 12927 | LIBS="$save_LIBS" |
212380e3 | 12928 | |
eec2776c AJ |
12929 | fi |
12930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 | |
12931 | $as_echo "$libltdl_cv_need_uscore" >&6; } | |
12932 | fi | |
12933 | fi | |
212380e3 | 12934 | |
eec2776c | 12935 | if test x"$libltdl_cv_need_uscore" = xyes; then |
212380e3 | 12936 | |
eec2776c | 12937 | $as_echo "#define NEED_USCORE 1" >>confdefs.h |
212380e3 | 12938 | |
eec2776c | 12939 | fi |
7083c021 | 12940 | |
eec2776c AJ |
12941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 |
12942 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } | |
12943 | if ${lt_cv_sys_dlopen_deplibs+:} false; then : | |
12944 | $as_echo_n "(cached) " >&6 | |
12945 | else | |
12946 | # PORTME does your system automatically load deplibs for dlopen? | |
12947 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | |
12948 | # For now, we just catch OSes we know something about -- in the | |
12949 | # future, we'll try test this programmatically. | |
12950 | lt_cv_sys_dlopen_deplibs=unknown | |
12951 | case $host_os in | |
12952 | aix3*|aix4.1.*|aix4.2.*) | |
12953 | # Unknown whether this is true for these versions of AIX, but | |
12954 | # we want this `case' here to explicitly catch those versions. | |
12955 | lt_cv_sys_dlopen_deplibs=unknown | |
12956 | ;; | |
12957 | aix[4-9]*) | |
12958 | lt_cv_sys_dlopen_deplibs=yes | |
12959 | ;; | |
12960 | amigaos*) | |
12961 | case $host_cpu in | |
12962 | powerpc) | |
12963 | lt_cv_sys_dlopen_deplibs=no | |
12964 | ;; | |
12965 | esac | |
12966 | ;; | |
12967 | darwin*) | |
12968 | # Assuming the user has installed a libdl from somewhere, this is true | |
12969 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | |
12970 | lt_cv_sys_dlopen_deplibs=yes | |
12971 | ;; | |
12972 | freebsd* | dragonfly*) | |
12973 | lt_cv_sys_dlopen_deplibs=yes | |
12974 | ;; | |
12975 | gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12976 | # GNU and its variants, using gnu ld.so (Glibc) | |
12977 | lt_cv_sys_dlopen_deplibs=yes | |
12978 | ;; | |
12979 | hpux10*|hpux11*) | |
12980 | lt_cv_sys_dlopen_deplibs=yes | |
12981 | ;; | |
12982 | interix*) | |
12983 | lt_cv_sys_dlopen_deplibs=yes | |
12984 | ;; | |
12985 | irix[12345]*|irix6.[01]*) | |
12986 | # Catch all versions of IRIX before 6.2, and indicate that we don't | |
12987 | # know how it worked for any of those versions. | |
12988 | lt_cv_sys_dlopen_deplibs=unknown | |
12989 | ;; | |
12990 | irix*) | |
12991 | # The case above catches anything before 6.2, and it's known that | |
12992 | # at 6.2 and later dlopen does load deplibs. | |
12993 | lt_cv_sys_dlopen_deplibs=yes | |
12994 | ;; | |
12995 | netbsd* | netbsdelf*-gnu) | |
12996 | lt_cv_sys_dlopen_deplibs=yes | |
12997 | ;; | |
12998 | openbsd*) | |
12999 | lt_cv_sys_dlopen_deplibs=yes | |
13000 | ;; | |
13001 | osf[1234]*) | |
13002 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | |
13003 | # it did *not* use an RPATH in a shared library to find objects the | |
13004 | # library depends on, so we explicitly say `no'. | |
13005 | lt_cv_sys_dlopen_deplibs=no | |
13006 | ;; | |
13007 | osf5.0|osf5.0a|osf5.1) | |
13008 | # dlopen *does* load deplibs and with the right loader patch applied | |
13009 | # it even uses RPATH in a shared library to search for shared objects | |
13010 | # that the library depends on, but there's no easy way to know if that | |
13011 | # patch is installed. Since this is the case, all we can really | |
13012 | # say is unknown -- it depends on the patch being installed. If | |
13013 | # it is, this changes to `yes'. Without it, it would be `no'. | |
13014 | lt_cv_sys_dlopen_deplibs=unknown | |
13015 | ;; | |
13016 | osf*) | |
13017 | # the two cases above should catch all versions of osf <= 5.1. Read | |
13018 | # the comments above for what we know about them. | |
13019 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | |
13020 | # is used to find them so we can finally say `yes'. | |
13021 | lt_cv_sys_dlopen_deplibs=yes | |
13022 | ;; | |
13023 | qnx*) | |
13024 | lt_cv_sys_dlopen_deplibs=yes | |
13025 | ;; | |
13026 | solaris*) | |
13027 | lt_cv_sys_dlopen_deplibs=yes | |
13028 | ;; | |
13029 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
13030 | libltdl_cv_sys_dlopen_deplibs=yes | |
13031 | ;; | |
13032 | esac | |
212380e3 | 13033 | |
eec2776c AJ |
13034 | fi |
13035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 | |
13036 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } | |
13037 | if test "$lt_cv_sys_dlopen_deplibs" != yes; then | |
631ef239 | 13038 | |
eec2776c | 13039 | $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h |
7083c021 | 13040 | |
eec2776c AJ |
13041 | fi |
13042 | ||
13043 | : | |
13044 | ||
13045 | for ac_header in argz.h | |
13046 | do : | |
13047 | ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default | |
13048 | " | |
13049 | if test "x$ac_cv_header_argz_h" = xyes; then : | |
13050 | cat >>confdefs.h <<_ACEOF | |
13051 | #define HAVE_ARGZ_H 1 | |
212380e3 | 13052 | _ACEOF |
eec2776c | 13053 | |
7083c021 | 13054 | fi |
eec2776c | 13055 | |
c52df125 | 13056 | done |
631ef239 | 13057 | |
631ef239 | 13058 | |
eec2776c AJ |
13059 | ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) |
13060 | # include <argz.h> | |
13061 | #endif | |
13062 | " | |
13063 | if test "x$ac_cv_type_error_t" = xyes; then : | |
13064 | ||
13065 | cat >>confdefs.h <<_ACEOF | |
13066 | #define HAVE_ERROR_T 1 | |
13067 | _ACEOF | |
13068 | ||
631ef239 | 13069 | |
eec2776c | 13070 | else |
7083c021 | 13071 | |
eec2776c | 13072 | $as_echo "#define error_t int" >>confdefs.h |
7083c021 AC |
13073 | |
13074 | ||
eec2776c AJ |
13075 | $as_echo "#define __error_t_defined 1" >>confdefs.h |
13076 | ||
13077 | fi | |
13078 | ||
13079 | ||
13080 | ARGZ_H= | |
13081 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ | |
13082 | argz_next argz_stringify | |
13083 | do : | |
13084 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13085 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13086 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13087 | cat >>confdefs.h <<_ACEOF | |
13088 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13089 | _ACEOF | |
13090 | ||
212380e3 | 13091 | else |
eec2776c AJ |
13092 | ARGZ_H=argz.h; |
13093 | ||
13094 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" | |
13095 | ||
7083c021 | 13096 | fi |
eec2776c | 13097 | done |
7083c021 AC |
13098 | |
13099 | ||
eec2776c AJ |
13100 | if test -z "$ARGZ_H"; then : |
13101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 | |
13102 | $as_echo_n "checking if argz actually works... " >&6; } | |
13103 | if ${lt_cv_sys_argz_works+:} false; then : | |
13104 | $as_echo_n "(cached) " >&6 | |
13105 | else | |
13106 | case $host_os in #( | |
13107 | *cygwin*) | |
13108 | lt_cv_sys_argz_works=no | |
13109 | if test "$cross_compiling" != no; then | |
13110 | lt_cv_sys_argz_works="guessing no" | |
13111 | else | |
13112 | lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' | |
13113 | save_IFS=$IFS | |
13114 | IFS=-. | |
13115 | set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` | |
13116 | IFS=$save_IFS | |
13117 | lt_os_major=${2-0} | |
13118 | lt_os_minor=${3-0} | |
13119 | lt_os_micro=${4-0} | |
13120 | if test "$lt_os_major" -gt 1 \ | |
13121 | || { test "$lt_os_major" -eq 1 \ | |
13122 | && { test "$lt_os_minor" -gt 5 \ | |
13123 | || { test "$lt_os_minor" -eq 5 \ | |
13124 | && test "$lt_os_micro" -gt 24; }; }; }; then | |
13125 | lt_cv_sys_argz_works=yes | |
13126 | fi | |
13127 | fi | |
13128 | ;; #( | |
13129 | *) lt_cv_sys_argz_works=yes ;; | |
13130 | esac | |
13131 | fi | |
13132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 | |
13133 | $as_echo "$lt_cv_sys_argz_works" >&6; } | |
13134 | if test "$lt_cv_sys_argz_works" = yes; then : | |
7083c021 | 13135 | |
eec2776c | 13136 | $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h |
7083c021 | 13137 | |
eec2776c AJ |
13138 | else |
13139 | ARGZ_H=argz.h | |
212380e3 | 13140 | |
631ef239 | 13141 | |
eec2776c | 13142 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
631ef239 | 13143 | |
eec2776c AJ |
13144 | fi |
13145 | fi | |
631ef239 | 13146 | |
212380e3 | 13147 | |
212380e3 | 13148 | |
eec2776c AJ |
13149 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
13150 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } | |
13151 | if ${libltdl_cv_preloaded_symbols+:} false; then : | |
7083c021 | 13152 | $as_echo_n "(cached) " >&6 |
212380e3 | 13153 | else |
eec2776c AJ |
13154 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
13155 | libltdl_cv_preloaded_symbols=yes | |
13156 | else | |
13157 | libltdl_cv_preloaded_symbols=no | |
13158 | fi | |
7083c021 | 13159 | |
212380e3 | 13160 | fi |
eec2776c AJ |
13161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 |
13162 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } | |
13163 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | |
13164 | ||
13165 | $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h | |
13166 | ||
212380e3 | 13167 | fi |
212380e3 | 13168 | |
eec2776c | 13169 | # Set options |
212380e3 | 13170 | |
7083c021 | 13171 | |
7083c021 | 13172 | |
212380e3 | 13173 | |
7083c021 AC |
13174 | |
13175 | ||
13176 | ||
212380e3 | 13177 | |
212380e3 | 13178 | |
212380e3 | 13179 | |
212380e3 | 13180 | |
212380e3 | 13181 | |
eec2776c AJ |
13182 | # Check whether --with-included_ltdl was given. |
13183 | if test "${with_included_ltdl+set}" = set; then : | |
13184 | withval=$with_included_ltdl; | |
212380e3 | 13185 | fi |
631ef239 | 13186 | |
eec2776c AJ |
13187 | |
13188 | if test "x$with_included_ltdl" != xyes; then | |
13189 | # We are not being forced to use the included libltdl sources, so | |
13190 | # decide whether there is a useful installed version we can use. | |
13191 | ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default | |
13192 | ||
13193 | " | |
13194 | if test "x$ac_cv_header_ltdl_h" = xyes; then : | |
13195 | ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default | |
13196 | #include <ltdl.h> | |
13197 | " | |
13198 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : | |
13199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 | |
13200 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } | |
13201 | if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : | |
7083c021 | 13202 | $as_echo_n "(cached) " >&6 |
212380e3 | 13203 | else |
eec2776c AJ |
13204 | ac_check_lib_save_LIBS=$LIBS |
13205 | LIBS="-lltdl $LIBS" | |
13206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13207 | /* end confdefs.h. */ | |
13208 | ||
13209 | /* Override any GCC internal prototype to avoid an error. | |
13210 | Use char because int might match the return type of a GCC | |
13211 | builtin and then its argument prototype would still apply. */ | |
13212 | #ifdef __cplusplus | |
13213 | extern "C" | |
13214 | #endif | |
13215 | char lt_dladvise_preload (); | |
13216 | int | |
13217 | main () | |
13218 | { | |
13219 | return lt_dladvise_preload (); | |
13220 | ; | |
13221 | return 0; | |
13222 | } | |
13223 | _ACEOF | |
13224 | if ac_fn_c_try_link "$LINENO"; then : | |
13225 | ac_cv_lib_ltdl_lt_dladvise_preload=yes | |
212380e3 | 13226 | else |
eec2776c | 13227 | ac_cv_lib_ltdl_lt_dladvise_preload=no |
212380e3 | 13228 | fi |
eec2776c AJ |
13229 | rm -f core conftest.err conftest.$ac_objext \ |
13230 | conftest$ac_exeext conftest.$ac_ext | |
13231 | LIBS=$ac_check_lib_save_LIBS | |
7083c021 | 13232 | fi |
eec2776c AJ |
13233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 |
13234 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } | |
13235 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : | |
13236 | with_included_ltdl=no | |
212380e3 | 13237 | else |
eec2776c | 13238 | with_included_ltdl=yes |
7083c021 AC |
13239 | fi |
13240 | ||
7083c021 | 13241 | else |
eec2776c | 13242 | with_included_ltdl=yes |
7083c021 | 13243 | fi |
eec2776c | 13244 | |
7083c021 | 13245 | else |
eec2776c | 13246 | with_included_ltdl=yes |
212380e3 | 13247 | fi |
631ef239 | 13248 | |
212380e3 | 13249 | |
7083c021 | 13250 | fi |
212380e3 | 13251 | |
eec2776c AJ |
13252 | |
13253 | ||
13254 | ||
13255 | # Check whether --with-ltdl_include was given. | |
13256 | if test "${with_ltdl_include+set}" = set; then : | |
13257 | withval=$with_ltdl_include; | |
212380e3 | 13258 | fi |
eec2776c AJ |
13259 | |
13260 | ||
13261 | if test -n "$with_ltdl_include"; then | |
13262 | if test -f "$with_ltdl_include/ltdl.h"; then : | |
13263 | else | |
13264 | as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 | |
13265 | fi | |
212380e3 | 13266 | else |
eec2776c | 13267 | with_ltdl_include=no |
7083c021 | 13268 | fi |
212380e3 | 13269 | |
212380e3 | 13270 | |
eec2776c AJ |
13271 | # Check whether --with-ltdl_lib was given. |
13272 | if test "${with_ltdl_lib+set}" = set; then : | |
13273 | withval=$with_ltdl_lib; | |
7083c021 | 13274 | fi |
eec2776c AJ |
13275 | |
13276 | ||
13277 | if test -n "$with_ltdl_lib"; then | |
13278 | if test -f "$with_ltdl_lib/libltdl.la"; then : | |
13279 | else | |
13280 | as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 | |
7083c021 | 13281 | fi |
eec2776c AJ |
13282 | else |
13283 | with_ltdl_lib=no | |
13284 | fi | |
13285 | ||
13286 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in | |
13287 | ,yes,no,no,) | |
13288 | case $enable_ltdl_convenience in | |
13289 | no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; | |
13290 | "") enable_ltdl_convenience=yes | |
13291 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | |
13292 | esac | |
13293 | LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" | |
13294 | LTDLDEPS=$LIBLTDL | |
13295 | LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" | |
13296 | ||
13297 | ||
13298 | ||
13299 | ||
13300 | ||
13301 | # For backwards non-gettext consistent compatibility... | |
13302 | INCLTDL="$LTDLINCL" | |
13303 | ||
13304 | ||
13305 | ;; | |
13306 | ,no,no,no,) | |
13307 | # If the included ltdl is not to be used, then use the | |
13308 | # preinstalled libltdl we found. | |
13309 | ||
13310 | $as_echo "#define HAVE_LTDL 1" >>confdefs.h | |
13311 | ||
13312 | LIBLTDL=-lltdl | |
13313 | LTDLDEPS= | |
13314 | LTDLINCL= | |
13315 | ;; | |
13316 | ,no*,no,*) | |
13317 | as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 | |
13318 | ;; | |
13319 | *) with_included_ltdl=no | |
13320 | LIBLTDL="-L$with_ltdl_lib -lltdl" | |
13321 | LTDLDEPS= | |
13322 | LTDLINCL="-I$with_ltdl_include" | |
13323 | ;; | |
13324 | esac | |
13325 | INCLTDL="$LTDLINCL" | |
13326 | ||
13327 | # Report our decision... | |
13328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 | |
13329 | $as_echo_n "checking where to find libltdl headers... " >&6; } | |
13330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 | |
13331 | $as_echo "$LTDLINCL" >&6; } | |
13332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 | |
13333 | $as_echo_n "checking where to find libltdl library... " >&6; } | |
13334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 | |
13335 | $as_echo "$LIBLTDL" >&6; } | |
13336 | ||
13337 | ||
212380e3 | 13338 | |
eec2776c AJ |
13339 | # Check whether --enable-ltdl-install was given. |
13340 | if test "${enable_ltdl_install+set}" = set; then : | |
13341 | enableval=$enable_ltdl_install; | |
212380e3 | 13342 | fi |
eec2776c AJ |
13343 | |
13344 | ||
13345 | case ,${enable_ltdl_install},${enable_ltdl_convenience} in | |
13346 | *yes*) ;; | |
13347 | *) enable_ltdl_convenience=yes ;; | |
13348 | esac | |
13349 | ||
13350 | if test x"${enable_ltdl_install-no}" != xno; then | |
13351 | INSTALL_LTDL_TRUE= | |
13352 | INSTALL_LTDL_FALSE='#' | |
13353 | else | |
13354 | INSTALL_LTDL_TRUE='#' | |
13355 | INSTALL_LTDL_FALSE= | |
212380e3 | 13356 | fi |
eec2776c AJ |
13357 | |
13358 | if test x"${enable_ltdl_convenience-no}" != xno; then | |
13359 | CONVENIENCE_LTDL_TRUE= | |
13360 | CONVENIENCE_LTDL_FALSE='#' | |
7083c021 | 13361 | else |
eec2776c AJ |
13362 | CONVENIENCE_LTDL_TRUE='#' |
13363 | CONVENIENCE_LTDL_FALSE= | |
212380e3 | 13364 | fi |
631ef239 AC |
13365 | |
13366 | ||
13367 | ||
eec2776c | 13368 | subdirs="$subdirs extra/libltdl" |
212380e3 AC |
13369 | |
13370 | ||
7083c021 | 13371 | |
7083c021 | 13372 | |
eec2776c AJ |
13373 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS |
13374 | # the user used. This is so that ltdl.h can pick up the parent projects | |
13375 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the | |
13376 | # definitions required by ltdl.c. | |
13377 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). | |
212380e3 | 13378 | |
7083c021 | 13379 | |
212380e3 | 13380 | |
eec2776c AJ |
13381 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h |
13382 | do : | |
13383 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13384 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
13385 | " | |
13386 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
13387 | cat >>confdefs.h <<_ACEOF | |
13388 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
212380e3 | 13389 | _ACEOF |
7083c021 AC |
13390 | |
13391 | fi | |
212380e3 | 13392 | |
eec2776c | 13393 | done |
7083c021 | 13394 | |
212380e3 | 13395 | |
eec2776c AJ |
13396 | for ac_func in closedir opendir readdir |
13397 | do : | |
13398 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13399 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13400 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13401 | cat >>confdefs.h <<_ACEOF | |
13402 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
212380e3 | 13403 | _ACEOF |
212380e3 | 13404 | |
7083c021 | 13405 | else |
7083c021 | 13406 | |
7083c021 | 13407 | |
eec2776c | 13408 | _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" |
7083c021 | 13409 | |
7083c021 | 13410 | fi |
7083c021 | 13411 | done |
7083c021 | 13412 | |
eec2776c AJ |
13413 | for ac_func in strlcat strlcpy |
13414 | do : | |
13415 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13416 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13417 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13418 | cat >>confdefs.h <<_ACEOF | |
13419 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13420 | _ACEOF | |
13421 | ||
13422 | else | |
13423 | ||
13424 | ||
13425 | _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" | |
212380e3 | 13426 | |
212380e3 | 13427 | fi |
eec2776c | 13428 | done |
631ef239 | 13429 | |
7083c021 | 13430 | |
c52df125 | 13431 | |
eec2776c AJ |
13432 | cat >>confdefs.h <<_ACEOF |
13433 | #define LT_LIBEXT "$libext" | |
13434 | _ACEOF | |
c52df125 | 13435 | |
eec2776c AJ |
13436 | |
13437 | name= | |
13438 | eval "lt_libprefix=\"$libname_spec\"" | |
13439 | ||
13440 | cat >>confdefs.h <<_ACEOF | |
13441 | #define LT_LIBPREFIX "$lt_libprefix" | |
c52df125 | 13442 | _ACEOF |
7083c021 AC |
13443 | |
13444 | ||
eec2776c AJ |
13445 | name=ltdl |
13446 | eval "LTDLOPEN=\"$libname_spec\"" | |
7083c021 | 13447 | |
c52df125 | 13448 | |
c52df125 | 13449 | |
c52df125 | 13450 | |
1db8e007 | 13451 | |
1db8e007 JT |
13452 | |
13453 | ||
13454 | ||
eec2776c | 13455 | # Only expand once: |
1db8e007 | 13456 | |
1db8e007 | 13457 | |
7083c021 | 13458 | |
eec2776c AJ |
13459 | build_ltdl=$with_included_ltdl |
13460 | if test x"$build_ltdl" = x"yes"; then | |
d8c4154d AJ |
13461 | subdirs="$subdirs libltdl" |
13462 | ||
13463 | fi | |
13464 | if test x"$build_ltdl" = x"yes"; then | |
eec2776c AJ |
13465 | BUILD_LTDL_TRUE= |
13466 | BUILD_LTDL_FALSE='#' | |
13467 | else | |
13468 | BUILD_LTDL_TRUE='#' | |
13469 | BUILD_LTDL_FALSE= | |
13470 | fi | |
7083c021 | 13471 | |
212380e3 | 13472 | |
cfa7b5fd | 13473 | if test "$ac_cv_c_compiler_gnu" = yes; then |
eec2776c | 13474 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall" |
212380e3 | 13475 | fi |
631ef239 | 13476 | |
7083c021 | 13477 | if test "$ac_cv_prog_cc_g" = yes; then |
2a19fc3f | 13478 | IRC_CFLAGS="$IRC_CFLAGS -g" |
7083c021 | 13479 | fi |
7083c021 AC |
13480 | |
13481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 | |
13482 | $as_echo_n "checking for /dev/null... " >&6; } | |
13483 | if test -c /dev/null ; then | |
13484 | ||
13485 | $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h | |
13486 | ||
13487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13488 | $as_echo "yes" >&6; } | |
212380e3 | 13489 | else |
212380e3 | 13490 | |
7083c021 AC |
13491 | $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h |
13492 | ||
13493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5 | |
13494 | $as_echo "no - using devnull.log" >&6; } | |
212380e3 | 13495 | fi |
631ef239 | 13496 | |
7083c021 AC |
13497 | if test ! -z "$CFLAGS"; then |
13498 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
212380e3 | 13499 | fi |
631ef239 | 13500 | |
7083c021 AC |
13501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
13502 | $as_echo_n "checking for library containing strerror... " >&6; } | |
b6d0720c | 13503 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
13504 | $as_echo_n "(cached) " >&6 |
13505 | else | |
13506 | ac_func_search_save_LIBS=$LIBS | |
13507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 13508 | /* end confdefs.h. */ |
7083c021 AC |
13509 | |
13510 | /* Override any GCC internal prototype to avoid an error. | |
13511 | Use char because int might match the return type of a GCC | |
13512 | builtin and then its argument prototype would still apply. */ | |
13513 | #ifdef __cplusplus | |
13514 | extern "C" | |
13515 | #endif | |
13516 | char strerror (); | |
212380e3 AC |
13517 | int |
13518 | main () | |
13519 | { | |
7083c021 | 13520 | return strerror (); |
212380e3 AC |
13521 | ; |
13522 | return 0; | |
13523 | } | |
13524 | _ACEOF | |
7083c021 AC |
13525 | for ac_lib in '' cposix; do |
13526 | if test -z "$ac_lib"; then | |
13527 | ac_res="none required" | |
13528 | else | |
13529 | ac_res=-l$ac_lib | |
13530 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13531 | fi | |
13532 | if ac_fn_c_try_link "$LINENO"; then : | |
13533 | ac_cv_search_strerror=$ac_res | |
13534 | fi | |
13535 | rm -f core conftest.err conftest.$ac_objext \ | |
13536 | conftest$ac_exeext | |
b6d0720c | 13537 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
13538 | break |
13539 | fi | |
13540 | done | |
b6d0720c | 13541 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 | 13542 | |
212380e3 | 13543 | else |
7083c021 AC |
13544 | ac_cv_search_strerror=no |
13545 | fi | |
13546 | rm conftest.$ac_ext | |
13547 | LIBS=$ac_func_search_save_LIBS | |
13548 | fi | |
13549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | |
13550 | $as_echo "$ac_cv_search_strerror" >&6; } | |
13551 | ac_res=$ac_cv_search_strerror | |
13552 | if test "$ac_res" != no; then : | |
13553 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 13554 | |
212380e3 | 13555 | fi |
631ef239 | 13556 | |
7083c021 AC |
13557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
13558 | $as_echo_n "checking for inline... " >&6; } | |
b6d0720c | 13559 | if ${ac_cv_c_inline+:} false; then : |
7083c021 AC |
13560 | $as_echo_n "(cached) " >&6 |
13561 | else | |
13562 | ac_cv_c_inline=no | |
13563 | for ac_kw in inline __inline__ __inline; do | |
13564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13565 | /* end confdefs.h. */ | |
13566 | #ifndef __cplusplus | |
13567 | typedef int foo_t; | |
13568 | static $ac_kw foo_t static_foo () {return 0; } | |
13569 | $ac_kw foo_t foo () {return 0; } | |
13570 | #endif | |
13571 | ||
13572 | _ACEOF | |
13573 | if ac_fn_c_try_compile "$LINENO"; then : | |
13574 | ac_cv_c_inline=$ac_kw | |
13575 | fi | |
631ef239 | 13576 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 | 13577 | test "$ac_cv_c_inline" != no && break |
212380e3 | 13578 | done |
7083c021 AC |
13579 | |
13580 | fi | |
13581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
13582 | $as_echo "$ac_cv_c_inline" >&6; } | |
13583 | ||
13584 | case $ac_cv_c_inline in | |
13585 | inline | yes) ;; | |
13586 | *) | |
13587 | case $ac_cv_c_inline in | |
13588 | no) ac_val=;; | |
13589 | *) ac_val=$ac_cv_c_inline;; | |
13590 | esac | |
13591 | cat >>confdefs.h <<_ACEOF | |
13592 | #ifndef __cplusplus | |
13593 | #define inline $ac_val | |
13594 | #endif | |
13595 | _ACEOF | |
13596 | ;; | |
212380e3 | 13597 | esac |
7083c021 | 13598 | |
7083c021 AC |
13599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
13600 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
13601 | set x ${MAKE-make} | |
13602 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b6d0720c | 13603 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
7083c021 AC |
13604 | $as_echo_n "(cached) " >&6 |
13605 | else | |
13606 | cat >conftest.make <<\_ACEOF | |
13607 | SHELL = /bin/sh | |
13608 | all: | |
13609 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
212380e3 | 13610 | _ACEOF |
b6d0720c | 13611 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
7083c021 AC |
13612 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
13613 | *@@@%%%=?*=@@@%%%*) | |
13614 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
13615 | *) | |
13616 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
631ef239 | 13617 | esac |
7083c021 AC |
13618 | rm -f conftest.make |
13619 | fi | |
13620 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
13621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13622 | $as_echo "yes" >&6; } | |
13623 | SET_MAKE= | |
13624 | else | |
13625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13626 | $as_echo "no" >&6; } | |
c52df125 | 13627 | SET_MAKE="MAKE=${MAKE-make}" |
7083c021 | 13628 | fi |
7083c021 | 13629 | |
7083c021 AC |
13630 | |
13631 | # Extract the first word of "rm", so it can be a program name with args. | |
13632 | set dummy rm; ac_word=$2 | |
13633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13634 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13635 | if ${ac_cv_path_RM+:} false; then : |
7083c021 | 13636 | $as_echo_n "(cached) " >&6 |
212380e3 | 13637 | else |
7083c021 AC |
13638 | case $RM in |
13639 | [\\/]* | ?:[\\/]*) | |
13640 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
13641 | ;; | |
13642 | *) | |
13643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13644 | for as_dir in $PATH | |
13645 | do | |
13646 | IFS=$as_save_IFS | |
13647 | test -z "$as_dir" && as_dir=. | |
13648 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13649 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13650 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
13651 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13652 | break 2 | |
13653 | fi | |
13654 | done | |
13655 | done | |
13656 | IFS=$as_save_IFS | |
212380e3 | 13657 | |
7083c021 AC |
13658 | ;; |
13659 | esac | |
212380e3 | 13660 | fi |
7083c021 AC |
13661 | RM=$ac_cv_path_RM |
13662 | if test -n "$RM"; then | |
13663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
13664 | $as_echo "$RM" >&6; } | |
13665 | else | |
13666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13667 | $as_echo "no" >&6; } | |
212380e3 | 13668 | fi |
631ef239 AC |
13669 | |
13670 | ||
7083c021 AC |
13671 | # Extract the first word of "cp", so it can be a program name with args. |
13672 | set dummy cp; ac_word=$2 | |
13673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13674 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13675 | if ${ac_cv_path_CP+:} false; then : |
7083c021 AC |
13676 | $as_echo_n "(cached) " >&6 |
13677 | else | |
13678 | case $CP in | |
13679 | [\\/]* | ?:[\\/]*) | |
13680 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
13681 | ;; | |
13682 | *) | |
13683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13684 | for as_dir in $PATH | |
13685 | do | |
13686 | IFS=$as_save_IFS | |
13687 | test -z "$as_dir" && as_dir=. | |
13688 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13689 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13690 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
13691 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13692 | break 2 | |
13693 | fi | |
13694 | done | |
13695 | done | |
13696 | IFS=$as_save_IFS | |
631ef239 | 13697 | |
7083c021 AC |
13698 | ;; |
13699 | esac | |
13700 | fi | |
13701 | CP=$ac_cv_path_CP | |
13702 | if test -n "$CP"; then | |
13703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 | |
13704 | $as_echo "$CP" >&6; } | |
13705 | else | |
13706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13707 | $as_echo "no" >&6; } | |
13708 | fi | |
212380e3 AC |
13709 | |
13710 | ||
7083c021 AC |
13711 | # Extract the first word of "mv", so it can be a program name with args. |
13712 | set dummy mv; ac_word=$2 | |
13713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13714 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13715 | if ${ac_cv_path_MV+:} false; then : |
7083c021 | 13716 | $as_echo_n "(cached) " >&6 |
212380e3 | 13717 | else |
7083c021 AC |
13718 | case $MV in |
13719 | [\\/]* | ?:[\\/]*) | |
13720 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
13721 | ;; | |
13722 | *) | |
13723 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13724 | for as_dir in $PATH | |
13725 | do | |
13726 | IFS=$as_save_IFS | |
13727 | test -z "$as_dir" && as_dir=. | |
13728 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13729 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13730 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
13731 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13732 | break 2 | |
13733 | fi | |
13734 | done | |
13735 | done | |
13736 | IFS=$as_save_IFS | |
13737 | ||
13738 | ;; | |
631ef239 | 13739 | esac |
7083c021 AC |
13740 | fi |
13741 | MV=$ac_cv_path_MV | |
13742 | if test -n "$MV"; then | |
13743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
13744 | $as_echo "$MV" >&6; } | |
212380e3 | 13745 | else |
7083c021 AC |
13746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13747 | $as_echo "no" >&6; } | |
212380e3 | 13748 | fi |
631ef239 | 13749 | |
212380e3 | 13750 | |
7083c021 AC |
13751 | # Extract the first word of "ln", so it can be a program name with args. |
13752 | set dummy ln; ac_word=$2 | |
13753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13754 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13755 | if ${ac_cv_path_LN+:} false; then : |
7083c021 | 13756 | $as_echo_n "(cached) " >&6 |
212380e3 | 13757 | else |
7083c021 AC |
13758 | case $LN in |
13759 | [\\/]* | ?:[\\/]*) | |
13760 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
13761 | ;; | |
13762 | *) | |
13763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13764 | for as_dir in $PATH | |
13765 | do | |
13766 | IFS=$as_save_IFS | |
13767 | test -z "$as_dir" && as_dir=. | |
13768 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13769 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13770 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
13771 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13772 | break 2 | |
13773 | fi | |
13774 | done | |
13775 | done | |
13776 | IFS=$as_save_IFS | |
212380e3 | 13777 | |
7083c021 | 13778 | ;; |
631ef239 | 13779 | esac |
7083c021 AC |
13780 | fi |
13781 | LN=$ac_cv_path_LN | |
13782 | if test -n "$LN"; then | |
13783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
13784 | $as_echo "$LN" >&6; } | |
212380e3 | 13785 | else |
7083c021 AC |
13786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13787 | $as_echo "no" >&6; } | |
212380e3 | 13788 | fi |
631ef239 | 13789 | |
7083c021 AC |
13790 | |
13791 | # Extract the first word of "sed", so it can be a program name with args. | |
13792 | set dummy sed; ac_word=$2 | |
13793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13794 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13795 | if ${ac_cv_path_SED+:} false; then : |
7083c021 AC |
13796 | $as_echo_n "(cached) " >&6 |
13797 | else | |
13798 | case $SED in | |
13799 | [\\/]* | ?:[\\/]*) | |
13800 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
13801 | ;; | |
13802 | *) | |
13803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13804 | for as_dir in $PATH | |
13805 | do | |
13806 | IFS=$as_save_IFS | |
13807 | test -z "$as_dir" && as_dir=. | |
13808 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13809 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13810 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
13811 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13812 | break 2 | |
13813 | fi | |
13814 | done | |
212380e3 | 13815 | done |
7083c021 AC |
13816 | IFS=$as_save_IFS |
13817 | ||
13818 | ;; | |
13819 | esac | |
13820 | fi | |
13821 | SED=$ac_cv_path_SED | |
13822 | if test -n "$SED"; then | |
13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
13824 | $as_echo "$SED" >&6; } | |
212380e3 | 13825 | else |
7083c021 AC |
13826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13827 | $as_echo "no" >&6; } | |
13828 | fi | |
212380e3 | 13829 | |
212380e3 | 13830 | |
7083c021 AC |
13831 | # Extract the first word of "ar", so it can be a program name with args. |
13832 | set dummy ar; ac_word=$2 | |
13833 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13834 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13835 | if ${ac_cv_path_AR+:} false; then : |
7083c021 AC |
13836 | $as_echo_n "(cached) " >&6 |
13837 | else | |
13838 | case $AR in | |
13839 | [\\/]* | ?:[\\/]*) | |
13840 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
13841 | ;; | |
13842 | *) | |
13843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13844 | for as_dir in $PATH | |
13845 | do | |
13846 | IFS=$as_save_IFS | |
13847 | test -z "$as_dir" && as_dir=. | |
13848 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13849 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13850 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
13851 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13852 | break 2 | |
13853 | fi | |
13854 | done | |
13855 | done | |
13856 | IFS=$as_save_IFS | |
212380e3 | 13857 | |
7083c021 | 13858 | ;; |
631ef239 | 13859 | esac |
7083c021 AC |
13860 | fi |
13861 | AR=$ac_cv_path_AR | |
13862 | if test -n "$AR"; then | |
13863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
13864 | $as_echo "$AR" >&6; } | |
212380e3 | 13865 | else |
7083c021 AC |
13866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13867 | $as_echo "no" >&6; } | |
212380e3 | 13868 | fi |
631ef239 | 13869 | |
7083c021 AC |
13870 | |
13871 | # Extract the first word of "ld", so it can be a program name with args. | |
13872 | set dummy ld; ac_word=$2 | |
13873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13874 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13875 | if ${ac_cv_path_LD+:} false; then : |
7083c021 | 13876 | $as_echo_n "(cached) " >&6 |
212380e3 | 13877 | else |
7083c021 AC |
13878 | case $LD in |
13879 | [\\/]* | ?:[\\/]*) | |
13880 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
13881 | ;; | |
13882 | *) | |
13883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13884 | for as_dir in $PATH | |
13885 | do | |
13886 | IFS=$as_save_IFS | |
13887 | test -z "$as_dir" && as_dir=. | |
13888 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13889 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13890 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
13891 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13892 | break 2 | |
13893 | fi | |
13894 | done | |
13895 | done | |
13896 | IFS=$as_save_IFS | |
212380e3 | 13897 | |
7083c021 AC |
13898 | ;; |
13899 | esac | |
212380e3 | 13900 | fi |
7083c021 AC |
13901 | LD=$ac_cv_path_LD |
13902 | if test -n "$LD"; then | |
13903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
13904 | $as_echo "$LD" >&6; } | |
13905 | else | |
13906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13907 | $as_echo "no" >&6; } | |
212380e3 | 13908 | fi |
631ef239 | 13909 | |
212380e3 | 13910 | |
7083c021 AC |
13911 | # Extract the first word of "ranlib", so it can be a program name with args. |
13912 | set dummy ranlib; ac_word=$2 | |
13913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13914 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13915 | if ${ac_cv_path_RANLIB+:} false; then : |
7083c021 | 13916 | $as_echo_n "(cached) " >&6 |
212380e3 | 13917 | else |
7083c021 AC |
13918 | case $RANLIB in |
13919 | [\\/]* | ?:[\\/]*) | |
13920 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
13921 | ;; | |
13922 | *) | |
13923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13924 | for as_dir in $PATH | |
13925 | do | |
13926 | IFS=$as_save_IFS | |
13927 | test -z "$as_dir" && as_dir=. | |
13928 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13929 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13930 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" |
13931 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13932 | break 2 | |
13933 | fi | |
13934 | done | |
13935 | done | |
13936 | IFS=$as_save_IFS | |
212380e3 | 13937 | |
7083c021 AC |
13938 | ;; |
13939 | esac | |
13940 | fi | |
13941 | RANLIB=$ac_cv_path_RANLIB | |
13942 | if test -n "$RANLIB"; then | |
13943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
13944 | $as_echo "$RANLIB" >&6; } | |
13945 | else | |
13946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13947 | $as_echo "no" >&6; } | |
212380e3 | 13948 | fi |
631ef239 | 13949 | |
7083c021 AC |
13950 | |
13951 | # Extract the first word of "touch", so it can be a program name with args. | |
13952 | set dummy touch; ac_word=$2 | |
13953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13954 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13955 | if ${ac_cv_path_TOUCH+:} false; then : |
7083c021 AC |
13956 | $as_echo_n "(cached) " >&6 |
13957 | else | |
13958 | case $TOUCH in | |
13959 | [\\/]* | ?:[\\/]*) | |
13960 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
13961 | ;; | |
13962 | *) | |
13963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13964 | for as_dir in $PATH | |
13965 | do | |
13966 | IFS=$as_save_IFS | |
13967 | test -z "$as_dir" && as_dir=. | |
13968 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13969 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13970 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" |
13971 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13972 | break 2 | |
13973 | fi | |
212380e3 | 13974 | done |
7083c021 AC |
13975 | done |
13976 | IFS=$as_save_IFS | |
13977 | ||
13978 | ;; | |
212380e3 | 13979 | esac |
7083c021 AC |
13980 | fi |
13981 | TOUCH=$ac_cv_path_TOUCH | |
13982 | if test -n "$TOUCH"; then | |
13983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 | |
13984 | $as_echo "$TOUCH" >&6; } | |
212380e3 | 13985 | else |
7083c021 AC |
13986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13987 | $as_echo "no" >&6; } | |
13988 | fi | |
212380e3 | 13989 | |
212380e3 | 13990 | |
7083c021 AC |
13991 | |
13992 | for ac_prog in 'bison -y' byacc | |
13993 | do | |
13994 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13995 | set dummy $ac_prog; ac_word=$2 | |
13996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13997 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13998 | if ${ac_cv_prog_YACC+:} false; then : |
7083c021 | 13999 | $as_echo_n "(cached) " >&6 |
212380e3 | 14000 | else |
7083c021 AC |
14001 | if test -n "$YACC"; then |
14002 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
14003 | else | |
14004 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14005 | for as_dir in $PATH | |
14006 | do | |
14007 | IFS=$as_save_IFS | |
14008 | test -z "$as_dir" && as_dir=. | |
14009 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14010 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14011 | ac_cv_prog_YACC="$ac_prog" |
14012 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14013 | break 2 | |
14014 | fi | |
14015 | done | |
14016 | done | |
14017 | IFS=$as_save_IFS | |
212380e3 | 14018 | |
212380e3 AC |
14019 | fi |
14020 | fi | |
7083c021 AC |
14021 | YACC=$ac_cv_prog_YACC |
14022 | if test -n "$YACC"; then | |
14023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
14024 | $as_echo "$YACC" >&6; } | |
14025 | else | |
14026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14027 | $as_echo "no" >&6; } | |
212380e3 | 14028 | fi |
631ef239 AC |
14029 | |
14030 | ||
7083c021 AC |
14031 | test -n "$YACC" && break |
14032 | done | |
14033 | test -n "$YACC" || YACC="yacc" | |
212380e3 AC |
14034 | |
14035 | ||
7083c021 | 14036 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then |
b6d0720c | 14037 | as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5 |
7083c021 | 14038 | fi |
212380e3 | 14039 | |
7083c021 AC |
14040 | for ac_prog in flex lex |
14041 | do | |
14042 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14043 | set dummy $ac_prog; ac_word=$2 | |
14044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14045 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14046 | if ${ac_cv_prog_LEX+:} false; then : |
7083c021 | 14047 | $as_echo_n "(cached) " >&6 |
212380e3 | 14048 | else |
7083c021 AC |
14049 | if test -n "$LEX"; then |
14050 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
212380e3 | 14051 | else |
7083c021 AC |
14052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14053 | for as_dir in $PATH | |
14054 | do | |
14055 | IFS=$as_save_IFS | |
14056 | test -z "$as_dir" && as_dir=. | |
14057 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14058 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14059 | ac_cv_prog_LEX="$ac_prog" |
14060 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14061 | break 2 | |
14062 | fi | |
631ef239 | 14063 | done |
7083c021 AC |
14064 | done |
14065 | IFS=$as_save_IFS | |
631ef239 | 14066 | |
7083c021 AC |
14067 | fi |
14068 | fi | |
14069 | LEX=$ac_cv_prog_LEX | |
14070 | if test -n "$LEX"; then | |
14071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
14072 | $as_echo "$LEX" >&6; } | |
631ef239 | 14073 | else |
7083c021 AC |
14074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14075 | $as_echo "no" >&6; } | |
631ef239 AC |
14076 | fi |
14077 | ||
14078 | ||
7083c021 AC |
14079 | test -n "$LEX" && break |
14080 | done | |
14081 | test -n "$LEX" || LEX=":" | |
212380e3 | 14082 | |
7083c021 AC |
14083 | if test "x$LEX" != "x:"; then |
14084 | cat >conftest.l <<_ACEOF | |
14085 | %% | |
14086 | a { ECHO; } | |
14087 | b { REJECT; } | |
14088 | c { yymore (); } | |
14089 | d { yyless (1); } | |
2eff3833 JT |
14090 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
14091 | yyless ((input () != 0)); } | |
7083c021 AC |
14092 | f { unput (yytext[0]); } |
14093 | . { BEGIN INITIAL; } | |
14094 | %% | |
14095 | #ifdef YYTEXT_POINTER | |
14096 | extern char *yytext; | |
212380e3 | 14097 | #endif |
212380e3 | 14098 | int |
7083c021 | 14099 | main (void) |
212380e3 | 14100 | { |
7083c021 | 14101 | return ! yylex () + ! yywrap (); |
212380e3 AC |
14102 | } |
14103 | _ACEOF | |
7083c021 | 14104 | { { ac_try="$LEX conftest.l" |
631ef239 AC |
14105 | case "(($ac_try" in |
14106 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14107 | *) ac_try_echo=$ac_try;; | |
14108 | esac | |
7083c021 AC |
14109 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
14110 | $as_echo "$ac_try_echo"; } >&5 | |
14111 | (eval "$LEX conftest.l") 2>&5 | |
212380e3 | 14112 | ac_status=$? |
7083c021 AC |
14113 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14114 | test $ac_status = 0; } | |
14115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
14116 | $as_echo_n "checking lex output file root... " >&6; } | |
b6d0720c | 14117 | if ${ac_cv_prog_lex_root+:} false; then : |
7083c021 | 14118 | $as_echo_n "(cached) " >&6 |
212380e3 | 14119 | else |
212380e3 | 14120 | |
7083c021 AC |
14121 | if test -f lex.yy.c; then |
14122 | ac_cv_prog_lex_root=lex.yy | |
14123 | elif test -f lexyy.c; then | |
14124 | ac_cv_prog_lex_root=lexyy | |
14125 | else | |
b6d0720c | 14126 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
7083c021 AC |
14127 | fi |
14128 | fi | |
14129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
14130 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
14131 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
14132 | ||
14133 | if test -z "${LEXLIB+set}"; then | |
14134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
14135 | $as_echo_n "checking lex library... " >&6; } | |
b6d0720c | 14136 | if ${ac_cv_lib_lex+:} false; then : |
7083c021 AC |
14137 | $as_echo_n "(cached) " >&6 |
14138 | else | |
631ef239 | 14139 | |
7083c021 AC |
14140 | ac_save_LIBS=$LIBS |
14141 | ac_cv_lib_lex='none needed' | |
14142 | for ac_lib in '' -lfl -ll; do | |
14143 | LIBS="$ac_lib $ac_save_LIBS" | |
14144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14145 | /* end confdefs.h. */ | |
14146 | `cat $LEX_OUTPUT_ROOT.c` | |
14147 | _ACEOF | |
14148 | if ac_fn_c_try_link "$LINENO"; then : | |
14149 | ac_cv_lib_lex=$ac_lib | |
212380e3 | 14150 | fi |
7083c021 AC |
14151 | rm -f core conftest.err conftest.$ac_objext \ |
14152 | conftest$ac_exeext conftest.$ac_ext | |
14153 | test "$ac_cv_lib_lex" != 'none needed' && break | |
14154 | done | |
14155 | LIBS=$ac_save_LIBS | |
631ef239 | 14156 | |
631ef239 | 14157 | fi |
7083c021 AC |
14158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
14159 | $as_echo "$ac_cv_lib_lex" >&6; } | |
14160 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
14161 | fi | |
14162 | ||
14163 | ||
14164 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
14165 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
b6d0720c | 14166 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
7083c021 | 14167 | $as_echo_n "(cached) " >&6 |
631ef239 | 14168 | else |
7083c021 AC |
14169 | # POSIX says lex can declare yytext either as a pointer or an array; the |
14170 | # default is implementation-dependent. Figure out which it is, since | |
14171 | # not all implementations provide the %pointer and %array declarations. | |
14172 | ac_cv_prog_lex_yytext_pointer=no | |
14173 | ac_save_LIBS=$LIBS | |
14174 | LIBS="$LEXLIB $ac_save_LIBS" | |
14175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14176 | /* end confdefs.h. */ | |
b6d0720c AC |
14177 | |
14178 | #define YYTEXT_POINTER 1 | |
7083c021 AC |
14179 | `cat $LEX_OUTPUT_ROOT.c` |
14180 | _ACEOF | |
14181 | if ac_fn_c_try_link "$LINENO"; then : | |
14182 | ac_cv_prog_lex_yytext_pointer=yes | |
212380e3 | 14183 | fi |
7083c021 AC |
14184 | rm -f core conftest.err conftest.$ac_objext \ |
14185 | conftest$ac_exeext conftest.$ac_ext | |
14186 | LIBS=$ac_save_LIBS | |
14187 | ||
212380e3 | 14188 | fi |
7083c021 AC |
14189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
14190 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
14191 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
212380e3 | 14192 | |
7083c021 AC |
14193 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
14194 | ||
14195 | fi | |
14196 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
14197 | ||
14198 | fi | |
14199 | ||
14200 | if test "$LEX" = ":"; then | |
b6d0720c | 14201 | as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5 |
212380e3 AC |
14202 | fi |
14203 | ||
9f9b7042 NPB |
14204 | # Check whether --enable-fhs-paths was given. |
14205 | if test "${enable_fhs_paths+set}" = set; then : | |
14206 | enableval=$enable_fhs_paths; | |
14207 | else | |
14208 | if test "$libexecdir" = '${exec_prefix}/libexec' && \ | |
14209 | test "$localstatedir" = '${prefix}/var' && \ | |
14210 | test "$libdir" = '${exec_prefix}/lib'; then : | |
14211 | enable_fhs_paths=no | |
14212 | else | |
14213 | enable_fhs_paths=yes | |
14214 | fi | |
14215 | ||
14216 | fi | |
14217 | ||
14218 | if test "x$enable_fhs_paths" = "xyes"; then : | |
14219 | pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}' | |
14220 | rundir=${rundir-'${prefix}/run'} | |
14221 | pkgrundir='${rundir}/${PACKAGE_TARNAME}' | |
14222 | pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}' | |
14223 | else | |
14224 | libexecdir='${bindir}' | |
14225 | pkglibexecdir='${libexecdir}' | |
14226 | rundir='${sysconfdir}' | |
14227 | pkgrundir='${rundir}' | |
7083c021 | 14228 | localstatedir='${prefix}' |
9f9b7042 | 14229 | pkglocalstatedir='${sysconfdir}' |
631ef239 | 14230 | fi |
9f9b7042 NPB |
14231 | pkglibdir='${libdir}/${PACKAGE_TARNAME}' |
14232 | ||
14233 | ||
14234 | ||
14235 | ||
14236 | ||
14237 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
14238 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14239 | last_ac_define_dir=`eval echo $pkglocalstatedir` | |
14240 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 14241 | ac_define_dir_counter=0 |
9f9b7042 NPB |
14242 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
14243 | last_ac_define_dir="$ac_define_dir" | |
14244 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
14245 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
14246 | if test "x$ac_define_dir_counter" = x128; then : | |
14247 | as_fn_error $? "detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5 | |
14248 | break | |
14249 | fi | |
9f9b7042 NPB |
14250 | done |
14251 | PKGLOCALSTATEDIR="$ac_define_dir" | |
14252 | ||
14253 | ||
14254 | cat >>confdefs.h <<_ACEOF | |
14255 | #define PKGLOCALSTATEDIR "$ac_define_dir" | |
14256 | _ACEOF | |
14257 | ||
14258 | ||
14259 | ||
14260 | ||
14261 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
14262 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14263 | last_ac_define_dir=`eval echo $pkglibexecdir` | |
14264 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 14265 | ac_define_dir_counter=0 |
9f9b7042 NPB |
14266 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
14267 | last_ac_define_dir="$ac_define_dir" | |
14268 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
14269 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
14270 | if test "x$ac_define_dir_counter" = x128; then : | |
14271 | as_fn_error $? "detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5 | |
14272 | break | |
14273 | fi | |
9f9b7042 NPB |
14274 | done |
14275 | PKGLIBEXECDIR="$ac_define_dir" | |
14276 | ||
14277 | ||
14278 | cat >>confdefs.h <<_ACEOF | |
14279 | #define PKGLIBEXECDIR "$ac_define_dir" | |
14280 | _ACEOF | |
14281 | ||
14282 | ||
212380e3 | 14283 | |
7083c021 AC |
14284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
14285 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b6d0720c | 14286 | if ${ac_cv_header_stdc+:} false; then : |
7083c021 | 14287 | $as_echo_n "(cached) " >&6 |
212380e3 | 14288 | else |
7083c021 | 14289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 14290 | /* end confdefs.h. */ |
7083c021 AC |
14291 | #include <stdlib.h> |
14292 | #include <stdarg.h> | |
14293 | #include <string.h> | |
14294 | #include <float.h> | |
212380e3 AC |
14295 | |
14296 | int | |
14297 | main () | |
14298 | { | |
7083c021 | 14299 | |
212380e3 AC |
14300 | ; |
14301 | return 0; | |
14302 | } | |
14303 | _ACEOF | |
7083c021 AC |
14304 | if ac_fn_c_try_compile "$LINENO"; then : |
14305 | ac_cv_header_stdc=yes | |
212380e3 | 14306 | else |
7083c021 | 14307 | ac_cv_header_stdc=no |
212380e3 | 14308 | fi |
631ef239 | 14309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14310 | |
7083c021 AC |
14311 | if test $ac_cv_header_stdc = yes; then |
14312 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
14313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14314 | /* end confdefs.h. */ | |
14315 | #include <string.h> | |
14316 | ||
212380e3 | 14317 | _ACEOF |
7083c021 AC |
14318 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14319 | $EGREP "memchr" >/dev/null 2>&1; then : | |
14320 | ||
14321 | else | |
14322 | ac_cv_header_stdc=no | |
14323 | fi | |
14324 | rm -f conftest* | |
212380e3 AC |
14325 | |
14326 | fi | |
14327 | ||
7083c021 AC |
14328 | if test $ac_cv_header_stdc = yes; then |
14329 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
14330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14331 | /* end confdefs.h. */ | |
14332 | #include <stdlib.h> | |
14333 | ||
14334 | _ACEOF | |
14335 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14336 | $EGREP "free" >/dev/null 2>&1; then : | |
212380e3 | 14337 | |
212380e3 | 14338 | else |
7083c021 | 14339 | ac_cv_header_stdc=no |
631ef239 | 14340 | fi |
7083c021 | 14341 | rm -f conftest* |
631ef239 | 14342 | |
7083c021 | 14343 | fi |
212380e3 | 14344 | |
7083c021 AC |
14345 | if test $ac_cv_header_stdc = yes; then |
14346 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
14347 | if test "$cross_compiling" = yes; then : | |
14348 | : | |
212380e3 | 14349 | else |
7083c021 | 14350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 14351 | /* end confdefs.h. */ |
7083c021 AC |
14352 | #include <ctype.h> |
14353 | #include <stdlib.h> | |
14354 | #if ((' ' & 0x0FF) == 0x020) | |
14355 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
14356 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
14357 | #else | |
14358 | # define ISLOWER(c) \ | |
14359 | (('a' <= (c) && (c) <= 'i') \ | |
14360 | || ('j' <= (c) && (c) <= 'r') \ | |
14361 | || ('s' <= (c) && (c) <= 'z')) | |
14362 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
212380e3 | 14363 | #endif |
7083c021 AC |
14364 | |
14365 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
212380e3 AC |
14366 | int |
14367 | main () | |
14368 | { | |
7083c021 AC |
14369 | int i; |
14370 | for (i = 0; i < 256; i++) | |
14371 | if (XOR (islower (i), ISLOWER (i)) | |
14372 | || toupper (i) != TOUPPER (i)) | |
14373 | return 2; | |
212380e3 AC |
14374 | return 0; |
14375 | } | |
14376 | _ACEOF | |
7083c021 | 14377 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 | 14378 | |
7083c021 AC |
14379 | else |
14380 | ac_cv_header_stdc=no | |
631ef239 | 14381 | fi |
7083c021 AC |
14382 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14383 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 14384 | fi |
7083c021 | 14385 | |
212380e3 | 14386 | fi |
212380e3 | 14387 | fi |
7083c021 AC |
14388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
14389 | $as_echo "$ac_cv_header_stdc" >&6; } | |
14390 | if test $ac_cv_header_stdc = yes; then | |
14391 | ||
14392 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
212380e3 AC |
14393 | |
14394 | fi | |
14395 | ||
14396 | ||
7083c021 AC |
14397 | 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 |
14398 | do : | |
14399 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14400 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
b6d0720c | 14401 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
14402 | cat >>confdefs.h <<_ACEOF |
14403 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14404 | _ACEOF | |
212380e3 | 14405 | |
212380e3 AC |
14406 | fi |
14407 | ||
7083c021 | 14408 | done |
212380e3 AC |
14409 | |
14410 | ||
212380e3 | 14411 | |
7083c021 AC |
14412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
14413 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
b6d0720c | 14414 | if ${ac_cv_c_const+:} false; then : |
7083c021 AC |
14415 | $as_echo_n "(cached) " >&6 |
14416 | else | |
14417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14418 | /* end confdefs.h. */ | |
212380e3 | 14419 | |
7083c021 AC |
14420 | int |
14421 | main () | |
14422 | { | |
2eff3833 | 14423 | |
7083c021 | 14424 | #ifndef __cplusplus |
2eff3833 | 14425 | /* Ultrix mips cc rejects this sort of thing. */ |
7083c021 | 14426 | typedef int charset[2]; |
2eff3833 | 14427 | const charset cs = { 0, 0 }; |
7083c021 AC |
14428 | /* SunOS 4.1.1 cc rejects this. */ |
14429 | char const *const *pcpcc; | |
14430 | char **ppc; | |
14431 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14432 | struct point {int x, y;}; | |
14433 | static struct point const zero = {0,0}; | |
14434 | /* AIX XL C 1.02.0.0 rejects this. | |
14435 | It does not let you subtract one const X* pointer from another in | |
14436 | an arm of an if-expression whose if-part is not a constant | |
14437 | expression */ | |
14438 | const char *g = "string"; | |
14439 | pcpcc = &g + (g ? g-g : 0); | |
14440 | /* HPUX 7.0 cc rejects these. */ | |
14441 | ++pcpcc; | |
14442 | ppc = (char**) pcpcc; | |
14443 | pcpcc = (char const *const *) ppc; | |
2eff3833 JT |
14444 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
14445 | char tx; | |
14446 | char *t = &tx; | |
7083c021 | 14447 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
212380e3 | 14448 | |
7083c021 AC |
14449 | *t++ = 0; |
14450 | if (s) return 0; | |
14451 | } | |
14452 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14453 | int x[] = {25, 17}; | |
14454 | const int *foo = &x[0]; | |
14455 | ++foo; | |
14456 | } | |
14457 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14458 | typedef const int *iptr; | |
14459 | iptr p = 0; | |
14460 | ++p; | |
14461 | } | |
2eff3833 | 14462 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
7083c021 | 14463 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
2eff3833 JT |
14464 | struct s { int j; const int *ap[3]; } bx; |
14465 | struct s *b = &bx; b->j = 5; | |
7083c021 AC |
14466 | } |
14467 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14468 | const int foo = 10; | |
14469 | if (!foo) return 0; | |
14470 | } | |
14471 | return !cs[0] && !zero.x; | |
14472 | #endif | |
212380e3 | 14473 | |
7083c021 AC |
14474 | ; |
14475 | return 0; | |
14476 | } | |
212380e3 | 14477 | _ACEOF |
7083c021 AC |
14478 | if ac_fn_c_try_compile "$LINENO"; then : |
14479 | ac_cv_c_const=yes | |
212380e3 | 14480 | else |
7083c021 | 14481 | ac_cv_c_const=no |
212380e3 | 14482 | fi |
631ef239 | 14483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14484 | fi |
7083c021 AC |
14485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
14486 | $as_echo "$ac_cv_c_const" >&6; } | |
14487 | if test $ac_cv_c_const = no; then | |
212380e3 | 14488 | |
7083c021 | 14489 | $as_echo "#define const /**/" >>confdefs.h |
212380e3 AC |
14490 | |
14491 | fi | |
14492 | ||
7083c021 AC |
14493 | if test "$ac_cv_header_machine_endian_h" = "no" ; then |
14494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
14495 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 14496 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 | 14497 | $as_echo_n "(cached) " >&6 |
212380e3 | 14498 | else |
7083c021 AC |
14499 | ac_cv_c_bigendian=unknown |
14500 | # See if we're dealing with a universal compiler. | |
14501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14502 | /* end confdefs.h. */ | |
14503 | #ifndef __APPLE_CC__ | |
14504 | not a universal capable compiler | |
14505 | #endif | |
14506 | typedef int dummy; | |
14507 | ||
14508 | _ACEOF | |
14509 | if ac_fn_c_try_compile "$LINENO"; then : | |
14510 | ||
14511 | # Check for potential -arch flags. It is not universal unless | |
14512 | # there are at least two -arch flags with different values. | |
14513 | ac_arch= | |
14514 | ac_prev= | |
14515 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
14516 | if test -n "$ac_prev"; then | |
14517 | case $ac_word in | |
14518 | i?86 | x86_64 | ppc | ppc64) | |
14519 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
14520 | ac_arch=$ac_word | |
14521 | else | |
14522 | ac_cv_c_bigendian=universal | |
14523 | break | |
14524 | fi | |
14525 | ;; | |
14526 | esac | |
14527 | ac_prev= | |
14528 | elif test "x$ac_word" = "x-arch"; then | |
14529 | ac_prev=arch | |
14530 | fi | |
14531 | done | |
14532 | fi | |
14533 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14534 | if test $ac_cv_c_bigendian = unknown; then | |
14535 | # See if sys/param.h defines the BYTE_ORDER macro. | |
14536 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
14537 | /* end confdefs.h. */ |
14538 | #include <sys/types.h> | |
7083c021 | 14539 | #include <sys/param.h> |
212380e3 AC |
14540 | |
14541 | int | |
14542 | main () | |
14543 | { | |
7083c021 AC |
14544 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
14545 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
14546 | && LITTLE_ENDIAN) | |
14547 | bogus endian macros | |
14548 | #endif | |
212380e3 AC |
14549 | |
14550 | ; | |
14551 | return 0; | |
14552 | } | |
14553 | _ACEOF | |
7083c021 | 14554 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 14555 | # It does; now see whether it defined to BIG_ENDIAN or not. |
7083c021 | 14556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
14557 | /* end confdefs.h. */ |
14558 | #include <sys/types.h> | |
7083c021 | 14559 | #include <sys/param.h> |
212380e3 AC |
14560 | |
14561 | int | |
14562 | main () | |
14563 | { | |
14564 | #if BYTE_ORDER != BIG_ENDIAN | |
7083c021 AC |
14565 | not big endian |
14566 | #endif | |
212380e3 AC |
14567 | |
14568 | ; | |
14569 | return 0; | |
14570 | } | |
14571 | _ACEOF | |
7083c021 | 14572 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
14573 | ac_cv_c_bigendian=yes |
14574 | else | |
7083c021 | 14575 | ac_cv_c_bigendian=no |
212380e3 | 14576 | fi |
631ef239 | 14577 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
14578 | fi |
14579 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14580 | fi | |
14581 | if test $ac_cv_c_bigendian = unknown; then | |
14582 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
14583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14584 | /* end confdefs.h. */ | |
14585 | #include <limits.h> | |
212380e3 | 14586 | |
7083c021 AC |
14587 | int |
14588 | main () | |
14589 | { | |
14590 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
14591 | bogus endian macros | |
14592 | #endif | |
14593 | ||
14594 | ; | |
14595 | return 0; | |
14596 | } | |
212380e3 | 14597 | _ACEOF |
7083c021 AC |
14598 | if ac_fn_c_try_compile "$LINENO"; then : |
14599 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
14600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 14601 | /* end confdefs.h. */ |
7083c021 AC |
14602 | #include <limits.h> |
14603 | ||
212380e3 AC |
14604 | int |
14605 | main () | |
14606 | { | |
7083c021 AC |
14607 | #ifndef _BIG_ENDIAN |
14608 | not big endian | |
14609 | #endif | |
14610 | ||
212380e3 AC |
14611 | ; |
14612 | return 0; | |
14613 | } | |
14614 | _ACEOF | |
7083c021 | 14615 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 14616 | ac_cv_c_bigendian=yes |
7083c021 AC |
14617 | else |
14618 | ac_cv_c_bigendian=no | |
212380e3 | 14619 | fi |
7083c021 | 14620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14621 | fi |
7083c021 AC |
14622 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14623 | fi | |
14624 | if test $ac_cv_c_bigendian = unknown; then | |
14625 | # Compile a test program. | |
14626 | if test "$cross_compiling" = yes; then : | |
14627 | # Try to guess by grepping values from an object file. | |
14628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14629 | /* end confdefs.h. */ | |
14630 | short int ascii_mm[] = | |
14631 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
14632 | short int ascii_ii[] = | |
14633 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
14634 | int use_ascii (int i) { | |
14635 | return ascii_mm[i] + ascii_ii[i]; | |
14636 | } | |
14637 | short int ebcdic_ii[] = | |
14638 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
14639 | short int ebcdic_mm[] = | |
14640 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
14641 | int use_ebcdic (int i) { | |
14642 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
14643 | } | |
14644 | extern int foo; | |
631ef239 | 14645 | |
7083c021 AC |
14646 | int |
14647 | main () | |
14648 | { | |
14649 | return use_ascii (foo) == use_ebcdic (foo); | |
14650 | ; | |
14651 | return 0; | |
14652 | } | |
14653 | _ACEOF | |
14654 | if ac_fn_c_try_compile "$LINENO"; then : | |
14655 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
14656 | ac_cv_c_bigendian=yes | |
14657 | fi | |
14658 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
14659 | if test "$ac_cv_c_bigendian" = unknown; then | |
14660 | ac_cv_c_bigendian=no | |
14661 | else | |
14662 | # finding both strings is unlikely to happen, but who knows? | |
14663 | ac_cv_c_bigendian=unknown | |
14664 | fi | |
14665 | fi | |
212380e3 | 14666 | fi |
631ef239 | 14667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14668 | else |
7083c021 | 14669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 14670 | /* end confdefs.h. */ |
631ef239 | 14671 | $ac_includes_default |
212380e3 AC |
14672 | int |
14673 | main () | |
14674 | { | |
631ef239 | 14675 | |
7083c021 AC |
14676 | /* Are we little or big endian? From Harbison&Steele. */ |
14677 | union | |
14678 | { | |
14679 | long int l; | |
14680 | char c[sizeof (long int)]; | |
14681 | } u; | |
14682 | u.l = 1; | |
14683 | return u.c[sizeof (long int) - 1] == 1; | |
631ef239 AC |
14684 | |
14685 | ; | |
14686 | return 0; | |
212380e3 AC |
14687 | } |
14688 | _ACEOF | |
7083c021 | 14689 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
14690 | ac_cv_c_bigendian=no |
14691 | else | |
7083c021 | 14692 | ac_cv_c_bigendian=yes |
212380e3 | 14693 | fi |
7083c021 AC |
14694 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14695 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 14696 | fi |
631ef239 | 14697 | |
7083c021 | 14698 | fi |
212380e3 | 14699 | fi |
7083c021 AC |
14700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
14701 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
14702 | case $ac_cv_c_bigendian in #( | |
14703 | yes) | |
14704 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
14705 | ;; #( | |
14706 | no) | |
14707 | ;; #( | |
14708 | universal) | |
14709 | ||
14710 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
14711 | ||
14712 | ;; #( | |
14713 | *) | |
b6d0720c | 14714 | as_fn_error $? "unknown endianness |
7083c021 AC |
14715 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
14716 | esac | |
631ef239 | 14717 | |
212380e3 | 14718 | fi |
7083c021 | 14719 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
b6d0720c | 14720 | if test "x$ac_cv_type_pid_t" = xyes; then : |
212380e3 | 14721 | |
7083c021 | 14722 | else |
212380e3 | 14723 | |
7083c021 AC |
14724 | cat >>confdefs.h <<_ACEOF |
14725 | #define pid_t int | |
14726 | _ACEOF | |
212380e3 | 14727 | |
212380e3 | 14728 | fi |
7083c021 AC |
14729 | |
14730 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
b6d0720c | 14731 | if test "x$ac_cv_type_size_t" = xyes; then : |
7083c021 | 14732 | |
212380e3 | 14733 | else |
7083c021 AC |
14734 | |
14735 | cat >>confdefs.h <<_ACEOF | |
14736 | #define size_t unsigned int | |
212380e3 | 14737 | _ACEOF |
7083c021 AC |
14738 | |
14739 | fi | |
14740 | ||
14741 | # The cast to long int works around a bug in the HP C Compiler | |
14742 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14743 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14744 | # This bug is HP SR number 8606223364. | |
14745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
14746 | $as_echo_n "checking size of short... " >&6; } | |
b6d0720c | 14747 | if ${ac_cv_sizeof_short+:} false; then : |
7083c021 | 14748 | $as_echo_n "(cached) " >&6 |
212380e3 | 14749 | else |
7083c021 AC |
14750 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
14751 | ||
14752 | else | |
14753 | if test "$ac_cv_type_short" = yes; then | |
14754 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14755 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14756 | as_fn_error 77 "cannot compute sizeof (short) |
14757 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14758 | else |
14759 | ac_cv_sizeof_short=0 | |
14760 | fi | |
14761 | fi | |
212380e3 | 14762 | |
212380e3 | 14763 | fi |
7083c021 AC |
14764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
14765 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
631ef239 | 14766 | |
212380e3 | 14767 | |
7083c021 AC |
14768 | |
14769 | cat >>confdefs.h <<_ACEOF | |
14770 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
212380e3 | 14771 | _ACEOF |
7083c021 AC |
14772 | |
14773 | ||
14774 | # The cast to long int works around a bug in the HP C Compiler | |
14775 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14776 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14777 | # This bug is HP SR number 8606223364. | |
14778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
14779 | $as_echo_n "checking size of int... " >&6; } | |
b6d0720c | 14780 | if ${ac_cv_sizeof_int+:} false; then : |
7083c021 AC |
14781 | $as_echo_n "(cached) " >&6 |
14782 | else | |
14783 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
14784 | ||
14785 | else | |
14786 | if test "$ac_cv_type_int" = yes; then | |
14787 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14788 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14789 | as_fn_error 77 "cannot compute sizeof (int) |
14790 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14791 | else |
14792 | ac_cv_sizeof_int=0 | |
14793 | fi | |
14794 | fi | |
14795 | ||
14796 | fi | |
14797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
14798 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
14799 | ||
14800 | ||
14801 | ||
14802 | cat >>confdefs.h <<_ACEOF | |
14803 | #define SIZEOF_INT $ac_cv_sizeof_int | |
212380e3 | 14804 | _ACEOF |
7083c021 AC |
14805 | |
14806 | ||
14807 | # The cast to long int works around a bug in the HP C Compiler | |
14808 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14809 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14810 | # This bug is HP SR number 8606223364. | |
14811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
14812 | $as_echo_n "checking size of long... " >&6; } | |
b6d0720c | 14813 | if ${ac_cv_sizeof_long+:} false; then : |
7083c021 | 14814 | $as_echo_n "(cached) " >&6 |
212380e3 | 14815 | else |
7083c021 | 14816 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
212380e3 | 14817 | |
7083c021 AC |
14818 | else |
14819 | if test "$ac_cv_type_long" = yes; then | |
14820 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14821 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14822 | as_fn_error 77 "cannot compute sizeof (long) |
14823 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14824 | else |
14825 | ac_cv_sizeof_long=0 | |
14826 | fi | |
212380e3 | 14827 | fi |
631ef239 | 14828 | |
7083c021 AC |
14829 | fi |
14830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
14831 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
212380e3 | 14832 | |
631ef239 | 14833 | |
7083c021 AC |
14834 | |
14835 | cat >>confdefs.h <<_ACEOF | |
14836 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
14837 | _ACEOF | |
14838 | ||
14839 | ||
14840 | # The cast to long int works around a bug in the HP C Compiler | |
14841 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14842 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14843 | # This bug is HP SR number 8606223364. | |
14844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
14845 | $as_echo_n "checking size of long long... " >&6; } | |
b6d0720c | 14846 | if ${ac_cv_sizeof_long_long+:} false; then : |
7083c021 AC |
14847 | $as_echo_n "(cached) " >&6 |
14848 | else | |
14849 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
14850 | ||
212380e3 | 14851 | else |
7083c021 AC |
14852 | if test "$ac_cv_type_long_long" = yes; then |
14853 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14854 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14855 | as_fn_error 77 "cannot compute sizeof (long long) |
14856 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14857 | else |
14858 | ac_cv_sizeof_long_long=0 | |
14859 | fi | |
212380e3 | 14860 | fi |
212380e3 AC |
14861 | |
14862 | fi | |
7083c021 AC |
14863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
14864 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
212380e3 AC |
14865 | |
14866 | ||
14867 | ||
7083c021 AC |
14868 | cat >>confdefs.h <<_ACEOF |
14869 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
14870 | _ACEOF | |
212380e3 | 14871 | |
212380e3 | 14872 | |
212380e3 | 14873 | |
7083c021 AC |
14874 | |
14875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
14876 | $as_echo_n "checking for library containing socket... " >&6; } | |
b6d0720c | 14877 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
14878 | $as_echo_n "(cached) " >&6 |
14879 | else | |
14880 | ac_func_search_save_LIBS=$LIBS | |
14881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 14882 | /* end confdefs.h. */ |
7083c021 AC |
14883 | |
14884 | /* Override any GCC internal prototype to avoid an error. | |
14885 | Use char because int might match the return type of a GCC | |
14886 | builtin and then its argument prototype would still apply. */ | |
14887 | #ifdef __cplusplus | |
14888 | extern "C" | |
14889 | #endif | |
14890 | char socket (); | |
212380e3 AC |
14891 | int |
14892 | main () | |
14893 | { | |
7083c021 | 14894 | return socket (); |
212380e3 AC |
14895 | ; |
14896 | return 0; | |
14897 | } | |
14898 | _ACEOF | |
7083c021 AC |
14899 | for ac_lib in '' socket; do |
14900 | if test -z "$ac_lib"; then | |
14901 | ac_res="none required" | |
14902 | else | |
14903 | ac_res=-l$ac_lib | |
14904 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14905 | fi | |
14906 | if ac_fn_c_try_link "$LINENO"; then : | |
14907 | ac_cv_search_socket=$ac_res | |
14908 | fi | |
14909 | rm -f core conftest.err conftest.$ac_objext \ | |
14910 | conftest$ac_exeext | |
b6d0720c | 14911 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
14912 | break |
14913 | fi | |
14914 | done | |
b6d0720c | 14915 | if ${ac_cv_search_socket+:} false; then : |
212380e3 AC |
14916 | |
14917 | else | |
7083c021 AC |
14918 | ac_cv_search_socket=no |
14919 | fi | |
14920 | rm conftest.$ac_ext | |
14921 | LIBS=$ac_func_search_save_LIBS | |
14922 | fi | |
14923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
14924 | $as_echo "$ac_cv_search_socket" >&6; } | |
14925 | ac_res=$ac_cv_search_socket | |
14926 | if test "$ac_res" != no; then : | |
14927 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 14928 | |
7083c021 | 14929 | else |
b6d0720c | 14930 | as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5 |
212380e3 | 14931 | fi |
631ef239 | 14932 | |
212380e3 | 14933 | |
7083c021 AC |
14934 | if test x"$SUN" = xyes; then |
14935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 | |
14936 | $as_echo_n "checking for library containing inet_ntoa... " >&6; } | |
b6d0720c | 14937 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
14938 | $as_echo_n "(cached) " >&6 |
14939 | else | |
14940 | ac_func_search_save_LIBS=$LIBS | |
14941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 14942 | /* end confdefs.h. */ |
7083c021 AC |
14943 | |
14944 | /* Override any GCC internal prototype to avoid an error. | |
14945 | Use char because int might match the return type of a GCC | |
14946 | builtin and then its argument prototype would still apply. */ | |
14947 | #ifdef __cplusplus | |
14948 | extern "C" | |
14949 | #endif | |
14950 | char inet_ntoa (); | |
212380e3 AC |
14951 | int |
14952 | main () | |
14953 | { | |
7083c021 | 14954 | return inet_ntoa (); |
212380e3 AC |
14955 | ; |
14956 | return 0; | |
14957 | } | |
14958 | _ACEOF | |
7083c021 AC |
14959 | for ac_lib in '' nsl; do |
14960 | if test -z "$ac_lib"; then | |
14961 | ac_res="none required" | |
14962 | else | |
14963 | ac_res=-l$ac_lib | |
14964 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14965 | fi | |
14966 | if ac_fn_c_try_link "$LINENO"; then : | |
14967 | ac_cv_search_inet_ntoa=$ac_res | |
14968 | fi | |
14969 | rm -f core conftest.err conftest.$ac_objext \ | |
14970 | conftest$ac_exeext | |
b6d0720c | 14971 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
14972 | break |
14973 | fi | |
14974 | done | |
b6d0720c | 14975 | if ${ac_cv_search_inet_ntoa+:} false; then : |
212380e3 AC |
14976 | |
14977 | else | |
7083c021 AC |
14978 | ac_cv_search_inet_ntoa=no |
14979 | fi | |
14980 | rm conftest.$ac_ext | |
14981 | LIBS=$ac_func_search_save_LIBS | |
14982 | fi | |
14983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 | |
14984 | $as_echo "$ac_cv_search_inet_ntoa" >&6; } | |
14985 | ac_res=$ac_cv_search_inet_ntoa | |
14986 | if test "$ac_res" != no; then : | |
14987 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 14988 | |
7083c021 | 14989 | else |
b6d0720c | 14990 | as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5 |
212380e3 | 14991 | fi |
631ef239 | 14992 | |
7083c021 | 14993 | fi |
212380e3 | 14994 | |
7083c021 AC |
14995 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
14996 | #include <sys/socket.h> | |
14997 | " | |
b6d0720c | 14998 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
212380e3 AC |
14999 | |
15000 | else | |
15001 | ||
7083c021 | 15002 | $as_echo "#define socklen_t unsigned int" >>confdefs.h |
212380e3 | 15003 | |
7083c021 | 15004 | fi |
212380e3 AC |
15005 | |
15006 | ||
7083c021 AC |
15007 | # Check whether --enable-ipv6 was given. |
15008 | if test "${enable_ipv6+set}" = set; then : | |
15009 | enableval=$enable_ipv6; ipv6=$enableval | |
212380e3 | 15010 | else |
7083c021 AC |
15011 | ipv6=no |
15012 | fi | |
212380e3 | 15013 | |
212380e3 | 15014 | |
7083c021 AC |
15015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
15016 | $as_echo_n "checking for library containing crypt... " >&6; } | |
b6d0720c | 15017 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
15018 | $as_echo_n "(cached) " >&6 |
15019 | else | |
15020 | ac_func_search_save_LIBS=$LIBS | |
15021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15022 | /* end confdefs.h. */ | |
212380e3 | 15023 | |
631ef239 AC |
15024 | /* Override any GCC internal prototype to avoid an error. |
15025 | Use char because int might match the return type of a GCC | |
15026 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15027 | #ifdef __cplusplus |
15028 | extern "C" | |
212380e3 | 15029 | #endif |
7083c021 | 15030 | char crypt (); |
212380e3 AC |
15031 | int |
15032 | main () | |
15033 | { | |
7083c021 | 15034 | return crypt (); |
212380e3 AC |
15035 | ; |
15036 | return 0; | |
15037 | } | |
15038 | _ACEOF | |
7083c021 AC |
15039 | for ac_lib in '' crypt descrypt; do |
15040 | if test -z "$ac_lib"; then | |
15041 | ac_res="none required" | |
15042 | else | |
15043 | ac_res=-l$ac_lib | |
15044 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15045 | fi | |
15046 | if ac_fn_c_try_link "$LINENO"; then : | |
15047 | ac_cv_search_crypt=$ac_res | |
15048 | fi | |
15049 | rm -f core conftest.err conftest.$ac_objext \ | |
15050 | conftest$ac_exeext | |
b6d0720c | 15051 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
15052 | break |
15053 | fi | |
15054 | done | |
b6d0720c | 15055 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 | 15056 | |
212380e3 | 15057 | else |
7083c021 AC |
15058 | ac_cv_search_crypt=no |
15059 | fi | |
15060 | rm conftest.$ac_ext | |
15061 | LIBS=$ac_func_search_save_LIBS | |
15062 | fi | |
15063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | |
15064 | $as_echo "$ac_cv_search_crypt" >&6; } | |
15065 | ac_res=$ac_cv_search_crypt | |
15066 | if test "$ac_res" != no; then : | |
15067 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 15068 | |
212380e3 | 15069 | fi |
631ef239 | 15070 | |
7083c021 AC |
15071 | |
15072 | CRYPT_LIB=$ac_cv_search_crypt | |
15073 | ||
15074 | if test "$CRYPT_LIB" = "none required"; then | |
15075 | unset CRYPT_LIB | |
15076 | elif test "$CRYPT_LIB" = no; then | |
15077 | unset CRYPT_LIB | |
212380e3 | 15078 | fi |
7083c021 AC |
15079 | |
15080 | ||
15081 | ||
15082 | if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then | |
15083 | VICONF=viconf | |
15084 | else | |
15085 | VICONF="" | |
15086 | fi | |
15087 | ||
15088 | ||
15089 | ||
7083c021 AC |
15090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
15091 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 15092 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 AC |
15093 | $as_echo_n "(cached) " >&6 |
15094 | else | |
15095 | ac_cv_c_bigendian=unknown | |
15096 | # See if we're dealing with a universal compiler. | |
15097 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15098 | /* end confdefs.h. */ | |
15099 | #ifndef __APPLE_CC__ | |
15100 | not a universal capable compiler | |
15101 | #endif | |
15102 | typedef int dummy; | |
15103 | ||
15104 | _ACEOF | |
15105 | if ac_fn_c_try_compile "$LINENO"; then : | |
15106 | ||
15107 | # Check for potential -arch flags. It is not universal unless | |
15108 | # there are at least two -arch flags with different values. | |
15109 | ac_arch= | |
15110 | ac_prev= | |
15111 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
15112 | if test -n "$ac_prev"; then | |
15113 | case $ac_word in | |
15114 | i?86 | x86_64 | ppc | ppc64) | |
15115 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
15116 | ac_arch=$ac_word | |
15117 | else | |
15118 | ac_cv_c_bigendian=universal | |
15119 | break | |
15120 | fi | |
15121 | ;; | |
15122 | esac | |
15123 | ac_prev= | |
15124 | elif test "x$ac_word" = "x-arch"; then | |
15125 | ac_prev=arch | |
15126 | fi | |
15127 | done | |
212380e3 | 15128 | fi |
7083c021 AC |
15129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15130 | if test $ac_cv_c_bigendian = unknown; then | |
15131 | # See if sys/param.h defines the BYTE_ORDER macro. | |
15132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15133 | /* end confdefs.h. */ | |
15134 | #include <sys/types.h> | |
15135 | #include <sys/param.h> | |
15136 | ||
15137 | int | |
15138 | main () | |
15139 | { | |
15140 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
15141 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
15142 | && LITTLE_ENDIAN) | |
15143 | bogus endian macros | |
15144 | #endif | |
15145 | ||
15146 | ; | |
15147 | return 0; | |
15148 | } | |
15149 | _ACEOF | |
15150 | if ac_fn_c_try_compile "$LINENO"; then : | |
15151 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
15152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15153 | /* end confdefs.h. */ | |
15154 | #include <sys/types.h> | |
15155 | #include <sys/param.h> | |
15156 | ||
15157 | int | |
15158 | main () | |
15159 | { | |
15160 | #if BYTE_ORDER != BIG_ENDIAN | |
15161 | not big endian | |
15162 | #endif | |
212380e3 | 15163 | |
7083c021 AC |
15164 | ; |
15165 | return 0; | |
15166 | } | |
15167 | _ACEOF | |
15168 | if ac_fn_c_try_compile "$LINENO"; then : | |
15169 | ac_cv_c_bigendian=yes | |
212380e3 | 15170 | else |
7083c021 AC |
15171 | ac_cv_c_bigendian=no |
15172 | fi | |
15173 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15174 | fi | |
15175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15176 | fi | |
15177 | if test $ac_cv_c_bigendian = unknown; then | |
15178 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
15179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15180 | /* end confdefs.h. */ | |
15181 | #include <limits.h> | |
15182 | ||
15183 | int | |
15184 | main () | |
15185 | { | |
15186 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
15187 | bogus endian macros | |
15188 | #endif | |
15189 | ||
15190 | ; | |
15191 | return 0; | |
15192 | } | |
212380e3 | 15193 | _ACEOF |
7083c021 AC |
15194 | if ac_fn_c_try_compile "$LINENO"; then : |
15195 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
15196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 15197 | /* end confdefs.h. */ |
7083c021 AC |
15198 | #include <limits.h> |
15199 | ||
212380e3 AC |
15200 | int |
15201 | main () | |
15202 | { | |
7083c021 AC |
15203 | #ifndef _BIG_ENDIAN |
15204 | not big endian | |
15205 | #endif | |
15206 | ||
212380e3 AC |
15207 | ; |
15208 | return 0; | |
15209 | } | |
15210 | _ACEOF | |
7083c021 AC |
15211 | if ac_fn_c_try_compile "$LINENO"; then : |
15212 | ac_cv_c_bigendian=yes | |
212380e3 | 15213 | else |
7083c021 | 15214 | ac_cv_c_bigendian=no |
212380e3 | 15215 | fi |
631ef239 | 15216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 15217 | fi |
7083c021 AC |
15218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15219 | fi | |
15220 | if test $ac_cv_c_bigendian = unknown; then | |
15221 | # Compile a test program. | |
15222 | if test "$cross_compiling" = yes; then : | |
15223 | # Try to guess by grepping values from an object file. | |
15224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15225 | /* end confdefs.h. */ | |
15226 | short int ascii_mm[] = | |
15227 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
15228 | short int ascii_ii[] = | |
15229 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
15230 | int use_ascii (int i) { | |
15231 | return ascii_mm[i] + ascii_ii[i]; | |
15232 | } | |
15233 | short int ebcdic_ii[] = | |
15234 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
15235 | short int ebcdic_mm[] = | |
15236 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
15237 | int use_ebcdic (int i) { | |
15238 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
15239 | } | |
15240 | extern int foo; | |
212380e3 | 15241 | |
7083c021 AC |
15242 | int |
15243 | main () | |
15244 | { | |
15245 | return use_ascii (foo) == use_ebcdic (foo); | |
15246 | ; | |
15247 | return 0; | |
15248 | } | |
212380e3 | 15249 | _ACEOF |
7083c021 AC |
15250 | if ac_fn_c_try_compile "$LINENO"; then : |
15251 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
15252 | ac_cv_c_bigendian=yes | |
15253 | fi | |
15254 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
15255 | if test "$ac_cv_c_bigendian" = unknown; then | |
15256 | ac_cv_c_bigendian=no | |
15257 | else | |
15258 | # finding both strings is unlikely to happen, but who knows? | |
15259 | ac_cv_c_bigendian=unknown | |
15260 | fi | |
15261 | fi | |
15262 | fi | |
15263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15264 | else | |
15265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
15266 | /* end confdefs.h. */ |
15267 | $ac_includes_default | |
15268 | int | |
15269 | main () | |
15270 | { | |
7083c021 AC |
15271 | |
15272 | /* Are we little or big endian? From Harbison&Steele. */ | |
15273 | union | |
15274 | { | |
15275 | long int l; | |
15276 | char c[sizeof (long int)]; | |
15277 | } u; | |
15278 | u.l = 1; | |
15279 | return u.c[sizeof (long int) - 1] == 1; | |
15280 | ||
212380e3 AC |
15281 | ; |
15282 | return 0; | |
15283 | } | |
15284 | _ACEOF | |
7083c021 AC |
15285 | if ac_fn_c_try_run "$LINENO"; then : |
15286 | ac_cv_c_bigendian=no | |
212380e3 | 15287 | else |
7083c021 | 15288 | ac_cv_c_bigendian=yes |
212380e3 | 15289 | fi |
7083c021 AC |
15290 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15291 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 15292 | fi |
212380e3 | 15293 | |
7083c021 AC |
15294 | fi |
15295 | fi | |
15296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
15297 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
15298 | case $ac_cv_c_bigendian in #( | |
15299 | yes) | |
15300 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
15301 | ;; #( | |
15302 | no) | |
15303 | ;; #( | |
15304 | universal) | |
212380e3 | 15305 | |
7083c021 | 15306 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
212380e3 | 15307 | |
7083c021 AC |
15308 | ;; #( |
15309 | *) | |
b6d0720c | 15310 | as_fn_error $? "unknown endianness |
7083c021 AC |
15311 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
15312 | esac | |
212380e3 | 15313 | |
212380e3 | 15314 | |
7083c021 | 15315 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
b6d0720c | 15316 | if test "x$ac_cv_header_stdarg_h" = xyes; then : |
212380e3 | 15317 | |
7083c021 | 15318 | else |
b6d0720c | 15319 | as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5 |
7083c021 | 15320 | fi |
212380e3 AC |
15321 | |
15322 | ||
7083c021 AC |
15323 | for ac_func in strlcat strlcpy |
15324 | do : | |
15325 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15326 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 15327 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7083c021 AC |
15328 | cat >>confdefs.h <<_ACEOF |
15329 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
212380e3 AC |
15330 | _ACEOF |
15331 | ||
212380e3 | 15332 | fi |
7083c021 | 15333 | done |
212380e3 AC |
15334 | |
15335 | ||
7083c021 | 15336 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" |
b6d0720c | 15337 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
212380e3 | 15338 | |
212380e3 | 15339 | else |
212380e3 | 15340 | |
7083c021 | 15341 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
b6d0720c | 15342 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
212380e3 | 15343 | |
631ef239 | 15344 | |
7083c021 | 15345 | $as_echo "#define u_int32_t uint32_t" >>confdefs.h |
212380e3 | 15346 | |
212380e3 | 15347 | |
7083c021 | 15348 | else |
212380e3 | 15349 | |
7083c021 AC |
15350 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 |
15351 | $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
212380e3 | 15352 | |
7083c021 | 15353 | $as_echo "#define u_int32_t unsigned long int" >>confdefs.h |
212380e3 | 15354 | |
212380e3 | 15355 | |
212380e3 | 15356 | fi |
631ef239 | 15357 | |
7083c021 | 15358 | |
212380e3 | 15359 | fi |
7083c021 AC |
15360 | |
15361 | ||
15362 | ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" | |
b6d0720c | 15363 | if test "x$ac_cv_type_u_int16_t" = xyes; then : |
7083c021 | 15364 | |
212380e3 AC |
15365 | else |
15366 | ||
7083c021 | 15367 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
b6d0720c | 15368 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
212380e3 | 15369 | |
7083c021 AC |
15370 | |
15371 | $as_echo "#define u_int16_t uint16_t" >>confdefs.h | |
212380e3 AC |
15372 | |
15373 | ||
212380e3 | 15374 | else |
212380e3 | 15375 | |
7083c021 AC |
15376 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 |
15377 | $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
631ef239 | 15378 | |
7083c021 | 15379 | $as_echo "#define u_int16_t unsigned short int" >>confdefs.h |
212380e3 | 15380 | |
7083c021 AC |
15381 | |
15382 | fi | |
212380e3 AC |
15383 | |
15384 | ||
15385 | fi | |
15386 | ||
15387 | ||
7083c021 AC |
15388 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> |
15389 | #include <netinet/in.h> | |
15390 | " | |
b6d0720c | 15391 | if test "x$ac_cv_type_in_port_t" = xyes; then : |
212380e3 | 15392 | |
7083c021 | 15393 | else |
212380e3 | 15394 | |
7083c021 | 15395 | $as_echo "#define in_port_t u_int16_t" >>confdefs.h |
212380e3 | 15396 | |
7083c021 | 15397 | fi |
212380e3 AC |
15398 | |
15399 | ||
7083c021 AC |
15400 | ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h> |
15401 | #include <sys/socket.h> | |
15402 | " | |
b6d0720c | 15403 | if test "x$ac_cv_type_sa_family_t" = xyes; then : |
212380e3 | 15404 | |
212380e3 | 15405 | else |
212380e3 | 15406 | |
7083c021 | 15407 | $as_echo "#define sa_family_t u_int16_t" >>confdefs.h |
212380e3 | 15408 | |
7083c021 | 15409 | fi |
212380e3 | 15410 | |
212380e3 | 15411 | |
7083c021 | 15412 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
b6d0720c | 15413 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
212380e3 | 15414 | |
7083c021 AC |
15415 | cat >>confdefs.h <<_ACEOF |
15416 | #define HAVE_UINTPTR_T 1 | |
15417 | _ACEOF | |
212380e3 | 15418 | |
631ef239 | 15419 | |
212380e3 | 15420 | fi |
7083c021 AC |
15421 | |
15422 | ||
15423 | for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup | |
15424 | do : | |
15425 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15426 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 15427 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 | 15428 | cat >>confdefs.h <<_ACEOF |
7083c021 | 15429 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
212380e3 AC |
15430 | _ACEOF |
15431 | ||
15432 | fi | |
15433 | done | |
15434 | ||
15435 | ||
15436 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
15437 | # for constant arguments. Useless! | |
7083c021 AC |
15438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
15439 | $as_echo_n "checking for working alloca.h... " >&6; } | |
b6d0720c | 15440 | if ${ac_cv_working_alloca_h+:} false; then : |
7083c021 | 15441 | $as_echo_n "(cached) " >&6 |
212380e3 | 15442 | else |
7083c021 | 15443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15444 | /* end confdefs.h. */ |
15445 | #include <alloca.h> | |
15446 | int | |
15447 | main () | |
15448 | { | |
15449 | char *p = (char *) alloca (2 * sizeof (int)); | |
631ef239 | 15450 | if (p) return 0; |
212380e3 AC |
15451 | ; |
15452 | return 0; | |
15453 | } | |
15454 | _ACEOF | |
7083c021 | 15455 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15456 | ac_cv_working_alloca_h=yes |
15457 | else | |
7083c021 | 15458 | ac_cv_working_alloca_h=no |
212380e3 | 15459 | fi |
7083c021 AC |
15460 | rm -f core conftest.err conftest.$ac_objext \ |
15461 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 15462 | fi |
7083c021 AC |
15463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
15464 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
212380e3 AC |
15465 | if test $ac_cv_working_alloca_h = yes; then |
15466 | ||
7083c021 | 15467 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
212380e3 AC |
15468 | |
15469 | fi | |
15470 | ||
7083c021 AC |
15471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
15472 | $as_echo_n "checking for alloca... " >&6; } | |
b6d0720c | 15473 | if ${ac_cv_func_alloca_works+:} false; then : |
7083c021 | 15474 | $as_echo_n "(cached) " >&6 |
212380e3 | 15475 | else |
7083c021 | 15476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15477 | /* end confdefs.h. */ |
15478 | #ifdef __GNUC__ | |
15479 | # define alloca __builtin_alloca | |
15480 | #else | |
15481 | # ifdef _MSC_VER | |
15482 | # include <malloc.h> | |
15483 | # define alloca _alloca | |
15484 | # else | |
631ef239 | 15485 | # ifdef HAVE_ALLOCA_H |
212380e3 AC |
15486 | # include <alloca.h> |
15487 | # else | |
15488 | # ifdef _AIX | |
15489 | #pragma alloca | |
15490 | # else | |
15491 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
b6d0720c | 15492 | void *alloca (size_t); |
212380e3 AC |
15493 | # endif |
15494 | # endif | |
15495 | # endif | |
15496 | # endif | |
15497 | #endif | |
15498 | ||
15499 | int | |
15500 | main () | |
15501 | { | |
15502 | char *p = (char *) alloca (1); | |
631ef239 | 15503 | if (p) return 0; |
212380e3 AC |
15504 | ; |
15505 | return 0; | |
15506 | } | |
15507 | _ACEOF | |
7083c021 | 15508 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15509 | ac_cv_func_alloca_works=yes |
15510 | else | |
7083c021 | 15511 | ac_cv_func_alloca_works=no |
212380e3 | 15512 | fi |
7083c021 AC |
15513 | rm -f core conftest.err conftest.$ac_objext \ |
15514 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 15515 | fi |
7083c021 AC |
15516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
15517 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
212380e3 AC |
15518 | |
15519 | if test $ac_cv_func_alloca_works = yes; then | |
15520 | ||
7083c021 | 15521 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
212380e3 AC |
15522 | |
15523 | else | |
15524 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
15525 | # that cause trouble. Some versions do not even contain alloca or | |
15526 | # contain a buggy version. If you still want to use their alloca, | |
15527 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
15528 | ||
631ef239 | 15529 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
212380e3 | 15530 | |
7083c021 | 15531 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
212380e3 AC |
15532 | |
15533 | ||
7083c021 AC |
15534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
15535 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
b6d0720c | 15536 | if ${ac_cv_os_cray+:} false; then : |
7083c021 | 15537 | $as_echo_n "(cached) " >&6 |
212380e3 | 15538 | else |
7083c021 | 15539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 15540 | /* end confdefs.h. */ |
631ef239 | 15541 | #if defined CRAY && ! defined CRAY2 |
212380e3 AC |
15542 | webecray |
15543 | #else | |
15544 | wenotbecray | |
15545 | #endif | |
15546 | ||
15547 | _ACEOF | |
15548 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7083c021 | 15549 | $EGREP "webecray" >/dev/null 2>&1; then : |
212380e3 AC |
15550 | ac_cv_os_cray=yes |
15551 | else | |
15552 | ac_cv_os_cray=no | |
15553 | fi | |
15554 | rm -f conftest* | |
15555 | ||
15556 | fi | |
7083c021 AC |
15557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
15558 | $as_echo "$ac_cv_os_cray" >&6; } | |
212380e3 AC |
15559 | if test $ac_cv_os_cray = yes; then |
15560 | for ac_func in _getb67 GETB67 getb67; do | |
7083c021 AC |
15561 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15562 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 15563 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 AC |
15564 | |
15565 | cat >>confdefs.h <<_ACEOF | |
15566 | #define CRAY_STACKSEG_END $ac_func | |
15567 | _ACEOF | |
15568 | ||
15569 | break | |
15570 | fi | |
15571 | ||
15572 | done | |
15573 | fi | |
15574 | ||
7083c021 AC |
15575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
15576 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
b6d0720c | 15577 | if ${ac_cv_c_stack_direction+:} false; then : |
7083c021 | 15578 | $as_echo_n "(cached) " >&6 |
212380e3 | 15579 | else |
7083c021 | 15580 | if test "$cross_compiling" = yes; then : |
212380e3 AC |
15581 | ac_cv_c_stack_direction=0 |
15582 | else | |
7083c021 | 15583 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 15584 | /* end confdefs.h. */ |
631ef239 | 15585 | $ac_includes_default |
212380e3 | 15586 | int |
2eff3833 | 15587 | find_stack_direction (int *addr, int depth) |
212380e3 | 15588 | { |
2eff3833 JT |
15589 | int dir, dummy = 0; |
15590 | if (! addr) | |
15591 | addr = &dummy; | |
15592 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
15593 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
15594 | return dir + dummy; | |
212380e3 AC |
15595 | } |
15596 | ||
15597 | int | |
2eff3833 | 15598 | main (int argc, char **argv) |
212380e3 | 15599 | { |
2eff3833 | 15600 | return find_stack_direction (0, argc + !argv + 20) < 0; |
212380e3 AC |
15601 | } |
15602 | _ACEOF | |
7083c021 | 15603 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
15604 | ac_cv_c_stack_direction=1 |
15605 | else | |
7083c021 | 15606 | ac_cv_c_stack_direction=-1 |
212380e3 | 15607 | fi |
7083c021 AC |
15608 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15609 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 15610 | fi |
631ef239 | 15611 | |
212380e3 | 15612 | fi |
7083c021 AC |
15613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
15614 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
212380e3 AC |
15615 | cat >>confdefs.h <<_ACEOF |
15616 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
15617 | _ACEOF | |
15618 | ||
15619 | ||
15620 | fi | |
15621 | ||
15622 | ||
15623 | ||
7083c021 | 15624 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
b6d0720c | 15625 | if test "x$ac_cv_func_nanosleep" = xyes; then : |
631ef239 | 15626 | |
212380e3 | 15627 | else |
7083c021 AC |
15628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
15629 | $as_echo_n "checking for nanosleep in -lrt... " >&6; } | |
b6d0720c | 15630 | if ${ac_cv_lib_rt_nanosleep+:} false; then : |
7083c021 | 15631 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15632 | else |
15633 | ac_check_lib_save_LIBS=$LIBS | |
15634 | LIBS="-lrt $LIBS" | |
7083c021 | 15635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15636 | /* end confdefs.h. */ |
15637 | ||
631ef239 AC |
15638 | /* Override any GCC internal prototype to avoid an error. |
15639 | Use char because int might match the return type of a GCC | |
15640 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15641 | #ifdef __cplusplus |
15642 | extern "C" | |
15643 | #endif | |
212380e3 AC |
15644 | char nanosleep (); |
15645 | int | |
15646 | main () | |
15647 | { | |
631ef239 | 15648 | return nanosleep (); |
212380e3 AC |
15649 | ; |
15650 | return 0; | |
15651 | } | |
15652 | _ACEOF | |
7083c021 | 15653 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15654 | ac_cv_lib_rt_nanosleep=yes |
15655 | else | |
7083c021 | 15656 | ac_cv_lib_rt_nanosleep=no |
212380e3 | 15657 | fi |
7083c021 AC |
15658 | rm -f core conftest.err conftest.$ac_objext \ |
15659 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15660 | LIBS=$ac_check_lib_save_LIBS |
15661 | fi | |
7083c021 AC |
15662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 |
15663 | $as_echo "$ac_cv_lib_rt_nanosleep" >&6; } | |
b6d0720c | 15664 | if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : |
212380e3 AC |
15665 | LIBS="${LIBS} -lrt" |
15666 | else | |
7083c021 AC |
15667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 |
15668 | $as_echo_n "checking for nanosleep in -lposix4... " >&6; } | |
b6d0720c | 15669 | if ${ac_cv_lib_posix4_nanosleep+:} false; then : |
7083c021 | 15670 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15671 | else |
15672 | ac_check_lib_save_LIBS=$LIBS | |
15673 | LIBS="-lposix4 $LIBS" | |
7083c021 | 15674 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15675 | /* end confdefs.h. */ |
15676 | ||
631ef239 AC |
15677 | /* Override any GCC internal prototype to avoid an error. |
15678 | Use char because int might match the return type of a GCC | |
15679 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15680 | #ifdef __cplusplus |
15681 | extern "C" | |
15682 | #endif | |
212380e3 AC |
15683 | char nanosleep (); |
15684 | int | |
15685 | main () | |
15686 | { | |
631ef239 | 15687 | return nanosleep (); |
212380e3 AC |
15688 | ; |
15689 | return 0; | |
15690 | } | |
15691 | _ACEOF | |
7083c021 | 15692 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15693 | ac_cv_lib_posix4_nanosleep=yes |
15694 | else | |
7083c021 | 15695 | ac_cv_lib_posix4_nanosleep=no |
212380e3 | 15696 | fi |
7083c021 AC |
15697 | rm -f core conftest.err conftest.$ac_objext \ |
15698 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15699 | LIBS=$ac_check_lib_save_LIBS |
15700 | fi | |
7083c021 AC |
15701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 |
15702 | $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } | |
b6d0720c | 15703 | if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : |
212380e3 AC |
15704 | LIBS="${LIBS} -lposix4" |
15705 | ||
15706 | fi | |
15707 | ||
15708 | fi | |
15709 | ||
15710 | fi | |
15711 | ||
15712 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
15713 | then | |
7083c021 AC |
15714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5 |
15715 | $as_echo "\"nanosleep not found..using select for delay\"" >&6; } | |
212380e3 AC |
15716 | else |
15717 | ||
7083c021 | 15718 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
212380e3 AC |
15719 | |
15720 | fi | |
15721 | ||
7083c021 AC |
15722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
15723 | $as_echo_n "checking for OpenSSL... " >&6; } | |
631ef239 | 15724 | # Check whether --enable-openssl was given. |
7083c021 | 15725 | if test "${enable_openssl+set}" = set; then : |
631ef239 | 15726 | enableval=$enable_openssl; cf_enable_openssl=$enableval |
212380e3 AC |
15727 | else |
15728 | cf_enable_openssl="auto" | |
631ef239 AC |
15729 | fi |
15730 | ||
212380e3 AC |
15731 | |
15732 | if test "$cf_enable_openssl" != "no" ; then | |
15733 | cf_openssl_basedir="" | |
15734 | if test "$cf_enable_openssl" != "auto" && | |
15735 | test "$cf_enable_openssl" != "yes" ; then | |
15736 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
15737 | else | |
15738 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
15739 | /usr/local/openssl ; do | |
15740 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
15741 | cf_openssl_basedir="${dirs}" | |
15742 | break | |
15743 | fi | |
15744 | done | |
15745 | unset dirs | |
15746 | fi | |
15747 | if test ! -z "$cf_openssl_basedir"; then | |
15748 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
15749 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
15750 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
15751 | else | |
15752 | cf_openssl_basedir="" | |
15753 | fi | |
15754 | else | |
15755 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
15756 | cf_openssl_basedir="/usr" | |
15757 | fi | |
15758 | fi | |
15759 | ||
15760 | if test ! -z "$cf_openssl_basedir"; then | |
7083c021 AC |
15761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
15762 | $as_echo "$cf_openssl_basedir" >&6; } | |
212380e3 AC |
15763 | cf_enable_openssl="yes" |
15764 | else | |
7083c021 AC |
15765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 |
15766 | $as_echo "not found. Specify a correct path?" >&6; } | |
212380e3 AC |
15767 | cf_enable_openssl="no" |
15768 | fi | |
15769 | unset cf_openssl_basedir | |
15770 | else | |
7083c021 AC |
15771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
15772 | $as_echo "disabled" >&6; } | |
212380e3 AC |
15773 | fi |
15774 | ||
15775 | save_CPPFLAGS="$CPPFLAGS" | |
15776 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
15777 | save_LIBS="$LIBS" | |
15778 | LIBS="$LIBS $SSL_LIBS" | |
15779 | if test "$cf_enable_openssl" != no; then | |
7083c021 AC |
15780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5 |
15781 | $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; } | |
15782 | if test "$cross_compiling" = yes; then : | |
212380e3 AC |
15783 | cf_openssl_version_ok=no |
15784 | else | |
7083c021 | 15785 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15786 | /* end confdefs.h. */ |
15787 | #include <openssl/opensslv.h> | |
15788 | #include <stdlib.h> | |
15789 | int | |
15790 | main () | |
15791 | { | |
15792 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
15793 | exit(0); else exit(1); | |
15794 | ; | |
15795 | return 0; | |
15796 | } | |
15797 | _ACEOF | |
7083c021 | 15798 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
15799 | cf_openssl_version_ok=yes |
15800 | else | |
7083c021 | 15801 | cf_openssl_version_ok=no |
212380e3 | 15802 | fi |
7083c021 AC |
15803 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15804 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 AC |
15805 | fi |
15806 | ||
631ef239 | 15807 | |
212380e3 | 15808 | if test "$cf_openssl_version_ok" = yes; then |
7083c021 AC |
15809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
15810 | $as_echo "found" >&6; } | |
212380e3 AC |
15811 | |
15812 | ENCSPEED=encspeed | |
15813 | ||
15814 | ||
15815 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
7083c021 AC |
15816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
15817 | $as_echo_n "checking for RSA_free in -lcrypto... " >&6; } | |
b6d0720c | 15818 | if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
7083c021 | 15819 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15820 | else |
15821 | ac_check_lib_save_LIBS=$LIBS | |
15822 | LIBS="-lcrypto $LIBS" | |
7083c021 | 15823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15824 | /* end confdefs.h. */ |
15825 | ||
631ef239 AC |
15826 | /* Override any GCC internal prototype to avoid an error. |
15827 | Use char because int might match the return type of a GCC | |
15828 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15829 | #ifdef __cplusplus |
15830 | extern "C" | |
15831 | #endif | |
212380e3 AC |
15832 | char RSA_free (); |
15833 | int | |
15834 | main () | |
15835 | { | |
631ef239 | 15836 | return RSA_free (); |
212380e3 AC |
15837 | ; |
15838 | return 0; | |
15839 | } | |
15840 | _ACEOF | |
7083c021 | 15841 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15842 | ac_cv_lib_crypto_RSA_free=yes |
15843 | else | |
7083c021 | 15844 | ac_cv_lib_crypto_RSA_free=no |
212380e3 | 15845 | fi |
7083c021 AC |
15846 | rm -f core conftest.err conftest.$ac_objext \ |
15847 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15848 | LIBS=$ac_check_lib_save_LIBS |
15849 | fi | |
7083c021 AC |
15850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
15851 | $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } | |
b6d0720c | 15852 | if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
212380e3 AC |
15853 | cat >>confdefs.h <<_ACEOF |
15854 | #define HAVE_LIBCRYPTO 1 | |
15855 | _ACEOF | |
15856 | ||
15857 | LIBS="-lcrypto $LIBS" | |
15858 | ||
15859 | fi | |
15860 | ||
15861 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
15862 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
15863 | else | |
7083c021 AC |
15864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
15865 | $as_echo "no - OpenSSL support disabled" >&6; } | |
212380e3 AC |
15866 | fi |
15867 | fi | |
15868 | ||
15869 | CPPFLAGS="$save_CPPFLAGS" | |
15870 | LIBS="$save_LIBS" | |
15871 | ||
15872 | ||
15873 | ||
15874 | ||
15875 | ||
631ef239 | 15876 | # Check whether --with-zlib-path was given. |
7083c021 | 15877 | if test "${with_zlib_path+set}" = set; then : |
631ef239 AC |
15878 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
15879 | fi | |
212380e3 | 15880 | |
7083c021 AC |
15881 | |
15882 | # Check whether --enable-zlib was given. | |
15883 | if test "${enable_zlib+set}" = set; then : | |
15884 | enableval=$enable_zlib; zlib=$enableval | |
212380e3 | 15885 | else |
7083c021 | 15886 | zlib=yes |
212380e3 | 15887 | fi |
212380e3 | 15888 | |
212380e3 | 15889 | |
7083c021 AC |
15890 | if test "$zlib" = yes; then |
15891 | ||
15892 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
b6d0720c | 15893 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
7083c021 AC |
15894 | |
15895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 | |
15896 | $as_echo_n "checking for zlibVersion in -lz... " >&6; } | |
b6d0720c | 15897 | if ${ac_cv_lib_z_zlibVersion+:} false; then : |
7083c021 | 15898 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15899 | else |
15900 | ac_check_lib_save_LIBS=$LIBS | |
15901 | LIBS="-lz $LIBS" | |
7083c021 | 15902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15903 | /* end confdefs.h. */ |
15904 | ||
631ef239 AC |
15905 | /* Override any GCC internal prototype to avoid an error. |
15906 | Use char because int might match the return type of a GCC | |
15907 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15908 | #ifdef __cplusplus |
15909 | extern "C" | |
15910 | #endif | |
212380e3 AC |
15911 | char zlibVersion (); |
15912 | int | |
15913 | main () | |
15914 | { | |
631ef239 | 15915 | return zlibVersion (); |
212380e3 AC |
15916 | ; |
15917 | return 0; | |
15918 | } | |
15919 | _ACEOF | |
7083c021 | 15920 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15921 | ac_cv_lib_z_zlibVersion=yes |
15922 | else | |
7083c021 | 15923 | ac_cv_lib_z_zlibVersion=no |
212380e3 | 15924 | fi |
7083c021 AC |
15925 | rm -f core conftest.err conftest.$ac_objext \ |
15926 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15927 | LIBS=$ac_check_lib_save_LIBS |
15928 | fi | |
7083c021 AC |
15929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 |
15930 | $as_echo "$ac_cv_lib_z_zlibVersion" >&6; } | |
b6d0720c | 15931 | if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : |
212380e3 AC |
15932 | |
15933 | ZLIB_LD=-lz | |
15934 | ||
15935 | ||
7083c021 | 15936 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h |
212380e3 AC |
15937 | |
15938 | ||
15939 | else | |
15940 | zlib=no | |
15941 | fi | |
15942 | ||
15943 | ||
15944 | else | |
15945 | zlib=no | |
15946 | fi | |
15947 | ||
15948 | ||
15949 | ||
497e30a0 LS |
15950 | fi |
15951 | ||
a6ef3156 LS |
15952 | |
15953 | # Check whether --with-shared-sqlite was given. | |
15954 | if test "${with_shared_sqlite+set}" = set; then : | |
15955 | withval=$with_shared_sqlite; shared_sqlite=$withval | |
497e30a0 LS |
15956 | else |
15957 | shared_sqlite=no | |
15958 | fi | |
15959 | ||
15960 | ||
15961 | if test "$shared_sqlite" = yes; then | |
15962 | ||
cf1001a7 | 15963 | |
a5471f24 LS |
15964 | |
15965 | ||
15966 | ||
15967 | ||
15968 | ||
15969 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
15970 | if test -n "$ac_tool_prefix"; then | |
15971 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
15972 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
15973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15974 | $as_echo_n "checking for $ac_word... " >&6; } | |
15975 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
15976 | $as_echo_n "(cached) " >&6 | |
15977 | else | |
15978 | case $PKG_CONFIG in | |
15979 | [\\/]* | ?:[\\/]*) | |
15980 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
15981 | ;; | |
15982 | *) | |
15983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15984 | for as_dir in $PATH | |
15985 | do | |
15986 | IFS=$as_save_IFS | |
15987 | test -z "$as_dir" && as_dir=. | |
15988 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15989 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15990 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15991 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15992 | break 2 | |
15993 | fi | |
15994 | done | |
15995 | done | |
15996 | IFS=$as_save_IFS | |
15997 | ||
15998 | ;; | |
cf1001a7 | 15999 | esac |
a5471f24 LS |
16000 | fi |
16001 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
16002 | if test -n "$PKG_CONFIG"; then | |
16003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
16004 | $as_echo "$PKG_CONFIG" >&6; } | |
16005 | else | |
16006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16007 | $as_echo "no" >&6; } | |
16008 | fi | |
cf1001a7 | 16009 | |
497e30a0 | 16010 | |
a5471f24 LS |
16011 | fi |
16012 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
16013 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
16014 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
16015 | set dummy pkg-config; ac_word=$2 | |
16016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16017 | $as_echo_n "checking for $ac_word... " >&6; } | |
16018 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
497e30a0 LS |
16019 | $as_echo_n "(cached) " >&6 |
16020 | else | |
a5471f24 LS |
16021 | case $ac_pt_PKG_CONFIG in |
16022 | [\\/]* | ?:[\\/]*) | |
16023 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
16024 | ;; | |
16025 | *) | |
16026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16027 | for as_dir in $PATH | |
16028 | do | |
16029 | IFS=$as_save_IFS | |
16030 | test -z "$as_dir" && as_dir=. | |
16031 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16032 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16033 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
16034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16035 | break 2 | |
16036 | fi | |
16037 | done | |
16038 | done | |
16039 | IFS=$as_save_IFS | |
497e30a0 | 16040 | |
a5471f24 LS |
16041 | ;; |
16042 | esac | |
16043 | fi | |
16044 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
16045 | if test -n "$ac_pt_PKG_CONFIG"; then | |
16046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
16047 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
497e30a0 | 16048 | else |
a5471f24 LS |
16049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16050 | $as_echo "no" >&6; } | |
497e30a0 | 16051 | fi |
a5471f24 LS |
16052 | |
16053 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
16054 | PKG_CONFIG="" | |
16055 | else | |
16056 | case $cross_compiling:$ac_tool_warned in | |
16057 | yes:) | |
16058 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16059 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16060 | ac_tool_warned=yes ;; | |
16061 | esac | |
16062 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
16063 | fi | |
16064 | else | |
16065 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
497e30a0 | 16066 | fi |
497e30a0 | 16067 | |
a5471f24 LS |
16068 | fi |
16069 | if test -n "$PKG_CONFIG"; then | |
16070 | _pkg_min_version=0.9.0 | |
16071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
16072 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
16073 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
16074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16075 | $as_echo "yes" >&6; } | |
16076 | else | |
16077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16078 | $as_echo "no" >&6; } | |
16079 | PKG_CONFIG="" | |
16080 | fi | |
16081 | fi | |
16082 | ||
16083 | pkg_failed=no | |
16084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5 | |
16085 | $as_echo_n "checking for SQLITE... " >&6; } | |
497e30a0 | 16086 | |
a5471f24 LS |
16087 | if test -n "$SQLITE_CFLAGS"; then |
16088 | pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS" | |
16089 | elif test -n "$PKG_CONFIG"; then | |
16090 | if test -n "$PKG_CONFIG" && \ | |
16091 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
16092 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
16093 | ac_status=$? | |
16094 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16095 | test $ac_status = 0; }; then | |
16096 | pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null` | |
16097 | test "x$?" != "x0" && pkg_failed=yes | |
497e30a0 | 16098 | else |
a5471f24 LS |
16099 | pkg_failed=yes |
16100 | fi | |
16101 | else | |
16102 | pkg_failed=untried | |
16103 | fi | |
16104 | if test -n "$SQLITE_LIBS"; then | |
16105 | pkg_cv_SQLITE_LIBS="$SQLITE_LIBS" | |
16106 | elif test -n "$PKG_CONFIG"; then | |
16107 | if test -n "$PKG_CONFIG" && \ | |
16108 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
16109 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
16110 | ac_status=$? | |
16111 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16112 | test $ac_status = 0; }; then | |
16113 | pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null` | |
16114 | test "x$?" != "x0" && pkg_failed=yes | |
16115 | else | |
16116 | pkg_failed=yes | |
16117 | fi | |
16118 | else | |
16119 | pkg_failed=untried | |
497e30a0 LS |
16120 | fi |
16121 | ||
16122 | ||
a5471f24 LS |
16123 | |
16124 | if test $pkg_failed = yes; then | |
16125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16126 | $as_echo "no" >&6; } | |
16127 | ||
16128 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16129 | _pkg_short_errors_supported=yes | |
497e30a0 | 16130 | else |
a5471f24 | 16131 | _pkg_short_errors_supported=no |
497e30a0 | 16132 | fi |
a5471f24 LS |
16133 | if test $_pkg_short_errors_supported = yes; then |
16134 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1` | |
16135 | else | |
16136 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1` | |
16137 | fi | |
16138 | # Put the nasty error message in config.log where it belongs | |
16139 | echo "$SQLITE_PKG_ERRORS" >&5 | |
497e30a0 | 16140 | |
a5471f24 LS |
16141 | shared_sqlite=no |
16142 | elif test $pkg_failed = untried; then | |
16143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16144 | $as_echo "no" >&6; } | |
16145 | shared_sqlite=no | |
16146 | else | |
16147 | SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS | |
16148 | SQLITE_LIBS=$pkg_cv_SQLITE_LIBS | |
16149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16150 | $as_echo "yes" >&6; } | |
497e30a0 | 16151 | |
a5471f24 | 16152 | shared_sqlite=yes |
497e30a0 | 16153 | |
74ab6be0 | 16154 | fi |
a5471f24 | 16155 | fi |
74ab6be0 LS |
16156 | |
16157 | if test "$shared_sqlite" = no; then | |
c52df125 | 16158 | SQLITE_OBJ='sqlite3.$(OBJEXT)' |
212380e3 AC |
16159 | fi |
16160 | ||
a5471f24 | 16161 | SQLITE_LD="$SQLITE_LIBS" |
212380e3 | 16162 | |
a5471f24 | 16163 | SQLITE_INCLUDES="$SQLITE_CFLAGS" |
cf1001a7 LS |
16164 | |
16165 | ||
cf1001a7 LS |
16166 | |
16167 | ||
212380e3 | 16168 | |
631ef239 | 16169 | # Check whether --with-confdir was given. |
7083c021 | 16170 | if test "${with_confdir+set}" = set; then : |
634d4aad | 16171 | withval=$with_confdir; sysconfdir=`echo $withval | sed 's/\/$//'` |
212380e3 | 16172 | else |
9f9b7042 | 16173 | confdir='${sysconfdir}' |
634d4aad NPB |
16174 | fi |
16175 | ||
212380e3 AC |
16176 | |
16177 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16178 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
634d4aad | 16179 | last_ac_define_dir=`eval echo $sysconfdir` |
9f9b7042 | 16180 | ac_define_dir=`eval echo $last_ac_define_dir` |
422cf3bb | 16181 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16182 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16183 | last_ac_define_dir="$ac_define_dir" | |
16184 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16185 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16186 | if test "x$ac_define_dir_counter" = x128; then : | |
16187 | as_fn_error $? "detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5 | |
16188 | break | |
16189 | fi | |
9f9b7042 | 16190 | done |
212380e3 AC |
16191 | ETC_DIR="$ac_define_dir" |
16192 | ||
16193 | ||
16194 | cat >>confdefs.h <<_ACEOF | |
16195 | #define ETC_DIR "$ac_define_dir" | |
16196 | _ACEOF | |
16197 | ||
16198 | ||
16199 | ||
16200 | ||
7083c021 AC |
16201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5 |
16202 | $as_echo_n "checking whether to modify logdir... " >&6; } | |
212380e3 | 16203 | |
631ef239 | 16204 | # Check whether --with-logdir was given. |
7083c021 | 16205 | if test "${with_logdir+set}" = set; then : |
631ef239 | 16206 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
16207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16208 | $as_echo "yes" >&6; } | |
212380e3 | 16209 | else |
9f9b7042 NPB |
16210 | if test "x$enable_fhs_paths" = "xyes"; then : |
16211 | logdir='${localstatedir}/log/${PACKAGE_TARNAME}' | |
16212 | else | |
16213 | logdir='${prefix}/logs' | |
16214 | fi | |
7083c021 AC |
16215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16216 | $as_echo "no" >&6; } | |
9f9b7042 NPB |
16217 | fi |
16218 | ||
212380e3 AC |
16219 | |
16220 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16221 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16222 | last_ac_define_dir=`eval echo $logdir` |
16223 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16224 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16225 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16226 | last_ac_define_dir="$ac_define_dir" | |
16227 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16228 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16229 | if test "x$ac_define_dir_counter" = x128; then : | |
16230 | as_fn_error $? "detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5 | |
16231 | break | |
16232 | fi | |
9f9b7042 | 16233 | done |
212380e3 AC |
16234 | LOG_DIR="$ac_define_dir" |
16235 | ||
16236 | ||
16237 | cat >>confdefs.h <<_ACEOF | |
16238 | #define LOG_DIR "$ac_define_dir" | |
16239 | _ACEOF | |
16240 | ||
16241 | ||
16242 | ||
16243 | ||
16244 | logdir=`( | |
16245 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16246 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
16247 | eval echo \""$logdir"\" | |
16248 | )` | |
16249 | ||
16250 | ||
16251 | ||
212380e3 | 16252 | |
7083c021 AC |
16253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5 |
16254 | $as_echo_n "checking whether to modify helpdir... " >&6; } | |
212380e3 | 16255 | |
631ef239 | 16256 | # Check whether --with-helpdir was given. |
7083c021 | 16257 | if test "${with_helpdir+set}" = set; then : |
631ef239 | 16258 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
16259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16260 | $as_echo "yes" >&6; } | |
212380e3 | 16261 | else |
9f9b7042 NPB |
16262 | if test "x$enable_fhs_paths" = "xyes"; then : |
16263 | helpdir='${datadir}/${PACKAGE_TARNAME}/help' | |
16264 | else | |
16265 | helpdir='${prefix}/help' | |
16266 | fi | |
7083c021 AC |
16267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16268 | $as_echo "no" >&6; } | |
9f9b7042 NPB |
16269 | fi |
16270 | ||
212380e3 AC |
16271 | |
16272 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16273 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16274 | last_ac_define_dir=`eval echo $helpdir` |
16275 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16276 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16277 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16278 | last_ac_define_dir="$ac_define_dir" | |
16279 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16280 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16281 | if test "x$ac_define_dir_counter" = x128; then : | |
16282 | as_fn_error $? "detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5 | |
16283 | break | |
16284 | fi | |
9f9b7042 | 16285 | done |
212380e3 AC |
16286 | HELP_DIR="$ac_define_dir" |
16287 | ||
16288 | ||
16289 | cat >>confdefs.h <<_ACEOF | |
16290 | #define HELP_DIR "$ac_define_dir" | |
16291 | _ACEOF | |
16292 | ||
16293 | ||
16294 | ||
16295 | ||
16296 | helpdir=`( | |
16297 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16298 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
16299 | eval echo \""$helpdir"\" | |
16300 | )` | |
16301 | ||
16302 | ||
16303 | ||
212380e3 | 16304 | |
7083c021 AC |
16305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5 |
16306 | $as_echo_n "checking whether to modify moduledir... " >&6; } | |
212380e3 | 16307 | |
631ef239 | 16308 | # Check whether --with-moduledir was given. |
7083c021 | 16309 | if test "${with_moduledir+set}" = set; then : |
631ef239 | 16310 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
16311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16312 | $as_echo "yes" >&6; } | |
9f9b7042 NPB |
16313 | else |
16314 | if test "x$enable_fhs_paths" = "xyes"; then : | |
16315 | moduledir='${pkglibdir}/modules' | |
16316 | else | |
16317 | moduledir='${prefix}/modules' | |
16318 | fi | |
16319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16320 | $as_echo "no" >&6; } | |
16321 | ||
16322 | fi | |
16323 | ||
212380e3 AC |
16324 | |
16325 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16326 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16327 | last_ac_define_dir=`eval echo $moduledir` |
16328 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16329 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16330 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16331 | last_ac_define_dir="$ac_define_dir" | |
16332 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16333 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16334 | if test "x$ac_define_dir_counter" = x128; then : | |
16335 | as_fn_error $? "detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5 | |
16336 | break | |
16337 | fi | |
9f9b7042 | 16338 | done |
212380e3 AC |
16339 | MODULE_DIR="$ac_define_dir" |
16340 | ||
16341 | ||
16342 | cat >>confdefs.h <<_ACEOF | |
16343 | #define MODULE_DIR "$ac_define_dir" | |
16344 | _ACEOF | |
16345 | ||
16346 | ||
16347 | ||
16348 | ||
16349 | moduledir=`( | |
16350 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16351 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
16352 | eval echo \""$moduledir"\" | |
16353 | )` | |
16354 | ||
16355 | ||
9f9b7042 NPB |
16356 | |
16357 | ||
16358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5 | |
16359 | $as_echo_n "checking whether or modify rundir... " >&6; } | |
16360 | ||
16361 | # Check whether --with-rundir was given. | |
16362 | if test "${with_rundir+set}" = set; then : | |
16363 | withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16364 | $as_echo "yes" >&6; } | |
16365 | rundir=`echo $withval | sed 's/\/$//'` | |
212380e3 | 16366 | else |
9f9b7042 | 16367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7083c021 | 16368 | $as_echo "no" >&6; } |
9f9b7042 NPB |
16369 | if test "x$enable_fhs_paths" = "xyes"; then : |
16370 | rundir='${prefix}/run' | |
16371 | else | |
16372 | rundir='${sysconfdir}' | |
16373 | fi | |
16374 | fi | |
16375 | ||
16376 | ||
212380e3 AC |
16377 | |
16378 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16379 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16380 | last_ac_define_dir=`eval echo $pkgrundir` |
16381 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16382 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16383 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16384 | last_ac_define_dir="$ac_define_dir" | |
16385 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16386 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16387 | if test "x$ac_define_dir_counter" = x128; then : | |
16388 | as_fn_error $? "detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5 | |
16389 | break | |
16390 | fi | |
9f9b7042 NPB |
16391 | done |
16392 | PKGRUNDIR="$ac_define_dir" | |
212380e3 AC |
16393 | |
16394 | ||
16395 | cat >>confdefs.h <<_ACEOF | |
9f9b7042 | 16396 | #define PKGRUNDIR "$ac_define_dir" |
212380e3 AC |
16397 | _ACEOF |
16398 | ||
16399 | ||
16400 | ||
9f9b7042 NPB |
16401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5 |
16402 | $as_echo_n "checking for program prefix... " >&6; } | |
212380e3 | 16403 | |
9f9b7042 NPB |
16404 | # Check whether --with-program-prefix was given. |
16405 | if test "${with_program_prefix+set}" = set; then : | |
16406 | withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix= | |
16407 | else | |
16408 | with_program_prefix= | |
16409 | fi | |
212380e3 | 16410 | |
9f9b7042 NPB |
16411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5 |
16412 | $as_echo "\"$with_program_prefix\"" >&6; } | |
16413 | PROGRAM_PREFIX="$with_program_prefix" | |
212380e3 AC |
16414 | |
16415 | ||
9f9b7042 NPB |
16416 | cat >>confdefs.h <<_ACEOF |
16417 | #define PROGRAM_PREFIX "$with_program_prefix" | |
16418 | _ACEOF | |
631ef239 | 16419 | |
7083c021 | 16420 | |
b6d0720c AC |
16421 | |
16422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5 | |
16423 | $as_echo_n "checking whether custom branding is requested... " >&6; } | |
16424 | ||
16425 | # Check whether --with-custom-branding was given. | |
16426 | if test "${with_custom_branding+set}" = set; then : | |
16427 | withval=$with_custom_branding; BRANDING_NAME=$withval | |
16428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16429 | $as_echo "yes" >&6; } | |
16430 | else | |
16431 | BRANDING_NAME=$PACKAGE_NAME | |
16432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16433 | $as_echo "no" >&6; } | |
16434 | ||
16435 | fi | |
16436 | ||
16437 | ||
16438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5 | |
16439 | $as_echo_n "checking whether a custom version is requested... " >&6; } | |
16440 | ||
16441 | # Check whether --with-custom-version was given. | |
16442 | if test "${with_custom_version+set}" = set; then : | |
16443 | withval=$with_custom_version; BRANDING_VERSION=$withval | |
16444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16445 | $as_echo "yes" >&6; } | |
16446 | else | |
16447 | BRANDING_VERSION=$PACKAGE_VERSION | |
16448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16449 | $as_echo "no" >&6; } | |
16450 | ||
16451 | fi | |
16452 | ||
16453 | ||
16454 | ||
16455 | cat >>confdefs.h <<_ACEOF | |
16456 | #define BRANDING_NAME "$BRANDING_NAME" | |
16457 | _ACEOF | |
16458 | ||
16459 | ||
16460 | cat >>confdefs.h <<_ACEOF | |
16461 | #define BRANDING_VERSION "$BRANDING_VERSION" | |
16462 | _ACEOF | |
16463 | ||
16464 | ||
f5493691 AC |
16465 | if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then |
16466 | ||
16467 | $as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h | |
16468 | ||
16469 | fi | |
16470 | ||
212380e3 | 16471 | |
631ef239 | 16472 | # Check whether --enable-assert was given. |
7083c021 | 16473 | if test "${enable_assert+set}" = set; then : |
631ef239 | 16474 | enableval=$enable_assert; assert=$enableval |
212380e3 AC |
16475 | else |
16476 | assert=no | |
631ef239 AC |
16477 | fi |
16478 | ||
212380e3 AC |
16479 | |
16480 | if test "$assert" = no; then | |
16481 | ||
7083c021 | 16482 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
16483 | |
16484 | elif test "$assert" = soft; then | |
16485 | ||
7083c021 | 16486 | $as_echo "#define SOFT_ASSERT 1" >>confdefs.h |
212380e3 AC |
16487 | |
16488 | ||
7083c021 | 16489 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
16490 | |
16491 | elif test "$assert" = yes; then | |
16492 | assert = "hard"; | |
16493 | fi | |
16494 | ||
7083c021 AC |
16495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5 |
16496 | $as_echo_n "checking if you want IO Debugging hooks... " >&6; } | |
631ef239 | 16497 | # Check whether --enable-iodebug was given. |
7083c021 | 16498 | if test "${enable_iodebug+set}" = set; then : |
631ef239 | 16499 | enableval=$enable_iodebug; iodebug=$enableval |
212380e3 AC |
16500 | else |
16501 | iodebug=no | |
631ef239 AC |
16502 | fi |
16503 | ||
212380e3 AC |
16504 | |
16505 | if test "$iodebug" = yes; then | |
16506 | ||
7083c021 | 16507 | $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h |
212380e3 | 16508 | |
7083c021 AC |
16509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16510 | $as_echo "yes" >&6; } | |
212380e3 | 16511 | else |
7083c021 AC |
16512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16513 | $as_echo "no" >&6; } | |
212380e3 AC |
16514 | fi |
16515 | ||
16516 | ||
7083c021 AC |
16517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 |
16518 | $as_echo_n "checking if you want to do a profile build... " >&6; } | |
631ef239 | 16519 | # Check whether --enable-profile was given. |
7083c021 | 16520 | if test "${enable_profile+set}" = set; then : |
631ef239 | 16521 | enableval=$enable_profile; profile=$enableval |
212380e3 AC |
16522 | else |
16523 | profile=no | |
631ef239 AC |
16524 | fi |
16525 | ||
212380e3 AC |
16526 | |
16527 | if test "$profile" = yes; then | |
16528 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
16529 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
7083c021 AC |
16530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5 |
16531 | $as_echo "yes, adding -pg" >&6; } | |
212380e3 | 16532 | |
7083c021 | 16533 | $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h |
212380e3 AC |
16534 | |
16535 | else | |
7083c021 AC |
16536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 |
16537 | $as_echo "no, profile builds only work with gcc" >&6; } | |
212380e3 AC |
16538 | fi |
16539 | else | |
7083c021 AC |
16540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16541 | $as_echo "no" >&6; } | |
212380e3 AC |
16542 | fi |
16543 | ||
631ef239 | 16544 | # Check whether --enable-balloc was given. |
7083c021 | 16545 | if test "${enable_balloc+set}" = set; then : |
631ef239 | 16546 | enableval=$enable_balloc; balloc=$enableval |
212380e3 AC |
16547 | else |
16548 | balloc=yes | |
631ef239 AC |
16549 | fi |
16550 | ||
212380e3 AC |
16551 | |
16552 | if test "$balloc" = no; then | |
16553 | ||
7083c021 | 16554 | $as_echo "#define NOBALLOC 1" >>confdefs.h |
212380e3 AC |
16555 | |
16556 | fi | |
16557 | ||
631ef239 | 16558 | # Check whether --enable-small-net was given. |
7083c021 | 16559 | if test "${enable_small_net+set}" = set; then : |
631ef239 | 16560 | enableval=$enable_small_net; small_net=$enableval |
212380e3 AC |
16561 | else |
16562 | small_net=no | |
631ef239 AC |
16563 | fi |
16564 | ||
212380e3 AC |
16565 | |
16566 | if test "$small_net" = yes; then | |
16567 | ||
7083c021 | 16568 | $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h |
212380e3 AC |
16569 | |
16570 | ||
7083c021 | 16571 | $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16572 | |
16573 | ||
7083c021 | 16574 | $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
16575 | |
16576 | ||
7083c021 | 16577 | $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16578 | |
16579 | ||
7083c021 | 16580 | $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
16581 | |
16582 | ||
7083c021 | 16583 | $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h |
212380e3 AC |
16584 | |
16585 | ||
7083c021 | 16586 | $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
16587 | |
16588 | ||
7083c021 | 16589 | $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16590 | |
16591 | ||
7083c021 | 16592 | $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16593 | |
16594 | ||
7083c021 | 16595 | $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
16596 | |
16597 | ||
7083c021 | 16598 | $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16599 | |
16600 | ||
7083c021 | 16601 | $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
16602 | |
16603 | ||
7083c021 | 16604 | $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h |
212380e3 AC |
16605 | |
16606 | ||
7083c021 | 16607 | $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h |
212380e3 | 16608 | |
f589ec6f | 16609 | |
7083c021 | 16610 | $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h |
2b428185 AC |
16611 | |
16612 | ||
7083c021 | 16613 | $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h |
f589ec6f | 16614 | |
212380e3 AC |
16615 | else |
16616 | ||
7083c021 | 16617 | $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h |
212380e3 AC |
16618 | |
16619 | ||
7083c021 | 16620 | $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
16621 | |
16622 | ||
7083c021 | 16623 | $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
16624 | |
16625 | ||
7083c021 | 16626 | $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
16627 | |
16628 | ||
7083c021 | 16629 | $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h |
212380e3 AC |
16630 | |
16631 | ||
7083c021 | 16632 | $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16633 | |
16634 | ||
7083c021 | 16635 | $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
16636 | |
16637 | ||
7083c021 | 16638 | $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
16639 | |
16640 | ||
7083c021 | 16641 | $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
16642 | |
16643 | ||
7083c021 | 16644 | $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h |
212380e3 AC |
16645 | |
16646 | ||
7083c021 | 16647 | $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h |
212380e3 AC |
16648 | |
16649 | ||
7083c021 | 16650 | $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h |
212380e3 AC |
16651 | |
16652 | ||
7083c021 | 16653 | $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16654 | |
16655 | ||
7083c021 | 16656 | $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h |
212380e3 | 16657 | |
f589ec6f | 16658 | |
7083c021 | 16659 | $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h |
2b428185 AC |
16660 | |
16661 | ||
7083c021 | 16662 | $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h |
f589ec6f | 16663 | |
212380e3 AC |
16664 | fi |
16665 | ||
16666 | ||
631ef239 | 16667 | # Check whether --with-nicklen was given. |
7083c021 | 16668 | if test "${with_nicklen+set}" = set; then : |
631ef239 | 16669 | withval=$with_nicklen; |
aa769893 | 16670 | if ! expr "$withval" + 0 >/dev/null 2>&1; then |
b6d0720c | 16671 | as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5 |
aa769893 | 16672 | fi |
cf533739 | 16673 | if test $withval -gt 50; then |
212380e3 | 16674 | NICKLEN=50 |
7083c021 AC |
16675 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 |
16676 | $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
cf533739 JT |
16677 | elif test $withval -lt 9; then |
16678 | NICKLEN=9 | |
16679 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5 | |
16680 | $as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;} | |
212380e3 AC |
16681 | else |
16682 | NICKLEN="$withval" | |
16683 | fi | |
16684 | ||
16685 | else | |
cf533739 | 16686 | NICKLEN=31 |
631ef239 | 16687 | fi |
212380e3 AC |
16688 | |
16689 | ||
212380e3 | 16690 | |
631ef239 | 16691 | # Check whether --with-topiclen was given. |
7083c021 | 16692 | if test "${with_topiclen+set}" = set; then : |
631ef239 | 16693 | withval=$with_topiclen; |
212380e3 AC |
16694 | if test $withval -ge 390; then |
16695 | TOPICLEN=390 | |
7083c021 AC |
16696 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 |
16697 | $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
212380e3 AC |
16698 | else |
16699 | TOPICLEN=$withval | |
16700 | fi | |
16701 | ||
16702 | else | |
16703 | TOPICLEN=390 | |
212380e3 AC |
16704 | fi |
16705 | ||
212380e3 AC |
16706 | |
16707 | ||
16708 | cat >>confdefs.h <<_ACEOF | |
16709 | #define TOPICLEN ${TOPICLEN} | |
16710 | _ACEOF | |
16711 | ||
16712 | ||
16713 | cat >>confdefs.h <<_ACEOF | |
16714 | #define NICKLEN (${NICKLEN}+1) | |
16715 | _ACEOF | |
16716 | ||
16717 | ||
1a82970f JT |
16718 | # rpath, for finding libratbox.so at run time |
16719 | hold_ldflags=$LDFLAGS | |
7083c021 AC |
16720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5 |
16721 | $as_echo_n "checking for the ld -rpath flag... " >&6; } | |
1a82970f | 16722 | LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}" |
7083c021 | 16723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1a82970f JT |
16724 | /* end confdefs.h. */ |
16725 | ||
16726 | int | |
16727 | main () | |
16728 | { | |
16729 | int i; | |
16730 | ; | |
16731 | return 0; | |
16732 | } | |
16733 | _ACEOF | |
7083c021 | 16734 | if ac_fn_c_try_link "$LINENO"; then : |
1a82970f JT |
16735 | found=yes |
16736 | else | |
7083c021 | 16737 | found=no |
1a82970f | 16738 | fi |
7083c021 AC |
16739 | rm -f core conftest.err conftest.$ac_objext \ |
16740 | conftest$ac_exeext conftest.$ac_ext | |
1a82970f | 16741 | LDFLAGS=$hold_ldflags |
7083c021 AC |
16742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
16743 | $as_echo "$found" >&6; } | |
1a82970f JT |
16744 | if test "$found" = yes; then |
16745 | LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}" | |
16746 | fi | |
16747 | ||
212380e3 AC |
16748 | # This must be down here, or it will mess up checks like the ones |
16749 | # for -Wl,-export-dynamic | |
16750 | # -- jilles | |
d2c5159a | 16751 | CWARNS="" |
631ef239 | 16752 | # Check whether --enable-warnings was given. |
7083c021 | 16753 | if test "${enable_warnings+set}" = set; then : |
631ef239 | 16754 | enableval=$enable_warnings; |
212380e3 AC |
16755 | IRC_CFLAGS="$IRC_CFLAGS -O0" |
16756 | CFLAGS="$IRC_CFLAGS" | |
16757 | ||
16758 | ||
7083c021 AC |
16759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5 |
16760 | $as_echo_n "checking GCC flag(s) -Wall... " >&6; } | |
212380e3 AC |
16761 | if test "${GCC-no}" = yes |
16762 | then | |
b6d0720c | 16763 | if ${charybdis_cv_c_gcc_w_all+:} false; then : |
7083c021 | 16764 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16765 | else |
16766 | ||
16767 | oldcflags="${CFLAGS-}" | |
16768 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
7083c021 | 16769 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16770 | /* end confdefs.h. */ |
16771 | ||
16772 | #include <string.h> | |
16773 | #include <stdio.h> | |
16774 | int main(void); | |
16775 | ||
16776 | int | |
16777 | main () | |
16778 | { | |
16779 | ||
b1fc1658 | 16780 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
16781 | |
16782 | ; | |
16783 | return 0; | |
16784 | } | |
16785 | _ACEOF | |
7083c021 | 16786 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
16787 | charybdis_cv_c_gcc_w_all=yes |
16788 | else | |
7083c021 | 16789 | charybdis_cv_c_gcc_w_all=no |
212380e3 | 16790 | fi |
631ef239 | 16791 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16792 | CFLAGS="${oldcflags}" |
16793 | fi | |
16794 | ||
16795 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
16796 | CWARNS="${CWARNS}-Wall " | |
7083c021 AC |
16797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16798 | $as_echo "ok" >&6; } | |
212380e3 AC |
16799 | else |
16800 | charybdis_cv_c_gcc_w_all='' | |
7083c021 AC |
16801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16802 | $as_echo "no" >&6; } | |
212380e3 AC |
16803 | fi |
16804 | else | |
7083c021 AC |
16805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16806 | $as_echo "no" >&6; } | |
212380e3 AC |
16807 | fi |
16808 | ||
16809 | ||
7083c021 AC |
16810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5 |
16811 | $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; } | |
212380e3 AC |
16812 | if test "${GCC-no}" = yes |
16813 | then | |
b6d0720c | 16814 | if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then : |
7083c021 | 16815 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16816 | else |
16817 | ||
16818 | oldcflags="${CFLAGS-}" | |
16819 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
7083c021 | 16820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16821 | /* end confdefs.h. */ |
16822 | ||
16823 | #include <string.h> | |
16824 | #include <stdio.h> | |
16825 | int main(void); | |
16826 | ||
16827 | int | |
16828 | main () | |
16829 | { | |
16830 | ||
b1fc1658 | 16831 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
16832 | |
16833 | ; | |
16834 | return 0; | |
16835 | } | |
16836 | _ACEOF | |
7083c021 | 16837 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
16838 | charybdis_cv_c_gcc_w_pointer_arith=yes |
16839 | else | |
7083c021 | 16840 | charybdis_cv_c_gcc_w_pointer_arith=no |
212380e3 | 16841 | fi |
631ef239 | 16842 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16843 | CFLAGS="${oldcflags}" |
16844 | fi | |
16845 | ||
16846 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
16847 | CWARNS="${CWARNS}-Wpointer-arith " | |
7083c021 AC |
16848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16849 | $as_echo "ok" >&6; } | |
212380e3 AC |
16850 | else |
16851 | charybdis_cv_c_gcc_w_pointer_arith='' | |
7083c021 AC |
16852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16853 | $as_echo "no" >&6; } | |
212380e3 AC |
16854 | fi |
16855 | else | |
7083c021 AC |
16856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16857 | $as_echo "no" >&6; } | |
212380e3 AC |
16858 | fi |
16859 | ||
16860 | ||
7083c021 AC |
16861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 |
16862 | $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; } | |
212380e3 AC |
16863 | if test "${GCC-no}" = yes |
16864 | then | |
b6d0720c | 16865 | if ${charybdis_cv_c_gcc_w_implicit+:} false; then : |
7083c021 | 16866 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16867 | else |
16868 | ||
16869 | oldcflags="${CFLAGS-}" | |
16870 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
7083c021 | 16871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16872 | /* end confdefs.h. */ |
16873 | ||
16874 | #include <string.h> | |
16875 | #include <stdio.h> | |
16876 | int main(void); | |
16877 | ||
16878 | int | |
16879 | main () | |
16880 | { | |
16881 | ||
b1fc1658 | 16882 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
16883 | |
16884 | ; | |
16885 | return 0; | |
16886 | } | |
16887 | _ACEOF | |
7083c021 | 16888 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
16889 | charybdis_cv_c_gcc_w_implicit=yes |
16890 | else | |
7083c021 | 16891 | charybdis_cv_c_gcc_w_implicit=no |
212380e3 | 16892 | fi |
631ef239 | 16893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16894 | CFLAGS="${oldcflags}" |
16895 | fi | |
16896 | ||
16897 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
16898 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
7083c021 AC |
16899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16900 | $as_echo "ok" >&6; } | |
212380e3 AC |
16901 | else |
16902 | charybdis_cv_c_gcc_w_implicit='' | |
7083c021 AC |
16903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16904 | $as_echo "no" >&6; } | |
212380e3 AC |
16905 | fi |
16906 | else | |
7083c021 AC |
16907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16908 | $as_echo "no" >&6; } | |
212380e3 AC |
16909 | fi |
16910 | ||
16911 | ||
7083c021 AC |
16912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5 |
16913 | $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; } | |
212380e3 AC |
16914 | if test "${GCC-no}" = yes |
16915 | then | |
b6d0720c | 16916 | if ${charybdis_cv_c_gcc_w_cast_align+:} false; then : |
7083c021 | 16917 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16918 | else |
16919 | ||
16920 | oldcflags="${CFLAGS-}" | |
16921 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
7083c021 | 16922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16923 | /* end confdefs.h. */ |
16924 | ||
16925 | #include <string.h> | |
16926 | #include <stdio.h> | |
16927 | int main(void); | |
16928 | ||
16929 | int | |
16930 | main () | |
16931 | { | |
16932 | ||
b1fc1658 | 16933 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
7083c021 AC |
16934 | |
16935 | ; | |
16936 | return 0; | |
16937 | } | |
16938 | _ACEOF | |
16939 | if ac_fn_c_try_compile "$LINENO"; then : | |
212380e3 AC |
16940 | charybdis_cv_c_gcc_w_cast_align=yes |
16941 | else | |
7083c021 | 16942 | charybdis_cv_c_gcc_w_cast_align=no |
212380e3 | 16943 | fi |
631ef239 | 16944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16945 | CFLAGS="${oldcflags}" |
16946 | fi | |
16947 | ||
16948 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
16949 | CWARNS="${CWARNS}-Wcast-align " | |
7083c021 AC |
16950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16951 | $as_echo "ok" >&6; } | |
212380e3 AC |
16952 | else |
16953 | charybdis_cv_c_gcc_w_cast_align='' | |
7083c021 AC |
16954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16955 | $as_echo "no" >&6; } | |
212380e3 AC |
16956 | fi |
16957 | else | |
7083c021 AC |
16958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16959 | $as_echo "no" >&6; } | |
212380e3 AC |
16960 | fi |
16961 | ||
16962 | ||
7083c021 AC |
16963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5 |
16964 | $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; } | |
212380e3 AC |
16965 | if test "${GCC-no}" = yes |
16966 | then | |
b6d0720c | 16967 | if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then : |
7083c021 | 16968 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16969 | else |
16970 | ||
16971 | oldcflags="${CFLAGS-}" | |
16972 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
7083c021 | 16973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16974 | /* end confdefs.h. */ |
16975 | ||
16976 | #include <string.h> | |
16977 | #include <stdio.h> | |
16978 | int main(void); | |
16979 | ||
16980 | int | |
16981 | main () | |
16982 | { | |
16983 | ||
b1fc1658 | 16984 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
16985 | |
16986 | ; | |
16987 | return 0; | |
16988 | } | |
16989 | _ACEOF | |
7083c021 | 16990 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
16991 | charybdis_cv_c_gcc_w_cast_qual=yes |
16992 | else | |
7083c021 | 16993 | charybdis_cv_c_gcc_w_cast_qual=no |
212380e3 | 16994 | fi |
631ef239 | 16995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16996 | CFLAGS="${oldcflags}" |
16997 | fi | |
16998 | ||
16999 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
17000 | CWARNS="${CWARNS}-Wcast-qual " | |
7083c021 AC |
17001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17002 | $as_echo "ok" >&6; } | |
212380e3 AC |
17003 | else |
17004 | charybdis_cv_c_gcc_w_cast_qual='' | |
7083c021 AC |
17005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17006 | $as_echo "no" >&6; } | |
212380e3 AC |
17007 | fi |
17008 | else | |
7083c021 AC |
17009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17010 | $as_echo "no" >&6; } | |
212380e3 AC |
17011 | fi |
17012 | ||
17013 | ||
7083c021 AC |
17014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5 |
17015 | $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; } | |
d2c5159a JT |
17016 | if test "${GCC-no}" = yes |
17017 | then | |
b6d0720c | 17018 | if ${charybdis_cv_c_gcc_w_write_strings+:} false; then : |
7083c021 | 17019 | $as_echo_n "(cached) " >&6 |
d2c5159a JT |
17020 | else |
17021 | ||
17022 | oldcflags="${CFLAGS-}" | |
17023 | CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror" | |
7083c021 | 17024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d2c5159a JT |
17025 | /* end confdefs.h. */ |
17026 | ||
17027 | #include <string.h> | |
17028 | #include <stdio.h> | |
17029 | int main(void); | |
17030 | ||
17031 | int | |
17032 | main () | |
17033 | { | |
17034 | ||
17035 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17036 | ||
17037 | ; | |
17038 | return 0; | |
17039 | } | |
17040 | _ACEOF | |
7083c021 | 17041 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 | 17042 | charybdis_cv_c_gcc_w_write_strings=yes |
d2c5159a | 17043 | else |
7083c021 | 17044 | charybdis_cv_c_gcc_w_write_strings=no |
d2c5159a | 17045 | fi |
d2c5159a JT |
17046 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
17047 | CFLAGS="${oldcflags}" | |
17048 | fi | |
17049 | ||
bbe58888 | 17050 | if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then |
d2c5159a | 17051 | CWARNS="${CWARNS}-Wwrite-strings " |
7083c021 AC |
17052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17053 | $as_echo "ok" >&6; } | |
d2c5159a | 17054 | else |
bbe58888 | 17055 | charybdis_cv_c_gcc_w_write_strings='' |
7083c021 AC |
17056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17057 | $as_echo "no" >&6; } | |
bbe58888 VY |
17058 | fi |
17059 | else | |
7083c021 AC |
17060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17061 | $as_echo "no" >&6; } | |
bbe58888 VY |
17062 | fi |
17063 | ||
17064 | ||
7083c021 AC |
17065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5 |
17066 | $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; } | |
bbe58888 VY |
17067 | if test "${GCC-no}" = yes |
17068 | then | |
b6d0720c | 17069 | if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then : |
7083c021 | 17070 | $as_echo_n "(cached) " >&6 |
bbe58888 VY |
17071 | else |
17072 | ||
17073 | oldcflags="${CFLAGS-}" | |
17074 | CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror" | |
7083c021 | 17075 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bbe58888 VY |
17076 | /* end confdefs.h. */ |
17077 | ||
17078 | #include <string.h> | |
17079 | #include <stdio.h> | |
17080 | int main(void); | |
17081 | ||
17082 | int | |
17083 | main () | |
17084 | { | |
17085 | ||
17086 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17087 | ||
17088 | ; | |
17089 | return 0; | |
17090 | } | |
17091 | _ACEOF | |
7083c021 | 17092 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 VY |
17093 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes |
17094 | else | |
7083c021 | 17095 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=no |
bbe58888 | 17096 | fi |
bbe58888 VY |
17097 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
17098 | CFLAGS="${oldcflags}" | |
17099 | fi | |
17100 | ||
17101 | if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then | |
17102 | CWARNS="${CWARNS}-Werror-implicit-function-declaration " | |
7083c021 AC |
17103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17104 | $as_echo "ok" >&6; } | |
bbe58888 VY |
17105 | else |
17106 | charybdis_cv_c_gcc_w_error_implicit_function_declaration='' | |
7083c021 AC |
17107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17108 | $as_echo "no" >&6; } | |
d2c5159a JT |
17109 | fi |
17110 | else | |
7083c021 AC |
17111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17112 | $as_echo "no" >&6; } | |
d2c5159a JT |
17113 | fi |
17114 | ||
17115 | ||
7083c021 AC |
17116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 |
17117 | $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; } | |
212380e3 AC |
17118 | if test "${GCC-no}" = yes |
17119 | then | |
b6d0720c | 17120 | if ${charybdis_cv_c_gcc_prototypes+:} false; then : |
7083c021 | 17121 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17122 | else |
17123 | ||
17124 | oldcflags="${CFLAGS-}" | |
17125 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
7083c021 | 17126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17127 | /* end confdefs.h. */ |
17128 | ||
17129 | #include <string.h> | |
17130 | #include <stdio.h> | |
17131 | int main(void); | |
17132 | ||
17133 | int | |
17134 | main () | |
17135 | { | |
17136 | ||
b1fc1658 | 17137 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17138 | |
17139 | ; | |
17140 | return 0; | |
17141 | } | |
17142 | _ACEOF | |
7083c021 | 17143 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17144 | charybdis_cv_c_gcc_prototypes=yes |
17145 | else | |
7083c021 | 17146 | charybdis_cv_c_gcc_prototypes=no |
212380e3 | 17147 | fi |
631ef239 | 17148 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17149 | CFLAGS="${oldcflags}" |
17150 | fi | |
17151 | ||
17152 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
17153 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
7083c021 AC |
17154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17155 | $as_echo "ok" >&6; } | |
212380e3 AC |
17156 | else |
17157 | charybdis_cv_c_gcc_prototypes='' | |
7083c021 AC |
17158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17159 | $as_echo "no" >&6; } | |
212380e3 AC |
17160 | fi |
17161 | else | |
7083c021 AC |
17162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17163 | $as_echo "no" >&6; } | |
212380e3 AC |
17164 | fi |
17165 | ||
17166 | ||
7083c021 AC |
17167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5 |
17168 | $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; } | |
212380e3 AC |
17169 | if test "${GCC-no}" = yes |
17170 | then | |
b6d0720c | 17171 | if ${charybdis_cv_c_gcc_parenthesis+:} false; then : |
7083c021 | 17172 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17173 | else |
17174 | ||
17175 | oldcflags="${CFLAGS-}" | |
17176 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
7083c021 | 17177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17178 | /* end confdefs.h. */ |
17179 | ||
17180 | #include <string.h> | |
17181 | #include <stdio.h> | |
17182 | int main(void); | |
17183 | ||
17184 | int | |
17185 | main () | |
17186 | { | |
17187 | ||
b1fc1658 | 17188 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17189 | |
17190 | ; | |
17191 | return 0; | |
17192 | } | |
17193 | _ACEOF | |
7083c021 | 17194 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17195 | charybdis_cv_c_gcc_parenthesis=yes |
17196 | else | |
7083c021 | 17197 | charybdis_cv_c_gcc_parenthesis=no |
212380e3 | 17198 | fi |
631ef239 | 17199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17200 | CFLAGS="${oldcflags}" |
17201 | fi | |
17202 | ||
17203 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
17204 | CWARNS="${CWARNS}-Wparenthesis " | |
7083c021 AC |
17205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17206 | $as_echo "ok" >&6; } | |
212380e3 AC |
17207 | else |
17208 | charybdis_cv_c_gcc_parenthesis='' | |
7083c021 AC |
17209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17210 | $as_echo "no" >&6; } | |
212380e3 AC |
17211 | fi |
17212 | else | |
7083c021 AC |
17213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17214 | $as_echo "no" >&6; } | |
212380e3 AC |
17215 | fi |
17216 | ||
17217 | ||
7083c021 AC |
17218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5 |
17219 | $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; } | |
212380e3 AC |
17220 | if test "${GCC-no}" = yes |
17221 | then | |
b6d0720c | 17222 | if ${charybdis_cv_c_gcc_w+:} false; then : |
7083c021 | 17223 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17224 | else |
17225 | ||
17226 | oldcflags="${CFLAGS-}" | |
17227 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
7083c021 | 17228 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17229 | /* end confdefs.h. */ |
17230 | ||
17231 | #include <string.h> | |
17232 | #include <stdio.h> | |
17233 | int main(void); | |
17234 | ||
17235 | int | |
17236 | main () | |
17237 | { | |
17238 | ||
b1fc1658 | 17239 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17240 | |
17241 | ; | |
17242 | return 0; | |
17243 | } | |
17244 | _ACEOF | |
7083c021 | 17245 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17246 | charybdis_cv_c_gcc_w=yes |
17247 | else | |
7083c021 | 17248 | charybdis_cv_c_gcc_w=no |
212380e3 | 17249 | fi |
631ef239 | 17250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17251 | CFLAGS="${oldcflags}" |
17252 | fi | |
17253 | ||
17254 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
17255 | CWARNS="${CWARNS}-W -Wno-unused " | |
7083c021 AC |
17256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17257 | $as_echo "ok" >&6; } | |
212380e3 AC |
17258 | else |
17259 | charybdis_cv_c_gcc_w='' | |
7083c021 AC |
17260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17261 | $as_echo "no" >&6; } | |
212380e3 AC |
17262 | fi |
17263 | else | |
7083c021 AC |
17264 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17265 | $as_echo "no" >&6; } | |
212380e3 AC |
17266 | fi |
17267 | ||
17268 | ||
7083c021 AC |
17269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5 |
17270 | $as_echo_n "checking GCC flag(s) -Wextra... " >&6; } | |
212380e3 AC |
17271 | if test "${GCC-no}" = yes |
17272 | then | |
b6d0720c | 17273 | if ${charybdis_cv_c_gcc_w_extra+:} false; then : |
7083c021 | 17274 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17275 | else |
17276 | ||
17277 | oldcflags="${CFLAGS-}" | |
17278 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
7083c021 | 17279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17280 | /* end confdefs.h. */ |
17281 | ||
17282 | #include <string.h> | |
17283 | #include <stdio.h> | |
17284 | int main(void); | |
17285 | ||
17286 | int | |
17287 | main () | |
17288 | { | |
17289 | ||
b1fc1658 | 17290 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17291 | |
17292 | ; | |
17293 | return 0; | |
17294 | } | |
17295 | _ACEOF | |
7083c021 | 17296 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17297 | charybdis_cv_c_gcc_w_extra=yes |
17298 | else | |
7083c021 | 17299 | charybdis_cv_c_gcc_w_extra=no |
212380e3 | 17300 | fi |
631ef239 | 17301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17302 | CFLAGS="${oldcflags}" |
17303 | fi | |
17304 | ||
17305 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
17306 | CWARNS="${CWARNS}-Wextra " | |
7083c021 AC |
17307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17308 | $as_echo "ok" >&6; } | |
212380e3 AC |
17309 | else |
17310 | charybdis_cv_c_gcc_w_extra='' | |
7083c021 AC |
17311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17312 | $as_echo "no" >&6; } | |
212380e3 AC |
17313 | fi |
17314 | else | |
7083c021 AC |
17315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17316 | $as_echo "no" >&6; } | |
212380e3 AC |
17317 | fi |
17318 | ||
17319 | ||
7083c021 AC |
17320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5 |
17321 | $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; } | |
212380e3 AC |
17322 | if test "${GCC-no}" = yes |
17323 | then | |
b6d0720c | 17324 | if ${charybdis_cv_c_gcc_w_shadow+:} false; then : |
7083c021 | 17325 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17326 | else |
17327 | ||
17328 | oldcflags="${CFLAGS-}" | |
17329 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
7083c021 | 17330 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17331 | /* end confdefs.h. */ |
17332 | ||
17333 | #include <string.h> | |
17334 | #include <stdio.h> | |
17335 | int main(void); | |
17336 | ||
17337 | int | |
17338 | main () | |
17339 | { | |
17340 | ||
b1fc1658 | 17341 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17342 | |
17343 | ; | |
17344 | return 0; | |
17345 | } | |
17346 | _ACEOF | |
7083c021 | 17347 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17348 | charybdis_cv_c_gcc_w_shadow=yes |
17349 | else | |
7083c021 | 17350 | charybdis_cv_c_gcc_w_shadow=no |
212380e3 | 17351 | fi |
631ef239 | 17352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17353 | CFLAGS="${oldcflags}" |
17354 | fi | |
17355 | ||
17356 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
17357 | CWARNS="${CWARNS}-Wshadow " | |
7083c021 AC |
17358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17359 | $as_echo "ok" >&6; } | |
212380e3 AC |
17360 | else |
17361 | charybdis_cv_c_gcc_w_shadow='' | |
7083c021 AC |
17362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17363 | $as_echo "no" >&6; } | |
212380e3 AC |
17364 | fi |
17365 | else | |
7083c021 AC |
17366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17367 | $as_echo "no" >&6; } | |
212380e3 AC |
17368 | fi |
17369 | ||
17370 | ||
7083c021 AC |
17371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5 |
17372 | $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; } | |
212380e3 AC |
17373 | if test "${GCC-no}" = yes |
17374 | then | |
b6d0720c | 17375 | if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then : |
7083c021 | 17376 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17377 | else |
17378 | ||
17379 | oldcflags="${CFLAGS-}" | |
17380 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
7083c021 | 17381 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17382 | /* end confdefs.h. */ |
17383 | ||
17384 | #include <string.h> | |
17385 | #include <stdio.h> | |
17386 | int main(void); | |
17387 | ||
17388 | int | |
17389 | main () | |
17390 | { | |
17391 | ||
b1fc1658 | 17392 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17393 | |
17394 | ; | |
17395 | return 0; | |
17396 | } | |
17397 | _ACEOF | |
7083c021 | 17398 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17399 | charybdis_cv_c_gcc_w_missing_noreturn=yes |
17400 | else | |
7083c021 | 17401 | charybdis_cv_c_gcc_w_missing_noreturn=no |
212380e3 | 17402 | fi |
631ef239 | 17403 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17404 | CFLAGS="${oldcflags}" |
17405 | fi | |
17406 | ||
17407 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
17408 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
7083c021 AC |
17409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17410 | $as_echo "ok" >&6; } | |
212380e3 AC |
17411 | else |
17412 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
7083c021 AC |
17413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17414 | $as_echo "no" >&6; } | |
212380e3 AC |
17415 | fi |
17416 | else | |
7083c021 AC |
17417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17418 | $as_echo "no" >&6; } | |
212380e3 AC |
17419 | fi |
17420 | ||
17421 | ||
7083c021 AC |
17422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5 |
17423 | $as_echo_n "checking GCC flag(s) -Wundef... " >&6; } | |
212380e3 AC |
17424 | if test "${GCC-no}" = yes |
17425 | then | |
b6d0720c | 17426 | if ${charybdis_cv_c_gcc_w_undef+:} false; then : |
7083c021 | 17427 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17428 | else |
17429 | ||
17430 | oldcflags="${CFLAGS-}" | |
17431 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
7083c021 | 17432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17433 | /* end confdefs.h. */ |
17434 | ||
17435 | #include <string.h> | |
17436 | #include <stdio.h> | |
17437 | int main(void); | |
17438 | ||
17439 | int | |
17440 | main () | |
17441 | { | |
17442 | ||
b1fc1658 | 17443 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17444 | |
17445 | ; | |
17446 | return 0; | |
17447 | } | |
17448 | _ACEOF | |
7083c021 | 17449 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17450 | charybdis_cv_c_gcc_w_undef=yes |
17451 | else | |
7083c021 | 17452 | charybdis_cv_c_gcc_w_undef=no |
212380e3 | 17453 | fi |
631ef239 | 17454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17455 | CFLAGS="${oldcflags}" |
17456 | fi | |
17457 | ||
17458 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
17459 | CWARNS="${CWARNS}-Wundef " | |
7083c021 AC |
17460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17461 | $as_echo "ok" >&6; } | |
212380e3 AC |
17462 | else |
17463 | charybdis_cv_c_gcc_w_undef='' | |
7083c021 AC |
17464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17465 | $as_echo "no" >&6; } | |
212380e3 AC |
17466 | fi |
17467 | else | |
7083c021 AC |
17468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17469 | $as_echo "no" >&6; } | |
212380e3 AC |
17470 | fi |
17471 | ||
17472 | ||
7083c021 AC |
17473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5 |
17474 | $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; } | |
212380e3 AC |
17475 | if test "${GCC-no}" = yes |
17476 | then | |
b6d0720c | 17477 | if ${charybdis_cv_c_gcc_w_packed+:} false; then : |
7083c021 | 17478 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17479 | else |
17480 | ||
17481 | oldcflags="${CFLAGS-}" | |
17482 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
7083c021 | 17483 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17484 | /* end confdefs.h. */ |
17485 | ||
17486 | #include <string.h> | |
17487 | #include <stdio.h> | |
17488 | int main(void); | |
17489 | ||
17490 | int | |
17491 | main () | |
17492 | { | |
17493 | ||
b1fc1658 | 17494 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17495 | |
17496 | ; | |
17497 | return 0; | |
17498 | } | |
17499 | _ACEOF | |
7083c021 | 17500 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17501 | charybdis_cv_c_gcc_w_packed=yes |
17502 | else | |
7083c021 | 17503 | charybdis_cv_c_gcc_w_packed=no |
212380e3 | 17504 | fi |
631ef239 | 17505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17506 | CFLAGS="${oldcflags}" |
17507 | fi | |
17508 | ||
17509 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
17510 | CWARNS="${CWARNS}-Wpacked " | |
7083c021 AC |
17511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17512 | $as_echo "ok" >&6; } | |
212380e3 AC |
17513 | else |
17514 | charybdis_cv_c_gcc_w_packed='' | |
7083c021 AC |
17515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17516 | $as_echo "no" >&6; } | |
212380e3 AC |
17517 | fi |
17518 | else | |
7083c021 AC |
17519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17520 | $as_echo "no" >&6; } | |
212380e3 AC |
17521 | fi |
17522 | ||
17523 | ||
7083c021 AC |
17524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5 |
17525 | $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; } | |
212380e3 AC |
17526 | if test "${GCC-no}" = yes |
17527 | then | |
b6d0720c | 17528 | if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then : |
7083c021 | 17529 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17530 | else |
17531 | ||
17532 | oldcflags="${CFLAGS-}" | |
17533 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
7083c021 | 17534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17535 | /* end confdefs.h. */ |
17536 | ||
17537 | #include <string.h> | |
17538 | #include <stdio.h> | |
17539 | int main(void); | |
17540 | ||
17541 | int | |
17542 | main () | |
17543 | { | |
17544 | ||
b1fc1658 | 17545 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17546 | |
17547 | ; | |
17548 | return 0; | |
17549 | } | |
17550 | _ACEOF | |
7083c021 | 17551 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17552 | charybdis_cv_c_gcc_w_nested_externs=yes |
17553 | else | |
7083c021 | 17554 | charybdis_cv_c_gcc_w_nested_externs=no |
212380e3 | 17555 | fi |
631ef239 | 17556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17557 | CFLAGS="${oldcflags}" |
17558 | fi | |
17559 | ||
17560 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
17561 | CWARNS="${CWARNS}-Wnested-externs " | |
7083c021 AC |
17562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17563 | $as_echo "ok" >&6; } | |
212380e3 AC |
17564 | else |
17565 | charybdis_cv_c_gcc_w_nested_externs='' | |
7083c021 AC |
17566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17567 | $as_echo "no" >&6; } | |
212380e3 AC |
17568 | fi |
17569 | else | |
7083c021 AC |
17570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17571 | $as_echo "no" >&6; } | |
212380e3 AC |
17572 | fi |
17573 | ||
17574 | ||
7083c021 AC |
17575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 |
17576 | $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; } | |
212380e3 AC |
17577 | if test "${GCC-no}" = yes |
17578 | then | |
b6d0720c | 17579 | if ${charybdis_cv_c_gcc_w_unused+:} false; then : |
7083c021 | 17580 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17581 | else |
17582 | ||
17583 | oldcflags="${CFLAGS-}" | |
17584 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
7083c021 | 17585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17586 | /* end confdefs.h. */ |
17587 | ||
17588 | #include <string.h> | |
17589 | #include <stdio.h> | |
17590 | int main(void); | |
17591 | ||
17592 | int | |
17593 | main () | |
17594 | { | |
17595 | ||
b1fc1658 | 17596 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17597 | |
17598 | ; | |
17599 | return 0; | |
17600 | } | |
17601 | _ACEOF | |
7083c021 | 17602 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17603 | charybdis_cv_c_gcc_w_unused=yes |
17604 | else | |
7083c021 | 17605 | charybdis_cv_c_gcc_w_unused=no |
212380e3 | 17606 | fi |
631ef239 | 17607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17608 | CFLAGS="${oldcflags}" |
17609 | fi | |
17610 | ||
17611 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
17612 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
7083c021 AC |
17613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17614 | $as_echo "ok" >&6; } | |
212380e3 AC |
17615 | else |
17616 | charybdis_cv_c_gcc_w_unused='' | |
7083c021 AC |
17617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17618 | $as_echo "no" >&6; } | |
212380e3 AC |
17619 | fi |
17620 | else | |
7083c021 AC |
17621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17622 | $as_echo "no" >&6; } | |
212380e3 AC |
17623 | fi |
17624 | ||
17625 | ||
7083c021 AC |
17626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5 |
17627 | $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; } | |
212380e3 AC |
17628 | if test "${GCC-no}" = yes |
17629 | then | |
b6d0720c | 17630 | if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then : |
7083c021 | 17631 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17632 | else |
17633 | ||
17634 | oldcflags="${CFLAGS-}" | |
17635 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
7083c021 | 17636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17637 | /* end confdefs.h. */ |
17638 | ||
17639 | #include <string.h> | |
17640 | #include <stdio.h> | |
17641 | int main(void); | |
17642 | ||
17643 | int | |
17644 | main () | |
17645 | { | |
17646 | ||
b1fc1658 | 17647 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17648 | |
17649 | ; | |
17650 | return 0; | |
17651 | } | |
17652 | _ACEOF | |
7083c021 | 17653 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17654 | charybdis_cv_c_gcc_w_redundant_decls=yes |
17655 | else | |
7083c021 | 17656 | charybdis_cv_c_gcc_w_redundant_decls=no |
212380e3 | 17657 | fi |
631ef239 | 17658 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17659 | CFLAGS="${oldcflags}" |
17660 | fi | |
17661 | ||
17662 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
17663 | CWARNS="${CWARNS}-Wredundant-decls " | |
7083c021 AC |
17664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17665 | $as_echo "ok" >&6; } | |
212380e3 AC |
17666 | else |
17667 | charybdis_cv_c_gcc_w_redundant_decls='' | |
7083c021 AC |
17668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17669 | $as_echo "no" >&6; } | |
212380e3 AC |
17670 | fi |
17671 | else | |
7083c021 AC |
17672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17673 | $as_echo "no" >&6; } | |
212380e3 AC |
17674 | fi |
17675 | ||
17676 | ||
7083c021 AC |
17677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5 |
17678 | $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; } | |
212380e3 AC |
17679 | if test "${GCC-no}" = yes |
17680 | then | |
b6d0720c | 17681 | if ${charybdis_cv_c_gcc_w_float_equal+:} false; then : |
7083c021 | 17682 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17683 | else |
17684 | ||
17685 | oldcflags="${CFLAGS-}" | |
17686 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
7083c021 | 17687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17688 | /* end confdefs.h. */ |
17689 | ||
17690 | #include <string.h> | |
17691 | #include <stdio.h> | |
17692 | int main(void); | |
17693 | ||
17694 | int | |
17695 | main () | |
17696 | { | |
17697 | ||
b1fc1658 | 17698 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17699 | |
17700 | ; | |
17701 | return 0; | |
17702 | } | |
17703 | _ACEOF | |
7083c021 | 17704 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17705 | charybdis_cv_c_gcc_w_float_equal=yes |
17706 | else | |
7083c021 | 17707 | charybdis_cv_c_gcc_w_float_equal=no |
212380e3 | 17708 | fi |
631ef239 | 17709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17710 | CFLAGS="${oldcflags}" |
17711 | fi | |
17712 | ||
17713 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
17714 | CWARNS="${CWARNS}-Wfloat-equal " | |
7083c021 AC |
17715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17716 | $as_echo "ok" >&6; } | |
212380e3 AC |
17717 | else |
17718 | charybdis_cv_c_gcc_w_float_equal='' | |
7083c021 AC |
17719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17720 | $as_echo "no" >&6; } | |
212380e3 AC |
17721 | fi |
17722 | else | |
7083c021 AC |
17723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17724 | $as_echo "no" >&6; } | |
212380e3 AC |
17725 | fi |
17726 | ||
17727 | ||
7083c021 AC |
17728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5 |
17729 | $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; } | |
212380e3 AC |
17730 | if test "${GCC-no}" = yes |
17731 | then | |
b6d0720c | 17732 | if ${charybdis_cv_c_gcc_w_format+:} false; then : |
7083c021 | 17733 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17734 | else |
17735 | ||
17736 | oldcflags="${CFLAGS-}" | |
4a584d41 | 17737 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror" |
7083c021 | 17738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17739 | /* end confdefs.h. */ |
17740 | ||
17741 | #include <string.h> | |
17742 | #include <stdio.h> | |
17743 | int main(void); | |
17744 | ||
17745 | int | |
17746 | main () | |
17747 | { | |
7083c021 AC |
17748 | |
17749 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17750 | ||
212380e3 AC |
17751 | ; |
17752 | return 0; | |
17753 | } | |
17754 | _ACEOF | |
7083c021 AC |
17755 | if ac_fn_c_try_compile "$LINENO"; then : |
17756 | charybdis_cv_c_gcc_w_format=yes | |
212380e3 | 17757 | else |
7083c021 AC |
17758 | charybdis_cv_c_gcc_w_format=no |
17759 | fi | |
17760 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17761 | CFLAGS="${oldcflags}" | |
17762 | fi | |
17763 | ||
17764 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
17765 | CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security " | |
17766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17767 | $as_echo "ok" >&6; } | |
17768 | else | |
17769 | charybdis_cv_c_gcc_w_format='' | |
17770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17771 | $as_echo "no" >&6; } | |
17772 | fi | |
17773 | else | |
17774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17775 | $as_echo "no" >&6; } | |
17776 | fi | |
17777 | ||
17778 | ||
17779 | IRC_CFLAGS="$CFLAGS" | |
212380e3 | 17780 | |
212380e3 | 17781 | fi |
631ef239 | 17782 | |
7083c021 | 17783 | |
d2c5159a JT |
17784 | IRC_CFLAGS="$IRC_CFLAGS $CWARNS" |
17785 | ||
212380e3 AC |
17786 | |
17787 | ||
17788 | ||
17789 | ||
17790 | ||
17791 | ||
17792 | ||
17793 | ||
17794 | ||
17795 | ||
17796 | ||
17797 | ||
17798 | ||
17799 | if test "$prefix" = "NONE"; then | |
17800 | ||
17801 | cat >>confdefs.h <<_ACEOF | |
17802 | #define IRCD_PREFIX "$ac_default_prefix" | |
17803 | _ACEOF | |
17804 | ||
17805 | ||
17806 | else | |
17807 | ||
17808 | ||
17809 | prefix=`echo $prefix | sed 's/\/$//'` | |
17810 | ||
17811 | cat >>confdefs.h <<_ACEOF | |
17812 | #define IRCD_PREFIX "$prefix" | |
17813 | _ACEOF | |
17814 | ||
17815 | ||
17816 | fi | |
17817 | ||
0d73e7db | 17818 | ac_config_files="$ac_config_files Makefile authd/Makefile bandb/Makefile ssld/Makefile extensions/Makefile ircd/Makefile modules/Makefile tools/Makefile tools/genssl doc/Makefile help/Makefile" |
9f9b7042 | 17819 | |
2eff3833 | 17820 | ac_config_commands="$ac_config_commands tools/genssl_chmod" |
212380e3 AC |
17821 | |
17822 | ||
17823 | cat >confcache <<\_ACEOF | |
17824 | # This file is a shell script that caches the results of configure | |
17825 | # tests run on this system so they can be shared between configure | |
17826 | # scripts and configure runs, see configure's option --config-cache. | |
17827 | # It is not useful on other systems. If it contains results you don't | |
17828 | # want to keep, you may remove or edit it. | |
17829 | # | |
17830 | # config.status only pays attention to the cache file if you give it | |
17831 | # the --recheck option to rerun configure. | |
17832 | # | |
17833 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17834 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17835 | # following values. | |
17836 | ||
17837 | _ACEOF | |
17838 | ||
17839 | # The following way of writing the cache mishandles newlines in values, | |
17840 | # but we know of no workaround that is simple, portable, and efficient. | |
631ef239 | 17841 | # So, we kill variables containing newlines. |
212380e3 AC |
17842 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17843 | # and sets the high bit in the cache file unless we assign to the vars. | |
631ef239 AC |
17844 | ( |
17845 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17846 | eval ac_val=\$$ac_var | |
17847 | case $ac_val in #( | |
17848 | *${as_nl}*) | |
17849 | case $ac_var in #( | |
7083c021 AC |
17850 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
17851 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
631ef239 AC |
17852 | esac |
17853 | case $ac_var in #( | |
17854 | _ | IFS | as_nl) ;; #( | |
7083c021 AC |
17855 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
17856 | *) { eval $ac_var=; unset $ac_var;} ;; | |
631ef239 AC |
17857 | esac ;; |
17858 | esac | |
17859 | done | |
17860 | ||
212380e3 | 17861 | (set) 2>&1 | |
631ef239 AC |
17862 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17863 | *${as_nl}ac_space=\ *) | |
7083c021 AC |
17864 | # `set' does not quote correctly, so add quotes: double-quote |
17865 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
212380e3 AC |
17866 | sed -n \ |
17867 | "s/'/'\\\\''/g; | |
17868 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
631ef239 | 17869 | ;; #( |
212380e3 AC |
17870 | *) |
17871 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
631ef239 | 17872 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 17873 | ;; |
631ef239 AC |
17874 | esac | |
17875 | sort | |
17876 | ) | | |
212380e3 | 17877 | sed ' |
631ef239 | 17878 | /^ac_cv_env_/b end |
212380e3 | 17879 | t clear |
631ef239 | 17880 | :clear |
212380e3 AC |
17881 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17882 | t end | |
631ef239 AC |
17883 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17884 | :end' >>confcache | |
17885 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17886 | if test -w "$cache_file"; then | |
b6d0720c | 17887 | if test "x$cache_file" != "x/dev/null"; then |
7083c021 AC |
17888 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17889 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b6d0720c AC |
17890 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17891 | cat confcache >"$cache_file" | |
17892 | else | |
17893 | case $cache_file in #( | |
17894 | */* | ?:*) | |
17895 | mv -f confcache "$cache_file"$$ && | |
17896 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
17897 | *) | |
17898 | mv -f confcache "$cache_file" ;; | |
17899 | esac | |
17900 | fi | |
17901 | fi | |
212380e3 | 17902 | else |
7083c021 AC |
17903 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17904 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
212380e3 AC |
17905 | fi |
17906 | fi | |
17907 | rm -f confcache | |
17908 | ||
17909 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17910 | # Let make expand exec_prefix. | |
17911 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17912 | ||
212380e3 AC |
17913 | DEFS=-DHAVE_CONFIG_H |
17914 | ||
17915 | ac_libobjs= | |
17916 | ac_ltlibobjs= | |
b6d0720c | 17917 | U= |
212380e3 AC |
17918 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17919 | # 1. Remove the extension, and $U if already installed. | |
631ef239 | 17920 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7083c021 | 17921 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
631ef239 AC |
17922 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
17923 | # will be set to the directory where LIBOBJS objects are built. | |
7083c021 AC |
17924 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
17925 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
212380e3 AC |
17926 | done |
17927 | LIBOBJS=$ac_libobjs | |
17928 | ||
17929 | LTLIBOBJS=$ac_ltlibobjs | |
17930 | ||
17931 | ||
c52df125 AC |
17932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
17933 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
17934 | if test -n "$am_sleep_pid"; then | |
17935 | # Hide warnings about reused PIDs. | |
17936 | wait $am_sleep_pid 2>/dev/null | |
17937 | fi | |
17938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
17939 | $as_echo "done" >&6; } | |
c52df125 AC |
17940 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
17941 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
17942 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17943 | fi | |
17944 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
17945 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
17946 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17947 | fi | |
eec2776c AJ |
17948 | if test -n "$EXEEXT"; then |
17949 | am__EXEEXT_TRUE= | |
17950 | am__EXEEXT_FALSE='#' | |
17951 | else | |
17952 | am__EXEEXT_TRUE='#' | |
17953 | am__EXEEXT_FALSE= | |
17954 | fi | |
17955 | ||
c52df125 AC |
17956 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
17957 | as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. | |
17958 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17959 | fi | |
17960 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | |
17961 | as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. | |
17962 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17963 | fi | |
17964 | LT_CONFIG_H=include/setup.h | |
17965 | ||
17966 | _ltdl_libobjs= | |
17967 | _ltdl_ltlibobjs= | |
17968 | if test -n "$_LT_LIBOBJS"; then | |
17969 | # Remove the extension. | |
17970 | _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' | |
17971 | for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do | |
17972 | _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" | |
17973 | _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" | |
17974 | done | |
17975 | fi | |
17976 | ltdl_LIBOBJS=$_ltdl_libobjs | |
17977 | ||
17978 | ltdl_LTLIBOBJS=$_ltdl_ltlibobjs | |
17979 | ||
17980 | ||
17981 | if test -z "${BUILD_LTDL_TRUE}" && test -z "${BUILD_LTDL_FALSE}"; then | |
17982 | as_fn_error $? "conditional \"BUILD_LTDL\" was never defined. | |
17983 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17984 | fi | |
212380e3 | 17985 | |
7083c021 AC |
17986 | |
17987 | ||
b6d0720c | 17988 | : "${CONFIG_STATUS=./config.status}" |
7083c021 | 17989 | ac_write_fail=0 |
212380e3 AC |
17990 | ac_clean_files_save=$ac_clean_files |
17991 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7083c021 AC |
17992 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17993 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17994 | as_write_fail=0 | |
17995 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
212380e3 AC |
17996 | #! $SHELL |
17997 | # Generated by $as_me. | |
17998 | # Run this file to recreate the current configuration. | |
17999 | # Compiler output produced by configure, useful for debugging | |
18000 | # configure, is in config.log if it exists. | |
18001 | ||
18002 | debug=false | |
18003 | ac_cs_recheck=false | |
18004 | ac_cs_silent=false | |
212380e3 | 18005 | |
7083c021 AC |
18006 | SHELL=\${CONFIG_SHELL-$SHELL} |
18007 | export SHELL | |
18008 | _ASEOF | |
18009 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
18010 | ## -------------------- ## | |
18011 | ## M4sh Initialization. ## | |
18012 | ## -------------------- ## | |
212380e3 | 18013 | |
631ef239 AC |
18014 | # Be more Bourne compatible |
18015 | DUALCASE=1; export DUALCASE # for MKS sh | |
7083c021 | 18016 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
212380e3 AC |
18017 | emulate sh |
18018 | NULLCMD=: | |
7083c021 | 18019 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
212380e3 AC |
18020 | # is contrary to our usage. Disable this feature. |
18021 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 18022 | setopt NO_GLOB_SUBST |
212380e3 | 18023 | else |
7083c021 AC |
18024 | case `(set -o) 2>/dev/null` in #( |
18025 | *posix*) : | |
18026 | set -o posix ;; #( | |
18027 | *) : | |
18028 | ;; | |
631ef239 | 18029 | esac |
212380e3 AC |
18030 | fi |
18031 | ||
18032 | ||
7083c021 AC |
18033 | as_nl=' |
18034 | ' | |
18035 | export as_nl | |
18036 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
18037 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
18038 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
18039 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
18040 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
18041 | # but without wasting forks for bash or zsh. | |
18042 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
18043 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18044 | as_echo='print -r --' | |
18045 | as_echo_n='print -rn --' | |
18046 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
18047 | as_echo='printf %s\n' | |
18048 | as_echo_n='printf %s' | |
18049 | else | |
18050 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
18051 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
18052 | as_echo_n='/usr/ucb/echo -n' | |
631ef239 | 18053 | else |
7083c021 AC |
18054 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
18055 | as_echo_n_body='eval | |
18056 | arg=$1; | |
18057 | case $arg in #( | |
18058 | *"$as_nl"*) | |
18059 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
18060 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
18061 | esac; | |
18062 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
18063 | ' | |
18064 | export as_echo_n_body | |
18065 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
631ef239 | 18066 | fi |
7083c021 AC |
18067 | export as_echo_body |
18068 | as_echo='sh -c $as_echo_body as_echo' | |
631ef239 AC |
18069 | fi |
18070 | ||
7083c021 AC |
18071 | # The user is always right. |
18072 | if test "${PATH_SEPARATOR+set}" != set; then | |
18073 | PATH_SEPARATOR=: | |
18074 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
18075 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
18076 | PATH_SEPARATOR=';' | |
18077 | } | |
631ef239 AC |
18078 | fi |
18079 | ||
18080 | ||
18081 | # IFS | |
18082 | # We need space, tab and new line, in precisely that order. Quoting is | |
18083 | # there to prevent editors from complaining about space-tab. | |
18084 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
18085 | # splitting by setting IFS to empty value.) | |
631ef239 AC |
18086 | IFS=" "" $as_nl" |
18087 | ||
18088 | # Find who we are. Look in the path if we contain no directory separator. | |
b6d0720c | 18089 | as_myself= |
7083c021 | 18090 | case $0 in #(( |
631ef239 AC |
18091 | *[\\/]* ) as_myself=$0 ;; |
18092 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18093 | for as_dir in $PATH | |
18094 | do | |
18095 | IFS=$as_save_IFS | |
18096 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
18097 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
18098 | done | |
631ef239 AC |
18099 | IFS=$as_save_IFS |
18100 | ||
18101 | ;; | |
18102 | esac | |
18103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18104 | # in which case we are not to be found in the path. | |
18105 | if test "x$as_myself" = x; then | |
18106 | as_myself=$0 | |
18107 | fi | |
18108 | if test ! -f "$as_myself"; then | |
7083c021 AC |
18109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
18110 | exit 1 | |
631ef239 AC |
18111 | fi |
18112 | ||
7083c021 AC |
18113 | # Unset variables that we do not need and which cause bugs (e.g. in |
18114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18115 | # suppresses any "Segmentation fault" message there. '((' could | |
18116 | # trigger a bug in pdksh 5.2.14. | |
18117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18118 | do eval test x\${$as_var+set} = xset \ | |
18119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
631ef239 | 18120 | done |
212380e3 AC |
18121 | PS1='$ ' |
18122 | PS2='> ' | |
18123 | PS4='+ ' | |
18124 | ||
7083c021 AC |
18125 | # NLS nuisances. |
18126 | LC_ALL=C | |
18127 | export LC_ALL | |
18128 | LANGUAGE=C | |
18129 | export LANGUAGE | |
18130 | ||
18131 | # CDPATH. | |
18132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18133 | ||
18134 | ||
b6d0720c AC |
18135 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18136 | # ---------------------------------------- | |
7083c021 AC |
18137 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18138 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
b6d0720c | 18139 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
18140 | as_fn_error () |
18141 | { | |
b6d0720c AC |
18142 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18143 | if test "$4"; then | |
18144 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18145 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
212380e3 | 18146 | fi |
b6d0720c | 18147 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
18148 | as_fn_exit $as_status |
18149 | } # as_fn_error | |
18150 | ||
18151 | ||
18152 | # as_fn_set_status STATUS | |
18153 | # ----------------------- | |
18154 | # Set $? to STATUS, without forking. | |
18155 | as_fn_set_status () | |
18156 | { | |
18157 | return $1 | |
18158 | } # as_fn_set_status | |
18159 | ||
18160 | # as_fn_exit STATUS | |
18161 | # ----------------- | |
18162 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18163 | as_fn_exit () | |
18164 | { | |
18165 | set +e | |
18166 | as_fn_set_status $1 | |
18167 | exit $1 | |
18168 | } # as_fn_exit | |
18169 | ||
18170 | # as_fn_unset VAR | |
18171 | # --------------- | |
18172 | # Portably unset VAR. | |
18173 | as_fn_unset () | |
18174 | { | |
18175 | { eval $1=; unset $1;} | |
18176 | } | |
18177 | as_unset=as_fn_unset | |
18178 | # as_fn_append VAR VALUE | |
18179 | # ---------------------- | |
18180 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18181 | # advantage of any shell optimizations that allow amortized linear growth over | |
18182 | # repeated appends, instead of the typical quadratic growth present in naive | |
18183 | # implementations. | |
18184 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18185 | eval 'as_fn_append () | |
18186 | { | |
18187 | eval $1+=\$2 | |
18188 | }' | |
18189 | else | |
18190 | as_fn_append () | |
18191 | { | |
18192 | eval $1=\$$1\$2 | |
18193 | } | |
18194 | fi # as_fn_append | |
18195 | ||
18196 | # as_fn_arith ARG... | |
18197 | # ------------------ | |
18198 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18199 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18200 | # must be portable across $(()) and expr. | |
18201 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18202 | eval 'as_fn_arith () | |
18203 | { | |
18204 | as_val=$(( $* )) | |
18205 | }' | |
18206 | else | |
18207 | as_fn_arith () | |
18208 | { | |
18209 | as_val=`expr "$@" || test $? -eq 1` | |
18210 | } | |
18211 | fi # as_fn_arith | |
18212 | ||
212380e3 | 18213 | |
631ef239 AC |
18214 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18215 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
18216 | as_expr=expr |
18217 | else | |
18218 | as_expr=false | |
18219 | fi | |
18220 | ||
631ef239 | 18221 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
18222 | as_basename=basename |
18223 | else | |
18224 | as_basename=false | |
18225 | fi | |
18226 | ||
7083c021 AC |
18227 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18228 | as_dirname=dirname | |
18229 | else | |
18230 | as_dirname=false | |
18231 | fi | |
212380e3 | 18232 | |
631ef239 | 18233 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
18234 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18235 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 18236 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 18237 | $as_echo X/"$0" | |
631ef239 AC |
18238 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
18239 | s//\1/ | |
18240 | q | |
18241 | } | |
18242 | /^X\/\(\/\/\)$/{ | |
18243 | s//\1/ | |
18244 | q | |
18245 | } | |
18246 | /^X\/\(\/\).*/{ | |
18247 | s//\1/ | |
18248 | q | |
18249 | } | |
18250 | s/.*/./; q'` | |
212380e3 | 18251 | |
7083c021 AC |
18252 | # Avoid depending upon Character Ranges. |
18253 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18254 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18255 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18256 | as_cr_digits='0123456789' | |
18257 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
631ef239 AC |
18258 | |
18259 | ECHO_C= ECHO_N= ECHO_T= | |
7083c021 | 18260 | case `echo -n x` in #((((( |
631ef239 | 18261 | -n*) |
7083c021 | 18262 | case `echo 'xy\c'` in |
631ef239 | 18263 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
7083c021 AC |
18264 | xy) ECHO_C='\c';; |
18265 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18266 | ECHO_T=' ';; | |
631ef239 AC |
18267 | esac;; |
18268 | *) | |
18269 | ECHO_N='-n';; | |
212380e3 AC |
18270 | esac |
18271 | ||
212380e3 | 18272 | rm -f conf$$ conf$$.exe conf$$.file |
631ef239 AC |
18273 | if test -d conf$$.dir; then |
18274 | rm -f conf$$.dir/conf$$.file | |
18275 | else | |
18276 | rm -f conf$$.dir | |
7083c021 AC |
18277 | mkdir conf$$.dir 2>/dev/null |
18278 | fi | |
18279 | if (echo >conf$$.file) 2>/dev/null; then | |
18280 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18281 | as_ln_s='ln -s' | |
18282 | # ... but there are two gotchas: | |
18283 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18284 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
2eff3833 | 18285 | # In both cases, we have to default to `cp -pR'. |
7083c021 | 18286 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
2eff3833 | 18287 | as_ln_s='cp -pR' |
7083c021 AC |
18288 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18289 | as_ln_s=ln | |
18290 | else | |
2eff3833 | 18291 | as_ln_s='cp -pR' |
7083c021 | 18292 | fi |
212380e3 | 18293 | else |
2eff3833 | 18294 | as_ln_s='cp -pR' |
212380e3 | 18295 | fi |
631ef239 AC |
18296 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18297 | rmdir conf$$.dir 2>/dev/null | |
212380e3 | 18298 | |
7083c021 AC |
18299 | |
18300 | # as_fn_mkdir_p | |
18301 | # ------------- | |
18302 | # Create "$as_dir" as a directory, including parents if necessary. | |
18303 | as_fn_mkdir_p () | |
18304 | { | |
18305 | ||
18306 | case $as_dir in #( | |
18307 | -*) as_dir=./$as_dir;; | |
18308 | esac | |
18309 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18310 | as_dirs= | |
18311 | while :; do | |
18312 | case $as_dir in #( | |
18313 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18314 | *) as_qdir=$as_dir;; | |
18315 | esac | |
18316 | as_dirs="'$as_qdir' $as_dirs" | |
18317 | as_dir=`$as_dirname -- "$as_dir" || | |
18318 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18319 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18320 | X"$as_dir" : 'X\(//\)$' \| \ | |
18321 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18322 | $as_echo X"$as_dir" | | |
18323 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18324 | s//\1/ | |
18325 | q | |
18326 | } | |
18327 | /^X\(\/\/\)[^/].*/{ | |
18328 | s//\1/ | |
18329 | q | |
18330 | } | |
18331 | /^X\(\/\/\)$/{ | |
18332 | s//\1/ | |
18333 | q | |
18334 | } | |
18335 | /^X\(\/\).*/{ | |
18336 | s//\1/ | |
18337 | q | |
18338 | } | |
18339 | s/.*/./; q'` | |
18340 | test -d "$as_dir" && break | |
18341 | done | |
18342 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
b6d0720c | 18343 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
18344 | |
18345 | ||
18346 | } # as_fn_mkdir_p | |
212380e3 | 18347 | if mkdir -p . 2>/dev/null; then |
7083c021 | 18348 | as_mkdir_p='mkdir -p "$as_dir"' |
212380e3 AC |
18349 | else |
18350 | test -d ./-p && rmdir ./-p | |
18351 | as_mkdir_p=false | |
18352 | fi | |
18353 | ||
2eff3833 JT |
18354 | |
18355 | # as_fn_executable_p FILE | |
18356 | # ----------------------- | |
18357 | # Test if FILE is an executable regular file. | |
18358 | as_fn_executable_p () | |
18359 | { | |
18360 | test -f "$1" && test -x "$1" | |
18361 | } # as_fn_executable_p | |
18362 | as_test_x='test -x' | |
18363 | as_executable_p=as_fn_executable_p | |
212380e3 AC |
18364 | |
18365 | # Sed expression to map a string onto a valid CPP name. | |
18366 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18367 | ||
18368 | # Sed expression to map a string onto a valid variable name. | |
18369 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18370 | ||
18371 | ||
212380e3 | 18372 | exec 6>&1 |
7083c021 AC |
18373 | ## ----------------------------------- ## |
18374 | ## Main body of $CONFIG_STATUS script. ## | |
18375 | ## ----------------------------------- ## | |
18376 | _ASEOF | |
18377 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
212380e3 | 18378 | |
7083c021 AC |
18379 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18380 | # Save the log message, to keep $0 and so on meaningful, and to | |
212380e3 | 18381 | # report actual input values of CONFIG_FILES etc. instead of their |
631ef239 AC |
18382 | # values after options handling. |
18383 | ac_log=" | |
c52df125 | 18384 | This file was extended by charybdis $as_me 3.6.0-dev, which was |
2eff3833 | 18385 | generated by GNU Autoconf 2.69. Invocation command line was |
212380e3 AC |
18386 | |
18387 | CONFIG_FILES = $CONFIG_FILES | |
18388 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18389 | CONFIG_LINKS = $CONFIG_LINKS | |
18390 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18391 | $ $0 $@ | |
18392 | ||
631ef239 AC |
18393 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18394 | " | |
18395 | ||
212380e3 AC |
18396 | _ACEOF |
18397 | ||
7083c021 AC |
18398 | case $ac_config_files in *" |
18399 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18400 | esac | |
18401 | ||
18402 | case $ac_config_headers in *" | |
18403 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18404 | esac | |
18405 | ||
18406 | ||
18407 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
212380e3 | 18408 | # Files that config.status was made for. |
631ef239 AC |
18409 | config_files="$ac_config_files" |
18410 | config_headers="$ac_config_headers" | |
9f9b7042 | 18411 | config_commands="$ac_config_commands" |
212380e3 | 18412 | |
631ef239 | 18413 | _ACEOF |
212380e3 | 18414 | |
7083c021 | 18415 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 | 18416 | ac_cs_usage="\ |
7083c021 AC |
18417 | \`$as_me' instantiates files and other configuration actions |
18418 | from templates according to the current configuration. Unless the files | |
18419 | and actions are specified as TAGs, all are instantiated by default. | |
212380e3 | 18420 | |
7083c021 | 18421 | Usage: $0 [OPTION]... [TAG]... |
212380e3 AC |
18422 | |
18423 | -h, --help print this help, then exit | |
631ef239 | 18424 | -V, --version print version number and configuration settings, then exit |
6fb6bd15 | 18425 | --config print configuration, then exit |
7083c021 AC |
18426 | -q, --quiet, --silent |
18427 | do not print progress messages | |
212380e3 AC |
18428 | -d, --debug don't remove temporary files |
18429 | --recheck update $as_me by reconfiguring in the same conditions | |
7083c021 AC |
18430 | --file=FILE[:TEMPLATE] |
18431 | instantiate the configuration file FILE | |
18432 | --header=FILE[:TEMPLATE] | |
18433 | instantiate the configuration header FILE | |
212380e3 AC |
18434 | |
18435 | Configuration files: | |
18436 | $config_files | |
18437 | ||
18438 | Configuration headers: | |
18439 | $config_headers | |
18440 | ||
9f9b7042 NPB |
18441 | Configuration commands: |
18442 | $config_commands | |
18443 | ||
7083c021 | 18444 | Report bugs to the package provider." |
212380e3 | 18445 | |
631ef239 | 18446 | _ACEOF |
7083c021 | 18447 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6fb6bd15 | 18448 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
212380e3 | 18449 | ac_cs_version="\\ |
c52df125 | 18450 | charybdis config.status 3.6.0-dev |
2eff3833 | 18451 | configured by $0, generated by GNU Autoconf 2.69, |
6fb6bd15 | 18452 | with options \\"\$ac_cs_config\\" |
212380e3 | 18453 | |
2eff3833 | 18454 | Copyright (C) 2012 Free Software Foundation, Inc. |
212380e3 AC |
18455 | This config.status script is free software; the Free Software Foundation |
18456 | gives unlimited permission to copy, distribute and modify it." | |
631ef239 AC |
18457 | |
18458 | ac_pwd='$ac_pwd' | |
18459 | srcdir='$srcdir' | |
18460 | INSTALL='$INSTALL' | |
c52df125 AC |
18461 | MKDIR_P='$MKDIR_P' |
18462 | AWK='$AWK' | |
7083c021 | 18463 | test -n "\$AWK" || AWK=awk |
212380e3 AC |
18464 | _ACEOF |
18465 | ||
7083c021 AC |
18466 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18467 | # The default lists apply if the user does not specify any file. | |
212380e3 AC |
18468 | ac_need_defaults=: |
18469 | while test $# != 0 | |
18470 | do | |
18471 | case $1 in | |
b6d0720c | 18472 | --*=?*) |
631ef239 AC |
18473 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18474 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
212380e3 AC |
18475 | ac_shift=: |
18476 | ;; | |
b6d0720c AC |
18477 | --*=) |
18478 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18479 | ac_optarg= | |
18480 | ac_shift=: | |
18481 | ;; | |
631ef239 | 18482 | *) |
212380e3 AC |
18483 | ac_option=$1 |
18484 | ac_optarg=$2 | |
18485 | ac_shift=shift | |
18486 | ;; | |
212380e3 AC |
18487 | esac |
18488 | ||
18489 | case $ac_option in | |
18490 | # Handling of the options. | |
212380e3 AC |
18491 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18492 | ac_cs_recheck=: ;; | |
631ef239 | 18493 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7083c021 | 18494 | $as_echo "$ac_cs_version"; exit ;; |
6fb6bd15 AC |
18495 | --config | --confi | --conf | --con | --co | --c ) |
18496 | $as_echo "$ac_cs_config"; exit ;; | |
631ef239 | 18497 | --debug | --debu | --deb | --de | --d | -d ) |
212380e3 AC |
18498 | debug=: ;; |
18499 | --file | --fil | --fi | --f ) | |
18500 | $ac_shift | |
7083c021 AC |
18501 | case $ac_optarg in |
18502 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b6d0720c | 18503 | '') as_fn_error $? "missing file argument" ;; |
7083c021 AC |
18504 | esac |
18505 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
212380e3 AC |
18506 | ac_need_defaults=false;; |
18507 | --header | --heade | --head | --hea ) | |
18508 | $ac_shift | |
7083c021 AC |
18509 | case $ac_optarg in |
18510 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18511 | esac | |
18512 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
212380e3 | 18513 | ac_need_defaults=false;; |
631ef239 AC |
18514 | --he | --h) |
18515 | # Conflict between --help and --header | |
b6d0720c | 18516 | as_fn_error $? "ambiguous option: \`$1' |
7083c021 | 18517 | Try \`$0 --help' for more information.";; |
631ef239 | 18518 | --help | --hel | -h ) |
7083c021 | 18519 | $as_echo "$ac_cs_usage"; exit ;; |
212380e3 AC |
18520 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18521 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18522 | ac_cs_silent=: ;; | |
18523 | ||
18524 | # This is an error. | |
b6d0720c | 18525 | -*) as_fn_error $? "unrecognized option: \`$1' |
7083c021 | 18526 | Try \`$0 --help' for more information." ;; |
212380e3 | 18527 | |
7083c021 | 18528 | *) as_fn_append ac_config_targets " $1" |
631ef239 | 18529 | ac_need_defaults=false ;; |
212380e3 AC |
18530 | |
18531 | esac | |
18532 | shift | |
18533 | done | |
18534 | ||
18535 | ac_configure_extra_args= | |
18536 | ||
18537 | if $ac_cs_silent; then | |
18538 | exec 6>/dev/null | |
18539 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18540 | fi | |
18541 | ||
18542 | _ACEOF | |
7083c021 | 18543 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
212380e3 | 18544 | if \$ac_cs_recheck; then |
2eff3833 | 18545 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7083c021 AC |
18546 | shift |
18547 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18548 | CONFIG_SHELL='$SHELL' | |
631ef239 | 18549 | export CONFIG_SHELL |
7083c021 | 18550 | exec "\$@" |
212380e3 AC |
18551 | fi |
18552 | ||
18553 | _ACEOF | |
7083c021 | 18554 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
18555 | exec 5>>config.log |
18556 | { | |
18557 | echo | |
18558 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18559 | ## Running $as_me. ## | |
18560 | _ASBOX | |
7083c021 | 18561 | $as_echo "$ac_log" |
631ef239 | 18562 | } >&5 |
212380e3 | 18563 | |
631ef239 | 18564 | _ACEOF |
7083c021 | 18565 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c52df125 AC |
18566 | # |
18567 | # INIT-COMMANDS | |
18568 | # | |
18569 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
18570 | ||
18571 | ||
18572 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
18573 | # if CDPATH is set. | |
18574 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18575 | ||
18576 | sed_quote_subst='$sed_quote_subst' | |
18577 | double_quote_subst='$double_quote_subst' | |
18578 | delay_variable_subst='$delay_variable_subst' | |
18579 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
18580 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
18581 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
18582 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
18583 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
18584 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
18585 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
18586 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
18587 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
18588 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
18589 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
18590 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
18591 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
18592 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
18593 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
18594 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
18595 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
18596 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
18597 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
18598 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
18599 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
18600 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
18601 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
18602 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
18603 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
18604 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
18605 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
18606 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
18607 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
18608 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
18609 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
18610 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
18611 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
18612 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
18613 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
18614 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
18615 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
18616 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
18617 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
18618 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
18619 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
18620 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
18621 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
18622 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
18623 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
18624 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18625 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18626 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18627 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
18628 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
18629 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
18630 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
18631 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
18632 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
18633 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
18634 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
18635 | 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"`' | |
18636 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18637 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
18638 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
18639 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
18640 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
18641 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
18642 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
18643 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
18644 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
18645 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
18646 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
18647 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
18648 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
18649 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
18650 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
18651 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
18652 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
18653 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
18654 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18655 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
18656 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
18657 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18658 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18659 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
18660 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
18661 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18662 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18663 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18664 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
18665 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18666 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
18667 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18668 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18669 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18670 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
18671 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
18672 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
18673 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
18674 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18675 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
18676 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
18677 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
18678 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
18679 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
18680 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
18681 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
18682 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
18683 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
18684 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18685 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
18686 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18687 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
18688 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
18689 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
18690 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18691 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
18692 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
18693 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
18694 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
18695 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
18696 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18697 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18698 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
18699 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
18700 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
18701 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
18702 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
18703 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
18704 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
18705 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
18706 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
18707 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
18708 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
18709 | ||
18710 | LTCC='$LTCC' | |
18711 | LTCFLAGS='$LTCFLAGS' | |
18712 | compiler='$compiler_DEFAULT' | |
18713 | ||
18714 | # A function that is used when there is no print builtin or printf. | |
18715 | func_fallback_echo () | |
18716 | { | |
18717 | eval 'cat <<_LTECHO_EOF | |
18718 | \$1 | |
18719 | _LTECHO_EOF' | |
18720 | } | |
18721 | ||
18722 | # Quote evaled strings. | |
18723 | for var in SHELL \ | |
18724 | ECHO \ | |
18725 | PATH_SEPARATOR \ | |
18726 | SED \ | |
18727 | GREP \ | |
18728 | EGREP \ | |
18729 | FGREP \ | |
18730 | LD \ | |
18731 | NM \ | |
18732 | LN_S \ | |
18733 | lt_SP2NL \ | |
18734 | lt_NL2SP \ | |
18735 | reload_flag \ | |
18736 | OBJDUMP \ | |
18737 | deplibs_check_method \ | |
18738 | file_magic_cmd \ | |
18739 | file_magic_glob \ | |
18740 | want_nocaseglob \ | |
18741 | DLLTOOL \ | |
18742 | sharedlib_from_linklib_cmd \ | |
18743 | AR \ | |
18744 | AR_FLAGS \ | |
18745 | archiver_list_spec \ | |
18746 | STRIP \ | |
18747 | RANLIB \ | |
18748 | CC \ | |
18749 | CFLAGS \ | |
18750 | compiler \ | |
18751 | lt_cv_sys_global_symbol_pipe \ | |
18752 | lt_cv_sys_global_symbol_to_cdecl \ | |
18753 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18754 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
18755 | nm_file_list_spec \ | |
18756 | lt_prog_compiler_no_builtin_flag \ | |
18757 | lt_prog_compiler_pic \ | |
18758 | lt_prog_compiler_wl \ | |
18759 | lt_prog_compiler_static \ | |
18760 | lt_cv_prog_compiler_c_o \ | |
18761 | need_locks \ | |
18762 | MANIFEST_TOOL \ | |
18763 | DSYMUTIL \ | |
18764 | NMEDIT \ | |
18765 | LIPO \ | |
18766 | OTOOL \ | |
18767 | OTOOL64 \ | |
18768 | shrext_cmds \ | |
18769 | export_dynamic_flag_spec \ | |
18770 | whole_archive_flag_spec \ | |
18771 | compiler_needs_object \ | |
18772 | with_gnu_ld \ | |
18773 | allow_undefined_flag \ | |
18774 | no_undefined_flag \ | |
18775 | hardcode_libdir_flag_spec \ | |
18776 | hardcode_libdir_separator \ | |
18777 | exclude_expsyms \ | |
18778 | include_expsyms \ | |
18779 | file_list_spec \ | |
18780 | variables_saved_for_relink \ | |
18781 | libname_spec \ | |
18782 | library_names_spec \ | |
18783 | soname_spec \ | |
18784 | install_override_mode \ | |
18785 | finish_eval \ | |
18786 | old_striplib \ | |
18787 | striplib; do | |
18788 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
18789 | *[\\\\\\\`\\"\\\$]*) | |
18790 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
18791 | ;; | |
18792 | *) | |
18793 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18794 | ;; | |
18795 | esac | |
18796 | done | |
18797 | ||
18798 | # Double-quote double-evaled strings. | |
18799 | for var in reload_cmds \ | |
18800 | old_postinstall_cmds \ | |
18801 | old_postuninstall_cmds \ | |
18802 | old_archive_cmds \ | |
18803 | extract_expsyms_cmds \ | |
18804 | old_archive_from_new_cmds \ | |
18805 | old_archive_from_expsyms_cmds \ | |
18806 | archive_cmds \ | |
18807 | archive_expsym_cmds \ | |
18808 | module_cmds \ | |
18809 | module_expsym_cmds \ | |
18810 | export_symbols_cmds \ | |
18811 | prelink_cmds \ | |
18812 | postlink_cmds \ | |
18813 | postinstall_cmds \ | |
18814 | postuninstall_cmds \ | |
18815 | finish_cmds \ | |
18816 | sys_lib_search_path_spec \ | |
18817 | sys_lib_dlsearch_path_spec; do | |
18818 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
18819 | *[\\\\\\\`\\"\\\$]*) | |
18820 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
18821 | ;; | |
18822 | *) | |
18823 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18824 | ;; | |
18825 | esac | |
18826 | done | |
18827 | ||
18828 | ac_aux_dir='$ac_aux_dir' | |
18829 | xsi_shell='$xsi_shell' | |
18830 | lt_shell_append='$lt_shell_append' | |
18831 | ||
18832 | # See if we are running on zsh, and set the options which allow our | |
18833 | # commands through without removal of \ escapes INIT. | |
18834 | if test -n "\${ZSH_VERSION+set}" ; then | |
18835 | setopt NO_GLOB_SUBST | |
18836 | fi | |
18837 | ||
18838 | ||
18839 | PACKAGE='$PACKAGE' | |
18840 | VERSION='$VERSION' | |
18841 | TIMESTAMP='$TIMESTAMP' | |
18842 | RM='$RM' | |
18843 | ofile='$ofile' | |
18844 | ||
18845 | ||
18846 | ||
18847 | ||
631ef239 | 18848 | _ACEOF |
212380e3 | 18849 | |
7083c021 | 18850 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
18851 | |
18852 | # Handling of arguments. | |
212380e3 AC |
18853 | for ac_config_target in $ac_config_targets |
18854 | do | |
631ef239 AC |
18855 | case $ac_config_target in |
18856 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
c52df125 AC |
18857 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
18858 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
631ef239 | 18859 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
0d73e7db | 18860 | "authd/Makefile") CONFIG_FILES="$CONFIG_FILES authd/Makefile" ;; |
7083c021 | 18861 | "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;; |
53970d07 | 18862 | "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;; |
631ef239 | 18863 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; |
46fded53 | 18864 | "ircd/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;; |
631ef239 AC |
18865 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; |
18866 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
2eff3833 | 18867 | "tools/genssl") CONFIG_FILES="$CONFIG_FILES tools/genssl" ;; |
631ef239 AC |
18868 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
18869 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
2eff3833 | 18870 | "tools/genssl_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl_chmod" ;; |
631ef239 | 18871 | |
b6d0720c | 18872 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
212380e3 AC |
18873 | esac |
18874 | done | |
18875 | ||
631ef239 | 18876 | |
212380e3 AC |
18877 | # If the user did not use the arguments to specify the items to instantiate, |
18878 | # then the envvar interface is used. Set only those that are not. | |
18879 | # We use the long form for the default assignment because of an extremely | |
18880 | # bizarre bug on SunOS 4.1.3. | |
18881 | if $ac_need_defaults; then | |
18882 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18883 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
9f9b7042 | 18884 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
212380e3 AC |
18885 | fi |
18886 | ||
18887 | # Have a temporary directory for convenience. Make it in the build tree | |
631ef239 | 18888 | # simply because there is no reason against having it here, and in addition, |
212380e3 | 18889 | # creating and moving files from /tmp can sometimes cause problems. |
631ef239 AC |
18890 | # Hook for its removal unless debugging. |
18891 | # Note that there is a small window in which the directory will not be cleaned: | |
18892 | # after its creation but before its name has been assigned to `$tmp'. | |
212380e3 AC |
18893 | $debug || |
18894 | { | |
b6d0720c | 18895 | tmp= ac_tmp= |
631ef239 | 18896 | trap 'exit_status=$? |
b6d0720c AC |
18897 | : "${ac_tmp:=$tmp}" |
18898 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
631ef239 | 18899 | ' 0 |
7083c021 | 18900 | trap 'as_fn_exit 1' 1 2 13 15 |
212380e3 | 18901 | } |
212380e3 AC |
18902 | # Create a (secure) tmp directory for tmp files. |
18903 | ||
18904 | { | |
631ef239 | 18905 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b6d0720c | 18906 | test -d "$tmp" |
212380e3 AC |
18907 | } || |
18908 | { | |
631ef239 AC |
18909 | tmp=./conf$$-$RANDOM |
18910 | (umask 077 && mkdir "$tmp") | |
b6d0720c AC |
18911 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
18912 | ac_tmp=$tmp | |
212380e3 | 18913 | |
7083c021 AC |
18914 | # Set up the scripts for CONFIG_FILES section. |
18915 | # No need to generate them if there are no CONFIG_FILES. | |
18916 | # This happens for instance with `./config.status config.h'. | |
631ef239 AC |
18917 | if test -n "$CONFIG_FILES"; then |
18918 | ||
631ef239 | 18919 | |
7083c021 AC |
18920 | ac_cr=`echo X | tr X '\015'` |
18921 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18922 | # But we know of no other shell where ac_cr would be empty at this | |
18923 | # point, so we can use a bashism as a fallback. | |
18924 | if test "x$ac_cr" = x; then | |
18925 | eval ac_cr=\$\'\\r\' | |
18926 | fi | |
18927 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18928 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
b6d0720c | 18929 | ac_cs_awk_cr='\\r' |
7083c021 AC |
18930 | else |
18931 | ac_cs_awk_cr=$ac_cr | |
18932 | fi | |
18933 | ||
b6d0720c | 18934 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
7083c021 | 18935 | _ACEOF |
631ef239 AC |
18936 | |
18937 | ||
7083c021 AC |
18938 | { |
18939 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18940 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18941 | echo "_ACEOF" | |
18942 | } >conf$$subs.sh || | |
b6d0720c AC |
18943 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
18944 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
631ef239 AC |
18945 | ac_delim='%!_!# ' |
18946 | for ac_last_try in false false false false false :; do | |
7083c021 | 18947 | . ./conf$$subs.sh || |
b6d0720c | 18948 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7083c021 AC |
18949 | |
18950 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18951 | if test $ac_delim_n = $ac_delim_num; then | |
631ef239 AC |
18952 | break |
18953 | elif $ac_last_try; then | |
b6d0720c | 18954 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
631ef239 AC |
18955 | else |
18956 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
212380e3 | 18957 | fi |
631ef239 | 18958 | done |
7083c021 AC |
18959 | rm -f conf$$subs.sh |
18960 | ||
18961 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b6d0720c | 18962 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
7083c021 AC |
18963 | _ACEOF |
18964 | sed -n ' | |
18965 | h | |
18966 | s/^/S["/; s/!.*/"]=/ | |
18967 | p | |
18968 | g | |
18969 | s/^[^!]*!// | |
18970 | :repl | |
18971 | t repl | |
18972 | s/'"$ac_delim"'$// | |
18973 | t delim | |
18974 | :nl | |
18975 | h | |
6fb6bd15 | 18976 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
18977 | t more1 |
18978 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18979 | p | |
18980 | n | |
18981 | b repl | |
18982 | :more1 | |
18983 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18984 | p | |
18985 | g | |
18986 | s/.\{148\}// | |
18987 | t nl | |
18988 | :delim | |
18989 | h | |
6fb6bd15 | 18990 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
18991 | t more2 |
18992 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18993 | p | |
18994 | b | |
18995 | :more2 | |
18996 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18997 | p | |
18998 | g | |
18999 | s/.\{148\}// | |
19000 | t delim | |
19001 | ' <conf$$subs.awk | sed ' | |
19002 | /^[^""]/{ | |
19003 | N | |
19004 | s/\n// | |
19005 | } | |
19006 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
19007 | rm -f conf$$subs.awk | |
19008 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19009 | _ACAWK | |
b6d0720c | 19010 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
7083c021 AC |
19011 | for (key in S) S_is_set[key] = 1 |
19012 | FS = "\a" | |
212380e3 | 19013 | |
7083c021 AC |
19014 | } |
19015 | { | |
19016 | line = $ 0 | |
19017 | nfields = split(line, field, "@") | |
19018 | substed = 0 | |
19019 | len = length(field[1]) | |
19020 | for (i = 2; i < nfields; i++) { | |
19021 | key = field[i] | |
19022 | keylen = length(key) | |
19023 | if (S_is_set[key]) { | |
19024 | value = S[key] | |
19025 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
19026 | len += length(value) + length(field[++i]) | |
19027 | substed = 1 | |
19028 | } else | |
19029 | len += 1 + keylen | |
19030 | } | |
631ef239 | 19031 | |
7083c021 AC |
19032 | print line |
19033 | } | |
19034 | ||
19035 | _ACAWK | |
631ef239 | 19036 | _ACEOF |
7083c021 AC |
19037 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
19038 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
19039 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
19040 | else | |
19041 | cat | |
b6d0720c AC |
19042 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
19043 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
212380e3 | 19044 | _ACEOF |
631ef239 | 19045 | |
b6d0720c AC |
19046 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
19047 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
631ef239 AC |
19048 | # trailing colons and then remove the whole line if VPATH becomes empty |
19049 | # (actually we leave an empty line to preserve line numbers). | |
19050 | if test "x$srcdir" = x.; then | |
b6d0720c AC |
19051 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
19052 | h | |
19053 | s/// | |
19054 | s/^/:/ | |
19055 | s/[ ]*$/:/ | |
19056 | s/:\$(srcdir):/:/g | |
19057 | s/:\${srcdir}:/:/g | |
19058 | s/:@srcdir@:/:/g | |
19059 | s/^:*// | |
631ef239 | 19060 | s/:*$// |
b6d0720c AC |
19061 | x |
19062 | s/\(=[ ]*\).*/\1/ | |
19063 | G | |
19064 | s/\n// | |
631ef239 AC |
19065 | s/^[^=]*=[ ]*$// |
19066 | }' | |
19067 | fi | |
19068 | ||
7083c021 | 19069 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
19070 | fi # test -n "$CONFIG_FILES" |
19071 | ||
7083c021 AC |
19072 | # Set up the scripts for CONFIG_HEADERS section. |
19073 | # No need to generate them if there are no CONFIG_HEADERS. | |
19074 | # This happens for instance with `./config.status Makefile'. | |
19075 | if test -n "$CONFIG_HEADERS"; then | |
b6d0720c | 19076 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
7083c021 AC |
19077 | BEGIN { |
19078 | _ACEOF | |
19079 | ||
19080 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
19081 | # here-document in config.status, that substitutes the proper values into | |
19082 | # config.h.in to produce config.h. | |
19083 | ||
19084 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
19085 | # handling of long lines. | |
19086 | ac_delim='%!_!# ' | |
19087 | for ac_last_try in false false :; do | |
b6d0720c AC |
19088 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
19089 | if test -z "$ac_tt"; then | |
7083c021 AC |
19090 | break |
19091 | elif $ac_last_try; then | |
b6d0720c | 19092 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
7083c021 AC |
19093 | else |
19094 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19095 | fi | |
19096 | done | |
19097 | ||
19098 | # For the awk script, D is an array of macro values keyed by name, | |
19099 | # likewise P contains macro parameters if any. Preserve backslash | |
19100 | # newline sequences. | |
19101 | ||
19102 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
19103 | sed -n ' | |
19104 | s/.\{148\}/&'"$ac_delim"'/g | |
19105 | t rset | |
19106 | :rset | |
19107 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
19108 | t def | |
19109 | d | |
19110 | :def | |
19111 | s/\\$// | |
19112 | t bsnl | |
19113 | s/["\\]/\\&/g | |
19114 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19115 | D["\1"]=" \3"/p | |
19116 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
19117 | d | |
19118 | :bsnl | |
19119 | s/["\\]/\\&/g | |
19120 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19121 | D["\1"]=" \3\\\\\\n"\\/p | |
19122 | t cont | |
19123 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
19124 | t cont | |
19125 | d | |
19126 | :cont | |
19127 | n | |
19128 | s/.\{148\}/&'"$ac_delim"'/g | |
19129 | t clear | |
19130 | :clear | |
19131 | s/\\$// | |
19132 | t bsnlc | |
19133 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
19134 | d | |
19135 | :bsnlc | |
19136 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
19137 | b cont | |
19138 | ' <confdefs.h | sed ' | |
19139 | s/'"$ac_delim"'/"\\\ | |
19140 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
19141 | ||
19142 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19143 | for (key in D) D_is_set[key] = 1 | |
19144 | FS = "\a" | |
19145 | } | |
19146 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
19147 | line = \$ 0 | |
19148 | split(line, arg, " ") | |
19149 | if (arg[1] == "#") { | |
19150 | defundef = arg[2] | |
19151 | mac1 = arg[3] | |
19152 | } else { | |
19153 | defundef = substr(arg[1], 2) | |
19154 | mac1 = arg[2] | |
19155 | } | |
19156 | split(mac1, mac2, "(") #) | |
19157 | macro = mac2[1] | |
19158 | prefix = substr(line, 1, index(line, defundef) - 1) | |
19159 | if (D_is_set[macro]) { | |
19160 | # Preserve the white space surrounding the "#". | |
19161 | print prefix "define", macro P[macro] D[macro] | |
19162 | next | |
19163 | } else { | |
19164 | # Replace #undef with comments. This is necessary, for example, | |
19165 | # in the case of _POSIX_SOURCE, which is predefined and required | |
19166 | # on some systems where configure will not decide to define it. | |
19167 | if (defundef == "undef") { | |
19168 | print "/*", prefix defundef, macro, "*/" | |
19169 | next | |
19170 | } | |
19171 | } | |
19172 | } | |
19173 | { print } | |
19174 | _ACAWK | |
19175 | _ACEOF | |
19176 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
b6d0720c | 19177 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
7083c021 AC |
19178 | fi # test -n "$CONFIG_HEADERS" |
19179 | ||
631ef239 | 19180 | |
9f9b7042 | 19181 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
7083c021 AC |
19182 | shift |
19183 | for ac_tag | |
631ef239 AC |
19184 | do |
19185 | case $ac_tag in | |
19186 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19187 | esac | |
19188 | case $ac_mode$ac_tag in | |
19189 | :[FHL]*:*);; | |
b6d0720c | 19190 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
631ef239 AC |
19191 | :[FH]-) ac_tag=-:-;; |
19192 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
212380e3 | 19193 | esac |
631ef239 AC |
19194 | ac_save_IFS=$IFS |
19195 | IFS=: | |
19196 | set x $ac_tag | |
19197 | IFS=$ac_save_IFS | |
19198 | shift | |
19199 | ac_file=$1 | |
19200 | shift | |
212380e3 | 19201 | |
631ef239 AC |
19202 | case $ac_mode in |
19203 | :L) ac_source=$1;; | |
19204 | :[FH]) | |
19205 | ac_file_inputs= | |
19206 | for ac_f | |
19207 | do | |
19208 | case $ac_f in | |
b6d0720c | 19209 | -) ac_f="$ac_tmp/stdin";; |
631ef239 AC |
19210 | *) # Look for the file first in the build tree, then in the source tree |
19211 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19212 | # because $ac_f cannot contain `:'. | |
19213 | test -f "$ac_f" || | |
19214 | case $ac_f in | |
19215 | [\\/$]*) false;; | |
19216 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19217 | esac || | |
b6d0720c | 19218 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
631ef239 | 19219 | esac |
7083c021 AC |
19220 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
19221 | as_fn_append ac_file_inputs " '$ac_f'" | |
631ef239 AC |
19222 | done |
19223 | ||
19224 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19225 | # use $as_me), people would be surprised to read: | |
19226 | # /* config.h. Generated by config.status. */ | |
7083c021 AC |
19227 | configure_input='Generated from '` |
19228 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19229 | `' by configure.' | |
631ef239 AC |
19230 | if test x"$ac_file" != x-; then |
19231 | configure_input="$ac_file. $configure_input" | |
7083c021 AC |
19232 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
19233 | $as_echo "$as_me: creating $ac_file" >&6;} | |
631ef239 | 19234 | fi |
7083c021 AC |
19235 | # Neutralize special characters interpreted by sed in replacement strings. |
19236 | case $configure_input in #( | |
19237 | *\&* | *\|* | *\\* ) | |
19238 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19239 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19240 | *) ac_sed_conf_input=$configure_input;; | |
19241 | esac | |
631ef239 AC |
19242 | |
19243 | case $ac_tag in | |
b6d0720c AC |
19244 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19245 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
631ef239 AC |
19246 | esac |
19247 | ;; | |
19248 | esac | |
19249 | ||
19250 | ac_dir=`$as_dirname -- "$ac_file" || | |
212380e3 AC |
19251 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19252 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19253 | X"$ac_file" : 'X\(//\)$' \| \ | |
631ef239 | 19254 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 19255 | $as_echo X"$ac_file" | |
631ef239 AC |
19256 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
19257 | s//\1/ | |
19258 | q | |
19259 | } | |
19260 | /^X\(\/\/\)[^/].*/{ | |
19261 | s//\1/ | |
19262 | q | |
19263 | } | |
19264 | /^X\(\/\/\)$/{ | |
19265 | s//\1/ | |
19266 | q | |
19267 | } | |
19268 | /^X\(\/\).*/{ | |
19269 | s//\1/ | |
19270 | q | |
19271 | } | |
19272 | s/.*/./; q'` | |
7083c021 | 19273 | as_dir="$ac_dir"; as_fn_mkdir_p |
212380e3 AC |
19274 | ac_builddir=. |
19275 | ||
631ef239 AC |
19276 | case "$ac_dir" in |
19277 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19278 | *) | |
7083c021 | 19279 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 19280 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 19281 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
19282 | case $ac_top_builddir_sub in |
19283 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19284 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19285 | esac ;; | |
19286 | esac | |
19287 | ac_abs_top_builddir=$ac_pwd | |
19288 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19289 | # for backward compatibility: | |
19290 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
19291 | |
19292 | case $srcdir in | |
631ef239 | 19293 | .) # We are building in place. |
212380e3 | 19294 | ac_srcdir=. |
631ef239 AC |
19295 | ac_top_srcdir=$ac_top_builddir_sub |
19296 | ac_abs_top_srcdir=$ac_pwd ;; | |
19297 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 19298 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
19299 | ac_top_srcdir=$srcdir |
19300 | ac_abs_top_srcdir=$srcdir ;; | |
19301 | *) # Relative name. | |
19302 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19303 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19304 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 19305 | esac |
631ef239 | 19306 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
212380e3 | 19307 | |
212380e3 | 19308 | |
631ef239 AC |
19309 | case $ac_mode in |
19310 | :F) | |
19311 | # | |
19312 | # CONFIG_FILE | |
19313 | # | |
212380e3 AC |
19314 | |
19315 | case $INSTALL in | |
19316 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
631ef239 | 19317 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
212380e3 | 19318 | esac |
c52df125 AC |
19319 | ac_MKDIR_P=$MKDIR_P |
19320 | case $MKDIR_P in | |
19321 | [\\/$]* | ?:[\\/]* ) ;; | |
19322 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
19323 | esac | |
631ef239 | 19324 | _ACEOF |
212380e3 | 19325 | |
7083c021 | 19326 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
19327 | # If the template does not know about datarootdir, expand it. |
19328 | # FIXME: This hack should be removed a few years after 2.60. | |
19329 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7083c021 AC |
19330 | ac_sed_dataroot=' |
19331 | /datarootdir/ { | |
631ef239 AC |
19332 | p |
19333 | q | |
19334 | } | |
19335 | /@datadir@/p | |
19336 | /@docdir@/p | |
19337 | /@infodir@/p | |
19338 | /@localedir@/p | |
7083c021 AC |
19339 | /@mandir@/p' |
19340 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
631ef239 AC |
19341 | *datarootdir*) ac_datarootdir_seen=yes;; |
19342 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7083c021 AC |
19343 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
19344 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
631ef239 | 19345 | _ACEOF |
7083c021 | 19346 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
631ef239 AC |
19347 | ac_datarootdir_hack=' |
19348 | s&@datadir@&$datadir&g | |
19349 | s&@docdir@&$docdir&g | |
19350 | s&@infodir@&$infodir&g | |
19351 | s&@localedir@&$localedir&g | |
19352 | s&@mandir@&$mandir&g | |
7083c021 | 19353 | s&\\\${datarootdir}&$datarootdir&g' ;; |
631ef239 | 19354 | esac |
212380e3 | 19355 | _ACEOF |
631ef239 AC |
19356 | |
19357 | # Neutralize VPATH when `$srcdir' = `.'. | |
19358 | # Shell code in configure.ac might set extrasub. | |
19359 | # FIXME: do we really want to maintain this feature? | |
7083c021 AC |
19360 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19361 | ac_sed_extra="$ac_vpsub | |
212380e3 AC |
19362 | $extrasub |
19363 | _ACEOF | |
7083c021 | 19364 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 AC |
19365 | :t |
19366 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7083c021 | 19367 | s|@configure_input@|$ac_sed_conf_input|;t t |
631ef239 | 19368 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
7083c021 | 19369 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
631ef239 AC |
19370 | s&@srcdir@&$ac_srcdir&;t t |
19371 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19372 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19373 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19374 | s&@builddir@&$ac_builddir&;t t | |
19375 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19376 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19377 | s&@INSTALL@&$ac_INSTALL&;t t | |
c52df125 | 19378 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
631ef239 | 19379 | $ac_datarootdir_hack |
7083c021 | 19380 | " |
b6d0720c AC |
19381 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
19382 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
631ef239 AC |
19383 | |
19384 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
b6d0720c AC |
19385 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19386 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19387 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
7083c021 | 19388 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 19389 | which seems to be undefined. Please make sure it is defined" >&5 |
7083c021 | 19390 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 19391 | which seems to be undefined. Please make sure it is defined" >&2;} |
631ef239 | 19392 | |
b6d0720c | 19393 | rm -f "$ac_tmp/stdin" |
212380e3 | 19394 | case $ac_file in |
b6d0720c AC |
19395 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19396 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
7083c021 | 19397 | esac \ |
b6d0720c | 19398 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
631ef239 AC |
19399 | ;; |
19400 | :H) | |
19401 | # | |
19402 | # CONFIG_HEADER | |
19403 | # | |
212380e3 | 19404 | if test x"$ac_file" != x-; then |
7083c021 AC |
19405 | { |
19406 | $as_echo "/* $configure_input */" \ | |
b6d0720c AC |
19407 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
19408 | } >"$ac_tmp/config.h" \ | |
19409 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19410 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
7083c021 AC |
19411 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
19412 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
212380e3 | 19413 | else |
7083c021 | 19414 | rm -f "$ac_file" |
b6d0720c AC |
19415 | mv "$ac_tmp/config.h" "$ac_file" \ |
19416 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
212380e3 AC |
19417 | fi |
19418 | else | |
7083c021 | 19419 | $as_echo "/* $configure_input */" \ |
b6d0720c AC |
19420 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
19421 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
212380e3 | 19422 | fi |
c52df125 AC |
19423 | # Compute "$ac_file"'s index in $config_headers. |
19424 | _am_arg="$ac_file" | |
19425 | _am_stamp_count=1 | |
19426 | for _am_header in $config_headers :; do | |
19427 | case $_am_header in | |
19428 | $_am_arg | $_am_arg:* ) | |
19429 | break ;; | |
19430 | * ) | |
19431 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
19432 | esac | |
19433 | done | |
19434 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
19435 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19436 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
19437 | X"$_am_arg" : 'X\(//\)$' \| \ | |
19438 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
19439 | $as_echo X"$_am_arg" | | |
19440 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19441 | s//\1/ | |
19442 | q | |
19443 | } | |
19444 | /^X\(\/\/\)[^/].*/{ | |
19445 | s//\1/ | |
19446 | q | |
19447 | } | |
19448 | /^X\(\/\/\)$/{ | |
19449 | s//\1/ | |
19450 | q | |
19451 | } | |
19452 | /^X\(\/\).*/{ | |
19453 | s//\1/ | |
19454 | q | |
19455 | } | |
19456 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
631ef239 AC |
19457 | ;; |
19458 | ||
9f9b7042 NPB |
19459 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
19460 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
19461 | ;; | |
631ef239 AC |
19462 | esac |
19463 | ||
9f9b7042 NPB |
19464 | |
19465 | case $ac_file$ac_mode in | |
c52df125 AC |
19466 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
19467 | # Older Autoconf quotes --file arguments for eval, but not when files | |
19468 | # are listed without --file. Let's play safe and only enable the eval | |
19469 | # if we detect the quoting. | |
19470 | case $CONFIG_FILES in | |
19471 | *\'*) eval set x "$CONFIG_FILES" ;; | |
19472 | *) set x $CONFIG_FILES ;; | |
19473 | esac | |
19474 | shift | |
19475 | for mf | |
19476 | do | |
19477 | # Strip MF so we end up with the name of the file. | |
19478 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
19479 | # Check whether this is an Automake generated Makefile or not. | |
19480 | # We used to match only the files named 'Makefile.in', but | |
19481 | # some people rename them; so instead we look at the file content. | |
19482 | # Grep'ing the first line is not enough: some people post-process | |
19483 | # each Makefile.in and add a new line on top of each file to say so. | |
19484 | # Grep'ing the whole file is not good either: AIX grep has a line | |
19485 | # limit of 2048, but all sed's we know have understand at least 4000. | |
19486 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
19487 | dirpart=`$as_dirname -- "$mf" || | |
19488 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19489 | X"$mf" : 'X\(//\)[^/]' \| \ | |
19490 | X"$mf" : 'X\(//\)$' \| \ | |
19491 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
19492 | $as_echo X"$mf" | | |
19493 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19494 | s//\1/ | |
19495 | q | |
19496 | } | |
19497 | /^X\(\/\/\)[^/].*/{ | |
19498 | s//\1/ | |
19499 | q | |
19500 | } | |
19501 | /^X\(\/\/\)$/{ | |
19502 | s//\1/ | |
19503 | q | |
19504 | } | |
19505 | /^X\(\/\).*/{ | |
19506 | s//\1/ | |
19507 | q | |
19508 | } | |
19509 | s/.*/./; q'` | |
19510 | else | |
19511 | continue | |
19512 | fi | |
19513 | # Extract the definition of DEPDIR, am__include, and am__quote | |
19514 | # from the Makefile without running 'make'. | |
19515 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
19516 | test -z "$DEPDIR" && continue | |
19517 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
19518 | test -z "$am__include" && continue | |
19519 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
19520 | # Find all dependency output files, they are included files with | |
19521 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
19522 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
19523 | # expansion. | |
19524 | for file in `sed -n " | |
19525 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
19526 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
19527 | # Make sure the directory exists. | |
19528 | test -f "$dirpart/$file" && continue | |
19529 | fdir=`$as_dirname -- "$file" || | |
19530 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19531 | X"$file" : 'X\(//\)[^/]' \| \ | |
19532 | X"$file" : 'X\(//\)$' \| \ | |
19533 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
19534 | $as_echo X"$file" | | |
19535 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19536 | s//\1/ | |
19537 | q | |
19538 | } | |
19539 | /^X\(\/\/\)[^/].*/{ | |
19540 | s//\1/ | |
19541 | q | |
19542 | } | |
19543 | /^X\(\/\/\)$/{ | |
19544 | s//\1/ | |
19545 | q | |
19546 | } | |
19547 | /^X\(\/\).*/{ | |
19548 | s//\1/ | |
19549 | q | |
19550 | } | |
19551 | s/.*/./; q'` | |
19552 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
19553 | # echo "creating $dirpart/$file" | |
19554 | echo '# dummy' > "$dirpart/$file" | |
19555 | done | |
19556 | done | |
19557 | } | |
19558 | ;; | |
19559 | "libtool":C) | |
19560 | ||
19561 | # See if we are running on zsh, and set the options which allow our | |
19562 | # commands through without removal of \ escapes. | |
19563 | if test -n "${ZSH_VERSION+set}" ; then | |
19564 | setopt NO_GLOB_SUBST | |
19565 | fi | |
19566 | ||
19567 | cfgfile="${ofile}T" | |
19568 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19569 | $RM "$cfgfile" | |
19570 | ||
19571 | cat <<_LT_EOF >> "$cfgfile" | |
19572 | #! $SHELL | |
19573 | ||
19574 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
19575 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
19576 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19577 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19578 | # | |
19579 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
19580 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
19581 | # Foundation, Inc. | |
19582 | # Written by Gordon Matzigkeit, 1996 | |
19583 | # | |
19584 | # This file is part of GNU Libtool. | |
19585 | # | |
19586 | # GNU Libtool is free software; you can redistribute it and/or | |
19587 | # modify it under the terms of the GNU General Public License as | |
19588 | # published by the Free Software Foundation; either version 2 of | |
19589 | # the License, or (at your option) any later version. | |
19590 | # | |
19591 | # As a special exception to the GNU General Public License, | |
19592 | # if you distribute this file as part of a program or library that | |
19593 | # is built using GNU Libtool, you may include this file under the | |
19594 | # same distribution terms that you use for the rest of that program. | |
19595 | # | |
19596 | # GNU Libtool is distributed in the hope that it will be useful, | |
19597 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19598 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19599 | # GNU General Public License for more details. | |
19600 | # | |
19601 | # You should have received a copy of the GNU General Public License | |
19602 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19603 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19604 | # obtained by writing to the Free Software Foundation, Inc., | |
19605 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
19606 | ||
19607 | ||
19608 | # The names of the tagged configurations supported by this script. | |
19609 | available_tags="" | |
19610 | ||
19611 | # ### BEGIN LIBTOOL CONFIG | |
19612 | ||
19613 | # Which release of libtool.m4 was used? | |
19614 | macro_version=$macro_version | |
19615 | macro_revision=$macro_revision | |
19616 | ||
19617 | # Whether or not to build static libraries. | |
19618 | build_old_libs=$enable_static | |
19619 | ||
19620 | # Whether or not to build shared libraries. | |
19621 | build_libtool_libs=$enable_shared | |
19622 | ||
19623 | # What type of objects to build. | |
19624 | pic_mode=$pic_mode | |
19625 | ||
19626 | # Whether or not to optimize for fast installation. | |
19627 | fast_install=$enable_fast_install | |
19628 | ||
19629 | # Shell to use when invoking shell scripts. | |
19630 | SHELL=$lt_SHELL | |
19631 | ||
19632 | # An echo program that protects backslashes. | |
19633 | ECHO=$lt_ECHO | |
19634 | ||
19635 | # The PATH separator for the build system. | |
19636 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
19637 | ||
19638 | # The host system. | |
19639 | host_alias=$host_alias | |
19640 | host=$host | |
19641 | host_os=$host_os | |
19642 | ||
19643 | # The build system. | |
19644 | build_alias=$build_alias | |
19645 | build=$build | |
19646 | build_os=$build_os | |
19647 | ||
19648 | # A sed program that does not truncate output. | |
19649 | SED=$lt_SED | |
19650 | ||
19651 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
19652 | Xsed="\$SED -e 1s/^X//" | |
19653 | ||
19654 | # A grep program that handles long lines. | |
19655 | GREP=$lt_GREP | |
19656 | ||
19657 | # An ERE matcher. | |
19658 | EGREP=$lt_EGREP | |
19659 | ||
19660 | # A literal string matcher. | |
19661 | FGREP=$lt_FGREP | |
19662 | ||
19663 | # A BSD- or MS-compatible name lister. | |
19664 | NM=$lt_NM | |
19665 | ||
19666 | # Whether we need soft or hard links. | |
19667 | LN_S=$lt_LN_S | |
19668 | ||
19669 | # What is the maximum length of a command? | |
19670 | max_cmd_len=$max_cmd_len | |
19671 | ||
19672 | # Object file suffix (normally "o"). | |
19673 | objext=$ac_objext | |
19674 | ||
19675 | # Executable file suffix (normally ""). | |
19676 | exeext=$exeext | |
19677 | ||
19678 | # whether the shell understands "unset". | |
19679 | lt_unset=$lt_unset | |
19680 | ||
19681 | # turn spaces into newlines. | |
19682 | SP2NL=$lt_lt_SP2NL | |
19683 | ||
19684 | # turn newlines into spaces. | |
19685 | NL2SP=$lt_lt_NL2SP | |
19686 | ||
19687 | # convert \$build file names to \$host format. | |
19688 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
19689 | ||
19690 | # convert \$build files to toolchain format. | |
19691 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
19692 | ||
19693 | # An object symbol dumper. | |
19694 | OBJDUMP=$lt_OBJDUMP | |
19695 | ||
19696 | # Method to check whether dependent libraries are shared objects. | |
19697 | deplibs_check_method=$lt_deplibs_check_method | |
19698 | ||
19699 | # Command to use when deplibs_check_method = "file_magic". | |
19700 | file_magic_cmd=$lt_file_magic_cmd | |
19701 | ||
19702 | # How to find potential files when deplibs_check_method = "file_magic". | |
19703 | file_magic_glob=$lt_file_magic_glob | |
19704 | ||
19705 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
19706 | want_nocaseglob=$lt_want_nocaseglob | |
19707 | ||
19708 | # DLL creation program. | |
19709 | DLLTOOL=$lt_DLLTOOL | |
19710 | ||
19711 | # Command to associate shared and link libraries. | |
19712 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
19713 | ||
19714 | # The archiver. | |
19715 | AR=$lt_AR | |
19716 | ||
19717 | # Flags to create an archive. | |
19718 | AR_FLAGS=$lt_AR_FLAGS | |
19719 | ||
19720 | # How to feed a file listing to the archiver. | |
19721 | archiver_list_spec=$lt_archiver_list_spec | |
19722 | ||
19723 | # A symbol stripping program. | |
19724 | STRIP=$lt_STRIP | |
19725 | ||
19726 | # Commands used to install an old-style archive. | |
19727 | RANLIB=$lt_RANLIB | |
19728 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
19729 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19730 | ||
19731 | # Whether to use a lock for old archive extraction. | |
19732 | lock_old_archive_extraction=$lock_old_archive_extraction | |
19733 | ||
19734 | # A C compiler. | |
19735 | LTCC=$lt_CC | |
19736 | ||
19737 | # LTCC compiler flags. | |
19738 | LTCFLAGS=$lt_CFLAGS | |
19739 | ||
19740 | # Take the output of nm and produce a listing of raw symbols and C names. | |
19741 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19742 | ||
19743 | # Transform the output of nm in a proper C declaration. | |
19744 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19745 | ||
19746 | # Transform the output of nm in a C name address pair. | |
19747 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19748 | ||
19749 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
19750 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
19751 | ||
19752 | # Specify filename containing input files for \$NM. | |
19753 | nm_file_list_spec=$lt_nm_file_list_spec | |
19754 | ||
19755 | # The root where to search for dependent libraries,and in which our libraries should be installed. | |
19756 | lt_sysroot=$lt_sysroot | |
19757 | ||
19758 | # The name of the directory that contains temporary libtool files. | |
19759 | objdir=$objdir | |
19760 | ||
19761 | # Used to examine libraries when file_magic_cmd begins with "file". | |
19762 | MAGIC_CMD=$MAGIC_CMD | |
19763 | ||
19764 | # Must we lock files when doing compilation? | |
19765 | need_locks=$lt_need_locks | |
19766 | ||
19767 | # Manifest tool. | |
19768 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
19769 | ||
19770 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
19771 | DSYMUTIL=$lt_DSYMUTIL | |
19772 | ||
19773 | # Tool to change global to local symbols on Mac OS X. | |
19774 | NMEDIT=$lt_NMEDIT | |
19775 | ||
19776 | # Tool to manipulate fat objects and archives on Mac OS X. | |
19777 | LIPO=$lt_LIPO | |
19778 | ||
19779 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
19780 | OTOOL=$lt_OTOOL | |
19781 | ||
19782 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
19783 | OTOOL64=$lt_OTOOL64 | |
19784 | ||
19785 | # Old archive suffix (normally "a"). | |
19786 | libext=$libext | |
19787 | ||
19788 | # Shared library suffix (normally ".so"). | |
19789 | shrext_cmds=$lt_shrext_cmds | |
19790 | ||
19791 | # The commands to extract the exported symbol list from a shared archive. | |
19792 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19793 | ||
19794 | # Variables whose values should be saved in libtool wrapper scripts and | |
19795 | # restored at link time. | |
19796 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
19797 | ||
19798 | # Do we need the "lib" prefix for modules? | |
19799 | need_lib_prefix=$need_lib_prefix | |
19800 | ||
19801 | # Do we need a version for libraries? | |
19802 | need_version=$need_version | |
19803 | ||
19804 | # Library versioning type. | |
19805 | version_type=$version_type | |
19806 | ||
19807 | # Shared library runtime path variable. | |
19808 | runpath_var=$runpath_var | |
19809 | ||
19810 | # Shared library path variable. | |
19811 | shlibpath_var=$shlibpath_var | |
19812 | ||
19813 | # Is shlibpath searched before the hard-coded library search path? | |
19814 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19815 | ||
19816 | # Format of library name prefix. | |
19817 | libname_spec=$lt_libname_spec | |
19818 | ||
19819 | # List of archive names. First name is the real one, the rest are links. | |
19820 | # The last name is the one that the linker finds with -lNAME | |
19821 | library_names_spec=$lt_library_names_spec | |
19822 | ||
19823 | # The coded name of the library, if different from the real name. | |
19824 | soname_spec=$lt_soname_spec | |
19825 | ||
19826 | # Permission mode override for installation of shared libraries. | |
19827 | install_override_mode=$lt_install_override_mode | |
19828 | ||
19829 | # Command to use after installation of a shared archive. | |
19830 | postinstall_cmds=$lt_postinstall_cmds | |
19831 | ||
19832 | # Command to use after uninstallation of a shared archive. | |
19833 | postuninstall_cmds=$lt_postuninstall_cmds | |
19834 | ||
19835 | # Commands used to finish a libtool library installation in a directory. | |
19836 | finish_cmds=$lt_finish_cmds | |
19837 | ||
19838 | # As "finish_cmds", except a single script fragment to be evaled but | |
19839 | # not shown. | |
19840 | finish_eval=$lt_finish_eval | |
19841 | ||
19842 | # Whether we should hardcode library paths into libraries. | |
19843 | hardcode_into_libs=$hardcode_into_libs | |
19844 | ||
19845 | # Compile-time system search path for libraries. | |
19846 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19847 | ||
19848 | # Run-time system search path for libraries. | |
19849 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19850 | ||
19851 | # Whether dlopen is supported. | |
19852 | dlopen_support=$enable_dlopen | |
19853 | ||
19854 | # Whether dlopen of programs is supported. | |
19855 | dlopen_self=$enable_dlopen_self | |
19856 | ||
19857 | # Whether dlopen of statically linked programs is supported. | |
19858 | dlopen_self_static=$enable_dlopen_self_static | |
19859 | ||
19860 | # Commands to strip libraries. | |
19861 | old_striplib=$lt_old_striplib | |
19862 | striplib=$lt_striplib | |
19863 | ||
19864 | ||
19865 | # The linker used to build libraries. | |
19866 | LD=$lt_LD | |
19867 | ||
19868 | # How to create reloadable object files. | |
19869 | reload_flag=$lt_reload_flag | |
19870 | reload_cmds=$lt_reload_cmds | |
19871 | ||
19872 | # Commands used to build an old-style archive. | |
19873 | old_archive_cmds=$lt_old_archive_cmds | |
19874 | ||
19875 | # A language specific compiler. | |
19876 | CC=$lt_compiler | |
19877 | ||
19878 | # Is the compiler the GNU compiler? | |
19879 | with_gcc=$GCC | |
19880 | ||
19881 | # Compiler flag to turn off builtin functions. | |
19882 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
19883 | ||
19884 | # Additional compiler flags for building library objects. | |
19885 | pic_flag=$lt_lt_prog_compiler_pic | |
19886 | ||
19887 | # How to pass a linker flag through the compiler. | |
19888 | wl=$lt_lt_prog_compiler_wl | |
19889 | ||
19890 | # Compiler flag to prevent dynamic linking. | |
19891 | link_static_flag=$lt_lt_prog_compiler_static | |
19892 | ||
19893 | # Does compiler simultaneously support -c and -o options? | |
19894 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
19895 | ||
19896 | # Whether or not to add -lc for building shared libraries. | |
19897 | build_libtool_need_lc=$archive_cmds_need_lc | |
19898 | ||
19899 | # Whether or not to disallow shared libs when runtime libs are static. | |
19900 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
19901 | ||
19902 | # Compiler flag to allow reflexive dlopens. | |
19903 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
19904 | ||
19905 | # Compiler flag to generate shared objects directly from archives. | |
19906 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
19907 | ||
19908 | # Whether the compiler copes with passing no objects directly. | |
19909 | compiler_needs_object=$lt_compiler_needs_object | |
19910 | ||
19911 | # Create an old-style archive from a shared archive. | |
19912 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
19913 | ||
19914 | # Create a temporary old-style archive to link instead of a shared archive. | |
19915 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
19916 | ||
19917 | # Commands used to build a shared archive. | |
19918 | archive_cmds=$lt_archive_cmds | |
19919 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
19920 | ||
19921 | # Commands used to build a loadable module if different from building | |
19922 | # a shared archive. | |
19923 | module_cmds=$lt_module_cmds | |
19924 | module_expsym_cmds=$lt_module_expsym_cmds | |
19925 | ||
19926 | # Whether we are building with GNU ld or not. | |
19927 | with_gnu_ld=$lt_with_gnu_ld | |
19928 | ||
19929 | # Flag that allows shared libraries with undefined symbols to be built. | |
19930 | allow_undefined_flag=$lt_allow_undefined_flag | |
19931 | ||
19932 | # Flag that enforces no undefined symbols. | |
19933 | no_undefined_flag=$lt_no_undefined_flag | |
19934 | ||
19935 | # Flag to hardcode \$libdir into a binary during linking. | |
19936 | # This must work even if \$libdir does not exist | |
19937 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
19938 | ||
19939 | # Whether we need a single "-rpath" flag with a separated argument. | |
19940 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
19941 | ||
19942 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19943 | # DIR into the resulting binary. | |
19944 | hardcode_direct=$hardcode_direct | |
19945 | ||
19946 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19947 | # DIR into the resulting binary and the resulting library dependency is | |
19948 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19949 | # library is relocated. | |
19950 | hardcode_direct_absolute=$hardcode_direct_absolute | |
19951 | ||
19952 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19953 | # into the resulting binary. | |
19954 | hardcode_minus_L=$hardcode_minus_L | |
19955 | ||
19956 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19957 | # into the resulting binary. | |
19958 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
19959 | ||
19960 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19961 | # into the library and all subsequent libraries and executables linked | |
19962 | # against it. | |
19963 | hardcode_automatic=$hardcode_automatic | |
19964 | ||
19965 | # Set to yes if linker adds runtime paths of dependent libraries | |
19966 | # to runtime path list. | |
19967 | inherit_rpath=$inherit_rpath | |
19968 | ||
19969 | # Whether libtool must link a program against all its dependency libraries. | |
19970 | link_all_deplibs=$link_all_deplibs | |
19971 | ||
19972 | # Set to "yes" if exported symbols are required. | |
19973 | always_export_symbols=$always_export_symbols | |
19974 | ||
19975 | # The commands to list exported symbols. | |
19976 | export_symbols_cmds=$lt_export_symbols_cmds | |
19977 | ||
19978 | # Symbols that should not be listed in the preloaded symbols. | |
19979 | exclude_expsyms=$lt_exclude_expsyms | |
19980 | ||
19981 | # Symbols that must always be exported. | |
19982 | include_expsyms=$lt_include_expsyms | |
19983 | ||
19984 | # Commands necessary for linking programs (against libraries) with templates. | |
19985 | prelink_cmds=$lt_prelink_cmds | |
19986 | ||
19987 | # Commands necessary for finishing linking programs. | |
19988 | postlink_cmds=$lt_postlink_cmds | |
19989 | ||
19990 | # Specify filename containing input files. | |
19991 | file_list_spec=$lt_file_list_spec | |
19992 | ||
19993 | # How to hardcode a shared library path into an executable. | |
19994 | hardcode_action=$hardcode_action | |
19995 | ||
19996 | # ### END LIBTOOL CONFIG | |
19997 | ||
19998 | _LT_EOF | |
19999 | ||
20000 | case $host_os in | |
20001 | aix3*) | |
20002 | cat <<\_LT_EOF >> "$cfgfile" | |
20003 | # AIX sometimes has problems with the GCC collect2 program. For some | |
20004 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
20005 | # vanish in a puff of smoke. | |
20006 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
20007 | COLLECT_NAMES= | |
20008 | export COLLECT_NAMES | |
20009 | fi | |
20010 | _LT_EOF | |
20011 | ;; | |
20012 | esac | |
20013 | ||
20014 | ||
20015 | ltmain="$ac_aux_dir/ltmain.sh" | |
20016 | ||
20017 | ||
20018 | # We use sed instead of cat because bash on DJGPP gets confused if | |
20019 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
20020 | # text mode, it properly converts lines to CR/LF. This bash problem | |
20021 | # is reportedly fixed, but why not run on old versions too? | |
20022 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
20023 | || (rm -f "$cfgfile"; exit 1) | |
20024 | ||
20025 | if test x"$xsi_shell" = xyes; then | |
20026 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
20027 | func_dirname ()\ | |
20028 | {\ | |
20029 | \ case ${1} in\ | |
20030 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
20031 | \ * ) func_dirname_result="${3}" ;;\ | |
20032 | \ esac\ | |
20033 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
20034 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20035 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20036 | test 0 -eq $? || _lt_function_replace_fail=: | |
20037 | ||
20038 | ||
20039 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
20040 | func_basename ()\ | |
20041 | {\ | |
20042 | \ func_basename_result="${1##*/}"\ | |
20043 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
20044 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20045 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20046 | test 0 -eq $? || _lt_function_replace_fail=: | |
20047 | ||
20048 | ||
20049 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
20050 | func_dirname_and_basename ()\ | |
20051 | {\ | |
20052 | \ case ${1} in\ | |
20053 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
20054 | \ * ) func_dirname_result="${3}" ;;\ | |
20055 | \ esac\ | |
20056 | \ func_basename_result="${1##*/}"\ | |
20057 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
20058 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20059 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20060 | test 0 -eq $? || _lt_function_replace_fail=: | |
20061 | ||
20062 | ||
20063 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
20064 | func_stripname ()\ | |
20065 | {\ | |
20066 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
20067 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
20068 | \ func_stripname_result=${3}\ | |
20069 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
20070 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
20071 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
20072 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20073 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20074 | test 0 -eq $? || _lt_function_replace_fail=: | |
20075 | ||
20076 | ||
20077 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
20078 | func_split_long_opt ()\ | |
20079 | {\ | |
20080 | \ func_split_long_opt_name=${1%%=*}\ | |
20081 | \ func_split_long_opt_arg=${1#*=}\ | |
20082 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
20083 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20084 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20085 | test 0 -eq $? || _lt_function_replace_fail=: | |
20086 | ||
20087 | ||
20088 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
20089 | func_split_short_opt ()\ | |
20090 | {\ | |
20091 | \ func_split_short_opt_arg=${1#??}\ | |
20092 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
20093 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
20094 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20095 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20096 | test 0 -eq $? || _lt_function_replace_fail=: | |
20097 | ||
20098 | ||
20099 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
20100 | func_lo2o ()\ | |
20101 | {\ | |
20102 | \ case ${1} in\ | |
20103 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
20104 | \ *) func_lo2o_result=${1} ;;\ | |
20105 | \ esac\ | |
20106 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
20107 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20108 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20109 | test 0 -eq $? || _lt_function_replace_fail=: | |
20110 | ||
20111 | ||
20112 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
20113 | func_xform ()\ | |
20114 | {\ | |
20115 | func_xform_result=${1%.*}.lo\ | |
20116 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
20117 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20118 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20119 | test 0 -eq $? || _lt_function_replace_fail=: | |
20120 | ||
20121 | ||
20122 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
20123 | func_arith ()\ | |
20124 | {\ | |
20125 | func_arith_result=$(( $* ))\ | |
20126 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
20127 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20128 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20129 | test 0 -eq $? || _lt_function_replace_fail=: | |
20130 | ||
20131 | ||
20132 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
20133 | func_len ()\ | |
20134 | {\ | |
20135 | func_len_result=${#1}\ | |
20136 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
20137 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20138 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20139 | test 0 -eq $? || _lt_function_replace_fail=: | |
20140 | ||
20141 | fi | |
20142 | ||
20143 | if test x"$lt_shell_append" = xyes; then | |
20144 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
20145 | func_append ()\ | |
20146 | {\ | |
20147 | eval "${1}+=\\${2}"\ | |
20148 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
20149 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20150 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20151 | test 0 -eq $? || _lt_function_replace_fail=: | |
20152 | ||
20153 | ||
20154 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
20155 | func_append_quoted ()\ | |
20156 | {\ | |
20157 | \ func_quote_for_eval "${2}"\ | |
20158 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
20159 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
20160 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20161 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20162 | test 0 -eq $? || _lt_function_replace_fail=: | |
20163 | ||
20164 | ||
20165 | # Save a `func_append' function call where possible by direct use of '+=' | |
20166 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
20167 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20168 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20169 | test 0 -eq $? || _lt_function_replace_fail=: | |
20170 | else | |
20171 | # Save a `func_append' function call even when '+=' is not available | |
20172 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
20173 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20174 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20175 | test 0 -eq $? || _lt_function_replace_fail=: | |
20176 | fi | |
20177 | ||
20178 | if test x"$_lt_function_replace_fail" = x":"; then | |
20179 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
20180 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
20181 | fi | |
20182 | ||
20183 | ||
20184 | mv -f "$cfgfile" "$ofile" || | |
20185 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
20186 | chmod +x "$ofile" | |
20187 | ||
20188 | ;; | |
2eff3833 | 20189 | "tools/genssl_chmod":C) chmod 755 tools/genssl ;; |
9f9b7042 NPB |
20190 | |
20191 | esac | |
631ef239 | 20192 | done # for ac_tag |
212380e3 | 20193 | |
212380e3 | 20194 | |
7083c021 | 20195 | as_fn_exit 0 |
212380e3 | 20196 | _ACEOF |
212380e3 AC |
20197 | ac_clean_files=$ac_clean_files_save |
20198 | ||
7083c021 | 20199 | test $ac_write_fail = 0 || |
b6d0720c | 20200 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
7083c021 | 20201 | |
212380e3 AC |
20202 | |
20203 | # configure is writing to config.log, and then calls config.status. | |
20204 | # config.status does its own redirection, appending to config.log. | |
20205 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20206 | # by configure, so config.status won't be able to write to it; its | |
20207 | # output is simply discarded. So we exec the FD to /dev/null, | |
20208 | # effectively closing config.log, so it can be properly (re)opened and | |
20209 | # appended to by config.status. When coming back to configure, we | |
20210 | # need to make the FD available again. | |
20211 | if test "$no_create" != yes; then | |
20212 | ac_cs_success=: | |
20213 | ac_config_status_args= | |
20214 | test "$silent" = yes && | |
20215 | ac_config_status_args="$ac_config_status_args --quiet" | |
20216 | exec 5>/dev/null | |
20217 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20218 | exec 5>>config.log | |
20219 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20220 | # would make configure fail if this is the last instruction. | |
b6d0720c | 20221 | $ac_cs_success || as_fn_exit 1 |
212380e3 | 20222 | fi |
1db8e007 JT |
20223 | |
20224 | # | |
20225 | # CONFIG_SUBDIRS section. | |
20226 | # | |
20227 | if test "$no_recursion" != yes; then | |
20228 | ||
20229 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments | |
20230 | # so they do not pile up. | |
20231 | ac_sub_configure_args= | |
20232 | ac_prev= | |
20233 | eval "set x $ac_configure_args" | |
20234 | shift | |
20235 | for ac_arg | |
20236 | do | |
20237 | if test -n "$ac_prev"; then | |
20238 | ac_prev= | |
20239 | continue | |
20240 | fi | |
20241 | case $ac_arg in | |
20242 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
20243 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
20244 | ac_prev=cache_file ;; | |
20245 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
20246 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
20247 | | --c=*) | |
20248 | ;; | |
20249 | --config-cache | -C) | |
20250 | ;; | |
20251 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
20252 | ac_prev=srcdir ;; | |
20253 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
20254 | ;; | |
20255 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
20256 | ac_prev=prefix ;; | |
20257 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
20258 | ;; | |
20259 | --disable-option-checking) | |
20260 | ;; | |
20261 | *) | |
20262 | case $ac_arg in | |
20263 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20264 | esac | |
20265 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; | |
20266 | esac | |
20267 | done | |
20268 | ||
20269 | # Always prepend --prefix to ensure using the same prefix | |
20270 | # in subdir configurations. | |
20271 | ac_arg="--prefix=$prefix" | |
20272 | case $ac_arg in | |
20273 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20274 | esac | |
20275 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
20276 | ||
20277 | # Pass --silent | |
20278 | if test "$silent" = yes; then | |
20279 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
20280 | fi | |
20281 | ||
20282 | # Always prepend --disable-option-checking to silence warnings, since | |
20283 | # different subdirs can have different --enable and --with options. | |
20284 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
20285 | ||
20286 | ac_popdir=`pwd` | |
20287 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
20288 | ||
20289 | # Do not complain, so a configure script can configure whichever | |
20290 | # parts of a large source tree are present. | |
20291 | test -d "$srcdir/$ac_dir" || continue | |
20292 | ||
20293 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
20294 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
20295 | $as_echo "$ac_msg" >&6 | |
20296 | as_dir="$ac_dir"; as_fn_mkdir_p | |
20297 | ac_builddir=. | |
20298 | ||
20299 | case "$ac_dir" in | |
20300 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20301 | *) | |
20302 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
20303 | # A ".." for each directory in $ac_dir_suffix. | |
20304 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
20305 | case $ac_top_builddir_sub in | |
20306 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20307 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
20308 | esac ;; | |
20309 | esac | |
20310 | ac_abs_top_builddir=$ac_pwd | |
20311 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
20312 | # for backward compatibility: | |
20313 | ac_top_builddir=$ac_top_build_prefix | |
20314 | ||
20315 | case $srcdir in | |
20316 | .) # We are building in place. | |
20317 | ac_srcdir=. | |
20318 | ac_top_srcdir=$ac_top_builddir_sub | |
20319 | ac_abs_top_srcdir=$ac_pwd ;; | |
20320 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
20321 | ac_srcdir=$srcdir$ac_dir_suffix; | |
20322 | ac_top_srcdir=$srcdir | |
20323 | ac_abs_top_srcdir=$srcdir ;; | |
20324 | *) # Relative name. | |
20325 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
20326 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
20327 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
20328 | esac | |
20329 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
20330 | ||
20331 | ||
20332 | cd "$ac_dir" | |
20333 | ||
20334 | # Check for guested configure; otherwise get Cygnus style configure. | |
20335 | if test -f "$ac_srcdir/configure.gnu"; then | |
20336 | ac_sub_configure=$ac_srcdir/configure.gnu | |
20337 | elif test -f "$ac_srcdir/configure"; then | |
20338 | ac_sub_configure=$ac_srcdir/configure | |
20339 | elif test -f "$ac_srcdir/configure.in"; then | |
20340 | # This should be Cygnus configure. | |
20341 | ac_sub_configure=$ac_aux_dir/configure | |
20342 | else | |
20343 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 | |
20344 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
20345 | ac_sub_configure= | |
20346 | fi | |
20347 | ||
20348 | # The recursion is here. | |
20349 | if test -n "$ac_sub_configure"; then | |
20350 | # Make the cache file name correct relative to the subdirectory. | |
20351 | case $cache_file in | |
20352 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
20353 | *) # Relative name. | |
20354 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
20355 | esac | |
20356 | ||
20357 | { $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 | |
20358 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
20359 | # The eval makes quoting arguments work. | |
20360 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
20361 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
20362 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 | |
20363 | fi | |
20364 | ||
20365 | cd "$ac_popdir" | |
20366 | done | |
20367 | fi | |
7083c021 AC |
20368 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
20369 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20370 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
20371 | fi | |
b676ea3b | 20372 | |
212380e3 AC |
20373 | |
20374 | if test "$cf_openssl_version_ok" = yes; then | |
20375 | openssl="yes" | |
20376 | else | |
20377 | openssl="no" | |
20378 | fi | |
20379 | ||
212380e3 | 20380 | echo " |
b6d0720c | 20381 | Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}: |
212380e3 AC |
20382 | Install directory : $prefix |
20383 | ||
20384 | Ziplinks : $zlib | |
20385 | OpenSSL : $openssl | |
212380e3 AC |
20386 | Small network : $small_net |
20387 | Block allocator : $balloc | |
212380e3 AC |
20388 | |
20389 | Nickname length : $NICKLEN | |
20390 | Topic length : $TOPICLEN | |
20391 | ||
b6d0720c | 20392 | Use (g)make to compile $BRANDING_NAME, then (g)make install to install it. |
212380e3 | 20393 | " |