]>
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 | ||
f0718c93 | 566 | lt_ltdl_dir='libltdl' |
c52df125 AC |
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 | |
7083c021 | 671 | CRYPT_LIB |
9f9b7042 NPB |
672 | PKGLIBEXECDIR |
673 | pkglibexecdir | |
674 | PKGLOCALSTATEDIR | |
675 | pkglocalstatedir | |
676 | pkgrundir | |
677 | rundir | |
678 | pkglibdir | |
7083c021 AC |
679 | LEXLIB |
680 | LEX_OUTPUT_ROOT | |
681 | LEX | |
682 | YFLAGS | |
683 | YACC | |
684 | TOUCH | |
7083c021 AC |
685 | LN |
686 | MV | |
687 | CP | |
688 | RM | |
c52df125 AC |
689 | BUILD_LTDL_FALSE |
690 | BUILD_LTDL_TRUE | |
691 | LTDLOPEN | |
692 | LT_CONFIG_H | |
c52df125 AC |
693 | CONVENIENCE_LTDL_FALSE |
694 | CONVENIENCE_LTDL_TRUE | |
695 | INSTALL_LTDL_FALSE | |
696 | INSTALL_LTDL_TRUE | |
697 | ARGZ_H | |
698 | sys_symbol_underscore | |
699 | LIBADD_DL | |
700 | LT_DLPREOPEN | |
701 | LIBADD_DLD_LINK | |
702 | LIBADD_SHL_LOAD | |
703 | LIBADD_DLOPEN | |
704 | LT_DLLOADERS | |
705 | INCLTDL | |
706 | LTDLINCL | |
707 | LTDLDEPS | |
708 | LIBLTDL | |
c52df125 AC |
709 | OTOOL64 |
710 | OTOOL | |
711 | LIPO | |
712 | NMEDIT | |
713 | DSYMUTIL | |
714 | MANIFEST_TOOL | |
715 | RANLIB | |
716 | DLLTOOL | |
717 | OBJDUMP | |
718 | LN_S | |
719 | NM | |
720 | ac_ct_DUMPBIN | |
721 | DUMPBIN | |
722 | LD | |
723 | FGREP | |
c52df125 AC |
724 | SED |
725 | host_os | |
726 | host_vendor | |
727 | host_cpu | |
728 | host | |
729 | build_os | |
730 | build_vendor | |
731 | build_cpu | |
732 | build | |
733 | LIBTOOL | |
eec2776c AJ |
734 | ac_ct_AR |
735 | AR | |
736 | AM_BACKSLASH | |
737 | AM_DEFAULT_VERBOSITY | |
738 | AM_DEFAULT_V | |
739 | AM_V | |
c52df125 AC |
740 | am__fastdepCC_FALSE |
741 | am__fastdepCC_TRUE | |
742 | CCDEPMODE | |
743 | am__nodep | |
744 | AMDEPBACKSLASH | |
745 | AMDEP_FALSE | |
746 | AMDEP_TRUE | |
747 | am__quote | |
748 | am__include | |
749 | DEPDIR | |
c52df125 AC |
750 | am__untar |
751 | am__tar | |
752 | AMTAR | |
753 | am__leading_dot | |
754 | SET_MAKE | |
755 | AWK | |
756 | mkdir_p | |
757 | MKDIR_P | |
758 | INSTALL_STRIP_PROGRAM | |
759 | STRIP | |
760 | install_sh | |
761 | MAKEINFO | |
762 | AUTOHEADER | |
763 | AUTOMAKE | |
764 | AUTOCONF | |
765 | ACLOCAL | |
766 | VERSION | |
767 | PACKAGE | |
768 | CYGPATH_W | |
769 | am__isrc | |
770 | INSTALL_DATA | |
771 | INSTALL_SCRIPT | |
772 | INSTALL_PROGRAM | |
eec2776c AJ |
773 | subdirs |
774 | EGREP | |
775 | GREP | |
776 | CPP | |
777 | OBJEXT | |
778 | EXEEXT | |
779 | ac_ct_CC | |
780 | CPPFLAGS | |
781 | LDFLAGS | |
782 | CFLAGS | |
783 | CC | |
7083c021 AC |
784 | target_alias |
785 | host_alias | |
786 | build_alias | |
787 | LIBS | |
788 | ECHO_T | |
789 | ECHO_N | |
790 | ECHO_C | |
791 | DEFS | |
792 | mandir | |
793 | localedir | |
794 | libdir | |
795 | psdir | |
796 | pdfdir | |
797 | dvidir | |
798 | htmldir | |
799 | infodir | |
800 | docdir | |
801 | oldincludedir | |
802 | includedir | |
803 | localstatedir | |
804 | sharedstatedir | |
805 | sysconfdir | |
806 | datadir | |
807 | datarootdir | |
808 | libexecdir | |
809 | sbindir | |
810 | bindir | |
811 | program_transform_name | |
812 | prefix | |
813 | exec_prefix | |
814 | PACKAGE_URL | |
815 | PACKAGE_BUGREPORT | |
816 | PACKAGE_STRING | |
817 | PACKAGE_VERSION | |
818 | PACKAGE_TARNAME | |
819 | PACKAGE_NAME | |
820 | PATH_SEPARATOR | |
821 | SHELL' | |
212380e3 | 822 | ac_subst_files='' |
7083c021 AC |
823 | ac_user_opts=' |
824 | enable_option_checking | |
c52df125 | 825 | enable_dependency_tracking |
eec2776c | 826 | enable_silent_rules |
c52df125 AC |
827 | enable_static |
828 | enable_shared | |
829 | with_pic | |
830 | enable_fast_install | |
831 | with_gnu_ld | |
832 | with_sysroot | |
833 | enable_libtool_lock | |
834 | with_included_ltdl | |
835 | with_ltdl_include | |
836 | with_ltdl_lib | |
837 | enable_ltdl_install | |
9f9b7042 | 838 | enable_fhs_paths |
7083c021 AC |
839 | enable_ipv6 |
840 | enable_openssl | |
841 | with_zlib_path | |
842 | enable_zlib | |
a6ef3156 | 843 | with_shared_sqlite |
7083c021 AC |
844 | with_confdir |
845 | with_logdir | |
846 | with_helpdir | |
847 | with_moduledir | |
9f9b7042 NPB |
848 | with_rundir |
849 | with_program_prefix | |
b6d0720c AC |
850 | with_custom_branding |
851 | with_custom_version | |
7083c021 AC |
852 | enable_assert |
853 | enable_iodebug | |
854 | enable_profile | |
7083c021 AC |
855 | with_nicklen |
856 | with_topiclen | |
857 | enable_warnings | |
858 | ' | |
631ef239 AC |
859 | ac_precious_vars='build_alias |
860 | host_alias | |
861 | target_alias | |
862 | CC | |
863 | CFLAGS | |
864 | LDFLAGS | |
865 | LIBS | |
866 | CPPFLAGS | |
867 | CPP | |
868 | YACC | |
a5471f24 LS |
869 | YFLAGS |
870 | PKG_CONFIG | |
871 | PKG_CONFIG_PATH | |
872 | PKG_CONFIG_LIBDIR | |
873 | SQLITE_CFLAGS | |
874 | SQLITE_LIBS' | |
eec2776c | 875 | ac_subdirs_all='libratbox |
eec2776c | 876 | libltdl' |
212380e3 AC |
877 | |
878 | # Initialize some variables set by options. | |
879 | ac_init_help= | |
880 | ac_init_version=false | |
7083c021 AC |
881 | ac_unrecognized_opts= |
882 | ac_unrecognized_sep= | |
212380e3 AC |
883 | # The variables have the same names as the options, with |
884 | # dashes changed to underlines. | |
885 | cache_file=/dev/null | |
886 | exec_prefix=NONE | |
887 | no_create= | |
888 | no_recursion= | |
889 | prefix=NONE | |
890 | program_prefix=NONE | |
891 | program_suffix=NONE | |
892 | program_transform_name=s,x,x, | |
893 | silent= | |
894 | site= | |
895 | srcdir= | |
896 | verbose= | |
897 | x_includes=NONE | |
898 | x_libraries=NONE | |
899 | ||
900 | # Installation directory options. | |
901 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
902 | # and all the variables that are supposed to be based on exec_prefix | |
903 | # by default will actually change. | |
904 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
631ef239 | 905 | # (The list follows the same order as the GNU Coding Standards.) |
212380e3 AC |
906 | bindir='${exec_prefix}/bin' |
907 | sbindir='${exec_prefix}/sbin' | |
908 | libexecdir='${exec_prefix}/libexec' | |
631ef239 AC |
909 | datarootdir='${prefix}/share' |
910 | datadir='${datarootdir}' | |
212380e3 AC |
911 | sysconfdir='${prefix}/etc' |
912 | sharedstatedir='${prefix}/com' | |
913 | localstatedir='${prefix}/var' | |
212380e3 AC |
914 | includedir='${prefix}/include' |
915 | oldincludedir='/usr/include' | |
631ef239 AC |
916 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
917 | infodir='${datarootdir}/info' | |
918 | htmldir='${docdir}' | |
919 | dvidir='${docdir}' | |
920 | pdfdir='${docdir}' | |
921 | psdir='${docdir}' | |
922 | libdir='${exec_prefix}/lib' | |
923 | localedir='${datarootdir}/locale' | |
924 | mandir='${datarootdir}/man' | |
212380e3 AC |
925 | |
926 | ac_prev= | |
631ef239 | 927 | ac_dashdash= |
212380e3 AC |
928 | for ac_option |
929 | do | |
930 | # If the previous option needs an argument, assign it. | |
931 | if test -n "$ac_prev"; then | |
631ef239 | 932 | eval $ac_prev=\$ac_option |
212380e3 AC |
933 | ac_prev= |
934 | continue | |
935 | fi | |
936 | ||
631ef239 | 937 | case $ac_option in |
b6d0720c AC |
938 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
939 | *=) ac_optarg= ;; | |
940 | *) ac_optarg=yes ;; | |
631ef239 | 941 | esac |
212380e3 AC |
942 | |
943 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
944 | ||
631ef239 AC |
945 | case $ac_dashdash$ac_option in |
946 | --) | |
947 | ac_dashdash=yes ;; | |
212380e3 AC |
948 | |
949 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
950 | ac_prev=bindir ;; | |
951 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
952 | bindir=$ac_optarg ;; | |
953 | ||
954 | -build | --build | --buil | --bui | --bu) | |
955 | ac_prev=build_alias ;; | |
956 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
957 | build_alias=$ac_optarg ;; | |
958 | ||
959 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
960 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
961 | ac_prev=cache_file ;; | |
962 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
963 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
964 | cache_file=$ac_optarg ;; | |
965 | ||
966 | --config-cache | -C) | |
967 | cache_file=config.cache ;; | |
968 | ||
631ef239 | 969 | -datadir | --datadir | --datadi | --datad) |
212380e3 | 970 | ac_prev=datadir ;; |
631ef239 | 971 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
212380e3 AC |
972 | datadir=$ac_optarg ;; |
973 | ||
631ef239 AC |
974 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
975 | | --dataroo | --dataro | --datar) | |
976 | ac_prev=datarootdir ;; | |
977 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
978 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
979 | datarootdir=$ac_optarg ;; | |
980 | ||
212380e3 | 981 | -disable-* | --disable-*) |
7083c021 | 982 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
212380e3 | 983 | # Reject names that are not valid shell variable names. |
7083c021 | 984 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 985 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
986 | ac_useropt_orig=$ac_useropt |
987 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
988 | case $ac_user_opts in | |
989 | *" | |
990 | "enable_$ac_useropt" | |
991 | "*) ;; | |
992 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
993 | ac_unrecognized_sep=', ';; | |
994 | esac | |
995 | eval enable_$ac_useropt=no ;; | |
631ef239 AC |
996 | |
997 | -docdir | --docdir | --docdi | --doc | --do) | |
998 | ac_prev=docdir ;; | |
999 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1000 | docdir=$ac_optarg ;; | |
1001 | ||
1002 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1003 | ac_prev=dvidir ;; | |
1004 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1005 | dvidir=$ac_optarg ;; | |
212380e3 AC |
1006 | |
1007 | -enable-* | --enable-*) | |
7083c021 | 1008 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
212380e3 | 1009 | # Reject names that are not valid shell variable names. |
7083c021 | 1010 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1011 | as_fn_error $? "invalid feature name: $ac_useropt" |
7083c021 AC |
1012 | ac_useropt_orig=$ac_useropt |
1013 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1014 | case $ac_user_opts in | |
1015 | *" | |
1016 | "enable_$ac_useropt" | |
1017 | "*) ;; | |
1018 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1019 | ac_unrecognized_sep=', ';; | |
1020 | esac | |
1021 | eval enable_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
1022 | |
1023 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1024 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1025 | | --exec | --exe | --ex) | |
1026 | ac_prev=exec_prefix ;; | |
1027 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1028 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1029 | | --exec=* | --exe=* | --ex=*) | |
1030 | exec_prefix=$ac_optarg ;; | |
1031 | ||
1032 | -gas | --gas | --ga | --g) | |
1033 | # Obsolete; use --with-gas. | |
1034 | with_gas=yes ;; | |
1035 | ||
1036 | -help | --help | --hel | --he | -h) | |
1037 | ac_init_help=long ;; | |
1038 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1039 | ac_init_help=recursive ;; | |
1040 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1041 | ac_init_help=short ;; | |
1042 | ||
1043 | -host | --host | --hos | --ho) | |
1044 | ac_prev=host_alias ;; | |
1045 | -host=* | --host=* | --hos=* | --ho=*) | |
1046 | host_alias=$ac_optarg ;; | |
1047 | ||
631ef239 AC |
1048 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1049 | ac_prev=htmldir ;; | |
1050 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1051 | | --ht=*) | |
1052 | htmldir=$ac_optarg ;; | |
1053 | ||
212380e3 AC |
1054 | -includedir | --includedir | --includedi | --included | --include \ |
1055 | | --includ | --inclu | --incl | --inc) | |
1056 | ac_prev=includedir ;; | |
1057 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1058 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1059 | includedir=$ac_optarg ;; | |
1060 | ||
1061 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1062 | ac_prev=infodir ;; | |
1063 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1064 | infodir=$ac_optarg ;; | |
1065 | ||
1066 | -libdir | --libdir | --libdi | --libd) | |
1067 | ac_prev=libdir ;; | |
1068 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1069 | libdir=$ac_optarg ;; | |
1070 | ||
1071 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1072 | | --libexe | --libex | --libe) | |
1073 | ac_prev=libexecdir ;; | |
1074 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1075 | | --libexe=* | --libex=* | --libe=*) | |
1076 | libexecdir=$ac_optarg ;; | |
1077 | ||
631ef239 AC |
1078 | -localedir | --localedir | --localedi | --localed | --locale) |
1079 | ac_prev=localedir ;; | |
1080 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1081 | localedir=$ac_optarg ;; | |
1082 | ||
212380e3 | 1083 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
631ef239 | 1084 | | --localstate | --localstat | --localsta | --localst | --locals) |
212380e3 AC |
1085 | ac_prev=localstatedir ;; |
1086 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
631ef239 | 1087 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
212380e3 AC |
1088 | localstatedir=$ac_optarg ;; |
1089 | ||
1090 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1091 | ac_prev=mandir ;; | |
1092 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1093 | mandir=$ac_optarg ;; | |
1094 | ||
1095 | -nfp | --nfp | --nf) | |
1096 | # Obsolete; use --without-fp. | |
1097 | with_fp=no ;; | |
1098 | ||
1099 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1100 | | --no-cr | --no-c | -n) | |
1101 | no_create=yes ;; | |
1102 | ||
1103 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1104 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1105 | no_recursion=yes ;; | |
1106 | ||
1107 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1108 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1109 | | --oldin | --oldi | --old | --ol | --o) | |
1110 | ac_prev=oldincludedir ;; | |
1111 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1112 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1113 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1114 | oldincludedir=$ac_optarg ;; | |
1115 | ||
1116 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1117 | ac_prev=prefix ;; | |
1118 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1119 | prefix=$ac_optarg ;; | |
1120 | ||
1121 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1122 | | --program-pre | --program-pr | --program-p) | |
1123 | ac_prev=program_prefix ;; | |
1124 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1125 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1126 | program_prefix=$ac_optarg ;; | |
1127 | ||
1128 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1129 | | --program-suf | --program-su | --program-s) | |
1130 | ac_prev=program_suffix ;; | |
1131 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1132 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1133 | program_suffix=$ac_optarg ;; | |
1134 | ||
1135 | -program-transform-name | --program-transform-name \ | |
1136 | | --program-transform-nam | --program-transform-na \ | |
1137 | | --program-transform-n | --program-transform- \ | |
1138 | | --program-transform | --program-transfor \ | |
1139 | | --program-transfo | --program-transf \ | |
1140 | | --program-trans | --program-tran \ | |
1141 | | --progr-tra | --program-tr | --program-t) | |
1142 | ac_prev=program_transform_name ;; | |
1143 | -program-transform-name=* | --program-transform-name=* \ | |
1144 | | --program-transform-nam=* | --program-transform-na=* \ | |
1145 | | --program-transform-n=* | --program-transform-=* \ | |
1146 | | --program-transform=* | --program-transfor=* \ | |
1147 | | --program-transfo=* | --program-transf=* \ | |
1148 | | --program-trans=* | --program-tran=* \ | |
1149 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1150 | program_transform_name=$ac_optarg ;; | |
1151 | ||
631ef239 AC |
1152 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1153 | ac_prev=pdfdir ;; | |
1154 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1155 | pdfdir=$ac_optarg ;; | |
1156 | ||
1157 | -psdir | --psdir | --psdi | --psd | --ps) | |
1158 | ac_prev=psdir ;; | |
1159 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1160 | psdir=$ac_optarg ;; | |
1161 | ||
212380e3 AC |
1162 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1163 | | -silent | --silent | --silen | --sile | --sil) | |
1164 | silent=yes ;; | |
1165 | ||
1166 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1167 | ac_prev=sbindir ;; | |
1168 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1169 | | --sbi=* | --sb=*) | |
1170 | sbindir=$ac_optarg ;; | |
1171 | ||
1172 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1173 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1174 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1175 | | --sha | --sh) | |
1176 | ac_prev=sharedstatedir ;; | |
1177 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1178 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1179 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1180 | | --sha=* | --sh=*) | |
1181 | sharedstatedir=$ac_optarg ;; | |
1182 | ||
1183 | -site | --site | --sit) | |
1184 | ac_prev=site ;; | |
1185 | -site=* | --site=* | --sit=*) | |
1186 | site=$ac_optarg ;; | |
1187 | ||
1188 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1189 | ac_prev=srcdir ;; | |
1190 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1191 | srcdir=$ac_optarg ;; | |
1192 | ||
1193 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1194 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1195 | ac_prev=sysconfdir ;; | |
1196 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1197 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1198 | sysconfdir=$ac_optarg ;; | |
1199 | ||
1200 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1201 | ac_prev=target_alias ;; | |
1202 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1203 | target_alias=$ac_optarg ;; | |
1204 | ||
1205 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1206 | verbose=yes ;; | |
1207 | ||
1208 | -version | --version | --versio | --versi | --vers | -V) | |
1209 | ac_init_version=: ;; | |
1210 | ||
1211 | -with-* | --with-*) | |
7083c021 | 1212 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
212380e3 | 1213 | # Reject names that are not valid shell variable names. |
7083c021 | 1214 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1215 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1216 | ac_useropt_orig=$ac_useropt |
1217 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1218 | case $ac_user_opts in | |
1219 | *" | |
1220 | "with_$ac_useropt" | |
1221 | "*) ;; | |
1222 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1223 | ac_unrecognized_sep=', ';; | |
1224 | esac | |
1225 | eval with_$ac_useropt=\$ac_optarg ;; | |
212380e3 AC |
1226 | |
1227 | -without-* | --without-*) | |
7083c021 | 1228 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
212380e3 | 1229 | # Reject names that are not valid shell variable names. |
7083c021 | 1230 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b6d0720c | 1231 | as_fn_error $? "invalid package name: $ac_useropt" |
7083c021 AC |
1232 | ac_useropt_orig=$ac_useropt |
1233 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1234 | case $ac_user_opts in | |
1235 | *" | |
1236 | "with_$ac_useropt" | |
1237 | "*) ;; | |
1238 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1239 | ac_unrecognized_sep=', ';; | |
1240 | esac | |
1241 | eval with_$ac_useropt=no ;; | |
212380e3 AC |
1242 | |
1243 | --x) | |
1244 | # Obsolete; use --with-x. | |
1245 | with_x=yes ;; | |
1246 | ||
1247 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1248 | | --x-incl | --x-inc | --x-in | --x-i) | |
1249 | ac_prev=x_includes ;; | |
1250 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1251 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1252 | x_includes=$ac_optarg ;; | |
1253 | ||
1254 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1255 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1256 | ac_prev=x_libraries ;; | |
1257 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1258 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1259 | x_libraries=$ac_optarg ;; | |
1260 | ||
b6d0720c AC |
1261 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1262 | Try \`$0 --help' for more information" | |
212380e3 AC |
1263 | ;; |
1264 | ||
1265 | *=*) | |
1266 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1267 | # Reject names that are not valid shell variable names. | |
7083c021 AC |
1268 | case $ac_envvar in #( |
1269 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
b6d0720c | 1270 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
7083c021 | 1271 | esac |
631ef239 | 1272 | eval $ac_envvar=\$ac_optarg |
212380e3 AC |
1273 | export $ac_envvar ;; |
1274 | ||
1275 | *) | |
1276 | # FIXME: should be removed in autoconf 3.0. | |
7083c021 | 1277 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
212380e3 | 1278 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
7083c021 | 1279 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b6d0720c | 1280 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
212380e3 AC |
1281 | ;; |
1282 | ||
1283 | esac | |
1284 | done | |
1285 | ||
1286 | if test -n "$ac_prev"; then | |
1287 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b6d0720c | 1288 | as_fn_error $? "missing argument to $ac_option" |
212380e3 AC |
1289 | fi |
1290 | ||
7083c021 AC |
1291 | if test -n "$ac_unrecognized_opts"; then |
1292 | case $enable_option_checking in | |
1293 | no) ;; | |
b6d0720c | 1294 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
7083c021 AC |
1295 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1296 | esac | |
1297 | fi | |
1298 | ||
1299 | # Check all directory arguments for consistency. | |
631ef239 AC |
1300 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1301 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1302 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1303 | libdir localedir mandir | |
212380e3 | 1304 | do |
631ef239 | 1305 | eval ac_val=\$$ac_var |
7083c021 AC |
1306 | # Remove trailing slashes. |
1307 | case $ac_val in | |
1308 | */ ) | |
1309 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1310 | eval $ac_var=\$ac_val;; | |
1311 | esac | |
1312 | # Be sure to have absolute directory names. | |
212380e3 | 1313 | case $ac_val in |
631ef239 AC |
1314 | [\\/$]* | ?:[\\/]* ) continue;; |
1315 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
212380e3 | 1316 | esac |
b6d0720c | 1317 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
212380e3 AC |
1318 | done |
1319 | ||
1320 | # There might be people who depend on the old broken behavior: `$host' | |
1321 | # used to hold the argument of --host etc. | |
1322 | # FIXME: To remove some day. | |
1323 | build=$build_alias | |
1324 | host=$host_alias | |
1325 | target=$target_alias | |
1326 | ||
1327 | # FIXME: To remove some day. | |
1328 | if test "x$host_alias" != x; then | |
1329 | if test "x$build_alias" = x; then | |
1330 | cross_compiling=maybe | |
212380e3 AC |
1331 | elif test "x$build_alias" != "x$host_alias"; then |
1332 | cross_compiling=yes | |
1333 | fi | |
1334 | fi | |
1335 | ||
1336 | ac_tool_prefix= | |
1337 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1338 | ||
1339 | test "$silent" = yes && exec 6>/dev/null | |
1340 | ||
1341 | ||
631ef239 AC |
1342 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1343 | ac_ls_di=`ls -di .` && | |
1344 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b6d0720c | 1345 | as_fn_error $? "working directory cannot be determined" |
631ef239 | 1346 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b6d0720c | 1347 | as_fn_error $? "pwd does not report name of working directory" |
631ef239 AC |
1348 | |
1349 | ||
1350 | # Find the source files, if location was not specified. | |
1351 | if test -z "$srcdir"; then | |
212380e3 | 1352 | ac_srcdir_defaulted=yes |
631ef239 | 1353 | # Try the directory containing this script, then the parent directory. |
7083c021 AC |
1354 | ac_confdir=`$as_dirname -- "$as_myself" || |
1355 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1356 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1357 | X"$as_myself" : 'X\(//\)$' \| \ | |
1358 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1359 | $as_echo X"$as_myself" | | |
631ef239 AC |
1360 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1361 | s//\1/ | |
1362 | q | |
1363 | } | |
1364 | /^X\(\/\/\)[^/].*/{ | |
1365 | s//\1/ | |
1366 | q | |
1367 | } | |
1368 | /^X\(\/\/\)$/{ | |
1369 | s//\1/ | |
1370 | q | |
1371 | } | |
1372 | /^X\(\/\).*/{ | |
1373 | s//\1/ | |
1374 | q | |
1375 | } | |
1376 | s/.*/./; q'` | |
212380e3 | 1377 | srcdir=$ac_confdir |
631ef239 | 1378 | if test ! -r "$srcdir/$ac_unique_file"; then |
212380e3 AC |
1379 | srcdir=.. |
1380 | fi | |
1381 | else | |
1382 | ac_srcdir_defaulted=no | |
1383 | fi | |
631ef239 AC |
1384 | if test ! -r "$srcdir/$ac_unique_file"; then |
1385 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b6d0720c | 1386 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
212380e3 | 1387 | fi |
631ef239 AC |
1388 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1389 | ac_abs_confdir=`( | |
b6d0720c | 1390 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
631ef239 AC |
1391 | pwd)` |
1392 | # When building in place, set srcdir=. | |
1393 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1394 | srcdir=. | |
1395 | fi | |
1396 | # Remove unnecessary trailing slashes from srcdir. | |
1397 | # Double slashes in file names in object file debugging info | |
1398 | # mess up M-x gdb in Emacs. | |
1399 | case $srcdir in | |
1400 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1401 | esac | |
1402 | for ac_var in $ac_precious_vars; do | |
1403 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1404 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1405 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1406 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1407 | done | |
212380e3 AC |
1408 | |
1409 | # | |
1410 | # Report the --help message. | |
1411 | # | |
1412 | if test "$ac_init_help" = "long"; then | |
1413 | # Omit some internal or obsolete options to make the list less imposing. | |
1414 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1415 | cat <<_ACEOF | |
c52df125 | 1416 | \`configure' configures charybdis 3.6.0-dev to adapt to many kinds of systems. |
212380e3 AC |
1417 | |
1418 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1419 | ||
1420 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1421 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1422 | ||
1423 | Defaults for the options are specified in brackets. | |
1424 | ||
1425 | Configuration: | |
1426 | -h, --help display this help and exit | |
1427 | --help=short display options specific to this package | |
1428 | --help=recursive display the short help of all the included packages | |
1429 | -V, --version display version information and exit | |
b6d0720c | 1430 | -q, --quiet, --silent do not print \`checking ...' messages |
212380e3 AC |
1431 | --cache-file=FILE cache test results in FILE [disabled] |
1432 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1433 | -n, --no-create do not create output files | |
1434 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1435 | ||
212380e3 AC |
1436 | Installation directories: |
1437 | --prefix=PREFIX install architecture-independent files in PREFIX | |
7083c021 | 1438 | [$ac_default_prefix] |
212380e3 | 1439 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
7083c021 | 1440 | [PREFIX] |
212380e3 AC |
1441 | |
1442 | By default, \`make install' will install all the files in | |
1443 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1444 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1445 | for instance \`--prefix=\$HOME'. | |
1446 | ||
1447 | For better control, use the options below. | |
1448 | ||
1449 | Fine tuning of the installation directories: | |
7083c021 AC |
1450 | --bindir=DIR user executables [EPREFIX/bin] |
1451 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1452 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1453 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1454 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1455 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1456 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1457 | --includedir=DIR C header files [PREFIX/include] | |
1458 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1459 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1460 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1461 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1462 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1463 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1464 | --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis] | |
1465 | --htmldir=DIR html documentation [DOCDIR] | |
1466 | --dvidir=DIR dvi documentation [DOCDIR] | |
1467 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1468 | --psdir=DIR ps documentation [DOCDIR] | |
212380e3 AC |
1469 | _ACEOF |
1470 | ||
1471 | cat <<\_ACEOF | |
c52df125 AC |
1472 | |
1473 | Program names: | |
1474 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1475 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1476 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1477 | ||
1478 | System types: | |
1479 | --build=BUILD configure for building on BUILD [guessed] | |
1480 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
212380e3 AC |
1481 | _ACEOF |
1482 | fi | |
1483 | ||
1484 | if test -n "$ac_init_help"; then | |
1485 | case $ac_init_help in | |
c52df125 | 1486 | short | recursive ) echo "Configuration of charybdis 3.6.0-dev:";; |
212380e3 AC |
1487 | esac |
1488 | cat <<\_ACEOF | |
1489 | ||
1490 | Optional Features: | |
7083c021 | 1491 | --disable-option-checking ignore unrecognized --enable/--with options |
212380e3 AC |
1492 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1493 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
c52df125 AC |
1494 | --enable-dependency-tracking |
1495 | do not reject slow dependency extractors | |
1496 | --disable-dependency-tracking | |
1497 | speeds up one-time build | |
eec2776c AJ |
1498 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1499 | --disable-silent-rules verbose build output (undo: "make V=0") | |
c52df125 AC |
1500 | --enable-static[=PKGS] build static libraries [default=no] |
1501 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1502 | --enable-fast-install[=PKGS] | |
1503 | optimize for fast installation [default=yes] | |
1504 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1505 | --enable-ltdl-install install libltdl | |
6929cd01 | 1506 | --enable-fhs-paths Use more FHS-like pathnames (for packagers). |
212380e3 | 1507 | --enable-ipv6 Enable IPv6 support |
631ef239 | 1508 | --enable-openssl=DIR Enable OpenSSL support (DIR optional). |
212380e3 AC |
1509 | --disable-openssl Disable OpenSSL support. |
1510 | --disable-zlib Disable ziplinks support | |
212380e3 AC |
1511 | --enable-assert Enable assert(). Choose between soft(warnings) and |
1512 | hard(aborts the daemon) | |
1513 | --enable-iodebug Enable IO Debugging hooks | |
1514 | --enable-profile Enable profiling | |
212380e3 AC |
1515 | --enable-warnings Enable all sorts of warnings for debugging. |
1516 | ||
1517 | Optional Packages: | |
1518 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1519 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
c52df125 AC |
1520 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
1521 | both] | |
1522 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1523 | --with-sysroot=DIR Search for dependent libraries within DIR | |
1524 | (or the compiler's sysroot if not specified). | |
1525 | --with-included-ltdl use the GNU ltdl sources included here | |
1526 | --with-ltdl-include=DIR use the ltdl headers installed in DIR | |
1527 | --with-ltdl-lib=DIR use the libltdl.la installed in DIR | |
212380e3 | 1528 | --with-zlib-path=DIR Path to libz.so for ziplinks support. |
a6ef3156 | 1529 | --with-shared-sqlite Use shared sqlite |
634d4aad NPB |
1530 | --with-confdir=DIR Directory to install config files [deprecated, use |
1531 | --sysconfdir instead]. | |
212380e3 AC |
1532 | --with-logdir=DIR Directory where to write logfiles. |
1533 | --with-helpdir=DIR Directory to install help files. | |
1534 | --with-moduledir=DIR Directory to install modules. | |
9f9b7042 NPB |
1535 | --with-rundir=DIR Directory in which to store pidfile. |
1536 | --with-program-prefix= If set, programs installed into PATH will be | |
1537 | installed with names prefixed by this prefix. | |
b6d0720c AC |
1538 | --with-custom-branding=NAME |
1539 | Custom branding name. | |
1540 | --with-custom-version=NAME | |
1541 | Custom version branding. | |
b583faf9 | 1542 | --with-nicklen=LENGTH Set the upper-bound nick length to LENGTH (default |
cf533739 | 1543 | 31, max 50) |
212380e3 AC |
1544 | --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max |
1545 | 390) | |
212380e3 AC |
1546 | |
1547 | Some influential environment variables: | |
1548 | CC C compiler command | |
1549 | CFLAGS C compiler flags | |
1550 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1551 | nonstandard directory <lib dir> | |
631ef239 | 1552 | LIBS libraries to pass to the linker, e.g. -l<library> |
6fb6bd15 | 1553 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
631ef239 | 1554 | you have headers in a nonstandard directory <include dir> |
212380e3 | 1555 | CPP C preprocessor |
b6d0720c AC |
1556 | YACC The `Yet Another Compiler Compiler' implementation to use. |
1557 | Defaults to the first program found out of: `bison -y', `byacc', | |
1558 | `yacc'. | |
631ef239 AC |
1559 | YFLAGS The list of arguments that will be passed by default to $YACC. |
1560 | This script will default YFLAGS to the empty string to avoid a | |
1561 | default value of `-d' given by some make applications. | |
a5471f24 LS |
1562 | PKG_CONFIG path to pkg-config utility |
1563 | PKG_CONFIG_PATH | |
1564 | directories to add to pkg-config's search path | |
1565 | PKG_CONFIG_LIBDIR | |
1566 | path overriding pkg-config's built-in search path | |
1567 | SQLITE_CFLAGS | |
1568 | C compiler flags for SQLITE, overriding pkg-config | |
1569 | SQLITE_LIBS linker flags for SQLITE, overriding pkg-config | |
212380e3 AC |
1570 | |
1571 | Use these variables to override the choices made by `configure' or to help | |
1572 | it to find libraries and programs with nonstandard names/locations. | |
1573 | ||
7083c021 | 1574 | Report bugs to the package provider. |
212380e3 | 1575 | _ACEOF |
631ef239 | 1576 | ac_status=$? |
212380e3 AC |
1577 | fi |
1578 | ||
1579 | if test "$ac_init_help" = "recursive"; then | |
1580 | # If there are subdirs, report their specific --help. | |
212380e3 | 1581 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
7083c021 AC |
1582 | test -d "$ac_dir" || |
1583 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1584 | continue | |
212380e3 AC |
1585 | ac_builddir=. |
1586 | ||
631ef239 AC |
1587 | case "$ac_dir" in |
1588 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1589 | *) | |
7083c021 | 1590 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 1591 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 1592 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
1593 | case $ac_top_builddir_sub in |
1594 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1595 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1596 | esac ;; | |
1597 | esac | |
1598 | ac_abs_top_builddir=$ac_pwd | |
1599 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1600 | # for backward compatibility: | |
1601 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
1602 | |
1603 | case $srcdir in | |
631ef239 | 1604 | .) # We are building in place. |
212380e3 | 1605 | ac_srcdir=. |
631ef239 AC |
1606 | ac_top_srcdir=$ac_top_builddir_sub |
1607 | ac_abs_top_srcdir=$ac_pwd ;; | |
1608 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 1609 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
1610 | ac_top_srcdir=$srcdir |
1611 | ac_abs_top_srcdir=$srcdir ;; | |
1612 | *) # Relative name. | |
1613 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1614 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1615 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 1616 | esac |
631ef239 AC |
1617 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1618 | ||
1619 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1620 | # Check for guested configure. | |
1621 | if test -f "$ac_srcdir/configure.gnu"; then | |
1622 | echo && | |
1623 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1624 | elif test -f "$ac_srcdir/configure"; then | |
1625 | echo && | |
1626 | $SHELL "$ac_srcdir/configure" --help=recursive | |
212380e3 | 1627 | else |
7083c021 | 1628 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
631ef239 AC |
1629 | fi || ac_status=$? |
1630 | cd "$ac_pwd" || { ac_status=$?; break; } | |
212380e3 AC |
1631 | done |
1632 | fi | |
1633 | ||
631ef239 | 1634 | test -n "$ac_init_help" && exit $ac_status |
212380e3 AC |
1635 | if $ac_init_version; then |
1636 | cat <<\_ACEOF | |
c52df125 | 1637 | charybdis configure 3.6.0-dev |
2eff3833 | 1638 | generated by GNU Autoconf 2.69 |
212380e3 | 1639 | |
2eff3833 | 1640 | Copyright (C) 2012 Free Software Foundation, Inc. |
212380e3 AC |
1641 | This configure script is free software; the Free Software Foundation |
1642 | gives unlimited permission to copy, distribute and modify it. | |
212380e3 | 1643 | _ACEOF |
631ef239 | 1644 | exit |
212380e3 | 1645 | fi |
212380e3 | 1646 | |
7083c021 AC |
1647 | ## ------------------------ ## |
1648 | ## Autoconf initialization. ## | |
1649 | ## ------------------------ ## | |
212380e3 | 1650 | |
7083c021 AC |
1651 | # ac_fn_c_try_compile LINENO |
1652 | # -------------------------- | |
1653 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1654 | ac_fn_c_try_compile () | |
1655 | { | |
1656 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1657 | rm -f conftest.$ac_objext | |
1658 | if { { ac_try="$ac_compile" | |
1659 | case "(($ac_try" in | |
1660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1661 | *) ac_try_echo=$ac_try;; | |
1662 | esac | |
1663 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1664 | $as_echo "$ac_try_echo"; } >&5 | |
1665 | (eval "$ac_compile") 2>conftest.err | |
1666 | ac_status=$? | |
1667 | if test -s conftest.err; then | |
1668 | grep -v '^ *+' conftest.err >conftest.er1 | |
1669 | cat conftest.er1 >&5 | |
1670 | mv -f conftest.er1 conftest.err | |
1671 | fi | |
1672 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1673 | test $ac_status = 0; } && { | |
1674 | test -z "$ac_c_werror_flag" || | |
1675 | test ! -s conftest.err | |
1676 | } && test -s conftest.$ac_objext; then : | |
1677 | ac_retval=0 | |
1678 | else | |
1679 | $as_echo "$as_me: failed program was:" >&5 | |
1680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1681 | |
7083c021 AC |
1682 | ac_retval=1 |
1683 | fi | |
b6d0720c | 1684 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1685 | as_fn_set_status $ac_retval |
7083c021 AC |
1686 | |
1687 | } # ac_fn_c_try_compile | |
1688 | ||
eec2776c AJ |
1689 | # ac_fn_c_try_cpp LINENO |
1690 | # ---------------------- | |
1691 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1692 | ac_fn_c_try_cpp () | |
212380e3 | 1693 | { |
7083c021 | 1694 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
eec2776c | 1695 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
7083c021 AC |
1696 | case "(($ac_try" in |
1697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1698 | *) ac_try_echo=$ac_try;; | |
1699 | esac | |
1700 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1701 | $as_echo "$ac_try_echo"; } >&5 | |
eec2776c | 1702 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
7083c021 AC |
1703 | ac_status=$? |
1704 | if test -s conftest.err; then | |
1705 | grep -v '^ *+' conftest.err >conftest.er1 | |
1706 | cat conftest.er1 >&5 | |
1707 | mv -f conftest.er1 conftest.err | |
1708 | fi | |
1709 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
1710 | test $ac_status = 0; } > conftest.i && { |
1711 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7083c021 AC |
1712 | test ! -s conftest.err |
1713 | }; then : | |
1714 | ac_retval=0 | |
1715 | else | |
1716 | $as_echo "$as_me: failed program was:" >&5 | |
1717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1718 | |
eec2776c | 1719 | ac_retval=1 |
7083c021 | 1720 | fi |
b6d0720c | 1721 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1722 | as_fn_set_status $ac_retval |
212380e3 | 1723 | |
eec2776c | 1724 | } # ac_fn_c_try_cpp |
212380e3 | 1725 | |
eec2776c | 1726 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
7083c021 | 1727 | # ------------------------------------------------------- |
eec2776c AJ |
1728 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1729 | # the include files in INCLUDES and setting the cache variable VAR | |
1730 | # accordingly. | |
1731 | ac_fn_c_check_header_mongrel () | |
7083c021 AC |
1732 | { |
1733 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
eec2776c | 1734 | if eval \${$3+:} false; then : |
7083c021 AC |
1735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1736 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1737 | if eval \${$3+:} false; then : |
7083c021 | 1738 | $as_echo_n "(cached) " >&6 |
eec2776c AJ |
1739 | fi |
1740 | eval ac_res=\$$3 | |
1741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1742 | $as_echo "$ac_res" >&6; } | |
7083c021 | 1743 | else |
eec2776c AJ |
1744 | # Is the header compilable? |
1745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1746 | $as_echo_n "checking $2 usability... " >&6; } | |
1747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7083c021 AC |
1748 | /* end confdefs.h. */ |
1749 | $4 | |
1750 | #include <$2> | |
1751 | _ACEOF | |
1752 | if ac_fn_c_try_compile "$LINENO"; then : | |
eec2776c | 1753 | ac_header_compiler=yes |
7083c021 | 1754 | else |
eec2776c | 1755 | ac_header_compiler=no |
7083c021 AC |
1756 | fi |
1757 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
eec2776c AJ |
1758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1759 | $as_echo "$ac_header_compiler" >&6; } | |
c52df125 | 1760 | |
eec2776c AJ |
1761 | # Is the header present? |
1762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1763 | $as_echo_n "checking $2 presence... " >&6; } | |
1764 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1765 | /* end confdefs.h. */ | |
1766 | #include <$2> | |
1767 | _ACEOF | |
1768 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1769 | ac_header_preproc=yes | |
1770 | else | |
1771 | ac_header_preproc=no | |
1772 | fi | |
1773 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1775 | $as_echo "$ac_header_preproc" >&6; } | |
c52df125 | 1776 | |
eec2776c AJ |
1777 | # So? What about this header? |
1778 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1779 | yes:no: ) | |
1780 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1781 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1782 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1783 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1784 | ;; | |
1785 | no:yes:* ) | |
1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1787 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1789 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1790 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1791 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1792 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1793 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1794 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1795 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1796 | ;; | |
c52df125 | 1797 | esac |
eec2776c AJ |
1798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1799 | $as_echo_n "checking for $2... " >&6; } | |
1800 | if eval \${$3+:} false; then : | |
1801 | $as_echo_n "(cached) " >&6 | |
c52df125 | 1802 | else |
eec2776c AJ |
1803 | eval "$3=\$ac_header_compiler" |
1804 | fi | |
1805 | eval ac_res=\$$3 | |
1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1807 | $as_echo "$ac_res" >&6; } | |
7083c021 | 1808 | fi |
b6d0720c | 1809 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 1810 | |
eec2776c | 1811 | } # ac_fn_c_check_header_mongrel |
212380e3 | 1812 | |
7083c021 AC |
1813 | # ac_fn_c_try_run LINENO |
1814 | # ---------------------- | |
1815 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1816 | # that executables *can* be run. | |
1817 | ac_fn_c_try_run () | |
1818 | { | |
1819 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1820 | if { { ac_try="$ac_link" | |
1821 | case "(($ac_try" in | |
1822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1823 | *) ac_try_echo=$ac_try;; | |
1824 | esac | |
1825 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1826 | $as_echo "$ac_try_echo"; } >&5 | |
1827 | (eval "$ac_link") 2>&5 | |
1828 | ac_status=$? | |
1829 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1830 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1831 | { { case "(($ac_try" in | |
1832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1833 | *) ac_try_echo=$ac_try;; | |
1834 | esac | |
1835 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1836 | $as_echo "$ac_try_echo"; } >&5 | |
1837 | (eval "$ac_try") 2>&5 | |
1838 | ac_status=$? | |
1839 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1840 | test $ac_status = 0; }; }; then : | |
1841 | ac_retval=0 | |
1842 | else | |
1843 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1844 | $as_echo "$as_me: failed program was:" >&5 | |
1845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
212380e3 | 1846 | |
7083c021 AC |
1847 | ac_retval=$ac_status |
1848 | fi | |
1849 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
b6d0720c | 1850 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 1851 | as_fn_set_status $ac_retval |
212380e3 | 1852 | |
7083c021 | 1853 | } # ac_fn_c_try_run |
212380e3 | 1854 | |
eec2776c AJ |
1855 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1856 | # ------------------------------------------------------- | |
1857 | # Tests whether HEADER exists and can be compiled using the include files in | |
1858 | # INCLUDES, setting the cache variable VAR accordingly. | |
1859 | ac_fn_c_check_header_compile () | |
1860 | { | |
1861 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1863 | $as_echo_n "checking for $2... " >&6; } | |
1864 | if eval \${$3+:} false; then : | |
1865 | $as_echo_n "(cached) " >&6 | |
1866 | else | |
1867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1868 | /* end confdefs.h. */ | |
1869 | $4 | |
1870 | #include <$2> | |
1871 | _ACEOF | |
1872 | if ac_fn_c_try_compile "$LINENO"; then : | |
1873 | eval "$3=yes" | |
1874 | else | |
1875 | eval "$3=no" | |
1876 | fi | |
1877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1878 | fi | |
1879 | eval ac_res=\$$3 | |
1880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1881 | $as_echo "$ac_res" >&6; } | |
1882 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1883 | ||
1884 | } # ac_fn_c_check_header_compile | |
1885 | ||
1886 | # ac_fn_c_try_link LINENO | |
1887 | # ----------------------- | |
1888 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1889 | ac_fn_c_try_link () | |
1890 | { | |
1891 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1892 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1893 | if { { ac_try="$ac_link" | |
1894 | case "(($ac_try" in | |
1895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1896 | *) ac_try_echo=$ac_try;; | |
1897 | esac | |
1898 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1899 | $as_echo "$ac_try_echo"; } >&5 | |
1900 | (eval "$ac_link") 2>conftest.err | |
1901 | ac_status=$? | |
1902 | if test -s conftest.err; then | |
1903 | grep -v '^ *+' conftest.err >conftest.er1 | |
1904 | cat conftest.er1 >&5 | |
1905 | mv -f conftest.er1 conftest.err | |
1906 | fi | |
1907 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1908 | test $ac_status = 0; } && { | |
1909 | test -z "$ac_c_werror_flag" || | |
1910 | test ! -s conftest.err | |
1911 | } && test -s conftest$ac_exeext && { | |
1912 | test "$cross_compiling" = yes || | |
1913 | test -x conftest$ac_exeext | |
1914 | }; then : | |
1915 | ac_retval=0 | |
1916 | else | |
1917 | $as_echo "$as_me: failed program was:" >&5 | |
1918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1919 | ||
1920 | ac_retval=1 | |
1921 | fi | |
1922 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1923 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1924 | # interfere with the next link command; also delete a directory that is | |
1925 | # left behind by Apple's compiler. We do this before executing the actions. | |
1926 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1927 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1928 | as_fn_set_status $ac_retval | |
1929 | ||
1930 | } # ac_fn_c_try_link | |
1931 | ||
c52df125 AC |
1932 | # ac_fn_c_check_func LINENO FUNC VAR |
1933 | # ---------------------------------- | |
1934 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1935 | ac_fn_c_check_func () | |
7083c021 AC |
1936 | { |
1937 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1939 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 1940 | if eval \${$3+:} false; then : |
7083c021 AC |
1941 | $as_echo_n "(cached) " >&6 |
1942 | else | |
1943 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1944 | /* end confdefs.h. */ | |
c52df125 AC |
1945 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1946 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1947 | #define $2 innocuous_$2 | |
1948 | ||
1949 | /* System header to define __stub macros and hopefully few prototypes, | |
1950 | which can conflict with char $2 (); below. | |
1951 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1952 | <limits.h> exists even on freestanding compilers. */ | |
1953 | ||
1954 | #ifdef __STDC__ | |
1955 | # include <limits.h> | |
1956 | #else | |
1957 | # include <assert.h> | |
1958 | #endif | |
1959 | ||
1960 | #undef $2 | |
1961 | ||
1962 | /* Override any GCC internal prototype to avoid an error. | |
1963 | Use char because int might match the return type of a GCC | |
1964 | builtin and then its argument prototype would still apply. */ | |
1965 | #ifdef __cplusplus | |
1966 | extern "C" | |
1967 | #endif | |
1968 | char $2 (); | |
1969 | /* The GNU C library defines this for functions which it implements | |
1970 | to always fail with ENOSYS. Some functions are actually named | |
1971 | something starting with __ and the normal name is an alias. */ | |
1972 | #if defined __stub_$2 || defined __stub___$2 | |
1973 | choke me | |
1974 | #endif | |
1975 | ||
1976 | int | |
1977 | main () | |
1978 | { | |
1979 | return $2 (); | |
1980 | ; | |
1981 | return 0; | |
1982 | } | |
1983 | _ACEOF | |
1984 | if ac_fn_c_try_link "$LINENO"; then : | |
1985 | eval "$3=yes" | |
1986 | else | |
1987 | eval "$3=no" | |
1988 | fi | |
1989 | rm -f core conftest.err conftest.$ac_objext \ | |
1990 | conftest$ac_exeext conftest.$ac_ext | |
1991 | fi | |
1992 | eval ac_res=\$$3 | |
1993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1994 | $as_echo "$ac_res" >&6; } | |
1995 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1996 | ||
1997 | } # ac_fn_c_check_func | |
1998 | ||
1999 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES | |
2000 | # --------------------------------------------- | |
2001 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2002 | # accordingly. | |
2003 | ac_fn_c_check_decl () | |
2004 | { | |
2005 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2006 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2007 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2009 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
2010 | if eval \${$3+:} false; then : | |
2011 | $as_echo_n "(cached) " >&6 | |
2012 | else | |
2013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2014 | /* end confdefs.h. */ | |
7083c021 | 2015 | $4 |
c52df125 AC |
2016 | int |
2017 | main () | |
2018 | { | |
2019 | #ifndef $as_decl_name | |
2020 | #ifdef __cplusplus | |
2021 | (void) $as_decl_use; | |
2022 | #else | |
2023 | (void) $as_decl_name; | |
2024 | #endif | |
2025 | #endif | |
2026 | ||
2027 | ; | |
2028 | return 0; | |
2029 | } | |
212380e3 | 2030 | _ACEOF |
7083c021 AC |
2031 | if ac_fn_c_try_compile "$LINENO"; then : |
2032 | eval "$3=yes" | |
2033 | else | |
2034 | eval "$3=no" | |
2035 | fi | |
2036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2037 | fi | |
2038 | eval ac_res=\$$3 | |
2039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2040 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 2041 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 2042 | |
c52df125 | 2043 | } # ac_fn_c_check_decl |
212380e3 | 2044 | |
c52df125 AC |
2045 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
2046 | # ------------------------------------------- | |
2047 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2048 | # variable VAR accordingly. | |
2049 | ac_fn_c_check_type () | |
7083c021 AC |
2050 | { |
2051 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2053 | $as_echo_n "checking for $2... " >&6; } | |
b6d0720c | 2054 | if eval \${$3+:} false; then : |
7083c021 | 2055 | $as_echo_n "(cached) " >&6 |
212380e3 | 2056 | else |
7083c021 AC |
2057 | eval "$3=no" |
2058 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2059 | /* end confdefs.h. */ | |
2060 | $4 | |
2061 | int | |
2062 | main () | |
2063 | { | |
2064 | if (sizeof ($2)) | |
2065 | return 0; | |
2066 | ; | |
2067 | return 0; | |
2068 | } | |
212380e3 | 2069 | _ACEOF |
7083c021 AC |
2070 | if ac_fn_c_try_compile "$LINENO"; then : |
2071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 2072 | /* end confdefs.h. */ |
7083c021 | 2073 | $4 |
212380e3 AC |
2074 | int |
2075 | main () | |
2076 | { | |
7083c021 AC |
2077 | if (sizeof (($2))) |
2078 | return 0; | |
212380e3 AC |
2079 | ; |
2080 | return 0; | |
2081 | } | |
2082 | _ACEOF | |
7083c021 | 2083 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 2084 | |
631ef239 | 2085 | else |
7083c021 | 2086 | eval "$3=yes" |
212380e3 | 2087 | fi |
7083c021 | 2088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 2089 | fi |
7083c021 | 2090 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 2091 | fi |
7083c021 AC |
2092 | eval ac_res=\$$3 |
2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2094 | $as_echo "$ac_res" >&6; } | |
b6d0720c | 2095 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
212380e3 | 2096 | |
7083c021 AC |
2097 | } # ac_fn_c_check_type |
2098 | ||
2099 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES | |
2100 | # -------------------------------------------- | |
2101 | # Tries to find the compile-time value of EXPR in a program that includes | |
2102 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
2103 | # computed | |
2104 | ac_fn_c_compute_int () | |
2105 | { | |
2106 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2107 | if test "$cross_compiling" = yes; then | |
2108 | # Depending upon the size, compute the lo and hi bounds. | |
2109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2110 | /* end confdefs.h. */ | |
2111 | $4 | |
2112 | int | |
2113 | main () | |
2114 | { | |
2115 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
2eff3833 JT |
2116 | test_array [0] = 0; |
2117 | return test_array [0]; | |
7083c021 AC |
2118 | |
2119 | ; | |
2120 | return 0; | |
2121 | } | |
212380e3 | 2122 | _ACEOF |
7083c021 AC |
2123 | if ac_fn_c_try_compile "$LINENO"; then : |
2124 | ac_lo=0 ac_mid=0 | |
2125 | while :; do | |
2126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 2127 | /* end confdefs.h. */ |
7083c021 AC |
2128 | $4 |
2129 | int | |
2130 | main () | |
2131 | { | |
2132 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2eff3833 JT |
2133 | test_array [0] = 0; |
2134 | return test_array [0]; | |
212380e3 | 2135 | |
7083c021 AC |
2136 | ; |
2137 | return 0; | |
2138 | } | |
212380e3 | 2139 | _ACEOF |
7083c021 AC |
2140 | if ac_fn_c_try_compile "$LINENO"; then : |
2141 | ac_hi=$ac_mid; break | |
212380e3 | 2142 | else |
7083c021 AC |
2143 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2144 | if test $ac_lo -le $ac_mid; then | |
2145 | ac_lo= ac_hi= | |
2146 | break | |
2147 | fi | |
2148 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
212380e3 | 2149 | fi |
631ef239 | 2150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
2151 | done |
2152 | else | |
2153 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2154 | /* end confdefs.h. */ | |
2155 | $4 | |
2156 | int | |
2157 | main () | |
2158 | { | |
2159 | static int test_array [1 - 2 * !(($2) < 0)]; | |
2eff3833 JT |
2160 | test_array [0] = 0; |
2161 | return test_array [0]; | |
212380e3 | 2162 | |
7083c021 AC |
2163 | ; |
2164 | return 0; | |
2165 | } | |
212380e3 | 2166 | _ACEOF |
7083c021 AC |
2167 | if ac_fn_c_try_compile "$LINENO"; then : |
2168 | ac_hi=-1 ac_mid=-1 | |
2169 | while :; do | |
2170 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2171 | /* end confdefs.h. */ | |
2172 | $4 | |
2173 | int | |
2174 | main () | |
2175 | { | |
2176 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
2eff3833 JT |
2177 | test_array [0] = 0; |
2178 | return test_array [0]; | |
212380e3 | 2179 | |
7083c021 AC |
2180 | ; |
2181 | return 0; | |
2182 | } | |
2183 | _ACEOF | |
2184 | if ac_fn_c_try_compile "$LINENO"; then : | |
2185 | ac_lo=$ac_mid; break | |
2186 | else | |
2187 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2188 | if test $ac_mid -le $ac_hi; then | |
2189 | ac_lo= ac_hi= | |
2190 | break | |
2191 | fi | |
2192 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
212380e3 | 2193 | fi |
7083c021 AC |
2194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2195 | done | |
212380e3 | 2196 | else |
7083c021 AC |
2197 | ac_lo= ac_hi= |
2198 | fi | |
2199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2200 | fi | |
2201 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2202 | # Binary search between lo and hi bounds. | |
2203 | while test "x$ac_lo" != "x$ac_hi"; do | |
2204 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2205 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 2206 | /* end confdefs.h. */ |
7083c021 AC |
2207 | $4 |
2208 | int | |
2209 | main () | |
2210 | { | |
2211 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
2eff3833 JT |
2212 | test_array [0] = 0; |
2213 | return test_array [0]; | |
7083c021 AC |
2214 | |
2215 | ; | |
2216 | return 0; | |
2217 | } | |
212380e3 | 2218 | _ACEOF |
7083c021 AC |
2219 | if ac_fn_c_try_compile "$LINENO"; then : |
2220 | ac_hi=$ac_mid | |
212380e3 | 2221 | else |
7083c021 | 2222 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
212380e3 | 2223 | fi |
7083c021 AC |
2224 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2225 | done | |
2226 | case $ac_lo in #(( | |
2227 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2228 | '') ac_retval=1 ;; | |
2229 | esac | |
2230 | else | |
2231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2232 | /* end confdefs.h. */ | |
2233 | $4 | |
2234 | static long int longval () { return $2; } | |
2235 | static unsigned long int ulongval () { return $2; } | |
2236 | #include <stdio.h> | |
2237 | #include <stdlib.h> | |
2238 | int | |
2239 | main () | |
2240 | { | |
631ef239 | 2241 | |
7083c021 AC |
2242 | FILE *f = fopen ("conftest.val", "w"); |
2243 | if (! f) | |
2244 | return 1; | |
2245 | if (($2) < 0) | |
2246 | { | |
2247 | long int i = longval (); | |
2248 | if (i != ($2)) | |
2249 | return 1; | |
2250 | fprintf (f, "%ld", i); | |
2251 | } | |
2252 | else | |
2253 | { | |
2254 | unsigned long int i = ulongval (); | |
2255 | if (i != ($2)) | |
2256 | return 1; | |
2257 | fprintf (f, "%lu", i); | |
2258 | } | |
2259 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2260 | on some platforms. */ | |
2261 | return ferror (f) || fclose (f) != 0; | |
212380e3 | 2262 | |
7083c021 AC |
2263 | ; |
2264 | return 0; | |
2265 | } | |
212380e3 | 2266 | _ACEOF |
7083c021 AC |
2267 | if ac_fn_c_try_run "$LINENO"; then : |
2268 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
212380e3 | 2269 | else |
7083c021 | 2270 | ac_retval=1 |
212380e3 | 2271 | fi |
7083c021 AC |
2272 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
2273 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2274 | rm -f conftest.val | |
631ef239 | 2275 | |
7083c021 | 2276 | fi |
b6d0720c | 2277 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
6fb6bd15 | 2278 | as_fn_set_status $ac_retval |
212380e3 | 2279 | |
7083c021 | 2280 | } # ac_fn_c_compute_int |
7083c021 AC |
2281 | cat >config.log <<_ACEOF |
2282 | This file contains any messages produced by compilers while | |
2283 | running configure, to aid debugging if configure makes a mistake. | |
212380e3 | 2284 | |
c52df125 | 2285 | It was created by charybdis $as_me 3.6.0-dev, which was |
2eff3833 | 2286 | generated by GNU Autoconf 2.69. Invocation command line was |
212380e3 | 2287 | |
7083c021 | 2288 | $ $0 $@ |
212380e3 | 2289 | |
7083c021 AC |
2290 | _ACEOF |
2291 | exec 5>>config.log | |
2292 | { | |
2293 | cat <<_ASUNAME | |
2294 | ## --------- ## | |
2295 | ## Platform. ## | |
2296 | ## --------- ## | |
2297 | ||
2298 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2299 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2300 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2301 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2302 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2303 | ||
2304 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2305 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2306 | ||
2307 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2308 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2309 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2310 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2311 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2312 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2313 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2314 | ||
2315 | _ASUNAME | |
212380e3 | 2316 | |
631ef239 | 2317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7083c021 | 2318 | for as_dir in $PATH |
631ef239 AC |
2319 | do |
2320 | IFS=$as_save_IFS | |
2321 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2322 | $as_echo "PATH: $as_dir" |
631ef239 | 2323 | done |
631ef239 AC |
2324 | IFS=$as_save_IFS |
2325 | ||
7083c021 | 2326 | } >&5 |
631ef239 | 2327 | |
7083c021 | 2328 | cat >&5 <<_ACEOF |
631ef239 | 2329 | |
631ef239 | 2330 | |
7083c021 AC |
2331 | ## ----------- ## |
2332 | ## Core tests. ## | |
2333 | ## ----------- ## | |
631ef239 | 2334 | |
7083c021 | 2335 | _ACEOF |
631ef239 AC |
2336 | |
2337 | ||
7083c021 AC |
2338 | # Keep a trace of the command line. |
2339 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2340 | # Strip out --silent because we don't want to record it for future runs. | |
2341 | # Also quote any args containing shell meta-characters. | |
2342 | # Make two passes to allow for proper duplicate-argument suppression. | |
2343 | ac_configure_args= | |
2344 | ac_configure_args0= | |
2345 | ac_configure_args1= | |
2346 | ac_must_keep_next=false | |
2347 | for ac_pass in 1 2 | |
631ef239 | 2348 | do |
7083c021 | 2349 | for ac_arg |
631ef239 | 2350 | do |
7083c021 AC |
2351 | case $ac_arg in |
2352 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2353 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2354 | | -silent | --silent | --silen | --sile | --sil) | |
2355 | continue ;; | |
2356 | *\'*) | |
2357 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2358 | esac | |
2359 | case $ac_pass in | |
2360 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2361 | 2) | |
2362 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2363 | if test $ac_must_keep_next = true; then | |
2364 | ac_must_keep_next=false # Got value, back to normal. | |
2365 | else | |
2366 | case $ac_arg in | |
2367 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2368 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2369 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2370 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2371 | case "$ac_configure_args0 " in | |
2372 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2373 | esac | |
2374 | ;; | |
2375 | -* ) ac_must_keep_next=true ;; | |
2376 | esac | |
2377 | fi | |
2378 | as_fn_append ac_configure_args " '$ac_arg'" | |
2379 | ;; | |
2380 | esac | |
631ef239 AC |
2381 | done |
2382 | done | |
7083c021 AC |
2383 | { ac_configure_args0=; unset ac_configure_args0;} |
2384 | { ac_configure_args1=; unset ac_configure_args1;} | |
631ef239 | 2385 | |
7083c021 AC |
2386 | # When interrupted or exit'd, cleanup temporary files, and complete |
2387 | # config.log. We remove comments because anyway the quotes in there | |
2388 | # would cause problems or look ugly. | |
2389 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2390 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2391 | trap 'exit_status=$? | |
2392 | # Save into config.log some information that might help in debugging. | |
2393 | { | |
2394 | echo | |
631ef239 | 2395 | |
b6d0720c | 2396 | $as_echo "## ---------------- ## |
7083c021 | 2397 | ## Cache variables. ## |
b6d0720c | 2398 | ## ---------------- ##" |
7083c021 AC |
2399 | echo |
2400 | # The following way of writing the cache mishandles newlines in values, | |
2401 | ( | |
2402 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2403 | eval ac_val=\$$ac_var | |
2404 | case $ac_val in #( | |
2405 | *${as_nl}*) | |
2406 | case $ac_var in #( | |
2407 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2408 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2409 | esac | |
2410 | case $ac_var in #( | |
2411 | _ | IFS | as_nl) ;; #( | |
2412 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2413 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2414 | esac ;; | |
2415 | esac | |
2416 | done | |
2417 | (set) 2>&1 | | |
2418 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2419 | *${as_nl}ac_space=\ *) | |
2420 | sed -n \ | |
2421 | "s/'\''/'\''\\\\'\'''\''/g; | |
2422 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2423 | ;; #( | |
2424 | *) | |
2425 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2426 | ;; | |
2427 | esac | | |
2428 | sort | |
2429 | ) | |
2430 | echo | |
631ef239 | 2431 | |
b6d0720c | 2432 | $as_echo "## ----------------- ## |
7083c021 | 2433 | ## Output variables. ## |
b6d0720c | 2434 | ## ----------------- ##" |
7083c021 AC |
2435 | echo |
2436 | for ac_var in $ac_subst_vars | |
2437 | do | |
2438 | eval ac_val=\$$ac_var | |
2439 | case $ac_val in | |
2440 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2441 | esac | |
2442 | $as_echo "$ac_var='\''$ac_val'\''" | |
2443 | done | sort | |
2444 | echo | |
631ef239 | 2445 | |
7083c021 | 2446 | if test -n "$ac_subst_files"; then |
b6d0720c | 2447 | $as_echo "## ------------------- ## |
7083c021 | 2448 | ## File substitutions. ## |
b6d0720c | 2449 | ## ------------------- ##" |
7083c021 AC |
2450 | echo |
2451 | for ac_var in $ac_subst_files | |
2452 | do | |
2453 | eval ac_val=\$$ac_var | |
2454 | case $ac_val in | |
2455 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2456 | esac | |
2457 | $as_echo "$ac_var='\''$ac_val'\''" | |
2458 | done | sort | |
2459 | echo | |
2460 | fi | |
631ef239 | 2461 | |
7083c021 | 2462 | if test -s confdefs.h; then |
b6d0720c | 2463 | $as_echo "## ----------- ## |
7083c021 | 2464 | ## confdefs.h. ## |
b6d0720c | 2465 | ## ----------- ##" |
7083c021 AC |
2466 | echo |
2467 | cat confdefs.h | |
2468 | echo | |
2469 | fi | |
2470 | test "$ac_signal" != 0 && | |
2471 | $as_echo "$as_me: caught signal $ac_signal" | |
2472 | $as_echo "$as_me: exit $exit_status" | |
2473 | } >&5 | |
2474 | rm -f core *.core core.conftest.* && | |
2475 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2476 | exit $exit_status | |
2477 | ' 0 | |
2478 | for ac_signal in 1 2 13 15; do | |
2479 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2480 | done | |
2481 | ac_signal=0 | |
631ef239 | 2482 | |
7083c021 AC |
2483 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2484 | rm -f -r conftest* confdefs.h | |
631ef239 | 2485 | |
7083c021 | 2486 | $as_echo "/* confdefs.h */" > confdefs.h |
212380e3 | 2487 | |
7083c021 | 2488 | # Predefined preprocessor variables. |
212380e3 | 2489 | |
7083c021 AC |
2490 | cat >>confdefs.h <<_ACEOF |
2491 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
212380e3 | 2492 | _ACEOF |
212380e3 | 2493 | |
7083c021 AC |
2494 | cat >>confdefs.h <<_ACEOF |
2495 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
212380e3 | 2496 | _ACEOF |
212380e3 | 2497 | |
7083c021 AC |
2498 | cat >>confdefs.h <<_ACEOF |
2499 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
212380e3 | 2500 | _ACEOF |
212380e3 | 2501 | |
7083c021 AC |
2502 | cat >>confdefs.h <<_ACEOF |
2503 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2504 | _ACEOF | |
212380e3 | 2505 | |
7083c021 AC |
2506 | cat >>confdefs.h <<_ACEOF |
2507 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2508 | _ACEOF | |
212380e3 | 2509 | |
7083c021 AC |
2510 | cat >>confdefs.h <<_ACEOF |
2511 | #define PACKAGE_URL "$PACKAGE_URL" | |
2512 | _ACEOF | |
212380e3 | 2513 | |
631ef239 | 2514 | |
7083c021 AC |
2515 | # Let the site file select an alternate cache file if it wants to. |
2516 | # Prefer an explicitly selected file to automatically selected ones. | |
2517 | ac_site_file1=NONE | |
2518 | ac_site_file2=NONE | |
2519 | if test -n "$CONFIG_SITE"; then | |
b6d0720c AC |
2520 | # We do not want a PATH search for config.site. |
2521 | case $CONFIG_SITE in #(( | |
2522 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2523 | */*) ac_site_file1=$CONFIG_SITE;; | |
2524 | *) ac_site_file1=./$CONFIG_SITE;; | |
2525 | esac | |
7083c021 AC |
2526 | elif test "x$prefix" != xNONE; then |
2527 | ac_site_file1=$prefix/share/config.site | |
2528 | ac_site_file2=$prefix/etc/config.site | |
212380e3 | 2529 | else |
7083c021 AC |
2530 | ac_site_file1=$ac_default_prefix/share/config.site |
2531 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2532 | fi | |
2533 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
212380e3 | 2534 | do |
7083c021 | 2535 | test "x$ac_site_file" = xNONE && continue |
6fb6bd15 | 2536 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
7083c021 AC |
2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2538 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2539 | sed 's/^/| /' "$ac_site_file" >&5 | |
b6d0720c AC |
2540 | . "$ac_site_file" \ |
2541 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2542 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2543 | as_fn_error $? "failed to load site script $ac_site_file | |
2544 | See \`config.log' for more details" "$LINENO" 5; } | |
212380e3 AC |
2545 | fi |
2546 | done | |
212380e3 | 2547 | |
7083c021 | 2548 | if test -r "$cache_file"; then |
6fb6bd15 AC |
2549 | # Some versions of bash will fail to source /dev/null (special files |
2550 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2551 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
7083c021 AC |
2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2553 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2554 | case $cache_file in | |
2555 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2556 | *) . "./$cache_file";; | |
2557 | esac | |
2558 | fi | |
212380e3 | 2559 | else |
7083c021 AC |
2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2561 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2562 | >$cache_file | |
212380e3 AC |
2563 | fi |
2564 | ||
7083c021 AC |
2565 | # Check that the precious variables saved in the cache have kept the same |
2566 | # value. | |
2567 | ac_cache_corrupted=false | |
2568 | for ac_var in $ac_precious_vars; do | |
2569 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2570 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2571 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2572 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2573 | case $ac_old_set,$ac_new_set in | |
2574 | set,) | |
2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2576 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2577 | ac_cache_corrupted=: ;; | |
2578 | ,set) | |
2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2580 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2581 | ac_cache_corrupted=: ;; | |
2582 | ,);; | |
2583 | *) | |
2584 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2585 | # differences in whitespace do not lead to failure. | |
2586 | ac_old_val_w=`echo x $ac_old_val` | |
2587 | ac_new_val_w=`echo x $ac_new_val` | |
2588 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2589 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2590 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2591 | ac_cache_corrupted=: | |
2592 | else | |
2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2594 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2595 | eval $ac_var=\$ac_old_val | |
2596 | fi | |
2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2598 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2600 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2601 | fi;; | |
2602 | esac | |
2603 | # Pass precious variables to config.status. | |
2604 | if test "$ac_new_set" = set; then | |
2605 | case $ac_new_val in | |
2606 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2607 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2608 | esac | |
2609 | case " $ac_configure_args " in | |
2610 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2611 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2612 | esac | |
212380e3 AC |
2613 | fi |
2614 | done | |
7083c021 AC |
2615 | if $ac_cache_corrupted; then |
2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2617 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2619 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
b6d0720c | 2620 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
212380e3 | 2621 | fi |
7083c021 AC |
2622 | ## -------------------- ## |
2623 | ## Main body of script. ## | |
2624 | ## -------------------- ## | |
212380e3 | 2625 | |
7083c021 AC |
2626 | ac_ext=c |
2627 | ac_cpp='$CPP $CPPFLAGS' | |
2628 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2629 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2630 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 | 2631 | |
212380e3 | 2632 | |
212380e3 | 2633 | |
eec2776c AJ |
2634 | ac_ext=c |
2635 | ac_cpp='$CPP $CPPFLAGS' | |
2636 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2637 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2638 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
631ef239 | 2639 | |
c52df125 | 2640 | ac_aux_dir= |
eec2776c | 2641 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
c52df125 AC |
2642 | if test -f "$ac_dir/install-sh"; then |
2643 | ac_aux_dir=$ac_dir | |
2644 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2645 | break | |
2646 | elif test -f "$ac_dir/install.sh"; then | |
2647 | ac_aux_dir=$ac_dir | |
2648 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2649 | break | |
2650 | elif test -f "$ac_dir/shtool"; then | |
2651 | ac_aux_dir=$ac_dir | |
2652 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2653 | break | |
212380e3 AC |
2654 | fi |
2655 | done | |
c52df125 | 2656 | if test -z "$ac_aux_dir"; then |
eec2776c | 2657 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
212380e3 AC |
2658 | fi |
2659 | ||
c52df125 AC |
2660 | # These three variables are undocumented and unsupported, |
2661 | # and are intended to be withdrawn in a future Autoconf release. | |
2662 | # They can cause serious problems if a builder's source tree is in a directory | |
2663 | # whose full name contains unusual characters. | |
2664 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2665 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2666 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
631ef239 | 2667 | |
c52df125 | 2668 | |
eec2776c AJ |
2669 | # Expand $ac_aux_dir to an absolute path. |
2670 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
c52df125 | 2671 | |
eec2776c AJ |
2672 | ac_ext=c |
2673 | ac_cpp='$CPP $CPPFLAGS' | |
2674 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2675 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2676 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2677 | if test -n "$ac_tool_prefix"; then | |
2678 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2679 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2681 | $as_echo_n "checking for $ac_word... " >&6; } | |
2682 | if ${ac_cv_prog_CC+:} false; then : | |
7083c021 | 2683 | $as_echo_n "(cached) " >&6 |
212380e3 | 2684 | else |
eec2776c AJ |
2685 | if test -n "$CC"; then |
2686 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2687 | else | |
2688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2689 | for as_dir in $PATH |
2690 | do | |
2691 | IFS=$as_save_IFS | |
2692 | test -z "$as_dir" && as_dir=. | |
eec2776c AJ |
2693 | for ac_exec_ext in '' $ac_executable_extensions; do |
2694 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2695 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2696 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2697 | break 2 | |
2698 | fi | |
2699 | done | |
7083c021 | 2700 | done |
631ef239 | 2701 | IFS=$as_save_IFS |
212380e3 | 2702 | |
212380e3 | 2703 | fi |
7083c021 | 2704 | fi |
eec2776c AJ |
2705 | CC=$ac_cv_prog_CC |
2706 | if test -n "$CC"; then | |
2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2708 | $as_echo "$CC" >&6; } | |
2709 | else | |
2710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2711 | $as_echo "no" >&6; } | |
2712 | fi | |
212380e3 | 2713 | |
c52df125 | 2714 | |
eec2776c AJ |
2715 | fi |
2716 | if test -z "$ac_cv_prog_CC"; then | |
2717 | ac_ct_CC=$CC | |
2718 | # Extract the first word of "gcc", so it can be a program name with args. | |
2719 | set dummy gcc; ac_word=$2 | |
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2721 | $as_echo_n "checking for $ac_word... " >&6; } | |
2722 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2723 | $as_echo_n "(cached) " >&6 | |
2724 | else | |
2725 | if test -n "$ac_ct_CC"; then | |
2726 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2727 | else | |
2728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2729 | for as_dir in $PATH | |
2730 | do | |
2731 | IFS=$as_save_IFS | |
2732 | test -z "$as_dir" && as_dir=. | |
2733 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2734 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2735 | ac_cv_prog_ac_ct_CC="gcc" | |
2736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2737 | break 2 | |
2738 | fi | |
2739 | done | |
2740 | done | |
2741 | IFS=$as_save_IFS | |
c52df125 | 2742 | |
eec2776c AJ |
2743 | fi |
2744 | fi | |
2745 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2746 | if test -n "$ac_ct_CC"; then | |
2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2748 | $as_echo "$ac_ct_CC" >&6; } | |
2749 | else | |
2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2751 | $as_echo "no" >&6; } | |
2752 | fi | |
c52df125 | 2753 | |
eec2776c AJ |
2754 | if test "x$ac_ct_CC" = x; then |
2755 | CC="" | |
2756 | else | |
2757 | case $cross_compiling:$ac_tool_warned in | |
2758 | yes:) | |
2759 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2760 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2761 | ac_tool_warned=yes ;; | |
c52df125 | 2762 | esac |
eec2776c AJ |
2763 | CC=$ac_ct_CC |
2764 | fi | |
c52df125 | 2765 | else |
eec2776c | 2766 | CC="$ac_cv_prog_CC" |
c52df125 AC |
2767 | fi |
2768 | ||
eec2776c AJ |
2769 | if test -z "$CC"; then |
2770 | if test -n "$ac_tool_prefix"; then | |
2771 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2772 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
7083c021 AC |
2773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2774 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 2775 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2776 | $as_echo_n "(cached) " >&6 |
212380e3 | 2777 | else |
eec2776c AJ |
2778 | if test -n "$CC"; then |
2779 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7083c021 AC |
2780 | else |
2781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
212380e3 AC |
2782 | for as_dir in $PATH |
2783 | do | |
2784 | IFS=$as_save_IFS | |
2785 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2786 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2787 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eec2776c | 2788 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
7083c021 | 2789 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
212380e3 AC |
2790 | break 2 |
2791 | fi | |
2792 | done | |
7083c021 | 2793 | done |
631ef239 | 2794 | IFS=$as_save_IFS |
7083c021 | 2795 | |
212380e3 | 2796 | fi |
7083c021 | 2797 | fi |
eec2776c AJ |
2798 | CC=$ac_cv_prog_CC |
2799 | if test -n "$CC"; then | |
2800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2801 | $as_echo "$CC" >&6; } | |
212380e3 | 2802 | else |
7083c021 AC |
2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2804 | $as_echo "no" >&6; } | |
212380e3 AC |
2805 | fi |
2806 | ||
631ef239 | 2807 | |
eec2776c | 2808 | fi |
7083c021 | 2809 | fi |
eec2776c AJ |
2810 | if test -z "$CC"; then |
2811 | # Extract the first word of "cc", so it can be a program name with args. | |
2812 | set dummy cc; ac_word=$2 | |
7083c021 AC |
2813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2814 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 2815 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2816 | $as_echo_n "(cached) " >&6 |
212380e3 | 2817 | else |
eec2776c AJ |
2818 | if test -n "$CC"; then |
2819 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
7083c021 | 2820 | else |
eec2776c | 2821 | ac_prog_rejected=no |
7083c021 | 2822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
212380e3 AC |
2823 | for as_dir in $PATH |
2824 | do | |
2825 | IFS=$as_save_IFS | |
2826 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2827 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2828 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eec2776c AJ |
2829 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2830 | ac_prog_rejected=yes | |
2831 | continue | |
2832 | fi | |
2833 | ac_cv_prog_CC="cc" | |
7083c021 | 2834 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
212380e3 AC |
2835 | break 2 |
2836 | fi | |
2837 | done | |
7083c021 | 2838 | done |
631ef239 | 2839 | IFS=$as_save_IFS |
212380e3 | 2840 | |
eec2776c AJ |
2841 | if test $ac_prog_rejected = yes; then |
2842 | # We found a bogon in the path, so make sure we never use it. | |
2843 | set dummy $ac_cv_prog_CC | |
2844 | shift | |
2845 | if test $# != 0; then | |
2846 | # We chose a different compiler from the bogus one. | |
2847 | # However, it has the same basename, so the bogon will be chosen | |
2848 | # first if we set CC to just the basename; use the full file name. | |
2849 | shift | |
2850 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2851 | fi | |
212380e3 | 2852 | fi |
7083c021 | 2853 | fi |
eec2776c AJ |
2854 | fi |
2855 | CC=$ac_cv_prog_CC | |
2856 | if test -n "$CC"; then | |
2857 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2858 | $as_echo "$CC" >&6; } | |
212380e3 | 2859 | else |
7083c021 AC |
2860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2861 | $as_echo "no" >&6; } | |
212380e3 AC |
2862 | fi |
2863 | ||
631ef239 | 2864 | |
212380e3 | 2865 | fi |
eec2776c AJ |
2866 | if test -z "$CC"; then |
2867 | if test -n "$ac_tool_prefix"; then | |
2868 | for ac_prog in cl.exe | |
2869 | do | |
2870 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2871 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7083c021 AC |
2872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2873 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 2874 | if ${ac_cv_prog_CC+:} false; then : |
7083c021 | 2875 | $as_echo_n "(cached) " >&6 |
212380e3 | 2876 | else |
eec2776c AJ |
2877 | if test -n "$CC"; then |
2878 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
212380e3 AC |
2879 | else |
2880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2881 | for as_dir in $PATH | |
2882 | do | |
2883 | IFS=$as_save_IFS | |
2884 | test -z "$as_dir" && as_dir=. | |
7083c021 | 2885 | for ac_exec_ext in '' $ac_executable_extensions; do |
2eff3833 | 2886 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
eec2776c | 2887 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
7083c021 | 2888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
212380e3 AC |
2889 | break 2 |
2890 | fi | |
2891 | done | |
7083c021 | 2892 | done |
631ef239 | 2893 | IFS=$as_save_IFS |
212380e3 AC |
2894 | |
2895 | fi | |
2896 | fi | |
eec2776c AJ |
2897 | CC=$ac_cv_prog_CC |
2898 | if test -n "$CC"; then | |
2899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2900 | $as_echo "$CC" >&6; } | |
212380e3 | 2901 | else |
7083c021 AC |
2902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2903 | $as_echo "no" >&6; } | |
212380e3 AC |
2904 | fi |
2905 | ||
631ef239 | 2906 | |
eec2776c AJ |
2907 | test -n "$CC" && break |
2908 | done | |
2909 | fi | |
2910 | if test -z "$CC"; then | |
2911 | ac_ct_CC=$CC | |
2912 | for ac_prog in cl.exe | |
2913 | do | |
2914 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2915 | set dummy $ac_prog; ac_word=$2 | |
2916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2917 | $as_echo_n "checking for $ac_word... " >&6; } | |
2918 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
c52df125 AC |
2919 | $as_echo_n "(cached) " >&6 |
2920 | else | |
eec2776c AJ |
2921 | if test -n "$ac_ct_CC"; then |
2922 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2923 | else | |
2924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2925 | for as_dir in $PATH | |
2926 | do | |
2927 | IFS=$as_save_IFS | |
2928 | test -z "$as_dir" && as_dir=. | |
2929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2930 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2931 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2933 | break 2 | |
2934 | fi | |
2935 | done | |
2936 | done | |
2937 | IFS=$as_save_IFS | |
2938 | ||
c52df125 | 2939 | fi |
eec2776c AJ |
2940 | fi |
2941 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2942 | if test -n "$ac_ct_CC"; then | |
2943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2944 | $as_echo "$ac_ct_CC" >&6; } | |
c52df125 AC |
2945 | else |
2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2947 | $as_echo "no" >&6; } | |
c52df125 AC |
2948 | fi |
2949 | ||
c52df125 | 2950 | |
eec2776c AJ |
2951 | test -n "$ac_ct_CC" && break |
2952 | done | |
c52df125 | 2953 | |
eec2776c AJ |
2954 | if test "x$ac_ct_CC" = x; then |
2955 | CC="" | |
2956 | else | |
2957 | case $cross_compiling:$ac_tool_warned in | |
2958 | yes:) | |
2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2960 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2961 | ac_tool_warned=yes ;; | |
c52df125 | 2962 | esac |
eec2776c | 2963 | CC=$ac_ct_CC |
c52df125 AC |
2964 | fi |
2965 | fi | |
2966 | ||
c52df125 AC |
2967 | fi |
2968 | ||
2969 | ||
eec2776c AJ |
2970 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2971 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2972 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2973 | See \`config.log' for more details" "$LINENO" 5; } | |
c52df125 | 2974 | |
eec2776c AJ |
2975 | # Provide some information about the compiler. |
2976 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2977 | set X $ac_compile | |
2978 | ac_compiler=$2 | |
2979 | for ac_option in --version -v -V -qversion; do | |
2980 | { { ac_try="$ac_compiler $ac_option >&5" | |
2981 | case "(($ac_try" in | |
2982 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2983 | *) ac_try_echo=$ac_try;; | |
2984 | esac | |
2985 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2986 | $as_echo "$ac_try_echo"; } >&5 | |
2987 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2988 | ac_status=$? | |
2989 | if test -s conftest.err; then | |
2990 | sed '10a\ | |
2991 | ... rest of stderr output deleted ... | |
2992 | 10q' conftest.err >conftest.er1 | |
2993 | cat conftest.er1 >&5 | |
2994 | fi | |
2995 | rm -f conftest.er1 conftest.err | |
2996 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2997 | test $ac_status = 0; } | |
2998 | done | |
c52df125 | 2999 | |
eec2776c AJ |
3000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3001 | /* end confdefs.h. */ | |
c52df125 | 3002 | |
eec2776c AJ |
3003 | int |
3004 | main () | |
3005 | { | |
c52df125 | 3006 | |
eec2776c AJ |
3007 | ; |
3008 | return 0; | |
3009 | } | |
c52df125 | 3010 | _ACEOF |
eec2776c AJ |
3011 | ac_clean_files_save=$ac_clean_files |
3012 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3013 | # Try to create an executable without -o first, disregard a.out. | |
3014 | # It will help us diagnose broken compilers, and finding out an intuition | |
3015 | # of exeext. | |
3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3017 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3018 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
c52df125 | 3019 | |
eec2776c AJ |
3020 | # The possible output files: |
3021 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
c52df125 | 3022 | |
eec2776c AJ |
3023 | ac_rmfiles= |
3024 | for ac_file in $ac_files | |
3025 | do | |
3026 | case $ac_file in | |
3027 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3028 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3029 | esac | |
3030 | done | |
3031 | rm -f $ac_rmfiles | |
c52df125 | 3032 | |
eec2776c AJ |
3033 | if { { ac_try="$ac_link_default" |
3034 | case "(($ac_try" in | |
3035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3036 | *) ac_try_echo=$ac_try;; | |
3037 | esac | |
3038 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3039 | $as_echo "$ac_try_echo"; } >&5 | |
3040 | (eval "$ac_link_default") 2>&5 | |
3041 | ac_status=$? | |
3042 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3043 | test $ac_status = 0; }; then : | |
3044 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3045 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3046 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3047 | # so that the user can short-circuit this test for compilers unknown to | |
3048 | # Autoconf. | |
3049 | for ac_file in $ac_files '' | |
3050 | do | |
3051 | test -f "$ac_file" || continue | |
3052 | case $ac_file in | |
3053 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3054 | ;; | |
3055 | [ab].out ) | |
3056 | # We found the default executable, but exeext='' is most | |
3057 | # certainly right. | |
3058 | break;; | |
3059 | *.* ) | |
3060 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3061 | then :; else | |
3062 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3063 | fi | |
3064 | # We set ac_cv_exeext here because the later test for it is not | |
3065 | # safe: cross compilers may not add the suffix if given an `-o' | |
3066 | # argument, so we may need to know it at that point already. | |
3067 | # Even if this section looks crufty: it has the advantage of | |
3068 | # actually working. | |
3069 | break;; | |
3070 | * ) | |
3071 | break;; | |
3072 | esac | |
3073 | done | |
3074 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
c52df125 | 3075 | |
eec2776c AJ |
3076 | else |
3077 | ac_file='' | |
3078 | fi | |
3079 | if test -z "$ac_file"; then : | |
3080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3081 | $as_echo "no" >&6; } | |
3082 | $as_echo "$as_me: failed program was:" >&5 | |
3083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c52df125 | 3084 | |
eec2776c AJ |
3085 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3086 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3087 | as_fn_error 77 "C compiler cannot create executables | |
3088 | See \`config.log' for more details" "$LINENO" 5; } | |
3089 | else | |
3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3091 | $as_echo "yes" >&6; } | |
3092 | fi | |
3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3094 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3096 | $as_echo "$ac_file" >&6; } | |
3097 | ac_exeext=$ac_cv_exeext | |
c52df125 | 3098 | |
eec2776c AJ |
3099 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
3100 | ac_clean_files=$ac_clean_files_save | |
3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3102 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3103 | if { { ac_try="$ac_link" | |
3104 | case "(($ac_try" in | |
3105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3106 | *) ac_try_echo=$ac_try;; | |
3107 | esac | |
3108 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3109 | $as_echo "$ac_try_echo"; } >&5 | |
3110 | (eval "$ac_link") 2>&5 | |
3111 | ac_status=$? | |
3112 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3113 | test $ac_status = 0; }; then : | |
3114 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3115 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3116 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3117 | # `rm'. | |
3118 | for ac_file in conftest.exe conftest conftest.*; do | |
3119 | test -f "$ac_file" || continue | |
3120 | case $ac_file in | |
3121 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3122 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3123 | break;; | |
3124 | * ) break;; | |
3125 | esac | |
3126 | done | |
3127 | else | |
3128 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3129 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3130 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3131 | See \`config.log' for more details" "$LINENO" 5; } | |
3132 | fi | |
3133 | rm -f conftest conftest$ac_cv_exeext | |
3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3135 | $as_echo "$ac_cv_exeext" >&6; } | |
c52df125 | 3136 | |
eec2776c AJ |
3137 | rm -f conftest.$ac_ext |
3138 | EXEEXT=$ac_cv_exeext | |
3139 | ac_exeext=$EXEEXT | |
3140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3141 | /* end confdefs.h. */ | |
3142 | #include <stdio.h> | |
3143 | int | |
3144 | main () | |
3145 | { | |
3146 | FILE *f = fopen ("conftest.out", "w"); | |
3147 | return ferror (f) || fclose (f) != 0; | |
c52df125 | 3148 | |
eec2776c AJ |
3149 | ; |
3150 | return 0; | |
3151 | } | |
3152 | _ACEOF | |
3153 | ac_clean_files="$ac_clean_files conftest.out" | |
3154 | # Check that the compiler produces executables we can run. If not, either | |
3155 | # the compiler is broken, or we cross compile. | |
3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3157 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3158 | if test "$cross_compiling" != yes; then | |
3159 | { { ac_try="$ac_link" | |
3160 | case "(($ac_try" in | |
3161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3162 | *) ac_try_echo=$ac_try;; | |
3163 | esac | |
3164 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3165 | $as_echo "$ac_try_echo"; } >&5 | |
3166 | (eval "$ac_link") 2>&5 | |
3167 | ac_status=$? | |
3168 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3169 | test $ac_status = 0; } | |
3170 | if { ac_try='./conftest$ac_cv_exeext' | |
3171 | { { case "(($ac_try" in | |
3172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3173 | *) ac_try_echo=$ac_try;; | |
3174 | esac | |
3175 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3176 | $as_echo "$ac_try_echo"; } >&5 | |
3177 | (eval "$ac_try") 2>&5 | |
3178 | ac_status=$? | |
3179 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3180 | test $ac_status = 0; }; }; then | |
3181 | cross_compiling=no | |
c52df125 | 3182 | else |
eec2776c AJ |
3183 | if test "$cross_compiling" = maybe; then |
3184 | cross_compiling=yes | |
3185 | else | |
3186 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3187 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3188 | as_fn_error $? "cannot run C compiled programs. | |
3189 | If you meant to cross compile, use \`--host'. | |
3190 | See \`config.log' for more details" "$LINENO" 5; } | |
3191 | fi | |
c52df125 AC |
3192 | fi |
3193 | fi | |
eec2776c AJ |
3194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
3195 | $as_echo "$cross_compiling" >&6; } | |
c52df125 | 3196 | |
eec2776c AJ |
3197 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
3198 | ac_clean_files=$ac_clean_files_save | |
3199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3200 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3201 | if ${ac_cv_objext+:} false; then : | |
c52df125 AC |
3202 | $as_echo_n "(cached) " >&6 |
3203 | else | |
eec2776c AJ |
3204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3205 | /* end confdefs.h. */ | |
3206 | ||
3207 | int | |
3208 | main () | |
3209 | { | |
3210 | ||
3211 | ; | |
3212 | return 0; | |
3213 | } | |
3214 | _ACEOF | |
3215 | rm -f conftest.o conftest.obj | |
3216 | if { { ac_try="$ac_compile" | |
3217 | case "(($ac_try" in | |
3218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3219 | *) ac_try_echo=$ac_try;; | |
3220 | esac | |
3221 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3222 | $as_echo "$ac_try_echo"; } >&5 | |
3223 | (eval "$ac_compile") 2>&5 | |
3224 | ac_status=$? | |
3225 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3226 | test $ac_status = 0; }; then : | |
3227 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3228 | test -f "$ac_file" || continue; | |
3229 | case $ac_file in | |
3230 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3231 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3232 | break;; | |
3233 | esac | |
3234 | done | |
c52df125 | 3235 | else |
eec2776c AJ |
3236 | $as_echo "$as_me: failed program was:" >&5 |
3237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3238 | ||
3239 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3240 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3241 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3242 | See \`config.log' for more details" "$LINENO" 5; } | |
c52df125 | 3243 | fi |
eec2776c | 3244 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
c52df125 | 3245 | fi |
eec2776c AJ |
3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
3247 | $as_echo "$ac_cv_objext" >&6; } | |
3248 | OBJEXT=$ac_cv_objext | |
3249 | ac_objext=$OBJEXT | |
3250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3251 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3252 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3253 | $as_echo_n "(cached) " >&6 | |
c52df125 | 3254 | else |
eec2776c AJ |
3255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3256 | /* end confdefs.h. */ | |
c52df125 | 3257 | |
eec2776c AJ |
3258 | int |
3259 | main () | |
3260 | { | |
3261 | #ifndef __GNUC__ | |
3262 | choke me | |
3263 | #endif | |
c52df125 | 3264 | |
eec2776c AJ |
3265 | ; |
3266 | return 0; | |
3267 | } | |
3268 | _ACEOF | |
3269 | if ac_fn_c_try_compile "$LINENO"; then : | |
3270 | ac_compiler_gnu=yes | |
3271 | else | |
3272 | ac_compiler_gnu=no | |
c52df125 | 3273 | fi |
eec2776c AJ |
3274 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3275 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
c52df125 | 3276 | |
c52df125 | 3277 | fi |
eec2776c AJ |
3278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3279 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3280 | if test $ac_compiler_gnu = yes; then | |
3281 | GCC=yes | |
c52df125 | 3282 | else |
eec2776c | 3283 | GCC= |
c52df125 | 3284 | fi |
eec2776c AJ |
3285 | ac_test_CFLAGS=${CFLAGS+set} |
3286 | ac_save_CFLAGS=$CFLAGS | |
3287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3288 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3289 | if ${ac_cv_prog_cc_g+:} false; then : | |
c52df125 AC |
3290 | $as_echo_n "(cached) " >&6 |
3291 | else | |
eec2776c AJ |
3292 | ac_save_c_werror_flag=$ac_c_werror_flag |
3293 | ac_c_werror_flag=yes | |
3294 | ac_cv_prog_cc_g=no | |
3295 | CFLAGS="-g" | |
3296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3297 | /* end confdefs.h. */ | |
c52df125 | 3298 | |
eec2776c AJ |
3299 | int |
3300 | main () | |
3301 | { | |
3302 | ||
3303 | ; | |
3304 | return 0; | |
3305 | } | |
3306 | _ACEOF | |
3307 | if ac_fn_c_try_compile "$LINENO"; then : | |
3308 | ac_cv_prog_cc_g=yes | |
c52df125 | 3309 | else |
eec2776c AJ |
3310 | CFLAGS="" |
3311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3312 | /* end confdefs.h. */ | |
c52df125 | 3313 | |
eec2776c AJ |
3314 | int |
3315 | main () | |
3316 | { | |
3317 | ||
3318 | ; | |
3319 | return 0; | |
3320 | } | |
3321 | _ACEOF | |
3322 | if ac_fn_c_try_compile "$LINENO"; then : | |
c52df125 | 3323 | |
c52df125 | 3324 | else |
eec2776c AJ |
3325 | ac_c_werror_flag=$ac_save_c_werror_flag |
3326 | CFLAGS="-g" | |
3327 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3328 | /* end confdefs.h. */ | |
3329 | ||
3330 | int | |
3331 | main () | |
3332 | { | |
c52df125 | 3333 | |
eec2776c AJ |
3334 | ; |
3335 | return 0; | |
3336 | } | |
3337 | _ACEOF | |
3338 | if ac_fn_c_try_compile "$LINENO"; then : | |
3339 | ac_cv_prog_cc_g=yes | |
c52df125 | 3340 | fi |
eec2776c | 3341 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c52df125 | 3342 | fi |
eec2776c | 3343 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c52df125 | 3344 | fi |
eec2776c AJ |
3345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3346 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3347 | fi | |
3348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3349 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3350 | if test "$ac_test_CFLAGS" = set; then | |
3351 | CFLAGS=$ac_save_CFLAGS | |
3352 | elif test $ac_cv_prog_cc_g = yes; then | |
3353 | if test "$GCC" = yes; then | |
3354 | CFLAGS="-g -O2" | |
7083c021 | 3355 | else |
eec2776c | 3356 | CFLAGS="-g" |
7083c021 | 3357 | fi |
c52df125 | 3358 | else |
eec2776c AJ |
3359 | if test "$GCC" = yes; then |
3360 | CFLAGS="-O2" | |
3361 | else | |
3362 | CFLAGS= | |
c52df125 | 3363 | fi |
c52df125 | 3364 | fi |
eec2776c AJ |
3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3366 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3367 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3368 | $as_echo_n "(cached) " >&6 | |
c52df125 | 3369 | else |
eec2776c AJ |
3370 | ac_cv_prog_cc_c89=no |
3371 | ac_save_CC=$CC | |
3372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3373 | /* end confdefs.h. */ | |
3374 | #include <stdarg.h> | |
3375 | #include <stdio.h> | |
3376 | struct stat; | |
3377 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3378 | struct buf { int x; }; | |
3379 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3380 | static char *e (p, i) | |
3381 | char **p; | |
3382 | int i; | |
3383 | { | |
3384 | return p[i]; | |
3385 | } | |
3386 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3387 | { | |
3388 | char *s; | |
3389 | va_list v; | |
3390 | va_start (v,p); | |
3391 | s = g (p, va_arg (v,int)); | |
3392 | va_end (v); | |
3393 | return s; | |
3394 | } | |
3395 | ||
3396 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3397 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3398 | These don't provoke an error unfortunately, instead are silently treated | |
3399 | as 'x'. The following induces an error, until -std is added to get | |
3400 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3401 | array size at least. It's necessary to write '\x00'==0 to get something | |
3402 | that's true only with -std. */ | |
3403 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
c52df125 | 3404 | |
eec2776c AJ |
3405 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3406 | inside strings and character constants. */ | |
3407 | #define FOO(x) 'x' | |
3408 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
c52df125 | 3409 | |
eec2776c AJ |
3410 | int test (int i, double x); |
3411 | struct s1 {int (*f) (int a);}; | |
3412 | struct s2 {int (*f) (double a);}; | |
3413 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3414 | int argc; | |
3415 | char **argv; | |
3416 | int | |
3417 | main () | |
3418 | { | |
3419 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3420 | ; | |
3421 | return 0; | |
3422 | } | |
3423 | _ACEOF | |
3424 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3425 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
c52df125 | 3426 | do |
eec2776c AJ |
3427 | CC="$ac_save_CC $ac_arg" |
3428 | if ac_fn_c_try_compile "$LINENO"; then : | |
3429 | ac_cv_prog_cc_c89=$ac_arg | |
3430 | fi | |
3431 | rm -f core conftest.err conftest.$ac_objext | |
3432 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
c52df125 | 3433 | done |
eec2776c AJ |
3434 | rm -f conftest.$ac_ext |
3435 | CC=$ac_save_CC | |
c52df125 | 3436 | |
c52df125 | 3437 | fi |
eec2776c AJ |
3438 | # AC_CACHE_VAL |
3439 | case "x$ac_cv_prog_cc_c89" in | |
3440 | x) | |
3441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3442 | $as_echo "none needed" >&6; } ;; | |
3443 | xno) | |
3444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3445 | $as_echo "unsupported" >&6; } ;; | |
3446 | *) | |
3447 | CC="$CC $ac_cv_prog_cc_c89" | |
3448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3449 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3450 | esac | |
3451 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3452 | ||
c52df125 AC |
3453 | fi |
3454 | ||
eec2776c AJ |
3455 | ac_ext=c |
3456 | ac_cpp='$CPP $CPPFLAGS' | |
3457 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3458 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3459 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 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 | |
3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3467 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3468 | if ${am_cv_prog_cc_c_o+:} false; then : | |
c52df125 AC |
3469 | $as_echo_n "(cached) " >&6 |
3470 | else | |
eec2776c AJ |
3471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3472 | /* end confdefs.h. */ | |
c52df125 | 3473 | |
eec2776c AJ |
3474 | int |
3475 | main () | |
3476 | { | |
3477 | ||
3478 | ; | |
3479 | return 0; | |
3480 | } | |
3481 | _ACEOF | |
3482 | # Make sure it works both with $CC and with simple cc. | |
3483 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3484 | # compilers refuse to overwrite an existing .o file with -o, | |
3485 | # though they will create one. | |
3486 | am_cv_prog_cc_c_o=yes | |
3487 | for am_i in 1 2; do | |
3488 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3489 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3490 | ac_status=$? | |
3491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3492 | (exit $ac_status); } \ | |
3493 | && test -f conftest2.$ac_objext; then | |
3494 | : OK | |
3495 | else | |
3496 | am_cv_prog_cc_c_o=no | |
3497 | break | |
3498 | fi | |
3499 | done | |
3500 | rm -f core conftest* | |
3501 | unset am_i | |
c52df125 | 3502 | fi |
eec2776c AJ |
3503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
3504 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3505 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3506 | # Losing compiler, so override with the script. | |
3507 | # FIXME: It is wrong to rewrite CC. | |
3508 | # But if we don't then we get into trouble of one sort or another. | |
3509 | # A longer-term fix would be to have automake use am__CC in this case, | |
3510 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3511 | CC="$am_aux_dir/compile $CC" | |
c52df125 | 3512 | fi |
eec2776c AJ |
3513 | ac_ext=c |
3514 | ac_cpp='$CPP $CPPFLAGS' | |
3515 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3516 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3517 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
3518 | |
3519 | ||
eec2776c AJ |
3520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
3521 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } | |
3522 | if ${ac_cv_prog_cc_c99+:} false; then : | |
c52df125 AC |
3523 | $as_echo_n "(cached) " >&6 |
3524 | else | |
eec2776c AJ |
3525 | ac_cv_prog_cc_c99=no |
3526 | ac_save_CC=$CC | |
3527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3528 | /* end confdefs.h. */ | |
3529 | #include <stdarg.h> | |
3530 | #include <stdbool.h> | |
3531 | #include <stdlib.h> | |
3532 | #include <wchar.h> | |
3533 | #include <stdio.h> | |
c52df125 | 3534 | |
eec2776c AJ |
3535 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
3536 | #define debug(...) fprintf (stderr, __VA_ARGS__) | |
3537 | #define showlist(...) puts (#__VA_ARGS__) | |
3538 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
3539 | static void | |
3540 | test_varargs_macros (void) | |
3541 | { | |
3542 | int x = 1234; | |
3543 | int y = 5678; | |
3544 | debug ("Flag"); | |
3545 | debug ("X = %d\n", x); | |
3546 | showlist (The first, second, and third items.); | |
3547 | report (x>y, "x is %d but y is %d", x, y); | |
3548 | } | |
c52df125 | 3549 | |
eec2776c AJ |
3550 | // Check long long types. |
3551 | #define BIG64 18446744073709551615ull | |
3552 | #define BIG32 4294967295ul | |
3553 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
3554 | #if !BIG_OK | |
3555 | your preprocessor is broken; | |
3556 | #endif | |
3557 | #if BIG_OK | |
3558 | #else | |
3559 | your preprocessor is broken; | |
3560 | #endif | |
3561 | static long long int bignum = -9223372036854775807LL; | |
3562 | static unsigned long long int ubignum = BIG64; | |
c52df125 | 3563 | |
eec2776c AJ |
3564 | struct incomplete_array |
3565 | { | |
3566 | int datasize; | |
3567 | double data[]; | |
3568 | }; | |
c52df125 | 3569 | |
eec2776c AJ |
3570 | struct named_init { |
3571 | int number; | |
3572 | const wchar_t *name; | |
3573 | double average; | |
3574 | }; | |
c52df125 | 3575 | |
eec2776c | 3576 | typedef const char *ccp; |
c52df125 | 3577 | |
eec2776c AJ |
3578 | static inline int |
3579 | test_restrict (ccp restrict text) | |
3580 | { | |
3581 | // See if C++-style comments work. | |
3582 | // Iterate through items via the restricted pointer. | |
3583 | // Also check for declarations in for loops. | |
3584 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) | |
3585 | continue; | |
3586 | return 0; | |
3587 | } | |
c52df125 | 3588 | |
eec2776c AJ |
3589 | // Check varargs and va_copy. |
3590 | static void | |
3591 | test_varargs (const char *format, ...) | |
3592 | { | |
3593 | va_list args; | |
3594 | va_start (args, format); | |
3595 | va_list args_copy; | |
3596 | va_copy (args_copy, args); | |
c52df125 | 3597 | |
eec2776c AJ |
3598 | const char *str; |
3599 | int number; | |
3600 | float fnumber; | |
3601 | ||
3602 | while (*format) | |
3603 | { | |
3604 | switch (*format++) | |
3605 | { | |
3606 | case 's': // string | |
3607 | str = va_arg (args_copy, const char *); | |
3608 | break; | |
3609 | case 'd': // int | |
3610 | number = va_arg (args_copy, int); | |
3611 | break; | |
3612 | case 'f': // float | |
3613 | fnumber = va_arg (args_copy, double); | |
3614 | break; | |
3615 | default: | |
3616 | break; | |
3617 | } | |
3618 | } | |
3619 | va_end (args_copy); | |
3620 | va_end (args); | |
3621 | } | |
c52df125 AC |
3622 | |
3623 | int | |
3624 | main () | |
3625 | { | |
3626 | ||
eec2776c AJ |
3627 | // Check bool. |
3628 | _Bool success = false; | |
3629 | ||
3630 | // Check restrict. | |
3631 | if (test_restrict ("String literal") == 0) | |
3632 | success = true; | |
3633 | char *restrict newvar = "Another string"; | |
3634 | ||
3635 | // Check varargs. | |
3636 | test_varargs ("s, d' f .", "string", 65, 34.234); | |
3637 | test_varargs_macros (); | |
3638 | ||
3639 | // Check flexible array members. | |
3640 | struct incomplete_array *ia = | |
3641 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
3642 | ia->datasize = 10; | |
3643 | for (int i = 0; i < ia->datasize; ++i) | |
3644 | ia->data[i] = i * 1.234; | |
3645 | ||
3646 | // Check named initializers. | |
3647 | struct named_init ni = { | |
3648 | .number = 34, | |
3649 | .name = L"Test wide string", | |
3650 | .average = 543.34343, | |
3651 | }; | |
3652 | ||
3653 | ni.number = 58; | |
3654 | ||
3655 | int dynamic_array[ni.number]; | |
3656 | dynamic_array[ni.number - 1] = 543; | |
3657 | ||
3658 | // work around unused variable warnings | |
3659 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' | |
3660 | || dynamic_array[ni.number - 1] != 543); | |
3661 | ||
c52df125 AC |
3662 | ; |
3663 | return 0; | |
3664 | } | |
3665 | _ACEOF | |
eec2776c | 3666 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 |
c52df125 | 3667 | do |
eec2776c AJ |
3668 | CC="$ac_save_CC $ac_arg" |
3669 | if ac_fn_c_try_compile "$LINENO"; then : | |
3670 | ac_cv_prog_cc_c99=$ac_arg | |
3671 | fi | |
3672 | rm -f core conftest.err conftest.$ac_objext | |
3673 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
c52df125 | 3674 | done |
eec2776c AJ |
3675 | rm -f conftest.$ac_ext |
3676 | CC=$ac_save_CC | |
c52df125 | 3677 | |
c52df125 | 3678 | fi |
eec2776c AJ |
3679 | # AC_CACHE_VAL |
3680 | case "x$ac_cv_prog_cc_c99" in | |
3681 | x) | |
3682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3683 | $as_echo "none needed" >&6; } ;; | |
3684 | xno) | |
3685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3686 | $as_echo "unsupported" >&6; } ;; | |
3687 | *) | |
3688 | CC="$CC $ac_cv_prog_cc_c99" | |
3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
3690 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; | |
c52df125 | 3691 | esac |
eec2776c AJ |
3692 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
3693 | ||
c52df125 | 3694 | fi |
c52df125 | 3695 | |
c52df125 | 3696 | |
c52df125 | 3697 | |
eec2776c AJ |
3698 | ac_ext=c |
3699 | ac_cpp='$CPP $CPPFLAGS' | |
3700 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3701 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3702 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3704 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3705 | # On Suns, sometimes $CPP names a directory. | |
3706 | if test -n "$CPP" && test -d "$CPP"; then | |
3707 | CPP= | |
3708 | fi | |
3709 | if test -z "$CPP"; then | |
3710 | if ${ac_cv_prog_CPP+:} false; then : | |
c52df125 AC |
3711 | $as_echo_n "(cached) " >&6 |
3712 | else | |
eec2776c AJ |
3713 | # Double quotes because CPP needs to be expanded |
3714 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3715 | do | |
3716 | ac_preproc_ok=false | |
3717 | for ac_c_preproc_warn_flag in '' yes | |
3718 | do | |
3719 | # Use a header file that comes with gcc, so configuring glibc | |
3720 | # with a fresh cross-compiler works. | |
3721 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3722 | # <limits.h> exists even on freestanding compilers. | |
3723 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3724 | # not just through cpp. "Syntax error" is here to catch this case. | |
c52df125 AC |
3725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3726 | /* end confdefs.h. */ | |
eec2776c AJ |
3727 | #ifdef __STDC__ |
3728 | # include <limits.h> | |
3729 | #else | |
3730 | # include <assert.h> | |
3731 | #endif | |
3732 | Syntax error | |
c52df125 | 3733 | _ACEOF |
eec2776c | 3734 | if ac_fn_c_try_cpp "$LINENO"; then : |
c52df125 | 3735 | |
c52df125 | 3736 | else |
eec2776c AJ |
3737 | # Broken: fails on valid input. |
3738 | continue | |
3739 | fi | |
3740 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3741 | ||
3742 | # OK, works on sane cases. Now check whether nonexistent headers | |
3743 | # can be detected and how. | |
c52df125 AC |
3744 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3745 | /* end confdefs.h. */ | |
eec2776c | 3746 | #include <ac_nonexistent.h> |
c52df125 | 3747 | _ACEOF |
eec2776c AJ |
3748 | if ac_fn_c_try_cpp "$LINENO"; then : |
3749 | # Broken: success on invalid input. | |
3750 | continue | |
c52df125 | 3751 | else |
eec2776c AJ |
3752 | # Passes both tests. |
3753 | ac_preproc_ok=: | |
3754 | break | |
c52df125 | 3755 | fi |
eec2776c | 3756 | rm -f conftest.err conftest.i conftest.$ac_ext |
c52df125 | 3757 | |
eec2776c AJ |
3758 | done |
3759 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3760 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3761 | if $ac_preproc_ok; then : | |
3762 | break | |
c52df125 | 3763 | fi |
eec2776c AJ |
3764 | |
3765 | done | |
3766 | ac_cv_prog_CPP=$CPP | |
3767 | ||
c52df125 | 3768 | fi |
eec2776c | 3769 | CPP=$ac_cv_prog_CPP |
c52df125 | 3770 | else |
eec2776c AJ |
3771 | ac_cv_prog_CPP=$CPP |
3772 | fi | |
3773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3774 | $as_echo "$CPP" >&6; } | |
3775 | ac_preproc_ok=false | |
3776 | for ac_c_preproc_warn_flag in '' yes | |
3777 | do | |
3778 | # Use a header file that comes with gcc, so configuring glibc | |
3779 | # with a fresh cross-compiler works. | |
3780 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3781 | # <limits.h> exists even on freestanding compilers. | |
3782 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3783 | # not just through cpp. "Syntax error" is here to catch this case. | |
3784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 3785 | /* end confdefs.h. */ |
eec2776c AJ |
3786 | #ifdef __STDC__ |
3787 | # include <limits.h> | |
3788 | #else | |
3789 | # include <assert.h> | |
3790 | #endif | |
3791 | Syntax error | |
3792 | _ACEOF | |
3793 | if ac_fn_c_try_cpp "$LINENO"; then : | |
c52df125 | 3794 | |
eec2776c AJ |
3795 | else |
3796 | # Broken: fails on valid input. | |
3797 | continue | |
3798 | fi | |
3799 | rm -f conftest.err conftest.i conftest.$ac_ext | |
c52df125 | 3800 | |
eec2776c AJ |
3801 | # OK, works on sane cases. Now check whether nonexistent headers |
3802 | # can be detected and how. | |
3803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3804 | /* end confdefs.h. */ | |
3805 | #include <ac_nonexistent.h> | |
c52df125 | 3806 | _ACEOF |
eec2776c AJ |
3807 | if ac_fn_c_try_cpp "$LINENO"; then : |
3808 | # Broken: success on invalid input. | |
3809 | continue | |
c52df125 | 3810 | else |
eec2776c AJ |
3811 | # Passes both tests. |
3812 | ac_preproc_ok=: | |
3813 | break | |
3814 | fi | |
3815 | rm -f conftest.err conftest.i conftest.$ac_ext | |
c52df125 | 3816 | |
eec2776c AJ |
3817 | done |
3818 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3819 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3820 | if $ac_preproc_ok; then : | |
3821 | ||
3822 | else | |
3823 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3824 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3825 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3826 | See \`config.log' for more details" "$LINENO" 5; } | |
3827 | fi | |
3828 | ||
3829 | ac_ext=c | |
3830 | ac_cpp='$CPP $CPPFLAGS' | |
3831 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3832 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3833 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 3834 | |
c52df125 | 3835 | |
eec2776c AJ |
3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
3837 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3838 | if ${ac_cv_path_GREP+:} false; then : | |
3839 | $as_echo_n "(cached) " >&6 | |
c52df125 | 3840 | else |
eec2776c AJ |
3841 | if test -z "$GREP"; then |
3842 | ac_path_GREP_found=false | |
3843 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3845 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3846 | do | |
3847 | IFS=$as_save_IFS | |
3848 | test -z "$as_dir" && as_dir=. | |
3849 | for ac_prog in grep ggrep; do | |
3850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3851 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3852 | as_fn_executable_p "$ac_path_GREP" || continue | |
3853 | # Check for GNU ac_path_GREP and select it if it is found. | |
3854 | # Check for GNU $ac_path_GREP | |
3855 | case `"$ac_path_GREP" --version 2>&1` in | |
3856 | *GNU*) | |
3857 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3858 | *) | |
3859 | ac_count=0 | |
3860 | $as_echo_n 0123456789 >"conftest.in" | |
3861 | while : | |
3862 | do | |
3863 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3864 | mv "conftest.tmp" "conftest.in" | |
3865 | cp "conftest.in" "conftest.nl" | |
3866 | $as_echo 'GREP' >> "conftest.nl" | |
3867 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3868 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3869 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3870 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3871 | # Best one so far, save it but keep looking for a better one | |
3872 | ac_cv_path_GREP="$ac_path_GREP" | |
3873 | ac_path_GREP_max=$ac_count | |
3874 | fi | |
3875 | # 10*(2^10) chars as input seems more than enough | |
3876 | test $ac_count -gt 10 && break | |
3877 | done | |
3878 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3879 | esac | |
3880 | ||
3881 | $ac_path_GREP_found && break 3 | |
3882 | done | |
3883 | done | |
3884 | done | |
3885 | IFS=$as_save_IFS | |
3886 | if test -z "$ac_cv_path_GREP"; then | |
3887 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3888 | fi | |
3889 | else | |
3890 | ac_cv_path_GREP=$GREP | |
3891 | fi | |
3892 | ||
3893 | fi | |
3894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3895 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3896 | GREP="$ac_cv_path_GREP" | |
3897 | ||
3898 | ||
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3900 | $as_echo_n "checking for egrep... " >&6; } | |
3901 | if ${ac_cv_path_EGREP+:} false; then : | |
3902 | $as_echo_n "(cached) " >&6 | |
3903 | else | |
3904 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3905 | then ac_cv_path_EGREP="$GREP -E" | |
3906 | else | |
3907 | if test -z "$EGREP"; then | |
3908 | ac_path_EGREP_found=false | |
3909 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3911 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3912 | do | |
3913 | IFS=$as_save_IFS | |
3914 | test -z "$as_dir" && as_dir=. | |
3915 | for ac_prog in egrep; do | |
3916 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3917 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3918 | as_fn_executable_p "$ac_path_EGREP" || continue | |
3919 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3920 | # Check for GNU $ac_path_EGREP | |
3921 | case `"$ac_path_EGREP" --version 2>&1` in | |
3922 | *GNU*) | |
3923 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3924 | *) | |
3925 | ac_count=0 | |
3926 | $as_echo_n 0123456789 >"conftest.in" | |
3927 | while : | |
3928 | do | |
3929 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3930 | mv "conftest.tmp" "conftest.in" | |
3931 | cp "conftest.in" "conftest.nl" | |
3932 | $as_echo 'EGREP' >> "conftest.nl" | |
3933 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3934 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3935 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3936 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3937 | # Best one so far, save it but keep looking for a better one | |
3938 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3939 | ac_path_EGREP_max=$ac_count | |
3940 | fi | |
3941 | # 10*(2^10) chars as input seems more than enough | |
3942 | test $ac_count -gt 10 && break | |
3943 | done | |
3944 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3945 | esac | |
3946 | ||
3947 | $ac_path_EGREP_found && break 3 | |
3948 | done | |
3949 | done | |
3950 | done | |
3951 | IFS=$as_save_IFS | |
3952 | if test -z "$ac_cv_path_EGREP"; then | |
3953 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3954 | fi | |
3955 | else | |
3956 | ac_cv_path_EGREP=$EGREP | |
3957 | fi | |
3958 | ||
3959 | fi | |
3960 | fi | |
3961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3962 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3963 | EGREP="$ac_cv_path_EGREP" | |
3964 | ||
3965 | ||
3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3967 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3968 | if ${ac_cv_header_stdc+:} false; then : | |
3969 | $as_echo_n "(cached) " >&6 | |
3970 | else | |
3971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 3972 | /* end confdefs.h. */ |
eec2776c AJ |
3973 | #include <stdlib.h> |
3974 | #include <stdarg.h> | |
3975 | #include <string.h> | |
3976 | #include <float.h> | |
c52df125 AC |
3977 | |
3978 | int | |
3979 | main () | |
3980 | { | |
3981 | ||
3982 | ; | |
3983 | return 0; | |
3984 | } | |
3985 | _ACEOF | |
3986 | if ac_fn_c_try_compile "$LINENO"; then : | |
eec2776c AJ |
3987 | ac_cv_header_stdc=yes |
3988 | else | |
3989 | ac_cv_header_stdc=no | |
c52df125 AC |
3990 | fi |
3991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
eec2776c AJ |
3992 | |
3993 | if test $ac_cv_header_stdc = yes; then | |
3994 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3995 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3996 | /* end confdefs.h. */ | |
3997 | #include <string.h> | |
3998 | ||
3999 | _ACEOF | |
4000 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4001 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4002 | ||
4003 | else | |
4004 | ac_cv_header_stdc=no | |
c52df125 | 4005 | fi |
eec2776c AJ |
4006 | rm -f conftest* |
4007 | ||
c52df125 | 4008 | fi |
eec2776c AJ |
4009 | |
4010 | if test $ac_cv_header_stdc = yes; then | |
4011 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 4013 | /* end confdefs.h. */ |
eec2776c | 4014 | #include <stdlib.h> |
c52df125 | 4015 | |
eec2776c AJ |
4016 | _ACEOF |
4017 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4018 | $EGREP "free" >/dev/null 2>&1; then : | |
c52df125 | 4019 | |
eec2776c AJ |
4020 | else |
4021 | ac_cv_header_stdc=no | |
4022 | fi | |
4023 | rm -f conftest* | |
c52df125 | 4024 | |
eec2776c AJ |
4025 | fi |
4026 | ||
4027 | if test $ac_cv_header_stdc = yes; then | |
4028 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4029 | if test "$cross_compiling" = yes; then : | |
4030 | : | |
4031 | else | |
4032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4033 | /* end confdefs.h. */ | |
4034 | #include <ctype.h> | |
4035 | #include <stdlib.h> | |
4036 | #if ((' ' & 0x0FF) == 0x020) | |
4037 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4038 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4039 | #else | |
4040 | # define ISLOWER(c) \ | |
4041 | (('a' <= (c) && (c) <= 'i') \ | |
4042 | || ('j' <= (c) && (c) <= 'r') \ | |
4043 | || ('s' <= (c) && (c) <= 'z')) | |
4044 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4045 | #endif | |
4046 | ||
4047 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
c52df125 AC |
4048 | int |
4049 | main () | |
4050 | { | |
eec2776c AJ |
4051 | int i; |
4052 | for (i = 0; i < 256; i++) | |
4053 | if (XOR (islower (i), ISLOWER (i)) | |
4054 | || toupper (i) != TOUPPER (i)) | |
4055 | return 2; | |
c52df125 AC |
4056 | return 0; |
4057 | } | |
4058 | _ACEOF | |
eec2776c AJ |
4059 | if ac_fn_c_try_run "$LINENO"; then : |
4060 | ||
4061 | else | |
4062 | ac_cv_header_stdc=no | |
4063 | fi | |
4064 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4065 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
c52df125 | 4066 | fi |
c52df125 AC |
4067 | |
4068 | fi | |
eec2776c AJ |
4069 | fi |
4070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4071 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4072 | if test $ac_cv_header_stdc = yes; then | |
4073 | ||
4074 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
c52df125 AC |
4075 | |
4076 | fi | |
4077 | ||
eec2776c AJ |
4078 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4079 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4080 | inttypes.h stdint.h unistd.h | |
4081 | do : | |
4082 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4083 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4084 | " | |
4085 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4086 | cat >>confdefs.h <<_ACEOF | |
4087 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4088 | _ACEOF | |
c52df125 | 4089 | |
eec2776c AJ |
4090 | fi |
4091 | ||
4092 | done | |
4093 | ||
4094 | ||
4095 | ||
4096 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
4097 | if test "x$ac_cv_header_minix_config_h" = xyes; then : | |
4098 | MINIX=yes | |
4099 | else | |
4100 | MINIX= | |
4101 | fi | |
4102 | ||
4103 | ||
4104 | if test "$MINIX" = yes; then | |
4105 | ||
4106 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
4107 | ||
4108 | ||
4109 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
4110 | ||
4111 | ||
4112 | $as_echo "#define _MINIX 1" >>confdefs.h | |
4113 | ||
4114 | fi | |
4115 | ||
4116 | ||
4117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
4118 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
4119 | if ${ac_cv_safe_to_define___extensions__+:} false; then : | |
c52df125 AC |
4120 | $as_echo_n "(cached) " >&6 |
4121 | else | |
4122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4123 | /* end confdefs.h. */ | |
4124 | ||
eec2776c AJ |
4125 | # define __EXTENSIONS__ 1 |
4126 | $ac_includes_default | |
c52df125 AC |
4127 | int |
4128 | main () | |
4129 | { | |
4130 | ||
4131 | ; | |
4132 | return 0; | |
4133 | } | |
4134 | _ACEOF | |
eec2776c AJ |
4135 | if ac_fn_c_try_compile "$LINENO"; then : |
4136 | ac_cv_safe_to_define___extensions__=yes | |
4137 | else | |
4138 | ac_cv_safe_to_define___extensions__=no | |
c52df125 | 4139 | fi |
eec2776c | 4140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c52df125 | 4141 | fi |
eec2776c AJ |
4142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4143 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
4144 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4145 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
c52df125 | 4146 | |
eec2776c | 4147 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
c52df125 | 4148 | |
eec2776c | 4149 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
c52df125 | 4150 | |
eec2776c | 4151 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
c52df125 | 4152 | |
eec2776c | 4153 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
c52df125 | 4154 | |
c52df125 | 4155 | |
c52df125 | 4156 | |
c52df125 | 4157 | |
c52df125 | 4158 | |
c52df125 | 4159 | |
eec2776c | 4160 | ac_config_headers="$ac_config_headers include/setup.h" |
c52df125 AC |
4161 | |
4162 | ||
eec2776c AJ |
4163 | |
4164 | subdirs="$subdirs libratbox" | |
4165 | ||
4166 | ac_aux_dir= | |
4167 | for ac_dir in libltdl/config "$srcdir"/libltdl/config; do | |
4168 | if test -f "$ac_dir/install-sh"; then | |
4169 | ac_aux_dir=$ac_dir | |
4170 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
4171 | break | |
4172 | elif test -f "$ac_dir/install.sh"; then | |
4173 | ac_aux_dir=$ac_dir | |
4174 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
4175 | break | |
4176 | elif test -f "$ac_dir/shtool"; then | |
4177 | ac_aux_dir=$ac_dir | |
4178 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
4179 | break | |
c52df125 AC |
4180 | fi |
4181 | done | |
eec2776c AJ |
4182 | if test -z "$ac_aux_dir"; then |
4183 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5 | |
c52df125 AC |
4184 | fi |
4185 | ||
eec2776c AJ |
4186 | # These three variables are undocumented and unsupported, |
4187 | # and are intended to be withdrawn in a future Autoconf release. | |
4188 | # They can cause serious problems if a builder's source tree is in a directory | |
4189 | # whose full name contains unusual characters. | |
4190 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
4191 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
4192 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
4193 | ||
c52df125 | 4194 | |
eec2776c AJ |
4195 | |
4196 | ||
4197 | am__api_version='1.15' | |
4198 | ||
4199 | # Find a good install program. We prefer a C program (faster), | |
4200 | # so one script is as good as another. But avoid the broken or | |
4201 | # incompatible versions: | |
4202 | # SysV /etc/install, /usr/sbin/install | |
4203 | # SunOS /usr/etc/install | |
4204 | # IRIX /sbin/install | |
4205 | # AIX /bin/install | |
4206 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4207 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4208 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4209 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4210 | # OS/2's system install, which has a completely different semantic | |
4211 | # ./install, which can be erroneously created by make from ./install.sh. | |
4212 | # Reject install programs that cannot install multiple files. | |
4213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
4214 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
4215 | if test -z "$INSTALL"; then | |
4216 | if ${ac_cv_path_install+:} false; then : | |
c52df125 AC |
4217 | $as_echo_n "(cached) " >&6 |
4218 | else | |
eec2776c | 4219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
c52df125 AC |
4220 | for as_dir in $PATH |
4221 | do | |
4222 | IFS=$as_save_IFS | |
4223 | test -z "$as_dir" && as_dir=. | |
eec2776c AJ |
4224 | # Account for people who put trailing slashes in PATH elements. |
4225 | case $as_dir/ in #(( | |
4226 | ./ | .// | /[cC]/* | \ | |
4227 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4228 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
4229 | /usr/ucb/* ) ;; | |
4230 | *) | |
4231 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4232 | # Don't use installbsd from OSF since it installs stuff as root | |
4233 | # by default. | |
4234 | for ac_prog in ginstall scoinst install; do | |
4235 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4236 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4237 | if test $ac_prog = install && | |
4238 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4239 | # AIX install. It has an incompatible calling convention. | |
4240 | : | |
4241 | elif test $ac_prog = install && | |
4242 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4243 | # program-specific install script used by HP pwplus--don't use. | |
4244 | : | |
4245 | else | |
4246 | rm -rf conftest.one conftest.two conftest.dir | |
4247 | echo one > conftest.one | |
4248 | echo two > conftest.two | |
4249 | mkdir conftest.dir | |
4250 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
4251 | test -s conftest.one && test -s conftest.two && | |
4252 | test -s conftest.dir/conftest.one && | |
4253 | test -s conftest.dir/conftest.two | |
4254 | then | |
4255 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4256 | break 3 | |
4257 | fi | |
4258 | fi | |
4259 | fi | |
4260 | done | |
4261 | done | |
4262 | ;; | |
4263 | esac | |
4264 | ||
c52df125 AC |
4265 | done |
4266 | IFS=$as_save_IFS | |
4267 | ||
eec2776c AJ |
4268 | rm -rf conftest.one conftest.two conftest.dir |
4269 | ||
c52df125 | 4270 | fi |
eec2776c AJ |
4271 | if test "${ac_cv_path_install+set}" = set; then |
4272 | INSTALL=$ac_cv_path_install | |
4273 | else | |
4274 | # As a last resort, use the slow shell script. Don't cache a | |
4275 | # value for INSTALL within a source directory, because that will | |
4276 | # break other packages using the cache if that directory is | |
4277 | # removed, or if the value is a relative name. | |
4278 | INSTALL=$ac_install_sh | |
4279 | fi | |
4280 | fi | |
4281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
4282 | $as_echo "$INSTALL" >&6; } | |
4283 | ||
4284 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4285 | # It thinks the first close brace ends the variable substitution. | |
4286 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4287 | ||
4288 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4289 | ||
4290 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4291 | ||
4292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
4293 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
4294 | # Reject unsafe characters in $srcdir or the absolute working directory | |
4295 | # name. Accept space and tab only in the latter. | |
4296 | am_lf=' | |
4297 | ' | |
4298 | case `pwd` in | |
4299 | *[\\\"\#\$\&\'\`$am_lf]*) | |
4300 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
4301 | esac | |
4302 | case $srcdir in | |
4303 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
4304 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
4305 | esac | |
4306 | ||
4307 | # Do 'set' in a subshell so we don't clobber the current shell's | |
4308 | # arguments. Must try -L first in case configure is actually a | |
4309 | # symlink; some systems play weird games with the mod time of symlinks | |
4310 | # (eg FreeBSD returns the mod time of the symlink's containing | |
4311 | # directory). | |
4312 | if ( | |
4313 | am_has_slept=no | |
4314 | for am_try in 1 2; do | |
4315 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
4316 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
4317 | if test "$*" = "X"; then | |
4318 | # -L didn't work. | |
4319 | set X `ls -t "$srcdir/configure" conftest.file` | |
4320 | fi | |
4321 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
4322 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
4323 | ||
4324 | # If neither matched, then we have a broken ls. This can happen | |
4325 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
4326 | # broken ls alias from the environment. This has actually | |
4327 | # happened. Such a system could not be considered "sane". | |
4328 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
4329 | alias in your environment" "$LINENO" 5 | |
4330 | fi | |
4331 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
4332 | break | |
4333 | fi | |
4334 | # Just in case. | |
4335 | sleep 1 | |
4336 | am_has_slept=yes | |
4337 | done | |
4338 | test "$2" = conftest.file | |
4339 | ) | |
4340 | then | |
4341 | # Ok. | |
4342 | : | |
4343 | else | |
4344 | as_fn_error $? "newly created file is older than distributed files! | |
4345 | Check your system clock" "$LINENO" 5 | |
4346 | fi | |
4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4348 | $as_echo "yes" >&6; } | |
4349 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
4350 | # generated files are strictly newer. | |
4351 | am_sleep_pid= | |
4352 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
4353 | ( sleep 1 ) & | |
4354 | am_sleep_pid=$! | |
4355 | fi | |
4356 | ||
4357 | rm -f conftest.file | |
4358 | ||
4359 | test "$program_prefix" != NONE && | |
4360 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
4361 | # Use a double $ so make ignores it. | |
4362 | test "$program_suffix" != NONE && | |
4363 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
4364 | # Double any \ or $. | |
4365 | # By default was `s,x,x', remove it if useless. | |
4366 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
4367 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
4368 | ||
4369 | if test x"${MISSING+set}" != xset; then | |
4370 | case $am_aux_dir in | |
4371 | *\ * | *\ *) | |
4372 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
4373 | *) | |
4374 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
4375 | esac | |
4376 | fi | |
4377 | # Use eval to expand $SHELL | |
4378 | if eval "$MISSING --is-lightweight"; then | |
4379 | am_missing_run="$MISSING " | |
4380 | else | |
4381 | am_missing_run= | |
4382 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
4383 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
4384 | fi | |
4385 | ||
4386 | if test x"${install_sh+set}" != xset; then | |
4387 | case $am_aux_dir in | |
4388 | *\ * | *\ *) | |
4389 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
4390 | *) | |
4391 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
4392 | esac | |
4393 | fi | |
4394 | ||
4395 | # Installed binaries are usually stripped using 'strip' when the user | |
4396 | # run "make install-strip". However 'strip' might not be the right | |
4397 | # tool to use in cross-compilation environments, therefore Automake | |
4398 | # will honor the 'STRIP' environment variable to overrule this program. | |
4399 | if test "$cross_compiling" != no; then | |
4400 | if test -n "$ac_tool_prefix"; then | |
4401 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4402 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4404 | $as_echo_n "checking for $ac_word... " >&6; } | |
4405 | if ${ac_cv_prog_STRIP+:} false; then : | |
4406 | $as_echo_n "(cached) " >&6 | |
4407 | else | |
4408 | if test -n "$STRIP"; then | |
4409 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4410 | else | |
4411 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4412 | for as_dir in $PATH | |
4413 | do | |
4414 | IFS=$as_save_IFS | |
4415 | test -z "$as_dir" && as_dir=. | |
4416 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4417 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4418 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4419 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4420 | break 2 | |
4421 | fi | |
4422 | done | |
4423 | done | |
4424 | IFS=$as_save_IFS | |
4425 | ||
4426 | fi | |
4427 | fi | |
4428 | STRIP=$ac_cv_prog_STRIP | |
4429 | if test -n "$STRIP"; then | |
4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
4431 | $as_echo "$STRIP" >&6; } | |
c52df125 AC |
4432 | else |
4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4434 | $as_echo "no" >&6; } | |
4435 | fi | |
4436 | ||
4437 | ||
eec2776c AJ |
4438 | fi |
4439 | if test -z "$ac_cv_prog_STRIP"; then | |
4440 | ac_ct_STRIP=$STRIP | |
4441 | # Extract the first word of "strip", so it can be a program name with args. | |
4442 | set dummy strip; ac_word=$2 | |
4443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4444 | $as_echo_n "checking for $ac_word... " >&6; } | |
4445 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
4446 | $as_echo_n "(cached) " >&6 | |
4447 | else | |
4448 | if test -n "$ac_ct_STRIP"; then | |
4449 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4450 | else | |
4451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4452 | for as_dir in $PATH | |
4453 | do | |
4454 | IFS=$as_save_IFS | |
4455 | test -z "$as_dir" && as_dir=. | |
4456 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4457 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4458 | ac_cv_prog_ac_ct_STRIP="strip" | |
4459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4460 | break 2 | |
4461 | fi | |
c52df125 | 4462 | done |
eec2776c AJ |
4463 | done |
4464 | IFS=$as_save_IFS | |
c52df125 | 4465 | |
eec2776c AJ |
4466 | fi |
4467 | fi | |
4468 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4469 | if test -n "$ac_ct_STRIP"; then | |
4470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
4471 | $as_echo "$ac_ct_STRIP" >&6; } | |
4472 | else | |
4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4474 | $as_echo "no" >&6; } | |
4475 | fi | |
4476 | ||
4477 | if test "x$ac_ct_STRIP" = x; then | |
4478 | STRIP=":" | |
c52df125 AC |
4479 | else |
4480 | case $cross_compiling:$ac_tool_warned in | |
4481 | yes:) | |
4482 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4483 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4484 | ac_tool_warned=yes ;; | |
4485 | esac | |
eec2776c | 4486 | STRIP=$ac_ct_STRIP |
c52df125 | 4487 | fi |
eec2776c AJ |
4488 | else |
4489 | STRIP="$ac_cv_prog_STRIP" | |
c52df125 AC |
4490 | fi |
4491 | ||
eec2776c AJ |
4492 | fi |
4493 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
c52df125 | 4494 | |
eec2776c AJ |
4495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
4496 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
4497 | if test -z "$MKDIR_P"; then | |
4498 | if ${ac_cv_path_mkdir+:} false; then : | |
c52df125 AC |
4499 | $as_echo_n "(cached) " >&6 |
4500 | else | |
eec2776c AJ |
4501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4502 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
4503 | do | |
4504 | IFS=$as_save_IFS | |
4505 | test -z "$as_dir" && as_dir=. | |
4506 | for ac_prog in mkdir gmkdir; do | |
4507 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4508 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
4509 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
4510 | 'mkdir (GNU coreutils) '* | \ | |
4511 | 'mkdir (coreutils) '* | \ | |
4512 | 'mkdir (fileutils) '4.1*) | |
4513 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
4514 | break 3;; | |
4515 | esac | |
4516 | done | |
4517 | done | |
4518 | done | |
4519 | IFS=$as_save_IFS | |
c52df125 | 4520 | |
eec2776c | 4521 | fi |
c52df125 | 4522 | |
eec2776c AJ |
4523 | test -d ./--version && rmdir ./--version |
4524 | if test "${ac_cv_path_mkdir+set}" = set; then | |
4525 | MKDIR_P="$ac_cv_path_mkdir -p" | |
4526 | else | |
4527 | # As a last resort, use the slow shell script. Don't cache a | |
4528 | # value for MKDIR_P within a source directory, because that will | |
4529 | # break other packages using the cache if that directory is | |
4530 | # removed, or if the value is a relative name. | |
4531 | MKDIR_P="$ac_install_sh -d" | |
4532 | fi | |
c52df125 | 4533 | fi |
eec2776c AJ |
4534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
4535 | $as_echo "$MKDIR_P" >&6; } | |
4536 | ||
4537 | for ac_prog in gawk mawk nawk awk | |
4538 | do | |
4539 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4540 | set dummy $ac_prog; ac_word=$2 | |
4541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4542 | $as_echo_n "checking for $ac_word... " >&6; } | |
4543 | if ${ac_cv_prog_AWK+:} false; then : | |
4544 | $as_echo_n "(cached) " >&6 | |
4545 | else | |
4546 | if test -n "$AWK"; then | |
4547 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4548 | else | |
4549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4550 | for as_dir in $PATH | |
4551 | do | |
4552 | IFS=$as_save_IFS | |
4553 | test -z "$as_dir" && as_dir=. | |
4554 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4555 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4556 | ac_cv_prog_AWK="$ac_prog" | |
4557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4558 | break 2 | |
4559 | fi | |
4560 | done | |
4561 | done | |
4562 | IFS=$as_save_IFS | |
c52df125 AC |
4563 | |
4564 | fi | |
eec2776c AJ |
4565 | fi |
4566 | AWK=$ac_cv_prog_AWK | |
4567 | if test -n "$AWK"; then | |
4568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
4569 | $as_echo "$AWK" >&6; } | |
4570 | else | |
4571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4572 | $as_echo "no" >&6; } | |
4573 | fi | |
c52df125 | 4574 | |
c52df125 | 4575 | |
eec2776c AJ |
4576 | test -n "$AWK" && break |
4577 | done | |
c52df125 | 4578 | |
eec2776c AJ |
4579 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
4580 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
4581 | set x ${MAKE-make} | |
4582 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
4583 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
4584 | $as_echo_n "(cached) " >&6 | |
4585 | else | |
4586 | cat >conftest.make <<\_ACEOF | |
4587 | SHELL = /bin/sh | |
4588 | all: | |
4589 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
4590 | _ACEOF | |
4591 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
4592 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
4593 | *@@@%%%=?*=@@@%%%*) | |
4594 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
4595 | *) | |
4596 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
c52df125 | 4597 | esac |
eec2776c AJ |
4598 | rm -f conftest.make |
4599 | fi | |
4600 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
4601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4602 | $as_echo "yes" >&6; } | |
4603 | SET_MAKE= | |
4604 | else | |
4605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4606 | $as_echo "no" >&6; } | |
4607 | SET_MAKE="MAKE=${MAKE-make}" | |
4608 | fi | |
c52df125 | 4609 | |
eec2776c AJ |
4610 | rm -rf .tst 2>/dev/null |
4611 | mkdir .tst 2>/dev/null | |
4612 | if test -d .tst; then | |
4613 | am__leading_dot=. | |
4614 | else | |
4615 | am__leading_dot=_ | |
4616 | fi | |
4617 | rmdir .tst 2>/dev/null | |
c52df125 | 4618 | |
eec2776c | 4619 | DEPDIR="${am__leading_dot}deps" |
c52df125 | 4620 | |
eec2776c | 4621 | ac_config_commands="$ac_config_commands depfiles" |
c52df125 AC |
4622 | |
4623 | ||
eec2776c AJ |
4624 | am_make=${MAKE-make} |
4625 | cat > confinc << 'END' | |
4626 | am__doit: | |
4627 | @echo this is the am__doit target | |
4628 | .PHONY: am__doit | |
4629 | END | |
4630 | # If we don't find an include directive, just comment out the code. | |
4631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4632 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4633 | am__include="#" | |
4634 | am__quote= | |
4635 | _am_result=none | |
4636 | # First try GNU make style include. | |
4637 | echo "include confinc" > confmf | |
4638 | # Ignore all kinds of additional output from 'make'. | |
4639 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4640 | *the\ am__doit\ target*) | |
4641 | am__include=include | |
4642 | am__quote= | |
4643 | _am_result=GNU | |
4644 | ;; | |
4645 | esac | |
4646 | # Now try BSD make style include. | |
4647 | if test "$am__include" = "#"; then | |
4648 | echo '.include "confinc"' > confmf | |
4649 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4650 | *the\ am__doit\ target*) | |
4651 | am__include=.include | |
4652 | am__quote="\"" | |
4653 | _am_result=BSD | |
4654 | ;; | |
4655 | esac | |
4656 | fi | |
c52df125 AC |
4657 | |
4658 | ||
eec2776c AJ |
4659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
4660 | $as_echo "$_am_result" >&6; } | |
4661 | rm -f confinc confmf | |
c52df125 | 4662 | |
eec2776c AJ |
4663 | # Check whether --enable-dependency-tracking was given. |
4664 | if test "${enable_dependency_tracking+set}" = set; then : | |
4665 | enableval=$enable_dependency_tracking; | |
4666 | fi | |
c52df125 | 4667 | |
eec2776c AJ |
4668 | if test "x$enable_dependency_tracking" != xno; then |
4669 | am_depcomp="$ac_aux_dir/depcomp" | |
4670 | AMDEPBACKSLASH='\' | |
4671 | am__nodep='_no' | |
4672 | fi | |
4673 | if test "x$enable_dependency_tracking" != xno; then | |
4674 | AMDEP_TRUE= | |
4675 | AMDEP_FALSE='#' | |
4676 | else | |
4677 | AMDEP_TRUE='#' | |
4678 | AMDEP_FALSE= | |
4679 | fi | |
c52df125 AC |
4680 | |
4681 | ||
eec2776c AJ |
4682 | # Check whether --enable-silent-rules was given. |
4683 | if test "${enable_silent_rules+set}" = set; then : | |
4684 | enableval=$enable_silent_rules; | |
4685 | fi | |
c52df125 | 4686 | |
eec2776c AJ |
4687 | case $enable_silent_rules in # ((( |
4688 | yes) AM_DEFAULT_VERBOSITY=0;; | |
4689 | no) AM_DEFAULT_VERBOSITY=1;; | |
4690 | *) AM_DEFAULT_VERBOSITY=1;; | |
4691 | esac | |
4692 | am_make=${MAKE-make} | |
4693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
4694 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
4695 | if ${am_cv_make_support_nested_variables+:} false; then : | |
4696 | $as_echo_n "(cached) " >&6 | |
4697 | else | |
4698 | if $as_echo 'TRUE=$(BAR$(V)) | |
4699 | BAR0=false | |
4700 | BAR1=true | |
4701 | V=1 | |
4702 | am__doit: | |
4703 | @$(TRUE) | |
4704 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
4705 | am_cv_make_support_nested_variables=yes | |
4706 | else | |
4707 | am_cv_make_support_nested_variables=no | |
4708 | fi | |
4709 | fi | |
4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
4711 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
4712 | if test $am_cv_make_support_nested_variables = yes; then | |
4713 | AM_V='$(V)' | |
4714 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
4715 | else | |
4716 | AM_V=$AM_DEFAULT_VERBOSITY | |
4717 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
4718 | fi | |
4719 | AM_BACKSLASH='\' | |
c52df125 | 4720 | |
eec2776c AJ |
4721 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
4722 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4723 | # is not polluted with repeated "-I." | |
4724 | am__isrc=' -I$(srcdir)' | |
4725 | # test to see if srcdir already configured | |
4726 | if test -f $srcdir/config.status; then | |
4727 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4728 | fi | |
4729 | fi | |
c52df125 | 4730 | |
eec2776c AJ |
4731 | # test whether we have cygpath |
4732 | if test -z "$CYGPATH_W"; then | |
4733 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4734 | CYGPATH_W='cygpath -w' | |
4735 | else | |
4736 | CYGPATH_W=echo | |
4737 | fi | |
4738 | fi | |
c52df125 AC |
4739 | |
4740 | ||
eec2776c AJ |
4741 | # Define the identity of the package. |
4742 | PACKAGE='charybdis' | |
4743 | VERSION='3.6.0-dev' | |
c52df125 | 4744 | |
c52df125 | 4745 | |
eec2776c AJ |
4746 | cat >>confdefs.h <<_ACEOF |
4747 | #define PACKAGE "$PACKAGE" | |
4748 | _ACEOF | |
c52df125 | 4749 | |
c52df125 | 4750 | |
eec2776c AJ |
4751 | cat >>confdefs.h <<_ACEOF |
4752 | #define VERSION "$VERSION" | |
4753 | _ACEOF | |
c52df125 | 4754 | |
eec2776c | 4755 | # Some tools Automake needs. |
c52df125 | 4756 | |
eec2776c | 4757 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
c52df125 | 4758 | |
c52df125 | 4759 | |
eec2776c | 4760 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
c52df125 | 4761 | |
c52df125 | 4762 | |
eec2776c | 4763 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
c52df125 | 4764 | |
c52df125 | 4765 | |
eec2776c | 4766 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
c52df125 AC |
4767 | |
4768 | ||
eec2776c | 4769 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
c52df125 | 4770 | |
eec2776c AJ |
4771 | # For better backward compatibility. To be removed once Automake 1.9.x |
4772 | # dies out for good. For more background, see: | |
4773 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
4774 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
4775 | mkdir_p='$(MKDIR_P)' | |
c52df125 | 4776 | |
eec2776c AJ |
4777 | # We need awk for the "check" target (and possibly the TAP driver). The |
4778 | # system "awk" is bad on some platforms. | |
4779 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
4780 | # in the wild :-( We should find a proper way to deprecate it ... | |
4781 | AMTAR='$${TAR-tar}' | |
c52df125 AC |
4782 | |
4783 | ||
eec2776c AJ |
4784 | # We'll loop over all known methods to create a tar archive until one works. |
4785 | _am_tools='gnutar pax cpio none' | |
c52df125 | 4786 | |
eec2776c | 4787 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
c52df125 AC |
4788 | |
4789 | ||
4790 | ||
4791 | ||
4792 | ||
eec2776c | 4793 | depcc="$CC" am_compiler_list= |
c52df125 | 4794 | |
eec2776c AJ |
4795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
4796 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4797 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
c52df125 AC |
4798 | $as_echo_n "(cached) " >&6 |
4799 | else | |
eec2776c AJ |
4800 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
4801 | # We make a subdir and do the tests there. Otherwise we can end up | |
4802 | # making bogus files that we don't know about and never remove. For | |
4803 | # instance it was reported that on HP-UX the gcc test will end up | |
4804 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4805 | # in D". | |
4806 | rm -rf conftest.dir | |
4807 | mkdir conftest.dir | |
4808 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4809 | # using a relative directory. | |
4810 | cp "$am_depcomp" conftest.dir | |
4811 | cd conftest.dir | |
4812 | # We will build objects and dependencies in a subdirectory because | |
4813 | # it helps to detect inapplicable dependency modes. For instance | |
4814 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4815 | # side effect of compilation, but ICC will put the dependencies in | |
4816 | # the current directory while Tru64 will put them in the object | |
4817 | # directory. | |
4818 | mkdir sub | |
c52df125 | 4819 | |
eec2776c AJ |
4820 | am_cv_CC_dependencies_compiler_type=none |
4821 | if test "$am_compiler_list" = ""; then | |
4822 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
c52df125 | 4823 | fi |
eec2776c AJ |
4824 | am__universal=false |
4825 | case " $depcc " in #( | |
4826 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4827 | esac | |
c52df125 | 4828 | |
eec2776c AJ |
4829 | for depmode in $am_compiler_list; do |
4830 | # Setup a source with many dependencies, because some compilers | |
4831 | # like to wrap large dependency lists on column 80 (with \), and | |
4832 | # we should not choose a depcomp mode which is confused by this. | |
4833 | # | |
4834 | # We need to recreate these files for each test, as the compiler may | |
4835 | # overwrite some of them when testing with obscure command lines. | |
4836 | # This happens at least with the AIX C compiler. | |
4837 | : > sub/conftest.c | |
4838 | for i in 1 2 3 4 5 6; do | |
4839 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4840 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4841 | # Solaris 10 /bin/sh. | |
4842 | echo '/* dummy */' > sub/conftst$i.h | |
4843 | done | |
4844 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
c52df125 | 4845 | |
eec2776c AJ |
4846 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
4847 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4848 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4849 | # versions had trouble with output in subdirs. | |
4850 | am__obj=sub/conftest.${OBJEXT-o} | |
4851 | am__minus_obj="-o $am__obj" | |
4852 | case $depmode in | |
4853 | gcc) | |
4854 | # This depmode causes a compiler race in universal mode. | |
4855 | test "$am__universal" = false || continue | |
4856 | ;; | |
4857 | nosideeffect) | |
4858 | # After this tag, mechanisms are not by side-effect, so they'll | |
4859 | # only be used when explicitly requested. | |
4860 | if test "x$enable_dependency_tracking" = xyes; then | |
4861 | continue | |
4862 | else | |
4863 | break | |
4864 | fi | |
4865 | ;; | |
4866 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4867 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4868 | # not run yet. These depmodes are late enough in the game, and | |
4869 | # so weak that their functioning should not be impacted. | |
4870 | am__obj=conftest.${OBJEXT-o} | |
4871 | am__minus_obj= | |
4872 | ;; | |
4873 | none) break ;; | |
4874 | esac | |
4875 | if depmode=$depmode \ | |
4876 | source=sub/conftest.c object=$am__obj \ | |
4877 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4878 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4879 | >/dev/null 2>conftest.err && | |
4880 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4881 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4882 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4883 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4884 | # icc doesn't choke on unknown options, it will just issue warnings | |
4885 | # or remarks (even with -Werror). So we grep stderr for any message | |
4886 | # that says an option was ignored or not supported. | |
4887 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4888 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4889 | # The diagnosis changed in icc 8.0: | |
4890 | # icc: Command line remark: option '-MP' not supported | |
4891 | if (grep 'ignoring option' conftest.err || | |
4892 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4893 | am_cv_CC_dependencies_compiler_type=$depmode | |
4894 | break | |
4895 | fi | |
c52df125 | 4896 | fi |
c52df125 | 4897 | done |
c52df125 | 4898 | |
eec2776c AJ |
4899 | cd .. |
4900 | rm -rf conftest.dir | |
c52df125 | 4901 | else |
eec2776c | 4902 | am_cv_CC_dependencies_compiler_type=none |
c52df125 AC |
4903 | fi |
4904 | ||
4905 | fi | |
eec2776c AJ |
4906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
4907 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4908 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
c52df125 | 4909 | |
eec2776c AJ |
4910 | if |
4911 | test "x$enable_dependency_tracking" != xno \ | |
4912 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4913 | am__fastdepCC_TRUE= | |
4914 | am__fastdepCC_FALSE='#' | |
c52df125 | 4915 | else |
eec2776c AJ |
4916 | am__fastdepCC_TRUE='#' |
4917 | am__fastdepCC_FALSE= | |
4918 | fi | |
c52df125 | 4919 | |
eec2776c AJ |
4920 | |
4921 | ||
4922 | # POSIX will say in a future version that running "rm -f" with no argument | |
4923 | # is OK; and we want to be able to make that assumption in our Makefile | |
4924 | # recipes. So use an aggressive probe to check that the usage we want is | |
4925 | # actually supported "in the wild" to an acceptable degree. | |
4926 | # See automake bug#10828. | |
4927 | # To make any issue more visible, cause the running configure to be aborted | |
4928 | # by default if the 'rm' program in use doesn't match our expectations; the | |
4929 | # user can still override this though. | |
4930 | if rm -f && rm -fr && rm -rf; then : OK; else | |
4931 | cat >&2 <<'END' | |
4932 | Oops! | |
4933 | ||
4934 | Your 'rm' program seems unable to run without file operands specified | |
4935 | on the command line, even when the '-f' option is present. This is contrary | |
4936 | to the behaviour of most rm programs out there, and not conforming with | |
4937 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
4938 | ||
4939 | Please tell bug-automake@gnu.org about your system, including the value | |
4940 | of your $PATH and any error possibly output before this message. This | |
4941 | can help us improve future automake versions. | |
4942 | ||
4943 | END | |
4944 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
4945 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
4946 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
4947 | echo >&2 | |
4948 | else | |
4949 | cat >&2 <<'END' | |
4950 | Aborting the configuration process, to ensure you take notice of the issue. | |
4951 | ||
4952 | You can download and install GNU coreutils to get an 'rm' implementation | |
4953 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
4954 | ||
4955 | If you want to complete the configuration process using your problematic | |
4956 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
4957 | to "yes", and re-run configure. | |
4958 | ||
4959 | END | |
4960 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
c52df125 | 4961 | fi |
c52df125 AC |
4962 | fi |
4963 | ||
eec2776c AJ |
4964 | # Check whether --enable-silent-rules was given. |
4965 | if test "${enable_silent_rules+set}" = set; then : | |
4966 | enableval=$enable_silent_rules; | |
c52df125 | 4967 | fi |
c52df125 | 4968 | |
eec2776c AJ |
4969 | case $enable_silent_rules in # ((( |
4970 | yes) AM_DEFAULT_VERBOSITY=0;; | |
4971 | no) AM_DEFAULT_VERBOSITY=1;; | |
4972 | *) AM_DEFAULT_VERBOSITY=0;; | |
4973 | esac | |
4974 | am_make=${MAKE-make} | |
4975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
4976 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
4977 | if ${am_cv_make_support_nested_variables+:} false; then : | |
c52df125 AC |
4978 | $as_echo_n "(cached) " >&6 |
4979 | else | |
eec2776c AJ |
4980 | if $as_echo 'TRUE=$(BAR$(V)) |
4981 | BAR0=false | |
4982 | BAR1=true | |
4983 | V=1 | |
4984 | am__doit: | |
4985 | @$(TRUE) | |
4986 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
4987 | am_cv_make_support_nested_variables=yes | |
c52df125 | 4988 | else |
eec2776c | 4989 | am_cv_make_support_nested_variables=no |
c52df125 | 4990 | fi |
c52df125 | 4991 | fi |
eec2776c AJ |
4992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
4993 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
4994 | if test $am_cv_make_support_nested_variables = yes; then | |
4995 | AM_V='$(V)' | |
4996 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
c52df125 | 4997 | else |
eec2776c AJ |
4998 | AM_V=$AM_DEFAULT_VERBOSITY |
4999 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
c52df125 | 5000 | fi |
eec2776c | 5001 | AM_BACKSLASH='\' |
c52df125 | 5002 | |
eec2776c AJ |
5003 | if test -n "$ac_tool_prefix"; then |
5004 | for ac_prog in ar lib "link -lib" | |
c52df125 AC |
5005 | do |
5006 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5007 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5009 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5010 | if ${ac_cv_prog_AR+:} false; then : |
c52df125 AC |
5011 | $as_echo_n "(cached) " >&6 |
5012 | else | |
eec2776c AJ |
5013 | if test -n "$AR"; then |
5014 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
c52df125 AC |
5015 | else |
5016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5017 | for as_dir in $PATH | |
5018 | do | |
5019 | IFS=$as_save_IFS | |
5020 | test -z "$as_dir" && as_dir=. | |
5021 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5022 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5023 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
c52df125 AC |
5024 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5025 | break 2 | |
5026 | fi | |
5027 | done | |
5028 | done | |
5029 | IFS=$as_save_IFS | |
5030 | ||
5031 | fi | |
5032 | fi | |
eec2776c AJ |
5033 | AR=$ac_cv_prog_AR |
5034 | if test -n "$AR"; then | |
5035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5036 | $as_echo "$AR" >&6; } | |
c52df125 AC |
5037 | else |
5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5039 | $as_echo "no" >&6; } | |
5040 | fi | |
5041 | ||
5042 | ||
eec2776c | 5043 | test -n "$AR" && break |
c52df125 AC |
5044 | done |
5045 | fi | |
eec2776c AJ |
5046 | if test -z "$AR"; then |
5047 | ac_ct_AR=$AR | |
5048 | for ac_prog in ar lib "link -lib" | |
c52df125 AC |
5049 | do |
5050 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5051 | set dummy $ac_prog; ac_word=$2 | |
5052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5053 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5054 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
c52df125 AC |
5055 | $as_echo_n "(cached) " >&6 |
5056 | else | |
eec2776c AJ |
5057 | if test -n "$ac_ct_AR"; then |
5058 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
c52df125 AC |
5059 | else |
5060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5061 | for as_dir in $PATH | |
5062 | do | |
5063 | IFS=$as_save_IFS | |
5064 | test -z "$as_dir" && as_dir=. | |
5065 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5066 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5067 | ac_cv_prog_ac_ct_AR="$ac_prog" |
c52df125 AC |
5068 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5069 | break 2 | |
5070 | fi | |
5071 | done | |
5072 | done | |
5073 | IFS=$as_save_IFS | |
5074 | ||
5075 | fi | |
5076 | fi | |
eec2776c AJ |
5077 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5078 | if test -n "$ac_ct_AR"; then | |
5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5080 | $as_echo "$ac_ct_AR" >&6; } | |
c52df125 AC |
5081 | else |
5082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5083 | $as_echo "no" >&6; } | |
5084 | fi | |
5085 | ||
5086 | ||
eec2776c | 5087 | test -n "$ac_ct_AR" && break |
c52df125 AC |
5088 | done |
5089 | ||
eec2776c AJ |
5090 | if test "x$ac_ct_AR" = x; then |
5091 | AR="false" | |
c52df125 AC |
5092 | else |
5093 | case $cross_compiling:$ac_tool_warned in | |
5094 | yes:) | |
5095 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5096 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5097 | ac_tool_warned=yes ;; | |
5098 | esac | |
eec2776c | 5099 | AR=$ac_ct_AR |
c52df125 AC |
5100 | fi |
5101 | fi | |
5102 | ||
eec2776c AJ |
5103 | : ${AR=ar} |
5104 | ||
5105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 | |
5106 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } | |
5107 | if ${am_cv_ar_interface+:} false; then : | |
5108 | $as_echo_n "(cached) " >&6 | |
5109 | else | |
5110 | ac_ext=c | |
5111 | ac_cpp='$CPP $CPPFLAGS' | |
5112 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5113 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5114 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5115 | ||
5116 | am_cv_ar_interface=ar | |
5117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5118 | /* end confdefs.h. */ | |
5119 | int some_variable = 0; | |
5120 | _ACEOF | |
5121 | if ac_fn_c_try_compile "$LINENO"; then : | |
5122 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' | |
5123 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5124 | (eval $am_ar_try) 2>&5 | |
5125 | ac_status=$? | |
5126 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5127 | test $ac_status = 0; } | |
5128 | if test "$ac_status" -eq 0; then | |
5129 | am_cv_ar_interface=ar | |
5130 | else | |
5131 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' | |
5132 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 | |
5133 | (eval $am_ar_try) 2>&5 | |
5134 | ac_status=$? | |
5135 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5136 | test $ac_status = 0; } | |
5137 | if test "$ac_status" -eq 0; then | |
5138 | am_cv_ar_interface=lib | |
5139 | else | |
5140 | am_cv_ar_interface=unknown | |
5141 | fi | |
5142 | fi | |
5143 | rm -f conftest.lib libconftest.a | |
c52df125 | 5144 | |
c52df125 | 5145 | fi |
eec2776c AJ |
5146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5147 | ac_ext=c | |
5148 | ac_cpp='$CPP $CPPFLAGS' | |
5149 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5150 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5151 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 5152 | |
eec2776c AJ |
5153 | fi |
5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 | |
5155 | $as_echo "$am_cv_ar_interface" >&6; } | |
c52df125 | 5156 | |
eec2776c AJ |
5157 | case $am_cv_ar_interface in |
5158 | ar) | |
5159 | ;; | |
5160 | lib) | |
5161 | # Microsoft lib, so override with the ar-lib wrapper script. | |
5162 | # FIXME: It is wrong to rewrite AR. | |
5163 | # But if we don't then we get into trouble of one sort or another. | |
5164 | # A longer-term fix would be to have automake use am__AR in this case, | |
5165 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something | |
5166 | # similar. | |
5167 | AR="$am_aux_dir/ar-lib $AR" | |
5168 | ;; | |
5169 | unknown) | |
5170 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 | |
5171 | ;; | |
5172 | esac | |
c52df125 AC |
5173 | |
5174 | ||
eec2776c AJ |
5175 | case `pwd` in |
5176 | *\ * | *\ *) | |
5177 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5178 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5179 | esac | |
c52df125 AC |
5180 | |
5181 | ||
c52df125 | 5182 | |
eec2776c AJ |
5183 | macro_version='2.4.2' |
5184 | macro_revision='1.3337' | |
c52df125 | 5185 | |
c52df125 | 5186 | |
c52df125 | 5187 | |
c52df125 | 5188 | |
c52df125 | 5189 | |
c52df125 | 5190 | |
c52df125 | 5191 | |
c52df125 | 5192 | |
c52df125 | 5193 | |
c52df125 AC |
5194 | |
5195 | ||
5196 | ||
5197 | ||
eec2776c | 5198 | ltmain="$ac_aux_dir/ltmain.sh" |
c52df125 | 5199 | |
eec2776c AJ |
5200 | # Make sure we can run config.sub. |
5201 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
5202 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
c52df125 | 5203 | |
eec2776c AJ |
5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
5205 | $as_echo_n "checking build system type... " >&6; } | |
5206 | if ${ac_cv_build+:} false; then : | |
5207 | $as_echo_n "(cached) " >&6 | |
5208 | else | |
5209 | ac_build_alias=$build_alias | |
5210 | test "x$ac_build_alias" = x && | |
5211 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
5212 | test "x$ac_build_alias" = x && | |
5213 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
5214 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
5215 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
c52df125 | 5216 | |
eec2776c AJ |
5217 | fi |
5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
5219 | $as_echo "$ac_cv_build" >&6; } | |
5220 | case $ac_cv_build in | |
5221 | *-*-*) ;; | |
5222 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
5223 | esac | |
5224 | build=$ac_cv_build | |
5225 | ac_save_IFS=$IFS; IFS='-' | |
5226 | set x $ac_cv_build | |
5227 | shift | |
5228 | build_cpu=$1 | |
5229 | build_vendor=$2 | |
5230 | shift; shift | |
5231 | # Remember, the first character of IFS is used to create $*, | |
5232 | # except with old shells: | |
5233 | build_os=$* | |
5234 | IFS=$ac_save_IFS | |
5235 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
c52df125 AC |
5236 | |
5237 | ||
eec2776c AJ |
5238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
5239 | $as_echo_n "checking host system type... " >&6; } | |
5240 | if ${ac_cv_host+:} false; then : | |
5241 | $as_echo_n "(cached) " >&6 | |
c52df125 | 5242 | else |
eec2776c AJ |
5243 | if test "x$host_alias" = x; then |
5244 | ac_cv_host=$ac_cv_build | |
5245 | else | |
5246 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
5247 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
c52df125 AC |
5248 | fi |
5249 | ||
eec2776c AJ |
5250 | fi |
5251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
5252 | $as_echo "$ac_cv_host" >&6; } | |
5253 | case $ac_cv_host in | |
5254 | *-*-*) ;; | |
5255 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
c52df125 | 5256 | esac |
eec2776c AJ |
5257 | host=$ac_cv_host |
5258 | ac_save_IFS=$IFS; IFS='-' | |
5259 | set x $ac_cv_host | |
5260 | shift | |
5261 | host_cpu=$1 | |
5262 | host_vendor=$2 | |
5263 | shift; shift | |
5264 | # Remember, the first character of IFS is used to create $*, | |
5265 | # except with old shells: | |
5266 | host_os=$* | |
5267 | IFS=$ac_save_IFS | |
5268 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
c52df125 AC |
5269 | |
5270 | ||
eec2776c AJ |
5271 | # Backslashify metacharacters that are still active within |
5272 | # double-quoted strings. | |
5273 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
c52df125 | 5274 | |
eec2776c AJ |
5275 | # Same as above, but do not quote variable references. |
5276 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
c52df125 | 5277 | |
eec2776c AJ |
5278 | # Sed substitution to delay expansion of an escaped shell variable in a |
5279 | # double_quote_subst'ed string. | |
5280 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
c52df125 | 5281 | |
eec2776c AJ |
5282 | # Sed substitution to delay expansion of an escaped single quote. |
5283 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
c52df125 | 5284 | |
eec2776c AJ |
5285 | # Sed substitution to avoid accidental globbing in evaled expressions |
5286 | no_glob_subst='s/\*/\\\*/g' | |
c52df125 | 5287 | |
eec2776c AJ |
5288 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
5289 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5290 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
c52df125 | 5291 | |
eec2776c AJ |
5292 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
5293 | $as_echo_n "checking how to print strings... " >&6; } | |
5294 | # Test print first, because it will be a builtin if present. | |
5295 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
5296 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5297 | ECHO='print -r --' | |
5298 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5299 | ECHO='printf %s\n' | |
c52df125 | 5300 | else |
eec2776c AJ |
5301 | # Use this function as a fallback that always works. |
5302 | func_fallback_echo () | |
5303 | { | |
5304 | eval 'cat <<_LTECHO_EOF | |
5305 | $1 | |
5306 | _LTECHO_EOF' | |
5307 | } | |
5308 | ECHO='func_fallback_echo' | |
5309 | fi | |
5310 | ||
5311 | # func_echo_all arg... | |
5312 | # Invoke $ECHO with all args, space-separated. | |
5313 | func_echo_all () | |
5314 | { | |
5315 | $ECHO "" | |
5316 | } | |
5317 | ||
5318 | case "$ECHO" in | |
5319 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5320 | $as_echo "printf" >&6; } ;; | |
5321 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5322 | $as_echo "print -r" >&6; } ;; | |
5323 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5324 | $as_echo "cat" >&6; } ;; | |
c52df125 AC |
5325 | esac |
5326 | ||
c52df125 | 5327 | |
c52df125 AC |
5328 | |
5329 | ||
5330 | ||
5331 | ||
5332 | ||
c52df125 | 5333 | |
c52df125 | 5334 | |
c52df125 AC |
5335 | |
5336 | ||
5337 | ||
5338 | ||
5339 | ||
eec2776c AJ |
5340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5341 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
5342 | if ${ac_cv_path_SED+:} false; then : | |
c52df125 AC |
5343 | $as_echo_n "(cached) " >&6 |
5344 | else | |
eec2776c AJ |
5345 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5346 | for ac_i in 1 2 3 4 5 6 7; do | |
5347 | ac_script="$ac_script$as_nl$ac_script" | |
5348 | done | |
5349 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5350 | { ac_script=; unset ac_script;} | |
5351 | if test -z "$SED"; then | |
5352 | ac_path_SED_found=false | |
5353 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5355 | for as_dir in $PATH | |
5356 | do | |
5357 | IFS=$as_save_IFS | |
5358 | test -z "$as_dir" && as_dir=. | |
5359 | for ac_prog in sed gsed; do | |
5360 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5361 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
5362 | as_fn_executable_p "$ac_path_SED" || continue | |
5363 | # Check for GNU ac_path_SED and select it if it is found. | |
5364 | # Check for GNU $ac_path_SED | |
5365 | case `"$ac_path_SED" --version 2>&1` in | |
5366 | *GNU*) | |
5367 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5368 | *) | |
5369 | ac_count=0 | |
5370 | $as_echo_n 0123456789 >"conftest.in" | |
5371 | while : | |
5372 | do | |
5373 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5374 | mv "conftest.tmp" "conftest.in" | |
5375 | cp "conftest.in" "conftest.nl" | |
5376 | $as_echo '' >> "conftest.nl" | |
5377 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5378 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5379 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5380 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5381 | # Best one so far, save it but keep looking for a better one | |
5382 | ac_cv_path_SED="$ac_path_SED" | |
5383 | ac_path_SED_max=$ac_count | |
c52df125 | 5384 | fi |
eec2776c AJ |
5385 | # 10*(2^10) chars as input seems more than enough |
5386 | test $ac_count -gt 10 && break | |
5387 | done | |
5388 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
c52df125 AC |
5389 | esac |
5390 | ||
eec2776c AJ |
5391 | $ac_path_SED_found && break 3 |
5392 | done | |
5393 | done | |
5394 | done | |
5395 | IFS=$as_save_IFS | |
5396 | if test -z "$ac_cv_path_SED"; then | |
5397 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
5398 | fi | |
5399 | else | |
5400 | ac_cv_path_SED=$SED | |
5401 | fi | |
5402 | ||
5403 | fi | |
5404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5405 | $as_echo "$ac_cv_path_SED" >&6; } | |
5406 | SED="$ac_cv_path_SED" | |
5407 | rm -f conftest.sed | |
5408 | ||
5409 | test -z "$SED" && SED=sed | |
5410 | Xsed="$SED -e 1s/^X//" | |
c52df125 AC |
5411 | |
5412 | ||
5413 | ||
5414 | ||
5415 | ||
5416 | ||
5417 | ||
5418 | ||
c52df125 | 5419 | |
c52df125 AC |
5420 | |
5421 | ||
eec2776c AJ |
5422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5423 | $as_echo_n "checking for fgrep... " >&6; } | |
5424 | if ${ac_cv_path_FGREP+:} false; then : | |
c52df125 AC |
5425 | $as_echo_n "(cached) " >&6 |
5426 | else | |
eec2776c AJ |
5427 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5428 | then ac_cv_path_FGREP="$GREP -F" | |
5429 | else | |
5430 | if test -z "$FGREP"; then | |
5431 | ac_path_FGREP_found=false | |
5432 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5434 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
c52df125 AC |
5435 | do |
5436 | IFS=$as_save_IFS | |
5437 | test -z "$as_dir" && as_dir=. | |
eec2776c | 5438 | for ac_prog in fgrep; do |
c52df125 | 5439 | for ac_exec_ext in '' $ac_executable_extensions; do |
eec2776c AJ |
5440 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
5441 | as_fn_executable_p "$ac_path_FGREP" || continue | |
5442 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5443 | # Check for GNU $ac_path_FGREP | |
5444 | case `"$ac_path_FGREP" --version 2>&1` in | |
5445 | *GNU*) | |
5446 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5447 | *) | |
5448 | ac_count=0 | |
5449 | $as_echo_n 0123456789 >"conftest.in" | |
5450 | while : | |
5451 | do | |
5452 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5453 | mv "conftest.tmp" "conftest.in" | |
5454 | cp "conftest.in" "conftest.nl" | |
5455 | $as_echo 'FGREP' >> "conftest.nl" | |
5456 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5457 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5458 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5459 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5460 | # Best one so far, save it but keep looking for a better one | |
5461 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5462 | ac_path_FGREP_max=$ac_count | |
5463 | fi | |
5464 | # 10*(2^10) chars as input seems more than enough | |
5465 | test $ac_count -gt 10 && break | |
c52df125 | 5466 | done |
eec2776c AJ |
5467 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
5468 | esac | |
c52df125 | 5469 | |
eec2776c AJ |
5470 | $ac_path_FGREP_found && break 3 |
5471 | done | |
5472 | done | |
5473 | done | |
5474 | IFS=$as_save_IFS | |
5475 | if test -z "$ac_cv_path_FGREP"; then | |
5476 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5477 | fi | |
c52df125 | 5478 | else |
eec2776c | 5479 | ac_cv_path_FGREP=$FGREP |
c52df125 AC |
5480 | fi |
5481 | ||
eec2776c | 5482 | fi |
c52df125 | 5483 | fi |
eec2776c AJ |
5484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
5485 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5486 | FGREP="$ac_cv_path_FGREP" | |
c52df125 | 5487 | |
c52df125 | 5488 | |
eec2776c | 5489 | test -z "$GREP" && GREP=grep |
c52df125 AC |
5490 | |
5491 | ||
5492 | ||
5493 | ||
5494 | ||
5495 | ||
5496 | ||
5497 | ||
c52df125 | 5498 | |
c52df125 | 5499 | |
c52df125 | 5500 | |
c52df125 | 5501 | |
c52df125 | 5502 | |
c52df125 | 5503 | |
c52df125 | 5504 | |
c52df125 | 5505 | |
c52df125 | 5506 | |
c52df125 | 5507 | |
c52df125 | 5508 | |
eec2776c AJ |
5509 | # Check whether --with-gnu-ld was given. |
5510 | if test "${with_gnu_ld+set}" = set; then : | |
5511 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5512 | else | |
5513 | with_gnu_ld=no | |
5514 | fi | |
c52df125 | 5515 | |
eec2776c AJ |
5516 | ac_prog=ld |
5517 | if test "$GCC" = yes; then | |
5518 | # Check if gcc -print-prog-name=ld gives a path. | |
5519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5520 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5521 | case $host in | |
5522 | *-*-mingw*) | |
5523 | # gcc leaves a trailing carriage return which upsets mingw | |
5524 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5525 | *) | |
5526 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
c52df125 | 5527 | esac |
eec2776c AJ |
5528 | case $ac_prog in |
5529 | # Accept absolute paths. | |
5530 | [\\/]* | ?:[\\/]*) | |
5531 | re_direlt='/[^/][^/]*/\.\./' | |
5532 | # Canonicalize the pathname of ld | |
5533 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5534 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5535 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5536 | done | |
5537 | test -z "$LD" && LD="$ac_prog" | |
5538 | ;; | |
5539 | "") | |
5540 | # If it fails, then pretend we aren't using GCC. | |
5541 | ac_prog=ld | |
c52df125 | 5542 | ;; |
eec2776c AJ |
5543 | *) |
5544 | # If it is relative, then search for the first ld in PATH. | |
5545 | with_gnu_ld=unknown | |
c52df125 AC |
5546 | ;; |
5547 | esac | |
eec2776c AJ |
5548 | elif test "$with_gnu_ld" = yes; then |
5549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5550 | $as_echo_n "checking for GNU ld... " >&6; } | |
5551 | else | |
5552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5553 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
c52df125 | 5554 | fi |
eec2776c AJ |
5555 | if ${lt_cv_path_LD+:} false; then : |
5556 | $as_echo_n "(cached) " >&6 | |
5557 | else | |
5558 | if test -z "$LD"; then | |
5559 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5560 | for ac_dir in $PATH; do | |
5561 | IFS="$lt_save_ifs" | |
5562 | test -z "$ac_dir" && ac_dir=. | |
5563 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5564 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5565 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5566 | # but apparently some variants of GNU ld only accept -v. | |
5567 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5568 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5569 | *GNU* | *'with BFD'*) | |
5570 | test "$with_gnu_ld" != no && break | |
5571 | ;; | |
5572 | *) | |
5573 | test "$with_gnu_ld" != yes && break | |
5574 | ;; | |
5575 | esac | |
c52df125 | 5576 | fi |
eec2776c AJ |
5577 | done |
5578 | IFS="$lt_save_ifs" | |
5579 | else | |
5580 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5581 | fi | |
c52df125 AC |
5582 | fi |
5583 | ||
eec2776c AJ |
5584 | LD="$lt_cv_path_LD" |
5585 | if test -n "$LD"; then | |
5586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5587 | $as_echo "$LD" >&6; } | |
5588 | else | |
5589 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5590 | $as_echo "no" >&6; } | |
5591 | fi | |
5592 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5594 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5595 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
5596 | $as_echo_n "(cached) " >&6 | |
5597 | else | |
5598 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5599 | case `$LD -v 2>&1 </dev/null` in | |
5600 | *GNU* | *'with BFD'*) | |
5601 | lt_cv_prog_gnu_ld=yes | |
5602 | ;; | |
5603 | *) | |
5604 | lt_cv_prog_gnu_ld=no | |
5605 | ;; | |
5606 | esac | |
5607 | fi | |
5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5609 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5610 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
c52df125 AC |
5611 | |
5612 | ||
5613 | ||
5614 | ||
5615 | ||
5616 | ||
5617 | ||
5618 | ||
5619 | ||
eec2776c AJ |
5620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5621 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5622 | if ${lt_cv_path_NM+:} false; then : | |
c52df125 AC |
5623 | $as_echo_n "(cached) " >&6 |
5624 | else | |
eec2776c AJ |
5625 | if test -n "$NM"; then |
5626 | # Let the user override the test. | |
5627 | lt_cv_path_NM="$NM" | |
c52df125 | 5628 | else |
eec2776c AJ |
5629 | lt_nm_to_check="${ac_tool_prefix}nm" |
5630 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5631 | lt_nm_to_check="$lt_nm_to_check nm" | |
c52df125 | 5632 | fi |
eec2776c AJ |
5633 | for lt_tmp_nm in $lt_nm_to_check; do |
5634 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5635 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5636 | IFS="$lt_save_ifs" | |
5637 | test -z "$ac_dir" && ac_dir=. | |
5638 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5639 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5640 | # Check to see if the nm accepts a BSD-compat flag. | |
5641 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5642 | # nm: unknown option "B" ignored | |
5643 | # Tru64's nm complains that /dev/null is an invalid object file | |
5644 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5645 | */dev/null* | *'Invalid file or object type'*) | |
5646 | lt_cv_path_NM="$tmp_nm -B" | |
5647 | break | |
5648 | ;; | |
5649 | *) | |
5650 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5651 | */dev/null*) | |
5652 | lt_cv_path_NM="$tmp_nm -p" | |
5653 | break | |
5654 | ;; | |
5655 | *) | |
5656 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5657 | continue # so that we can try to find one that supports BSD flags | |
5658 | ;; | |
5659 | esac | |
5660 | ;; | |
5661 | esac | |
5662 | fi | |
5663 | done | |
5664 | IFS="$lt_save_ifs" | |
c52df125 | 5665 | done |
eec2776c | 5666 | : ${lt_cv_path_NM=no} |
c52df125 AC |
5667 | fi |
5668 | fi | |
eec2776c AJ |
5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5670 | $as_echo "$lt_cv_path_NM" >&6; } | |
5671 | if test "$lt_cv_path_NM" != "no"; then | |
5672 | NM="$lt_cv_path_NM" | |
c52df125 | 5673 | else |
eec2776c AJ |
5674 | # Didn't find any BSD compatible name lister, look for dumpbin. |
5675 | if test -n "$DUMPBIN"; then : | |
5676 | # Let the user override the test. | |
c52df125 | 5677 | else |
eec2776c AJ |
5678 | if test -n "$ac_tool_prefix"; then |
5679 | for ac_prog in dumpbin "link -dump" | |
c52df125 AC |
5680 | do |
5681 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5682 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5684 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5685 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
c52df125 AC |
5686 | $as_echo_n "(cached) " >&6 |
5687 | else | |
eec2776c AJ |
5688 | if test -n "$DUMPBIN"; then |
5689 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
c52df125 AC |
5690 | else |
5691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5692 | for as_dir in $PATH | |
5693 | do | |
5694 | IFS=$as_save_IFS | |
5695 | test -z "$as_dir" && as_dir=. | |
5696 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5697 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5698 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
c52df125 AC |
5699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5700 | break 2 | |
5701 | fi | |
5702 | done | |
5703 | done | |
5704 | IFS=$as_save_IFS | |
5705 | ||
5706 | fi | |
5707 | fi | |
eec2776c AJ |
5708 | DUMPBIN=$ac_cv_prog_DUMPBIN |
5709 | if test -n "$DUMPBIN"; then | |
5710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5711 | $as_echo "$DUMPBIN" >&6; } | |
c52df125 AC |
5712 | else |
5713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5714 | $as_echo "no" >&6; } | |
5715 | fi | |
5716 | ||
5717 | ||
eec2776c | 5718 | test -n "$DUMPBIN" && break |
c52df125 AC |
5719 | done |
5720 | fi | |
eec2776c AJ |
5721 | if test -z "$DUMPBIN"; then |
5722 | ac_ct_DUMPBIN=$DUMPBIN | |
5723 | for ac_prog in dumpbin "link -dump" | |
c52df125 AC |
5724 | do |
5725 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5726 | set dummy $ac_prog; ac_word=$2 | |
5727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5728 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 5729 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
c52df125 AC |
5730 | $as_echo_n "(cached) " >&6 |
5731 | else | |
eec2776c AJ |
5732 | if test -n "$ac_ct_DUMPBIN"; then |
5733 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
c52df125 AC |
5734 | else |
5735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5736 | for as_dir in $PATH | |
5737 | do | |
5738 | IFS=$as_save_IFS | |
5739 | test -z "$as_dir" && as_dir=. | |
5740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5741 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 5742 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
c52df125 AC |
5743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5744 | break 2 | |
5745 | fi | |
5746 | done | |
5747 | done | |
5748 | IFS=$as_save_IFS | |
5749 | ||
5750 | fi | |
5751 | fi | |
eec2776c AJ |
5752 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
5753 | if test -n "$ac_ct_DUMPBIN"; then | |
5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5755 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
c52df125 AC |
5756 | else |
5757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5758 | $as_echo "no" >&6; } | |
5759 | fi | |
5760 | ||
5761 | ||
eec2776c | 5762 | test -n "$ac_ct_DUMPBIN" && break |
c52df125 AC |
5763 | done |
5764 | ||
eec2776c AJ |
5765 | if test "x$ac_ct_DUMPBIN" = x; then |
5766 | DUMPBIN=":" | |
c52df125 AC |
5767 | else |
5768 | case $cross_compiling:$ac_tool_warned in | |
5769 | yes:) | |
5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5771 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5772 | ac_tool_warned=yes ;; | |
5773 | esac | |
eec2776c | 5774 | DUMPBIN=$ac_ct_DUMPBIN |
c52df125 AC |
5775 | fi |
5776 | fi | |
5777 | ||
eec2776c AJ |
5778 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5779 | *COFF*) | |
5780 | DUMPBIN="$DUMPBIN -symbols" | |
5781 | ;; | |
5782 | *) | |
5783 | DUMPBIN=: | |
5784 | ;; | |
5785 | esac | |
5786 | fi | |
c52df125 | 5787 | |
eec2776c AJ |
5788 | if test "$DUMPBIN" != ":"; then |
5789 | NM="$DUMPBIN" | |
5790 | fi | |
5791 | fi | |
5792 | test -z "$NM" && NM=nm | |
c52df125 AC |
5793 | |
5794 | ||
5795 | ||
5796 | ||
5797 | ||
5798 | ||
eec2776c AJ |
5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5800 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5801 | if ${lt_cv_nm_interface+:} false; then : | |
c52df125 AC |
5802 | $as_echo_n "(cached) " >&6 |
5803 | else | |
eec2776c AJ |
5804 | lt_cv_nm_interface="BSD nm" |
5805 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5806 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5807 | (eval "$ac_compile" 2>conftest.err) | |
5808 | cat conftest.err >&5 | |
5809 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5810 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5811 | cat conftest.err >&5 | |
5812 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5813 | cat conftest.out >&5 | |
5814 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5815 | lt_cv_nm_interface="MS dumpbin" | |
5816 | fi | |
5817 | rm -f conftest* | |
c52df125 | 5818 | fi |
eec2776c AJ |
5819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5820 | $as_echo "$lt_cv_nm_interface" >&6; } | |
c52df125 | 5821 | |
eec2776c AJ |
5822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5823 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5824 | LN_S=$as_ln_s | |
5825 | if test "$LN_S" = "ln -s"; then | |
5826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5827 | $as_echo "yes" >&6; } | |
5828 | else | |
5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5830 | $as_echo "no, using $LN_S" >&6; } | |
c52df125 | 5831 | fi |
c52df125 | 5832 | |
eec2776c AJ |
5833 | # find the maximum length of command line arguments |
5834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5835 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5836 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
5837 | $as_echo_n "(cached) " >&6 | |
c52df125 | 5838 | else |
eec2776c AJ |
5839 | i=0 |
5840 | teststring="ABCD" | |
c52df125 | 5841 | |
eec2776c AJ |
5842 | case $build_os in |
5843 | msdosdjgpp*) | |
5844 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5845 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5846 | # during glob expansion). Even if it were fixed, the result of this | |
5847 | # check would be larger than it should be. | |
5848 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5849 | ;; | |
c52df125 | 5850 | |
eec2776c AJ |
5851 | gnu*) |
5852 | # Under GNU Hurd, this test is not required because there is | |
5853 | # no limit to the length of command line arguments. | |
5854 | # Libtool will interpret -1 as no limit whatsoever | |
5855 | lt_cv_sys_max_cmd_len=-1; | |
5856 | ;; | |
c52df125 | 5857 | |
eec2776c AJ |
5858 | cygwin* | mingw* | cegcc*) |
5859 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5860 | # about 5 minutes as the teststring grows exponentially. | |
5861 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5862 | # you end up with a "frozen" computer, even though with patience | |
5863 | # the test eventually succeeds (with a max line length of 256k). | |
5864 | # Instead, let's just punt: use the minimum linelength reported by | |
5865 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5866 | lt_cv_sys_max_cmd_len=8192; | |
5867 | ;; | |
c52df125 | 5868 | |
eec2776c AJ |
5869 | mint*) |
5870 | # On MiNT this can take a long time and run out of memory. | |
5871 | lt_cv_sys_max_cmd_len=8192; | |
5872 | ;; | |
c52df125 | 5873 | |
eec2776c AJ |
5874 | amigaos*) |
5875 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5876 | # So we just punt and use a minimum line length of 8192. | |
5877 | lt_cv_sys_max_cmd_len=8192; | |
5878 | ;; | |
c52df125 | 5879 | |
eec2776c AJ |
5880 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5881 | # This has been around since 386BSD, at least. Likely further. | |
5882 | if test -x /sbin/sysctl; then | |
5883 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5884 | elif test -x /usr/sbin/sysctl; then | |
5885 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5886 | else | |
5887 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5888 | fi | |
5889 | # And add a safety zone | |
5890 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5891 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5892 | ;; | |
c52df125 | 5893 | |
eec2776c AJ |
5894 | interix*) |
5895 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5896 | lt_cv_sys_max_cmd_len=196608 | |
5897 | ;; | |
c52df125 | 5898 | |
eec2776c AJ |
5899 | os2*) |
5900 | # The test takes a long time on OS/2. | |
5901 | lt_cv_sys_max_cmd_len=8192 | |
5902 | ;; | |
c52df125 | 5903 | |
eec2776c AJ |
5904 | osf*) |
5905 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5906 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5907 | # nice to cause kernel panics so lets avoid the loop below. | |
5908 | # First set a reasonable default. | |
5909 | lt_cv_sys_max_cmd_len=16384 | |
5910 | # | |
5911 | if test -x /sbin/sysconfig; then | |
5912 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5913 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5914 | esac | |
5915 | fi | |
5916 | ;; | |
5917 | sco3.2v5*) | |
5918 | lt_cv_sys_max_cmd_len=102400 | |
5919 | ;; | |
5920 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5921 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5922 | if test -n "$kargmax"; then | |
5923 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5924 | else | |
5925 | lt_cv_sys_max_cmd_len=32768 | |
5926 | fi | |
5927 | ;; | |
5928 | *) | |
5929 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5930 | if test -n "$lt_cv_sys_max_cmd_len" && \ | |
5931 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
5932 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5933 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5934 | else | |
5935 | # Make teststring a little bigger before we do anything with it. | |
5936 | # a 1K string should be a reasonable start. | |
5937 | for i in 1 2 3 4 5 6 7 8 ; do | |
5938 | teststring=$teststring$teststring | |
5939 | done | |
5940 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5941 | # If test is not a shell built-in, we'll probably end up computing a | |
5942 | # maximum length that is only half of the actual maximum length, but | |
5943 | # we can't tell. | |
5944 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |
5945 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5946 | test $i != 17 # 1/2 MB should be enough | |
5947 | do | |
5948 | i=`expr $i + 1` | |
5949 | teststring=$teststring$teststring | |
5950 | done | |
5951 | # Only check the string length outside the loop. | |
5952 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5953 | teststring= | |
5954 | # Add a significant safety factor because C++ compilers can tack on | |
5955 | # massive amounts of additional arguments before passing them to the | |
5956 | # linker. It appears as though 1/2 is a usable value. | |
5957 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5958 | fi | |
5959 | ;; | |
5960 | esac | |
c52df125 AC |
5961 | |
5962 | fi | |
c52df125 | 5963 | |
eec2776c AJ |
5964 | if test -n $lt_cv_sys_max_cmd_len ; then |
5965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5966 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
c52df125 | 5967 | else |
eec2776c AJ |
5968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5969 | $as_echo "none" >&6; } | |
c52df125 | 5970 | fi |
eec2776c | 5971 | max_cmd_len=$lt_cv_sys_max_cmd_len |
c52df125 | 5972 | |
eec2776c AJ |
5973 | |
5974 | ||
5975 | ||
5976 | ||
5977 | ||
5978 | : ${CP="cp -f"} | |
5979 | : ${MV="mv -f"} | |
5980 | : ${RM="rm -f"} | |
5981 | ||
5982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
5983 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5984 | # Try some XSI features | |
5985 | xsi_shell=no | |
5986 | ( _lt_dummy="a/b/c" | |
5987 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
5988 | = c,a/b,b/c, \ | |
5989 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5990 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5991 | && xsi_shell=yes | |
5992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5993 | $as_echo "$xsi_shell" >&6; } | |
5994 | ||
5995 | ||
5996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
5997 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
5998 | lt_shell_append=no | |
5999 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
6000 | >/dev/null 2>&1 \ | |
6001 | && lt_shell_append=yes | |
6002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
6003 | $as_echo "$lt_shell_append" >&6; } | |
6004 | ||
6005 | ||
6006 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6007 | lt_unset=unset | |
6008 | else | |
6009 | lt_unset=false | |
6010 | fi | |
6011 | ||
6012 | ||
6013 | ||
6014 | ||
6015 | ||
6016 | # test EBCDIC or ASCII | |
6017 | case `echo X|tr X '\101'` in | |
6018 | A) # ASCII based system | |
6019 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
6020 | lt_SP2NL='tr \040 \012' | |
6021 | lt_NL2SP='tr \015\012 \040\040' | |
6022 | ;; | |
6023 | *) # EBCDIC based system | |
6024 | lt_SP2NL='tr \100 \n' | |
6025 | lt_NL2SP='tr \r\n \100\100' | |
6026 | ;; | |
c52df125 | 6027 | esac |
eec2776c AJ |
6028 | |
6029 | ||
6030 | ||
6031 | ||
6032 | ||
6033 | ||
6034 | ||
6035 | ||
6036 | ||
6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
6038 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
6039 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
6040 | $as_echo_n "(cached) " >&6 | |
c52df125 | 6041 | else |
eec2776c AJ |
6042 | case $host in |
6043 | *-*-mingw* ) | |
6044 | case $build in | |
6045 | *-*-mingw* ) # actually msys | |
6046 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
6047 | ;; | |
6048 | *-*-cygwin* ) | |
6049 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
6050 | ;; | |
6051 | * ) # otherwise, assume *nix | |
6052 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
6053 | ;; | |
6054 | esac | |
6055 | ;; | |
6056 | *-*-cygwin* ) | |
6057 | case $build in | |
6058 | *-*-mingw* ) # actually msys | |
6059 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
6060 | ;; | |
6061 | *-*-cygwin* ) | |
6062 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6063 | ;; | |
6064 | * ) # otherwise, assume *nix | |
6065 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
6066 | ;; | |
6067 | esac | |
6068 | ;; | |
6069 | * ) # unhandled hosts (and "normal" native builds) | |
6070 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
6071 | ;; | |
6072 | esac | |
6073 | ||
c52df125 AC |
6074 | fi |
6075 | ||
eec2776c AJ |
6076 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
6077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
6078 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
6079 | ||
6080 | ||
6081 | ||
6082 | ||
6083 | ||
6084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
6085 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
6086 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
6087 | $as_echo_n "(cached) " >&6 | |
6088 | else | |
6089 | #assume ordinary cross tools, or native build. | |
6090 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
6091 | case $host in | |
6092 | *-*-mingw* ) | |
6093 | case $build in | |
6094 | *-*-mingw* ) # actually msys | |
6095 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
6096 | ;; | |
6097 | esac | |
6098 | ;; | |
6099 | esac | |
6100 | ||
6101 | fi | |
6102 | ||
6103 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
6104 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
6105 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
6106 | ||
6107 | ||
6108 | ||
6109 | ||
6110 | ||
6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
6112 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
6113 | if ${lt_cv_ld_reload_flag+:} false; then : | |
6114 | $as_echo_n "(cached) " >&6 | |
6115 | else | |
6116 | lt_cv_ld_reload_flag='-r' | |
6117 | fi | |
6118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
6119 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
6120 | reload_flag=$lt_cv_ld_reload_flag | |
6121 | case $reload_flag in | |
6122 | "" | " "*) ;; | |
6123 | *) reload_flag=" $reload_flag" ;; | |
6124 | esac | |
6125 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6126 | case $host_os in | |
6127 | cygwin* | mingw* | pw32* | cegcc*) | |
6128 | if test "$GCC" != yes; then | |
6129 | reload_cmds=false | |
6130 | fi | |
6131 | ;; | |
6132 | darwin*) | |
6133 | if test "$GCC" = yes; then | |
6134 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6135 | else | |
6136 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6137 | fi | |
6138 | ;; | |
6139 | esac | |
6140 | ||
6141 | ||
6142 | ||
c52df125 AC |
6143 | |
6144 | ||
6145 | ||
6146 | ||
6147 | ||
6148 | ||
6149 | if test -n "$ac_tool_prefix"; then | |
eec2776c AJ |
6150 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
6151 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
c52df125 AC |
6152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6153 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6154 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
c52df125 AC |
6155 | $as_echo_n "(cached) " >&6 |
6156 | else | |
eec2776c AJ |
6157 | if test -n "$OBJDUMP"; then |
6158 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
c52df125 AC |
6159 | else |
6160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6161 | for as_dir in $PATH | |
6162 | do | |
6163 | IFS=$as_save_IFS | |
6164 | test -z "$as_dir" && as_dir=. | |
6165 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6166 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6167 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
c52df125 AC |
6168 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6169 | break 2 | |
6170 | fi | |
6171 | done | |
6172 | done | |
6173 | IFS=$as_save_IFS | |
6174 | ||
6175 | fi | |
6176 | fi | |
eec2776c AJ |
6177 | OBJDUMP=$ac_cv_prog_OBJDUMP |
6178 | if test -n "$OBJDUMP"; then | |
6179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
6180 | $as_echo "$OBJDUMP" >&6; } | |
c52df125 AC |
6181 | else |
6182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6183 | $as_echo "no" >&6; } | |
6184 | fi | |
6185 | ||
6186 | ||
6187 | fi | |
eec2776c AJ |
6188 | if test -z "$ac_cv_prog_OBJDUMP"; then |
6189 | ac_ct_OBJDUMP=$OBJDUMP | |
6190 | # Extract the first word of "objdump", so it can be a program name with args. | |
6191 | set dummy objdump; ac_word=$2 | |
c52df125 AC |
6192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6193 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6194 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
c52df125 AC |
6195 | $as_echo_n "(cached) " >&6 |
6196 | else | |
eec2776c AJ |
6197 | if test -n "$ac_ct_OBJDUMP"; then |
6198 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
c52df125 AC |
6199 | else |
6200 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6201 | for as_dir in $PATH | |
6202 | do | |
6203 | IFS=$as_save_IFS | |
6204 | test -z "$as_dir" && as_dir=. | |
6205 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6206 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6207 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
c52df125 AC |
6208 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6209 | break 2 | |
6210 | fi | |
6211 | done | |
6212 | done | |
6213 | IFS=$as_save_IFS | |
6214 | ||
6215 | fi | |
6216 | fi | |
eec2776c AJ |
6217 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
6218 | if test -n "$ac_ct_OBJDUMP"; then | |
6219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
6220 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
c52df125 AC |
6221 | else |
6222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6223 | $as_echo "no" >&6; } | |
6224 | fi | |
6225 | ||
eec2776c AJ |
6226 | if test "x$ac_ct_OBJDUMP" = x; then |
6227 | OBJDUMP="false" | |
c52df125 AC |
6228 | else |
6229 | case $cross_compiling:$ac_tool_warned in | |
6230 | yes:) | |
6231 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6232 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6233 | ac_tool_warned=yes ;; | |
6234 | esac | |
eec2776c | 6235 | OBJDUMP=$ac_ct_OBJDUMP |
c52df125 AC |
6236 | fi |
6237 | else | |
eec2776c | 6238 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
c52df125 AC |
6239 | fi |
6240 | ||
eec2776c | 6241 | test -z "$OBJDUMP" && OBJDUMP=objdump |
c52df125 AC |
6242 | |
6243 | ||
c52df125 | 6244 | |
c52df125 | 6245 | |
c52df125 AC |
6246 | |
6247 | ||
6248 | ||
6249 | ||
6250 | ||
eec2776c AJ |
6251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
6252 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
6253 | if ${lt_cv_deplibs_check_method+:} false; then : | |
6254 | $as_echo_n "(cached) " >&6 | |
6255 | else | |
6256 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6257 | lt_cv_file_magic_test_file= | |
6258 | lt_cv_deplibs_check_method='unknown' | |
6259 | # Need to set the preceding variable on all platforms that support | |
6260 | # interlibrary dependencies. | |
6261 | # 'none' -- dependencies not supported. | |
6262 | # `unknown' -- same as none, but documents that we really don't know. | |
6263 | # 'pass_all' -- all dependencies passed with no checks. | |
6264 | # 'test_compile' -- check by making test program. | |
6265 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6266 | # which responds to the $file_magic_cmd with a given extended regex. | |
6267 | # If you have `file' or equivalent on your system and you're not sure | |
6268 | # whether `pass_all' will *always* work, you probably want this one. | |
c52df125 | 6269 | |
eec2776c AJ |
6270 | case $host_os in |
6271 | aix[4-9]*) | |
6272 | lt_cv_deplibs_check_method=pass_all | |
6273 | ;; | |
c52df125 | 6274 | |
eec2776c AJ |
6275 | beos*) |
6276 | lt_cv_deplibs_check_method=pass_all | |
6277 | ;; | |
c52df125 | 6278 | |
eec2776c AJ |
6279 | bsdi[45]*) |
6280 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6281 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6282 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6283 | ;; | |
c52df125 | 6284 | |
eec2776c AJ |
6285 | cygwin*) |
6286 | # func_win32_libid is a shell function defined in ltmain.sh | |
6287 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6288 | lt_cv_file_magic_cmd='func_win32_libid' | |
6289 | ;; | |
c52df125 | 6290 | |
eec2776c AJ |
6291 | mingw* | pw32*) |
6292 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6293 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6294 | # unless we find 'file', for example because we are cross-compiling. | |
6295 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
6296 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
6297 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6298 | lt_cv_file_magic_cmd='func_win32_libid' | |
6299 | else | |
6300 | # Keep this pattern in sync with the one in func_win32_libid. | |
6301 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
6302 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6303 | fi | |
6304 | ;; | |
c52df125 | 6305 | |
eec2776c AJ |
6306 | cegcc*) |
6307 | # use the weaker test based on 'objdump'. See mingw*. | |
6308 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6309 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6310 | ;; | |
c52df125 | 6311 | |
eec2776c AJ |
6312 | darwin* | rhapsody*) |
6313 | lt_cv_deplibs_check_method=pass_all | |
6314 | ;; | |
c52df125 | 6315 | |
eec2776c AJ |
6316 | freebsd* | dragonfly*) |
6317 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6318 | case $host_cpu in | |
6319 | i*86 ) | |
6320 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6321 | # Let's accept both of them until this is cleared up. | |
6322 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6323 | lt_cv_file_magic_cmd=/usr/bin/file | |
6324 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6325 | ;; | |
6326 | esac | |
6327 | else | |
6328 | lt_cv_deplibs_check_method=pass_all | |
6329 | fi | |
6330 | ;; | |
c52df125 | 6331 | |
eec2776c AJ |
6332 | haiku*) |
6333 | lt_cv_deplibs_check_method=pass_all | |
6334 | ;; | |
c52df125 | 6335 | |
eec2776c AJ |
6336 | hpux10.20* | hpux11*) |
6337 | lt_cv_file_magic_cmd=/usr/bin/file | |
6338 | case $host_cpu in | |
6339 | ia64*) | |
6340 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6341 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6342 | ;; | |
6343 | hppa*64*) | |
6344 | 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]' | |
6345 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6346 | ;; | |
6347 | *) | |
6348 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
6349 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6350 | ;; | |
6351 | esac | |
6352 | ;; | |
c52df125 | 6353 | |
eec2776c AJ |
6354 | interix[3-9]*) |
6355 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6356 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6357 | ;; | |
c52df125 | 6358 | |
eec2776c AJ |
6359 | irix5* | irix6* | nonstopux*) |
6360 | case $LD in | |
6361 | *-32|*"-32 ") libmagic=32-bit;; | |
6362 | *-n32|*"-n32 ") libmagic=N32;; | |
6363 | *-64|*"-64 ") libmagic=64-bit;; | |
6364 | *) libmagic=never-match;; | |
6365 | esac | |
6366 | lt_cv_deplibs_check_method=pass_all | |
6367 | ;; | |
c52df125 | 6368 | |
eec2776c AJ |
6369 | # This must be glibc/ELF. |
6370 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
6371 | lt_cv_deplibs_check_method=pass_all | |
6372 | ;; | |
c52df125 | 6373 | |
eec2776c AJ |
6374 | netbsd* | netbsdelf*-gnu) |
6375 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6376 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6377 | else | |
6378 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6379 | fi | |
6380 | ;; | |
c52df125 | 6381 | |
eec2776c AJ |
6382 | newos6*) |
6383 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6384 | lt_cv_file_magic_cmd=/usr/bin/file | |
6385 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6386 | ;; | |
c52df125 | 6387 | |
eec2776c AJ |
6388 | *nto* | *qnx*) |
6389 | lt_cv_deplibs_check_method=pass_all | |
6390 | ;; | |
c52df125 | 6391 | |
eec2776c AJ |
6392 | openbsd*) |
6393 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6394 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6395 | else | |
6396 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6397 | fi | |
6398 | ;; | |
c52df125 | 6399 | |
eec2776c AJ |
6400 | osf3* | osf4* | osf5*) |
6401 | lt_cv_deplibs_check_method=pass_all | |
6402 | ;; | |
c52df125 | 6403 | |
eec2776c AJ |
6404 | rdos*) |
6405 | lt_cv_deplibs_check_method=pass_all | |
6406 | ;; | |
c52df125 | 6407 | |
eec2776c AJ |
6408 | solaris*) |
6409 | lt_cv_deplibs_check_method=pass_all | |
6410 | ;; | |
c52df125 | 6411 | |
eec2776c AJ |
6412 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
6413 | lt_cv_deplibs_check_method=pass_all | |
6414 | ;; | |
c52df125 | 6415 | |
eec2776c AJ |
6416 | sysv4 | sysv4.3*) |
6417 | case $host_vendor in | |
6418 | motorola) | |
6419 | 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]' | |
6420 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6421 | ;; | |
6422 | ncr) | |
6423 | lt_cv_deplibs_check_method=pass_all | |
6424 | ;; | |
6425 | sequent) | |
6426 | lt_cv_file_magic_cmd='/bin/file' | |
6427 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6428 | ;; | |
6429 | sni) | |
6430 | lt_cv_file_magic_cmd='/bin/file' | |
6431 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6432 | lt_cv_file_magic_test_file=/lib/libc.so | |
6433 | ;; | |
6434 | siemens) | |
6435 | lt_cv_deplibs_check_method=pass_all | |
6436 | ;; | |
6437 | pc) | |
6438 | lt_cv_deplibs_check_method=pass_all | |
6439 | ;; | |
6440 | esac | |
6441 | ;; | |
c52df125 | 6442 | |
eec2776c AJ |
6443 | tpf*) |
6444 | lt_cv_deplibs_check_method=pass_all | |
6445 | ;; | |
6446 | esac | |
c52df125 | 6447 | |
eec2776c AJ |
6448 | fi |
6449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6450 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
c52df125 | 6451 | |
eec2776c AJ |
6452 | file_magic_glob= |
6453 | want_nocaseglob=no | |
6454 | if test "$build" = "$host"; then | |
6455 | case $host_os in | |
6456 | mingw* | pw32*) | |
6457 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6458 | want_nocaseglob=yes | |
6459 | else | |
6460 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6461 | fi | |
6462 | ;; | |
6463 | esac | |
6464 | fi | |
c52df125 | 6465 | |
eec2776c AJ |
6466 | file_magic_cmd=$lt_cv_file_magic_cmd |
6467 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6468 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
c52df125 AC |
6469 | |
6470 | ||
6471 | ||
6472 | ||
6473 | ||
6474 | ||
6475 | ||
6476 | ||
c52df125 | 6477 | |
c52df125 | 6478 | |
c52df125 AC |
6479 | |
6480 | ||
c52df125 | 6481 | |
c52df125 | 6482 | |
c52df125 | 6483 | |
c52df125 | 6484 | |
c52df125 | 6485 | |
c52df125 | 6486 | |
c52df125 | 6487 | |
c52df125 | 6488 | |
c52df125 | 6489 | |
c52df125 | 6490 | |
eec2776c AJ |
6491 | if test -n "$ac_tool_prefix"; then |
6492 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
6493 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
6494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6495 | $as_echo_n "checking for $ac_word... " >&6; } | |
6496 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
6497 | $as_echo_n "(cached) " >&6 | |
6498 | else | |
6499 | if test -n "$DLLTOOL"; then | |
6500 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
6501 | else | |
6502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6503 | for as_dir in $PATH | |
6504 | do | |
6505 | IFS=$as_save_IFS | |
6506 | test -z "$as_dir" && as_dir=. | |
6507 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6508 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6509 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
6510 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6511 | break 2 | |
c52df125 | 6512 | fi |
eec2776c AJ |
6513 | done |
6514 | done | |
6515 | IFS=$as_save_IFS | |
c52df125 | 6516 | |
eec2776c AJ |
6517 | fi |
6518 | fi | |
6519 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
6520 | if test -n "$DLLTOOL"; then | |
6521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6522 | $as_echo "$DLLTOOL" >&6; } | |
6523 | else | |
6524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6525 | $as_echo "no" >&6; } | |
6526 | fi | |
c52df125 | 6527 | |
c52df125 | 6528 | |
eec2776c AJ |
6529 | fi |
6530 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
6531 | ac_ct_DLLTOOL=$DLLTOOL | |
6532 | # Extract the first word of "dlltool", so it can be a program name with args. | |
6533 | set dummy dlltool; ac_word=$2 | |
6534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6535 | $as_echo_n "checking for $ac_word... " >&6; } | |
6536 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
6537 | $as_echo_n "(cached) " >&6 | |
6538 | else | |
6539 | if test -n "$ac_ct_DLLTOOL"; then | |
6540 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
6541 | else | |
6542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6543 | for as_dir in $PATH | |
6544 | do | |
6545 | IFS=$as_save_IFS | |
6546 | test -z "$as_dir" && as_dir=. | |
6547 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6548 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6549 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
6550 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6551 | break 2 | |
c52df125 AC |
6552 | fi |
6553 | done | |
eec2776c AJ |
6554 | done |
6555 | IFS=$as_save_IFS | |
c52df125 AC |
6556 | |
6557 | fi | |
c52df125 | 6558 | fi |
eec2776c AJ |
6559 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
6560 | if test -n "$ac_ct_DLLTOOL"; then | |
6561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6562 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
c52df125 | 6563 | else |
eec2776c AJ |
6564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6565 | $as_echo "no" >&6; } | |
c52df125 AC |
6566 | fi |
6567 | ||
eec2776c AJ |
6568 | if test "x$ac_ct_DLLTOOL" = x; then |
6569 | DLLTOOL="false" | |
6570 | else | |
6571 | case $cross_compiling:$ac_tool_warned in | |
6572 | yes:) | |
6573 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6574 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6575 | ac_tool_warned=yes ;; | |
6576 | esac | |
6577 | DLLTOOL=$ac_ct_DLLTOOL | |
6578 | fi | |
6579 | else | |
6580 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
c52df125 AC |
6581 | fi |
6582 | ||
eec2776c | 6583 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
c52df125 AC |
6584 | |
6585 | ||
6586 | ||
6587 | ||
6588 | ||
6589 | ||
6590 | ||
6591 | ||
6592 | ||
6593 | ||
eec2776c AJ |
6594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
6595 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6596 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
6597 | $as_echo_n "(cached) " >&6 | |
6598 | else | |
6599 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
c52df125 | 6600 | |
eec2776c AJ |
6601 | case $host_os in |
6602 | cygwin* | mingw* | pw32* | cegcc*) | |
6603 | # two different shell functions defined in ltmain.sh | |
6604 | # decide which to use based on capabilities of $DLLTOOL | |
6605 | case `$DLLTOOL --help 2>&1` in | |
6606 | *--identify-strict*) | |
6607 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6608 | ;; | |
6609 | *) | |
6610 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6611 | ;; | |
6612 | esac | |
6613 | ;; | |
6614 | *) | |
6615 | # fallback: assume linklib IS sharedlib | |
6616 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
6617 | ;; | |
6618 | esac | |
c52df125 | 6619 | |
eec2776c AJ |
6620 | fi |
6621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
6622 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6623 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6624 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
c52df125 AC |
6625 | |
6626 | ||
6627 | ||
6628 | ||
6629 | ||
6630 | ||
6631 | ||
eec2776c AJ |
6632 | if test -n "$ac_tool_prefix"; then |
6633 | for ac_prog in ar | |
6634 | do | |
6635 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6636 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6638 | $as_echo_n "checking for $ac_word... " >&6; } | |
6639 | if ${ac_cv_prog_AR+:} false; then : | |
6640 | $as_echo_n "(cached) " >&6 | |
6641 | else | |
6642 | if test -n "$AR"; then | |
6643 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6644 | else | |
6645 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6646 | for as_dir in $PATH | |
6647 | do | |
6648 | IFS=$as_save_IFS | |
6649 | test -z "$as_dir" && as_dir=. | |
6650 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6651 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6652 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
6653 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6654 | break 2 | |
6655 | fi | |
6656 | done | |
6657 | done | |
6658 | IFS=$as_save_IFS | |
c52df125 | 6659 | |
eec2776c AJ |
6660 | fi |
6661 | fi | |
6662 | AR=$ac_cv_prog_AR | |
6663 | if test -n "$AR"; then | |
6664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6665 | $as_echo "$AR" >&6; } | |
6666 | else | |
6667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6668 | $as_echo "no" >&6; } | |
6669 | fi | |
c52df125 AC |
6670 | |
6671 | ||
eec2776c AJ |
6672 | test -n "$AR" && break |
6673 | done | |
6674 | fi | |
6675 | if test -z "$AR"; then | |
6676 | ac_ct_AR=$AR | |
6677 | for ac_prog in ar | |
6678 | do | |
6679 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6680 | set dummy $ac_prog; ac_word=$2 | |
6681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6682 | $as_echo_n "checking for $ac_word... " >&6; } | |
6683 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
6684 | $as_echo_n "(cached) " >&6 | |
6685 | else | |
6686 | if test -n "$ac_ct_AR"; then | |
6687 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6688 | else | |
6689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6690 | for as_dir in $PATH | |
6691 | do | |
6692 | IFS=$as_save_IFS | |
6693 | test -z "$as_dir" && as_dir=. | |
6694 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6695 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6696 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
6697 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6698 | break 2 | |
6699 | fi | |
6700 | done | |
6701 | done | |
6702 | IFS=$as_save_IFS | |
c52df125 | 6703 | |
eec2776c AJ |
6704 | fi |
6705 | fi | |
6706 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6707 | if test -n "$ac_ct_AR"; then | |
6708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6709 | $as_echo "$ac_ct_AR" >&6; } | |
c52df125 | 6710 | else |
eec2776c AJ |
6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6712 | $as_echo "no" >&6; } | |
c52df125 AC |
6713 | fi |
6714 | ||
6715 | ||
eec2776c AJ |
6716 | test -n "$ac_ct_AR" && break |
6717 | done | |
6718 | ||
6719 | if test "x$ac_ct_AR" = x; then | |
6720 | AR="false" | |
6721 | else | |
6722 | case $cross_compiling:$ac_tool_warned in | |
6723 | yes:) | |
6724 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6725 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6726 | ac_tool_warned=yes ;; | |
c52df125 | 6727 | esac |
eec2776c AJ |
6728 | AR=$ac_ct_AR |
6729 | fi | |
6730 | fi | |
c52df125 | 6731 | |
eec2776c AJ |
6732 | : ${AR=ar} |
6733 | : ${AR_FLAGS=cru} | |
c52df125 AC |
6734 | |
6735 | ||
6736 | ||
6737 | ||
6738 | ||
c52df125 | 6739 | |
c52df125 | 6740 | |
eec2776c AJ |
6741 | |
6742 | ||
6743 | ||
6744 | ||
6745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6746 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6747 | if ${lt_cv_ar_at_file+:} false; then : | |
6748 | $as_echo_n "(cached) " >&6 | |
6749 | else | |
6750 | lt_cv_ar_at_file=no | |
6751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6752 | /* end confdefs.h. */ | |
6753 | ||
6754 | int | |
6755 | main () | |
6756 | { | |
6757 | ||
6758 | ; | |
6759 | return 0; | |
6760 | } | |
6761 | _ACEOF | |
6762 | if ac_fn_c_try_compile "$LINENO"; then : | |
6763 | echo conftest.$ac_objext > conftest.lst | |
6764 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6765 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6766 | (eval $lt_ar_try) 2>&5 | |
c52df125 AC |
6767 | ac_status=$? |
6768 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
6769 | test $ac_status = 0; } |
6770 | if test "$ac_status" -eq 0; then | |
6771 | # Ensure the archiver fails upon bogus file names. | |
6772 | rm -f conftest.$ac_objext libconftest.a | |
6773 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6774 | (eval $lt_ar_try) 2>&5 | |
c52df125 AC |
6775 | ac_status=$? |
6776 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
6777 | test $ac_status = 0; } |
6778 | if test "$ac_status" -ne 0; then | |
6779 | lt_cv_ar_at_file=@ | |
6780 | fi | |
6781 | fi | |
6782 | rm -f conftest.* libconftest.a | |
c52df125 | 6783 | |
eec2776c AJ |
6784 | fi |
6785 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
c52df125 | 6786 | |
eec2776c AJ |
6787 | fi |
6788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6789 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
6790 | ||
6791 | if test "x$lt_cv_ar_at_file" = xno; then | |
6792 | archiver_list_spec= | |
c52df125 | 6793 | else |
eec2776c AJ |
6794 | archiver_list_spec=$lt_cv_ar_at_file |
6795 | fi | |
6796 | ||
c52df125 | 6797 | |
c52df125 | 6798 | |
c52df125 | 6799 | |
c52df125 | 6800 | |
c52df125 | 6801 | |
c52df125 AC |
6802 | |
6803 | if test -n "$ac_tool_prefix"; then | |
eec2776c AJ |
6804 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6805 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
c52df125 AC |
6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6807 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6808 | if ${ac_cv_prog_STRIP+:} false; then : |
c52df125 AC |
6809 | $as_echo_n "(cached) " >&6 |
6810 | else | |
eec2776c AJ |
6811 | if test -n "$STRIP"; then |
6812 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
c52df125 AC |
6813 | else |
6814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6815 | for as_dir in $PATH | |
6816 | do | |
6817 | IFS=$as_save_IFS | |
6818 | test -z "$as_dir" && as_dir=. | |
6819 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6820 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6821 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
c52df125 AC |
6822 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6823 | break 2 | |
6824 | fi | |
6825 | done | |
6826 | done | |
6827 | IFS=$as_save_IFS | |
6828 | ||
6829 | fi | |
6830 | fi | |
eec2776c AJ |
6831 | STRIP=$ac_cv_prog_STRIP |
6832 | if test -n "$STRIP"; then | |
6833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6834 | $as_echo "$STRIP" >&6; } | |
c52df125 AC |
6835 | else |
6836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6837 | $as_echo "no" >&6; } | |
6838 | fi | |
6839 | ||
6840 | ||
6841 | fi | |
eec2776c AJ |
6842 | if test -z "$ac_cv_prog_STRIP"; then |
6843 | ac_ct_STRIP=$STRIP | |
6844 | # Extract the first word of "strip", so it can be a program name with args. | |
6845 | set dummy strip; ac_word=$2 | |
c52df125 AC |
6846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6847 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6848 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
c52df125 AC |
6849 | $as_echo_n "(cached) " >&6 |
6850 | else | |
eec2776c AJ |
6851 | if test -n "$ac_ct_STRIP"; then |
6852 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
c52df125 AC |
6853 | else |
6854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6855 | for as_dir in $PATH | |
6856 | do | |
6857 | IFS=$as_save_IFS | |
6858 | test -z "$as_dir" && as_dir=. | |
6859 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6860 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6861 | ac_cv_prog_ac_ct_STRIP="strip" |
c52df125 AC |
6862 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6863 | break 2 | |
6864 | fi | |
6865 | done | |
6866 | done | |
6867 | IFS=$as_save_IFS | |
6868 | ||
6869 | fi | |
6870 | fi | |
eec2776c AJ |
6871 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6872 | if test -n "$ac_ct_STRIP"; then | |
6873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6874 | $as_echo "$ac_ct_STRIP" >&6; } | |
c52df125 AC |
6875 | else |
6876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6877 | $as_echo "no" >&6; } | |
6878 | fi | |
6879 | ||
eec2776c AJ |
6880 | if test "x$ac_ct_STRIP" = x; then |
6881 | STRIP=":" | |
c52df125 AC |
6882 | else |
6883 | case $cross_compiling:$ac_tool_warned in | |
6884 | yes:) | |
6885 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6886 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6887 | ac_tool_warned=yes ;; | |
6888 | esac | |
eec2776c | 6889 | STRIP=$ac_ct_STRIP |
c52df125 AC |
6890 | fi |
6891 | else | |
eec2776c | 6892 | STRIP="$ac_cv_prog_STRIP" |
c52df125 AC |
6893 | fi |
6894 | ||
eec2776c | 6895 | test -z "$STRIP" && STRIP=: |
c52df125 AC |
6896 | |
6897 | ||
6898 | ||
6899 | ||
6900 | ||
6901 | ||
eec2776c AJ |
6902 | if test -n "$ac_tool_prefix"; then |
6903 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6904 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
c52df125 AC |
6905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6906 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6907 | if ${ac_cv_prog_RANLIB+:} false; then : |
c52df125 AC |
6908 | $as_echo_n "(cached) " >&6 |
6909 | else | |
eec2776c AJ |
6910 | if test -n "$RANLIB"; then |
6911 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
c52df125 AC |
6912 | else |
6913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6914 | for as_dir in $PATH | |
6915 | do | |
6916 | IFS=$as_save_IFS | |
6917 | test -z "$as_dir" && as_dir=. | |
6918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6919 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6920 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
c52df125 AC |
6921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6922 | break 2 | |
6923 | fi | |
6924 | done | |
6925 | done | |
6926 | IFS=$as_save_IFS | |
6927 | ||
6928 | fi | |
6929 | fi | |
eec2776c AJ |
6930 | RANLIB=$ac_cv_prog_RANLIB |
6931 | if test -n "$RANLIB"; then | |
6932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6933 | $as_echo "$RANLIB" >&6; } | |
c52df125 AC |
6934 | else |
6935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6936 | $as_echo "no" >&6; } | |
6937 | fi | |
6938 | ||
6939 | ||
6940 | fi | |
eec2776c AJ |
6941 | if test -z "$ac_cv_prog_RANLIB"; then |
6942 | ac_ct_RANLIB=$RANLIB | |
6943 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6944 | set dummy ranlib; ac_word=$2 | |
c52df125 AC |
6945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6946 | $as_echo_n "checking for $ac_word... " >&6; } | |
eec2776c | 6947 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
c52df125 AC |
6948 | $as_echo_n "(cached) " >&6 |
6949 | else | |
eec2776c AJ |
6950 | if test -n "$ac_ct_RANLIB"; then |
6951 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
c52df125 AC |
6952 | else |
6953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6954 | for as_dir in $PATH | |
6955 | do | |
6956 | IFS=$as_save_IFS | |
6957 | test -z "$as_dir" && as_dir=. | |
6958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6959 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
eec2776c | 6960 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
c52df125 AC |
6961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6962 | break 2 | |
6963 | fi | |
6964 | done | |
6965 | done | |
6966 | IFS=$as_save_IFS | |
6967 | ||
6968 | fi | |
6969 | fi | |
eec2776c AJ |
6970 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6971 | if test -n "$ac_ct_RANLIB"; then | |
6972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6973 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6974 | else | |
6975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
c52df125 AC |
6976 | $as_echo "no" >&6; } |
6977 | fi | |
6978 | ||
eec2776c AJ |
6979 | if test "x$ac_ct_RANLIB" = x; then |
6980 | RANLIB=":" | |
c52df125 AC |
6981 | else |
6982 | case $cross_compiling:$ac_tool_warned in | |
6983 | yes:) | |
6984 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6985 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6986 | ac_tool_warned=yes ;; | |
6987 | esac | |
eec2776c | 6988 | RANLIB=$ac_ct_RANLIB |
c52df125 AC |
6989 | fi |
6990 | else | |
eec2776c | 6991 | RANLIB="$ac_cv_prog_RANLIB" |
c52df125 AC |
6992 | fi |
6993 | ||
eec2776c | 6994 | test -z "$RANLIB" && RANLIB=: |
c52df125 | 6995 | |
c52df125 AC |
6996 | |
6997 | ||
c52df125 | 6998 | |
eec2776c AJ |
6999 | |
7000 | ||
7001 | # Determine commands to create old-style static archives. | |
7002 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
7003 | old_postinstall_cmds='chmod 644 $oldlib' | |
7004 | old_postuninstall_cmds= | |
7005 | ||
7006 | if test -n "$RANLIB"; then | |
7007 | case $host_os in | |
7008 | openbsd*) | |
7009 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
7010 | ;; | |
7011 | *) | |
7012 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
7013 | ;; | |
7014 | esac | |
7015 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
c52df125 AC |
7016 | fi |
7017 | ||
eec2776c AJ |
7018 | case $host_os in |
7019 | darwin*) | |
7020 | lock_old_archive_extraction=yes ;; | |
7021 | *) | |
7022 | lock_old_archive_extraction=no ;; | |
c52df125 | 7023 | esac |
c52df125 | 7024 | |
c52df125 | 7025 | |
c52df125 AC |
7026 | |
7027 | ||
c52df125 | 7028 | |
c52df125 | 7029 | |
c52df125 | 7030 | |
c52df125 | 7031 | |
c52df125 AC |
7032 | |
7033 | ||
c52df125 | 7034 | |
c52df125 | 7035 | |
c52df125 AC |
7036 | |
7037 | ||
c52df125 | 7038 | |
c52df125 | 7039 | |
c52df125 AC |
7040 | |
7041 | ||
7042 | ||
7043 | ||
7044 | ||
7045 | ||
7046 | ||
7047 | ||
7048 | ||
7049 | ||
7050 | ||
7051 | ||
7052 | ||
7053 | ||
7054 | ||
7055 | ||
7056 | ||
7057 | ||
7058 | ||
7059 | ||
7060 | ||
7061 | ||
7062 | ||
eec2776c AJ |
7063 | # If no C compiler was specified, use CC. |
7064 | LTCC=${LTCC-"$CC"} | |
c52df125 | 7065 | |
eec2776c AJ |
7066 | # If no C compiler flags were specified, use CFLAGS. |
7067 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
c52df125 | 7068 | |
eec2776c AJ |
7069 | # Allow CC to be a program name with arguments. |
7070 | compiler=$CC | |
c52df125 AC |
7071 | |
7072 | ||
eec2776c AJ |
7073 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
7074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
7075 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
7076 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
c52df125 AC |
7077 | $as_echo_n "(cached) " >&6 |
7078 | else | |
c52df125 | 7079 | |
eec2776c AJ |
7080 | # These are sane defaults that work on at least a few old systems. |
7081 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
c52df125 | 7082 | |
eec2776c AJ |
7083 | # Character class describing NM global symbol codes. |
7084 | symcode='[BCDEGRST]' | |
c52df125 | 7085 | |
eec2776c AJ |
7086 | # Regexp to match symbols that can be accessed directly from C. |
7087 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
c52df125 | 7088 | |
eec2776c AJ |
7089 | # Define system-specific variables. |
7090 | case $host_os in | |
7091 | aix*) | |
7092 | symcode='[BCDT]' | |
7093 | ;; | |
7094 | cygwin* | mingw* | pw32* | cegcc*) | |
7095 | symcode='[ABCDGISTW]' | |
7096 | ;; | |
7097 | hpux*) | |
7098 | if test "$host_cpu" = ia64; then | |
7099 | symcode='[ABCDEGRST]' | |
7100 | fi | |
7101 | ;; | |
7102 | irix* | nonstopux*) | |
7103 | symcode='[BCDEGRST]' | |
7104 | ;; | |
7105 | osf*) | |
7106 | symcode='[BCDEGQRST]' | |
7107 | ;; | |
7108 | solaris*) | |
7109 | symcode='[BDRT]' | |
7110 | ;; | |
7111 | sco3.2v5*) | |
7112 | symcode='[DT]' | |
7113 | ;; | |
7114 | sysv4.2uw2*) | |
7115 | symcode='[DT]' | |
7116 | ;; | |
7117 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
7118 | symcode='[ABDT]' | |
7119 | ;; | |
7120 | sysv4) | |
7121 | symcode='[DFNSTU]' | |
7122 | ;; | |
7123 | esac | |
c52df125 | 7124 | |
eec2776c AJ |
7125 | # If we're using GNU nm, then use its standard symbol codes. |
7126 | case `$NM -V 2>&1` in | |
7127 | *GNU* | *'with BFD'*) | |
7128 | symcode='[ABCDGIRSTW]' ;; | |
7129 | esac | |
c52df125 | 7130 | |
eec2776c AJ |
7131 | # Transform an extracted symbol line into a proper C declaration. |
7132 | # Some systems (esp. on ia64) link data and code symbols differently, | |
7133 | # so use this general approach. | |
7134 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
c52df125 | 7135 | |
eec2776c AJ |
7136 | # Transform an extracted symbol line into symbol name and symbol address |
7137 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
7138 | 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 | 7139 | |
eec2776c AJ |
7140 | # Handle CRLF in mingw tool chain |
7141 | opt_cr= | |
7142 | case $build_os in | |
7143 | mingw*) | |
7144 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
7145 | ;; | |
7146 | esac | |
c52df125 | 7147 | |
eec2776c AJ |
7148 | # Try without a prefix underscore, then with it. |
7149 | for ac_symprfx in "" "_"; do | |
c52df125 | 7150 | |
eec2776c AJ |
7151 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
7152 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
c52df125 | 7153 | |
eec2776c AJ |
7154 | # Write the raw and C identifiers. |
7155 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7156 | # Fake it for dumpbin and say T for any non-static function | |
7157 | # and D for any global variable. | |
7158 | # Also find C++ and __fastcall symbols from MSVC++, | |
7159 | # which start with @ or ?. | |
7160 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
7161 | " {last_section=section; section=\$ 3};"\ | |
7162 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
7163 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
7164 | " \$ 0!~/External *\|/{next};"\ | |
7165 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
7166 | " {if(hide[section]) next};"\ | |
7167 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
7168 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
7169 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
7170 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
7171 | " ' prfx=^$ac_symprfx" | |
7172 | else | |
7173 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
7174 | fi | |
7175 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
c52df125 | 7176 | |
eec2776c AJ |
7177 | # Check to see that the pipe works correctly. |
7178 | pipe_works=no | |
7179 | ||
7180 | rm -f conftest* | |
7181 | cat > conftest.$ac_ext <<_LT_EOF | |
7182 | #ifdef __cplusplus | |
7183 | extern "C" { | |
c52df125 | 7184 | #endif |
eec2776c AJ |
7185 | char nm_test_var; |
7186 | void nm_test_func(void); | |
7187 | void nm_test_func(void){} | |
7188 | #ifdef __cplusplus | |
7189 | } | |
7190 | #endif | |
7191 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
7192 | _LT_EOF | |
c52df125 | 7193 | |
eec2776c AJ |
7194 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7195 | (eval $ac_compile) 2>&5 | |
7196 | ac_status=$? | |
7197 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7198 | test $ac_status = 0; }; then | |
7199 | # Now try to grab the symbols. | |
7200 | nlist=conftest.nm | |
7201 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
7202 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
7203 | ac_status=$? | |
7204 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7205 | test $ac_status = 0; } && test -s "$nlist"; then | |
7206 | # Try sorting and uniquifying the output. | |
7207 | if sort "$nlist" | uniq > "$nlist"T; then | |
7208 | mv -f "$nlist"T "$nlist" | |
7209 | else | |
7210 | rm -f "$nlist"T | |
7211 | fi | |
c52df125 | 7212 | |
eec2776c AJ |
7213 | # Make sure that we snagged all the symbols we need. |
7214 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
7215 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
7216 | cat <<_LT_EOF > conftest.$ac_ext | |
7217 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
7218 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
7219 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
7220 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
7221 | # define LT_DLSYM_CONST | |
7222 | #elif defined(__osf__) | |
7223 | /* This system does not cope well with relocations in const data. */ | |
7224 | # define LT_DLSYM_CONST | |
7225 | #else | |
7226 | # define LT_DLSYM_CONST const | |
7227 | #endif | |
c52df125 | 7228 | |
eec2776c AJ |
7229 | #ifdef __cplusplus |
7230 | extern "C" { | |
7231 | #endif | |
c52df125 | 7232 | |
eec2776c AJ |
7233 | _LT_EOF |
7234 | # Now generate the symbol file. | |
7235 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
c52df125 | 7236 | |
eec2776c | 7237 | cat <<_LT_EOF >> conftest.$ac_ext |
c52df125 | 7238 | |
eec2776c AJ |
7239 | /* The mapping between symbol names and symbols. */ |
7240 | LT_DLSYM_CONST struct { | |
7241 | const char *name; | |
7242 | void *address; | |
7243 | } | |
7244 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
c52df125 | 7245 | { |
eec2776c AJ |
7246 | { "@PROGRAM@", (void *) 0 }, |
7247 | _LT_EOF | |
7248 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
7249 | cat <<\_LT_EOF >> conftest.$ac_ext | |
7250 | {0, (void *) 0} | |
7251 | }; | |
c52df125 | 7252 | |
eec2776c AJ |
7253 | /* This works around a problem in FreeBSD linker */ |
7254 | #ifdef FREEBSD_WORKAROUND | |
7255 | static const void *lt_preloaded_setup() { | |
7256 | return lt__PROGRAM__LTX_preloaded_symbols; | |
c52df125 | 7257 | } |
eec2776c | 7258 | #endif |
c52df125 | 7259 | |
eec2776c AJ |
7260 | #ifdef __cplusplus |
7261 | } | |
7262 | #endif | |
7263 | _LT_EOF | |
7264 | # Now try linking the two files. | |
7265 | mv conftest.$ac_objext conftstm.$ac_objext | |
7266 | lt_globsym_save_LIBS=$LIBS | |
7267 | lt_globsym_save_CFLAGS=$CFLAGS | |
7268 | LIBS="conftstm.$ac_objext" | |
7269 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
7270 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
7271 | (eval $ac_link) 2>&5 | |
7272 | ac_status=$? | |
7273 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7274 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
7275 | pipe_works=yes | |
7276 | fi | |
7277 | LIBS=$lt_globsym_save_LIBS | |
7278 | CFLAGS=$lt_globsym_save_CFLAGS | |
7279 | else | |
7280 | echo "cannot find nm_test_func in $nlist" >&5 | |
7281 | fi | |
7282 | else | |
7283 | echo "cannot find nm_test_var in $nlist" >&5 | |
7284 | fi | |
7285 | else | |
7286 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
7287 | fi | |
7288 | else | |
7289 | echo "$progname: failed program was:" >&5 | |
7290 | cat conftest.$ac_ext >&5 | |
7291 | fi | |
7292 | rm -rf conftest* conftst* | |
c52df125 | 7293 | |
eec2776c AJ |
7294 | # Do not use the global_symbol_pipe unless it works. |
7295 | if test "$pipe_works" = yes; then | |
7296 | break | |
7297 | else | |
7298 | lt_cv_sys_global_symbol_pipe= | |
7299 | fi | |
7300 | done | |
c52df125 | 7301 | |
c52df125 | 7302 | fi |
c52df125 | 7303 | |
eec2776c AJ |
7304 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
7305 | lt_cv_sys_global_symbol_to_cdecl= | |
c52df125 | 7306 | fi |
eec2776c AJ |
7307 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
7308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
7309 | $as_echo "failed" >&6; } | |
c52df125 | 7310 | else |
eec2776c AJ |
7311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
7312 | $as_echo "ok" >&6; } | |
c52df125 | 7313 | fi |
c52df125 | 7314 | |
eec2776c AJ |
7315 | # Response file support. |
7316 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
7317 | nm_file_list_spec='@' | |
7318 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
7319 | nm_file_list_spec='@' | |
c52df125 AC |
7320 | fi |
7321 | ||
c52df125 | 7322 | |
c52df125 | 7323 | |
c52df125 | 7324 | |
c52df125 | 7325 | |
c52df125 | 7326 | |
c52df125 | 7327 | |
c52df125 | 7328 | |
c52df125 | 7329 | |
c52df125 AC |
7330 | |
7331 | ||
c52df125 | 7332 | |
c52df125 | 7333 | |
c52df125 AC |
7334 | |
7335 | ||
7336 | ||
7337 | ||
7338 | ||
c52df125 AC |
7339 | |
7340 | ||
7341 | ||
7342 | ||
7343 | ||
7344 | ||
7345 | ||
7346 | ||
7347 | ||
eec2776c AJ |
7348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
7349 | $as_echo_n "checking for sysroot... " >&6; } | |
c52df125 | 7350 | |
eec2776c AJ |
7351 | # Check whether --with-sysroot was given. |
7352 | if test "${with_sysroot+set}" = set; then : | |
7353 | withval=$with_sysroot; | |
7354 | else | |
7355 | with_sysroot=no | |
7356 | fi | |
c52df125 AC |
7357 | |
7358 | ||
eec2776c AJ |
7359 | lt_sysroot= |
7360 | case ${with_sysroot} in #( | |
7361 | yes) | |
7362 | if test "$GCC" = yes; then | |
7363 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
7364 | fi | |
7365 | ;; #( | |
7366 | /*) | |
7367 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
7368 | ;; #( | |
7369 | no|'') | |
7370 | ;; #( | |
7371 | *) | |
7372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
7373 | $as_echo "${with_sysroot}" >&6; } | |
7374 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
7375 | ;; | |
7376 | esac | |
c52df125 | 7377 | |
eec2776c AJ |
7378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
7379 | $as_echo "${lt_sysroot:-no}" >&6; } | |
c52df125 AC |
7380 | |
7381 | ||
7382 | ||
7383 | ||
7384 | ||
eec2776c AJ |
7385 | # Check whether --enable-libtool-lock was given. |
7386 | if test "${enable_libtool_lock+set}" = set; then : | |
7387 | enableval=$enable_libtool_lock; | |
c52df125 AC |
7388 | fi |
7389 | ||
eec2776c | 7390 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
c52df125 | 7391 | |
eec2776c AJ |
7392 | # Some flags need to be propagated to the compiler or linker for good |
7393 | # libtool support. | |
7394 | case $host in | |
7395 | ia64-*-hpux*) | |
7396 | # Find out which ABI we are using. | |
7397 | echo 'int i;' > conftest.$ac_ext | |
7398 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7399 | (eval $ac_compile) 2>&5 | |
7400 | ac_status=$? | |
7401 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7402 | test $ac_status = 0; }; then | |
7403 | case `/usr/bin/file conftest.$ac_objext` in | |
7404 | *ELF-32*) | |
7405 | HPUX_IA64_MODE="32" | |
7406 | ;; | |
7407 | *ELF-64*) | |
7408 | HPUX_IA64_MODE="64" | |
7409 | ;; | |
7410 | esac | |
7411 | fi | |
7412 | rm -rf conftest* | |
7413 | ;; | |
7414 | *-*-irix6*) | |
7415 | # Find out which ABI we are using. | |
7416 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
7417 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7418 | (eval $ac_compile) 2>&5 | |
7419 | ac_status=$? | |
7420 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7421 | test $ac_status = 0; }; then | |
7422 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
7423 | case `/usr/bin/file conftest.$ac_objext` in | |
7424 | *32-bit*) | |
7425 | LD="${LD-ld} -melf32bsmip" | |
7426 | ;; | |
7427 | *N32*) | |
7428 | LD="${LD-ld} -melf32bmipn32" | |
7429 | ;; | |
7430 | *64-bit*) | |
7431 | LD="${LD-ld} -melf64bmip" | |
7432 | ;; | |
7433 | esac | |
7434 | else | |
7435 | case `/usr/bin/file conftest.$ac_objext` in | |
7436 | *32-bit*) | |
7437 | LD="${LD-ld} -32" | |
7438 | ;; | |
7439 | *N32*) | |
7440 | LD="${LD-ld} -n32" | |
7441 | ;; | |
7442 | *64-bit*) | |
7443 | LD="${LD-ld} -64" | |
7444 | ;; | |
7445 | esac | |
7446 | fi | |
7447 | fi | |
7448 | rm -rf conftest* | |
7449 | ;; | |
c52df125 | 7450 | |
eec2776c AJ |
7451 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
7452 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7453 | # Find out which ABI we are using. | |
7454 | echo 'int i;' > conftest.$ac_ext | |
7455 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7456 | (eval $ac_compile) 2>&5 | |
7457 | ac_status=$? | |
7458 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7459 | test $ac_status = 0; }; then | |
7460 | case `/usr/bin/file conftest.o` in | |
7461 | *32-bit*) | |
7462 | case $host in | |
7463 | x86_64-*kfreebsd*-gnu) | |
7464 | LD="${LD-ld} -m elf_i386_fbsd" | |
7465 | ;; | |
7466 | x86_64-*linux*) | |
7467 | case `/usr/bin/file conftest.o` in | |
7468 | *x86-64*) | |
7469 | LD="${LD-ld} -m elf32_x86_64" | |
7470 | ;; | |
7471 | *) | |
7472 | LD="${LD-ld} -m elf_i386" | |
7473 | ;; | |
7474 | esac | |
7475 | ;; | |
7476 | powerpc64le-*) | |
7477 | LD="${LD-ld} -m elf32lppclinux" | |
7478 | ;; | |
7479 | powerpc64-*) | |
7480 | LD="${LD-ld} -m elf32ppclinux" | |
7481 | ;; | |
7482 | s390x-*linux*) | |
7483 | LD="${LD-ld} -m elf_s390" | |
7484 | ;; | |
7485 | sparc64-*linux*) | |
7486 | LD="${LD-ld} -m elf32_sparc" | |
7487 | ;; | |
7488 | esac | |
7489 | ;; | |
7490 | *64-bit*) | |
7491 | case $host in | |
7492 | x86_64-*kfreebsd*-gnu) | |
7493 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
7494 | ;; | |
7495 | x86_64-*linux*) | |
7496 | LD="${LD-ld} -m elf_x86_64" | |
7497 | ;; | |
7498 | powerpcle-*) | |
7499 | LD="${LD-ld} -m elf64lppc" | |
7500 | ;; | |
7501 | powerpc-*) | |
7502 | LD="${LD-ld} -m elf64ppc" | |
7503 | ;; | |
7504 | s390*-*linux*|s390*-*tpf*) | |
7505 | LD="${LD-ld} -m elf64_s390" | |
7506 | ;; | |
7507 | sparc*-*linux*) | |
7508 | LD="${LD-ld} -m elf64_sparc" | |
7509 | ;; | |
7510 | esac | |
7511 | ;; | |
7512 | esac | |
7513 | fi | |
7514 | rm -rf conftest* | |
7515 | ;; | |
c52df125 | 7516 | |
eec2776c AJ |
7517 | *-*-sco3.2v5*) |
7518 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7519 | SAVE_CFLAGS="$CFLAGS" | |
7520 | CFLAGS="$CFLAGS -belf" | |
7521 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7522 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7523 | if ${lt_cv_cc_needs_belf+:} false; then : | |
7524 | $as_echo_n "(cached) " >&6 | |
7525 | else | |
7526 | ac_ext=c | |
7527 | ac_cpp='$CPP $CPPFLAGS' | |
7528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 7531 | |
eec2776c AJ |
7532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7533 | /* end confdefs.h. */ | |
c52df125 | 7534 | |
eec2776c AJ |
7535 | int |
7536 | main () | |
7537 | { | |
c52df125 | 7538 | |
eec2776c AJ |
7539 | ; |
7540 | return 0; | |
7541 | } | |
7542 | _ACEOF | |
7543 | if ac_fn_c_try_link "$LINENO"; then : | |
7544 | lt_cv_cc_needs_belf=yes | |
c52df125 | 7545 | else |
eec2776c | 7546 | lt_cv_cc_needs_belf=no |
c52df125 | 7547 | fi |
eec2776c AJ |
7548 | rm -f core conftest.err conftest.$ac_objext \ |
7549 | conftest$ac_exeext conftest.$ac_ext | |
7550 | ac_ext=c | |
7551 | ac_cpp='$CPP $CPPFLAGS' | |
7552 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7553 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7554 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 7555 | |
eec2776c AJ |
7556 | fi |
7557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7558 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7559 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7560 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7561 | CFLAGS="$SAVE_CFLAGS" | |
7562 | fi | |
7563 | ;; | |
7564 | *-*solaris*) | |
7565 | # Find out which ABI we are using. | |
7566 | echo 'int i;' > conftest.$ac_ext | |
7567 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7568 | (eval $ac_compile) 2>&5 | |
7569 | ac_status=$? | |
7570 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7571 | test $ac_status = 0; }; then | |
7572 | case `/usr/bin/file conftest.o` in | |
7573 | *64-bit*) | |
7574 | case $lt_cv_prog_gnu_ld in | |
7575 | yes*) | |
7576 | case $host in | |
7577 | i?86-*-solaris*) | |
7578 | LD="${LD-ld} -m elf_x86_64" | |
7579 | ;; | |
7580 | sparc*-*-solaris*) | |
7581 | LD="${LD-ld} -m elf64_sparc" | |
7582 | ;; | |
7583 | esac | |
7584 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7585 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
7586 | LD="${LD-ld}_sol2" | |
7587 | fi | |
7588 | ;; | |
7589 | *) | |
7590 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7591 | LD="${LD-ld} -64" | |
7592 | fi | |
7593 | ;; | |
7594 | esac | |
7595 | ;; | |
7596 | esac | |
7597 | fi | |
7598 | rm -rf conftest* | |
7599 | ;; | |
7600 | esac | |
c52df125 | 7601 | |
eec2776c | 7602 | need_locks="$enable_libtool_lock" |
c52df125 | 7603 | |
eec2776c AJ |
7604 | if test -n "$ac_tool_prefix"; then |
7605 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7606 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7608 | $as_echo_n "checking for $ac_word... " >&6; } | |
7609 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7610 | $as_echo_n "(cached) " >&6 | |
7611 | else | |
7612 | if test -n "$MANIFEST_TOOL"; then | |
7613 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7614 | else | |
7615 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7616 | for as_dir in $PATH | |
7617 | do | |
7618 | IFS=$as_save_IFS | |
7619 | test -z "$as_dir" && as_dir=. | |
7620 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7621 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7622 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7623 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7624 | break 2 | |
7625 | fi | |
7626 | done | |
7627 | done | |
7628 | IFS=$as_save_IFS | |
c52df125 | 7629 | |
eec2776c AJ |
7630 | fi |
7631 | fi | |
7632 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7633 | if test -n "$MANIFEST_TOOL"; then | |
7634 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7635 | $as_echo "$MANIFEST_TOOL" >&6; } | |
7636 | else | |
7637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7638 | $as_echo "no" >&6; } | |
7639 | fi | |
c52df125 AC |
7640 | |
7641 | ||
eec2776c AJ |
7642 | fi |
7643 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7644 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7645 | # Extract the first word of "mt", so it can be a program name with args. | |
7646 | set dummy mt; ac_word=$2 | |
7647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7648 | $as_echo_n "checking for $ac_word... " >&6; } | |
7649 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7650 | $as_echo_n "(cached) " >&6 | |
7651 | else | |
7652 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7653 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7654 | else | |
7655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7656 | for as_dir in $PATH | |
7657 | do | |
7658 | IFS=$as_save_IFS | |
7659 | test -z "$as_dir" && as_dir=. | |
7660 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7661 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7662 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7664 | break 2 | |
7665 | fi | |
7666 | done | |
7667 | done | |
7668 | IFS=$as_save_IFS | |
c52df125 | 7669 | |
eec2776c AJ |
7670 | fi |
7671 | fi | |
7672 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7673 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7675 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7676 | else | |
7677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7678 | $as_echo "no" >&6; } | |
7679 | fi | |
c52df125 | 7680 | |
eec2776c AJ |
7681 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
7682 | MANIFEST_TOOL=":" | |
7683 | else | |
7684 | case $cross_compiling:$ac_tool_warned in | |
7685 | yes:) | |
7686 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7687 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7688 | ac_tool_warned=yes ;; | |
7689 | esac | |
7690 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7691 | fi | |
7692 | else | |
7693 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7694 | fi | |
c52df125 | 7695 | |
eec2776c AJ |
7696 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
7697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7698 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7699 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
7700 | $as_echo_n "(cached) " >&6 | |
7701 | else | |
7702 | lt_cv_path_mainfest_tool=no | |
7703 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7704 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7705 | cat conftest.err >&5 | |
7706 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7707 | lt_cv_path_mainfest_tool=yes | |
7708 | fi | |
7709 | rm -f conftest* | |
7710 | fi | |
7711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7712 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7713 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
7714 | MANIFEST_TOOL=: | |
7715 | fi | |
c52df125 AC |
7716 | |
7717 | ||
7718 | ||
7719 | ||
7720 | ||
7721 | ||
eec2776c AJ |
7722 | case $host_os in |
7723 | rhapsody* | darwin*) | |
7724 | if test -n "$ac_tool_prefix"; then | |
7725 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7726 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7728 | $as_echo_n "checking for $ac_word... " >&6; } | |
7729 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7730 | $as_echo_n "(cached) " >&6 | |
7731 | else | |
7732 | if test -n "$DSYMUTIL"; then | |
7733 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7734 | else | |
7735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7736 | for as_dir in $PATH | |
7737 | do | |
7738 | IFS=$as_save_IFS | |
7739 | test -z "$as_dir" && as_dir=. | |
7740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7741 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7742 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7743 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7744 | break 2 | |
7745 | fi | |
7746 | done | |
7747 | done | |
7748 | IFS=$as_save_IFS | |
c52df125 | 7749 | |
eec2776c AJ |
7750 | fi |
7751 | fi | |
7752 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7753 | if test -n "$DSYMUTIL"; then | |
7754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7755 | $as_echo "$DSYMUTIL" >&6; } | |
7756 | else | |
7757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7758 | $as_echo "no" >&6; } | |
7759 | fi | |
c52df125 AC |
7760 | |
7761 | ||
c52df125 | 7762 | fi |
eec2776c AJ |
7763 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
7764 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7765 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7766 | set dummy dsymutil; ac_word=$2 | |
7767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7768 | $as_echo_n "checking for $ac_word... " >&6; } | |
7769 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
c52df125 AC |
7770 | $as_echo_n "(cached) " >&6 |
7771 | else | |
eec2776c AJ |
7772 | if test -n "$ac_ct_DSYMUTIL"; then |
7773 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
c52df125 | 7774 | else |
eec2776c AJ |
7775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7776 | for as_dir in $PATH | |
7777 | do | |
7778 | IFS=$as_save_IFS | |
7779 | test -z "$as_dir" && as_dir=. | |
7780 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7781 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7782 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7783 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7784 | break 2 | |
7785 | fi | |
7786 | done | |
7787 | done | |
7788 | IFS=$as_save_IFS | |
7789 | ||
c52df125 | 7790 | fi |
c52df125 | 7791 | fi |
eec2776c AJ |
7792 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7793 | if test -n "$ac_ct_DSYMUTIL"; then | |
7794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7795 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7796 | else | |
7797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7798 | $as_echo "no" >&6; } | |
7799 | fi | |
c52df125 | 7800 | |
eec2776c AJ |
7801 | if test "x$ac_ct_DSYMUTIL" = x; then |
7802 | DSYMUTIL=":" | |
7803 | else | |
7804 | case $cross_compiling:$ac_tool_warned in | |
7805 | yes:) | |
7806 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7807 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7808 | ac_tool_warned=yes ;; | |
c52df125 | 7809 | esac |
eec2776c AJ |
7810 | DSYMUTIL=$ac_ct_DSYMUTIL |
7811 | fi | |
7812 | else | |
7813 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7814 | fi | |
c52df125 | 7815 | |
eec2776c AJ |
7816 | if test -n "$ac_tool_prefix"; then |
7817 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7818 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7820 | $as_echo_n "checking for $ac_word... " >&6; } | |
7821 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
c52df125 AC |
7822 | $as_echo_n "(cached) " >&6 |
7823 | else | |
eec2776c AJ |
7824 | if test -n "$NMEDIT"; then |
7825 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7826 | else | |
7827 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7828 | for as_dir in $PATH | |
7829 | do | |
7830 | IFS=$as_save_IFS | |
7831 | test -z "$as_dir" && as_dir=. | |
7832 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7833 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7834 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7835 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7836 | break 2 | |
7837 | fi | |
7838 | done | |
c52df125 | 7839 | done |
eec2776c | 7840 | IFS=$as_save_IFS |
c52df125 | 7841 | |
eec2776c AJ |
7842 | fi |
7843 | fi | |
7844 | NMEDIT=$ac_cv_prog_NMEDIT | |
7845 | if test -n "$NMEDIT"; then | |
7846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7847 | $as_echo "$NMEDIT" >&6; } | |
c52df125 AC |
7848 | else |
7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7850 | $as_echo "no" >&6; } | |
7851 | fi | |
7852 | ||
7853 | ||
eec2776c AJ |
7854 | fi |
7855 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7856 | ac_ct_NMEDIT=$NMEDIT | |
7857 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7858 | set dummy nmedit; ac_word=$2 | |
7859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7860 | $as_echo_n "checking for $ac_word... " >&6; } | |
7861 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
c52df125 AC |
7862 | $as_echo_n "(cached) " >&6 |
7863 | else | |
eec2776c AJ |
7864 | if test -n "$ac_ct_NMEDIT"; then |
7865 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7866 | else | |
7867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7868 | for as_dir in $PATH | |
7869 | do | |
7870 | IFS=$as_save_IFS | |
7871 | test -z "$as_dir" && as_dir=. | |
7872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7873 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7874 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7876 | break 2 | |
7877 | fi | |
7878 | done | |
c52df125 | 7879 | done |
eec2776c | 7880 | IFS=$as_save_IFS |
c52df125 | 7881 | |
eec2776c AJ |
7882 | fi |
7883 | fi | |
7884 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7885 | if test -n "$ac_ct_NMEDIT"; then | |
7886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7887 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
c52df125 AC |
7888 | else |
7889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7890 | $as_echo "no" >&6; } | |
7891 | fi | |
7892 | ||
eec2776c AJ |
7893 | if test "x$ac_ct_NMEDIT" = x; then |
7894 | NMEDIT=":" | |
c52df125 | 7895 | else |
eec2776c AJ |
7896 | case $cross_compiling:$ac_tool_warned in |
7897 | yes:) | |
7898 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7899 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7900 | ac_tool_warned=yes ;; | |
7901 | esac | |
7902 | NMEDIT=$ac_ct_NMEDIT | |
c52df125 | 7903 | fi |
eec2776c AJ |
7904 | else |
7905 | NMEDIT="$ac_cv_prog_NMEDIT" | |
c52df125 AC |
7906 | fi |
7907 | ||
eec2776c AJ |
7908 | if test -n "$ac_tool_prefix"; then |
7909 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7910 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7912 | $as_echo_n "checking for $ac_word... " >&6; } | |
7913 | if ${ac_cv_prog_LIPO+:} false; then : | |
7914 | $as_echo_n "(cached) " >&6 | |
7915 | else | |
7916 | if test -n "$LIPO"; then | |
7917 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7918 | else | |
7919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7920 | for as_dir in $PATH | |
7921 | do | |
7922 | IFS=$as_save_IFS | |
7923 | test -z "$as_dir" && as_dir=. | |
7924 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7925 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7926 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7928 | break 2 | |
7929 | fi | |
7930 | done | |
7931 | done | |
7932 | IFS=$as_save_IFS | |
c52df125 | 7933 | |
eec2776c AJ |
7934 | fi |
7935 | fi | |
7936 | LIPO=$ac_cv_prog_LIPO | |
7937 | if test -n "$LIPO"; then | |
7938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7939 | $as_echo "$LIPO" >&6; } | |
7940 | else | |
7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7942 | $as_echo "no" >&6; } | |
7943 | fi | |
c52df125 | 7944 | |
c52df125 | 7945 | |
eec2776c AJ |
7946 | fi |
7947 | if test -z "$ac_cv_prog_LIPO"; then | |
7948 | ac_ct_LIPO=$LIPO | |
7949 | # Extract the first word of "lipo", so it can be a program name with args. | |
7950 | set dummy lipo; ac_word=$2 | |
7951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7952 | $as_echo_n "checking for $ac_word... " >&6; } | |
7953 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
c52df125 AC |
7954 | $as_echo_n "(cached) " >&6 |
7955 | else | |
eec2776c AJ |
7956 | if test -n "$ac_ct_LIPO"; then |
7957 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7958 | else | |
7959 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7960 | for as_dir in $PATH | |
7961 | do | |
7962 | IFS=$as_save_IFS | |
7963 | test -z "$as_dir" && as_dir=. | |
7964 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7965 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7966 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7967 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7968 | break 2 | |
7969 | fi | |
7970 | done | |
7971 | done | |
7972 | IFS=$as_save_IFS | |
c52df125 AC |
7973 | |
7974 | fi | |
eec2776c AJ |
7975 | fi |
7976 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7977 | if test -n "$ac_ct_LIPO"; then | |
7978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7979 | $as_echo "$ac_ct_LIPO" >&6; } | |
c52df125 | 7980 | else |
eec2776c AJ |
7981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7982 | $as_echo "no" >&6; } | |
c52df125 AC |
7983 | fi |
7984 | ||
eec2776c AJ |
7985 | if test "x$ac_ct_LIPO" = x; then |
7986 | LIPO=":" | |
7987 | else | |
7988 | case $cross_compiling:$ac_tool_warned in | |
7989 | yes:) | |
7990 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7991 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7992 | ac_tool_warned=yes ;; | |
7993 | esac | |
7994 | LIPO=$ac_ct_LIPO | |
7995 | fi | |
7996 | else | |
7997 | LIPO="$ac_cv_prog_LIPO" | |
c52df125 AC |
7998 | fi |
7999 | ||
eec2776c AJ |
8000 | if test -n "$ac_tool_prefix"; then |
8001 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
8002 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
8003 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8004 | $as_echo_n "checking for $ac_word... " >&6; } | |
8005 | if ${ac_cv_prog_OTOOL+:} false; then : | |
8006 | $as_echo_n "(cached) " >&6 | |
8007 | else | |
8008 | if test -n "$OTOOL"; then | |
8009 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
8010 | else | |
8011 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8012 | for as_dir in $PATH | |
8013 | do | |
8014 | IFS=$as_save_IFS | |
8015 | test -z "$as_dir" && as_dir=. | |
8016 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8017 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8018 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
8019 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8020 | break 2 | |
8021 | fi | |
8022 | done | |
8023 | done | |
8024 | IFS=$as_save_IFS | |
c52df125 | 8025 | |
eec2776c AJ |
8026 | fi |
8027 | fi | |
8028 | OTOOL=$ac_cv_prog_OTOOL | |
8029 | if test -n "$OTOOL"; then | |
8030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
8031 | $as_echo "$OTOOL" >&6; } | |
8032 | else | |
8033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8034 | $as_echo "no" >&6; } | |
8035 | fi | |
c52df125 AC |
8036 | |
8037 | ||
eec2776c AJ |
8038 | fi |
8039 | if test -z "$ac_cv_prog_OTOOL"; then | |
8040 | ac_ct_OTOOL=$OTOOL | |
8041 | # Extract the first word of "otool", so it can be a program name with args. | |
8042 | set dummy otool; ac_word=$2 | |
8043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8044 | $as_echo_n "checking for $ac_word... " >&6; } | |
8045 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
8046 | $as_echo_n "(cached) " >&6 | |
8047 | else | |
8048 | if test -n "$ac_ct_OTOOL"; then | |
8049 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
8050 | else | |
8051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8052 | for as_dir in $PATH | |
8053 | do | |
8054 | IFS=$as_save_IFS | |
8055 | test -z "$as_dir" && as_dir=. | |
8056 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8057 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8058 | ac_cv_prog_ac_ct_OTOOL="otool" | |
8059 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8060 | break 2 | |
8061 | fi | |
8062 | done | |
8063 | done | |
8064 | IFS=$as_save_IFS | |
c52df125 | 8065 | |
eec2776c AJ |
8066 | fi |
8067 | fi | |
8068 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
8069 | if test -n "$ac_ct_OTOOL"; then | |
8070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
8071 | $as_echo "$ac_ct_OTOOL" >&6; } | |
8072 | else | |
8073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8074 | $as_echo "no" >&6; } | |
8075 | fi | |
c52df125 | 8076 | |
eec2776c AJ |
8077 | if test "x$ac_ct_OTOOL" = x; then |
8078 | OTOOL=":" | |
8079 | else | |
8080 | case $cross_compiling:$ac_tool_warned in | |
8081 | yes:) | |
8082 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8083 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8084 | ac_tool_warned=yes ;; | |
8085 | esac | |
8086 | OTOOL=$ac_ct_OTOOL | |
8087 | fi | |
8088 | else | |
8089 | OTOOL="$ac_cv_prog_OTOOL" | |
8090 | fi | |
c52df125 | 8091 | |
eec2776c AJ |
8092 | if test -n "$ac_tool_prefix"; then |
8093 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
8094 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
8095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8096 | $as_echo_n "checking for $ac_word... " >&6; } | |
8097 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
8098 | $as_echo_n "(cached) " >&6 | |
8099 | else | |
8100 | if test -n "$OTOOL64"; then | |
8101 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
8102 | else | |
8103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8104 | for as_dir in $PATH | |
8105 | do | |
8106 | IFS=$as_save_IFS | |
8107 | test -z "$as_dir" && as_dir=. | |
8108 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8109 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8110 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
8111 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8112 | break 2 | |
8113 | fi | |
8114 | done | |
8115 | done | |
8116 | IFS=$as_save_IFS | |
c52df125 | 8117 | |
eec2776c AJ |
8118 | fi |
8119 | fi | |
8120 | OTOOL64=$ac_cv_prog_OTOOL64 | |
8121 | if test -n "$OTOOL64"; then | |
8122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
8123 | $as_echo "$OTOOL64" >&6; } | |
8124 | else | |
8125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8126 | $as_echo "no" >&6; } | |
8127 | fi | |
c52df125 | 8128 | |
c52df125 | 8129 | |
eec2776c AJ |
8130 | fi |
8131 | if test -z "$ac_cv_prog_OTOOL64"; then | |
8132 | ac_ct_OTOOL64=$OTOOL64 | |
8133 | # Extract the first word of "otool64", so it can be a program name with args. | |
8134 | set dummy otool64; ac_word=$2 | |
8135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8136 | $as_echo_n "checking for $ac_word... " >&6; } | |
8137 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
8138 | $as_echo_n "(cached) " >&6 | |
8139 | else | |
8140 | if test -n "$ac_ct_OTOOL64"; then | |
8141 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
8142 | else | |
8143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8144 | for as_dir in $PATH | |
8145 | do | |
8146 | IFS=$as_save_IFS | |
8147 | test -z "$as_dir" && as_dir=. | |
8148 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8149 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8150 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
8151 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8152 | break 2 | |
8153 | fi | |
8154 | done | |
8155 | done | |
8156 | IFS=$as_save_IFS | |
c52df125 | 8157 | |
eec2776c AJ |
8158 | fi |
8159 | fi | |
8160 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
8161 | if test -n "$ac_ct_OTOOL64"; then | |
8162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
8163 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
8164 | else | |
8165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8166 | $as_echo "no" >&6; } | |
8167 | fi | |
c52df125 | 8168 | |
eec2776c AJ |
8169 | if test "x$ac_ct_OTOOL64" = x; then |
8170 | OTOOL64=":" | |
8171 | else | |
8172 | case $cross_compiling:$ac_tool_warned in | |
8173 | yes:) | |
8174 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8175 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8176 | ac_tool_warned=yes ;; | |
8177 | esac | |
8178 | OTOOL64=$ac_ct_OTOOL64 | |
8179 | fi | |
8180 | else | |
8181 | OTOOL64="$ac_cv_prog_OTOOL64" | |
8182 | fi | |
c52df125 | 8183 | |
c52df125 | 8184 | |
c52df125 | 8185 | |
c52df125 | 8186 | |
c52df125 | 8187 | |
c52df125 | 8188 | |
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 | |
eec2776c AJ |
8210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8211 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
8212 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
c52df125 AC |
8213 | $as_echo_n "(cached) " >&6 |
8214 | else | |
eec2776c AJ |
8215 | lt_cv_apple_cc_single_mod=no |
8216 | if test -z "${LT_MULTI_MODULE}"; then | |
8217 | # By default we will add the -single_module flag. You can override | |
8218 | # by either setting the environment variable LT_MULTI_MODULE | |
8219 | # non-empty at configure time, or by adding -multi_module to the | |
8220 | # link flags. | |
8221 | rm -rf libconftest.dylib* | |
8222 | echo "int foo(void){return 1;}" > conftest.c | |
8223 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8224 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
8225 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8226 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
8227 | _lt_result=$? | |
8228 | # If there is a non-empty error log, and "single_module" | |
8229 | # appears in it, assume the flag caused a linker warning | |
8230 | if test -s conftest.err && $GREP single_module conftest.err; then | |
8231 | cat conftest.err >&5 | |
8232 | # Otherwise, if the output was created with a 0 exit code from | |
8233 | # the compiler, it worked. | |
8234 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
8235 | lt_cv_apple_cc_single_mod=yes | |
8236 | else | |
8237 | cat conftest.err >&5 | |
8238 | fi | |
8239 | rm -rf libconftest.dylib* | |
8240 | rm -f conftest.* | |
8241 | fi | |
c52df125 | 8242 | fi |
eec2776c AJ |
8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8244 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
c52df125 | 8245 | |
eec2776c AJ |
8246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
8247 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
8248 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
c52df125 AC |
8249 | $as_echo_n "(cached) " >&6 |
8250 | else | |
eec2776c AJ |
8251 | lt_cv_ld_exported_symbols_list=no |
8252 | save_LDFLAGS=$LDFLAGS | |
8253 | echo "_main" > conftest.sym | |
8254 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
8255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8256 | /* end confdefs.h. */ | |
c52df125 | 8257 | |
eec2776c AJ |
8258 | int |
8259 | main () | |
8260 | { | |
c52df125 | 8261 | |
eec2776c AJ |
8262 | ; |
8263 | return 0; | |
8264 | } | |
8265 | _ACEOF | |
8266 | if ac_fn_c_try_link "$LINENO"; then : | |
8267 | lt_cv_ld_exported_symbols_list=yes | |
c52df125 | 8268 | else |
eec2776c | 8269 | lt_cv_ld_exported_symbols_list=no |
c52df125 | 8270 | fi |
eec2776c AJ |
8271 | rm -f core conftest.err conftest.$ac_objext \ |
8272 | conftest$ac_exeext conftest.$ac_ext | |
8273 | LDFLAGS="$save_LDFLAGS" | |
c52df125 AC |
8274 | |
8275 | fi | |
eec2776c AJ |
8276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8277 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
c52df125 | 8278 | |
eec2776c AJ |
8279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
8280 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
8281 | if ${lt_cv_ld_force_load+:} false; then : | |
c52df125 AC |
8282 | $as_echo_n "(cached) " >&6 |
8283 | else | |
eec2776c AJ |
8284 | lt_cv_ld_force_load=no |
8285 | cat > conftest.c << _LT_EOF | |
8286 | int forced_loaded() { return 2;} | |
8287 | _LT_EOF | |
8288 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
8289 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
8290 | echo "$AR cru libconftest.a conftest.o" >&5 | |
8291 | $AR cru libconftest.a conftest.o 2>&5 | |
8292 | echo "$RANLIB libconftest.a" >&5 | |
8293 | $RANLIB libconftest.a 2>&5 | |
8294 | cat > conftest.c << _LT_EOF | |
8295 | int main() { return 0;} | |
8296 | _LT_EOF | |
8297 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
8298 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
8299 | _lt_result=$? | |
8300 | if test -s conftest.err && $GREP force_load conftest.err; then | |
8301 | cat conftest.err >&5 | |
8302 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
8303 | lt_cv_ld_force_load=yes | |
8304 | else | |
8305 | cat conftest.err >&5 | |
8306 | fi | |
8307 | rm -f conftest.err libconftest.a conftest conftest.c | |
8308 | rm -rf conftest.dSYM | |
c52df125 AC |
8309 | |
8310 | fi | |
eec2776c AJ |
8311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
8312 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
8313 | case $host_os in | |
8314 | rhapsody* | darwin1.[012]) | |
8315 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
8316 | darwin1.*) | |
8317 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8318 | darwin*) # darwin 5.x on | |
8319 | # if running on 10.5 or later, the deployment target defaults | |
8320 | # to the OS version, if on x86, and 10.4, the deployment | |
8321 | # target defaults to 10.4. Don't you love it? | |
8322 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
8323 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
8324 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8325 | 10.[012]*) | |
8326 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
8327 | 10.*) | |
8328 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
8329 | esac | |
8330 | ;; | |
8331 | esac | |
8332 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
8333 | _lt_dar_single_mod='$single_module' | |
8334 | fi | |
8335 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
8336 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
8337 | else | |
8338 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8339 | fi | |
8340 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
8341 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
8342 | else | |
8343 | _lt_dsymutil= | |
8344 | fi | |
8345 | ;; | |
8346 | esac | |
c52df125 | 8347 | |
eec2776c AJ |
8348 | for ac_header in dlfcn.h |
8349 | do : | |
8350 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8351 | " | |
8352 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8353 | cat >>confdefs.h <<_ACEOF | |
8354 | #define HAVE_DLFCN_H 1 | |
8355 | _ACEOF | |
c52df125 | 8356 | |
eec2776c | 8357 | fi |
c52df125 | 8358 | |
eec2776c | 8359 | done |
c52df125 AC |
8360 | |
8361 | ||
8362 | ||
8363 | ||
8364 | ||
eec2776c AJ |
8365 | # Set options |
8366 | enable_dlopen=yes | |
8367 | # Check whether --enable-static was given. | |
8368 | if test "${enable_static+set}" = set; then : | |
8369 | enableval=$enable_static; p=${PACKAGE-default} | |
8370 | case $enableval in | |
8371 | yes) enable_static=yes ;; | |
8372 | no) enable_static=no ;; | |
8373 | *) | |
8374 | enable_static=no | |
8375 | # Look at the argument we got. We use all the common list separators. | |
8376 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8377 | for pkg in $enableval; do | |
8378 | IFS="$lt_save_ifs" | |
8379 | if test "X$pkg" = "X$p"; then | |
8380 | enable_static=yes | |
8381 | fi | |
8382 | done | |
8383 | IFS="$lt_save_ifs" | |
8384 | ;; | |
8385 | esac | |
c52df125 | 8386 | else |
eec2776c | 8387 | enable_static=no |
c52df125 | 8388 | fi |
c52df125 AC |
8389 | |
8390 | ||
8391 | ||
8392 | ||
8393 | ||
8394 | ||
c52df125 | 8395 | |
c52df125 | 8396 | |
c52df125 AC |
8397 | |
8398 | ||
8399 | ||
eec2776c | 8400 | enable_win32_dll=no |
c52df125 | 8401 | |
eec2776c AJ |
8402 | |
8403 | # Check whether --enable-shared was given. | |
8404 | if test "${enable_shared+set}" = set; then : | |
8405 | enableval=$enable_shared; p=${PACKAGE-default} | |
8406 | case $enableval in | |
8407 | yes) enable_shared=yes ;; | |
8408 | no) enable_shared=no ;; | |
8409 | *) | |
8410 | enable_shared=no | |
8411 | # Look at the argument we got. We use all the common list separators. | |
8412 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8413 | for pkg in $enableval; do | |
8414 | IFS="$lt_save_ifs" | |
8415 | if test "X$pkg" = "X$p"; then | |
8416 | enable_shared=yes | |
8417 | fi | |
8418 | done | |
8419 | IFS="$lt_save_ifs" | |
8420 | ;; | |
8421 | esac | |
c52df125 | 8422 | else |
eec2776c | 8423 | enable_shared=yes |
c52df125 AC |
8424 | fi |
8425 | ||
8426 | ||
8427 | ||
8428 | ||
8429 | ||
8430 | ||
c52df125 | 8431 | |
c52df125 | 8432 | |
c52df125 | 8433 | |
c52df125 | 8434 | |
eec2776c AJ |
8435 | |
8436 | # Check whether --with-pic was given. | |
8437 | if test "${with_pic+set}" = set; then : | |
8438 | withval=$with_pic; lt_p=${PACKAGE-default} | |
8439 | case $withval in | |
8440 | yes|no) pic_mode=$withval ;; | |
8441 | *) | |
8442 | pic_mode=default | |
8443 | # Look at the argument we got. We use all the common list separators. | |
8444 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8445 | for lt_pkg in $withval; do | |
8446 | IFS="$lt_save_ifs" | |
8447 | if test "X$lt_pkg" = "X$lt_p"; then | |
8448 | pic_mode=yes | |
8449 | fi | |
8450 | done | |
8451 | IFS="$lt_save_ifs" | |
8452 | ;; | |
c52df125 | 8453 | esac |
eec2776c AJ |
8454 | else |
8455 | pic_mode=default | |
8456 | fi | |
c52df125 | 8457 | |
c52df125 | 8458 | |
eec2776c | 8459 | test -z "$pic_mode" && pic_mode=default |
c52df125 | 8460 | |
c52df125 | 8461 | |
c52df125 | 8462 | |
c52df125 | 8463 | |
c52df125 | 8464 | |
c52df125 | 8465 | |
c52df125 | 8466 | |
eec2776c AJ |
8467 | # Check whether --enable-fast-install was given. |
8468 | if test "${enable_fast_install+set}" = set; then : | |
8469 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
8470 | case $enableval in | |
8471 | yes) enable_fast_install=yes ;; | |
8472 | no) enable_fast_install=no ;; | |
8473 | *) | |
8474 | enable_fast_install=no | |
8475 | # Look at the argument we got. We use all the common list separators. | |
8476 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8477 | for pkg in $enableval; do | |
8478 | IFS="$lt_save_ifs" | |
8479 | if test "X$pkg" = "X$p"; then | |
8480 | enable_fast_install=yes | |
8481 | fi | |
8482 | done | |
8483 | IFS="$lt_save_ifs" | |
c52df125 | 8484 | ;; |
eec2776c AJ |
8485 | esac |
8486 | else | |
8487 | enable_fast_install=yes | |
8488 | fi | |
c52df125 | 8489 | |
c52df125 | 8490 | |
c52df125 | 8491 | |
c52df125 | 8492 | |
c52df125 | 8493 | |
c52df125 | 8494 | |
c52df125 | 8495 | |
c52df125 | 8496 | |
c52df125 | 8497 | |
c52df125 | 8498 | |
c52df125 | 8499 | |
eec2776c AJ |
8500 | # This can be used to rebuild libtool when needed |
8501 | LIBTOOL_DEPS="$ltmain" | |
c52df125 | 8502 | |
eec2776c AJ |
8503 | # Always use our own libtool. |
8504 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
c52df125 | 8505 | |
c52df125 | 8506 | |
c52df125 | 8507 | |
c52df125 | 8508 | |
c52df125 | 8509 | |
c52df125 | 8510 | |
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 AC |
8531 | |
8532 | ||
c52df125 | 8533 | |
c52df125 | 8534 | |
eec2776c | 8535 | test -z "$LN_S" && LN_S="ln -s" |
c52df125 | 8536 | |
c52df125 | 8537 | |
c52df125 | 8538 | |
c52df125 | 8539 | |
c52df125 | 8540 | |
c52df125 | 8541 | |
c52df125 | 8542 | |
c52df125 | 8543 | |
c52df125 | 8544 | |
c52df125 | 8545 | |
c52df125 | 8546 | |
c52df125 | 8547 | |
c52df125 | 8548 | |
c52df125 | 8549 | |
eec2776c AJ |
8550 | if test -n "${ZSH_VERSION+set}" ; then |
8551 | setopt NO_GLOB_SUBST | |
8552 | fi | |
c52df125 | 8553 | |
eec2776c AJ |
8554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8555 | $as_echo_n "checking for objdir... " >&6; } | |
8556 | if ${lt_cv_objdir+:} false; then : | |
c52df125 AC |
8557 | $as_echo_n "(cached) " >&6 |
8558 | else | |
eec2776c AJ |
8559 | rm -f .libs 2>/dev/null |
8560 | mkdir .libs 2>/dev/null | |
8561 | if test -d .libs; then | |
8562 | lt_cv_objdir=.libs | |
c52df125 | 8563 | else |
eec2776c AJ |
8564 | # MS-DOS does not allow filenames that begin with a dot. |
8565 | lt_cv_objdir=_libs | |
c52df125 | 8566 | fi |
eec2776c | 8567 | rmdir .libs 2>/dev/null |
c52df125 | 8568 | fi |
eec2776c AJ |
8569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8570 | $as_echo "$lt_cv_objdir" >&6; } | |
8571 | objdir=$lt_cv_objdir | |
c52df125 | 8572 | |
c52df125 | 8573 | |
c52df125 | 8574 | |
c52df125 | 8575 | |
c52df125 | 8576 | |
eec2776c AJ |
8577 | cat >>confdefs.h <<_ACEOF |
8578 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8579 | _ACEOF | |
c52df125 | 8580 | |
c52df125 | 8581 | |
c52df125 | 8582 | |
c52df125 | 8583 | |
eec2776c AJ |
8584 | case $host_os in |
8585 | aix3*) | |
8586 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8587 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8588 | # vanish in a puff of smoke. | |
8589 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8590 | COLLECT_NAMES= | |
8591 | export COLLECT_NAMES | |
8592 | fi | |
8593 | ;; | |
8594 | esac | |
c52df125 | 8595 | |
eec2776c AJ |
8596 | # Global variables: |
8597 | ofile=libtool | |
8598 | can_build_shared=yes | |
c52df125 | 8599 | |
eec2776c AJ |
8600 | # All known linkers require a `.a' archive for static linking (except MSVC, |
8601 | # which needs '.lib'). | |
8602 | libext=a | |
c52df125 | 8603 | |
eec2776c | 8604 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
c52df125 | 8605 | |
eec2776c AJ |
8606 | old_CC="$CC" |
8607 | old_CFLAGS="$CFLAGS" | |
c52df125 | 8608 | |
eec2776c AJ |
8609 | # Set sane defaults for various variables |
8610 | test -z "$CC" && CC=cc | |
8611 | test -z "$LTCC" && LTCC=$CC | |
8612 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8613 | test -z "$LD" && LD=ld | |
8614 | test -z "$ac_objext" && ac_objext=o | |
c52df125 | 8615 | |
eec2776c AJ |
8616 | for cc_temp in $compiler""; do |
8617 | case $cc_temp in | |
8618 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8619 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8620 | \-*) ;; | |
8621 | *) break;; | |
8622 | esac | |
8623 | done | |
8624 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
c52df125 | 8625 | |
c52df125 | 8626 | |
eec2776c AJ |
8627 | # Only perform the check for file, if the check method requires it |
8628 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8629 | case $deplibs_check_method in | |
8630 | file_magic*) | |
8631 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8633 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8634 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8635 | $as_echo_n "(cached) " >&6 | |
8636 | else | |
8637 | case $MAGIC_CMD in | |
8638 | [\\/*] | ?:[\\/]*) | |
8639 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8640 | ;; | |
8641 | *) | |
8642 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8643 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8644 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8645 | for ac_dir in $ac_dummy; do | |
8646 | IFS="$lt_save_ifs" | |
8647 | test -z "$ac_dir" && ac_dir=. | |
8648 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8649 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8650 | if test -n "$file_magic_test_file"; then | |
8651 | case $deplibs_check_method in | |
8652 | "file_magic "*) | |
8653 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8654 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8655 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8656 | $EGREP "$file_magic_regex" > /dev/null; then | |
8657 | : | |
8658 | else | |
8659 | cat <<_LT_EOF 1>&2 | |
c52df125 | 8660 | |
eec2776c AJ |
8661 | *** Warning: the command libtool uses to detect shared libraries, |
8662 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8663 | *** The result is that libtool may fail to recognize shared libraries | |
8664 | *** as such. This will affect the creation of libtool libraries that | |
8665 | *** depend on shared libraries, but programs linked with such libtool | |
8666 | *** libraries will work regardless of this problem. Nevertheless, you | |
8667 | *** may want to report the problem to your system manager and/or to | |
8668 | *** bug-libtool@gnu.org | |
c52df125 | 8669 | |
eec2776c AJ |
8670 | _LT_EOF |
8671 | fi ;; | |
8672 | esac | |
8673 | fi | |
8674 | break | |
c52df125 | 8675 | fi |
eec2776c AJ |
8676 | done |
8677 | IFS="$lt_save_ifs" | |
8678 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8679 | ;; | |
8680 | esac | |
8681 | fi | |
c52df125 | 8682 | |
eec2776c AJ |
8683 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8684 | if test -n "$MAGIC_CMD"; then | |
8685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8686 | $as_echo "$MAGIC_CMD" >&6; } | |
8687 | else | |
8688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8689 | $as_echo "no" >&6; } | |
8690 | fi | |
c52df125 AC |
8691 | |
8692 | ||
8693 | ||
8694 | ||
8695 | ||
eec2776c AJ |
8696 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8697 | if test -n "$ac_tool_prefix"; then | |
8698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8699 | $as_echo_n "checking for file... " >&6; } | |
8700 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8701 | $as_echo_n "(cached) " >&6 | |
8702 | else | |
8703 | case $MAGIC_CMD in | |
8704 | [\\/*] | ?:[\\/]*) | |
8705 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8706 | ;; | |
8707 | *) | |
8708 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8709 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8710 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8711 | for ac_dir in $ac_dummy; do | |
8712 | IFS="$lt_save_ifs" | |
8713 | test -z "$ac_dir" && ac_dir=. | |
8714 | if test -f $ac_dir/file; then | |
8715 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8716 | if test -n "$file_magic_test_file"; then | |
8717 | case $deplibs_check_method in | |
8718 | "file_magic "*) | |
8719 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8720 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8721 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8722 | $EGREP "$file_magic_regex" > /dev/null; then | |
8723 | : | |
8724 | else | |
8725 | cat <<_LT_EOF 1>&2 | |
c52df125 | 8726 | |
eec2776c AJ |
8727 | *** Warning: the command libtool uses to detect shared libraries, |
8728 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8729 | *** The result is that libtool may fail to recognize shared libraries | |
8730 | *** as such. This will affect the creation of libtool libraries that | |
8731 | *** depend on shared libraries, but programs linked with such libtool | |
8732 | *** libraries will work regardless of this problem. Nevertheless, you | |
8733 | *** may want to report the problem to your system manager and/or to | |
8734 | *** bug-libtool@gnu.org | |
c52df125 | 8735 | |
eec2776c AJ |
8736 | _LT_EOF |
8737 | fi ;; | |
8738 | esac | |
8739 | fi | |
8740 | break | |
8741 | fi | |
8742 | done | |
8743 | IFS="$lt_save_ifs" | |
8744 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8745 | ;; | |
8746 | esac | |
8747 | fi | |
c52df125 | 8748 | |
eec2776c AJ |
8749 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
8750 | if test -n "$MAGIC_CMD"; then | |
8751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8752 | $as_echo "$MAGIC_CMD" >&6; } | |
8753 | else | |
8754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8755 | $as_echo "no" >&6; } | |
8756 | fi | |
c52df125 AC |
8757 | |
8758 | ||
eec2776c AJ |
8759 | else |
8760 | MAGIC_CMD=: | |
8761 | fi | |
8762 | fi | |
c52df125 | 8763 | |
c52df125 AC |
8764 | fi |
8765 | ;; | |
8766 | esac | |
8767 | ||
eec2776c | 8768 | # Use C for the default configuration in the libtool script |
c52df125 | 8769 | |
eec2776c AJ |
8770 | lt_save_CC="$CC" |
8771 | ac_ext=c | |
8772 | ac_cpp='$CPP $CPPFLAGS' | |
8773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
8776 | |
8777 | ||
eec2776c AJ |
8778 | # Source file extension for C test sources. |
8779 | ac_ext=c | |
c52df125 | 8780 | |
eec2776c AJ |
8781 | # Object file extension for compiled C test sources. |
8782 | objext=o | |
8783 | objext=$objext | |
c52df125 | 8784 | |
eec2776c AJ |
8785 | # Code to be used in simple compile tests |
8786 | lt_simple_compile_test_code="int some_variable = 0;" | |
c52df125 | 8787 | |
eec2776c AJ |
8788 | # Code to be used in simple link tests |
8789 | lt_simple_link_test_code='int main(){return(0);}' | |
c52df125 AC |
8790 | |
8791 | ||
8792 | ||
8793 | ||
8794 | ||
8795 | ||
8796 | ||
eec2776c AJ |
8797 | # If no C compiler was specified, use CC. |
8798 | LTCC=${LTCC-"$CC"} | |
c52df125 | 8799 | |
eec2776c AJ |
8800 | # If no C compiler flags were specified, use CFLAGS. |
8801 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
c52df125 | 8802 | |
eec2776c AJ |
8803 | # Allow CC to be a program name with arguments. |
8804 | compiler=$CC | |
c52df125 | 8805 | |
eec2776c AJ |
8806 | # Save the default compiler, since it gets overwritten when the other |
8807 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8808 | compiler_DEFAULT=$CC | |
c52df125 | 8809 | |
eec2776c AJ |
8810 | # save warnings/boilerplate of simple test code |
8811 | ac_outfile=conftest.$ac_objext | |
8812 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8813 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8814 | _lt_compiler_boilerplate=`cat conftest.err` | |
8815 | $RM conftest* | |
c52df125 | 8816 | |
eec2776c AJ |
8817 | ac_outfile=conftest.$ac_objext |
8818 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8819 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8820 | _lt_linker_boilerplate=`cat conftest.err` | |
8821 | $RM -r conftest* | |
c52df125 AC |
8822 | |
8823 | ||
eec2776c AJ |
8824 | ## CAVEAT EMPTOR: |
8825 | ## There is no encapsulation within the following macros, do not change | |
8826 | ## the running order or otherwise move them around unless you know exactly | |
8827 | ## what you are doing... | |
8828 | if test -n "$compiler"; then | |
c52df125 | 8829 | |
eec2776c | 8830 | lt_prog_compiler_no_builtin_flag= |
c52df125 | 8831 | |
eec2776c AJ |
8832 | if test "$GCC" = yes; then |
8833 | case $cc_basename in | |
8834 | nvcc*) | |
8835 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8836 | *) | |
8837 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8838 | esac | |
c52df125 | 8839 | |
eec2776c AJ |
8840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8841 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8842 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
8843 | $as_echo_n "(cached) " >&6 | |
8844 | else | |
8845 | lt_cv_prog_compiler_rtti_exceptions=no | |
8846 | ac_outfile=conftest.$ac_objext | |
8847 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8848 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8849 | # Insert the option either (1) after the last *FLAGS variable, or | |
8850 | # (2) before a word containing "conftest.", or (3) at the end. | |
8851 | # Note that $ac_compile itself does not contain backslashes and begins | |
8852 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8853 | # The option is referenced via a variable to avoid confusing sed. | |
8854 | lt_compile=`echo "$ac_compile" | $SED \ | |
8855 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8856 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8857 | -e 's:$: $lt_compiler_flag:'` | |
8858 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8859 | (eval "$lt_compile" 2>conftest.err) | |
8860 | ac_status=$? | |
8861 | cat conftest.err >&5 | |
8862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8863 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8864 | # The compiler can only warn and ignore the option if not recognized | |
8865 | # So say no if there are warnings other than the usual output. | |
8866 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8867 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8868 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8869 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8870 | fi | |
8871 | fi | |
8872 | $RM conftest* | |
c52df125 | 8873 | |
eec2776c AJ |
8874 | fi |
8875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8876 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
c52df125 | 8877 | |
eec2776c AJ |
8878 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8879 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8880 | else | |
8881 | : | |
8882 | fi | |
c52df125 | 8883 | |
eec2776c | 8884 | fi |
c52df125 AC |
8885 | |
8886 | ||
8887 | ||
8888 | ||
8889 | ||
8890 | ||
eec2776c AJ |
8891 | lt_prog_compiler_wl= |
8892 | lt_prog_compiler_pic= | |
8893 | lt_prog_compiler_static= | |
c52df125 AC |
8894 | |
8895 | ||
eec2776c AJ |
8896 | if test "$GCC" = yes; then |
8897 | lt_prog_compiler_wl='-Wl,' | |
8898 | lt_prog_compiler_static='-static' | |
c52df125 | 8899 | |
eec2776c AJ |
8900 | case $host_os in |
8901 | aix*) | |
8902 | # All AIX code is PIC. | |
8903 | if test "$host_cpu" = ia64; then | |
8904 | # AIX 5 now supports IA64 processor | |
8905 | lt_prog_compiler_static='-Bstatic' | |
8906 | fi | |
8907 | ;; | |
c52df125 | 8908 | |
eec2776c AJ |
8909 | amigaos*) |
8910 | case $host_cpu in | |
8911 | powerpc) | |
8912 | # see comment about AmigaOS4 .so support | |
8913 | lt_prog_compiler_pic='-fPIC' | |
8914 | ;; | |
8915 | m68k) | |
8916 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8917 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8918 | # like `-m68040'. | |
8919 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8920 | ;; | |
8921 | esac | |
8922 | ;; | |
c52df125 | 8923 | |
eec2776c AJ |
8924 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8925 | # PIC is the default for these OSes. | |
8926 | ;; | |
c52df125 | 8927 | |
eec2776c AJ |
8928 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8929 | # This hack is so that the source file can tell whether it is being | |
8930 | # built for inclusion in a dll (and should export symbols for example). | |
8931 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8932 | # (--disable-auto-import) libraries | |
8933 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8934 | ;; | |
c52df125 | 8935 | |
eec2776c AJ |
8936 | darwin* | rhapsody*) |
8937 | # PIC is the default on this platform | |
8938 | # Common symbols not allowed in MH_DYLIB files | |
8939 | lt_prog_compiler_pic='-fno-common' | |
8940 | ;; | |
c52df125 | 8941 | |
eec2776c AJ |
8942 | haiku*) |
8943 | # PIC is the default for Haiku. | |
8944 | # The "-static" flag exists, but is broken. | |
8945 | lt_prog_compiler_static= | |
8946 | ;; | |
c52df125 | 8947 | |
eec2776c AJ |
8948 | hpux*) |
8949 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8950 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8951 | # sets the default TLS model and affects inlining. | |
8952 | case $host_cpu in | |
8953 | hppa*64*) | |
8954 | # +Z the default | |
8955 | ;; | |
8956 | *) | |
8957 | lt_prog_compiler_pic='-fPIC' | |
8958 | ;; | |
8959 | esac | |
8960 | ;; | |
c52df125 | 8961 | |
eec2776c AJ |
8962 | interix[3-9]*) |
8963 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8964 | # Instead, we relocate shared libraries at runtime. | |
8965 | ;; | |
c52df125 | 8966 | |
eec2776c AJ |
8967 | msdosdjgpp*) |
8968 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8969 | # on systems that don't support them. | |
8970 | lt_prog_compiler_can_build_shared=no | |
8971 | enable_shared=no | |
8972 | ;; | |
c52df125 | 8973 | |
eec2776c AJ |
8974 | *nto* | *qnx*) |
8975 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8976 | # it will coredump. | |
8977 | lt_prog_compiler_pic='-fPIC -shared' | |
8978 | ;; | |
c52df125 | 8979 | |
eec2776c AJ |
8980 | sysv4*MP*) |
8981 | if test -d /usr/nec; then | |
8982 | lt_prog_compiler_pic=-Kconform_pic | |
8983 | fi | |
8984 | ;; | |
c52df125 | 8985 | |
eec2776c AJ |
8986 | *) |
8987 | lt_prog_compiler_pic='-fPIC' | |
8988 | ;; | |
8989 | esac | |
c52df125 | 8990 | |
eec2776c AJ |
8991 | case $cc_basename in |
8992 | nvcc*) # Cuda Compiler Driver 2.2 | |
8993 | lt_prog_compiler_wl='-Xlinker ' | |
8994 | if test -n "$lt_prog_compiler_pic"; then | |
8995 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8996 | fi | |
8997 | ;; | |
8998 | esac | |
8999 | else | |
9000 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9001 | case $host_os in | |
9002 | aix*) | |
9003 | lt_prog_compiler_wl='-Wl,' | |
9004 | if test "$host_cpu" = ia64; then | |
9005 | # AIX 5 now supports IA64 processor | |
9006 | lt_prog_compiler_static='-Bstatic' | |
9007 | else | |
9008 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9009 | fi | |
9010 | ;; | |
c52df125 | 9011 | |
eec2776c AJ |
9012 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
9013 | # This hack is so that the source file can tell whether it is being | |
9014 | # built for inclusion in a dll (and should export symbols for example). | |
9015 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9016 | ;; | |
c52df125 | 9017 | |
eec2776c AJ |
9018 | hpux9* | hpux10* | hpux11*) |
9019 | lt_prog_compiler_wl='-Wl,' | |
9020 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9021 | # not for PA HP-UX. | |
9022 | case $host_cpu in | |
9023 | hppa*64*|ia64*) | |
9024 | # +Z the default | |
9025 | ;; | |
9026 | *) | |
9027 | lt_prog_compiler_pic='+Z' | |
9028 | ;; | |
9029 | esac | |
9030 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9031 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9032 | ;; | |
c52df125 | 9033 | |
eec2776c AJ |
9034 | irix5* | irix6* | nonstopux*) |
9035 | lt_prog_compiler_wl='-Wl,' | |
9036 | # PIC (with -KPIC) is the default. | |
9037 | lt_prog_compiler_static='-non_shared' | |
9038 | ;; | |
c52df125 | 9039 | |
eec2776c AJ |
9040 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
9041 | case $cc_basename in | |
9042 | # old Intel for x86_64 which still supported -KPIC. | |
9043 | ecc*) | |
9044 | lt_prog_compiler_wl='-Wl,' | |
9045 | lt_prog_compiler_pic='-KPIC' | |
9046 | lt_prog_compiler_static='-static' | |
9047 | ;; | |
9048 | # icc used to be incompatible with GCC. | |
9049 | # ICC 10 doesn't accept -KPIC any more. | |
9050 | icc* | ifort*) | |
9051 | lt_prog_compiler_wl='-Wl,' | |
9052 | lt_prog_compiler_pic='-fPIC' | |
9053 | lt_prog_compiler_static='-static' | |
9054 | ;; | |
9055 | # Lahey Fortran 8.1. | |
9056 | lf95*) | |
9057 | lt_prog_compiler_wl='-Wl,' | |
9058 | lt_prog_compiler_pic='--shared' | |
9059 | lt_prog_compiler_static='--static' | |
9060 | ;; | |
9061 | nagfor*) | |
9062 | # NAG Fortran compiler | |
9063 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
9064 | lt_prog_compiler_pic='-PIC' | |
9065 | lt_prog_compiler_static='-Bstatic' | |
9066 | ;; | |
9067 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9068 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9069 | # which looks to be a dead project) | |
9070 | lt_prog_compiler_wl='-Wl,' | |
9071 | lt_prog_compiler_pic='-fpic' | |
9072 | lt_prog_compiler_static='-Bstatic' | |
9073 | ;; | |
9074 | ccc*) | |
9075 | lt_prog_compiler_wl='-Wl,' | |
9076 | # All Alpha code is PIC. | |
9077 | lt_prog_compiler_static='-non_shared' | |
9078 | ;; | |
9079 | xl* | bgxl* | bgf* | mpixl*) | |
9080 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
9081 | lt_prog_compiler_wl='-Wl,' | |
9082 | lt_prog_compiler_pic='-qpic' | |
9083 | lt_prog_compiler_static='-qstaticlink' | |
9084 | ;; | |
9085 | *) | |
9086 | case `$CC -V 2>&1 | sed 5q` in | |
9087 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
9088 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
9089 | lt_prog_compiler_pic='-KPIC' | |
9090 | lt_prog_compiler_static='-Bstatic' | |
9091 | lt_prog_compiler_wl='' | |
9092 | ;; | |
9093 | *Sun\ F* | *Sun*Fortran*) | |
9094 | lt_prog_compiler_pic='-KPIC' | |
9095 | lt_prog_compiler_static='-Bstatic' | |
9096 | lt_prog_compiler_wl='-Qoption ld ' | |
9097 | ;; | |
9098 | *Sun\ C*) | |
9099 | # Sun C 5.9 | |
9100 | lt_prog_compiler_pic='-KPIC' | |
9101 | lt_prog_compiler_static='-Bstatic' | |
9102 | lt_prog_compiler_wl='-Wl,' | |
9103 | ;; | |
9104 | *Intel*\ [CF]*Compiler*) | |
9105 | lt_prog_compiler_wl='-Wl,' | |
9106 | lt_prog_compiler_pic='-fPIC' | |
9107 | lt_prog_compiler_static='-static' | |
9108 | ;; | |
9109 | *Portland\ Group*) | |
9110 | lt_prog_compiler_wl='-Wl,' | |
9111 | lt_prog_compiler_pic='-fpic' | |
9112 | lt_prog_compiler_static='-Bstatic' | |
9113 | ;; | |
9114 | esac | |
9115 | ;; | |
9116 | esac | |
9117 | ;; | |
c52df125 | 9118 | |
eec2776c AJ |
9119 | newsos6) |
9120 | lt_prog_compiler_pic='-KPIC' | |
9121 | lt_prog_compiler_static='-Bstatic' | |
9122 | ;; | |
c52df125 | 9123 | |
eec2776c AJ |
9124 | *nto* | *qnx*) |
9125 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
9126 | # it will coredump. | |
9127 | lt_prog_compiler_pic='-fPIC -shared' | |
9128 | ;; | |
c52df125 | 9129 | |
eec2776c AJ |
9130 | osf3* | osf4* | osf5*) |
9131 | lt_prog_compiler_wl='-Wl,' | |
9132 | # All OSF/1 code is PIC. | |
9133 | lt_prog_compiler_static='-non_shared' | |
9134 | ;; | |
c52df125 | 9135 | |
eec2776c AJ |
9136 | rdos*) |
9137 | lt_prog_compiler_static='-non_shared' | |
9138 | ;; | |
c52df125 | 9139 | |
eec2776c AJ |
9140 | solaris*) |
9141 | lt_prog_compiler_pic='-KPIC' | |
9142 | lt_prog_compiler_static='-Bstatic' | |
9143 | case $cc_basename in | |
9144 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
9145 | lt_prog_compiler_wl='-Qoption ld ';; | |
9146 | *) | |
9147 | lt_prog_compiler_wl='-Wl,';; | |
9148 | esac | |
9149 | ;; | |
c52df125 | 9150 | |
eec2776c AJ |
9151 | sunos4*) |
9152 | lt_prog_compiler_wl='-Qoption ld ' | |
9153 | lt_prog_compiler_pic='-PIC' | |
9154 | lt_prog_compiler_static='-Bstatic' | |
9155 | ;; | |
c52df125 | 9156 | |
eec2776c AJ |
9157 | sysv4 | sysv4.2uw2* | sysv4.3*) |
9158 | lt_prog_compiler_wl='-Wl,' | |
9159 | lt_prog_compiler_pic='-KPIC' | |
9160 | lt_prog_compiler_static='-Bstatic' | |
9161 | ;; | |
c52df125 | 9162 | |
eec2776c AJ |
9163 | sysv4*MP*) |
9164 | if test -d /usr/nec ;then | |
9165 | lt_prog_compiler_pic='-Kconform_pic' | |
9166 | lt_prog_compiler_static='-Bstatic' | |
9167 | fi | |
9168 | ;; | |
c52df125 | 9169 | |
eec2776c AJ |
9170 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
9171 | lt_prog_compiler_wl='-Wl,' | |
9172 | lt_prog_compiler_pic='-KPIC' | |
9173 | lt_prog_compiler_static='-Bstatic' | |
9174 | ;; | |
c52df125 | 9175 | |
eec2776c AJ |
9176 | unicos*) |
9177 | lt_prog_compiler_wl='-Wl,' | |
9178 | lt_prog_compiler_can_build_shared=no | |
9179 | ;; | |
c52df125 | 9180 | |
eec2776c AJ |
9181 | uts4*) |
9182 | lt_prog_compiler_pic='-pic' | |
9183 | lt_prog_compiler_static='-Bstatic' | |
9184 | ;; | |
c52df125 | 9185 | |
eec2776c AJ |
9186 | *) |
9187 | lt_prog_compiler_can_build_shared=no | |
9188 | ;; | |
9189 | esac | |
9190 | fi | |
c52df125 | 9191 | |
eec2776c AJ |
9192 | case $host_os in |
9193 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9194 | *djgpp*) | |
9195 | lt_prog_compiler_pic= | |
9196 | ;; | |
9197 | *) | |
9198 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9199 | ;; | |
9200 | esac | |
c52df125 | 9201 | |
eec2776c AJ |
9202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
9203 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9204 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
9205 | $as_echo_n "(cached) " >&6 | |
9206 | else | |
9207 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9208 | fi | |
9209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9210 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9211 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
c52df125 | 9212 | |
eec2776c AJ |
9213 | # |
9214 | # Check to make sure the PIC flag actually works. | |
9215 | # | |
9216 | if test -n "$lt_prog_compiler_pic"; then | |
9217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9218 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9219 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9220 | $as_echo_n "(cached) " >&6 | |
9221 | else | |
9222 | lt_cv_prog_compiler_pic_works=no | |
9223 | ac_outfile=conftest.$ac_objext | |
9224 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9225 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9226 | # Insert the option either (1) after the last *FLAGS variable, or | |
9227 | # (2) before a word containing "conftest.", or (3) at the end. | |
9228 | # Note that $ac_compile itself does not contain backslashes and begins | |
9229 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9230 | # The option is referenced via a variable to avoid confusing sed. | |
9231 | lt_compile=`echo "$ac_compile" | $SED \ | |
9232 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9233 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9234 | -e 's:$: $lt_compiler_flag:'` | |
9235 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9236 | (eval "$lt_compile" 2>conftest.err) | |
9237 | ac_status=$? | |
9238 | cat conftest.err >&5 | |
9239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9240 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9241 | # The compiler can only warn and ignore the option if not recognized | |
9242 | # So say no if there are warnings other than the usual output. | |
9243 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9244 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9245 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9246 | lt_cv_prog_compiler_pic_works=yes | |
9247 | fi | |
9248 | fi | |
9249 | $RM conftest* | |
c52df125 | 9250 | |
eec2776c AJ |
9251 | fi |
9252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9253 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
c52df125 | 9254 | |
eec2776c AJ |
9255 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
9256 | case $lt_prog_compiler_pic in | |
9257 | "" | " "*) ;; | |
9258 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9259 | esac | |
9260 | else | |
9261 | lt_prog_compiler_pic= | |
9262 | lt_prog_compiler_can_build_shared=no | |
9263 | fi | |
c52df125 | 9264 | |
eec2776c | 9265 | fi |
c52df125 AC |
9266 | |
9267 | ||
9268 | ||
9269 | ||
9270 | ||
9271 | ||
9272 | ||
9273 | ||
9274 | ||
9275 | ||
9276 | ||
eec2776c AJ |
9277 | # |
9278 | # Check to make sure the static flag actually works. | |
9279 | # | |
9280 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9282 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9283 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9284 | $as_echo_n "(cached) " >&6 | |
9285 | else | |
9286 | lt_cv_prog_compiler_static_works=no | |
9287 | save_LDFLAGS="$LDFLAGS" | |
9288 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9289 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9290 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9291 | # The linker can only warn and ignore the option if not recognized | |
9292 | # So say no if there are warnings | |
9293 | if test -s conftest.err; then | |
9294 | # Append any errors to the config.log. | |
9295 | cat conftest.err 1>&5 | |
9296 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9297 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9298 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9299 | lt_cv_prog_compiler_static_works=yes | |
9300 | fi | |
9301 | else | |
9302 | lt_cv_prog_compiler_static_works=yes | |
9303 | fi | |
9304 | fi | |
9305 | $RM -r conftest* | |
9306 | LDFLAGS="$save_LDFLAGS" | |
c52df125 | 9307 | |
eec2776c AJ |
9308 | fi |
9309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9310 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
c52df125 | 9311 | |
eec2776c AJ |
9312 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
9313 | : | |
9314 | else | |
9315 | lt_prog_compiler_static= | |
9316 | fi | |
c52df125 AC |
9317 | |
9318 | ||
9319 | ||
9320 | ||
9321 | ||
9322 | ||
9323 | ||
eec2776c AJ |
9324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9325 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9326 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9327 | $as_echo_n "(cached) " >&6 | |
9328 | else | |
9329 | lt_cv_prog_compiler_c_o=no | |
9330 | $RM -r conftest 2>/dev/null | |
9331 | mkdir conftest | |
9332 | cd conftest | |
9333 | mkdir out | |
9334 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
c52df125 | 9335 | |
eec2776c AJ |
9336 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9337 | # Insert the option either (1) after the last *FLAGS variable, or | |
9338 | # (2) before a word containing "conftest.", or (3) at the end. | |
9339 | # Note that $ac_compile itself does not contain backslashes and begins | |
9340 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9341 | lt_compile=`echo "$ac_compile" | $SED \ | |
9342 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9343 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9344 | -e 's:$: $lt_compiler_flag:'` | |
9345 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9346 | (eval "$lt_compile" 2>out/conftest.err) | |
9347 | ac_status=$? | |
9348 | cat out/conftest.err >&5 | |
9349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9350 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9351 | then | |
9352 | # The compiler can only warn and ignore the option if not recognized | |
9353 | # So say no if there are warnings | |
9354 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9355 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9356 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9357 | lt_cv_prog_compiler_c_o=yes | |
9358 | fi | |
9359 | fi | |
9360 | chmod u+w . 2>&5 | |
9361 | $RM conftest* | |
9362 | # SGI C++ compiler will create directory out/ii_files/ for | |
9363 | # template instantiation | |
9364 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9365 | $RM out/* && rmdir out | |
9366 | cd .. | |
9367 | $RM -r conftest | |
9368 | $RM conftest* | |
c52df125 | 9369 | |
eec2776c AJ |
9370 | fi |
9371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9372 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
c52df125 AC |
9373 | |
9374 | ||
9375 | ||
9376 | ||
9377 | ||
9378 | ||
eec2776c AJ |
9379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
9380 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9381 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9382 | $as_echo_n "(cached) " >&6 | |
9383 | else | |
9384 | lt_cv_prog_compiler_c_o=no | |
9385 | $RM -r conftest 2>/dev/null | |
9386 | mkdir conftest | |
9387 | cd conftest | |
9388 | mkdir out | |
9389 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
c52df125 | 9390 | |
eec2776c AJ |
9391 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
9392 | # Insert the option either (1) after the last *FLAGS variable, or | |
9393 | # (2) before a word containing "conftest.", or (3) at the end. | |
9394 | # Note that $ac_compile itself does not contain backslashes and begins | |
9395 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9396 | lt_compile=`echo "$ac_compile" | $SED \ | |
9397 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9398 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9399 | -e 's:$: $lt_compiler_flag:'` | |
9400 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9401 | (eval "$lt_compile" 2>out/conftest.err) | |
9402 | ac_status=$? | |
9403 | cat out/conftest.err >&5 | |
9404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9405 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9406 | then | |
9407 | # The compiler can only warn and ignore the option if not recognized | |
9408 | # So say no if there are warnings | |
9409 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9410 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9411 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9412 | lt_cv_prog_compiler_c_o=yes | |
9413 | fi | |
9414 | fi | |
9415 | chmod u+w . 2>&5 | |
9416 | $RM conftest* | |
9417 | # SGI C++ compiler will create directory out/ii_files/ for | |
9418 | # template instantiation | |
9419 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9420 | $RM out/* && rmdir out | |
9421 | cd .. | |
9422 | $RM -r conftest | |
9423 | $RM conftest* | |
c52df125 | 9424 | |
eec2776c AJ |
9425 | fi |
9426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9427 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
c52df125 AC |
9428 | |
9429 | ||
9430 | ||
9431 | ||
eec2776c AJ |
9432 | hard_links="nottested" |
9433 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9434 | # do not overwrite the value of need_locks provided by the user | |
9435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9436 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9437 | hard_links=yes | |
9438 | $RM conftest* | |
9439 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9440 | touch conftest.a | |
9441 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9442 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9444 | $as_echo "$hard_links" >&6; } | |
9445 | if test "$hard_links" = no; then | |
9446 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9447 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9448 | need_locks=warn | |
9449 | fi | |
9450 | else | |
9451 | need_locks=no | |
9452 | fi | |
c52df125 AC |
9453 | |
9454 | ||
9455 | ||
9456 | ||
9457 | ||
9458 | ||
eec2776c AJ |
9459 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
9460 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
c52df125 | 9461 | |
eec2776c AJ |
9462 | runpath_var= |
9463 | allow_undefined_flag= | |
9464 | always_export_symbols=no | |
9465 | archive_cmds= | |
9466 | archive_expsym_cmds= | |
9467 | compiler_needs_object=no | |
9468 | enable_shared_with_static_runtimes=no | |
9469 | export_dynamic_flag_spec= | |
9470 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9471 | hardcode_automatic=no | |
9472 | hardcode_direct=no | |
9473 | hardcode_direct_absolute=no | |
9474 | hardcode_libdir_flag_spec= | |
9475 | hardcode_libdir_separator= | |
9476 | hardcode_minus_L=no | |
9477 | hardcode_shlibpath_var=unsupported | |
9478 | inherit_rpath=no | |
9479 | link_all_deplibs=unknown | |
9480 | module_cmds= | |
9481 | module_expsym_cmds= | |
9482 | old_archive_from_new_cmds= | |
9483 | old_archive_from_expsyms_cmds= | |
9484 | thread_safe_flag_spec= | |
9485 | whole_archive_flag_spec= | |
9486 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9487 | # included in the symbol list | |
9488 | include_expsyms= | |
9489 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9490 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9491 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9492 | # as well as any symbol that contains `d'. | |
9493 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9494 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9495 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9496 | # the symbol is explicitly referenced. Since portable code cannot | |
9497 | # rely on this symbol name, it's probably fine to never include it in | |
9498 | # preloaded symbol tables. | |
9499 | # Exclude shared library initialization/finalization symbols. | |
9500 | extract_expsyms_cmds= | |
c52df125 | 9501 | |
c52df125 | 9502 | case $host_os in |
eec2776c AJ |
9503 | cygwin* | mingw* | pw32* | cegcc*) |
9504 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9505 | # When not using gcc, we currently assume that we are using | |
9506 | # Microsoft Visual C++. | |
9507 | if test "$GCC" != yes; then | |
9508 | with_gnu_ld=no | |
9509 | fi | |
c52df125 | 9510 | ;; |
eec2776c AJ |
9511 | interix*) |
9512 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9513 | with_gnu_ld=yes | |
9514 | ;; | |
9515 | openbsd*) | |
9516 | with_gnu_ld=no | |
9517 | ;; | |
9518 | linux* | k*bsd*-gnu | gnu*) | |
9519 | link_all_deplibs=no | |
c52df125 AC |
9520 | ;; |
9521 | esac | |
c52df125 | 9522 | |
eec2776c | 9523 | ld_shlibs=yes |
c52df125 | 9524 | |
eec2776c AJ |
9525 | # On some targets, GNU ld is compatible enough with the native linker |
9526 | # that we're better off using the native interface for both. | |
9527 | lt_use_gnu_ld_interface=no | |
9528 | if test "$with_gnu_ld" = yes; then | |
c52df125 | 9529 | case $host_os in |
eec2776c AJ |
9530 | aix*) |
9531 | # The AIX port of GNU ld has always aspired to compatibility | |
9532 | # with the native linker. However, as the warning in the GNU ld | |
9533 | # block says, versions before 2.19.5* couldn't really create working | |
9534 | # shared libraries, regardless of the interface used. | |
9535 | case `$LD -v 2>&1` in | |
9536 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9537 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9538 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9539 | *) | |
9540 | lt_use_gnu_ld_interface=yes | |
9541 | ;; | |
9542 | esac | |
9543 | ;; | |
9544 | *) | |
9545 | lt_use_gnu_ld_interface=yes | |
9546 | ;; | |
c52df125 | 9547 | esac |
c52df125 | 9548 | fi |
c52df125 | 9549 | |
eec2776c AJ |
9550 | if test "$lt_use_gnu_ld_interface" = yes; then |
9551 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9552 | wlarc='${wl}' | |
c52df125 | 9553 | |
eec2776c AJ |
9554 | # Set some defaults for GNU ld with shared library support. These |
9555 | # are reset later if shared libraries are not supported. Putting them | |
9556 | # here allows them to be overridden if necessary. | |
9557 | runpath_var=LD_RUN_PATH | |
9558 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9559 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9560 | # ancient GNU ld didn't support --whole-archive et. al. | |
9561 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9562 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9563 | else | |
9564 | whole_archive_flag_spec= | |
9565 | fi | |
9566 | supports_anon_versioning=no | |
9567 | case `$LD -v 2>&1` in | |
9568 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
9569 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9570 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9571 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9572 | *\ 2.11.*) ;; # other 2.11 versions | |
9573 | *) supports_anon_versioning=yes ;; | |
9574 | esac | |
c52df125 | 9575 | |
eec2776c AJ |
9576 | # See if GNU ld supports shared libraries. |
9577 | case $host_os in | |
9578 | aix[3-9]*) | |
9579 | # On AIX/PPC, the GNU linker is very broken | |
9580 | if test "$host_cpu" != ia64; then | |
9581 | ld_shlibs=no | |
9582 | cat <<_LT_EOF 1>&2 | |
c52df125 | 9583 | |
eec2776c AJ |
9584 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
9585 | *** to be unable to reliably create shared libraries on AIX. | |
9586 | *** Therefore, libtool is disabling shared libraries support. If you | |
9587 | *** really care for shared libraries, you may want to install binutils | |
9588 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9589 | *** You will then need to restart the configuration process. | |
c52df125 | 9590 | |
eec2776c AJ |
9591 | _LT_EOF |
9592 | fi | |
9593 | ;; | |
c52df125 | 9594 | |
eec2776c AJ |
9595 | amigaos*) |
9596 | case $host_cpu in | |
9597 | powerpc) | |
9598 | # see comment about AmigaOS4 .so support | |
9599 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9600 | archive_expsym_cmds='' | |
9601 | ;; | |
9602 | m68k) | |
9603 | 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)' | |
9604 | hardcode_libdir_flag_spec='-L$libdir' | |
9605 | hardcode_minus_L=yes | |
9606 | ;; | |
9607 | esac | |
9608 | ;; | |
c52df125 | 9609 | |
eec2776c AJ |
9610 | beos*) |
9611 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9612 | allow_undefined_flag=unsupported | |
9613 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9614 | # support --undefined. This deserves some investigation. FIXME | |
9615 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9616 | else | |
9617 | ld_shlibs=no | |
9618 | fi | |
c52df125 | 9619 | ;; |
eec2776c AJ |
9620 | |
9621 | cygwin* | mingw* | pw32* | cegcc*) | |
9622 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9623 | # as there is no search path for DLLs. | |
9624 | hardcode_libdir_flag_spec='-L$libdir' | |
9625 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9626 | allow_undefined_flag=unsupported | |
9627 | always_export_symbols=no | |
9628 | enable_shared_with_static_runtimes=yes | |
9629 | 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' | |
9630 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9631 | ||
9632 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9633 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9634 | # If the export-symbols file already is a .def file (1st line | |
9635 | # is EXPORTS), use it as is; otherwise, prepend... | |
9636 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9637 | cp $export_symbols $output_objdir/$soname.def; | |
9638 | else | |
9639 | echo EXPORTS > $output_objdir/$soname.def; | |
9640 | cat $export_symbols >> $output_objdir/$soname.def; | |
9641 | fi~ | |
9642 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9643 | else | |
9644 | ld_shlibs=no | |
9645 | fi | |
c52df125 | 9646 | ;; |
c52df125 | 9647 | |
eec2776c AJ |
9648 | haiku*) |
9649 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9650 | link_all_deplibs=yes | |
9651 | ;; | |
c52df125 | 9652 | |
eec2776c AJ |
9653 | interix[3-9]*) |
9654 | hardcode_direct=no | |
9655 | hardcode_shlibpath_var=no | |
9656 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9657 | export_dynamic_flag_spec='${wl}-E' | |
9658 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9659 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9660 | # default) and relocated if they conflict, which is a slow very memory | |
9661 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9662 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9663 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9664 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9665 | 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 | 9666 | ;; |
eec2776c AJ |
9667 | |
9668 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9669 | tmp_diet=no | |
9670 | if test "$host_os" = linux-dietlibc; then | |
9671 | case $cc_basename in | |
9672 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9673 | esac | |
9674 | fi | |
9675 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9676 | && test "$tmp_diet" = no | |
9677 | then | |
9678 | tmp_addflag=' $pic_flag' | |
9679 | tmp_sharedflag='-shared' | |
9680 | case $cc_basename,$host_cpu in | |
9681 | pgcc*) # Portland Group C compiler | |
9682 | 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' | |
9683 | tmp_addflag=' $pic_flag' | |
9684 | ;; | |
9685 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
9686 | # Portland Group f77 and f90 compilers | |
9687 | 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' | |
9688 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9689 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9690 | tmp_addflag=' -i_dynamic' ;; | |
9691 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9692 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9693 | ifc* | ifort*) # Intel Fortran compiler | |
9694 | tmp_addflag=' -nofor_main' ;; | |
9695 | lf95*) # Lahey Fortran 8.1 | |
9696 | whole_archive_flag_spec= | |
9697 | tmp_sharedflag='--shared' ;; | |
9698 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9699 | tmp_sharedflag='-qmkshrobj' | |
9700 | tmp_addflag= ;; | |
9701 | nvcc*) # Cuda Compiler Driver 2.2 | |
9702 | 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' | |
9703 | compiler_needs_object=yes | |
9704 | ;; | |
9705 | esac | |
9706 | case `$CC -V 2>&1 | sed 5q` in | |
9707 | *Sun\ C*) # Sun C 5.9 | |
9708 | 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' | |
9709 | compiler_needs_object=yes | |
9710 | tmp_sharedflag='-G' ;; | |
9711 | *Sun\ F*) # Sun Fortran 8.3 | |
9712 | tmp_sharedflag='-G' ;; | |
9713 | esac | |
9714 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9715 | ||
9716 | if test "x$supports_anon_versioning" = xyes; then | |
9717 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9718 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9719 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9720 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9721 | fi | |
9722 | ||
9723 | case $cc_basename in | |
9724 | xlf* | bgf* | bgxlf* | mpixlf*) | |
9725 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9726 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9727 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9728 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
9729 | if test "x$supports_anon_versioning" = xyes; then | |
9730 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9731 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9732 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9733 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9734 | fi | |
9735 | ;; | |
9736 | esac | |
9737 | else | |
9738 | ld_shlibs=no | |
9739 | fi | |
c52df125 | 9740 | ;; |
eec2776c AJ |
9741 | |
9742 | netbsd* | netbsdelf*-gnu) | |
9743 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9744 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9745 | wlarc= | |
c52df125 | 9746 | else |
eec2776c AJ |
9747 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9748 | 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 | 9749 | fi |
c52df125 | 9750 | ;; |
c52df125 | 9751 | |
eec2776c AJ |
9752 | solaris*) |
9753 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9754 | ld_shlibs=no | |
9755 | cat <<_LT_EOF 1>&2 | |
c52df125 | 9756 | |
eec2776c AJ |
9757 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9758 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9759 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9760 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9761 | *** your PATH or compiler configuration so that the native linker is | |
9762 | *** used, and then restart. | |
c52df125 | 9763 | |
eec2776c AJ |
9764 | _LT_EOF |
9765 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9766 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9767 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9768 | else | |
9769 | ld_shlibs=no | |
9770 | fi | |
9771 | ;; | |
c52df125 | 9772 | |
eec2776c AJ |
9773 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9774 | case `$LD -v 2>&1` in | |
9775 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9776 | ld_shlibs=no | |
9777 | cat <<_LT_EOF 1>&2 | |
c52df125 | 9778 | |
eec2776c AJ |
9779 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
9780 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9781 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9782 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9783 | *** your PATH or compiler configuration so that the native linker is | |
9784 | *** used, and then restart. | |
c52df125 | 9785 | |
eec2776c AJ |
9786 | _LT_EOF |
9787 | ;; | |
9788 | *) | |
9789 | # For security reasons, it is highly recommended that you always | |
9790 | # use absolute paths for naming shared libraries, and exclude the | |
9791 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9792 | # requires that you compile everything twice, which is a pain. | |
9793 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9794 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9795 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9796 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9797 | else | |
9798 | ld_shlibs=no | |
9799 | fi | |
9800 | ;; | |
9801 | esac | |
c52df125 | 9802 | ;; |
eec2776c AJ |
9803 | |
9804 | sunos4*) | |
9805 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9806 | wlarc= | |
9807 | hardcode_direct=yes | |
9808 | hardcode_shlibpath_var=no | |
c52df125 | 9809 | ;; |
c52df125 | 9810 | |
eec2776c AJ |
9811 | *) |
9812 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9813 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9814 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9815 | else | |
9816 | ld_shlibs=no | |
9817 | fi | |
9818 | ;; | |
9819 | esac | |
c52df125 | 9820 | |
eec2776c AJ |
9821 | if test "$ld_shlibs" = no; then |
9822 | runpath_var= | |
9823 | hardcode_libdir_flag_spec= | |
9824 | export_dynamic_flag_spec= | |
9825 | whole_archive_flag_spec= | |
c52df125 | 9826 | fi |
eec2776c AJ |
9827 | else |
9828 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9829 | case $host_os in | |
9830 | aix3*) | |
9831 | allow_undefined_flag=unsupported | |
9832 | always_export_symbols=yes | |
9833 | 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' | |
9834 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9835 | # are no directories specified by -L. | |
9836 | hardcode_minus_L=yes | |
9837 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9838 | # Neither direct hardcoding nor static linking is supported with a | |
9839 | # broken collect2. | |
9840 | hardcode_direct=unsupported | |
9841 | fi | |
9842 | ;; | |
c52df125 | 9843 | |
eec2776c AJ |
9844 | aix[4-9]*) |
9845 | if test "$host_cpu" = ia64; then | |
9846 | # On IA64, the linker does run time linking by default, so we don't | |
9847 | # have to do anything special. | |
9848 | aix_use_runtimelinking=no | |
9849 | exp_sym_flag='-Bexport' | |
9850 | no_entry_flag="" | |
9851 | else | |
9852 | # If we're using GNU nm, then we don't want the "-C" option. | |
9853 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9854 | # Also, AIX nm treats weak defined symbols like other global | |
9855 | # defined symbols, whereas GNU nm marks them as "W". | |
9856 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9857 | 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 | 9858 | else |
eec2776c AJ |
9859 | 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' |
9860 | fi | |
9861 | aix_use_runtimelinking=no | |
c52df125 | 9862 | |
eec2776c AJ |
9863 | # Test if we are trying to use run time linking or normal |
9864 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9865 | # need to do runtime linking. | |
9866 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9867 | for ld_flag in $LDFLAGS; do | |
9868 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9869 | aix_use_runtimelinking=yes | |
9870 | break | |
9871 | fi | |
9872 | done | |
9873 | ;; | |
9874 | esac | |
c52df125 | 9875 | |
eec2776c AJ |
9876 | exp_sym_flag='-bexport' |
9877 | no_entry_flag='-bnoentry' | |
9878 | fi | |
c52df125 | 9879 | |
eec2776c AJ |
9880 | # When large executables or shared objects are built, AIX ld can |
9881 | # have problems creating the table of contents. If linking a library | |
9882 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9883 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9884 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
c52df125 | 9885 | |
eec2776c AJ |
9886 | archive_cmds='' |
9887 | hardcode_direct=yes | |
9888 | hardcode_direct_absolute=yes | |
9889 | hardcode_libdir_separator=':' | |
9890 | link_all_deplibs=yes | |
9891 | file_list_spec='${wl}-f,' | |
c52df125 | 9892 | |
eec2776c AJ |
9893 | if test "$GCC" = yes; then |
9894 | case $host_os in aix4.[012]|aix4.[012].*) | |
9895 | # We only want to do this on AIX 4.2 and lower, the check | |
9896 | # below for broken collect2 doesn't work under 4.3+ | |
9897 | collect2name=`${CC} -print-prog-name=collect2` | |
9898 | if test -f "$collect2name" && | |
9899 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9900 | then | |
9901 | # We have reworked collect2 | |
9902 | : | |
9903 | else | |
9904 | # We have old collect2 | |
9905 | hardcode_direct=unsupported | |
9906 | # It fails to find uninstalled libraries when the uninstalled | |
9907 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9908 | # to unsupported forces relinking | |
9909 | hardcode_minus_L=yes | |
9910 | hardcode_libdir_flag_spec='-L$libdir' | |
9911 | hardcode_libdir_separator= | |
9912 | fi | |
9913 | ;; | |
9914 | esac | |
9915 | shared_flag='-shared' | |
9916 | if test "$aix_use_runtimelinking" = yes; then | |
9917 | shared_flag="$shared_flag "'${wl}-G' | |
9918 | fi | |
9919 | link_all_deplibs=no | |
9920 | else | |
9921 | # not using gcc | |
9922 | if test "$host_cpu" = ia64; then | |
9923 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9924 | # chokes on -Wl,-G. The following line is correct: | |
9925 | shared_flag='-G' | |
9926 | else | |
9927 | if test "$aix_use_runtimelinking" = yes; then | |
9928 | shared_flag='${wl}-G' | |
9929 | else | |
9930 | shared_flag='${wl}-bM:SRE' | |
9931 | fi | |
9932 | fi | |
9933 | fi | |
9934 | ||
9935 | export_dynamic_flag_spec='${wl}-bexpall' | |
9936 | # It seems that -bexpall does not export symbols beginning with | |
9937 | # underscore (_), so it is better to generate a list of symbols to export. | |
9938 | always_export_symbols=yes | |
9939 | if test "$aix_use_runtimelinking" = yes; then | |
9940 | # Warning - without using the other runtime loading flags (-brtl), | |
9941 | # -berok will link without error, but may produce a broken library. | |
9942 | allow_undefined_flag='-berok' | |
9943 | # Determine the default libpath from the value encoded in an | |
9944 | # empty executable. | |
9945 | if test "${lt_cv_aix_libpath+set}" = set; then | |
9946 | aix_libpath=$lt_cv_aix_libpath | |
9947 | else | |
9948 | if ${lt_cv_aix_libpath_+:} false; then : | |
9949 | $as_echo_n "(cached) " >&6 | |
9950 | else | |
9951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9952 | /* end confdefs.h. */ | |
9953 | ||
9954 | int | |
9955 | main () | |
9956 | { | |
9957 | ||
9958 | ; | |
9959 | return 0; | |
9960 | } | |
9961 | _ACEOF | |
c52df125 | 9962 | if ac_fn_c_try_link "$LINENO"; then : |
eec2776c AJ |
9963 | |
9964 | lt_aix_libpath_sed=' | |
9965 | /Import File Strings/,/^$/ { | |
9966 | /^0/ { | |
9967 | s/^0 *\([^ ]*\) *$/\1/ | |
9968 | p | |
9969 | } | |
9970 | }' | |
9971 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9972 | # Check for a 64-bit object if we didn't find anything. | |
9973 | if test -z "$lt_cv_aix_libpath_"; then | |
9974 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9975 | fi | |
c52df125 AC |
9976 | fi |
9977 | rm -f core conftest.err conftest.$ac_objext \ | |
9978 | conftest$ac_exeext conftest.$ac_ext | |
eec2776c AJ |
9979 | if test -z "$lt_cv_aix_libpath_"; then |
9980 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
9981 | fi | |
c52df125 AC |
9982 | |
9983 | fi | |
9984 | ||
eec2776c AJ |
9985 | aix_libpath=$lt_cv_aix_libpath_ |
9986 | fi | |
c52df125 | 9987 | |
eec2776c AJ |
9988 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9989 | 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" | |
9990 | else | |
9991 | if test "$host_cpu" = ia64; then | |
9992 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9993 | allow_undefined_flag="-z nodefs" | |
9994 | 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" | |
9995 | else | |
9996 | # Determine the default libpath from the value encoded in an | |
9997 | # empty executable. | |
9998 | if test "${lt_cv_aix_libpath+set}" = set; then | |
9999 | aix_libpath=$lt_cv_aix_libpath | |
10000 | else | |
10001 | if ${lt_cv_aix_libpath_+:} false; then : | |
10002 | $as_echo_n "(cached) " >&6 | |
10003 | else | |
10004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10005 | /* end confdefs.h. */ | |
c52df125 | 10006 | |
eec2776c AJ |
10007 | int |
10008 | main () | |
10009 | { | |
c52df125 | 10010 | |
eec2776c AJ |
10011 | ; |
10012 | return 0; | |
10013 | } | |
10014 | _ACEOF | |
10015 | if ac_fn_c_try_link "$LINENO"; then : | |
c52df125 | 10016 | |
eec2776c AJ |
10017 | lt_aix_libpath_sed=' |
10018 | /Import File Strings/,/^$/ { | |
10019 | /^0/ { | |
10020 | s/^0 *\([^ ]*\) *$/\1/ | |
10021 | p | |
10022 | } | |
10023 | }' | |
10024 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
10025 | # Check for a 64-bit object if we didn't find anything. | |
10026 | if test -z "$lt_cv_aix_libpath_"; then | |
10027 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
c52df125 | 10028 | fi |
eec2776c AJ |
10029 | fi |
10030 | rm -f core conftest.err conftest.$ac_objext \ | |
10031 | conftest$ac_exeext conftest.$ac_ext | |
10032 | if test -z "$lt_cv_aix_libpath_"; then | |
10033 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
c52df125 | 10034 | fi |
c52df125 | 10035 | |
eec2776c | 10036 | fi |
c52df125 | 10037 | |
eec2776c AJ |
10038 | aix_libpath=$lt_cv_aix_libpath_ |
10039 | fi | |
c52df125 | 10040 | |
eec2776c AJ |
10041 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
10042 | # Warning - without using the other run time loading flags, | |
10043 | # -berok will link without error, but may produce a broken library. | |
10044 | no_undefined_flag=' ${wl}-bernotok' | |
10045 | allow_undefined_flag=' ${wl}-berok' | |
10046 | if test "$with_gnu_ld" = yes; then | |
10047 | # We only use this code for GNU lds that support --whole-archive. | |
10048 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
10049 | else | |
10050 | # Exported symbols can be pulled into shared objects from archives | |
10051 | whole_archive_flag_spec='$convenience' | |
10052 | fi | |
10053 | archive_cmds_need_lc=yes | |
10054 | # This is similar to how AIX traditionally builds its shared libraries. | |
10055 | 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' | |
10056 | fi | |
10057 | fi | |
c52df125 | 10058 | ;; |
eec2776c AJ |
10059 | |
10060 | amigaos*) | |
10061 | case $host_cpu in | |
10062 | powerpc) | |
10063 | # see comment about AmigaOS4 .so support | |
10064 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10065 | archive_expsym_cmds='' | |
10066 | ;; | |
10067 | m68k) | |
10068 | 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)' | |
10069 | hardcode_libdir_flag_spec='-L$libdir' | |
10070 | hardcode_minus_L=yes | |
10071 | ;; | |
10072 | esac | |
c52df125 | 10073 | ;; |
c52df125 | 10074 | |
eec2776c AJ |
10075 | bsdi[45]*) |
10076 | export_dynamic_flag_spec=-rdynamic | |
10077 | ;; | |
c52df125 | 10078 | |
eec2776c AJ |
10079 | cygwin* | mingw* | pw32* | cegcc*) |
10080 | # When not using gcc, we currently assume that we are using | |
10081 | # Microsoft Visual C++. | |
10082 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10083 | # no search path for DLLs. | |
10084 | case $cc_basename in | |
10085 | cl*) | |
10086 | # Native MSVC | |
10087 | hardcode_libdir_flag_spec=' ' | |
10088 | allow_undefined_flag=unsupported | |
10089 | always_export_symbols=yes | |
10090 | file_list_spec='@' | |
10091 | # Tell ltmain to make .lib files, not .a files. | |
10092 | libext=lib | |
10093 | # Tell ltmain to make .dll files, not .so files. | |
10094 | shrext_cmds=".dll" | |
10095 | # FIXME: Setting linknames here is a bad hack. | |
10096 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
10097 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10098 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
10099 | else | |
10100 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
10101 | fi~ | |
10102 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
10103 | linknames=' | |
10104 | # The linker will not automatically build a static lib if we build a DLL. | |
10105 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
10106 | enable_shared_with_static_runtimes=yes | |
10107 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
10108 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
10109 | # Don't use ranlib | |
10110 | old_postinstall_cmds='chmod 644 $oldlib' | |
10111 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
10112 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
10113 | case $lt_outputfile in | |
10114 | *.exe|*.EXE) ;; | |
10115 | *) | |
10116 | lt_outputfile="$lt_outputfile.exe" | |
10117 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
10118 | ;; | |
10119 | esac~ | |
10120 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
10121 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
10122 | $RM "$lt_outputfile.manifest"; | |
10123 | fi' | |
c52df125 | 10124 | ;; |
eec2776c AJ |
10125 | *) |
10126 | # Assume MSVC wrapper | |
10127 | hardcode_libdir_flag_spec=' ' | |
10128 | allow_undefined_flag=unsupported | |
10129 | # Tell ltmain to make .lib files, not .a files. | |
10130 | libext=lib | |
10131 | # Tell ltmain to make .dll files, not .so files. | |
10132 | shrext_cmds=".dll" | |
10133 | # FIXME: Setting linknames here is a bad hack. | |
10134 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10135 | # The linker will automatically build a .lib file if we build a DLL. | |
10136 | old_archive_from_new_cmds='true' | |
10137 | # FIXME: Should let the user specify the lib program. | |
10138 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
10139 | enable_shared_with_static_runtimes=yes | |
10140 | ;; | |
10141 | esac | |
10142 | ;; | |
c52df125 | 10143 | |
eec2776c | 10144 | darwin* | rhapsody*) |
c52df125 AC |
10145 | |
10146 | ||
eec2776c AJ |
10147 | archive_cmds_need_lc=no |
10148 | hardcode_direct=no | |
10149 | hardcode_automatic=yes | |
10150 | hardcode_shlibpath_var=unsupported | |
10151 | if test "$lt_cv_ld_force_load" = "yes"; then | |
10152 | 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 | 10153 | |
eec2776c AJ |
10154 | else |
10155 | whole_archive_flag_spec='' | |
10156 | fi | |
10157 | link_all_deplibs=yes | |
10158 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
10159 | case $cc_basename in | |
10160 | ifort*) _lt_dar_can_shared=yes ;; | |
10161 | *) _lt_dar_can_shared=$GCC ;; | |
10162 | esac | |
10163 | if test "$_lt_dar_can_shared" = "yes"; then | |
10164 | output_verbose_link_cmd=func_echo_all | |
10165 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
10166 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10167 | 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}" | |
10168 | 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 | 10169 | |
eec2776c AJ |
10170 | else |
10171 | ld_shlibs=no | |
10172 | fi | |
c52df125 | 10173 | |
eec2776c | 10174 | ;; |
c52df125 | 10175 | |
eec2776c AJ |
10176 | dgux*) |
10177 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10178 | hardcode_libdir_flag_spec='-L$libdir' | |
10179 | hardcode_shlibpath_var=no | |
10180 | ;; | |
c52df125 | 10181 | |
eec2776c AJ |
10182 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
10183 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10184 | # does not break anything, and helps significantly (at the cost of a little | |
10185 | # extra space). | |
10186 | freebsd2.2*) | |
10187 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10188 | hardcode_libdir_flag_spec='-R$libdir' | |
10189 | hardcode_direct=yes | |
10190 | hardcode_shlibpath_var=no | |
10191 | ;; | |
c52df125 | 10192 | |
eec2776c AJ |
10193 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
10194 | freebsd2.*) | |
10195 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10196 | hardcode_direct=yes | |
10197 | hardcode_minus_L=yes | |
10198 | hardcode_shlibpath_var=no | |
10199 | ;; | |
c52df125 | 10200 | |
eec2776c AJ |
10201 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
10202 | freebsd* | dragonfly*) | |
10203 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10204 | hardcode_libdir_flag_spec='-R$libdir' | |
10205 | hardcode_direct=yes | |
10206 | hardcode_shlibpath_var=no | |
10207 | ;; | |
c52df125 | 10208 | |
eec2776c AJ |
10209 | hpux9*) |
10210 | if test "$GCC" = yes; then | |
10211 | 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' | |
10212 | else | |
10213 | 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' | |
10214 | fi | |
10215 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10216 | hardcode_libdir_separator=: | |
10217 | hardcode_direct=yes | |
c52df125 | 10218 | |
eec2776c AJ |
10219 | # hardcode_minus_L: Not really in the search PATH, |
10220 | # but as the default location of the library. | |
10221 | hardcode_minus_L=yes | |
10222 | export_dynamic_flag_spec='${wl}-E' | |
10223 | ;; | |
c52df125 | 10224 | |
eec2776c AJ |
10225 | hpux10*) |
10226 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10227 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10228 | else | |
10229 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10230 | fi | |
10231 | if test "$with_gnu_ld" = no; then | |
10232 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10233 | hardcode_libdir_separator=: | |
10234 | hardcode_direct=yes | |
10235 | hardcode_direct_absolute=yes | |
10236 | export_dynamic_flag_spec='${wl}-E' | |
10237 | # hardcode_minus_L: Not really in the search PATH, | |
10238 | # but as the default location of the library. | |
10239 | hardcode_minus_L=yes | |
10240 | fi | |
10241 | ;; | |
c52df125 | 10242 | |
eec2776c AJ |
10243 | hpux11*) |
10244 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10245 | case $host_cpu in | |
10246 | hppa*64*) | |
10247 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10248 | ;; | |
10249 | ia64*) | |
10250 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10251 | ;; | |
10252 | *) | |
10253 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10254 | ;; | |
10255 | esac | |
10256 | else | |
10257 | case $host_cpu in | |
10258 | hppa*64*) | |
10259 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10260 | ;; | |
10261 | ia64*) | |
10262 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10263 | ;; | |
10264 | *) | |
c52df125 | 10265 | |
eec2776c AJ |
10266 | # Older versions of the 11.00 compiler do not understand -b yet |
10267 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10269 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
10270 | if ${lt_cv_prog_compiler__b+:} false; then : | |
10271 | $as_echo_n "(cached) " >&6 | |
10272 | else | |
10273 | lt_cv_prog_compiler__b=no | |
10274 | save_LDFLAGS="$LDFLAGS" | |
10275 | LDFLAGS="$LDFLAGS -b" | |
10276 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10277 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10278 | # The linker can only warn and ignore the option if not recognized | |
10279 | # So say no if there are warnings | |
10280 | if test -s conftest.err; then | |
10281 | # Append any errors to the config.log. | |
10282 | cat conftest.err 1>&5 | |
10283 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10284 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10285 | if diff conftest.exp conftest.er2 >/dev/null; then | |
10286 | lt_cv_prog_compiler__b=yes | |
10287 | fi | |
10288 | else | |
10289 | lt_cv_prog_compiler__b=yes | |
10290 | fi | |
10291 | fi | |
10292 | $RM -r conftest* | |
10293 | LDFLAGS="$save_LDFLAGS" | |
c52df125 | 10294 | |
eec2776c AJ |
10295 | fi |
10296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10297 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
c52df125 | 10298 | |
eec2776c AJ |
10299 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
10300 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10301 | else | |
10302 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10303 | fi | |
c52df125 | 10304 | |
eec2776c AJ |
10305 | ;; |
10306 | esac | |
10307 | fi | |
10308 | if test "$with_gnu_ld" = no; then | |
10309 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10310 | hardcode_libdir_separator=: | |
c52df125 | 10311 | |
eec2776c AJ |
10312 | case $host_cpu in |
10313 | hppa*64*|ia64*) | |
10314 | hardcode_direct=no | |
10315 | hardcode_shlibpath_var=no | |
10316 | ;; | |
10317 | *) | |
10318 | hardcode_direct=yes | |
10319 | hardcode_direct_absolute=yes | |
10320 | export_dynamic_flag_spec='${wl}-E' | |
c52df125 | 10321 | |
eec2776c AJ |
10322 | # hardcode_minus_L: Not really in the search PATH, |
10323 | # but as the default location of the library. | |
10324 | hardcode_minus_L=yes | |
10325 | ;; | |
10326 | esac | |
10327 | fi | |
10328 | ;; | |
c52df125 | 10329 | |
eec2776c AJ |
10330 | irix5* | irix6* | nonstopux*) |
10331 | if test "$GCC" = yes; then | |
10332 | 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' | |
10333 | # Try to use the -exported_symbol ld option, if it does not | |
10334 | # work, assume that -exports_file does not work either and | |
10335 | # implicitly export all symbols. | |
10336 | # This should be the same for all languages, so no per-tag cache variable. | |
10337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10338 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10339 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10340 | $as_echo_n "(cached) " >&6 | |
10341 | else | |
10342 | save_LDFLAGS="$LDFLAGS" | |
10343 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10345 | /* end confdefs.h. */ | |
10346 | int foo (void) { return 0; } | |
10347 | _ACEOF | |
10348 | if ac_fn_c_try_link "$LINENO"; then : | |
10349 | lt_cv_irix_exported_symbol=yes | |
10350 | else | |
10351 | lt_cv_irix_exported_symbol=no | |
10352 | fi | |
10353 | rm -f core conftest.err conftest.$ac_objext \ | |
10354 | conftest$ac_exeext conftest.$ac_ext | |
10355 | LDFLAGS="$save_LDFLAGS" | |
10356 | fi | |
10357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10358 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10359 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
10360 | 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' | |
10361 | fi | |
10362 | else | |
10363 | 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' | |
10364 | 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' | |
10365 | fi | |
10366 | archive_cmds_need_lc='no' | |
10367 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10368 | hardcode_libdir_separator=: | |
10369 | inherit_rpath=yes | |
10370 | link_all_deplibs=yes | |
10371 | ;; | |
c52df125 | 10372 | |
eec2776c AJ |
10373 | netbsd* | netbsdelf*-gnu) |
10374 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10375 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10376 | else | |
10377 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10378 | fi | |
10379 | hardcode_libdir_flag_spec='-R$libdir' | |
10380 | hardcode_direct=yes | |
10381 | hardcode_shlibpath_var=no | |
10382 | ;; | |
c52df125 | 10383 | |
eec2776c AJ |
10384 | newsos6) |
10385 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10386 | hardcode_direct=yes | |
10387 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10388 | hardcode_libdir_separator=: | |
10389 | hardcode_shlibpath_var=no | |
10390 | ;; | |
c52df125 | 10391 | |
eec2776c AJ |
10392 | *nto* | *qnx*) |
10393 | ;; | |
c52df125 | 10394 | |
eec2776c AJ |
10395 | openbsd*) |
10396 | if test -f /usr/libexec/ld.so; then | |
10397 | hardcode_direct=yes | |
10398 | hardcode_shlibpath_var=no | |
10399 | hardcode_direct_absolute=yes | |
10400 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10401 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10402 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10403 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10404 | export_dynamic_flag_spec='${wl}-E' | |
10405 | else | |
10406 | case $host_os in | |
10407 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10408 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10409 | hardcode_libdir_flag_spec='-R$libdir' | |
10410 | ;; | |
10411 | *) | |
10412 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10413 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10414 | ;; | |
10415 | esac | |
10416 | fi | |
10417 | else | |
10418 | ld_shlibs=no | |
10419 | fi | |
10420 | ;; | |
c52df125 | 10421 | |
eec2776c AJ |
10422 | os2*) |
10423 | hardcode_libdir_flag_spec='-L$libdir' | |
10424 | hardcode_minus_L=yes | |
10425 | allow_undefined_flag=unsupported | |
10426 | 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' | |
10427 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10428 | ;; | |
c52df125 | 10429 | |
eec2776c AJ |
10430 | osf3*) |
10431 | if test "$GCC" = yes; then | |
10432 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10433 | 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' | |
10434 | else | |
10435 | allow_undefined_flag=' -expect_unresolved \*' | |
10436 | 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' | |
10437 | fi | |
10438 | archive_cmds_need_lc='no' | |
10439 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10440 | hardcode_libdir_separator=: | |
10441 | ;; | |
c52df125 | 10442 | |
eec2776c AJ |
10443 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
10444 | if test "$GCC" = yes; then | |
10445 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10446 | 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' | |
10447 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10448 | else | |
10449 | allow_undefined_flag=' -expect_unresolved \*' | |
10450 | 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' | |
10451 | 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~ | |
10452 | $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 | 10453 | |
eec2776c AJ |
10454 | # Both c and cxx compiler support -rpath directly |
10455 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10456 | fi | |
10457 | archive_cmds_need_lc='no' | |
10458 | hardcode_libdir_separator=: | |
10459 | ;; | |
c52df125 | 10460 | |
eec2776c AJ |
10461 | solaris*) |
10462 | no_undefined_flag=' -z defs' | |
10463 | if test "$GCC" = yes; then | |
10464 | wlarc='${wl}' | |
10465 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10466 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10467 | $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' | |
10468 | else | |
10469 | case `$CC -V 2>&1` in | |
10470 | *"Compilers 5.0"*) | |
10471 | wlarc='' | |
10472 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10473 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10474 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10475 | ;; | |
10476 | *) | |
10477 | wlarc='${wl}' | |
10478 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10479 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10480 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10481 | ;; | |
10482 | esac | |
10483 | fi | |
10484 | hardcode_libdir_flag_spec='-R$libdir' | |
10485 | hardcode_shlibpath_var=no | |
10486 | case $host_os in | |
10487 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10488 | *) | |
10489 | # The compiler driver will combine and reorder linker options, | |
10490 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10491 | # but is careful enough not to reorder. | |
10492 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10493 | if test "$GCC" = yes; then | |
10494 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10495 | else | |
10496 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10497 | fi | |
10498 | ;; | |
10499 | esac | |
10500 | link_all_deplibs=yes | |
10501 | ;; | |
c52df125 | 10502 | |
eec2776c AJ |
10503 | sunos4*) |
10504 | if test "x$host_vendor" = xsequent; then | |
10505 | # Use $CC to link under sequent, because it throws in some extra .o | |
10506 | # files that make .init and .fini sections work. | |
10507 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10508 | else | |
10509 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10510 | fi | |
10511 | hardcode_libdir_flag_spec='-L$libdir' | |
10512 | hardcode_direct=yes | |
10513 | hardcode_minus_L=yes | |
10514 | hardcode_shlibpath_var=no | |
10515 | ;; | |
c52df125 | 10516 | |
eec2776c AJ |
10517 | sysv4) |
10518 | case $host_vendor in | |
10519 | sni) | |
10520 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10521 | hardcode_direct=yes # is this really true??? | |
10522 | ;; | |
10523 | siemens) | |
10524 | ## LD is ld it makes a PLAMLIB | |
10525 | ## CC just makes a GrossModule. | |
10526 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10527 | reload_cmds='$CC -r -o $output$reload_objs' | |
10528 | hardcode_direct=no | |
10529 | ;; | |
10530 | motorola) | |
10531 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10532 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10533 | ;; | |
10534 | esac | |
10535 | runpath_var='LD_RUN_PATH' | |
10536 | hardcode_shlibpath_var=no | |
10537 | ;; | |
c52df125 | 10538 | |
eec2776c AJ |
10539 | sysv4.3*) |
10540 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10541 | hardcode_shlibpath_var=no | |
10542 | export_dynamic_flag_spec='-Bexport' | |
10543 | ;; | |
c52df125 | 10544 | |
eec2776c AJ |
10545 | sysv4*MP*) |
10546 | if test -d /usr/nec; then | |
10547 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10548 | hardcode_shlibpath_var=no | |
10549 | runpath_var=LD_RUN_PATH | |
10550 | hardcode_runpath_var=yes | |
10551 | ld_shlibs=yes | |
10552 | fi | |
10553 | ;; | |
c52df125 | 10554 | |
eec2776c AJ |
10555 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
10556 | no_undefined_flag='${wl}-z,text' | |
10557 | archive_cmds_need_lc=no | |
10558 | hardcode_shlibpath_var=no | |
10559 | runpath_var='LD_RUN_PATH' | |
c52df125 | 10560 | |
eec2776c AJ |
10561 | if test "$GCC" = yes; then |
10562 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10563 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10564 | else | |
10565 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10566 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10567 | fi | |
10568 | ;; | |
c52df125 | 10569 | |
eec2776c AJ |
10570 | sysv5* | sco3.2v5* | sco5v6*) |
10571 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10572 | # link with -lc, and that would cause any symbols used from libc to | |
10573 | # always be unresolved, which means just about no library would | |
10574 | # ever link correctly. If we're not using GNU ld we use -z text | |
10575 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10576 | # as -z defs. | |
10577 | no_undefined_flag='${wl}-z,text' | |
10578 | allow_undefined_flag='${wl}-z,nodefs' | |
10579 | archive_cmds_need_lc=no | |
10580 | hardcode_shlibpath_var=no | |
10581 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10582 | hardcode_libdir_separator=':' | |
10583 | link_all_deplibs=yes | |
10584 | export_dynamic_flag_spec='${wl}-Bexport' | |
10585 | runpath_var='LD_RUN_PATH' | |
c52df125 | 10586 | |
eec2776c AJ |
10587 | if test "$GCC" = yes; then |
10588 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10589 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10590 | else | |
10591 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10592 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10593 | fi | |
10594 | ;; | |
c52df125 | 10595 | |
eec2776c AJ |
10596 | uts4*) |
10597 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10598 | hardcode_libdir_flag_spec='-L$libdir' | |
10599 | hardcode_shlibpath_var=no | |
10600 | ;; | |
c52df125 | 10601 | |
eec2776c AJ |
10602 | *) |
10603 | ld_shlibs=no | |
10604 | ;; | |
10605 | esac | |
c52df125 | 10606 | |
eec2776c AJ |
10607 | if test x$host_vendor = xsni; then |
10608 | case $host in | |
10609 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10610 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10611 | ;; | |
10612 | esac | |
10613 | fi | |
10614 | fi | |
c52df125 | 10615 | |
eec2776c AJ |
10616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
10617 | $as_echo "$ld_shlibs" >&6; } | |
10618 | test "$ld_shlibs" = no && can_build_shared=no | |
c52df125 | 10619 | |
eec2776c | 10620 | with_gnu_ld=$with_gnu_ld |
c52df125 AC |
10621 | |
10622 | ||
10623 | ||
10624 | ||
10625 | ||
10626 | ||
10627 | ||
10628 | ||
10629 | ||
10630 | ||
10631 | ||
10632 | ||
10633 | ||
10634 | ||
10635 | ||
eec2776c AJ |
10636 | # |
10637 | # Do we need to explicitly link libc? | |
10638 | # | |
10639 | case "x$archive_cmds_need_lc" in | |
10640 | x|xyes) | |
10641 | # Assume -lc should be added | |
10642 | archive_cmds_need_lc=yes | |
c52df125 | 10643 | |
eec2776c AJ |
10644 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
10645 | case $archive_cmds in | |
10646 | *'~'*) | |
10647 | # FIXME: we may have to deal with multi-command sequences. | |
10648 | ;; | |
10649 | '$CC '*) | |
10650 | # Test whether the compiler implicitly links with -lc since on some | |
10651 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10652 | # to ld, don't add -lc before -lgcc. | |
10653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10654 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10655 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10656 | $as_echo_n "(cached) " >&6 | |
10657 | else | |
10658 | $RM conftest* | |
10659 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
c52df125 | 10660 | |
eec2776c AJ |
10661 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
10662 | (eval $ac_compile) 2>&5 | |
10663 | ac_status=$? | |
10664 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10665 | test $ac_status = 0; } 2>conftest.err; then | |
10666 | soname=conftest | |
10667 | lib=conftest | |
10668 | libobjs=conftest.$ac_objext | |
10669 | deplibs= | |
10670 | wl=$lt_prog_compiler_wl | |
10671 | pic_flag=$lt_prog_compiler_pic | |
10672 | compiler_flags=-v | |
10673 | linker_flags=-v | |
10674 | verstring= | |
10675 | output_objdir=. | |
10676 | libname=conftest | |
10677 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10678 | allow_undefined_flag= | |
10679 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10680 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10681 | ac_status=$? | |
10682 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10683 | test $ac_status = 0; } | |
10684 | then | |
10685 | lt_cv_archive_cmds_need_lc=no | |
10686 | else | |
10687 | lt_cv_archive_cmds_need_lc=yes | |
10688 | fi | |
10689 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10690 | else | |
10691 | cat conftest.err 1>&5 | |
10692 | fi | |
10693 | $RM conftest* | |
c52df125 | 10694 | |
eec2776c AJ |
10695 | fi |
10696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10697 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10698 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10699 | ;; | |
10700 | esac | |
10701 | fi | |
10702 | ;; | |
10703 | esac | |
c52df125 AC |
10704 | |
10705 | ||
10706 | ||
10707 | ||
10708 | ||
10709 | ||
10710 | ||
10711 | ||
c52df125 | 10712 | |
c52df125 | 10713 | |
c52df125 AC |
10714 | |
10715 | ||
10716 | ||
10717 | ||
10718 | ||
10719 | ||
c52df125 | 10720 | |
c52df125 | 10721 | |
c52df125 | 10722 | |
c52df125 | 10723 | |
c52df125 | 10724 | |
c52df125 | 10725 | |
c52df125 | 10726 | |
c52df125 | 10727 | |
c52df125 | 10728 | |
c52df125 | 10729 | |
c52df125 | 10730 | |
c52df125 | 10731 | |
eec2776c AJ |
10732 | |
10733 | ||
10734 | ||
10735 | ||
10736 | ||
10737 | ||
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10857 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10858 | ||
10859 | if test "$GCC" = yes; then | |
10860 | case $host_os in | |
10861 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10862 | *) lt_awk_arg="/^libraries:/" ;; | |
10863 | esac | |
10864 | case $host_os in | |
10865 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10866 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10867 | esac | |
10868 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10869 | case $lt_search_path_spec in | |
10870 | *\;*) | |
10871 | # if the path contains ";" then we assume it to be the separator | |
10872 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10873 | # assumed that no part of a normal pathname contains ";" but that should | |
10874 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10875 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10876 | ;; | |
10877 | *) | |
10878 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10879 | ;; | |
10880 | esac | |
10881 | # Ok, now we have the path, separated by spaces, we can step through it | |
10882 | # and add multilib dir if necessary. | |
10883 | lt_tmp_lt_search_path_spec= | |
10884 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10885 | for lt_sys_path in $lt_search_path_spec; do | |
10886 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10887 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10888 | else | |
10889 | test -d "$lt_sys_path" && \ | |
10890 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10891 | fi | |
10892 | done | |
10893 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10894 | BEGIN {RS=" "; FS="/|\n";} { | |
10895 | lt_foo=""; | |
10896 | lt_count=0; | |
10897 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10898 | if ($lt_i != "" && $lt_i != ".") { | |
10899 | if ($lt_i == "..") { | |
10900 | lt_count++; | |
10901 | } else { | |
10902 | if (lt_count == 0) { | |
10903 | lt_foo="/" $lt_i lt_foo; | |
10904 | } else { | |
10905 | lt_count--; | |
10906 | } | |
10907 | } | |
10908 | } | |
10909 | } | |
10910 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10911 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10912 | }'` | |
10913 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
10914 | # for these hosts. | |
10915 | case $host_os in | |
10916 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10917 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10918 | esac | |
10919 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10920 | else | |
10921 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10922 | fi | |
10923 | library_names_spec= | |
10924 | libname_spec='lib$name' | |
10925 | soname_spec= | |
10926 | shrext_cmds=".so" | |
10927 | postinstall_cmds= | |
10928 | postuninstall_cmds= | |
10929 | finish_cmds= | |
10930 | finish_eval= | |
10931 | shlibpath_var= | |
10932 | shlibpath_overrides_runpath=unknown | |
10933 | version_type=none | |
10934 | dynamic_linker="$host_os ld.so" | |
10935 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10936 | need_lib_prefix=unknown | |
10937 | hardcode_into_libs=no | |
10938 | ||
10939 | # when you set need_version to no, make sure it does not cause -set_version | |
10940 | # flags to be left without arguments | |
10941 | need_version=unknown | |
10942 | ||
10943 | case $host_os in | |
10944 | aix3*) | |
10945 | version_type=linux # correct to gnu/linux during the next big refactor | |
10946 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10947 | shlibpath_var=LIBPATH | |
10948 | ||
10949 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10950 | soname_spec='${libname}${release}${shared_ext}$major' | |
10951 | ;; | |
10952 | ||
10953 | aix[4-9]*) | |
10954 | version_type=linux # correct to gnu/linux during the next big refactor | |
10955 | need_lib_prefix=no | |
10956 | need_version=no | |
10957 | hardcode_into_libs=yes | |
10958 | if test "$host_cpu" = ia64; then | |
10959 | # AIX 5 supports IA64 | |
10960 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10961 | shlibpath_var=LD_LIBRARY_PATH | |
10962 | else | |
10963 | # With GCC up to 2.95.x, collect2 would create an import file | |
10964 | # for dependence libraries. The import file would start with | |
10965 | # the line `#! .'. This would cause the generated library to | |
10966 | # depend on `.', always an invalid library. This was fixed in | |
10967 | # development snapshots of GCC prior to 3.0. | |
10968 | case $host_os in | |
10969 | aix4 | aix4.[01] | aix4.[01].*) | |
10970 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10971 | echo ' yes ' | |
10972 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10973 | : | |
10974 | else | |
10975 | can_build_shared=no | |
10976 | fi | |
10977 | ;; | |
10978 | esac | |
10979 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10980 | # soname into executable. Probably we can add versioning support to | |
10981 | # collect2, so additional links can be useful in future. | |
10982 | if test "$aix_use_runtimelinking" = yes; then | |
10983 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10984 | # instead of lib<name>.a to let people know that these are not | |
10985 | # typical AIX shared libraries. | |
10986 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10987 | else | |
10988 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10989 | # and later when we are not doing run time linking. | |
10990 | library_names_spec='${libname}${release}.a $libname.a' | |
10991 | soname_spec='${libname}${release}${shared_ext}$major' | |
10992 | fi | |
10993 | shlibpath_var=LIBPATH | |
10994 | fi | |
10995 | ;; | |
10996 | ||
10997 | amigaos*) | |
10998 | case $host_cpu in | |
10999 | powerpc) | |
11000 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
11001 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
11002 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11003 | ;; | |
11004 | m68k) | |
11005 | library_names_spec='$libname.ixlibrary $libname.a' | |
11006 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
11007 | 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' | |
11008 | ;; | |
11009 | esac | |
11010 | ;; | |
11011 | ||
11012 | beos*) | |
11013 | library_names_spec='${libname}${shared_ext}' | |
11014 | dynamic_linker="$host_os ld.so" | |
11015 | shlibpath_var=LIBRARY_PATH | |
11016 | ;; | |
11017 | ||
11018 | bsdi[45]*) | |
11019 | version_type=linux # correct to gnu/linux during the next big refactor | |
11020 | need_version=no | |
11021 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11022 | soname_spec='${libname}${release}${shared_ext}$major' | |
11023 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
11024 | shlibpath_var=LD_LIBRARY_PATH | |
11025 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
11026 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
11027 | # the default ld.so.conf also contains /usr/contrib/lib and | |
11028 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
11029 | # libtool to hard-code these into programs | |
11030 | ;; | |
11031 | ||
11032 | cygwin* | mingw* | pw32* | cegcc*) | |
11033 | version_type=windows | |
11034 | shrext_cmds=".dll" | |
11035 | need_version=no | |
11036 | need_lib_prefix=no | |
11037 | ||
11038 | case $GCC,$cc_basename in | |
11039 | yes,*) | |
11040 | # gcc | |
11041 | library_names_spec='$libname.dll.a' | |
11042 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11043 | postinstall_cmds='base_file=`basename \${file}`~ | |
11044 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11045 | dldir=$destdir/`dirname \$dlpath`~ | |
11046 | test -d \$dldir || mkdir -p \$dldir~ | |
11047 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11048 | chmod a+x \$dldir/$dlname~ | |
11049 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11050 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11051 | fi' | |
11052 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11053 | dlpath=$dir/\$dldll~ | |
11054 | $RM \$dlpath' | |
11055 | shlibpath_overrides_runpath=yes | |
11056 | ||
11057 | case $host_os in | |
11058 | cygwin*) | |
11059 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
11060 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11061 | ||
11062 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
11063 | ;; | |
11064 | mingw* | cegcc*) | |
11065 | # MinGW DLLs use traditional 'lib' prefix | |
11066 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11067 | ;; | |
11068 | pw32*) | |
11069 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
11070 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11071 | ;; | |
11072 | esac | |
11073 | dynamic_linker='Win32 ld.exe' | |
11074 | ;; | |
11075 | ||
11076 | *,cl*) | |
11077 | # Native MSVC | |
11078 | libname_spec='$name' | |
11079 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
11080 | library_names_spec='${libname}.dll.lib' | |
11081 | ||
11082 | case $build_os in | |
11083 | mingw*) | |
11084 | sys_lib_search_path_spec= | |
11085 | lt_save_ifs=$IFS | |
11086 | IFS=';' | |
11087 | for lt_path in $LIB | |
11088 | do | |
11089 | IFS=$lt_save_ifs | |
11090 | # Let DOS variable expansion print the short 8.3 style file name. | |
11091 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
11092 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
11093 | done | |
11094 | IFS=$lt_save_ifs | |
11095 | # Convert to MSYS style. | |
11096 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
11097 | ;; | |
11098 | cygwin*) | |
11099 | # Convert to unix form, then to dos form, then back to unix form | |
11100 | # but this time dos style (no spaces!) so that the unix form looks | |
11101 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
11102 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
11103 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
11104 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11105 | ;; | |
11106 | *) | |
11107 | sys_lib_search_path_spec="$LIB" | |
11108 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
11109 | # It is most probably a Windows format PATH. | |
11110 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
11111 | else | |
11112 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
11113 | fi | |
11114 | # FIXME: find the short name or the path components, as spaces are | |
11115 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
11116 | ;; | |
11117 | esac | |
11118 | ||
11119 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
11120 | postinstall_cmds='base_file=`basename \${file}`~ | |
11121 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
11122 | dldir=$destdir/`dirname \$dlpath`~ | |
11123 | test -d \$dldir || mkdir -p \$dldir~ | |
11124 | $install_prog $dir/$dlname \$dldir/$dlname' | |
11125 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
11126 | dlpath=$dir/\$dldll~ | |
11127 | $RM \$dlpath' | |
11128 | shlibpath_overrides_runpath=yes | |
11129 | dynamic_linker='Win32 link.exe' | |
11130 | ;; | |
11131 | ||
11132 | *) | |
11133 | # Assume MSVC wrapper | |
11134 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
11135 | dynamic_linker='Win32 ld.exe' | |
11136 | ;; | |
11137 | esac | |
11138 | # FIXME: first we should search . and the directory the executable is in | |
11139 | shlibpath_var=PATH | |
11140 | ;; | |
11141 | ||
11142 | darwin* | rhapsody*) | |
11143 | dynamic_linker="$host_os dyld" | |
11144 | version_type=darwin | |
11145 | need_lib_prefix=no | |
11146 | need_version=no | |
11147 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11148 | soname_spec='${libname}${release}${major}$shared_ext' | |
11149 | shlibpath_overrides_runpath=yes | |
11150 | shlibpath_var=DYLD_LIBRARY_PATH | |
11151 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11152 | ||
11153 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11154 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11155 | ;; | |
11156 | ||
11157 | dgux*) | |
11158 | version_type=linux # correct to gnu/linux during the next big refactor | |
11159 | need_lib_prefix=no | |
11160 | need_version=no | |
11161 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11162 | soname_spec='${libname}${release}${shared_ext}$major' | |
11163 | shlibpath_var=LD_LIBRARY_PATH | |
11164 | ;; | |
11165 | ||
11166 | freebsd* | dragonfly*) | |
11167 | # DragonFly does not have aout. When/if they implement a new | |
11168 | # versioning mechanism, adjust this. | |
11169 | if test -x /usr/bin/objformat; then | |
11170 | objformat=`/usr/bin/objformat` | |
11171 | else | |
11172 | case $host_os in | |
11173 | freebsd[23].*) objformat=aout ;; | |
11174 | *) objformat=elf ;; | |
11175 | esac | |
11176 | fi | |
11177 | version_type=freebsd-$objformat | |
11178 | case $version_type in | |
11179 | freebsd-elf*) | |
11180 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11181 | need_version=no | |
11182 | need_lib_prefix=no | |
11183 | ;; | |
11184 | freebsd-*) | |
11185 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11186 | need_version=yes | |
11187 | ;; | |
11188 | esac | |
11189 | shlibpath_var=LD_LIBRARY_PATH | |
11190 | case $host_os in | |
11191 | freebsd2.*) | |
11192 | shlibpath_overrides_runpath=yes | |
11193 | ;; | |
11194 | freebsd3.[01]* | freebsdelf3.[01]*) | |
11195 | shlibpath_overrides_runpath=yes | |
11196 | hardcode_into_libs=yes | |
11197 | ;; | |
11198 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11199 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11200 | shlibpath_overrides_runpath=no | |
11201 | hardcode_into_libs=yes | |
11202 | ;; | |
11203 | *) # from 4.6 on, and DragonFly | |
11204 | shlibpath_overrides_runpath=yes | |
11205 | hardcode_into_libs=yes | |
11206 | ;; | |
11207 | esac | |
11208 | ;; | |
11209 | ||
11210 | haiku*) | |
11211 | version_type=linux # correct to gnu/linux during the next big refactor | |
11212 | need_lib_prefix=no | |
11213 | need_version=no | |
11214 | dynamic_linker="$host_os runtime_loader" | |
11215 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11216 | soname_spec='${libname}${release}${shared_ext}$major' | |
11217 | shlibpath_var=LIBRARY_PATH | |
11218 | shlibpath_overrides_runpath=yes | |
11219 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11220 | hardcode_into_libs=yes | |
11221 | ;; | |
11222 | ||
11223 | hpux9* | hpux10* | hpux11*) | |
11224 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
11225 | # link against other versions. | |
11226 | version_type=sunos | |
11227 | need_lib_prefix=no | |
11228 | need_version=no | |
11229 | case $host_cpu in | |
11230 | ia64*) | |
11231 | shrext_cmds='.so' | |
11232 | hardcode_into_libs=yes | |
11233 | dynamic_linker="$host_os dld.so" | |
11234 | shlibpath_var=LD_LIBRARY_PATH | |
11235 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11236 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11237 | soname_spec='${libname}${release}${shared_ext}$major' | |
11238 | if test "X$HPUX_IA64_MODE" = X32; then | |
11239 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11240 | else | |
11241 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11242 | fi | |
11243 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11244 | ;; | |
11245 | hppa*64*) | |
11246 | shrext_cmds='.sl' | |
11247 | hardcode_into_libs=yes | |
11248 | dynamic_linker="$host_os dld.sl" | |
11249 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11250 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11251 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11252 | soname_spec='${libname}${release}${shared_ext}$major' | |
11253 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11254 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11255 | ;; | |
11256 | *) | |
11257 | shrext_cmds='.sl' | |
11258 | dynamic_linker="$host_os dld.sl" | |
11259 | shlibpath_var=SHLIB_PATH | |
11260 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11261 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11262 | soname_spec='${libname}${release}${shared_ext}$major' | |
11263 | ;; | |
11264 | esac | |
11265 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11266 | postinstall_cmds='chmod 555 $lib' | |
11267 | # or fails outright, so override atomically: | |
11268 | install_override_mode=555 | |
11269 | ;; | |
11270 | ||
11271 | interix[3-9]*) | |
11272 | version_type=linux # correct to gnu/linux during the next big refactor | |
11273 | need_lib_prefix=no | |
11274 | need_version=no | |
11275 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11276 | soname_spec='${libname}${release}${shared_ext}$major' | |
11277 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11278 | shlibpath_var=LD_LIBRARY_PATH | |
11279 | shlibpath_overrides_runpath=no | |
11280 | hardcode_into_libs=yes | |
11281 | ;; | |
11282 | ||
11283 | irix5* | irix6* | nonstopux*) | |
11284 | case $host_os in | |
11285 | nonstopux*) version_type=nonstopux ;; | |
11286 | *) | |
11287 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
11288 | version_type=linux # correct to gnu/linux during the next big refactor | |
11289 | else | |
11290 | version_type=irix | |
11291 | fi ;; | |
11292 | esac | |
11293 | need_lib_prefix=no | |
11294 | need_version=no | |
11295 | soname_spec='${libname}${release}${shared_ext}$major' | |
11296 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11297 | case $host_os in | |
11298 | irix5* | nonstopux*) | |
11299 | libsuff= shlibsuff= | |
11300 | ;; | |
11301 | *) | |
11302 | case $LD in # libtool.m4 will add one of these switches to LD | |
11303 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11304 | libsuff= shlibsuff= libmagic=32-bit;; | |
11305 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11306 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11307 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11308 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11309 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11310 | esac | |
11311 | ;; | |
11312 | esac | |
11313 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11314 | shlibpath_overrides_runpath=no | |
11315 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11316 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11317 | hardcode_into_libs=yes | |
11318 | ;; | |
11319 | ||
11320 | # No shared lib support for Linux oldld, aout, or coff. | |
11321 | linux*oldld* | linux*aout* | linux*coff*) | |
11322 | dynamic_linker=no | |
11323 | ;; | |
11324 | ||
11325 | # This must be glibc/ELF. | |
11326 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11327 | version_type=linux # correct to gnu/linux during the next big refactor | |
11328 | need_lib_prefix=no | |
11329 | need_version=no | |
11330 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11331 | soname_spec='${libname}${release}${shared_ext}$major' | |
11332 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11333 | shlibpath_var=LD_LIBRARY_PATH | |
11334 | shlibpath_overrides_runpath=no | |
11335 | ||
11336 | # Some binutils ld are patched to set DT_RUNPATH | |
11337 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
c52df125 AC |
11338 | $as_echo_n "(cached) " >&6 |
11339 | else | |
eec2776c AJ |
11340 | lt_cv_shlibpath_overrides_runpath=no |
11341 | save_LDFLAGS=$LDFLAGS | |
11342 | save_libdir=$libdir | |
11343 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11344 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 AC |
11346 | /* end confdefs.h. */ |
11347 | ||
c52df125 AC |
11348 | int |
11349 | main () | |
11350 | { | |
eec2776c | 11351 | |
c52df125 AC |
11352 | ; |
11353 | return 0; | |
11354 | } | |
11355 | _ACEOF | |
11356 | if ac_fn_c_try_link "$LINENO"; then : | |
eec2776c AJ |
11357 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
11358 | lt_cv_shlibpath_overrides_runpath=yes | |
11359 | fi | |
c52df125 AC |
11360 | fi |
11361 | rm -f core conftest.err conftest.$ac_objext \ | |
11362 | conftest$ac_exeext conftest.$ac_ext | |
eec2776c AJ |
11363 | LDFLAGS=$save_LDFLAGS |
11364 | libdir=$save_libdir | |
c52df125 AC |
11365 | |
11366 | fi | |
11367 | ||
eec2776c | 11368 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
c52df125 | 11369 | |
eec2776c AJ |
11370 | # This implies no fast_install, which is unacceptable. |
11371 | # Some rework will be needed to allow for fast_install | |
11372 | # before this can be enabled. | |
11373 | hardcode_into_libs=yes | |
c52df125 | 11374 | |
eec2776c AJ |
11375 | # Append ld.so.conf contents to the search path |
11376 | if test -f /etc/ld.so.conf; then | |
11377 | 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' ' '` | |
11378 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11379 | fi | |
c52df125 | 11380 | |
eec2776c AJ |
11381 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
11382 | # powerpc, because MkLinux only supported shared libraries with the | |
11383 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11384 | # most powerpc-linux boxes support dynamic linking these days and | |
11385 | # people can always --disable-shared, the test was removed, and we | |
11386 | # assume the GNU/Linux dynamic linker is in use. | |
11387 | dynamic_linker='GNU/Linux ld.so' | |
11388 | ;; | |
c52df125 | 11389 | |
eec2776c AJ |
11390 | netbsdelf*-gnu) |
11391 | version_type=linux | |
11392 | need_lib_prefix=no | |
11393 | need_version=no | |
11394 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11395 | soname_spec='${libname}${release}${shared_ext}$major' | |
11396 | shlibpath_var=LD_LIBRARY_PATH | |
11397 | shlibpath_overrides_runpath=no | |
11398 | hardcode_into_libs=yes | |
11399 | dynamic_linker='NetBSD ld.elf_so' | |
11400 | ;; | |
c52df125 | 11401 | |
eec2776c AJ |
11402 | netbsd*) |
11403 | version_type=sunos | |
11404 | need_lib_prefix=no | |
11405 | need_version=no | |
11406 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11407 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11408 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11409 | dynamic_linker='NetBSD (a.out) ld.so' | |
11410 | else | |
11411 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11412 | soname_spec='${libname}${release}${shared_ext}$major' | |
11413 | dynamic_linker='NetBSD ld.elf_so' | |
11414 | fi | |
11415 | shlibpath_var=LD_LIBRARY_PATH | |
11416 | shlibpath_overrides_runpath=yes | |
11417 | hardcode_into_libs=yes | |
11418 | ;; | |
c52df125 | 11419 | |
eec2776c AJ |
11420 | newsos6) |
11421 | version_type=linux # correct to gnu/linux during the next big refactor | |
11422 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11423 | shlibpath_var=LD_LIBRARY_PATH | |
11424 | shlibpath_overrides_runpath=yes | |
11425 | ;; | |
c52df125 | 11426 | |
eec2776c AJ |
11427 | *nto* | *qnx*) |
11428 | version_type=qnx | |
11429 | need_lib_prefix=no | |
11430 | need_version=no | |
11431 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11432 | soname_spec='${libname}${release}${shared_ext}$major' | |
11433 | shlibpath_var=LD_LIBRARY_PATH | |
11434 | shlibpath_overrides_runpath=no | |
11435 | hardcode_into_libs=yes | |
11436 | dynamic_linker='ldqnx.so' | |
11437 | ;; | |
c52df125 | 11438 | |
eec2776c AJ |
11439 | openbsd*) |
11440 | version_type=sunos | |
11441 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11442 | need_lib_prefix=no | |
11443 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11444 | case $host_os in | |
11445 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11446 | *) need_version=no ;; | |
c52df125 | 11447 | esac |
eec2776c AJ |
11448 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
11449 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11450 | shlibpath_var=LD_LIBRARY_PATH | |
11451 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11452 | case $host_os in | |
11453 | openbsd2.[89] | openbsd2.[89].*) | |
11454 | shlibpath_overrides_runpath=no | |
11455 | ;; | |
11456 | *) | |
11457 | shlibpath_overrides_runpath=yes | |
11458 | ;; | |
11459 | esac | |
c52df125 | 11460 | else |
eec2776c | 11461 | shlibpath_overrides_runpath=yes |
c52df125 | 11462 | fi |
eec2776c | 11463 | ;; |
c52df125 | 11464 | |
eec2776c AJ |
11465 | os2*) |
11466 | libname_spec='$name' | |
11467 | shrext_cmds=".dll" | |
11468 | need_lib_prefix=no | |
11469 | library_names_spec='$libname${shared_ext} $libname.a' | |
11470 | dynamic_linker='OS/2 ld.exe' | |
11471 | shlibpath_var=LIBPATH | |
11472 | ;; | |
c52df125 | 11473 | |
eec2776c AJ |
11474 | osf3* | osf4* | osf5*) |
11475 | version_type=osf | |
11476 | need_lib_prefix=no | |
11477 | need_version=no | |
11478 | soname_spec='${libname}${release}${shared_ext}$major' | |
11479 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11480 | shlibpath_var=LD_LIBRARY_PATH | |
11481 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11482 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11483 | ;; | |
c52df125 | 11484 | |
eec2776c AJ |
11485 | rdos*) |
11486 | dynamic_linker=no | |
11487 | ;; | |
c52df125 | 11488 | |
eec2776c AJ |
11489 | solaris*) |
11490 | version_type=linux # correct to gnu/linux during the next big refactor | |
11491 | need_lib_prefix=no | |
11492 | need_version=no | |
11493 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11494 | soname_spec='${libname}${release}${shared_ext}$major' | |
11495 | shlibpath_var=LD_LIBRARY_PATH | |
11496 | shlibpath_overrides_runpath=yes | |
11497 | hardcode_into_libs=yes | |
11498 | # ldd complains unless libraries are executable | |
11499 | postinstall_cmds='chmod +x $lib' | |
11500 | ;; | |
c52df125 | 11501 | |
eec2776c AJ |
11502 | sunos4*) |
11503 | version_type=sunos | |
11504 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11505 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11506 | shlibpath_var=LD_LIBRARY_PATH | |
11507 | shlibpath_overrides_runpath=yes | |
11508 | if test "$with_gnu_ld" = yes; then | |
11509 | need_lib_prefix=no | |
11510 | fi | |
11511 | need_version=yes | |
11512 | ;; | |
c52df125 | 11513 | |
eec2776c AJ |
11514 | sysv4 | sysv4.3*) |
11515 | version_type=linux # correct to gnu/linux during the next big refactor | |
11516 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11517 | soname_spec='${libname}${release}${shared_ext}$major' | |
11518 | shlibpath_var=LD_LIBRARY_PATH | |
11519 | case $host_vendor in | |
11520 | sni) | |
11521 | shlibpath_overrides_runpath=no | |
11522 | need_lib_prefix=no | |
11523 | runpath_var=LD_RUN_PATH | |
11524 | ;; | |
11525 | siemens) | |
11526 | need_lib_prefix=no | |
11527 | ;; | |
11528 | motorola) | |
11529 | need_lib_prefix=no | |
11530 | need_version=no | |
11531 | shlibpath_overrides_runpath=no | |
11532 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11533 | ;; | |
11534 | esac | |
11535 | ;; | |
c52df125 | 11536 | |
eec2776c AJ |
11537 | sysv4*MP*) |
11538 | if test -d /usr/nec ;then | |
11539 | version_type=linux # correct to gnu/linux during the next big refactor | |
11540 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11541 | soname_spec='$libname${shared_ext}.$major' | |
11542 | shlibpath_var=LD_LIBRARY_PATH | |
11543 | fi | |
11544 | ;; | |
c52df125 | 11545 | |
eec2776c AJ |
11546 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
11547 | version_type=freebsd-elf | |
11548 | need_lib_prefix=no | |
11549 | need_version=no | |
11550 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11551 | soname_spec='${libname}${release}${shared_ext}$major' | |
11552 | shlibpath_var=LD_LIBRARY_PATH | |
11553 | shlibpath_overrides_runpath=yes | |
11554 | hardcode_into_libs=yes | |
11555 | if test "$with_gnu_ld" = yes; then | |
11556 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
c52df125 | 11557 | else |
eec2776c AJ |
11558 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
11559 | case $host_os in | |
11560 | sco3.2v5*) | |
11561 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11562 | ;; | |
c52df125 | 11563 | esac |
c52df125 | 11564 | fi |
eec2776c AJ |
11565 | sys_lib_dlsearch_path_spec='/usr/lib' |
11566 | ;; | |
c52df125 | 11567 | |
eec2776c AJ |
11568 | tpf*) |
11569 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11570 | version_type=linux # correct to gnu/linux during the next big refactor | |
11571 | need_lib_prefix=no | |
11572 | need_version=no | |
11573 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11574 | shlibpath_var=LD_LIBRARY_PATH | |
11575 | shlibpath_overrides_runpath=no | |
11576 | hardcode_into_libs=yes | |
11577 | ;; | |
c52df125 | 11578 | |
eec2776c AJ |
11579 | uts4*) |
11580 | version_type=linux # correct to gnu/linux during the next big refactor | |
11581 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11582 | soname_spec='${libname}${release}${shared_ext}$major' | |
11583 | shlibpath_var=LD_LIBRARY_PATH | |
11584 | ;; | |
c52df125 | 11585 | |
eec2776c AJ |
11586 | *) |
11587 | dynamic_linker=no | |
11588 | ;; | |
11589 | esac | |
11590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11591 | $as_echo "$dynamic_linker" >&6; } | |
11592 | test "$dynamic_linker" = no && can_build_shared=no | |
c52df125 | 11593 | |
eec2776c AJ |
11594 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
11595 | if test "$GCC" = yes; then | |
11596 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11597 | fi | |
c52df125 | 11598 | |
eec2776c AJ |
11599 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
11600 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11601 | fi | |
11602 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11603 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11604 | fi | |
c52df125 | 11605 | |
c52df125 | 11606 | |
c52df125 | 11607 | |
c52df125 | 11608 | |
c52df125 | 11609 | |
c52df125 | 11610 | |
c52df125 AC |
11611 | |
11612 | ||
c52df125 | 11613 | |
c52df125 | 11614 | |
c52df125 | 11615 | |
c52df125 AC |
11616 | |
11617 | ||
11618 | ||
11619 | ||
11620 | ||
11621 | ||
11622 | ||
11623 | ||
11624 | ||
11625 | ||
11626 | ||
11627 | ||
11628 | ||
11629 | ||
11630 | ||
11631 | ||
11632 | ||
c52df125 AC |
11633 | |
11634 | ||
11635 | ||
11636 | ||
11637 | ||
11638 | ||
11639 | ||
11640 | ||
11641 | ||
11642 | ||
11643 | ||
11644 | ||
c52df125 | 11645 | |
c52df125 | 11646 | |
c52df125 | 11647 | |
c52df125 | 11648 | |
c52df125 AC |
11649 | |
11650 | ||
11651 | ||
11652 | ||
c52df125 | 11653 | |
c52df125 AC |
11654 | |
11655 | ||
11656 | ||
11657 | ||
11658 | ||
11659 | ||
11660 | ||
11661 | ||
11662 | ||
11663 | ||
11664 | ||
11665 | ||
11666 | ||
11667 | ||
11668 | ||
c52df125 AC |
11669 | |
11670 | ||
11671 | ||
11672 | ||
c52df125 AC |
11673 | |
11674 | ||
11675 | ||
11676 | ||
11677 | ||
11678 | ||
11679 | ||
11680 | ||
11681 | ||
11682 | ||
c52df125 | 11683 | |
c52df125 | 11684 | |
c52df125 | 11685 | |
c52df125 | 11686 | |
c52df125 | 11687 | |
c52df125 | 11688 | |
c52df125 | 11689 | |
c52df125 | 11690 | |
c52df125 | 11691 | |
c52df125 | 11692 | |
eec2776c AJ |
11693 | |
11694 | ||
11695 | ||
11696 | ||
11697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11698 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11699 | hardcode_action= | |
11700 | if test -n "$hardcode_libdir_flag_spec" || | |
11701 | test -n "$runpath_var" || | |
11702 | test "X$hardcode_automatic" = "Xyes" ; then | |
11703 | ||
11704 | # We can hardcode non-existent directories. | |
11705 | if test "$hardcode_direct" != no && | |
11706 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11707 | # have to relink, otherwise we might link with an installed library | |
11708 | # when we should be linking with a yet-to-be-installed one | |
11709 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11710 | test "$hardcode_minus_L" != no; then | |
11711 | # Linking always hardcodes the temporary library directory. | |
11712 | hardcode_action=relink | |
11713 | else | |
11714 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11715 | hardcode_action=immediate | |
11716 | fi | |
c52df125 | 11717 | else |
eec2776c AJ |
11718 | # We cannot hardcode anything, or else we can only hardcode existing |
11719 | # directories. | |
11720 | hardcode_action=unsupported | |
c52df125 | 11721 | fi |
eec2776c AJ |
11722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11723 | $as_echo "$hardcode_action" >&6; } | |
c52df125 | 11724 | |
eec2776c AJ |
11725 | if test "$hardcode_action" = relink || |
11726 | test "$inherit_rpath" = yes; then | |
11727 | # Fast installation is not supported | |
11728 | enable_fast_install=no | |
11729 | elif test "$shlibpath_overrides_runpath" = yes || | |
11730 | test "$enable_shared" = no; then | |
11731 | # Fast installation is not necessary | |
11732 | enable_fast_install=needless | |
c52df125 AC |
11733 | fi |
11734 | ||
11735 | ||
c52df125 AC |
11736 | |
11737 | ||
c52df125 AC |
11738 | |
11739 | ||
eec2776c AJ |
11740 | if test "x$enable_dlopen" != xyes; then |
11741 | enable_dlopen=unknown | |
11742 | enable_dlopen_self=unknown | |
11743 | enable_dlopen_self_static=unknown | |
11744 | else | |
11745 | lt_cv_dlopen=no | |
11746 | lt_cv_dlopen_libs= | |
11747 | ||
11748 | case $host_os in | |
11749 | beos*) | |
11750 | lt_cv_dlopen="load_add_on" | |
11751 | lt_cv_dlopen_libs= | |
11752 | lt_cv_dlopen_self=yes | |
11753 | ;; | |
11754 | ||
11755 | mingw* | pw32* | cegcc*) | |
11756 | lt_cv_dlopen="LoadLibrary" | |
11757 | lt_cv_dlopen_libs= | |
11758 | ;; | |
11759 | ||
11760 | cygwin*) | |
11761 | lt_cv_dlopen="dlopen" | |
11762 | lt_cv_dlopen_libs= | |
11763 | ;; | |
11764 | ||
11765 | darwin*) | |
11766 | # if libdl is installed we need to link against it | |
11767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11768 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11769 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
c52df125 AC |
11770 | $as_echo_n "(cached) " >&6 |
11771 | else | |
eec2776c AJ |
11772 | ac_check_lib_save_LIBS=$LIBS |
11773 | LIBS="-ldl $LIBS" | |
c52df125 AC |
11774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11775 | /* end confdefs.h. */ | |
11776 | ||
11777 | /* Override any GCC internal prototype to avoid an error. | |
11778 | Use char because int might match the return type of a GCC | |
11779 | builtin and then its argument prototype would still apply. */ | |
11780 | #ifdef __cplusplus | |
11781 | extern "C" | |
11782 | #endif | |
11783 | char dlopen (); | |
11784 | int | |
11785 | main () | |
11786 | { | |
11787 | return dlopen (); | |
11788 | ; | |
11789 | return 0; | |
11790 | } | |
11791 | _ACEOF | |
eec2776c AJ |
11792 | if ac_fn_c_try_link "$LINENO"; then : |
11793 | ac_cv_lib_dl_dlopen=yes | |
11794 | else | |
11795 | ac_cv_lib_dl_dlopen=no | |
c52df125 AC |
11796 | fi |
11797 | rm -f core conftest.err conftest.$ac_objext \ | |
eec2776c AJ |
11798 | conftest$ac_exeext conftest.$ac_ext |
11799 | LIBS=$ac_check_lib_save_LIBS | |
c52df125 | 11800 | fi |
eec2776c AJ |
11801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11802 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11803 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11804 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
c52df125 | 11805 | else |
eec2776c AJ |
11806 | |
11807 | lt_cv_dlopen="dyld" | |
11808 | lt_cv_dlopen_libs= | |
11809 | lt_cv_dlopen_self=yes | |
11810 | ||
c52df125 | 11811 | fi |
c52df125 | 11812 | |
eec2776c | 11813 | ;; |
c52df125 | 11814 | |
eec2776c AJ |
11815 | *) |
11816 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11817 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
11818 | lt_cv_dlopen="shl_load" | |
c52df125 | 11819 | else |
eec2776c AJ |
11820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
11821 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11822 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11823 | $as_echo_n "(cached) " >&6 | |
11824 | else | |
11825 | ac_check_lib_save_LIBS=$LIBS | |
11826 | LIBS="-ldld $LIBS" | |
11827 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
c52df125 | 11828 | /* end confdefs.h. */ |
c52df125 | 11829 | |
eec2776c AJ |
11830 | /* Override any GCC internal prototype to avoid an error. |
11831 | Use char because int might match the return type of a GCC | |
11832 | builtin and then its argument prototype would still apply. */ | |
11833 | #ifdef __cplusplus | |
11834 | extern "C" | |
11835 | #endif | |
11836 | char shl_load (); | |
c52df125 AC |
11837 | int |
11838 | main () | |
11839 | { | |
eec2776c | 11840 | return shl_load (); |
c52df125 AC |
11841 | ; |
11842 | return 0; | |
eec2776c AJ |
11843 | } |
11844 | _ACEOF | |
11845 | if ac_fn_c_try_link "$LINENO"; then : | |
11846 | ac_cv_lib_dld_shl_load=yes | |
c52df125 | 11847 | else |
eec2776c AJ |
11848 | ac_cv_lib_dld_shl_load=no |
11849 | fi | |
11850 | rm -f core conftest.err conftest.$ac_objext \ | |
11851 | conftest$ac_exeext conftest.$ac_ext | |
11852 | LIBS=$ac_check_lib_save_LIBS | |
11853 | fi | |
11854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11855 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11856 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11857 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
11858 | else | |
11859 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11860 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
11861 | lt_cv_dlopen="dlopen" | |
11862 | else | |
11863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11864 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11865 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
c52df125 AC |
11866 | $as_echo_n "(cached) " >&6 |
11867 | else | |
11868 | ac_check_lib_save_LIBS=$LIBS | |
eec2776c | 11869 | LIBS="-ldl $LIBS" |
c52df125 AC |
11870 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11871 | /* end confdefs.h. */ | |
11872 | ||
11873 | /* Override any GCC internal prototype to avoid an error. | |
11874 | Use char because int might match the return type of a GCC | |
11875 | builtin and then its argument prototype would still apply. */ | |
11876 | #ifdef __cplusplus | |
11877 | extern "C" | |
11878 | #endif | |
11879 | char dlopen (); | |
11880 | int | |
11881 | main () | |
11882 | { | |
11883 | return dlopen (); | |
11884 | ; | |
11885 | return 0; | |
11886 | } | |
11887 | _ACEOF | |
11888 | if ac_fn_c_try_link "$LINENO"; then : | |
eec2776c | 11889 | ac_cv_lib_dl_dlopen=yes |
c52df125 | 11890 | else |
eec2776c | 11891 | ac_cv_lib_dl_dlopen=no |
7083c021 | 11892 | fi |
c52df125 AC |
11893 | rm -f core conftest.err conftest.$ac_objext \ |
11894 | conftest$ac_exeext conftest.$ac_ext | |
11895 | LIBS=$ac_check_lib_save_LIBS | |
11896 | fi | |
eec2776c AJ |
11897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
11898 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11899 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11900 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
c52df125 | 11901 | else |
eec2776c AJ |
11902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
11903 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11904 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
c52df125 AC |
11905 | $as_echo_n "(cached) " >&6 |
11906 | else | |
11907 | ac_check_lib_save_LIBS=$LIBS | |
eec2776c | 11908 | LIBS="-lsvld $LIBS" |
7083c021 AC |
11909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11910 | /* end confdefs.h. */ | |
6fb6bd15 | 11911 | |
c52df125 AC |
11912 | /* Override any GCC internal prototype to avoid an error. |
11913 | Use char because int might match the return type of a GCC | |
11914 | builtin and then its argument prototype would still apply. */ | |
11915 | #ifdef __cplusplus | |
11916 | extern "C" | |
11917 | #endif | |
eec2776c | 11918 | char dlopen (); |
212380e3 | 11919 | int |
7083c021 | 11920 | main () |
212380e3 | 11921 | { |
eec2776c | 11922 | return dlopen (); |
7083c021 AC |
11923 | ; |
11924 | return 0; | |
212380e3 AC |
11925 | } |
11926 | _ACEOF | |
c52df125 | 11927 | if ac_fn_c_try_link "$LINENO"; then : |
eec2776c | 11928 | ac_cv_lib_svld_dlopen=yes |
c52df125 | 11929 | else |
eec2776c | 11930 | ac_cv_lib_svld_dlopen=no |
c52df125 AC |
11931 | fi |
11932 | rm -f core conftest.err conftest.$ac_objext \ | |
11933 | conftest$ac_exeext conftest.$ac_ext | |
11934 | LIBS=$ac_check_lib_save_LIBS | |
11935 | fi | |
eec2776c AJ |
11936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
11937 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11938 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11939 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
6fb6bd15 | 11940 | else |
eec2776c | 11941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
c52df125 AC |
11942 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
11943 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11944 | $as_echo_n "(cached) " >&6 | |
11945 | else | |
11946 | ac_check_lib_save_LIBS=$LIBS | |
11947 | LIBS="-ldld $LIBS" | |
6fb6bd15 AC |
11948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11949 | /* end confdefs.h. */ | |
c52df125 AC |
11950 | |
11951 | /* Override any GCC internal prototype to avoid an error. | |
11952 | Use char because int might match the return type of a GCC | |
11953 | builtin and then its argument prototype would still apply. */ | |
11954 | #ifdef __cplusplus | |
11955 | extern "C" | |
11956 | #endif | |
11957 | char dld_link (); | |
6fb6bd15 AC |
11958 | int |
11959 | main () | |
11960 | { | |
c52df125 | 11961 | return dld_link (); |
6fb6bd15 AC |
11962 | ; |
11963 | return 0; | |
11964 | } | |
11965 | _ACEOF | |
c52df125 AC |
11966 | if ac_fn_c_try_link "$LINENO"; then : |
11967 | ac_cv_lib_dld_dld_link=yes | |
11968 | else | |
11969 | ac_cv_lib_dld_dld_link=no | |
11970 | fi | |
11971 | rm -f core conftest.err conftest.$ac_objext \ | |
11972 | conftest$ac_exeext conftest.$ac_ext | |
11973 | LIBS=$ac_check_lib_save_LIBS | |
11974 | fi | |
11975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11976 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11977 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
eec2776c AJ |
11978 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
11979 | fi | |
c52df125 | 11980 | |
c52df125 | 11981 | |
c52df125 AC |
11982 | fi |
11983 | ||
11984 | ||
eec2776c | 11985 | fi |
c52df125 AC |
11986 | |
11987 | ||
eec2776c | 11988 | fi |
c52df125 | 11989 | |
c52df125 AC |
11990 | |
11991 | fi | |
11992 | ||
11993 | ||
eec2776c AJ |
11994 | fi |
11995 | ||
11996 | ;; | |
11997 | esac | |
c52df125 | 11998 | |
eec2776c AJ |
11999 | if test "x$lt_cv_dlopen" != xno; then |
12000 | enable_dlopen=yes | |
12001 | else | |
12002 | enable_dlopen=no | |
12003 | fi | |
c52df125 | 12004 | |
eec2776c AJ |
12005 | case $lt_cv_dlopen in |
12006 | dlopen) | |
12007 | save_CPPFLAGS="$CPPFLAGS" | |
12008 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
12009 | ||
12010 | save_LDFLAGS="$LDFLAGS" | |
12011 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
12012 | ||
12013 | save_LIBS="$LIBS" | |
12014 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
12015 | ||
12016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
12017 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
12018 | if ${lt_cv_dlopen_self+:} false; then : | |
12019 | $as_echo_n "(cached) " >&6 | |
12020 | else | |
12021 | if test "$cross_compiling" = yes; then : | |
12022 | lt_cv_dlopen_self=cross | |
12023 | else | |
12024 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12025 | lt_status=$lt_dlunknown | |
12026 | cat > conftest.$ac_ext <<_LT_EOF | |
12027 | #line $LINENO "configure" | |
12028 | #include "confdefs.h" | |
12029 | ||
12030 | #if HAVE_DLFCN_H | |
12031 | #include <dlfcn.h> | |
12032 | #endif | |
12033 | ||
12034 | #include <stdio.h> | |
12035 | ||
12036 | #ifdef RTLD_GLOBAL | |
12037 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12038 | #else | |
12039 | # ifdef DL_GLOBAL | |
12040 | # define LT_DLGLOBAL DL_GLOBAL | |
12041 | # else | |
12042 | # define LT_DLGLOBAL 0 | |
12043 | # endif | |
12044 | #endif | |
12045 | ||
12046 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12047 | find out it does not work in some platform. */ | |
12048 | #ifndef LT_DLLAZY_OR_NOW | |
12049 | # ifdef RTLD_LAZY | |
12050 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12051 | # else | |
12052 | # ifdef DL_LAZY | |
12053 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12054 | # else | |
12055 | # ifdef RTLD_NOW | |
12056 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12057 | # else | |
12058 | # ifdef DL_NOW | |
12059 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12060 | # else | |
12061 | # define LT_DLLAZY_OR_NOW 0 | |
12062 | # endif | |
12063 | # endif | |
12064 | # endif | |
12065 | # endif | |
12066 | #endif | |
12067 | ||
12068 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12069 | correspondingly for the symbols needed. */ | |
12070 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12071 | int fnord () __attribute__((visibility("default"))); | |
12072 | #endif | |
12073 | ||
12074 | int fnord () { return 42; } | |
12075 | int main () | |
12076 | { | |
12077 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12078 | int status = $lt_dlunknown; | |
c52df125 | 12079 | |
eec2776c AJ |
12080 | if (self) |
12081 | { | |
12082 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12083 | else | |
12084 | { | |
12085 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12086 | else puts (dlerror ()); | |
12087 | } | |
12088 | /* dlclose (self); */ | |
12089 | } | |
12090 | else | |
12091 | puts (dlerror ()); | |
c52df125 | 12092 | |
eec2776c AJ |
12093 | return status; |
12094 | } | |
c52df125 | 12095 | _LT_EOF |
eec2776c AJ |
12096 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
12097 | (eval $ac_link) 2>&5 | |
6fb6bd15 AC |
12098 | ac_status=$? |
12099 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
eec2776c AJ |
12100 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
12101 | (./conftest; exit; ) >&5 2>/dev/null | |
12102 | lt_status=$? | |
12103 | case x$lt_status in | |
12104 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
12105 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
12106 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
12107 | esac | |
12108 | else : | |
12109 | # compilation failed | |
12110 | lt_cv_dlopen_self=no | |
6fb6bd15 AC |
12111 | fi |
12112 | fi | |
eec2776c | 12113 | rm -fr conftest* |
6fb6bd15 | 12114 | |
c52df125 | 12115 | |
eec2776c AJ |
12116 | fi |
12117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
12118 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
12119 | ||
12120 | if test "x$lt_cv_dlopen_self" = xyes; then | |
12121 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
12122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
12123 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
12124 | if ${lt_cv_dlopen_self_static+:} false; then : | |
7083c021 AC |
12125 | $as_echo_n "(cached) " >&6 |
12126 | else | |
eec2776c AJ |
12127 | if test "$cross_compiling" = yes; then : |
12128 | lt_cv_dlopen_self_static=cross | |
c52df125 AC |
12129 | else |
12130 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12131 | lt_status=$lt_dlunknown | |
12132 | cat > conftest.$ac_ext <<_LT_EOF | |
12133 | #line $LINENO "configure" | |
12134 | #include "confdefs.h" | |
212380e3 | 12135 | |
c52df125 AC |
12136 | #if HAVE_DLFCN_H |
12137 | #include <dlfcn.h> | |
12138 | #endif | |
12139 | ||
12140 | #include <stdio.h> | |
12141 | ||
12142 | #ifdef RTLD_GLOBAL | |
12143 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12144 | #else | |
12145 | # ifdef DL_GLOBAL | |
12146 | # define LT_DLGLOBAL DL_GLOBAL | |
12147 | # else | |
12148 | # define LT_DLGLOBAL 0 | |
12149 | # endif | |
12150 | #endif | |
12151 | ||
12152 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12153 | find out it does not work in some platform. */ | |
12154 | #ifndef LT_DLLAZY_OR_NOW | |
12155 | # ifdef RTLD_LAZY | |
12156 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12157 | # else | |
12158 | # ifdef DL_LAZY | |
12159 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12160 | # else | |
12161 | # ifdef RTLD_NOW | |
12162 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12163 | # else | |
12164 | # ifdef DL_NOW | |
12165 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12166 | # else | |
12167 | # define LT_DLLAZY_OR_NOW 0 | |
12168 | # endif | |
12169 | # endif | |
12170 | # endif | |
12171 | # endif | |
12172 | #endif | |
12173 | ||
12174 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
12175 | correspondingly for the symbols needed. */ | |
12176 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12177 | int fnord () __attribute__((visibility("default"))); | |
12178 | #endif | |
12179 | ||
12180 | int fnord () { return 42; } | |
12181 | int main () | |
7083c021 | 12182 | { |
c52df125 AC |
12183 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
12184 | int status = $lt_dlunknown; | |
7083c021 | 12185 | |
c52df125 AC |
12186 | if (self) |
12187 | { | |
12188 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12189 | else | |
12190 | { | |
12191 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12192 | else puts (dlerror ()); | |
12193 | } | |
12194 | /* dlclose (self); */ | |
12195 | } | |
12196 | else | |
12197 | puts (dlerror ()); | |
12198 | ||
12199 | return status; | |
7083c021 | 12200 | } |
c52df125 AC |
12201 | _LT_EOF |
12202 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12203 | (eval $ac_link) 2>&5 | |
212380e3 | 12204 | ac_status=$? |
7083c021 | 12205 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
c52df125 AC |
12206 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
12207 | (./conftest; exit; ) >&5 2>/dev/null | |
12208 | lt_status=$? | |
12209 | case x$lt_status in | |
eec2776c AJ |
12210 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
12211 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12212 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
c52df125 AC |
12213 | esac |
12214 | else : | |
12215 | # compilation failed | |
eec2776c | 12216 | lt_cv_dlopen_self_static=no |
c52df125 | 12217 | fi |
7083c021 | 12218 | fi |
c52df125 AC |
12219 | rm -fr conftest* |
12220 | ||
c52df125 | 12221 | |
212380e3 | 12222 | fi |
eec2776c AJ |
12223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12224 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12225 | fi | |
c52df125 | 12226 | |
eec2776c AJ |
12227 | CPPFLAGS="$save_CPPFLAGS" |
12228 | LDFLAGS="$save_LDFLAGS" | |
12229 | LIBS="$save_LIBS" | |
12230 | ;; | |
12231 | esac | |
c52df125 | 12232 | |
eec2776c AJ |
12233 | case $lt_cv_dlopen_self in |
12234 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12235 | *) enable_dlopen_self=unknown ;; | |
12236 | esac | |
c52df125 | 12237 | |
eec2776c AJ |
12238 | case $lt_cv_dlopen_self_static in |
12239 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12240 | *) enable_dlopen_self_static=unknown ;; | |
12241 | esac | |
c52df125 AC |
12242 | fi |
12243 | ||
eec2776c AJ |
12244 | |
12245 | ||
12246 | ||
12247 | ||
12248 | ||
12249 | ||
12250 | ||
12251 | ||
12252 | ||
12253 | ||
12254 | ||
12255 | ||
12256 | ||
12257 | ||
12258 | ||
12259 | ||
12260 | striplib= | |
12261 | old_striplib= | |
12262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12263 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12264 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12265 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12266 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12268 | $as_echo "yes" >&6; } | |
7083c021 | 12269 | else |
eec2776c | 12270 | # FIXME - insert some real tests, host_os isn't really good enough |
c52df125 | 12271 | case $host_os in |
c52df125 | 12272 | darwin*) |
eec2776c AJ |
12273 | if test -n "$STRIP" ; then |
12274 | striplib="$STRIP -x" | |
12275 | old_striplib="$STRIP -S" | |
12276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12277 | $as_echo "yes" >&6; } | |
12278 | else | |
12279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12280 | $as_echo "no" >&6; } | |
12281 | fi | |
c52df125 | 12282 | ;; |
eec2776c AJ |
12283 | *) |
12284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12285 | $as_echo "no" >&6; } | |
c52df125 | 12286 | ;; |
eec2776c AJ |
12287 | esac |
12288 | fi | |
12289 | ||
12290 | ||
12291 | ||
12292 | ||
12293 | ||
12294 | ||
12295 | ||
12296 | ||
12297 | ||
12298 | ||
12299 | ||
12300 | ||
12301 | # Report which library types will actually be built | |
12302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12303 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12305 | $as_echo "$can_build_shared" >&6; } | |
12306 | ||
12307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12308 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12309 | test "$can_build_shared" = "no" && enable_shared=no | |
12310 | ||
12311 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12312 | # are all built from PIC. | |
12313 | case $host_os in | |
12314 | aix3*) | |
12315 | test "$enable_shared" = yes && enable_static=no | |
12316 | if test -n "$RANLIB"; then | |
12317 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12318 | postinstall_cmds='$RANLIB $lib' | |
12319 | fi | |
c52df125 | 12320 | ;; |
eec2776c AJ |
12321 | |
12322 | aix[4-9]*) | |
12323 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12324 | test "$enable_shared" = yes && enable_static=no | |
12325 | fi | |
c52df125 AC |
12326 | ;; |
12327 | esac | |
eec2776c AJ |
12328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
12329 | $as_echo "$enable_shared" >&6; } | |
12330 | ||
12331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12332 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12333 | # Make sure either enable_shared or enable_static is yes. | |
12334 | test "$enable_shared" = yes || enable_static=yes | |
12335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12336 | $as_echo "$enable_static" >&6; } | |
12337 | ||
212380e3 | 12338 | |
c52df125 | 12339 | |
c52df125 AC |
12340 | |
12341 | fi | |
eec2776c AJ |
12342 | ac_ext=c |
12343 | ac_cpp='$CPP $CPPFLAGS' | |
12344 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12345 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12346 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 | 12347 | |
eec2776c | 12348 | CC="$lt_save_CC" |
c52df125 | 12349 | |
c52df125 | 12350 | |
c52df125 | 12351 | |
c52df125 AC |
12352 | |
12353 | ||
212380e3 | 12354 | |
c52df125 AC |
12355 | |
12356 | ||
c52df125 | 12357 | |
c52df125 AC |
12358 | |
12359 | ||
7083c021 | 12360 | |
c52df125 AC |
12361 | |
12362 | ||
c52df125 | 12363 | |
eec2776c | 12364 | ac_config_commands="$ac_config_commands libtool" |
c52df125 | 12365 | |
c52df125 | 12366 | |
c52df125 AC |
12367 | |
12368 | ||
eec2776c | 12369 | # Only expand once: |
212380e3 | 12370 | |
631ef239 | 12371 | |
c52df125 AC |
12372 | |
12373 | ||
c52df125 | 12374 | |
c52df125 AC |
12375 | |
12376 | ||
12377 | ||
eec2776c AJ |
12378 | |
12379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5 | |
12380 | $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; } | |
12381 | if ${libltdl_cv_shlibext+:} false; then : | |
c52df125 AC |
12382 | $as_echo_n "(cached) " >&6 |
12383 | else | |
eec2776c AJ |
12384 | |
12385 | module=yes | |
12386 | eval libltdl_cv_shlibext=$shrext_cmds | |
12387 | module=no | |
12388 | eval libltdl_cv_shrext=$shrext_cmds | |
c52df125 AC |
12389 | |
12390 | fi | |
eec2776c AJ |
12391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5 |
12392 | $as_echo "$libltdl_cv_shlibext" >&6; } | |
12393 | if test -n "$libltdl_cv_shlibext"; then | |
c52df125 | 12394 | |
eec2776c AJ |
12395 | cat >>confdefs.h <<_ACEOF |
12396 | #define LT_MODULE_EXT "$libltdl_cv_shlibext" | |
12397 | _ACEOF | |
c52df125 AC |
12398 | |
12399 | fi | |
eec2776c | 12400 | if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then |
c52df125 | 12401 | |
eec2776c AJ |
12402 | cat >>confdefs.h <<_ACEOF |
12403 | #define LT_SHARED_EXT "$libltdl_cv_shrext" | |
12404 | _ACEOF | |
c52df125 | 12405 | |
eec2776c | 12406 | fi |
c52df125 | 12407 | |
eec2776c AJ |
12408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5 |
12409 | $as_echo_n "checking which variable specifies run-time module search path... " >&6; } | |
12410 | if ${lt_cv_module_path_var+:} false; then : | |
12411 | $as_echo_n "(cached) " >&6 | |
12412 | else | |
12413 | lt_cv_module_path_var="$shlibpath_var" | |
12414 | fi | |
12415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5 | |
12416 | $as_echo "$lt_cv_module_path_var" >&6; } | |
12417 | if test -n "$lt_cv_module_path_var"; then | |
12418 | ||
12419 | cat >>confdefs.h <<_ACEOF | |
12420 | #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var" | |
12421 | _ACEOF | |
c52df125 | 12422 | |
eec2776c | 12423 | fi |
c52df125 | 12424 | |
eec2776c AJ |
12425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5 |
12426 | $as_echo_n "checking for the default library search path... " >&6; } | |
12427 | if ${lt_cv_sys_dlsearch_path+:} false; then : | |
12428 | $as_echo_n "(cached) " >&6 | |
12429 | else | |
12430 | lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec" | |
12431 | fi | |
12432 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5 | |
12433 | $as_echo "$lt_cv_sys_dlsearch_path" >&6; } | |
12434 | if test -n "$lt_cv_sys_dlsearch_path"; then | |
12435 | sys_dlsearch_path= | |
12436 | for dir in $lt_cv_sys_dlsearch_path; do | |
12437 | if test -z "$sys_dlsearch_path"; then | |
12438 | sys_dlsearch_path="$dir" | |
12439 | else | |
12440 | sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir" | |
12441 | fi | |
12442 | done | |
c52df125 | 12443 | |
eec2776c AJ |
12444 | cat >>confdefs.h <<_ACEOF |
12445 | #define LT_DLSEARCH_PATH "$sys_dlsearch_path" | |
12446 | _ACEOF | |
c52df125 | 12447 | |
eec2776c | 12448 | fi |
c52df125 AC |
12449 | |
12450 | ||
eec2776c | 12451 | LT_DLLOADERS= |
c52df125 AC |
12452 | |
12453 | ||
eec2776c AJ |
12454 | ac_ext=c |
12455 | ac_cpp='$CPP $CPPFLAGS' | |
12456 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12457 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12458 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
12459 | |
12460 | ||
eec2776c AJ |
12461 | LIBADD_DLOPEN= |
12462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 | |
12463 | $as_echo_n "checking for library containing dlopen... " >&6; } | |
12464 | if ${ac_cv_search_dlopen+:} false; then : | |
12465 | $as_echo_n "(cached) " >&6 | |
12466 | else | |
12467 | ac_func_search_save_LIBS=$LIBS | |
12468 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12469 | /* end confdefs.h. */ | |
c52df125 | 12470 | |
eec2776c AJ |
12471 | /* Override any GCC internal prototype to avoid an error. |
12472 | Use char because int might match the return type of a GCC | |
12473 | builtin and then its argument prototype would still apply. */ | |
12474 | #ifdef __cplusplus | |
12475 | extern "C" | |
12476 | #endif | |
12477 | char dlopen (); | |
12478 | int | |
12479 | main () | |
12480 | { | |
12481 | return dlopen (); | |
12482 | ; | |
12483 | return 0; | |
12484 | } | |
12485 | _ACEOF | |
12486 | for ac_lib in '' dl; do | |
12487 | if test -z "$ac_lib"; then | |
12488 | ac_res="none required" | |
12489 | else | |
12490 | ac_res=-l$ac_lib | |
12491 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
12492 | fi | |
12493 | if ac_fn_c_try_link "$LINENO"; then : | |
12494 | ac_cv_search_dlopen=$ac_res | |
12495 | fi | |
12496 | rm -f core conftest.err conftest.$ac_objext \ | |
12497 | conftest$ac_exeext | |
12498 | if ${ac_cv_search_dlopen+:} false; then : | |
12499 | break | |
12500 | fi | |
12501 | done | |
12502 | if ${ac_cv_search_dlopen+:} false; then : | |
c52df125 | 12503 | |
eec2776c AJ |
12504 | else |
12505 | ac_cv_search_dlopen=no | |
12506 | fi | |
12507 | rm conftest.$ac_ext | |
12508 | LIBS=$ac_func_search_save_LIBS | |
c52df125 | 12509 | fi |
eec2776c AJ |
12510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
12511 | $as_echo "$ac_cv_search_dlopen" >&6; } | |
12512 | ac_res=$ac_cv_search_dlopen | |
12513 | if test "$ac_res" != no; then : | |
12514 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
12515 | ||
12516 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h | |
12517 | ||
12518 | if test "$ac_cv_search_dlopen" != "none required" ; then | |
12519 | LIBADD_DLOPEN="-ldl" | |
12520 | fi | |
12521 | libltdl_cv_lib_dl_dlopen="yes" | |
12522 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
12523 | else | |
12524 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12525 | /* end confdefs.h. */ | |
12526 | #if HAVE_DLFCN_H | |
12527 | # include <dlfcn.h> | |
12528 | #endif | |
212380e3 | 12529 | |
eec2776c AJ |
12530 | int |
12531 | main () | |
12532 | { | |
12533 | dlopen(0, 0); | |
12534 | ; | |
12535 | return 0; | |
12536 | } | |
12537 | _ACEOF | |
12538 | if ac_fn_c_try_link "$LINENO"; then : | |
631ef239 | 12539 | |
eec2776c | 12540 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
631ef239 | 12541 | |
eec2776c AJ |
12542 | libltdl_cv_func_dlopen="yes" |
12543 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
12544 | else | |
12545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
12546 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
12547 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
c52df125 | 12548 | $as_echo_n "(cached) " >&6 |
7083c021 | 12549 | else |
c52df125 | 12550 | ac_check_lib_save_LIBS=$LIBS |
eec2776c | 12551 | LIBS="-lsvld $LIBS" |
c52df125 | 12552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7083c021 | 12553 | /* end confdefs.h. */ |
212380e3 | 12554 | |
c52df125 AC |
12555 | /* Override any GCC internal prototype to avoid an error. |
12556 | Use char because int might match the return type of a GCC | |
12557 | builtin and then its argument prototype would still apply. */ | |
12558 | #ifdef __cplusplus | |
12559 | extern "C" | |
12560 | #endif | |
eec2776c | 12561 | char dlopen (); |
7083c021 AC |
12562 | int |
12563 | main () | |
12564 | { | |
eec2776c | 12565 | return dlopen (); |
7083c021 AC |
12566 | ; |
12567 | return 0; | |
12568 | } | |
212380e3 | 12569 | _ACEOF |
c52df125 | 12570 | if ac_fn_c_try_link "$LINENO"; then : |
eec2776c | 12571 | ac_cv_lib_svld_dlopen=yes |
c52df125 | 12572 | else |
eec2776c | 12573 | ac_cv_lib_svld_dlopen=no |
212380e3 | 12574 | fi |
c52df125 AC |
12575 | rm -f core conftest.err conftest.$ac_objext \ |
12576 | conftest$ac_exeext conftest.$ac_ext | |
12577 | LIBS=$ac_check_lib_save_LIBS | |
212380e3 | 12578 | fi |
eec2776c AJ |
12579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
12580 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
12581 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
c52df125 | 12582 | |
eec2776c | 12583 | $as_echo "#define HAVE_LIBDL 1" >>confdefs.h |
c52df125 | 12584 | |
eec2776c AJ |
12585 | LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes" |
12586 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la" | |
c52df125 AC |
12587 | fi |
12588 | ||
c52df125 | 12589 | fi |
eec2776c AJ |
12590 | rm -f core conftest.err conftest.$ac_objext \ |
12591 | conftest$ac_exeext conftest.$ac_ext | |
c52df125 AC |
12592 | fi |
12593 | ||
eec2776c AJ |
12594 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes |
12595 | then | |
12596 | lt_save_LIBS="$LIBS" | |
12597 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12598 | for ac_func in dlerror | |
12599 | do : | |
12600 | ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror" | |
12601 | if test "x$ac_cv_func_dlerror" = xyes; then : | |
12602 | cat >>confdefs.h <<_ACEOF | |
12603 | #define HAVE_DLERROR 1 | |
12604 | _ACEOF | |
c52df125 | 12605 | |
c52df125 | 12606 | fi |
eec2776c | 12607 | done |
c52df125 | 12608 | |
eec2776c | 12609 | LIBS="$lt_save_LIBS" |
c52df125 | 12610 | fi |
7083c021 | 12611 | |
631ef239 | 12612 | |
eec2776c AJ |
12613 | LIBADD_SHL_LOAD= |
12614 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
12615 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
212380e3 | 12616 | |
eec2776c | 12617 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
212380e3 | 12618 | |
eec2776c | 12619 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
c52df125 | 12620 | else |
eec2776c AJ |
12621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
12622 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
12623 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
12624 | $as_echo_n "(cached) " >&6 | |
7083c021 | 12625 | else |
eec2776c AJ |
12626 | ac_check_lib_save_LIBS=$LIBS |
12627 | LIBS="-ldld $LIBS" | |
12628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12629 | /* end confdefs.h. */ | |
c52df125 | 12630 | |
eec2776c AJ |
12631 | /* Override any GCC internal prototype to avoid an error. |
12632 | Use char because int might match the return type of a GCC | |
12633 | builtin and then its argument prototype would still apply. */ | |
12634 | #ifdef __cplusplus | |
12635 | extern "C" | |
12636 | #endif | |
12637 | char shl_load (); | |
12638 | int | |
12639 | main () | |
12640 | { | |
12641 | return shl_load (); | |
12642 | ; | |
12643 | return 0; | |
12644 | } | |
212380e3 | 12645 | _ACEOF |
eec2776c AJ |
12646 | if ac_fn_c_try_link "$LINENO"; then : |
12647 | ac_cv_lib_dld_shl_load=yes | |
7083c021 | 12648 | else |
eec2776c AJ |
12649 | ac_cv_lib_dld_shl_load=no |
12650 | fi | |
12651 | rm -f core conftest.err conftest.$ac_objext \ | |
12652 | conftest$ac_exeext conftest.$ac_ext | |
12653 | LIBS=$ac_check_lib_save_LIBS | |
12654 | fi | |
12655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
12656 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
12657 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
c52df125 | 12658 | |
eec2776c | 12659 | $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h |
c52df125 | 12660 | |
eec2776c AJ |
12661 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la" |
12662 | LIBADD_SHL_LOAD="-ldld" | |
12663 | fi | |
c52df125 | 12664 | |
212380e3 AC |
12665 | fi |
12666 | ||
c52df125 | 12667 | |
212380e3 | 12668 | |
eec2776c AJ |
12669 | case $host_os in |
12670 | darwin[1567].*) | |
12671 | # We only want this for pre-Mac OS X 10.4. | |
12672 | ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup" | |
12673 | if test "x$ac_cv_func__dyld_func_lookup" = xyes; then : | |
212380e3 | 12674 | |
eec2776c | 12675 | $as_echo "#define HAVE_DYLD 1" >>confdefs.h |
7083c021 | 12676 | |
eec2776c | 12677 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la" |
7083c021 | 12678 | fi |
c52df125 | 12679 | |
eec2776c AJ |
12680 | ;; |
12681 | beos*) | |
12682 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la" | |
12683 | ;; | |
12684 | cygwin* | mingw* | os2* | pw32*) | |
12685 | ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h> | |
12686 | " | |
12687 | if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then : | |
12688 | ac_have_decl=1 | |
12689 | else | |
12690 | ac_have_decl=0 | |
12691 | fi | |
c52df125 AC |
12692 | |
12693 | cat >>confdefs.h <<_ACEOF | |
eec2776c | 12694 | #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl |
212380e3 AC |
12695 | _ACEOF |
12696 | ||
eec2776c AJ |
12697 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la" |
12698 | ;; | |
12699 | esac | |
212380e3 | 12700 | |
eec2776c AJ |
12701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
12702 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
12703 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
12704 | $as_echo_n "(cached) " >&6 | |
12705 | else | |
12706 | ac_check_lib_save_LIBS=$LIBS | |
12707 | LIBS="-ldld $LIBS" | |
12708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12709 | /* end confdefs.h. */ | |
c52df125 | 12710 | |
eec2776c AJ |
12711 | /* Override any GCC internal prototype to avoid an error. |
12712 | Use char because int might match the return type of a GCC | |
12713 | builtin and then its argument prototype would still apply. */ | |
12714 | #ifdef __cplusplus | |
12715 | extern "C" | |
12716 | #endif | |
12717 | char dld_link (); | |
12718 | int | |
12719 | main () | |
12720 | { | |
12721 | return dld_link (); | |
12722 | ; | |
12723 | return 0; | |
12724 | } | |
212380e3 | 12725 | _ACEOF |
eec2776c AJ |
12726 | if ac_fn_c_try_link "$LINENO"; then : |
12727 | ac_cv_lib_dld_dld_link=yes | |
12728 | else | |
12729 | ac_cv_lib_dld_dld_link=no | |
12730 | fi | |
12731 | rm -f core conftest.err conftest.$ac_objext \ | |
12732 | conftest$ac_exeext conftest.$ac_ext | |
12733 | LIBS=$ac_check_lib_save_LIBS | |
12734 | fi | |
12735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
12736 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
12737 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
212380e3 | 12738 | |
eec2776c AJ |
12739 | $as_echo "#define HAVE_DLD 1" >>confdefs.h |
12740 | ||
12741 | LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la" | |
12742 | fi | |
212380e3 AC |
12743 | |
12744 | ||
12745 | ||
12746 | ||
eec2776c AJ |
12747 | LT_DLPREOPEN= |
12748 | if test -n "$LT_DLLOADERS" | |
12749 | then | |
12750 | for lt_loader in $LT_DLLOADERS; do | |
12751 | LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader " | |
12752 | done | |
7083c021 | 12753 | |
eec2776c | 12754 | $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h |
212380e3 | 12755 | |
eec2776c | 12756 | fi |
631ef239 | 12757 | |
212380e3 | 12758 | |
eec2776c | 12759 | LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD" |
212380e3 | 12760 | |
212380e3 | 12761 | |
eec2776c AJ |
12762 | ac_ext=c |
12763 | ac_cpp='$CPP $CPPFLAGS' | |
12764 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12765 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12766 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c52df125 AC |
12767 | |
12768 | ||
eec2776c AJ |
12769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5 |
12770 | $as_echo_n "checking for _ prefix in compiled symbols... " >&6; } | |
12771 | if ${lt_cv_sys_symbol_underscore+:} false; then : | |
12772 | $as_echo_n "(cached) " >&6 | |
c52df125 | 12773 | else |
eec2776c AJ |
12774 | lt_cv_sys_symbol_underscore=no |
12775 | cat > conftest.$ac_ext <<_LT_EOF | |
12776 | void nm_test_func(){} | |
12777 | int main(){nm_test_func;return 0;} | |
12778 | _LT_EOF | |
12779 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
12780 | (eval $ac_compile) 2>&5 | |
12781 | ac_status=$? | |
12782 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12783 | test $ac_status = 0; }; then | |
12784 | # Now try to grab the symbols. | |
12785 | ac_nlist=conftest.nm | |
12786 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5 | |
12787 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | |
12788 | ac_status=$? | |
12789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12790 | test $ac_status = 0; } && test -s "$ac_nlist"; then | |
12791 | # See whether the symbols have a leading underscore. | |
12792 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | |
12793 | lt_cv_sys_symbol_underscore=yes | |
12794 | else | |
12795 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | |
12796 | : | |
12797 | else | |
12798 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | |
12799 | fi | |
12800 | fi | |
12801 | else | |
12802 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
12803 | fi | |
12804 | else | |
12805 | echo "configure: failed program was:" >&5 | |
12806 | cat conftest.c >&5 | |
12807 | fi | |
12808 | rm -rf conftest* | |
12809 | ||
212380e3 | 12810 | fi |
eec2776c AJ |
12811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5 |
12812 | $as_echo "$lt_cv_sys_symbol_underscore" >&6; } | |
12813 | sys_symbol_underscore=$lt_cv_sys_symbol_underscore | |
212380e3 AC |
12814 | |
12815 | ||
eec2776c AJ |
12816 | if test x"$lt_cv_sys_symbol_underscore" = xyes; then |
12817 | if test x"$libltdl_cv_func_dlopen" = xyes || | |
12818 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | |
12819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5 | |
12820 | $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; } | |
12821 | if ${libltdl_cv_need_uscore+:} false; then : | |
7083c021 | 12822 | $as_echo_n "(cached) " >&6 |
212380e3 | 12823 | else |
eec2776c AJ |
12824 | libltdl_cv_need_uscore=unknown |
12825 | save_LIBS="$LIBS" | |
12826 | LIBS="$LIBS $LIBADD_DLOPEN" | |
12827 | if test "$cross_compiling" = yes; then : | |
12828 | libltdl_cv_need_uscore=cross | |
12829 | else | |
12830 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
12831 | lt_status=$lt_dlunknown | |
12832 | cat > conftest.$ac_ext <<_LT_EOF | |
12833 | #line $LINENO "configure" | |
12834 | #include "confdefs.h" | |
212380e3 | 12835 | |
eec2776c AJ |
12836 | #if HAVE_DLFCN_H |
12837 | #include <dlfcn.h> | |
c52df125 | 12838 | #endif |
c52df125 | 12839 | |
eec2776c | 12840 | #include <stdio.h> |
c52df125 | 12841 | |
eec2776c AJ |
12842 | #ifdef RTLD_GLOBAL |
12843 | # define LT_DLGLOBAL RTLD_GLOBAL | |
12844 | #else | |
12845 | # ifdef DL_GLOBAL | |
12846 | # define LT_DLGLOBAL DL_GLOBAL | |
12847 | # else | |
12848 | # define LT_DLGLOBAL 0 | |
12849 | # endif | |
12850 | #endif | |
c52df125 | 12851 | |
eec2776c AJ |
12852 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
12853 | find out it does not work in some platform. */ | |
12854 | #ifndef LT_DLLAZY_OR_NOW | |
12855 | # ifdef RTLD_LAZY | |
12856 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12857 | # else | |
12858 | # ifdef DL_LAZY | |
12859 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
12860 | # else | |
12861 | # ifdef RTLD_NOW | |
12862 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12863 | # else | |
12864 | # ifdef DL_NOW | |
12865 | # define LT_DLLAZY_OR_NOW DL_NOW | |
12866 | # else | |
12867 | # define LT_DLLAZY_OR_NOW 0 | |
12868 | # endif | |
12869 | # endif | |
12870 | # endif | |
12871 | # endif | |
12872 | #endif | |
212380e3 | 12873 | |
eec2776c AJ |
12874 | /* When -fvisbility=hidden is used, assume the code has been annotated |
12875 | correspondingly for the symbols needed. */ | |
12876 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12877 | int fnord () __attribute__((visibility("default"))); | |
12878 | #endif | |
212380e3 | 12879 | |
eec2776c AJ |
12880 | int fnord () { return 42; } |
12881 | int main () | |
12882 | { | |
12883 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12884 | int status = $lt_dlunknown; | |
c52df125 | 12885 | |
eec2776c | 12886 | if (self) |
c52df125 | 12887 | { |
eec2776c AJ |
12888 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
12889 | else | |
12890 | { | |
12891 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12892 | else puts (dlerror ()); | |
c52df125 | 12893 | } |
eec2776c | 12894 | /* dlclose (self); */ |
c52df125 | 12895 | } |
eec2776c AJ |
12896 | else |
12897 | puts (dlerror ()); | |
12898 | ||
12899 | return status; | |
c52df125 | 12900 | } |
eec2776c AJ |
12901 | _LT_EOF |
12902 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12903 | (eval $ac_link) 2>&5 | |
12904 | ac_status=$? | |
12905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12906 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12907 | (./conftest; exit; ) >&5 2>/dev/null | |
12908 | lt_status=$? | |
12909 | case x$lt_status in | |
12910 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | |
12911 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | |
12912 | x$lt_dlunknown|x*) ;; | |
12913 | esac | |
12914 | else : | |
12915 | # compilation failed | |
c52df125 | 12916 | |
eec2776c AJ |
12917 | fi |
12918 | fi | |
12919 | rm -fr conftest* | |
c52df125 | 12920 | |
eec2776c | 12921 | LIBS="$save_LIBS" |
212380e3 | 12922 | |
eec2776c AJ |
12923 | fi |
12924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5 | |
12925 | $as_echo "$libltdl_cv_need_uscore" >&6; } | |
12926 | fi | |
12927 | fi | |
212380e3 | 12928 | |
eec2776c | 12929 | if test x"$libltdl_cv_need_uscore" = xyes; then |
212380e3 | 12930 | |
eec2776c | 12931 | $as_echo "#define NEED_USCORE 1" >>confdefs.h |
212380e3 | 12932 | |
eec2776c | 12933 | fi |
7083c021 | 12934 | |
eec2776c AJ |
12935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5 |
12936 | $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; } | |
12937 | if ${lt_cv_sys_dlopen_deplibs+:} false; then : | |
12938 | $as_echo_n "(cached) " >&6 | |
12939 | else | |
12940 | # PORTME does your system automatically load deplibs for dlopen? | |
12941 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | |
12942 | # For now, we just catch OSes we know something about -- in the | |
12943 | # future, we'll try test this programmatically. | |
12944 | lt_cv_sys_dlopen_deplibs=unknown | |
12945 | case $host_os in | |
12946 | aix3*|aix4.1.*|aix4.2.*) | |
12947 | # Unknown whether this is true for these versions of AIX, but | |
12948 | # we want this `case' here to explicitly catch those versions. | |
12949 | lt_cv_sys_dlopen_deplibs=unknown | |
12950 | ;; | |
12951 | aix[4-9]*) | |
12952 | lt_cv_sys_dlopen_deplibs=yes | |
12953 | ;; | |
12954 | amigaos*) | |
12955 | case $host_cpu in | |
12956 | powerpc) | |
12957 | lt_cv_sys_dlopen_deplibs=no | |
12958 | ;; | |
12959 | esac | |
12960 | ;; | |
12961 | darwin*) | |
12962 | # Assuming the user has installed a libdl from somewhere, this is true | |
12963 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | |
12964 | lt_cv_sys_dlopen_deplibs=yes | |
12965 | ;; | |
12966 | freebsd* | dragonfly*) | |
12967 | lt_cv_sys_dlopen_deplibs=yes | |
12968 | ;; | |
12969 | gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
12970 | # GNU and its variants, using gnu ld.so (Glibc) | |
12971 | lt_cv_sys_dlopen_deplibs=yes | |
12972 | ;; | |
12973 | hpux10*|hpux11*) | |
12974 | lt_cv_sys_dlopen_deplibs=yes | |
12975 | ;; | |
12976 | interix*) | |
12977 | lt_cv_sys_dlopen_deplibs=yes | |
12978 | ;; | |
12979 | irix[12345]*|irix6.[01]*) | |
12980 | # Catch all versions of IRIX before 6.2, and indicate that we don't | |
12981 | # know how it worked for any of those versions. | |
12982 | lt_cv_sys_dlopen_deplibs=unknown | |
12983 | ;; | |
12984 | irix*) | |
12985 | # The case above catches anything before 6.2, and it's known that | |
12986 | # at 6.2 and later dlopen does load deplibs. | |
12987 | lt_cv_sys_dlopen_deplibs=yes | |
12988 | ;; | |
12989 | netbsd* | netbsdelf*-gnu) | |
12990 | lt_cv_sys_dlopen_deplibs=yes | |
12991 | ;; | |
12992 | openbsd*) | |
12993 | lt_cv_sys_dlopen_deplibs=yes | |
12994 | ;; | |
12995 | osf[1234]*) | |
12996 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | |
12997 | # it did *not* use an RPATH in a shared library to find objects the | |
12998 | # library depends on, so we explicitly say `no'. | |
12999 | lt_cv_sys_dlopen_deplibs=no | |
13000 | ;; | |
13001 | osf5.0|osf5.0a|osf5.1) | |
13002 | # dlopen *does* load deplibs and with the right loader patch applied | |
13003 | # it even uses RPATH in a shared library to search for shared objects | |
13004 | # that the library depends on, but there's no easy way to know if that | |
13005 | # patch is installed. Since this is the case, all we can really | |
13006 | # say is unknown -- it depends on the patch being installed. If | |
13007 | # it is, this changes to `yes'. Without it, it would be `no'. | |
13008 | lt_cv_sys_dlopen_deplibs=unknown | |
13009 | ;; | |
13010 | osf*) | |
13011 | # the two cases above should catch all versions of osf <= 5.1. Read | |
13012 | # the comments above for what we know about them. | |
13013 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | |
13014 | # is used to find them so we can finally say `yes'. | |
13015 | lt_cv_sys_dlopen_deplibs=yes | |
13016 | ;; | |
13017 | qnx*) | |
13018 | lt_cv_sys_dlopen_deplibs=yes | |
13019 | ;; | |
13020 | solaris*) | |
13021 | lt_cv_sys_dlopen_deplibs=yes | |
13022 | ;; | |
13023 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
13024 | libltdl_cv_sys_dlopen_deplibs=yes | |
13025 | ;; | |
13026 | esac | |
212380e3 | 13027 | |
eec2776c AJ |
13028 | fi |
13029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5 | |
13030 | $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; } | |
13031 | if test "$lt_cv_sys_dlopen_deplibs" != yes; then | |
631ef239 | 13032 | |
eec2776c | 13033 | $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h |
7083c021 | 13034 | |
eec2776c AJ |
13035 | fi |
13036 | ||
13037 | : | |
13038 | ||
13039 | for ac_header in argz.h | |
13040 | do : | |
13041 | ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default | |
13042 | " | |
13043 | if test "x$ac_cv_header_argz_h" = xyes; then : | |
13044 | cat >>confdefs.h <<_ACEOF | |
13045 | #define HAVE_ARGZ_H 1 | |
212380e3 | 13046 | _ACEOF |
eec2776c | 13047 | |
7083c021 | 13048 | fi |
eec2776c | 13049 | |
c52df125 | 13050 | done |
631ef239 | 13051 | |
631ef239 | 13052 | |
eec2776c AJ |
13053 | ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H) |
13054 | # include <argz.h> | |
13055 | #endif | |
13056 | " | |
13057 | if test "x$ac_cv_type_error_t" = xyes; then : | |
13058 | ||
13059 | cat >>confdefs.h <<_ACEOF | |
13060 | #define HAVE_ERROR_T 1 | |
13061 | _ACEOF | |
13062 | ||
631ef239 | 13063 | |
eec2776c | 13064 | else |
7083c021 | 13065 | |
eec2776c | 13066 | $as_echo "#define error_t int" >>confdefs.h |
7083c021 AC |
13067 | |
13068 | ||
eec2776c AJ |
13069 | $as_echo "#define __error_t_defined 1" >>confdefs.h |
13070 | ||
13071 | fi | |
13072 | ||
13073 | ||
13074 | ARGZ_H= | |
13075 | for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \ | |
13076 | argz_next argz_stringify | |
13077 | do : | |
13078 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13079 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13080 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13081 | cat >>confdefs.h <<_ACEOF | |
13082 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13083 | _ACEOF | |
13084 | ||
212380e3 | 13085 | else |
eec2776c AJ |
13086 | ARGZ_H=argz.h; |
13087 | ||
13088 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" | |
13089 | ||
7083c021 | 13090 | fi |
eec2776c | 13091 | done |
7083c021 AC |
13092 | |
13093 | ||
eec2776c AJ |
13094 | if test -z "$ARGZ_H"; then : |
13095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5 | |
13096 | $as_echo_n "checking if argz actually works... " >&6; } | |
13097 | if ${lt_cv_sys_argz_works+:} false; then : | |
13098 | $as_echo_n "(cached) " >&6 | |
13099 | else | |
13100 | case $host_os in #( | |
13101 | *cygwin*) | |
13102 | lt_cv_sys_argz_works=no | |
13103 | if test "$cross_compiling" != no; then | |
13104 | lt_cv_sys_argz_works="guessing no" | |
13105 | else | |
13106 | lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/' | |
13107 | save_IFS=$IFS | |
13108 | IFS=-. | |
13109 | set x `uname -r | sed -e "$lt_sed_extract_leading_digits"` | |
13110 | IFS=$save_IFS | |
13111 | lt_os_major=${2-0} | |
13112 | lt_os_minor=${3-0} | |
13113 | lt_os_micro=${4-0} | |
13114 | if test "$lt_os_major" -gt 1 \ | |
13115 | || { test "$lt_os_major" -eq 1 \ | |
13116 | && { test "$lt_os_minor" -gt 5 \ | |
13117 | || { test "$lt_os_minor" -eq 5 \ | |
13118 | && test "$lt_os_micro" -gt 24; }; }; }; then | |
13119 | lt_cv_sys_argz_works=yes | |
13120 | fi | |
13121 | fi | |
13122 | ;; #( | |
13123 | *) lt_cv_sys_argz_works=yes ;; | |
13124 | esac | |
13125 | fi | |
13126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5 | |
13127 | $as_echo "$lt_cv_sys_argz_works" >&6; } | |
13128 | if test "$lt_cv_sys_argz_works" = yes; then : | |
7083c021 | 13129 | |
eec2776c | 13130 | $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h |
7083c021 | 13131 | |
eec2776c AJ |
13132 | else |
13133 | ARGZ_H=argz.h | |
212380e3 | 13134 | |
631ef239 | 13135 | |
eec2776c | 13136 | _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext" |
631ef239 | 13137 | |
eec2776c AJ |
13138 | fi |
13139 | fi | |
631ef239 | 13140 | |
212380e3 | 13141 | |
212380e3 | 13142 | |
eec2776c AJ |
13143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5 |
13144 | $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; } | |
13145 | if ${libltdl_cv_preloaded_symbols+:} false; then : | |
7083c021 | 13146 | $as_echo_n "(cached) " >&6 |
212380e3 | 13147 | else |
eec2776c AJ |
13148 | if test -n "$lt_cv_sys_global_symbol_pipe"; then |
13149 | libltdl_cv_preloaded_symbols=yes | |
13150 | else | |
13151 | libltdl_cv_preloaded_symbols=no | |
13152 | fi | |
7083c021 | 13153 | |
212380e3 | 13154 | fi |
eec2776c AJ |
13155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5 |
13156 | $as_echo "$libltdl_cv_preloaded_symbols" >&6; } | |
13157 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | |
13158 | ||
13159 | $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h | |
13160 | ||
212380e3 | 13161 | fi |
212380e3 | 13162 | |
eec2776c | 13163 | # Set options |
212380e3 | 13164 | |
7083c021 | 13165 | |
7083c021 | 13166 | |
212380e3 | 13167 | |
7083c021 AC |
13168 | |
13169 | ||
13170 | ||
212380e3 | 13171 | |
212380e3 | 13172 | |
212380e3 | 13173 | |
212380e3 | 13174 | |
212380e3 | 13175 | |
eec2776c AJ |
13176 | # Check whether --with-included_ltdl was given. |
13177 | if test "${with_included_ltdl+set}" = set; then : | |
13178 | withval=$with_included_ltdl; | |
212380e3 | 13179 | fi |
631ef239 | 13180 | |
eec2776c AJ |
13181 | |
13182 | if test "x$with_included_ltdl" != xyes; then | |
13183 | # We are not being forced to use the included libltdl sources, so | |
13184 | # decide whether there is a useful installed version we can use. | |
13185 | ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default | |
13186 | ||
13187 | " | |
13188 | if test "x$ac_cv_header_ltdl_h" = xyes; then : | |
13189 | ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default | |
13190 | #include <ltdl.h> | |
13191 | " | |
13192 | if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then : | |
13193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5 | |
13194 | $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; } | |
13195 | if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then : | |
7083c021 | 13196 | $as_echo_n "(cached) " >&6 |
212380e3 | 13197 | else |
eec2776c AJ |
13198 | ac_check_lib_save_LIBS=$LIBS |
13199 | LIBS="-lltdl $LIBS" | |
13200 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13201 | /* end confdefs.h. */ | |
13202 | ||
13203 | /* Override any GCC internal prototype to avoid an error. | |
13204 | Use char because int might match the return type of a GCC | |
13205 | builtin and then its argument prototype would still apply. */ | |
13206 | #ifdef __cplusplus | |
13207 | extern "C" | |
13208 | #endif | |
13209 | char lt_dladvise_preload (); | |
13210 | int | |
13211 | main () | |
13212 | { | |
13213 | return lt_dladvise_preload (); | |
13214 | ; | |
13215 | return 0; | |
13216 | } | |
13217 | _ACEOF | |
13218 | if ac_fn_c_try_link "$LINENO"; then : | |
13219 | ac_cv_lib_ltdl_lt_dladvise_preload=yes | |
212380e3 | 13220 | else |
eec2776c | 13221 | ac_cv_lib_ltdl_lt_dladvise_preload=no |
212380e3 | 13222 | fi |
eec2776c AJ |
13223 | rm -f core conftest.err conftest.$ac_objext \ |
13224 | conftest$ac_exeext conftest.$ac_ext | |
13225 | LIBS=$ac_check_lib_save_LIBS | |
7083c021 | 13226 | fi |
eec2776c AJ |
13227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5 |
13228 | $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; } | |
13229 | if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then : | |
13230 | with_included_ltdl=no | |
212380e3 | 13231 | else |
eec2776c | 13232 | with_included_ltdl=yes |
7083c021 AC |
13233 | fi |
13234 | ||
7083c021 | 13235 | else |
eec2776c | 13236 | with_included_ltdl=yes |
7083c021 | 13237 | fi |
eec2776c | 13238 | |
7083c021 | 13239 | else |
eec2776c | 13240 | with_included_ltdl=yes |
212380e3 | 13241 | fi |
631ef239 | 13242 | |
212380e3 | 13243 | |
7083c021 | 13244 | fi |
212380e3 | 13245 | |
eec2776c AJ |
13246 | |
13247 | ||
13248 | ||
13249 | # Check whether --with-ltdl_include was given. | |
13250 | if test "${with_ltdl_include+set}" = set; then : | |
13251 | withval=$with_ltdl_include; | |
212380e3 | 13252 | fi |
eec2776c AJ |
13253 | |
13254 | ||
13255 | if test -n "$with_ltdl_include"; then | |
13256 | if test -f "$with_ltdl_include/ltdl.h"; then : | |
13257 | else | |
13258 | as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5 | |
13259 | fi | |
212380e3 | 13260 | else |
eec2776c | 13261 | with_ltdl_include=no |
7083c021 | 13262 | fi |
212380e3 | 13263 | |
212380e3 | 13264 | |
eec2776c AJ |
13265 | # Check whether --with-ltdl_lib was given. |
13266 | if test "${with_ltdl_lib+set}" = set; then : | |
13267 | withval=$with_ltdl_lib; | |
7083c021 | 13268 | fi |
eec2776c AJ |
13269 | |
13270 | ||
13271 | if test -n "$with_ltdl_lib"; then | |
13272 | if test -f "$with_ltdl_lib/libltdl.la"; then : | |
13273 | else | |
13274 | as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5 | |
7083c021 | 13275 | fi |
eec2776c AJ |
13276 | else |
13277 | with_ltdl_lib=no | |
13278 | fi | |
13279 | ||
13280 | case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in | |
13281 | ,yes,no,no,) | |
13282 | case $enable_ltdl_convenience in | |
13283 | no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;; | |
13284 | "") enable_ltdl_convenience=yes | |
13285 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | |
13286 | esac | |
13287 | LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la" | |
13288 | LTDLDEPS=$LIBLTDL | |
13289 | LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}" | |
13290 | ||
13291 | ||
13292 | ||
13293 | ||
13294 | ||
13295 | # For backwards non-gettext consistent compatibility... | |
13296 | INCLTDL="$LTDLINCL" | |
13297 | ||
13298 | ||
13299 | ;; | |
13300 | ,no,no,no,) | |
13301 | # If the included ltdl is not to be used, then use the | |
13302 | # preinstalled libltdl we found. | |
13303 | ||
13304 | $as_echo "#define HAVE_LTDL 1" >>confdefs.h | |
13305 | ||
13306 | LIBLTDL=-lltdl | |
13307 | LTDLDEPS= | |
13308 | LTDLINCL= | |
13309 | ;; | |
13310 | ,no*,no,*) | |
13311 | as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5 | |
13312 | ;; | |
13313 | *) with_included_ltdl=no | |
13314 | LIBLTDL="-L$with_ltdl_lib -lltdl" | |
13315 | LTDLDEPS= | |
13316 | LTDLINCL="-I$with_ltdl_include" | |
13317 | ;; | |
13318 | esac | |
13319 | INCLTDL="$LTDLINCL" | |
13320 | ||
13321 | # Report our decision... | |
13322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5 | |
13323 | $as_echo_n "checking where to find libltdl headers... " >&6; } | |
13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5 | |
13325 | $as_echo "$LTDLINCL" >&6; } | |
13326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5 | |
13327 | $as_echo_n "checking where to find libltdl library... " >&6; } | |
13328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5 | |
13329 | $as_echo "$LIBLTDL" >&6; } | |
13330 | ||
13331 | ||
212380e3 | 13332 | |
eec2776c AJ |
13333 | # Check whether --enable-ltdl-install was given. |
13334 | if test "${enable_ltdl_install+set}" = set; then : | |
13335 | enableval=$enable_ltdl_install; | |
212380e3 | 13336 | fi |
eec2776c AJ |
13337 | |
13338 | ||
13339 | case ,${enable_ltdl_install},${enable_ltdl_convenience} in | |
13340 | *yes*) ;; | |
13341 | *) enable_ltdl_convenience=yes ;; | |
13342 | esac | |
13343 | ||
13344 | if test x"${enable_ltdl_install-no}" != xno; then | |
13345 | INSTALL_LTDL_TRUE= | |
13346 | INSTALL_LTDL_FALSE='#' | |
13347 | else | |
13348 | INSTALL_LTDL_TRUE='#' | |
13349 | INSTALL_LTDL_FALSE= | |
212380e3 | 13350 | fi |
eec2776c AJ |
13351 | |
13352 | if test x"${enable_ltdl_convenience-no}" != xno; then | |
13353 | CONVENIENCE_LTDL_TRUE= | |
13354 | CONVENIENCE_LTDL_FALSE='#' | |
7083c021 | 13355 | else |
eec2776c AJ |
13356 | CONVENIENCE_LTDL_TRUE='#' |
13357 | CONVENIENCE_LTDL_FALSE= | |
212380e3 | 13358 | fi |
631ef239 AC |
13359 | |
13360 | ||
13361 | ||
f0718c93 | 13362 | subdirs="$subdirs libltdl" |
212380e3 AC |
13363 | |
13364 | ||
7083c021 | 13365 | |
7083c021 | 13366 | |
eec2776c AJ |
13367 | # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS |
13368 | # the user used. This is so that ltdl.h can pick up the parent projects | |
13369 | # config.h file, The first file in AC_CONFIG_HEADERS must contain the | |
13370 | # definitions required by ltdl.c. | |
13371 | # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility). | |
212380e3 | 13372 | |
7083c021 | 13373 | |
212380e3 | 13374 | |
eec2776c AJ |
13375 | for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h |
13376 | do : | |
13377 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13378 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
13379 | " | |
13380 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
13381 | cat >>confdefs.h <<_ACEOF | |
13382 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
212380e3 | 13383 | _ACEOF |
7083c021 AC |
13384 | |
13385 | fi | |
212380e3 | 13386 | |
eec2776c | 13387 | done |
7083c021 | 13388 | |
212380e3 | 13389 | |
eec2776c AJ |
13390 | for ac_func in closedir opendir readdir |
13391 | do : | |
13392 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13393 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13394 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13395 | cat >>confdefs.h <<_ACEOF | |
13396 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
212380e3 | 13397 | _ACEOF |
212380e3 | 13398 | |
7083c021 | 13399 | else |
7083c021 | 13400 | |
7083c021 | 13401 | |
eec2776c | 13402 | _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext" |
7083c021 | 13403 | |
7083c021 | 13404 | fi |
7083c021 | 13405 | done |
7083c021 | 13406 | |
eec2776c AJ |
13407 | for ac_func in strlcat strlcpy |
13408 | do : | |
13409 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13410 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
13411 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
13412 | cat >>confdefs.h <<_ACEOF | |
13413 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13414 | _ACEOF | |
13415 | ||
13416 | else | |
13417 | ||
13418 | ||
13419 | _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext" | |
212380e3 | 13420 | |
212380e3 | 13421 | fi |
eec2776c | 13422 | done |
631ef239 | 13423 | |
7083c021 | 13424 | |
c52df125 | 13425 | |
eec2776c AJ |
13426 | cat >>confdefs.h <<_ACEOF |
13427 | #define LT_LIBEXT "$libext" | |
13428 | _ACEOF | |
c52df125 | 13429 | |
eec2776c AJ |
13430 | |
13431 | name= | |
13432 | eval "lt_libprefix=\"$libname_spec\"" | |
13433 | ||
13434 | cat >>confdefs.h <<_ACEOF | |
13435 | #define LT_LIBPREFIX "$lt_libprefix" | |
c52df125 | 13436 | _ACEOF |
7083c021 AC |
13437 | |
13438 | ||
eec2776c AJ |
13439 | name=ltdl |
13440 | eval "LTDLOPEN=\"$libname_spec\"" | |
7083c021 | 13441 | |
c52df125 | 13442 | |
c52df125 | 13443 | |
c52df125 | 13444 | |
1db8e007 | 13445 | |
1db8e007 JT |
13446 | |
13447 | ||
13448 | ||
eec2776c | 13449 | # Only expand once: |
1db8e007 | 13450 | |
1db8e007 | 13451 | |
7083c021 | 13452 | |
eec2776c | 13453 | build_ltdl=$with_included_ltdl |
d8c4154d | 13454 | if test x"$build_ltdl" = x"yes"; then |
eec2776c AJ |
13455 | BUILD_LTDL_TRUE= |
13456 | BUILD_LTDL_FALSE='#' | |
13457 | else | |
13458 | BUILD_LTDL_TRUE='#' | |
13459 | BUILD_LTDL_FALSE= | |
13460 | fi | |
7083c021 | 13461 | |
212380e3 | 13462 | |
cfa7b5fd | 13463 | if test "$ac_cv_c_compiler_gnu" = yes; then |
eec2776c | 13464 | IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall" |
212380e3 | 13465 | fi |
631ef239 | 13466 | |
7083c021 | 13467 | if test "$ac_cv_prog_cc_g" = yes; then |
2a19fc3f | 13468 | IRC_CFLAGS="$IRC_CFLAGS -g" |
7083c021 | 13469 | fi |
7083c021 AC |
13470 | |
13471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5 | |
13472 | $as_echo_n "checking for /dev/null... " >&6; } | |
13473 | if test -c /dev/null ; then | |
13474 | ||
13475 | $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h | |
13476 | ||
13477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13478 | $as_echo "yes" >&6; } | |
212380e3 | 13479 | else |
212380e3 | 13480 | |
7083c021 AC |
13481 | $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h |
13482 | ||
13483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5 | |
13484 | $as_echo "no - using devnull.log" >&6; } | |
212380e3 | 13485 | fi |
631ef239 | 13486 | |
7083c021 AC |
13487 | if test ! -z "$CFLAGS"; then |
13488 | IRC_CFLAGS="$IRC_CFLAGS $CFLAGS" | |
212380e3 | 13489 | fi |
631ef239 | 13490 | |
7083c021 AC |
13491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
13492 | $as_echo_n "checking for library containing strerror... " >&6; } | |
b6d0720c | 13493 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
13494 | $as_echo_n "(cached) " >&6 |
13495 | else | |
13496 | ac_func_search_save_LIBS=$LIBS | |
13497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 13498 | /* end confdefs.h. */ |
7083c021 AC |
13499 | |
13500 | /* Override any GCC internal prototype to avoid an error. | |
13501 | Use char because int might match the return type of a GCC | |
13502 | builtin and then its argument prototype would still apply. */ | |
13503 | #ifdef __cplusplus | |
13504 | extern "C" | |
13505 | #endif | |
13506 | char strerror (); | |
212380e3 AC |
13507 | int |
13508 | main () | |
13509 | { | |
7083c021 | 13510 | return strerror (); |
212380e3 AC |
13511 | ; |
13512 | return 0; | |
13513 | } | |
13514 | _ACEOF | |
7083c021 AC |
13515 | for ac_lib in '' cposix; do |
13516 | if test -z "$ac_lib"; then | |
13517 | ac_res="none required" | |
13518 | else | |
13519 | ac_res=-l$ac_lib | |
13520 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
13521 | fi | |
13522 | if ac_fn_c_try_link "$LINENO"; then : | |
13523 | ac_cv_search_strerror=$ac_res | |
13524 | fi | |
13525 | rm -f core conftest.err conftest.$ac_objext \ | |
13526 | conftest$ac_exeext | |
b6d0720c | 13527 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 AC |
13528 | break |
13529 | fi | |
13530 | done | |
b6d0720c | 13531 | if ${ac_cv_search_strerror+:} false; then : |
7083c021 | 13532 | |
212380e3 | 13533 | else |
7083c021 AC |
13534 | ac_cv_search_strerror=no |
13535 | fi | |
13536 | rm conftest.$ac_ext | |
13537 | LIBS=$ac_func_search_save_LIBS | |
13538 | fi | |
13539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | |
13540 | $as_echo "$ac_cv_search_strerror" >&6; } | |
13541 | ac_res=$ac_cv_search_strerror | |
13542 | if test "$ac_res" != no; then : | |
13543 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 13544 | |
212380e3 | 13545 | fi |
631ef239 | 13546 | |
7083c021 AC |
13547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
13548 | $as_echo_n "checking for inline... " >&6; } | |
b6d0720c | 13549 | if ${ac_cv_c_inline+:} false; then : |
7083c021 AC |
13550 | $as_echo_n "(cached) " >&6 |
13551 | else | |
13552 | ac_cv_c_inline=no | |
13553 | for ac_kw in inline __inline__ __inline; do | |
13554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13555 | /* end confdefs.h. */ | |
13556 | #ifndef __cplusplus | |
13557 | typedef int foo_t; | |
13558 | static $ac_kw foo_t static_foo () {return 0; } | |
13559 | $ac_kw foo_t foo () {return 0; } | |
13560 | #endif | |
13561 | ||
13562 | _ACEOF | |
13563 | if ac_fn_c_try_compile "$LINENO"; then : | |
13564 | ac_cv_c_inline=$ac_kw | |
13565 | fi | |
631ef239 | 13566 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 | 13567 | test "$ac_cv_c_inline" != no && break |
212380e3 | 13568 | done |
7083c021 AC |
13569 | |
13570 | fi | |
13571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
13572 | $as_echo "$ac_cv_c_inline" >&6; } | |
13573 | ||
13574 | case $ac_cv_c_inline in | |
13575 | inline | yes) ;; | |
13576 | *) | |
13577 | case $ac_cv_c_inline in | |
13578 | no) ac_val=;; | |
13579 | *) ac_val=$ac_cv_c_inline;; | |
13580 | esac | |
13581 | cat >>confdefs.h <<_ACEOF | |
13582 | #ifndef __cplusplus | |
13583 | #define inline $ac_val | |
13584 | #endif | |
13585 | _ACEOF | |
13586 | ;; | |
212380e3 | 13587 | esac |
7083c021 | 13588 | |
7083c021 AC |
13589 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
13590 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
13591 | set x ${MAKE-make} | |
13592 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b6d0720c | 13593 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
7083c021 AC |
13594 | $as_echo_n "(cached) " >&6 |
13595 | else | |
13596 | cat >conftest.make <<\_ACEOF | |
13597 | SHELL = /bin/sh | |
13598 | all: | |
13599 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
212380e3 | 13600 | _ACEOF |
b6d0720c | 13601 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
7083c021 AC |
13602 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
13603 | *@@@%%%=?*=@@@%%%*) | |
13604 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
13605 | *) | |
13606 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
631ef239 | 13607 | esac |
7083c021 AC |
13608 | rm -f conftest.make |
13609 | fi | |
13610 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
13611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13612 | $as_echo "yes" >&6; } | |
13613 | SET_MAKE= | |
13614 | else | |
13615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13616 | $as_echo "no" >&6; } | |
c52df125 | 13617 | SET_MAKE="MAKE=${MAKE-make}" |
7083c021 | 13618 | fi |
7083c021 | 13619 | |
7083c021 AC |
13620 | |
13621 | # Extract the first word of "rm", so it can be a program name with args. | |
13622 | set dummy rm; ac_word=$2 | |
13623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13624 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13625 | if ${ac_cv_path_RM+:} false; then : |
7083c021 | 13626 | $as_echo_n "(cached) " >&6 |
212380e3 | 13627 | else |
7083c021 AC |
13628 | case $RM in |
13629 | [\\/]* | ?:[\\/]*) | |
13630 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
13631 | ;; | |
13632 | *) | |
13633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13634 | for as_dir in $PATH | |
13635 | do | |
13636 | IFS=$as_save_IFS | |
13637 | test -z "$as_dir" && as_dir=. | |
13638 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13639 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13640 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
13641 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13642 | break 2 | |
13643 | fi | |
13644 | done | |
13645 | done | |
13646 | IFS=$as_save_IFS | |
212380e3 | 13647 | |
7083c021 AC |
13648 | ;; |
13649 | esac | |
212380e3 | 13650 | fi |
7083c021 AC |
13651 | RM=$ac_cv_path_RM |
13652 | if test -n "$RM"; then | |
13653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
13654 | $as_echo "$RM" >&6; } | |
13655 | else | |
13656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13657 | $as_echo "no" >&6; } | |
212380e3 | 13658 | fi |
631ef239 AC |
13659 | |
13660 | ||
7083c021 AC |
13661 | # Extract the first word of "cp", so it can be a program name with args. |
13662 | set dummy cp; ac_word=$2 | |
13663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13664 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13665 | if ${ac_cv_path_CP+:} false; then : |
7083c021 AC |
13666 | $as_echo_n "(cached) " >&6 |
13667 | else | |
13668 | case $CP in | |
13669 | [\\/]* | ?:[\\/]*) | |
13670 | ac_cv_path_CP="$CP" # Let the user override the test with a path. | |
13671 | ;; | |
13672 | *) | |
13673 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13674 | for as_dir in $PATH | |
13675 | do | |
13676 | IFS=$as_save_IFS | |
13677 | test -z "$as_dir" && as_dir=. | |
13678 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13679 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13680 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
13681 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13682 | break 2 | |
13683 | fi | |
13684 | done | |
13685 | done | |
13686 | IFS=$as_save_IFS | |
631ef239 | 13687 | |
7083c021 AC |
13688 | ;; |
13689 | esac | |
13690 | fi | |
13691 | CP=$ac_cv_path_CP | |
13692 | if test -n "$CP"; then | |
13693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 | |
13694 | $as_echo "$CP" >&6; } | |
13695 | else | |
13696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13697 | $as_echo "no" >&6; } | |
13698 | fi | |
212380e3 AC |
13699 | |
13700 | ||
7083c021 AC |
13701 | # Extract the first word of "mv", so it can be a program name with args. |
13702 | set dummy mv; ac_word=$2 | |
13703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13704 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13705 | if ${ac_cv_path_MV+:} false; then : |
7083c021 | 13706 | $as_echo_n "(cached) " >&6 |
212380e3 | 13707 | else |
7083c021 AC |
13708 | case $MV in |
13709 | [\\/]* | ?:[\\/]*) | |
13710 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
13711 | ;; | |
13712 | *) | |
13713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13714 | for as_dir in $PATH | |
13715 | do | |
13716 | IFS=$as_save_IFS | |
13717 | test -z "$as_dir" && as_dir=. | |
13718 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13719 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13720 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
13721 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13722 | break 2 | |
13723 | fi | |
13724 | done | |
13725 | done | |
13726 | IFS=$as_save_IFS | |
13727 | ||
13728 | ;; | |
631ef239 | 13729 | esac |
7083c021 AC |
13730 | fi |
13731 | MV=$ac_cv_path_MV | |
13732 | if test -n "$MV"; then | |
13733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
13734 | $as_echo "$MV" >&6; } | |
212380e3 | 13735 | else |
7083c021 AC |
13736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13737 | $as_echo "no" >&6; } | |
212380e3 | 13738 | fi |
631ef239 | 13739 | |
212380e3 | 13740 | |
7083c021 AC |
13741 | # Extract the first word of "ln", so it can be a program name with args. |
13742 | set dummy ln; ac_word=$2 | |
13743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13744 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13745 | if ${ac_cv_path_LN+:} false; then : |
7083c021 | 13746 | $as_echo_n "(cached) " >&6 |
212380e3 | 13747 | else |
7083c021 AC |
13748 | case $LN in |
13749 | [\\/]* | ?:[\\/]*) | |
13750 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
13751 | ;; | |
13752 | *) | |
13753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13754 | for as_dir in $PATH | |
13755 | do | |
13756 | IFS=$as_save_IFS | |
13757 | test -z "$as_dir" && as_dir=. | |
13758 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13759 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13760 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
13761 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13762 | break 2 | |
13763 | fi | |
13764 | done | |
13765 | done | |
13766 | IFS=$as_save_IFS | |
212380e3 | 13767 | |
7083c021 | 13768 | ;; |
631ef239 | 13769 | esac |
7083c021 AC |
13770 | fi |
13771 | LN=$ac_cv_path_LN | |
13772 | if test -n "$LN"; then | |
13773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
13774 | $as_echo "$LN" >&6; } | |
212380e3 | 13775 | else |
7083c021 AC |
13776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13777 | $as_echo "no" >&6; } | |
212380e3 | 13778 | fi |
631ef239 | 13779 | |
7083c021 AC |
13780 | |
13781 | # Extract the first word of "sed", so it can be a program name with args. | |
13782 | set dummy sed; ac_word=$2 | |
13783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13784 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13785 | if ${ac_cv_path_SED+:} false; then : |
7083c021 AC |
13786 | $as_echo_n "(cached) " >&6 |
13787 | else | |
13788 | case $SED in | |
13789 | [\\/]* | ?:[\\/]*) | |
13790 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
13791 | ;; | |
13792 | *) | |
13793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13794 | for as_dir in $PATH | |
13795 | do | |
13796 | IFS=$as_save_IFS | |
13797 | test -z "$as_dir" && as_dir=. | |
13798 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13799 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13800 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
13801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13802 | break 2 | |
13803 | fi | |
13804 | done | |
212380e3 | 13805 | done |
7083c021 AC |
13806 | IFS=$as_save_IFS |
13807 | ||
13808 | ;; | |
13809 | esac | |
13810 | fi | |
13811 | SED=$ac_cv_path_SED | |
13812 | if test -n "$SED"; then | |
13813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
13814 | $as_echo "$SED" >&6; } | |
212380e3 | 13815 | else |
7083c021 AC |
13816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13817 | $as_echo "no" >&6; } | |
13818 | fi | |
212380e3 | 13819 | |
212380e3 | 13820 | |
7083c021 AC |
13821 | # Extract the first word of "ar", so it can be a program name with args. |
13822 | set dummy ar; ac_word=$2 | |
13823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13824 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13825 | if ${ac_cv_path_AR+:} false; then : |
7083c021 AC |
13826 | $as_echo_n "(cached) " >&6 |
13827 | else | |
13828 | case $AR in | |
13829 | [\\/]* | ?:[\\/]*) | |
13830 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
13831 | ;; | |
13832 | *) | |
13833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13834 | for as_dir in $PATH | |
13835 | do | |
13836 | IFS=$as_save_IFS | |
13837 | test -z "$as_dir" && as_dir=. | |
13838 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13839 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13840 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
13841 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13842 | break 2 | |
13843 | fi | |
13844 | done | |
13845 | done | |
13846 | IFS=$as_save_IFS | |
212380e3 | 13847 | |
7083c021 | 13848 | ;; |
631ef239 | 13849 | esac |
7083c021 AC |
13850 | fi |
13851 | AR=$ac_cv_path_AR | |
13852 | if test -n "$AR"; then | |
13853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
13854 | $as_echo "$AR" >&6; } | |
212380e3 | 13855 | else |
7083c021 AC |
13856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13857 | $as_echo "no" >&6; } | |
212380e3 | 13858 | fi |
631ef239 | 13859 | |
7083c021 AC |
13860 | |
13861 | # Extract the first word of "ld", so it can be a program name with args. | |
13862 | set dummy ld; ac_word=$2 | |
13863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13864 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13865 | if ${ac_cv_path_LD+:} false; then : |
7083c021 | 13866 | $as_echo_n "(cached) " >&6 |
212380e3 | 13867 | else |
7083c021 AC |
13868 | case $LD in |
13869 | [\\/]* | ?:[\\/]*) | |
13870 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
13871 | ;; | |
13872 | *) | |
13873 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13874 | for as_dir in $PATH | |
13875 | do | |
13876 | IFS=$as_save_IFS | |
13877 | test -z "$as_dir" && as_dir=. | |
13878 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13879 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13880 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
13881 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13882 | break 2 | |
13883 | fi | |
13884 | done | |
13885 | done | |
13886 | IFS=$as_save_IFS | |
212380e3 | 13887 | |
7083c021 AC |
13888 | ;; |
13889 | esac | |
212380e3 | 13890 | fi |
7083c021 AC |
13891 | LD=$ac_cv_path_LD |
13892 | if test -n "$LD"; then | |
13893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
13894 | $as_echo "$LD" >&6; } | |
13895 | else | |
13896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13897 | $as_echo "no" >&6; } | |
212380e3 | 13898 | fi |
631ef239 | 13899 | |
212380e3 | 13900 | |
7083c021 AC |
13901 | # Extract the first word of "ranlib", so it can be a program name with args. |
13902 | set dummy ranlib; ac_word=$2 | |
13903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13904 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13905 | if ${ac_cv_path_RANLIB+:} false; then : |
7083c021 | 13906 | $as_echo_n "(cached) " >&6 |
212380e3 | 13907 | else |
7083c021 AC |
13908 | case $RANLIB in |
13909 | [\\/]* | ?:[\\/]*) | |
13910 | ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. | |
13911 | ;; | |
13912 | *) | |
13913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13914 | for as_dir in $PATH | |
13915 | do | |
13916 | IFS=$as_save_IFS | |
13917 | test -z "$as_dir" && as_dir=. | |
13918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13919 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13920 | ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext" |
13921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13922 | break 2 | |
13923 | fi | |
13924 | done | |
13925 | done | |
13926 | IFS=$as_save_IFS | |
212380e3 | 13927 | |
7083c021 AC |
13928 | ;; |
13929 | esac | |
13930 | fi | |
13931 | RANLIB=$ac_cv_path_RANLIB | |
13932 | if test -n "$RANLIB"; then | |
13933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
13934 | $as_echo "$RANLIB" >&6; } | |
13935 | else | |
13936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13937 | $as_echo "no" >&6; } | |
212380e3 | 13938 | fi |
631ef239 | 13939 | |
7083c021 AC |
13940 | |
13941 | # Extract the first word of "touch", so it can be a program name with args. | |
13942 | set dummy touch; ac_word=$2 | |
13943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13944 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13945 | if ${ac_cv_path_TOUCH+:} false; then : |
7083c021 AC |
13946 | $as_echo_n "(cached) " >&6 |
13947 | else | |
13948 | case $TOUCH in | |
13949 | [\\/]* | ?:[\\/]*) | |
13950 | ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. | |
13951 | ;; | |
13952 | *) | |
13953 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13954 | for as_dir in $PATH | |
13955 | do | |
13956 | IFS=$as_save_IFS | |
13957 | test -z "$as_dir" && as_dir=. | |
13958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 13959 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
13960 | ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" |
13961 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13962 | break 2 | |
13963 | fi | |
212380e3 | 13964 | done |
7083c021 AC |
13965 | done |
13966 | IFS=$as_save_IFS | |
13967 | ||
13968 | ;; | |
212380e3 | 13969 | esac |
7083c021 AC |
13970 | fi |
13971 | TOUCH=$ac_cv_path_TOUCH | |
13972 | if test -n "$TOUCH"; then | |
13973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 | |
13974 | $as_echo "$TOUCH" >&6; } | |
212380e3 | 13975 | else |
7083c021 AC |
13976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
13977 | $as_echo "no" >&6; } | |
13978 | fi | |
212380e3 | 13979 | |
212380e3 | 13980 | |
7083c021 AC |
13981 | |
13982 | for ac_prog in 'bison -y' byacc | |
13983 | do | |
13984 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
13985 | set dummy $ac_prog; ac_word=$2 | |
13986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13987 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 13988 | if ${ac_cv_prog_YACC+:} false; then : |
7083c021 | 13989 | $as_echo_n "(cached) " >&6 |
212380e3 | 13990 | else |
7083c021 AC |
13991 | if test -n "$YACC"; then |
13992 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
13993 | else | |
13994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13995 | for as_dir in $PATH | |
13996 | do | |
13997 | IFS=$as_save_IFS | |
13998 | test -z "$as_dir" && as_dir=. | |
13999 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14000 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14001 | ac_cv_prog_YACC="$ac_prog" |
14002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14003 | break 2 | |
14004 | fi | |
14005 | done | |
14006 | done | |
14007 | IFS=$as_save_IFS | |
212380e3 | 14008 | |
212380e3 AC |
14009 | fi |
14010 | fi | |
7083c021 AC |
14011 | YACC=$ac_cv_prog_YACC |
14012 | if test -n "$YACC"; then | |
14013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 | |
14014 | $as_echo "$YACC" >&6; } | |
14015 | else | |
14016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14017 | $as_echo "no" >&6; } | |
212380e3 | 14018 | fi |
631ef239 AC |
14019 | |
14020 | ||
7083c021 AC |
14021 | test -n "$YACC" && break |
14022 | done | |
14023 | test -n "$YACC" || YACC="yacc" | |
212380e3 AC |
14024 | |
14025 | ||
7083c021 | 14026 | if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then |
b6d0720c | 14027 | as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5 |
7083c021 | 14028 | fi |
212380e3 | 14029 | |
7083c021 AC |
14030 | for ac_prog in flex lex |
14031 | do | |
14032 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
14033 | set dummy $ac_prog; ac_word=$2 | |
14034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14035 | $as_echo_n "checking for $ac_word... " >&6; } | |
b6d0720c | 14036 | if ${ac_cv_prog_LEX+:} false; then : |
7083c021 | 14037 | $as_echo_n "(cached) " >&6 |
212380e3 | 14038 | else |
7083c021 AC |
14039 | if test -n "$LEX"; then |
14040 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
212380e3 | 14041 | else |
7083c021 AC |
14042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
14043 | for as_dir in $PATH | |
14044 | do | |
14045 | IFS=$as_save_IFS | |
14046 | test -z "$as_dir" && as_dir=. | |
14047 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2eff3833 | 14048 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
7083c021 AC |
14049 | ac_cv_prog_LEX="$ac_prog" |
14050 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
14051 | break 2 | |
14052 | fi | |
631ef239 | 14053 | done |
7083c021 AC |
14054 | done |
14055 | IFS=$as_save_IFS | |
631ef239 | 14056 | |
7083c021 AC |
14057 | fi |
14058 | fi | |
14059 | LEX=$ac_cv_prog_LEX | |
14060 | if test -n "$LEX"; then | |
14061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 | |
14062 | $as_echo "$LEX" >&6; } | |
631ef239 | 14063 | else |
7083c021 AC |
14064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
14065 | $as_echo "no" >&6; } | |
631ef239 AC |
14066 | fi |
14067 | ||
14068 | ||
7083c021 AC |
14069 | test -n "$LEX" && break |
14070 | done | |
14071 | test -n "$LEX" || LEX=":" | |
212380e3 | 14072 | |
7083c021 AC |
14073 | if test "x$LEX" != "x:"; then |
14074 | cat >conftest.l <<_ACEOF | |
14075 | %% | |
14076 | a { ECHO; } | |
14077 | b { REJECT; } | |
14078 | c { yymore (); } | |
14079 | d { yyless (1); } | |
2eff3833 JT |
14080 | e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ |
14081 | yyless ((input () != 0)); } | |
7083c021 AC |
14082 | f { unput (yytext[0]); } |
14083 | . { BEGIN INITIAL; } | |
14084 | %% | |
14085 | #ifdef YYTEXT_POINTER | |
14086 | extern char *yytext; | |
212380e3 | 14087 | #endif |
212380e3 | 14088 | int |
7083c021 | 14089 | main (void) |
212380e3 | 14090 | { |
7083c021 | 14091 | return ! yylex () + ! yywrap (); |
212380e3 AC |
14092 | } |
14093 | _ACEOF | |
7083c021 | 14094 | { { ac_try="$LEX conftest.l" |
631ef239 AC |
14095 | case "(($ac_try" in |
14096 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14097 | *) ac_try_echo=$ac_try;; | |
14098 | esac | |
7083c021 AC |
14099 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
14100 | $as_echo "$ac_try_echo"; } >&5 | |
14101 | (eval "$LEX conftest.l") 2>&5 | |
212380e3 | 14102 | ac_status=$? |
7083c021 AC |
14103 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
14104 | test $ac_status = 0; } | |
14105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 | |
14106 | $as_echo_n "checking lex output file root... " >&6; } | |
b6d0720c | 14107 | if ${ac_cv_prog_lex_root+:} false; then : |
7083c021 | 14108 | $as_echo_n "(cached) " >&6 |
212380e3 | 14109 | else |
212380e3 | 14110 | |
7083c021 AC |
14111 | if test -f lex.yy.c; then |
14112 | ac_cv_prog_lex_root=lex.yy | |
14113 | elif test -f lexyy.c; then | |
14114 | ac_cv_prog_lex_root=lexyy | |
14115 | else | |
b6d0720c | 14116 | as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 |
7083c021 AC |
14117 | fi |
14118 | fi | |
14119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 | |
14120 | $as_echo "$ac_cv_prog_lex_root" >&6; } | |
14121 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | |
14122 | ||
14123 | if test -z "${LEXLIB+set}"; then | |
14124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 | |
14125 | $as_echo_n "checking lex library... " >&6; } | |
b6d0720c | 14126 | if ${ac_cv_lib_lex+:} false; then : |
7083c021 AC |
14127 | $as_echo_n "(cached) " >&6 |
14128 | else | |
631ef239 | 14129 | |
7083c021 AC |
14130 | ac_save_LIBS=$LIBS |
14131 | ac_cv_lib_lex='none needed' | |
14132 | for ac_lib in '' -lfl -ll; do | |
14133 | LIBS="$ac_lib $ac_save_LIBS" | |
14134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14135 | /* end confdefs.h. */ | |
14136 | `cat $LEX_OUTPUT_ROOT.c` | |
14137 | _ACEOF | |
14138 | if ac_fn_c_try_link "$LINENO"; then : | |
14139 | ac_cv_lib_lex=$ac_lib | |
212380e3 | 14140 | fi |
7083c021 AC |
14141 | rm -f core conftest.err conftest.$ac_objext \ |
14142 | conftest$ac_exeext conftest.$ac_ext | |
14143 | test "$ac_cv_lib_lex" != 'none needed' && break | |
14144 | done | |
14145 | LIBS=$ac_save_LIBS | |
631ef239 | 14146 | |
631ef239 | 14147 | fi |
7083c021 AC |
14148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 |
14149 | $as_echo "$ac_cv_lib_lex" >&6; } | |
14150 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | |
14151 | fi | |
14152 | ||
14153 | ||
14154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 | |
14155 | $as_echo_n "checking whether yytext is a pointer... " >&6; } | |
b6d0720c | 14156 | if ${ac_cv_prog_lex_yytext_pointer+:} false; then : |
7083c021 | 14157 | $as_echo_n "(cached) " >&6 |
631ef239 | 14158 | else |
7083c021 AC |
14159 | # POSIX says lex can declare yytext either as a pointer or an array; the |
14160 | # default is implementation-dependent. Figure out which it is, since | |
14161 | # not all implementations provide the %pointer and %array declarations. | |
14162 | ac_cv_prog_lex_yytext_pointer=no | |
14163 | ac_save_LIBS=$LIBS | |
14164 | LIBS="$LEXLIB $ac_save_LIBS" | |
14165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14166 | /* end confdefs.h. */ | |
b6d0720c AC |
14167 | |
14168 | #define YYTEXT_POINTER 1 | |
7083c021 AC |
14169 | `cat $LEX_OUTPUT_ROOT.c` |
14170 | _ACEOF | |
14171 | if ac_fn_c_try_link "$LINENO"; then : | |
14172 | ac_cv_prog_lex_yytext_pointer=yes | |
212380e3 | 14173 | fi |
7083c021 AC |
14174 | rm -f core conftest.err conftest.$ac_objext \ |
14175 | conftest$ac_exeext conftest.$ac_ext | |
14176 | LIBS=$ac_save_LIBS | |
14177 | ||
212380e3 | 14178 | fi |
7083c021 AC |
14179 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
14180 | $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } | |
14181 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | |
212380e3 | 14182 | |
7083c021 AC |
14183 | $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h |
14184 | ||
14185 | fi | |
14186 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | |
14187 | ||
14188 | fi | |
14189 | ||
14190 | if test "$LEX" = ":"; then | |
b6d0720c | 14191 | as_fn_error $? "could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5 |
212380e3 AC |
14192 | fi |
14193 | ||
9f9b7042 NPB |
14194 | # Check whether --enable-fhs-paths was given. |
14195 | if test "${enable_fhs_paths+set}" = set; then : | |
14196 | enableval=$enable_fhs_paths; | |
14197 | else | |
14198 | if test "$libexecdir" = '${exec_prefix}/libexec' && \ | |
14199 | test "$localstatedir" = '${prefix}/var' && \ | |
14200 | test "$libdir" = '${exec_prefix}/lib'; then : | |
14201 | enable_fhs_paths=no | |
14202 | else | |
14203 | enable_fhs_paths=yes | |
14204 | fi | |
14205 | ||
14206 | fi | |
14207 | ||
14208 | if test "x$enable_fhs_paths" = "xyes"; then : | |
14209 | pkglibexecdir='${libexecdir}/${PACKAGE_TARNAME}' | |
14210 | rundir=${rundir-'${prefix}/run'} | |
14211 | pkgrundir='${rundir}/${PACKAGE_TARNAME}' | |
14212 | pkglocalstatedir='${localstatedir}/${PACKAGE_TARNAME}' | |
14213 | else | |
14214 | libexecdir='${bindir}' | |
14215 | pkglibexecdir='${libexecdir}' | |
14216 | rundir='${sysconfdir}' | |
14217 | pkgrundir='${rundir}' | |
7083c021 | 14218 | localstatedir='${prefix}' |
9f9b7042 | 14219 | pkglocalstatedir='${sysconfdir}' |
631ef239 | 14220 | fi |
9f9b7042 NPB |
14221 | pkglibdir='${libdir}/${PACKAGE_TARNAME}' |
14222 | ||
14223 | ||
14224 | ||
14225 | ||
14226 | ||
14227 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
14228 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14229 | last_ac_define_dir=`eval echo $pkglocalstatedir` | |
14230 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 14231 | ac_define_dir_counter=0 |
9f9b7042 NPB |
14232 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
14233 | last_ac_define_dir="$ac_define_dir" | |
14234 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
14235 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
14236 | if test "x$ac_define_dir_counter" = x128; then : | |
14237 | as_fn_error $? "detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5 | |
14238 | break | |
14239 | fi | |
9f9b7042 NPB |
14240 | done |
14241 | PKGLOCALSTATEDIR="$ac_define_dir" | |
14242 | ||
14243 | ||
14244 | cat >>confdefs.h <<_ACEOF | |
14245 | #define PKGLOCALSTATEDIR "$ac_define_dir" | |
14246 | _ACEOF | |
14247 | ||
14248 | ||
14249 | ||
14250 | ||
14251 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
14252 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14253 | last_ac_define_dir=`eval echo $pkglibexecdir` | |
14254 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 14255 | ac_define_dir_counter=0 |
9f9b7042 NPB |
14256 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
14257 | last_ac_define_dir="$ac_define_dir" | |
14258 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
14259 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
14260 | if test "x$ac_define_dir_counter" = x128; then : | |
14261 | as_fn_error $? "detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5 | |
14262 | break | |
14263 | fi | |
9f9b7042 NPB |
14264 | done |
14265 | PKGLIBEXECDIR="$ac_define_dir" | |
14266 | ||
14267 | ||
14268 | cat >>confdefs.h <<_ACEOF | |
14269 | #define PKGLIBEXECDIR "$ac_define_dir" | |
14270 | _ACEOF | |
14271 | ||
14272 | ||
212380e3 | 14273 | |
7083c021 AC |
14274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
14275 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
b6d0720c | 14276 | if ${ac_cv_header_stdc+:} false; then : |
7083c021 | 14277 | $as_echo_n "(cached) " >&6 |
212380e3 | 14278 | else |
7083c021 | 14279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 14280 | /* end confdefs.h. */ |
7083c021 AC |
14281 | #include <stdlib.h> |
14282 | #include <stdarg.h> | |
14283 | #include <string.h> | |
14284 | #include <float.h> | |
212380e3 AC |
14285 | |
14286 | int | |
14287 | main () | |
14288 | { | |
7083c021 | 14289 | |
212380e3 AC |
14290 | ; |
14291 | return 0; | |
14292 | } | |
14293 | _ACEOF | |
7083c021 AC |
14294 | if ac_fn_c_try_compile "$LINENO"; then : |
14295 | ac_cv_header_stdc=yes | |
212380e3 | 14296 | else |
7083c021 | 14297 | ac_cv_header_stdc=no |
212380e3 | 14298 | fi |
631ef239 | 14299 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14300 | |
7083c021 AC |
14301 | if test $ac_cv_header_stdc = yes; then |
14302 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
14303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14304 | /* end confdefs.h. */ | |
14305 | #include <string.h> | |
14306 | ||
212380e3 | 14307 | _ACEOF |
7083c021 AC |
14308 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
14309 | $EGREP "memchr" >/dev/null 2>&1; then : | |
14310 | ||
14311 | else | |
14312 | ac_cv_header_stdc=no | |
14313 | fi | |
14314 | rm -f conftest* | |
212380e3 AC |
14315 | |
14316 | fi | |
14317 | ||
7083c021 AC |
14318 | if test $ac_cv_header_stdc = yes; then |
14319 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
14320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14321 | /* end confdefs.h. */ | |
14322 | #include <stdlib.h> | |
14323 | ||
14324 | _ACEOF | |
14325 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
14326 | $EGREP "free" >/dev/null 2>&1; then : | |
212380e3 | 14327 | |
212380e3 | 14328 | else |
7083c021 | 14329 | ac_cv_header_stdc=no |
631ef239 | 14330 | fi |
7083c021 | 14331 | rm -f conftest* |
631ef239 | 14332 | |
7083c021 | 14333 | fi |
212380e3 | 14334 | |
7083c021 AC |
14335 | if test $ac_cv_header_stdc = yes; then |
14336 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
14337 | if test "$cross_compiling" = yes; then : | |
14338 | : | |
212380e3 | 14339 | else |
7083c021 | 14340 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 14341 | /* end confdefs.h. */ |
7083c021 AC |
14342 | #include <ctype.h> |
14343 | #include <stdlib.h> | |
14344 | #if ((' ' & 0x0FF) == 0x020) | |
14345 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
14346 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
14347 | #else | |
14348 | # define ISLOWER(c) \ | |
14349 | (('a' <= (c) && (c) <= 'i') \ | |
14350 | || ('j' <= (c) && (c) <= 'r') \ | |
14351 | || ('s' <= (c) && (c) <= 'z')) | |
14352 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
212380e3 | 14353 | #endif |
7083c021 AC |
14354 | |
14355 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
212380e3 AC |
14356 | int |
14357 | main () | |
14358 | { | |
7083c021 AC |
14359 | int i; |
14360 | for (i = 0; i < 256; i++) | |
14361 | if (XOR (islower (i), ISLOWER (i)) | |
14362 | || toupper (i) != TOUPPER (i)) | |
14363 | return 2; | |
212380e3 AC |
14364 | return 0; |
14365 | } | |
14366 | _ACEOF | |
7083c021 | 14367 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 | 14368 | |
7083c021 AC |
14369 | else |
14370 | ac_cv_header_stdc=no | |
631ef239 | 14371 | fi |
7083c021 AC |
14372 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14373 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 14374 | fi |
7083c021 | 14375 | |
212380e3 | 14376 | fi |
212380e3 | 14377 | fi |
7083c021 AC |
14378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
14379 | $as_echo "$ac_cv_header_stdc" >&6; } | |
14380 | if test $ac_cv_header_stdc = yes; then | |
14381 | ||
14382 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
212380e3 AC |
14383 | |
14384 | fi | |
14385 | ||
14386 | ||
7083c021 AC |
14387 | 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 |
14388 | do : | |
14389 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14390 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
b6d0720c | 14391 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7083c021 AC |
14392 | cat >>confdefs.h <<_ACEOF |
14393 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14394 | _ACEOF | |
212380e3 | 14395 | |
212380e3 AC |
14396 | fi |
14397 | ||
7083c021 | 14398 | done |
212380e3 AC |
14399 | |
14400 | ||
212380e3 | 14401 | |
7083c021 AC |
14402 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
14403 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
b6d0720c | 14404 | if ${ac_cv_c_const+:} false; then : |
7083c021 AC |
14405 | $as_echo_n "(cached) " >&6 |
14406 | else | |
14407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14408 | /* end confdefs.h. */ | |
212380e3 | 14409 | |
7083c021 AC |
14410 | int |
14411 | main () | |
14412 | { | |
2eff3833 | 14413 | |
7083c021 | 14414 | #ifndef __cplusplus |
2eff3833 | 14415 | /* Ultrix mips cc rejects this sort of thing. */ |
7083c021 | 14416 | typedef int charset[2]; |
2eff3833 | 14417 | const charset cs = { 0, 0 }; |
7083c021 AC |
14418 | /* SunOS 4.1.1 cc rejects this. */ |
14419 | char const *const *pcpcc; | |
14420 | char **ppc; | |
14421 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
14422 | struct point {int x, y;}; | |
14423 | static struct point const zero = {0,0}; | |
14424 | /* AIX XL C 1.02.0.0 rejects this. | |
14425 | It does not let you subtract one const X* pointer from another in | |
14426 | an arm of an if-expression whose if-part is not a constant | |
14427 | expression */ | |
14428 | const char *g = "string"; | |
14429 | pcpcc = &g + (g ? g-g : 0); | |
14430 | /* HPUX 7.0 cc rejects these. */ | |
14431 | ++pcpcc; | |
14432 | ppc = (char**) pcpcc; | |
14433 | pcpcc = (char const *const *) ppc; | |
2eff3833 JT |
14434 | { /* SCO 3.2v4 cc rejects this sort of thing. */ |
14435 | char tx; | |
14436 | char *t = &tx; | |
7083c021 | 14437 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
212380e3 | 14438 | |
7083c021 AC |
14439 | *t++ = 0; |
14440 | if (s) return 0; | |
14441 | } | |
14442 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
14443 | int x[] = {25, 17}; | |
14444 | const int *foo = &x[0]; | |
14445 | ++foo; | |
14446 | } | |
14447 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
14448 | typedef const int *iptr; | |
14449 | iptr p = 0; | |
14450 | ++p; | |
14451 | } | |
2eff3833 | 14452 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying |
7083c021 | 14453 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
2eff3833 JT |
14454 | struct s { int j; const int *ap[3]; } bx; |
14455 | struct s *b = &bx; b->j = 5; | |
7083c021 AC |
14456 | } |
14457 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
14458 | const int foo = 10; | |
14459 | if (!foo) return 0; | |
14460 | } | |
14461 | return !cs[0] && !zero.x; | |
14462 | #endif | |
212380e3 | 14463 | |
7083c021 AC |
14464 | ; |
14465 | return 0; | |
14466 | } | |
212380e3 | 14467 | _ACEOF |
7083c021 AC |
14468 | if ac_fn_c_try_compile "$LINENO"; then : |
14469 | ac_cv_c_const=yes | |
212380e3 | 14470 | else |
7083c021 | 14471 | ac_cv_c_const=no |
212380e3 | 14472 | fi |
631ef239 | 14473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14474 | fi |
7083c021 AC |
14475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
14476 | $as_echo "$ac_cv_c_const" >&6; } | |
14477 | if test $ac_cv_c_const = no; then | |
212380e3 | 14478 | |
7083c021 | 14479 | $as_echo "#define const /**/" >>confdefs.h |
212380e3 AC |
14480 | |
14481 | fi | |
14482 | ||
7083c021 AC |
14483 | if test "$ac_cv_header_machine_endian_h" = "no" ; then |
14484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
14485 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 14486 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 | 14487 | $as_echo_n "(cached) " >&6 |
212380e3 | 14488 | else |
7083c021 AC |
14489 | ac_cv_c_bigendian=unknown |
14490 | # See if we're dealing with a universal compiler. | |
14491 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14492 | /* end confdefs.h. */ | |
14493 | #ifndef __APPLE_CC__ | |
14494 | not a universal capable compiler | |
14495 | #endif | |
14496 | typedef int dummy; | |
14497 | ||
14498 | _ACEOF | |
14499 | if ac_fn_c_try_compile "$LINENO"; then : | |
14500 | ||
14501 | # Check for potential -arch flags. It is not universal unless | |
14502 | # there are at least two -arch flags with different values. | |
14503 | ac_arch= | |
14504 | ac_prev= | |
14505 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
14506 | if test -n "$ac_prev"; then | |
14507 | case $ac_word in | |
14508 | i?86 | x86_64 | ppc | ppc64) | |
14509 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
14510 | ac_arch=$ac_word | |
14511 | else | |
14512 | ac_cv_c_bigendian=universal | |
14513 | break | |
14514 | fi | |
14515 | ;; | |
14516 | esac | |
14517 | ac_prev= | |
14518 | elif test "x$ac_word" = "x-arch"; then | |
14519 | ac_prev=arch | |
14520 | fi | |
14521 | done | |
14522 | fi | |
14523 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14524 | if test $ac_cv_c_bigendian = unknown; then | |
14525 | # See if sys/param.h defines the BYTE_ORDER macro. | |
14526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
14527 | /* end confdefs.h. */ |
14528 | #include <sys/types.h> | |
7083c021 | 14529 | #include <sys/param.h> |
212380e3 AC |
14530 | |
14531 | int | |
14532 | main () | |
14533 | { | |
7083c021 AC |
14534 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
14535 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
14536 | && LITTLE_ENDIAN) | |
14537 | bogus endian macros | |
14538 | #endif | |
212380e3 AC |
14539 | |
14540 | ; | |
14541 | return 0; | |
14542 | } | |
14543 | _ACEOF | |
7083c021 | 14544 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 14545 | # It does; now see whether it defined to BIG_ENDIAN or not. |
7083c021 | 14546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
14547 | /* end confdefs.h. */ |
14548 | #include <sys/types.h> | |
7083c021 | 14549 | #include <sys/param.h> |
212380e3 AC |
14550 | |
14551 | int | |
14552 | main () | |
14553 | { | |
14554 | #if BYTE_ORDER != BIG_ENDIAN | |
7083c021 AC |
14555 | not big endian |
14556 | #endif | |
212380e3 AC |
14557 | |
14558 | ; | |
14559 | return 0; | |
14560 | } | |
14561 | _ACEOF | |
7083c021 | 14562 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
14563 | ac_cv_c_bigendian=yes |
14564 | else | |
7083c021 | 14565 | ac_cv_c_bigendian=no |
212380e3 | 14566 | fi |
631ef239 | 14567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7083c021 AC |
14568 | fi |
14569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14570 | fi | |
14571 | if test $ac_cv_c_bigendian = unknown; then | |
14572 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
14573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14574 | /* end confdefs.h. */ | |
14575 | #include <limits.h> | |
212380e3 | 14576 | |
7083c021 AC |
14577 | int |
14578 | main () | |
14579 | { | |
14580 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
14581 | bogus endian macros | |
14582 | #endif | |
14583 | ||
14584 | ; | |
14585 | return 0; | |
14586 | } | |
212380e3 | 14587 | _ACEOF |
7083c021 AC |
14588 | if ac_fn_c_try_compile "$LINENO"; then : |
14589 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
14590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 14591 | /* end confdefs.h. */ |
7083c021 AC |
14592 | #include <limits.h> |
14593 | ||
212380e3 AC |
14594 | int |
14595 | main () | |
14596 | { | |
7083c021 AC |
14597 | #ifndef _BIG_ENDIAN |
14598 | not big endian | |
14599 | #endif | |
14600 | ||
212380e3 AC |
14601 | ; |
14602 | return 0; | |
14603 | } | |
14604 | _ACEOF | |
7083c021 | 14605 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 | 14606 | ac_cv_c_bigendian=yes |
7083c021 AC |
14607 | else |
14608 | ac_cv_c_bigendian=no | |
212380e3 | 14609 | fi |
7083c021 | 14610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14611 | fi |
7083c021 AC |
14612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
14613 | fi | |
14614 | if test $ac_cv_c_bigendian = unknown; then | |
14615 | # Compile a test program. | |
14616 | if test "$cross_compiling" = yes; then : | |
14617 | # Try to guess by grepping values from an object file. | |
14618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14619 | /* end confdefs.h. */ | |
14620 | short int ascii_mm[] = | |
14621 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
14622 | short int ascii_ii[] = | |
14623 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
14624 | int use_ascii (int i) { | |
14625 | return ascii_mm[i] + ascii_ii[i]; | |
14626 | } | |
14627 | short int ebcdic_ii[] = | |
14628 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
14629 | short int ebcdic_mm[] = | |
14630 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
14631 | int use_ebcdic (int i) { | |
14632 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
14633 | } | |
14634 | extern int foo; | |
631ef239 | 14635 | |
7083c021 AC |
14636 | int |
14637 | main () | |
14638 | { | |
14639 | return use_ascii (foo) == use_ebcdic (foo); | |
14640 | ; | |
14641 | return 0; | |
14642 | } | |
14643 | _ACEOF | |
14644 | if ac_fn_c_try_compile "$LINENO"; then : | |
14645 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
14646 | ac_cv_c_bigendian=yes | |
14647 | fi | |
14648 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
14649 | if test "$ac_cv_c_bigendian" = unknown; then | |
14650 | ac_cv_c_bigendian=no | |
14651 | else | |
14652 | # finding both strings is unlikely to happen, but who knows? | |
14653 | ac_cv_c_bigendian=unknown | |
14654 | fi | |
14655 | fi | |
212380e3 | 14656 | fi |
631ef239 | 14657 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 14658 | else |
7083c021 | 14659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 14660 | /* end confdefs.h. */ |
631ef239 | 14661 | $ac_includes_default |
212380e3 AC |
14662 | int |
14663 | main () | |
14664 | { | |
631ef239 | 14665 | |
7083c021 AC |
14666 | /* Are we little or big endian? From Harbison&Steele. */ |
14667 | union | |
14668 | { | |
14669 | long int l; | |
14670 | char c[sizeof (long int)]; | |
14671 | } u; | |
14672 | u.l = 1; | |
14673 | return u.c[sizeof (long int) - 1] == 1; | |
631ef239 AC |
14674 | |
14675 | ; | |
14676 | return 0; | |
212380e3 AC |
14677 | } |
14678 | _ACEOF | |
7083c021 | 14679 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
14680 | ac_cv_c_bigendian=no |
14681 | else | |
7083c021 | 14682 | ac_cv_c_bigendian=yes |
212380e3 | 14683 | fi |
7083c021 AC |
14684 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14685 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 14686 | fi |
631ef239 | 14687 | |
7083c021 | 14688 | fi |
212380e3 | 14689 | fi |
7083c021 AC |
14690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
14691 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
14692 | case $ac_cv_c_bigendian in #( | |
14693 | yes) | |
14694 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
14695 | ;; #( | |
14696 | no) | |
14697 | ;; #( | |
14698 | universal) | |
14699 | ||
14700 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
14701 | ||
14702 | ;; #( | |
14703 | *) | |
b6d0720c | 14704 | as_fn_error $? "unknown endianness |
7083c021 AC |
14705 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
14706 | esac | |
631ef239 | 14707 | |
212380e3 | 14708 | fi |
7083c021 | 14709 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
b6d0720c | 14710 | if test "x$ac_cv_type_pid_t" = xyes; then : |
212380e3 | 14711 | |
7083c021 | 14712 | else |
212380e3 | 14713 | |
7083c021 AC |
14714 | cat >>confdefs.h <<_ACEOF |
14715 | #define pid_t int | |
14716 | _ACEOF | |
212380e3 | 14717 | |
212380e3 | 14718 | fi |
7083c021 AC |
14719 | |
14720 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
b6d0720c | 14721 | if test "x$ac_cv_type_size_t" = xyes; then : |
7083c021 | 14722 | |
212380e3 | 14723 | else |
7083c021 AC |
14724 | |
14725 | cat >>confdefs.h <<_ACEOF | |
14726 | #define size_t unsigned int | |
212380e3 | 14727 | _ACEOF |
7083c021 AC |
14728 | |
14729 | fi | |
14730 | ||
14731 | # The cast to long int works around a bug in the HP C Compiler | |
14732 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14733 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14734 | # This bug is HP SR number 8606223364. | |
14735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 | |
14736 | $as_echo_n "checking size of short... " >&6; } | |
b6d0720c | 14737 | if ${ac_cv_sizeof_short+:} false; then : |
7083c021 | 14738 | $as_echo_n "(cached) " >&6 |
212380e3 | 14739 | else |
7083c021 AC |
14740 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
14741 | ||
14742 | else | |
14743 | if test "$ac_cv_type_short" = yes; then | |
14744 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14745 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14746 | as_fn_error 77 "cannot compute sizeof (short) |
14747 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14748 | else |
14749 | ac_cv_sizeof_short=0 | |
14750 | fi | |
14751 | fi | |
212380e3 | 14752 | |
212380e3 | 14753 | fi |
7083c021 AC |
14754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
14755 | $as_echo "$ac_cv_sizeof_short" >&6; } | |
631ef239 | 14756 | |
212380e3 | 14757 | |
7083c021 AC |
14758 | |
14759 | cat >>confdefs.h <<_ACEOF | |
14760 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
212380e3 | 14761 | _ACEOF |
7083c021 AC |
14762 | |
14763 | ||
14764 | # The cast to long int works around a bug in the HP C Compiler | |
14765 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14766 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14767 | # This bug is HP SR number 8606223364. | |
14768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
14769 | $as_echo_n "checking size of int... " >&6; } | |
b6d0720c | 14770 | if ${ac_cv_sizeof_int+:} false; then : |
7083c021 AC |
14771 | $as_echo_n "(cached) " >&6 |
14772 | else | |
14773 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
14774 | ||
14775 | else | |
14776 | if test "$ac_cv_type_int" = yes; then | |
14777 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14778 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14779 | as_fn_error 77 "cannot compute sizeof (int) |
14780 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14781 | else |
14782 | ac_cv_sizeof_int=0 | |
14783 | fi | |
14784 | fi | |
14785 | ||
14786 | fi | |
14787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
14788 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
14789 | ||
14790 | ||
14791 | ||
14792 | cat >>confdefs.h <<_ACEOF | |
14793 | #define SIZEOF_INT $ac_cv_sizeof_int | |
212380e3 | 14794 | _ACEOF |
7083c021 AC |
14795 | |
14796 | ||
14797 | # The cast to long int works around a bug in the HP C Compiler | |
14798 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14799 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14800 | # This bug is HP SR number 8606223364. | |
14801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
14802 | $as_echo_n "checking size of long... " >&6; } | |
b6d0720c | 14803 | if ${ac_cv_sizeof_long+:} false; then : |
7083c021 | 14804 | $as_echo_n "(cached) " >&6 |
212380e3 | 14805 | else |
7083c021 | 14806 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
212380e3 | 14807 | |
7083c021 AC |
14808 | else |
14809 | if test "$ac_cv_type_long" = yes; then | |
14810 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14811 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14812 | as_fn_error 77 "cannot compute sizeof (long) |
14813 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14814 | else |
14815 | ac_cv_sizeof_long=0 | |
14816 | fi | |
212380e3 | 14817 | fi |
631ef239 | 14818 | |
7083c021 AC |
14819 | fi |
14820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
14821 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
212380e3 | 14822 | |
631ef239 | 14823 | |
7083c021 AC |
14824 | |
14825 | cat >>confdefs.h <<_ACEOF | |
14826 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
14827 | _ACEOF | |
14828 | ||
14829 | ||
14830 | # The cast to long int works around a bug in the HP C Compiler | |
14831 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14832 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14833 | # This bug is HP SR number 8606223364. | |
14834 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
14835 | $as_echo_n "checking size of long long... " >&6; } | |
b6d0720c | 14836 | if ${ac_cv_sizeof_long_long+:} false; then : |
7083c021 AC |
14837 | $as_echo_n "(cached) " >&6 |
14838 | else | |
14839 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : | |
14840 | ||
212380e3 | 14841 | else |
7083c021 AC |
14842 | if test "$ac_cv_type_long_long" = yes; then |
14843 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14844 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
b6d0720c AC |
14845 | as_fn_error 77 "cannot compute sizeof (long long) |
14846 | See \`config.log' for more details" "$LINENO" 5; } | |
7083c021 AC |
14847 | else |
14848 | ac_cv_sizeof_long_long=0 | |
14849 | fi | |
212380e3 | 14850 | fi |
212380e3 AC |
14851 | |
14852 | fi | |
7083c021 AC |
14853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
14854 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
212380e3 AC |
14855 | |
14856 | ||
14857 | ||
7083c021 AC |
14858 | cat >>confdefs.h <<_ACEOF |
14859 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
14860 | _ACEOF | |
212380e3 | 14861 | |
212380e3 | 14862 | |
212380e3 | 14863 | |
7083c021 AC |
14864 | |
14865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
14866 | $as_echo_n "checking for library containing socket... " >&6; } | |
b6d0720c | 14867 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
14868 | $as_echo_n "(cached) " >&6 |
14869 | else | |
14870 | ac_func_search_save_LIBS=$LIBS | |
14871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 14872 | /* end confdefs.h. */ |
7083c021 AC |
14873 | |
14874 | /* Override any GCC internal prototype to avoid an error. | |
14875 | Use char because int might match the return type of a GCC | |
14876 | builtin and then its argument prototype would still apply. */ | |
14877 | #ifdef __cplusplus | |
14878 | extern "C" | |
14879 | #endif | |
14880 | char socket (); | |
212380e3 AC |
14881 | int |
14882 | main () | |
14883 | { | |
7083c021 | 14884 | return socket (); |
212380e3 AC |
14885 | ; |
14886 | return 0; | |
14887 | } | |
14888 | _ACEOF | |
7083c021 AC |
14889 | for ac_lib in '' socket; do |
14890 | if test -z "$ac_lib"; then | |
14891 | ac_res="none required" | |
14892 | else | |
14893 | ac_res=-l$ac_lib | |
14894 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14895 | fi | |
14896 | if ac_fn_c_try_link "$LINENO"; then : | |
14897 | ac_cv_search_socket=$ac_res | |
14898 | fi | |
14899 | rm -f core conftest.err conftest.$ac_objext \ | |
14900 | conftest$ac_exeext | |
b6d0720c | 14901 | if ${ac_cv_search_socket+:} false; then : |
7083c021 AC |
14902 | break |
14903 | fi | |
14904 | done | |
b6d0720c | 14905 | if ${ac_cv_search_socket+:} false; then : |
212380e3 AC |
14906 | |
14907 | else | |
7083c021 AC |
14908 | ac_cv_search_socket=no |
14909 | fi | |
14910 | rm conftest.$ac_ext | |
14911 | LIBS=$ac_func_search_save_LIBS | |
14912 | fi | |
14913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
14914 | $as_echo "$ac_cv_search_socket" >&6; } | |
14915 | ac_res=$ac_cv_search_socket | |
14916 | if test "$ac_res" != no; then : | |
14917 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 14918 | |
7083c021 | 14919 | else |
b6d0720c | 14920 | as_fn_error $? "You have no socket()! Aborting." "$LINENO" 5 |
212380e3 | 14921 | fi |
631ef239 | 14922 | |
212380e3 | 14923 | |
7083c021 AC |
14924 | if test x"$SUN" = xyes; then |
14925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5 | |
14926 | $as_echo_n "checking for library containing inet_ntoa... " >&6; } | |
b6d0720c | 14927 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
14928 | $as_echo_n "(cached) " >&6 |
14929 | else | |
14930 | ac_func_search_save_LIBS=$LIBS | |
14931 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 14932 | /* end confdefs.h. */ |
7083c021 AC |
14933 | |
14934 | /* Override any GCC internal prototype to avoid an error. | |
14935 | Use char because int might match the return type of a GCC | |
14936 | builtin and then its argument prototype would still apply. */ | |
14937 | #ifdef __cplusplus | |
14938 | extern "C" | |
14939 | #endif | |
14940 | char inet_ntoa (); | |
212380e3 AC |
14941 | int |
14942 | main () | |
14943 | { | |
7083c021 | 14944 | return inet_ntoa (); |
212380e3 AC |
14945 | ; |
14946 | return 0; | |
14947 | } | |
14948 | _ACEOF | |
7083c021 AC |
14949 | for ac_lib in '' nsl; do |
14950 | if test -z "$ac_lib"; then | |
14951 | ac_res="none required" | |
14952 | else | |
14953 | ac_res=-l$ac_lib | |
14954 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
14955 | fi | |
14956 | if ac_fn_c_try_link "$LINENO"; then : | |
14957 | ac_cv_search_inet_ntoa=$ac_res | |
14958 | fi | |
14959 | rm -f core conftest.err conftest.$ac_objext \ | |
14960 | conftest$ac_exeext | |
b6d0720c | 14961 | if ${ac_cv_search_inet_ntoa+:} false; then : |
7083c021 AC |
14962 | break |
14963 | fi | |
14964 | done | |
b6d0720c | 14965 | if ${ac_cv_search_inet_ntoa+:} false; then : |
212380e3 AC |
14966 | |
14967 | else | |
7083c021 AC |
14968 | ac_cv_search_inet_ntoa=no |
14969 | fi | |
14970 | rm conftest.$ac_ext | |
14971 | LIBS=$ac_func_search_save_LIBS | |
14972 | fi | |
14973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5 | |
14974 | $as_echo "$ac_cv_search_inet_ntoa" >&6; } | |
14975 | ac_res=$ac_cv_search_inet_ntoa | |
14976 | if test "$ac_res" != no; then : | |
14977 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 14978 | |
7083c021 | 14979 | else |
b6d0720c | 14980 | as_fn_error $? "libnsl not found! Aborting." "$LINENO" 5 |
212380e3 | 14981 | fi |
631ef239 | 14982 | |
7083c021 | 14983 | fi |
212380e3 | 14984 | |
7083c021 AC |
14985 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h> |
14986 | #include <sys/socket.h> | |
14987 | " | |
b6d0720c | 14988 | if test "x$ac_cv_type_socklen_t" = xyes; then : |
212380e3 AC |
14989 | |
14990 | else | |
14991 | ||
7083c021 | 14992 | $as_echo "#define socklen_t unsigned int" >>confdefs.h |
212380e3 | 14993 | |
7083c021 | 14994 | fi |
212380e3 AC |
14995 | |
14996 | ||
7083c021 AC |
14997 | # Check whether --enable-ipv6 was given. |
14998 | if test "${enable_ipv6+set}" = set; then : | |
14999 | enableval=$enable_ipv6; ipv6=$enableval | |
212380e3 | 15000 | else |
7083c021 AC |
15001 | ipv6=no |
15002 | fi | |
212380e3 | 15003 | |
212380e3 | 15004 | |
7083c021 AC |
15005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 |
15006 | $as_echo_n "checking for library containing crypt... " >&6; } | |
b6d0720c | 15007 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
15008 | $as_echo_n "(cached) " >&6 |
15009 | else | |
15010 | ac_func_search_save_LIBS=$LIBS | |
15011 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15012 | /* end confdefs.h. */ | |
212380e3 | 15013 | |
631ef239 AC |
15014 | /* Override any GCC internal prototype to avoid an error. |
15015 | Use char because int might match the return type of a GCC | |
15016 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15017 | #ifdef __cplusplus |
15018 | extern "C" | |
212380e3 | 15019 | #endif |
7083c021 | 15020 | char crypt (); |
212380e3 AC |
15021 | int |
15022 | main () | |
15023 | { | |
7083c021 | 15024 | return crypt (); |
212380e3 AC |
15025 | ; |
15026 | return 0; | |
15027 | } | |
15028 | _ACEOF | |
7083c021 AC |
15029 | for ac_lib in '' crypt descrypt; do |
15030 | if test -z "$ac_lib"; then | |
15031 | ac_res="none required" | |
15032 | else | |
15033 | ac_res=-l$ac_lib | |
15034 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15035 | fi | |
15036 | if ac_fn_c_try_link "$LINENO"; then : | |
15037 | ac_cv_search_crypt=$ac_res | |
15038 | fi | |
15039 | rm -f core conftest.err conftest.$ac_objext \ | |
15040 | conftest$ac_exeext | |
b6d0720c | 15041 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 AC |
15042 | break |
15043 | fi | |
15044 | done | |
b6d0720c | 15045 | if ${ac_cv_search_crypt+:} false; then : |
7083c021 | 15046 | |
212380e3 | 15047 | else |
7083c021 AC |
15048 | ac_cv_search_crypt=no |
15049 | fi | |
15050 | rm conftest.$ac_ext | |
15051 | LIBS=$ac_func_search_save_LIBS | |
15052 | fi | |
15053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | |
15054 | $as_echo "$ac_cv_search_crypt" >&6; } | |
15055 | ac_res=$ac_cv_search_crypt | |
15056 | if test "$ac_res" != no; then : | |
15057 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
212380e3 | 15058 | |
212380e3 | 15059 | fi |
631ef239 | 15060 | |
7083c021 AC |
15061 | |
15062 | CRYPT_LIB=$ac_cv_search_crypt | |
15063 | ||
15064 | if test "$CRYPT_LIB" = "none required"; then | |
15065 | unset CRYPT_LIB | |
15066 | elif test "$CRYPT_LIB" = no; then | |
15067 | unset CRYPT_LIB | |
212380e3 | 15068 | fi |
7083c021 AC |
15069 | |
15070 | ||
15071 | ||
7083c021 AC |
15072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
15073 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
b6d0720c | 15074 | if ${ac_cv_c_bigendian+:} false; then : |
7083c021 AC |
15075 | $as_echo_n "(cached) " >&6 |
15076 | else | |
15077 | ac_cv_c_bigendian=unknown | |
15078 | # See if we're dealing with a universal compiler. | |
15079 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15080 | /* end confdefs.h. */ | |
15081 | #ifndef __APPLE_CC__ | |
15082 | not a universal capable compiler | |
15083 | #endif | |
15084 | typedef int dummy; | |
15085 | ||
15086 | _ACEOF | |
15087 | if ac_fn_c_try_compile "$LINENO"; then : | |
15088 | ||
15089 | # Check for potential -arch flags. It is not universal unless | |
15090 | # there are at least two -arch flags with different values. | |
15091 | ac_arch= | |
15092 | ac_prev= | |
15093 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
15094 | if test -n "$ac_prev"; then | |
15095 | case $ac_word in | |
15096 | i?86 | x86_64 | ppc | ppc64) | |
15097 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
15098 | ac_arch=$ac_word | |
15099 | else | |
15100 | ac_cv_c_bigendian=universal | |
15101 | break | |
15102 | fi | |
15103 | ;; | |
15104 | esac | |
15105 | ac_prev= | |
15106 | elif test "x$ac_word" = "x-arch"; then | |
15107 | ac_prev=arch | |
15108 | fi | |
15109 | done | |
212380e3 | 15110 | fi |
7083c021 AC |
15111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15112 | if test $ac_cv_c_bigendian = unknown; then | |
15113 | # See if sys/param.h defines the BYTE_ORDER macro. | |
15114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15115 | /* end confdefs.h. */ | |
15116 | #include <sys/types.h> | |
15117 | #include <sys/param.h> | |
15118 | ||
15119 | int | |
15120 | main () | |
15121 | { | |
15122 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
15123 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
15124 | && LITTLE_ENDIAN) | |
15125 | bogus endian macros | |
15126 | #endif | |
15127 | ||
15128 | ; | |
15129 | return 0; | |
15130 | } | |
15131 | _ACEOF | |
15132 | if ac_fn_c_try_compile "$LINENO"; then : | |
15133 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
15134 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15135 | /* end confdefs.h. */ | |
15136 | #include <sys/types.h> | |
15137 | #include <sys/param.h> | |
15138 | ||
15139 | int | |
15140 | main () | |
15141 | { | |
15142 | #if BYTE_ORDER != BIG_ENDIAN | |
15143 | not big endian | |
15144 | #endif | |
212380e3 | 15145 | |
7083c021 AC |
15146 | ; |
15147 | return 0; | |
15148 | } | |
15149 | _ACEOF | |
15150 | if ac_fn_c_try_compile "$LINENO"; then : | |
15151 | ac_cv_c_bigendian=yes | |
212380e3 | 15152 | else |
7083c021 AC |
15153 | ac_cv_c_bigendian=no |
15154 | fi | |
15155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15156 | fi | |
15157 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15158 | fi | |
15159 | if test $ac_cv_c_bigendian = unknown; then | |
15160 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
15161 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15162 | /* end confdefs.h. */ | |
15163 | #include <limits.h> | |
15164 | ||
15165 | int | |
15166 | main () | |
15167 | { | |
15168 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
15169 | bogus endian macros | |
15170 | #endif | |
15171 | ||
15172 | ; | |
15173 | return 0; | |
15174 | } | |
212380e3 | 15175 | _ACEOF |
7083c021 AC |
15176 | if ac_fn_c_try_compile "$LINENO"; then : |
15177 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
15178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 | 15179 | /* end confdefs.h. */ |
7083c021 AC |
15180 | #include <limits.h> |
15181 | ||
212380e3 AC |
15182 | int |
15183 | main () | |
15184 | { | |
7083c021 AC |
15185 | #ifndef _BIG_ENDIAN |
15186 | not big endian | |
15187 | #endif | |
15188 | ||
212380e3 AC |
15189 | ; |
15190 | return 0; | |
15191 | } | |
15192 | _ACEOF | |
7083c021 AC |
15193 | if ac_fn_c_try_compile "$LINENO"; then : |
15194 | ac_cv_c_bigendian=yes | |
212380e3 | 15195 | else |
7083c021 | 15196 | ac_cv_c_bigendian=no |
212380e3 | 15197 | fi |
631ef239 | 15198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 | 15199 | fi |
7083c021 AC |
15200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
15201 | fi | |
15202 | if test $ac_cv_c_bigendian = unknown; then | |
15203 | # Compile a test program. | |
15204 | if test "$cross_compiling" = yes; then : | |
15205 | # Try to guess by grepping values from an object file. | |
15206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15207 | /* end confdefs.h. */ | |
15208 | short int ascii_mm[] = | |
15209 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
15210 | short int ascii_ii[] = | |
15211 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
15212 | int use_ascii (int i) { | |
15213 | return ascii_mm[i] + ascii_ii[i]; | |
15214 | } | |
15215 | short int ebcdic_ii[] = | |
15216 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
15217 | short int ebcdic_mm[] = | |
15218 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
15219 | int use_ebcdic (int i) { | |
15220 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
15221 | } | |
15222 | extern int foo; | |
212380e3 | 15223 | |
7083c021 AC |
15224 | int |
15225 | main () | |
15226 | { | |
15227 | return use_ascii (foo) == use_ebcdic (foo); | |
15228 | ; | |
15229 | return 0; | |
15230 | } | |
212380e3 | 15231 | _ACEOF |
7083c021 AC |
15232 | if ac_fn_c_try_compile "$LINENO"; then : |
15233 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
15234 | ac_cv_c_bigendian=yes | |
15235 | fi | |
15236 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
15237 | if test "$ac_cv_c_bigendian" = unknown; then | |
15238 | ac_cv_c_bigendian=no | |
15239 | else | |
15240 | # finding both strings is unlikely to happen, but who knows? | |
15241 | ac_cv_c_bigendian=unknown | |
15242 | fi | |
15243 | fi | |
15244 | fi | |
15245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
15246 | else | |
15247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
212380e3 AC |
15248 | /* end confdefs.h. */ |
15249 | $ac_includes_default | |
15250 | int | |
15251 | main () | |
15252 | { | |
7083c021 AC |
15253 | |
15254 | /* Are we little or big endian? From Harbison&Steele. */ | |
15255 | union | |
15256 | { | |
15257 | long int l; | |
15258 | char c[sizeof (long int)]; | |
15259 | } u; | |
15260 | u.l = 1; | |
15261 | return u.c[sizeof (long int) - 1] == 1; | |
15262 | ||
212380e3 AC |
15263 | ; |
15264 | return 0; | |
15265 | } | |
15266 | _ACEOF | |
7083c021 AC |
15267 | if ac_fn_c_try_run "$LINENO"; then : |
15268 | ac_cv_c_bigendian=no | |
212380e3 | 15269 | else |
7083c021 | 15270 | ac_cv_c_bigendian=yes |
212380e3 | 15271 | fi |
7083c021 AC |
15272 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15273 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 15274 | fi |
212380e3 | 15275 | |
7083c021 AC |
15276 | fi |
15277 | fi | |
15278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
15279 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
15280 | case $ac_cv_c_bigendian in #( | |
15281 | yes) | |
15282 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
15283 | ;; #( | |
15284 | no) | |
15285 | ;; #( | |
15286 | universal) | |
212380e3 | 15287 | |
7083c021 | 15288 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
212380e3 | 15289 | |
7083c021 AC |
15290 | ;; #( |
15291 | *) | |
b6d0720c | 15292 | as_fn_error $? "unknown endianness |
7083c021 AC |
15293 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
15294 | esac | |
212380e3 | 15295 | |
212380e3 | 15296 | |
7083c021 | 15297 | ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" |
b6d0720c | 15298 | if test "x$ac_cv_header_stdarg_h" = xyes; then : |
212380e3 | 15299 | |
7083c021 | 15300 | else |
b6d0720c | 15301 | as_fn_error $? "** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5 |
7083c021 | 15302 | fi |
212380e3 AC |
15303 | |
15304 | ||
7083c021 AC |
15305 | for ac_func in strlcat strlcpy |
15306 | do : | |
15307 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15308 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 15309 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
7083c021 AC |
15310 | cat >>confdefs.h <<_ACEOF |
15311 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
212380e3 AC |
15312 | _ACEOF |
15313 | ||
212380e3 | 15314 | fi |
7083c021 | 15315 | done |
212380e3 AC |
15316 | |
15317 | ||
7083c021 | 15318 | ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default" |
b6d0720c | 15319 | if test "x$ac_cv_type_u_int32_t" = xyes; then : |
212380e3 | 15320 | |
212380e3 | 15321 | else |
212380e3 | 15322 | |
7083c021 | 15323 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
b6d0720c | 15324 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
212380e3 | 15325 | |
631ef239 | 15326 | |
7083c021 | 15327 | $as_echo "#define u_int32_t uint32_t" >>confdefs.h |
212380e3 | 15328 | |
212380e3 | 15329 | |
7083c021 | 15330 | else |
212380e3 | 15331 | |
7083c021 AC |
15332 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5 |
15333 | $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;} | |
212380e3 | 15334 | |
7083c021 | 15335 | $as_echo "#define u_int32_t unsigned long int" >>confdefs.h |
212380e3 | 15336 | |
212380e3 | 15337 | |
212380e3 | 15338 | fi |
631ef239 | 15339 | |
7083c021 | 15340 | |
212380e3 | 15341 | fi |
7083c021 AC |
15342 | |
15343 | ||
15344 | ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default" | |
b6d0720c | 15345 | if test "x$ac_cv_type_u_int16_t" = xyes; then : |
7083c021 | 15346 | |
212380e3 AC |
15347 | else |
15348 | ||
7083c021 | 15349 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
b6d0720c | 15350 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
212380e3 | 15351 | |
7083c021 AC |
15352 | |
15353 | $as_echo "#define u_int16_t uint16_t" >>confdefs.h | |
212380e3 AC |
15354 | |
15355 | ||
212380e3 | 15356 | else |
212380e3 | 15357 | |
7083c021 AC |
15358 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5 |
15359 | $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;} | |
631ef239 | 15360 | |
7083c021 | 15361 | $as_echo "#define u_int16_t unsigned short int" >>confdefs.h |
212380e3 | 15362 | |
7083c021 AC |
15363 | |
15364 | fi | |
212380e3 AC |
15365 | |
15366 | ||
15367 | fi | |
15368 | ||
15369 | ||
7083c021 AC |
15370 | ac_fn_c_check_type "$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h> |
15371 | #include <netinet/in.h> | |
15372 | " | |
b6d0720c | 15373 | if test "x$ac_cv_type_in_port_t" = xyes; then : |
212380e3 | 15374 | |
7083c021 | 15375 | else |
212380e3 | 15376 | |
7083c021 | 15377 | $as_echo "#define in_port_t u_int16_t" >>confdefs.h |
212380e3 | 15378 | |
7083c021 | 15379 | fi |
212380e3 AC |
15380 | |
15381 | ||
7083c021 AC |
15382 | ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h> |
15383 | #include <sys/socket.h> | |
15384 | " | |
b6d0720c | 15385 | if test "x$ac_cv_type_sa_family_t" = xyes; then : |
212380e3 | 15386 | |
212380e3 | 15387 | else |
212380e3 | 15388 | |
7083c021 | 15389 | $as_echo "#define sa_family_t u_int16_t" >>confdefs.h |
212380e3 | 15390 | |
7083c021 | 15391 | fi |
212380e3 | 15392 | |
212380e3 | 15393 | |
7083c021 | 15394 | ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default" |
b6d0720c | 15395 | if test "x$ac_cv_type_uintptr_t" = xyes; then : |
212380e3 | 15396 | |
7083c021 AC |
15397 | cat >>confdefs.h <<_ACEOF |
15398 | #define HAVE_UINTPTR_T 1 | |
15399 | _ACEOF | |
212380e3 | 15400 | |
631ef239 | 15401 | |
212380e3 | 15402 | fi |
7083c021 AC |
15403 | |
15404 | ||
15405 | for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup | |
15406 | do : | |
15407 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
15408 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 15409 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 | 15410 | cat >>confdefs.h <<_ACEOF |
7083c021 | 15411 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
212380e3 AC |
15412 | _ACEOF |
15413 | ||
15414 | fi | |
15415 | done | |
15416 | ||
15417 | ||
15418 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
15419 | # for constant arguments. Useless! | |
7083c021 AC |
15420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
15421 | $as_echo_n "checking for working alloca.h... " >&6; } | |
b6d0720c | 15422 | if ${ac_cv_working_alloca_h+:} false; then : |
7083c021 | 15423 | $as_echo_n "(cached) " >&6 |
212380e3 | 15424 | else |
7083c021 | 15425 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15426 | /* end confdefs.h. */ |
15427 | #include <alloca.h> | |
15428 | int | |
15429 | main () | |
15430 | { | |
15431 | char *p = (char *) alloca (2 * sizeof (int)); | |
631ef239 | 15432 | if (p) return 0; |
212380e3 AC |
15433 | ; |
15434 | return 0; | |
15435 | } | |
15436 | _ACEOF | |
7083c021 | 15437 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15438 | ac_cv_working_alloca_h=yes |
15439 | else | |
7083c021 | 15440 | ac_cv_working_alloca_h=no |
212380e3 | 15441 | fi |
7083c021 AC |
15442 | rm -f core conftest.err conftest.$ac_objext \ |
15443 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 15444 | fi |
7083c021 AC |
15445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
15446 | $as_echo "$ac_cv_working_alloca_h" >&6; } | |
212380e3 AC |
15447 | if test $ac_cv_working_alloca_h = yes; then |
15448 | ||
7083c021 | 15449 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
212380e3 AC |
15450 | |
15451 | fi | |
15452 | ||
7083c021 AC |
15453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
15454 | $as_echo_n "checking for alloca... " >&6; } | |
b6d0720c | 15455 | if ${ac_cv_func_alloca_works+:} false; then : |
7083c021 | 15456 | $as_echo_n "(cached) " >&6 |
212380e3 | 15457 | else |
7083c021 | 15458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15459 | /* end confdefs.h. */ |
15460 | #ifdef __GNUC__ | |
15461 | # define alloca __builtin_alloca | |
15462 | #else | |
15463 | # ifdef _MSC_VER | |
15464 | # include <malloc.h> | |
15465 | # define alloca _alloca | |
15466 | # else | |
631ef239 | 15467 | # ifdef HAVE_ALLOCA_H |
212380e3 AC |
15468 | # include <alloca.h> |
15469 | # else | |
15470 | # ifdef _AIX | |
15471 | #pragma alloca | |
15472 | # else | |
15473 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
b6d0720c | 15474 | void *alloca (size_t); |
212380e3 AC |
15475 | # endif |
15476 | # endif | |
15477 | # endif | |
15478 | # endif | |
15479 | #endif | |
15480 | ||
15481 | int | |
15482 | main () | |
15483 | { | |
15484 | char *p = (char *) alloca (1); | |
631ef239 | 15485 | if (p) return 0; |
212380e3 AC |
15486 | ; |
15487 | return 0; | |
15488 | } | |
15489 | _ACEOF | |
7083c021 | 15490 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15491 | ac_cv_func_alloca_works=yes |
15492 | else | |
7083c021 | 15493 | ac_cv_func_alloca_works=no |
212380e3 | 15494 | fi |
7083c021 AC |
15495 | rm -f core conftest.err conftest.$ac_objext \ |
15496 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 | 15497 | fi |
7083c021 AC |
15498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
15499 | $as_echo "$ac_cv_func_alloca_works" >&6; } | |
212380e3 AC |
15500 | |
15501 | if test $ac_cv_func_alloca_works = yes; then | |
15502 | ||
7083c021 | 15503 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
212380e3 AC |
15504 | |
15505 | else | |
15506 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
15507 | # that cause trouble. Some versions do not even contain alloca or | |
15508 | # contain a buggy version. If you still want to use their alloca, | |
15509 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
15510 | ||
631ef239 | 15511 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
212380e3 | 15512 | |
7083c021 | 15513 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
212380e3 AC |
15514 | |
15515 | ||
7083c021 AC |
15516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
15517 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } | |
b6d0720c | 15518 | if ${ac_cv_os_cray+:} false; then : |
7083c021 | 15519 | $as_echo_n "(cached) " >&6 |
212380e3 | 15520 | else |
7083c021 | 15521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 15522 | /* end confdefs.h. */ |
631ef239 | 15523 | #if defined CRAY && ! defined CRAY2 |
212380e3 AC |
15524 | webecray |
15525 | #else | |
15526 | wenotbecray | |
15527 | #endif | |
15528 | ||
15529 | _ACEOF | |
15530 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7083c021 | 15531 | $EGREP "webecray" >/dev/null 2>&1; then : |
212380e3 AC |
15532 | ac_cv_os_cray=yes |
15533 | else | |
15534 | ac_cv_os_cray=no | |
15535 | fi | |
15536 | rm -f conftest* | |
15537 | ||
15538 | fi | |
7083c021 AC |
15539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
15540 | $as_echo "$ac_cv_os_cray" >&6; } | |
212380e3 AC |
15541 | if test $ac_cv_os_cray = yes; then |
15542 | for ac_func in _getb67 GETB67 getb67; do | |
7083c021 AC |
15543 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15544 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
b6d0720c | 15545 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
212380e3 AC |
15546 | |
15547 | cat >>confdefs.h <<_ACEOF | |
15548 | #define CRAY_STACKSEG_END $ac_func | |
15549 | _ACEOF | |
15550 | ||
15551 | break | |
15552 | fi | |
15553 | ||
15554 | done | |
15555 | fi | |
15556 | ||
7083c021 AC |
15557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
15558 | $as_echo_n "checking stack direction for C alloca... " >&6; } | |
b6d0720c | 15559 | if ${ac_cv_c_stack_direction+:} false; then : |
7083c021 | 15560 | $as_echo_n "(cached) " >&6 |
212380e3 | 15561 | else |
7083c021 | 15562 | if test "$cross_compiling" = yes; then : |
212380e3 AC |
15563 | ac_cv_c_stack_direction=0 |
15564 | else | |
7083c021 | 15565 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 | 15566 | /* end confdefs.h. */ |
631ef239 | 15567 | $ac_includes_default |
212380e3 | 15568 | int |
2eff3833 | 15569 | find_stack_direction (int *addr, int depth) |
212380e3 | 15570 | { |
2eff3833 JT |
15571 | int dir, dummy = 0; |
15572 | if (! addr) | |
15573 | addr = &dummy; | |
15574 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
15575 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
15576 | return dir + dummy; | |
212380e3 AC |
15577 | } |
15578 | ||
15579 | int | |
2eff3833 | 15580 | main (int argc, char **argv) |
212380e3 | 15581 | { |
2eff3833 | 15582 | return find_stack_direction (0, argc + !argv + 20) < 0; |
212380e3 AC |
15583 | } |
15584 | _ACEOF | |
7083c021 | 15585 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
15586 | ac_cv_c_stack_direction=1 |
15587 | else | |
7083c021 | 15588 | ac_cv_c_stack_direction=-1 |
212380e3 | 15589 | fi |
7083c021 AC |
15590 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15591 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 | 15592 | fi |
631ef239 | 15593 | |
212380e3 | 15594 | fi |
7083c021 AC |
15595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
15596 | $as_echo "$ac_cv_c_stack_direction" >&6; } | |
212380e3 AC |
15597 | cat >>confdefs.h <<_ACEOF |
15598 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
15599 | _ACEOF | |
15600 | ||
15601 | ||
15602 | fi | |
15603 | ||
15604 | ||
15605 | ||
7083c021 | 15606 | ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" |
b6d0720c | 15607 | if test "x$ac_cv_func_nanosleep" = xyes; then : |
631ef239 | 15608 | |
212380e3 | 15609 | else |
7083c021 AC |
15610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 |
15611 | $as_echo_n "checking for nanosleep in -lrt... " >&6; } | |
b6d0720c | 15612 | if ${ac_cv_lib_rt_nanosleep+:} false; then : |
7083c021 | 15613 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15614 | else |
15615 | ac_check_lib_save_LIBS=$LIBS | |
15616 | LIBS="-lrt $LIBS" | |
7083c021 | 15617 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15618 | /* end confdefs.h. */ |
15619 | ||
631ef239 AC |
15620 | /* Override any GCC internal prototype to avoid an error. |
15621 | Use char because int might match the return type of a GCC | |
15622 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15623 | #ifdef __cplusplus |
15624 | extern "C" | |
15625 | #endif | |
212380e3 AC |
15626 | char nanosleep (); |
15627 | int | |
15628 | main () | |
15629 | { | |
631ef239 | 15630 | return nanosleep (); |
212380e3 AC |
15631 | ; |
15632 | return 0; | |
15633 | } | |
15634 | _ACEOF | |
7083c021 | 15635 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15636 | ac_cv_lib_rt_nanosleep=yes |
15637 | else | |
7083c021 | 15638 | ac_cv_lib_rt_nanosleep=no |
212380e3 | 15639 | fi |
7083c021 AC |
15640 | rm -f core conftest.err conftest.$ac_objext \ |
15641 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15642 | LIBS=$ac_check_lib_save_LIBS |
15643 | fi | |
7083c021 AC |
15644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 |
15645 | $as_echo "$ac_cv_lib_rt_nanosleep" >&6; } | |
b6d0720c | 15646 | if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : |
212380e3 AC |
15647 | LIBS="${LIBS} -lrt" |
15648 | else | |
7083c021 AC |
15649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 |
15650 | $as_echo_n "checking for nanosleep in -lposix4... " >&6; } | |
b6d0720c | 15651 | if ${ac_cv_lib_posix4_nanosleep+:} false; then : |
7083c021 | 15652 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15653 | else |
15654 | ac_check_lib_save_LIBS=$LIBS | |
15655 | LIBS="-lposix4 $LIBS" | |
7083c021 | 15656 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15657 | /* end confdefs.h. */ |
15658 | ||
631ef239 AC |
15659 | /* Override any GCC internal prototype to avoid an error. |
15660 | Use char because int might match the return type of a GCC | |
15661 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15662 | #ifdef __cplusplus |
15663 | extern "C" | |
15664 | #endif | |
212380e3 AC |
15665 | char nanosleep (); |
15666 | int | |
15667 | main () | |
15668 | { | |
631ef239 | 15669 | return nanosleep (); |
212380e3 AC |
15670 | ; |
15671 | return 0; | |
15672 | } | |
15673 | _ACEOF | |
7083c021 | 15674 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15675 | ac_cv_lib_posix4_nanosleep=yes |
15676 | else | |
7083c021 | 15677 | ac_cv_lib_posix4_nanosleep=no |
212380e3 | 15678 | fi |
7083c021 AC |
15679 | rm -f core conftest.err conftest.$ac_objext \ |
15680 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15681 | LIBS=$ac_check_lib_save_LIBS |
15682 | fi | |
7083c021 AC |
15683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 |
15684 | $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } | |
b6d0720c | 15685 | if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : |
212380e3 AC |
15686 | LIBS="${LIBS} -lposix4" |
15687 | ||
15688 | fi | |
15689 | ||
15690 | fi | |
15691 | ||
15692 | fi | |
15693 | ||
15694 | if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno | |
15695 | then | |
7083c021 AC |
15696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5 |
15697 | $as_echo "\"nanosleep not found..using select for delay\"" >&6; } | |
212380e3 AC |
15698 | else |
15699 | ||
7083c021 | 15700 | $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h |
212380e3 AC |
15701 | |
15702 | fi | |
15703 | ||
7083c021 AC |
15704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5 |
15705 | $as_echo_n "checking for OpenSSL... " >&6; } | |
631ef239 | 15706 | # Check whether --enable-openssl was given. |
7083c021 | 15707 | if test "${enable_openssl+set}" = set; then : |
631ef239 | 15708 | enableval=$enable_openssl; cf_enable_openssl=$enableval |
212380e3 AC |
15709 | else |
15710 | cf_enable_openssl="auto" | |
631ef239 AC |
15711 | fi |
15712 | ||
212380e3 AC |
15713 | |
15714 | if test "$cf_enable_openssl" != "no" ; then | |
15715 | cf_openssl_basedir="" | |
15716 | if test "$cf_enable_openssl" != "auto" && | |
15717 | test "$cf_enable_openssl" != "yes" ; then | |
15718 | cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`" | |
15719 | else | |
15720 | for dirs in /usr/local/ssl /usr/pkg /usr/local \ | |
15721 | /usr/local/openssl ; do | |
15722 | if test -f "${dirs}/include/openssl/opensslv.h" ; then | |
15723 | cf_openssl_basedir="${dirs}" | |
15724 | break | |
15725 | fi | |
15726 | done | |
15727 | unset dirs | |
15728 | fi | |
15729 | if test ! -z "$cf_openssl_basedir"; then | |
15730 | if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then | |
15731 | SSL_INCLUDES="-I${cf_openssl_basedir}/include" | |
15732 | SSL_LIBS="-L${cf_openssl_basedir}/lib" | |
15733 | else | |
15734 | cf_openssl_basedir="" | |
15735 | fi | |
15736 | else | |
15737 | if test -f "/usr/include/openssl/opensslv.h" ; then | |
15738 | cf_openssl_basedir="/usr" | |
15739 | fi | |
15740 | fi | |
15741 | ||
15742 | if test ! -z "$cf_openssl_basedir"; then | |
7083c021 AC |
15743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5 |
15744 | $as_echo "$cf_openssl_basedir" >&6; } | |
212380e3 AC |
15745 | cf_enable_openssl="yes" |
15746 | else | |
7083c021 AC |
15747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5 |
15748 | $as_echo "not found. Specify a correct path?" >&6; } | |
212380e3 AC |
15749 | cf_enable_openssl="no" |
15750 | fi | |
15751 | unset cf_openssl_basedir | |
15752 | else | |
7083c021 AC |
15753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 |
15754 | $as_echo "disabled" >&6; } | |
212380e3 AC |
15755 | fi |
15756 | ||
15757 | save_CPPFLAGS="$CPPFLAGS" | |
15758 | CPPFLAGS="$CPPFLAGS $SSL_INCLUDES" | |
15759 | save_LIBS="$LIBS" | |
15760 | LIBS="$LIBS $SSL_LIBS" | |
15761 | if test "$cf_enable_openssl" != no; then | |
7083c021 AC |
15762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5 |
15763 | $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; } | |
15764 | if test "$cross_compiling" = yes; then : | |
212380e3 AC |
15765 | cf_openssl_version_ok=no |
15766 | else | |
7083c021 | 15767 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15768 | /* end confdefs.h. */ |
15769 | #include <openssl/opensslv.h> | |
15770 | #include <stdlib.h> | |
15771 | int | |
15772 | main () | |
15773 | { | |
15774 | if ( OPENSSL_VERSION_NUMBER >= 0x00906000) | |
15775 | exit(0); else exit(1); | |
15776 | ; | |
15777 | return 0; | |
15778 | } | |
15779 | _ACEOF | |
7083c021 | 15780 | if ac_fn_c_try_run "$LINENO"; then : |
212380e3 AC |
15781 | cf_openssl_version_ok=yes |
15782 | else | |
7083c021 | 15783 | cf_openssl_version_ok=no |
212380e3 | 15784 | fi |
7083c021 AC |
15785 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
15786 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
212380e3 AC |
15787 | fi |
15788 | ||
631ef239 | 15789 | |
212380e3 | 15790 | if test "$cf_openssl_version_ok" = yes; then |
7083c021 AC |
15791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 |
15792 | $as_echo "found" >&6; } | |
212380e3 AC |
15793 | |
15794 | ENCSPEED=encspeed | |
15795 | ||
15796 | ||
15797 | CPPFLAGS="$CPPFLAGS $SSL_LIBS" | |
7083c021 AC |
15798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5 |
15799 | $as_echo_n "checking for RSA_free in -lcrypto... " >&6; } | |
b6d0720c | 15800 | if ${ac_cv_lib_crypto_RSA_free+:} false; then : |
7083c021 | 15801 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15802 | else |
15803 | ac_check_lib_save_LIBS=$LIBS | |
15804 | LIBS="-lcrypto $LIBS" | |
7083c021 | 15805 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15806 | /* end confdefs.h. */ |
15807 | ||
631ef239 AC |
15808 | /* Override any GCC internal prototype to avoid an error. |
15809 | Use char because int might match the return type of a GCC | |
15810 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15811 | #ifdef __cplusplus |
15812 | extern "C" | |
15813 | #endif | |
212380e3 AC |
15814 | char RSA_free (); |
15815 | int | |
15816 | main () | |
15817 | { | |
631ef239 | 15818 | return RSA_free (); |
212380e3 AC |
15819 | ; |
15820 | return 0; | |
15821 | } | |
15822 | _ACEOF | |
7083c021 | 15823 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15824 | ac_cv_lib_crypto_RSA_free=yes |
15825 | else | |
7083c021 | 15826 | ac_cv_lib_crypto_RSA_free=no |
212380e3 | 15827 | fi |
7083c021 AC |
15828 | rm -f core conftest.err conftest.$ac_objext \ |
15829 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15830 | LIBS=$ac_check_lib_save_LIBS |
15831 | fi | |
7083c021 AC |
15832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5 |
15833 | $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; } | |
b6d0720c | 15834 | if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then : |
212380e3 AC |
15835 | cat >>confdefs.h <<_ACEOF |
15836 | #define HAVE_LIBCRYPTO 1 | |
15837 | _ACEOF | |
15838 | ||
15839 | LIBS="-lcrypto $LIBS" | |
15840 | ||
15841 | fi | |
15842 | ||
15843 | SSL_LIBS="$SSL_LIBS -lcrypto" | |
15844 | SSL_SRCS_ENABLE='$(SSL_SRCS)' | |
15845 | else | |
7083c021 AC |
15846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5 |
15847 | $as_echo "no - OpenSSL support disabled" >&6; } | |
212380e3 AC |
15848 | fi |
15849 | fi | |
15850 | ||
15851 | CPPFLAGS="$save_CPPFLAGS" | |
15852 | LIBS="$save_LIBS" | |
15853 | ||
15854 | ||
15855 | ||
15856 | ||
15857 | ||
631ef239 | 15858 | # Check whether --with-zlib-path was given. |
7083c021 | 15859 | if test "${with_zlib_path+set}" = set; then : |
631ef239 AC |
15860 | withval=$with_zlib_path; LIBS="$LIBS -L$withval" |
15861 | fi | |
212380e3 | 15862 | |
7083c021 AC |
15863 | |
15864 | # Check whether --enable-zlib was given. | |
15865 | if test "${enable_zlib+set}" = set; then : | |
15866 | enableval=$enable_zlib; zlib=$enableval | |
212380e3 | 15867 | else |
7083c021 | 15868 | zlib=yes |
212380e3 | 15869 | fi |
212380e3 | 15870 | |
212380e3 | 15871 | |
7083c021 AC |
15872 | if test "$zlib" = yes; then |
15873 | ||
15874 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
b6d0720c | 15875 | if test "x$ac_cv_header_zlib_h" = xyes; then : |
7083c021 AC |
15876 | |
15877 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5 | |
15878 | $as_echo_n "checking for zlibVersion in -lz... " >&6; } | |
b6d0720c | 15879 | if ${ac_cv_lib_z_zlibVersion+:} false; then : |
7083c021 | 15880 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
15881 | else |
15882 | ac_check_lib_save_LIBS=$LIBS | |
15883 | LIBS="-lz $LIBS" | |
7083c021 | 15884 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
15885 | /* end confdefs.h. */ |
15886 | ||
631ef239 AC |
15887 | /* Override any GCC internal prototype to avoid an error. |
15888 | Use char because int might match the return type of a GCC | |
15889 | builtin and then its argument prototype would still apply. */ | |
212380e3 AC |
15890 | #ifdef __cplusplus |
15891 | extern "C" | |
15892 | #endif | |
212380e3 AC |
15893 | char zlibVersion (); |
15894 | int | |
15895 | main () | |
15896 | { | |
631ef239 | 15897 | return zlibVersion (); |
212380e3 AC |
15898 | ; |
15899 | return 0; | |
15900 | } | |
15901 | _ACEOF | |
7083c021 | 15902 | if ac_fn_c_try_link "$LINENO"; then : |
212380e3 AC |
15903 | ac_cv_lib_z_zlibVersion=yes |
15904 | else | |
7083c021 | 15905 | ac_cv_lib_z_zlibVersion=no |
212380e3 | 15906 | fi |
7083c021 AC |
15907 | rm -f core conftest.err conftest.$ac_objext \ |
15908 | conftest$ac_exeext conftest.$ac_ext | |
212380e3 AC |
15909 | LIBS=$ac_check_lib_save_LIBS |
15910 | fi | |
7083c021 AC |
15911 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5 |
15912 | $as_echo "$ac_cv_lib_z_zlibVersion" >&6; } | |
b6d0720c | 15913 | if test "x$ac_cv_lib_z_zlibVersion" = xyes; then : |
212380e3 AC |
15914 | |
15915 | ZLIB_LD=-lz | |
15916 | ||
15917 | ||
7083c021 | 15918 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h |
212380e3 AC |
15919 | |
15920 | ||
15921 | else | |
15922 | zlib=no | |
15923 | fi | |
15924 | ||
15925 | ||
15926 | else | |
15927 | zlib=no | |
15928 | fi | |
15929 | ||
15930 | ||
15931 | ||
497e30a0 LS |
15932 | fi |
15933 | ||
a6ef3156 LS |
15934 | |
15935 | # Check whether --with-shared-sqlite was given. | |
15936 | if test "${with_shared_sqlite+set}" = set; then : | |
15937 | withval=$with_shared_sqlite; shared_sqlite=$withval | |
497e30a0 LS |
15938 | else |
15939 | shared_sqlite=no | |
15940 | fi | |
15941 | ||
15942 | ||
15943 | if test "$shared_sqlite" = yes; then | |
15944 | ||
cf1001a7 | 15945 | |
a5471f24 LS |
15946 | |
15947 | ||
15948 | ||
15949 | ||
15950 | ||
15951 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
15952 | if test -n "$ac_tool_prefix"; then | |
15953 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
15954 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
15955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15956 | $as_echo_n "checking for $ac_word... " >&6; } | |
15957 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
15958 | $as_echo_n "(cached) " >&6 | |
15959 | else | |
15960 | case $PKG_CONFIG in | |
15961 | [\\/]* | ?:[\\/]*) | |
15962 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
15963 | ;; | |
15964 | *) | |
15965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15966 | for as_dir in $PATH | |
15967 | do | |
15968 | IFS=$as_save_IFS | |
15969 | test -z "$as_dir" && as_dir=. | |
15970 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15971 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
15972 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
15973 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15974 | break 2 | |
15975 | fi | |
15976 | done | |
15977 | done | |
15978 | IFS=$as_save_IFS | |
15979 | ||
15980 | ;; | |
cf1001a7 | 15981 | esac |
a5471f24 LS |
15982 | fi |
15983 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
15984 | if test -n "$PKG_CONFIG"; then | |
15985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
15986 | $as_echo "$PKG_CONFIG" >&6; } | |
15987 | else | |
15988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15989 | $as_echo "no" >&6; } | |
15990 | fi | |
cf1001a7 | 15991 | |
497e30a0 | 15992 | |
a5471f24 LS |
15993 | fi |
15994 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
15995 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
15996 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
15997 | set dummy pkg-config; ac_word=$2 | |
15998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15999 | $as_echo_n "checking for $ac_word... " >&6; } | |
16000 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
497e30a0 LS |
16001 | $as_echo_n "(cached) " >&6 |
16002 | else | |
a5471f24 LS |
16003 | case $ac_pt_PKG_CONFIG in |
16004 | [\\/]* | ?:[\\/]*) | |
16005 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
16006 | ;; | |
16007 | *) | |
16008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16009 | for as_dir in $PATH | |
16010 | do | |
16011 | IFS=$as_save_IFS | |
16012 | test -z "$as_dir" && as_dir=. | |
16013 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16014 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
16015 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
16016 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16017 | break 2 | |
16018 | fi | |
16019 | done | |
16020 | done | |
16021 | IFS=$as_save_IFS | |
497e30a0 | 16022 | |
a5471f24 LS |
16023 | ;; |
16024 | esac | |
16025 | fi | |
16026 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
16027 | if test -n "$ac_pt_PKG_CONFIG"; then | |
16028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
16029 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
497e30a0 | 16030 | else |
a5471f24 LS |
16031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16032 | $as_echo "no" >&6; } | |
497e30a0 | 16033 | fi |
a5471f24 LS |
16034 | |
16035 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
16036 | PKG_CONFIG="" | |
16037 | else | |
16038 | case $cross_compiling:$ac_tool_warned in | |
16039 | yes:) | |
16040 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16041 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16042 | ac_tool_warned=yes ;; | |
16043 | esac | |
16044 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
16045 | fi | |
16046 | else | |
16047 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
497e30a0 | 16048 | fi |
497e30a0 | 16049 | |
a5471f24 LS |
16050 | fi |
16051 | if test -n "$PKG_CONFIG"; then | |
16052 | _pkg_min_version=0.9.0 | |
16053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
16054 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
16055 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
16056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16057 | $as_echo "yes" >&6; } | |
16058 | else | |
16059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16060 | $as_echo "no" >&6; } | |
16061 | PKG_CONFIG="" | |
16062 | fi | |
16063 | fi | |
16064 | ||
16065 | pkg_failed=no | |
16066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLITE" >&5 | |
16067 | $as_echo_n "checking for SQLITE... " >&6; } | |
497e30a0 | 16068 | |
a5471f24 LS |
16069 | if test -n "$SQLITE_CFLAGS"; then |
16070 | pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS" | |
16071 | elif test -n "$PKG_CONFIG"; then | |
16072 | if test -n "$PKG_CONFIG" && \ | |
16073 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
16074 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
16075 | ac_status=$? | |
16076 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16077 | test $ac_status = 0; }; then | |
16078 | pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null` | |
16079 | test "x$?" != "x0" && pkg_failed=yes | |
497e30a0 | 16080 | else |
a5471f24 LS |
16081 | pkg_failed=yes |
16082 | fi | |
16083 | else | |
16084 | pkg_failed=untried | |
16085 | fi | |
16086 | if test -n "$SQLITE_LIBS"; then | |
16087 | pkg_cv_SQLITE_LIBS="$SQLITE_LIBS" | |
16088 | elif test -n "$PKG_CONFIG"; then | |
16089 | if test -n "$PKG_CONFIG" && \ | |
16090 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3\""; } >&5 | |
16091 | ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5 | |
16092 | ac_status=$? | |
16093 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
16094 | test $ac_status = 0; }; then | |
16095 | pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null` | |
16096 | test "x$?" != "x0" && pkg_failed=yes | |
16097 | else | |
16098 | pkg_failed=yes | |
16099 | fi | |
16100 | else | |
16101 | pkg_failed=untried | |
497e30a0 LS |
16102 | fi |
16103 | ||
16104 | ||
a5471f24 LS |
16105 | |
16106 | if test $pkg_failed = yes; then | |
16107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16108 | $as_echo "no" >&6; } | |
16109 | ||
16110 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
16111 | _pkg_short_errors_supported=yes | |
497e30a0 | 16112 | else |
a5471f24 | 16113 | _pkg_short_errors_supported=no |
497e30a0 | 16114 | fi |
a5471f24 LS |
16115 | if test $_pkg_short_errors_supported = yes; then |
16116 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3" 2>&1` | |
16117 | else | |
16118 | SQLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3" 2>&1` | |
16119 | fi | |
16120 | # Put the nasty error message in config.log where it belongs | |
16121 | echo "$SQLITE_PKG_ERRORS" >&5 | |
497e30a0 | 16122 | |
a5471f24 LS |
16123 | shared_sqlite=no |
16124 | elif test $pkg_failed = untried; then | |
16125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16126 | $as_echo "no" >&6; } | |
16127 | shared_sqlite=no | |
16128 | else | |
16129 | SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS | |
16130 | SQLITE_LIBS=$pkg_cv_SQLITE_LIBS | |
16131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16132 | $as_echo "yes" >&6; } | |
497e30a0 | 16133 | |
a5471f24 | 16134 | shared_sqlite=yes |
497e30a0 | 16135 | |
74ab6be0 | 16136 | fi |
a5471f24 | 16137 | fi |
74ab6be0 LS |
16138 | |
16139 | if test "$shared_sqlite" = no; then | |
c52df125 | 16140 | SQLITE_OBJ='sqlite3.$(OBJEXT)' |
212380e3 AC |
16141 | fi |
16142 | ||
a5471f24 | 16143 | SQLITE_LD="$SQLITE_LIBS" |
212380e3 | 16144 | |
a5471f24 | 16145 | SQLITE_INCLUDES="$SQLITE_CFLAGS" |
cf1001a7 LS |
16146 | |
16147 | ||
cf1001a7 LS |
16148 | |
16149 | ||
212380e3 | 16150 | |
631ef239 | 16151 | # Check whether --with-confdir was given. |
7083c021 | 16152 | if test "${with_confdir+set}" = set; then : |
634d4aad | 16153 | withval=$with_confdir; sysconfdir=`echo $withval | sed 's/\/$//'` |
212380e3 | 16154 | else |
9f9b7042 | 16155 | confdir='${sysconfdir}' |
634d4aad NPB |
16156 | fi |
16157 | ||
212380e3 AC |
16158 | |
16159 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16160 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
634d4aad | 16161 | last_ac_define_dir=`eval echo $sysconfdir` |
9f9b7042 | 16162 | ac_define_dir=`eval echo $last_ac_define_dir` |
422cf3bb | 16163 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16164 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16165 | last_ac_define_dir="$ac_define_dir" | |
16166 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16167 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16168 | if test "x$ac_define_dir_counter" = x128; then : | |
16169 | as_fn_error $? "detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5 | |
16170 | break | |
16171 | fi | |
9f9b7042 | 16172 | done |
212380e3 AC |
16173 | ETC_DIR="$ac_define_dir" |
16174 | ||
16175 | ||
16176 | cat >>confdefs.h <<_ACEOF | |
16177 | #define ETC_DIR "$ac_define_dir" | |
16178 | _ACEOF | |
16179 | ||
16180 | ||
16181 | ||
16182 | ||
7083c021 AC |
16183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5 |
16184 | $as_echo_n "checking whether to modify logdir... " >&6; } | |
212380e3 | 16185 | |
631ef239 | 16186 | # Check whether --with-logdir was given. |
7083c021 | 16187 | if test "${with_logdir+set}" = set; then : |
631ef239 | 16188 | withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
16189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16190 | $as_echo "yes" >&6; } | |
212380e3 | 16191 | else |
9f9b7042 NPB |
16192 | if test "x$enable_fhs_paths" = "xyes"; then : |
16193 | logdir='${localstatedir}/log/${PACKAGE_TARNAME}' | |
16194 | else | |
16195 | logdir='${prefix}/logs' | |
16196 | fi | |
7083c021 AC |
16197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16198 | $as_echo "no" >&6; } | |
9f9b7042 NPB |
16199 | fi |
16200 | ||
212380e3 AC |
16201 | |
16202 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16203 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16204 | last_ac_define_dir=`eval echo $logdir` |
16205 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16206 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16207 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16208 | last_ac_define_dir="$ac_define_dir" | |
16209 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16210 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16211 | if test "x$ac_define_dir_counter" = x128; then : | |
16212 | as_fn_error $? "detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5 | |
16213 | break | |
16214 | fi | |
9f9b7042 | 16215 | done |
212380e3 AC |
16216 | LOG_DIR="$ac_define_dir" |
16217 | ||
16218 | ||
16219 | cat >>confdefs.h <<_ACEOF | |
16220 | #define LOG_DIR "$ac_define_dir" | |
16221 | _ACEOF | |
16222 | ||
16223 | ||
16224 | ||
16225 | ||
16226 | logdir=`( | |
16227 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16228 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
16229 | eval echo \""$logdir"\" | |
16230 | )` | |
16231 | ||
16232 | ||
16233 | ||
212380e3 | 16234 | |
7083c021 AC |
16235 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5 |
16236 | $as_echo_n "checking whether to modify helpdir... " >&6; } | |
212380e3 | 16237 | |
631ef239 | 16238 | # Check whether --with-helpdir was given. |
7083c021 | 16239 | if test "${with_helpdir+set}" = set; then : |
631ef239 | 16240 | withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
16241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16242 | $as_echo "yes" >&6; } | |
212380e3 | 16243 | else |
9f9b7042 NPB |
16244 | if test "x$enable_fhs_paths" = "xyes"; then : |
16245 | helpdir='${datadir}/${PACKAGE_TARNAME}/help' | |
16246 | else | |
16247 | helpdir='${prefix}/help' | |
16248 | fi | |
7083c021 AC |
16249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16250 | $as_echo "no" >&6; } | |
9f9b7042 NPB |
16251 | fi |
16252 | ||
212380e3 AC |
16253 | |
16254 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16255 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16256 | last_ac_define_dir=`eval echo $helpdir` |
16257 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16258 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16259 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16260 | last_ac_define_dir="$ac_define_dir" | |
16261 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16262 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16263 | if test "x$ac_define_dir_counter" = x128; then : | |
16264 | as_fn_error $? "detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5 | |
16265 | break | |
16266 | fi | |
9f9b7042 | 16267 | done |
212380e3 AC |
16268 | HELP_DIR="$ac_define_dir" |
16269 | ||
16270 | ||
16271 | cat >>confdefs.h <<_ACEOF | |
16272 | #define HELP_DIR "$ac_define_dir" | |
16273 | _ACEOF | |
16274 | ||
16275 | ||
16276 | ||
16277 | ||
16278 | helpdir=`( | |
16279 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16280 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
16281 | eval echo \""$helpdir"\" | |
16282 | )` | |
16283 | ||
16284 | ||
16285 | ||
212380e3 | 16286 | |
7083c021 AC |
16287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5 |
16288 | $as_echo_n "checking whether to modify moduledir... " >&6; } | |
212380e3 | 16289 | |
631ef239 | 16290 | # Check whether --with-moduledir was given. |
7083c021 | 16291 | if test "${with_moduledir+set}" = set; then : |
631ef239 | 16292 | withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'` |
7083c021 AC |
16293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16294 | $as_echo "yes" >&6; } | |
9f9b7042 NPB |
16295 | else |
16296 | if test "x$enable_fhs_paths" = "xyes"; then : | |
16297 | moduledir='${pkglibdir}/modules' | |
16298 | else | |
16299 | moduledir='${prefix}/modules' | |
16300 | fi | |
16301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16302 | $as_echo "no" >&6; } | |
16303 | ||
16304 | fi | |
16305 | ||
212380e3 AC |
16306 | |
16307 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16308 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16309 | last_ac_define_dir=`eval echo $moduledir` |
16310 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16311 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16312 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16313 | last_ac_define_dir="$ac_define_dir" | |
16314 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16315 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16316 | if test "x$ac_define_dir_counter" = x128; then : | |
16317 | as_fn_error $? "detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5 | |
16318 | break | |
16319 | fi | |
9f9b7042 | 16320 | done |
212380e3 AC |
16321 | MODULE_DIR="$ac_define_dir" |
16322 | ||
16323 | ||
16324 | cat >>confdefs.h <<_ACEOF | |
16325 | #define MODULE_DIR "$ac_define_dir" | |
16326 | _ACEOF | |
16327 | ||
16328 | ||
16329 | ||
16330 | ||
16331 | moduledir=`( | |
16332 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16333 | test "x$exec_prefix" = xNONE && exec_prefix="${prefix}" | |
16334 | eval echo \""$moduledir"\" | |
16335 | )` | |
16336 | ||
16337 | ||
9f9b7042 NPB |
16338 | |
16339 | ||
16340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5 | |
16341 | $as_echo_n "checking whether or modify rundir... " >&6; } | |
16342 | ||
16343 | # Check whether --with-rundir was given. | |
16344 | if test "${with_rundir+set}" = set; then : | |
16345 | withval=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16346 | $as_echo "yes" >&6; } | |
16347 | rundir=`echo $withval | sed 's/\/$//'` | |
212380e3 | 16348 | else |
9f9b7042 | 16349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7083c021 | 16350 | $as_echo "no" >&6; } |
9f9b7042 NPB |
16351 | if test "x$enable_fhs_paths" = "xyes"; then : |
16352 | rundir='${prefix}/run' | |
16353 | else | |
16354 | rundir='${sysconfdir}' | |
16355 | fi | |
16356 | fi | |
16357 | ||
16358 | ||
212380e3 AC |
16359 | |
16360 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
16361 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9f9b7042 NPB |
16362 | last_ac_define_dir=`eval echo $pkgrundir` |
16363 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb | 16364 | ac_define_dir_counter=0 |
9f9b7042 NPB |
16365 | while test "x$last_ac_define_dir" != "x$ac_define_dir"; do |
16366 | last_ac_define_dir="$ac_define_dir" | |
16367 | ac_define_dir=`eval echo $last_ac_define_dir` | |
422cf3bb NPB |
16368 | as_fn_arith $ac_define_dir_counter + 1 && ac_define_dir_counter=$as_val |
16369 | if test "x$ac_define_dir_counter" = x128; then : | |
16370 | as_fn_error $? "detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5 | |
16371 | break | |
16372 | fi | |
9f9b7042 NPB |
16373 | done |
16374 | PKGRUNDIR="$ac_define_dir" | |
212380e3 AC |
16375 | |
16376 | ||
16377 | cat >>confdefs.h <<_ACEOF | |
9f9b7042 | 16378 | #define PKGRUNDIR "$ac_define_dir" |
212380e3 AC |
16379 | _ACEOF |
16380 | ||
16381 | ||
16382 | ||
9f9b7042 NPB |
16383 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5 |
16384 | $as_echo_n "checking for program prefix... " >&6; } | |
212380e3 | 16385 | |
9f9b7042 NPB |
16386 | # Check whether --with-program-prefix was given. |
16387 | if test "${with_program_prefix+set}" = set; then : | |
16388 | withval=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix= | |
16389 | else | |
16390 | with_program_prefix= | |
16391 | fi | |
212380e3 | 16392 | |
9f9b7042 NPB |
16393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5 |
16394 | $as_echo "\"$with_program_prefix\"" >&6; } | |
16395 | PROGRAM_PREFIX="$with_program_prefix" | |
212380e3 AC |
16396 | |
16397 | ||
9f9b7042 NPB |
16398 | cat >>confdefs.h <<_ACEOF |
16399 | #define PROGRAM_PREFIX "$with_program_prefix" | |
16400 | _ACEOF | |
631ef239 | 16401 | |
7083c021 | 16402 | |
b6d0720c AC |
16403 | |
16404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5 | |
16405 | $as_echo_n "checking whether custom branding is requested... " >&6; } | |
16406 | ||
16407 | # Check whether --with-custom-branding was given. | |
16408 | if test "${with_custom_branding+set}" = set; then : | |
16409 | withval=$with_custom_branding; BRANDING_NAME=$withval | |
16410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16411 | $as_echo "yes" >&6; } | |
16412 | else | |
16413 | BRANDING_NAME=$PACKAGE_NAME | |
16414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16415 | $as_echo "no" >&6; } | |
16416 | ||
16417 | fi | |
16418 | ||
16419 | ||
16420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5 | |
16421 | $as_echo_n "checking whether a custom version is requested... " >&6; } | |
16422 | ||
16423 | # Check whether --with-custom-version was given. | |
16424 | if test "${with_custom_version+set}" = set; then : | |
16425 | withval=$with_custom_version; BRANDING_VERSION=$withval | |
16426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
16427 | $as_echo "yes" >&6; } | |
16428 | else | |
16429 | BRANDING_VERSION=$PACKAGE_VERSION | |
16430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16431 | $as_echo "no" >&6; } | |
16432 | ||
16433 | fi | |
16434 | ||
16435 | ||
16436 | ||
16437 | cat >>confdefs.h <<_ACEOF | |
16438 | #define BRANDING_NAME "$BRANDING_NAME" | |
16439 | _ACEOF | |
16440 | ||
16441 | ||
16442 | cat >>confdefs.h <<_ACEOF | |
16443 | #define BRANDING_VERSION "$BRANDING_VERSION" | |
16444 | _ACEOF | |
16445 | ||
16446 | ||
f5493691 AC |
16447 | if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then |
16448 | ||
16449 | $as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h | |
16450 | ||
16451 | fi | |
16452 | ||
212380e3 | 16453 | |
631ef239 | 16454 | # Check whether --enable-assert was given. |
7083c021 | 16455 | if test "${enable_assert+set}" = set; then : |
631ef239 | 16456 | enableval=$enable_assert; assert=$enableval |
212380e3 AC |
16457 | else |
16458 | assert=no | |
631ef239 AC |
16459 | fi |
16460 | ||
212380e3 AC |
16461 | |
16462 | if test "$assert" = no; then | |
16463 | ||
7083c021 | 16464 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
16465 | |
16466 | elif test "$assert" = soft; then | |
16467 | ||
7083c021 | 16468 | $as_echo "#define SOFT_ASSERT 1" >>confdefs.h |
212380e3 AC |
16469 | |
16470 | ||
7083c021 | 16471 | $as_echo "#define NDEBUG 1" >>confdefs.h |
212380e3 AC |
16472 | |
16473 | elif test "$assert" = yes; then | |
16474 | assert = "hard"; | |
16475 | fi | |
16476 | ||
7083c021 AC |
16477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5 |
16478 | $as_echo_n "checking if you want IO Debugging hooks... " >&6; } | |
631ef239 | 16479 | # Check whether --enable-iodebug was given. |
7083c021 | 16480 | if test "${enable_iodebug+set}" = set; then : |
631ef239 | 16481 | enableval=$enable_iodebug; iodebug=$enableval |
212380e3 AC |
16482 | else |
16483 | iodebug=no | |
631ef239 AC |
16484 | fi |
16485 | ||
212380e3 AC |
16486 | |
16487 | if test "$iodebug" = yes; then | |
16488 | ||
7083c021 | 16489 | $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h |
212380e3 | 16490 | |
7083c021 AC |
16491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
16492 | $as_echo "yes" >&6; } | |
212380e3 | 16493 | else |
7083c021 AC |
16494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16495 | $as_echo "no" >&6; } | |
212380e3 AC |
16496 | fi |
16497 | ||
16498 | ||
7083c021 AC |
16499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5 |
16500 | $as_echo_n "checking if you want to do a profile build... " >&6; } | |
631ef239 | 16501 | # Check whether --enable-profile was given. |
7083c021 | 16502 | if test "${enable_profile+set}" = set; then : |
631ef239 | 16503 | enableval=$enable_profile; profile=$enableval |
212380e3 AC |
16504 | else |
16505 | profile=no | |
631ef239 AC |
16506 | fi |
16507 | ||
212380e3 AC |
16508 | |
16509 | if test "$profile" = yes; then | |
16510 | if test "$ac_cv_c_compiler_gnu" = yes; then | |
16511 | IRC_CFLAGS="$IRC_CFLAGS -pg" | |
7083c021 AC |
16512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5 |
16513 | $as_echo "yes, adding -pg" >&6; } | |
212380e3 | 16514 | |
7083c021 | 16515 | $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h |
212380e3 AC |
16516 | |
16517 | else | |
7083c021 AC |
16518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5 |
16519 | $as_echo "no, profile builds only work with gcc" >&6; } | |
212380e3 AC |
16520 | fi |
16521 | else | |
7083c021 AC |
16522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16523 | $as_echo "no" >&6; } | |
212380e3 AC |
16524 | fi |
16525 | ||
212380e3 | 16526 | |
7083c021 | 16527 | $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h |
212380e3 AC |
16528 | |
16529 | ||
7083c021 | 16530 | $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
16531 | |
16532 | ||
7083c021 | 16533 | $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
16534 | |
16535 | ||
7083c021 | 16536 | $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
16537 | |
16538 | ||
7083c021 | 16539 | $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h |
212380e3 AC |
16540 | |
16541 | ||
7083c021 | 16542 | $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16543 | |
16544 | ||
7083c021 | 16545 | $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
16546 | |
16547 | ||
7083c021 | 16548 | $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h |
212380e3 AC |
16549 | |
16550 | ||
7083c021 | 16551 | $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h |
212380e3 AC |
16552 | |
16553 | ||
7083c021 | 16554 | $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h |
212380e3 AC |
16555 | |
16556 | ||
7083c021 | 16557 | $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h |
212380e3 AC |
16558 | |
16559 | ||
7083c021 | 16560 | $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h |
212380e3 AC |
16561 | |
16562 | ||
7083c021 | 16563 | $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h |
212380e3 AC |
16564 | |
16565 | ||
7083c021 | 16566 | $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h |
212380e3 | 16567 | |
f589ec6f | 16568 | |
7083c021 | 16569 | $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h |
2b428185 AC |
16570 | |
16571 | ||
7083c021 | 16572 | $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h |
f589ec6f | 16573 | |
212380e3 AC |
16574 | |
16575 | ||
631ef239 | 16576 | # Check whether --with-nicklen was given. |
7083c021 | 16577 | if test "${with_nicklen+set}" = set; then : |
631ef239 | 16578 | withval=$with_nicklen; |
aa769893 | 16579 | if ! expr "$withval" + 0 >/dev/null 2>&1; then |
b6d0720c | 16580 | as_fn_error $? "NICKLEN must be a numeric value" "$LINENO" 5 |
aa769893 | 16581 | fi |
cf533739 | 16582 | if test $withval -gt 50; then |
212380e3 | 16583 | NICKLEN=50 |
7083c021 AC |
16584 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5 |
16585 | $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;} | |
cf533739 JT |
16586 | elif test $withval -lt 9; then |
16587 | NICKLEN=9 | |
16588 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5 | |
16589 | $as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;} | |
212380e3 AC |
16590 | else |
16591 | NICKLEN="$withval" | |
16592 | fi | |
16593 | ||
16594 | else | |
cf533739 | 16595 | NICKLEN=31 |
631ef239 | 16596 | fi |
212380e3 AC |
16597 | |
16598 | ||
212380e3 | 16599 | |
631ef239 | 16600 | # Check whether --with-topiclen was given. |
7083c021 | 16601 | if test "${with_topiclen+set}" = set; then : |
631ef239 | 16602 | withval=$with_topiclen; |
212380e3 AC |
16603 | if test $withval -ge 390; then |
16604 | TOPICLEN=390 | |
7083c021 AC |
16605 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5 |
16606 | $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;} | |
212380e3 AC |
16607 | else |
16608 | TOPICLEN=$withval | |
16609 | fi | |
16610 | ||
16611 | else | |
16612 | TOPICLEN=390 | |
212380e3 AC |
16613 | fi |
16614 | ||
212380e3 AC |
16615 | |
16616 | ||
16617 | cat >>confdefs.h <<_ACEOF | |
16618 | #define TOPICLEN ${TOPICLEN} | |
16619 | _ACEOF | |
16620 | ||
16621 | ||
16622 | cat >>confdefs.h <<_ACEOF | |
16623 | #define NICKLEN (${NICKLEN}+1) | |
16624 | _ACEOF | |
16625 | ||
16626 | ||
1a82970f JT |
16627 | # rpath, for finding libratbox.so at run time |
16628 | hold_ldflags=$LDFLAGS | |
7083c021 AC |
16629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5 |
16630 | $as_echo_n "checking for the ld -rpath flag... " >&6; } | |
1a82970f | 16631 | LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}" |
7083c021 | 16632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1a82970f JT |
16633 | /* end confdefs.h. */ |
16634 | ||
16635 | int | |
16636 | main () | |
16637 | { | |
16638 | int i; | |
16639 | ; | |
16640 | return 0; | |
16641 | } | |
16642 | _ACEOF | |
7083c021 | 16643 | if ac_fn_c_try_link "$LINENO"; then : |
1a82970f JT |
16644 | found=yes |
16645 | else | |
7083c021 | 16646 | found=no |
1a82970f | 16647 | fi |
7083c021 AC |
16648 | rm -f core conftest.err conftest.$ac_objext \ |
16649 | conftest$ac_exeext conftest.$ac_ext | |
1a82970f | 16650 | LDFLAGS=$hold_ldflags |
7083c021 AC |
16651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5 |
16652 | $as_echo "$found" >&6; } | |
1a82970f JT |
16653 | if test "$found" = yes; then |
16654 | LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}" | |
16655 | fi | |
16656 | ||
212380e3 AC |
16657 | # This must be down here, or it will mess up checks like the ones |
16658 | # for -Wl,-export-dynamic | |
16659 | # -- jilles | |
d2c5159a | 16660 | CWARNS="" |
631ef239 | 16661 | # Check whether --enable-warnings was given. |
7083c021 | 16662 | if test "${enable_warnings+set}" = set; then : |
631ef239 | 16663 | enableval=$enable_warnings; |
212380e3 AC |
16664 | IRC_CFLAGS="$IRC_CFLAGS -O0" |
16665 | CFLAGS="$IRC_CFLAGS" | |
16666 | ||
16667 | ||
7083c021 AC |
16668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5 |
16669 | $as_echo_n "checking GCC flag(s) -Wall... " >&6; } | |
212380e3 AC |
16670 | if test "${GCC-no}" = yes |
16671 | then | |
b6d0720c | 16672 | if ${charybdis_cv_c_gcc_w_all+:} false; then : |
7083c021 | 16673 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16674 | else |
16675 | ||
16676 | oldcflags="${CFLAGS-}" | |
16677 | CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror" | |
7083c021 | 16678 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16679 | /* end confdefs.h. */ |
16680 | ||
16681 | #include <string.h> | |
16682 | #include <stdio.h> | |
16683 | int main(void); | |
16684 | ||
16685 | int | |
16686 | main () | |
16687 | { | |
16688 | ||
b1fc1658 | 16689 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
16690 | |
16691 | ; | |
16692 | return 0; | |
16693 | } | |
16694 | _ACEOF | |
7083c021 | 16695 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
16696 | charybdis_cv_c_gcc_w_all=yes |
16697 | else | |
7083c021 | 16698 | charybdis_cv_c_gcc_w_all=no |
212380e3 | 16699 | fi |
631ef239 | 16700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16701 | CFLAGS="${oldcflags}" |
16702 | fi | |
16703 | ||
16704 | if test "x$charybdis_cv_c_gcc_w_all" = xyes; then | |
16705 | CWARNS="${CWARNS}-Wall " | |
7083c021 AC |
16706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16707 | $as_echo "ok" >&6; } | |
212380e3 AC |
16708 | else |
16709 | charybdis_cv_c_gcc_w_all='' | |
7083c021 AC |
16710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16711 | $as_echo "no" >&6; } | |
212380e3 AC |
16712 | fi |
16713 | else | |
7083c021 AC |
16714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16715 | $as_echo "no" >&6; } | |
212380e3 AC |
16716 | fi |
16717 | ||
16718 | ||
7083c021 AC |
16719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5 |
16720 | $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; } | |
212380e3 AC |
16721 | if test "${GCC-no}" = yes |
16722 | then | |
b6d0720c | 16723 | if ${charybdis_cv_c_gcc_w_pointer_arith+:} false; then : |
7083c021 | 16724 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16725 | else |
16726 | ||
16727 | oldcflags="${CFLAGS-}" | |
16728 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror" | |
7083c021 | 16729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16730 | /* end confdefs.h. */ |
16731 | ||
16732 | #include <string.h> | |
16733 | #include <stdio.h> | |
16734 | int main(void); | |
16735 | ||
16736 | int | |
16737 | main () | |
16738 | { | |
16739 | ||
b1fc1658 | 16740 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
16741 | |
16742 | ; | |
16743 | return 0; | |
16744 | } | |
16745 | _ACEOF | |
7083c021 | 16746 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
16747 | charybdis_cv_c_gcc_w_pointer_arith=yes |
16748 | else | |
7083c021 | 16749 | charybdis_cv_c_gcc_w_pointer_arith=no |
212380e3 | 16750 | fi |
631ef239 | 16751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16752 | CFLAGS="${oldcflags}" |
16753 | fi | |
16754 | ||
16755 | if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then | |
16756 | CWARNS="${CWARNS}-Wpointer-arith " | |
7083c021 AC |
16757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16758 | $as_echo "ok" >&6; } | |
212380e3 AC |
16759 | else |
16760 | charybdis_cv_c_gcc_w_pointer_arith='' | |
7083c021 AC |
16761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16762 | $as_echo "no" >&6; } | |
212380e3 AC |
16763 | fi |
16764 | else | |
7083c021 AC |
16765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16766 | $as_echo "no" >&6; } | |
212380e3 AC |
16767 | fi |
16768 | ||
16769 | ||
7083c021 AC |
16770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5 |
16771 | $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; } | |
212380e3 AC |
16772 | if test "${GCC-no}" = yes |
16773 | then | |
b6d0720c | 16774 | if ${charybdis_cv_c_gcc_w_implicit+:} false; then : |
7083c021 | 16775 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16776 | else |
16777 | ||
16778 | oldcflags="${CFLAGS-}" | |
16779 | CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror" | |
7083c021 | 16780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16781 | /* end confdefs.h. */ |
16782 | ||
16783 | #include <string.h> | |
16784 | #include <stdio.h> | |
16785 | int main(void); | |
16786 | ||
16787 | int | |
16788 | main () | |
16789 | { | |
16790 | ||
b1fc1658 | 16791 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
16792 | |
16793 | ; | |
16794 | return 0; | |
16795 | } | |
16796 | _ACEOF | |
7083c021 | 16797 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
16798 | charybdis_cv_c_gcc_w_implicit=yes |
16799 | else | |
7083c021 | 16800 | charybdis_cv_c_gcc_w_implicit=no |
212380e3 | 16801 | fi |
631ef239 | 16802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16803 | CFLAGS="${oldcflags}" |
16804 | fi | |
16805 | ||
16806 | if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then | |
16807 | CWARNS="${CWARNS}-Wimplicit -Wnested-externs " | |
7083c021 AC |
16808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16809 | $as_echo "ok" >&6; } | |
212380e3 AC |
16810 | else |
16811 | charybdis_cv_c_gcc_w_implicit='' | |
7083c021 AC |
16812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16813 | $as_echo "no" >&6; } | |
212380e3 AC |
16814 | fi |
16815 | else | |
7083c021 AC |
16816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16817 | $as_echo "no" >&6; } | |
212380e3 AC |
16818 | fi |
16819 | ||
16820 | ||
7083c021 AC |
16821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5 |
16822 | $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; } | |
212380e3 AC |
16823 | if test "${GCC-no}" = yes |
16824 | then | |
b6d0720c | 16825 | if ${charybdis_cv_c_gcc_w_cast_align+:} false; then : |
7083c021 | 16826 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16827 | else |
16828 | ||
16829 | oldcflags="${CFLAGS-}" | |
16830 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror" | |
7083c021 | 16831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16832 | /* end confdefs.h. */ |
16833 | ||
16834 | #include <string.h> | |
16835 | #include <stdio.h> | |
16836 | int main(void); | |
16837 | ||
16838 | int | |
16839 | main () | |
16840 | { | |
16841 | ||
b1fc1658 | 16842 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
7083c021 AC |
16843 | |
16844 | ; | |
16845 | return 0; | |
16846 | } | |
16847 | _ACEOF | |
16848 | if ac_fn_c_try_compile "$LINENO"; then : | |
212380e3 AC |
16849 | charybdis_cv_c_gcc_w_cast_align=yes |
16850 | else | |
7083c021 | 16851 | charybdis_cv_c_gcc_w_cast_align=no |
212380e3 | 16852 | fi |
631ef239 | 16853 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16854 | CFLAGS="${oldcflags}" |
16855 | fi | |
16856 | ||
16857 | if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then | |
16858 | CWARNS="${CWARNS}-Wcast-align " | |
7083c021 AC |
16859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16860 | $as_echo "ok" >&6; } | |
212380e3 AC |
16861 | else |
16862 | charybdis_cv_c_gcc_w_cast_align='' | |
7083c021 AC |
16863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16864 | $as_echo "no" >&6; } | |
212380e3 AC |
16865 | fi |
16866 | else | |
7083c021 AC |
16867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16868 | $as_echo "no" >&6; } | |
212380e3 AC |
16869 | fi |
16870 | ||
16871 | ||
7083c021 AC |
16872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5 |
16873 | $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; } | |
212380e3 AC |
16874 | if test "${GCC-no}" = yes |
16875 | then | |
b6d0720c | 16876 | if ${charybdis_cv_c_gcc_w_cast_qual+:} false; then : |
7083c021 | 16877 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
16878 | else |
16879 | ||
16880 | oldcflags="${CFLAGS-}" | |
16881 | CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror" | |
7083c021 | 16882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
16883 | /* end confdefs.h. */ |
16884 | ||
16885 | #include <string.h> | |
16886 | #include <stdio.h> | |
16887 | int main(void); | |
16888 | ||
16889 | int | |
16890 | main () | |
16891 | { | |
16892 | ||
b1fc1658 | 16893 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
16894 | |
16895 | ; | |
16896 | return 0; | |
16897 | } | |
16898 | _ACEOF | |
7083c021 | 16899 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
16900 | charybdis_cv_c_gcc_w_cast_qual=yes |
16901 | else | |
7083c021 | 16902 | charybdis_cv_c_gcc_w_cast_qual=no |
212380e3 | 16903 | fi |
631ef239 | 16904 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
16905 | CFLAGS="${oldcflags}" |
16906 | fi | |
16907 | ||
16908 | if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then | |
16909 | CWARNS="${CWARNS}-Wcast-qual " | |
7083c021 AC |
16910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16911 | $as_echo "ok" >&6; } | |
212380e3 AC |
16912 | else |
16913 | charybdis_cv_c_gcc_w_cast_qual='' | |
7083c021 AC |
16914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16915 | $as_echo "no" >&6; } | |
212380e3 AC |
16916 | fi |
16917 | else | |
7083c021 AC |
16918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16919 | $as_echo "no" >&6; } | |
212380e3 AC |
16920 | fi |
16921 | ||
16922 | ||
7083c021 AC |
16923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5 |
16924 | $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; } | |
d2c5159a JT |
16925 | if test "${GCC-no}" = yes |
16926 | then | |
b6d0720c | 16927 | if ${charybdis_cv_c_gcc_w_write_strings+:} false; then : |
7083c021 | 16928 | $as_echo_n "(cached) " >&6 |
d2c5159a JT |
16929 | else |
16930 | ||
16931 | oldcflags="${CFLAGS-}" | |
16932 | CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror" | |
7083c021 | 16933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d2c5159a JT |
16934 | /* end confdefs.h. */ |
16935 | ||
16936 | #include <string.h> | |
16937 | #include <stdio.h> | |
16938 | int main(void); | |
16939 | ||
16940 | int | |
16941 | main () | |
16942 | { | |
16943 | ||
16944 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
16945 | ||
16946 | ; | |
16947 | return 0; | |
16948 | } | |
16949 | _ACEOF | |
7083c021 | 16950 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 | 16951 | charybdis_cv_c_gcc_w_write_strings=yes |
d2c5159a | 16952 | else |
7083c021 | 16953 | charybdis_cv_c_gcc_w_write_strings=no |
d2c5159a | 16954 | fi |
d2c5159a JT |
16955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
16956 | CFLAGS="${oldcflags}" | |
16957 | fi | |
16958 | ||
bbe58888 | 16959 | if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then |
d2c5159a | 16960 | CWARNS="${CWARNS}-Wwrite-strings " |
7083c021 AC |
16961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
16962 | $as_echo "ok" >&6; } | |
d2c5159a | 16963 | else |
bbe58888 | 16964 | charybdis_cv_c_gcc_w_write_strings='' |
7083c021 AC |
16965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16966 | $as_echo "no" >&6; } | |
bbe58888 VY |
16967 | fi |
16968 | else | |
7083c021 AC |
16969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
16970 | $as_echo "no" >&6; } | |
bbe58888 VY |
16971 | fi |
16972 | ||
16973 | ||
7083c021 AC |
16974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5 |
16975 | $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; } | |
bbe58888 VY |
16976 | if test "${GCC-no}" = yes |
16977 | then | |
b6d0720c | 16978 | if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false; then : |
7083c021 | 16979 | $as_echo_n "(cached) " >&6 |
bbe58888 VY |
16980 | else |
16981 | ||
16982 | oldcflags="${CFLAGS-}" | |
16983 | CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror" | |
7083c021 | 16984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bbe58888 VY |
16985 | /* end confdefs.h. */ |
16986 | ||
16987 | #include <string.h> | |
16988 | #include <stdio.h> | |
16989 | int main(void); | |
16990 | ||
16991 | int | |
16992 | main () | |
16993 | { | |
16994 | ||
16995 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
16996 | ||
16997 | ; | |
16998 | return 0; | |
16999 | } | |
17000 | _ACEOF | |
7083c021 | 17001 | if ac_fn_c_try_compile "$LINENO"; then : |
bbe58888 VY |
17002 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes |
17003 | else | |
7083c021 | 17004 | charybdis_cv_c_gcc_w_error_implicit_function_declaration=no |
bbe58888 | 17005 | fi |
bbe58888 VY |
17006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
17007 | CFLAGS="${oldcflags}" | |
17008 | fi | |
17009 | ||
17010 | if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then | |
17011 | CWARNS="${CWARNS}-Werror-implicit-function-declaration " | |
7083c021 AC |
17012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17013 | $as_echo "ok" >&6; } | |
bbe58888 VY |
17014 | else |
17015 | charybdis_cv_c_gcc_w_error_implicit_function_declaration='' | |
7083c021 AC |
17016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17017 | $as_echo "no" >&6; } | |
d2c5159a JT |
17018 | fi |
17019 | else | |
7083c021 AC |
17020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17021 | $as_echo "no" >&6; } | |
d2c5159a JT |
17022 | fi |
17023 | ||
17024 | ||
7083c021 AC |
17025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5 |
17026 | $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; } | |
212380e3 AC |
17027 | if test "${GCC-no}" = yes |
17028 | then | |
b6d0720c | 17029 | if ${charybdis_cv_c_gcc_prototypes+:} false; then : |
7083c021 | 17030 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17031 | else |
17032 | ||
17033 | oldcflags="${CFLAGS-}" | |
17034 | CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror" | |
7083c021 | 17035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17036 | /* end confdefs.h. */ |
17037 | ||
17038 | #include <string.h> | |
17039 | #include <stdio.h> | |
17040 | int main(void); | |
17041 | ||
17042 | int | |
17043 | main () | |
17044 | { | |
17045 | ||
b1fc1658 | 17046 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17047 | |
17048 | ; | |
17049 | return 0; | |
17050 | } | |
17051 | _ACEOF | |
7083c021 | 17052 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17053 | charybdis_cv_c_gcc_prototypes=yes |
17054 | else | |
7083c021 | 17055 | charybdis_cv_c_gcc_prototypes=no |
212380e3 | 17056 | fi |
631ef239 | 17057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17058 | CFLAGS="${oldcflags}" |
17059 | fi | |
17060 | ||
17061 | if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then | |
17062 | CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations " | |
7083c021 AC |
17063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17064 | $as_echo "ok" >&6; } | |
212380e3 AC |
17065 | else |
17066 | charybdis_cv_c_gcc_prototypes='' | |
7083c021 AC |
17067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17068 | $as_echo "no" >&6; } | |
212380e3 AC |
17069 | fi |
17070 | else | |
7083c021 AC |
17071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17072 | $as_echo "no" >&6; } | |
212380e3 AC |
17073 | fi |
17074 | ||
17075 | ||
7083c021 AC |
17076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5 |
17077 | $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; } | |
212380e3 AC |
17078 | if test "${GCC-no}" = yes |
17079 | then | |
b6d0720c | 17080 | if ${charybdis_cv_c_gcc_parenthesis+:} false; then : |
7083c021 | 17081 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17082 | else |
17083 | ||
17084 | oldcflags="${CFLAGS-}" | |
17085 | CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror" | |
7083c021 | 17086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17087 | /* end confdefs.h. */ |
17088 | ||
17089 | #include <string.h> | |
17090 | #include <stdio.h> | |
17091 | int main(void); | |
17092 | ||
17093 | int | |
17094 | main () | |
17095 | { | |
17096 | ||
b1fc1658 | 17097 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17098 | |
17099 | ; | |
17100 | return 0; | |
17101 | } | |
17102 | _ACEOF | |
7083c021 | 17103 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17104 | charybdis_cv_c_gcc_parenthesis=yes |
17105 | else | |
7083c021 | 17106 | charybdis_cv_c_gcc_parenthesis=no |
212380e3 | 17107 | fi |
631ef239 | 17108 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17109 | CFLAGS="${oldcflags}" |
17110 | fi | |
17111 | ||
17112 | if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then | |
17113 | CWARNS="${CWARNS}-Wparenthesis " | |
7083c021 AC |
17114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17115 | $as_echo "ok" >&6; } | |
212380e3 AC |
17116 | else |
17117 | charybdis_cv_c_gcc_parenthesis='' | |
7083c021 AC |
17118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17119 | $as_echo "no" >&6; } | |
212380e3 AC |
17120 | fi |
17121 | else | |
7083c021 AC |
17122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17123 | $as_echo "no" >&6; } | |
212380e3 AC |
17124 | fi |
17125 | ||
17126 | ||
7083c021 AC |
17127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5 |
17128 | $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; } | |
212380e3 AC |
17129 | if test "${GCC-no}" = yes |
17130 | then | |
b6d0720c | 17131 | if ${charybdis_cv_c_gcc_w+:} false; then : |
7083c021 | 17132 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17133 | else |
17134 | ||
17135 | oldcflags="${CFLAGS-}" | |
17136 | CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror" | |
7083c021 | 17137 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17138 | /* end confdefs.h. */ |
17139 | ||
17140 | #include <string.h> | |
17141 | #include <stdio.h> | |
17142 | int main(void); | |
17143 | ||
17144 | int | |
17145 | main () | |
17146 | { | |
17147 | ||
b1fc1658 | 17148 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17149 | |
17150 | ; | |
17151 | return 0; | |
17152 | } | |
17153 | _ACEOF | |
7083c021 | 17154 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17155 | charybdis_cv_c_gcc_w=yes |
17156 | else | |
7083c021 | 17157 | charybdis_cv_c_gcc_w=no |
212380e3 | 17158 | fi |
631ef239 | 17159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17160 | CFLAGS="${oldcflags}" |
17161 | fi | |
17162 | ||
17163 | if test "x$charybdis_cv_c_gcc_w" = xyes; then | |
17164 | CWARNS="${CWARNS}-W -Wno-unused " | |
7083c021 AC |
17165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17166 | $as_echo "ok" >&6; } | |
212380e3 AC |
17167 | else |
17168 | charybdis_cv_c_gcc_w='' | |
7083c021 AC |
17169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17170 | $as_echo "no" >&6; } | |
212380e3 AC |
17171 | fi |
17172 | else | |
7083c021 AC |
17173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17174 | $as_echo "no" >&6; } | |
212380e3 AC |
17175 | fi |
17176 | ||
17177 | ||
7083c021 AC |
17178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5 |
17179 | $as_echo_n "checking GCC flag(s) -Wextra... " >&6; } | |
212380e3 AC |
17180 | if test "${GCC-no}" = yes |
17181 | then | |
b6d0720c | 17182 | if ${charybdis_cv_c_gcc_w_extra+:} false; then : |
7083c021 | 17183 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17184 | else |
17185 | ||
17186 | oldcflags="${CFLAGS-}" | |
17187 | CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror" | |
7083c021 | 17188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17189 | /* end confdefs.h. */ |
17190 | ||
17191 | #include <string.h> | |
17192 | #include <stdio.h> | |
17193 | int main(void); | |
17194 | ||
17195 | int | |
17196 | main () | |
17197 | { | |
17198 | ||
b1fc1658 | 17199 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17200 | |
17201 | ; | |
17202 | return 0; | |
17203 | } | |
17204 | _ACEOF | |
7083c021 | 17205 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17206 | charybdis_cv_c_gcc_w_extra=yes |
17207 | else | |
7083c021 | 17208 | charybdis_cv_c_gcc_w_extra=no |
212380e3 | 17209 | fi |
631ef239 | 17210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17211 | CFLAGS="${oldcflags}" |
17212 | fi | |
17213 | ||
17214 | if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then | |
17215 | CWARNS="${CWARNS}-Wextra " | |
7083c021 AC |
17216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17217 | $as_echo "ok" >&6; } | |
212380e3 AC |
17218 | else |
17219 | charybdis_cv_c_gcc_w_extra='' | |
7083c021 AC |
17220 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17221 | $as_echo "no" >&6; } | |
212380e3 AC |
17222 | fi |
17223 | else | |
7083c021 AC |
17224 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17225 | $as_echo "no" >&6; } | |
212380e3 AC |
17226 | fi |
17227 | ||
17228 | ||
7083c021 AC |
17229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5 |
17230 | $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; } | |
212380e3 AC |
17231 | if test "${GCC-no}" = yes |
17232 | then | |
b6d0720c | 17233 | if ${charybdis_cv_c_gcc_w_shadow+:} false; then : |
7083c021 | 17234 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17235 | else |
17236 | ||
17237 | oldcflags="${CFLAGS-}" | |
17238 | CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror" | |
7083c021 | 17239 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17240 | /* end confdefs.h. */ |
17241 | ||
17242 | #include <string.h> | |
17243 | #include <stdio.h> | |
17244 | int main(void); | |
17245 | ||
17246 | int | |
17247 | main () | |
17248 | { | |
17249 | ||
b1fc1658 | 17250 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17251 | |
17252 | ; | |
17253 | return 0; | |
17254 | } | |
17255 | _ACEOF | |
7083c021 | 17256 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17257 | charybdis_cv_c_gcc_w_shadow=yes |
17258 | else | |
7083c021 | 17259 | charybdis_cv_c_gcc_w_shadow=no |
212380e3 | 17260 | fi |
631ef239 | 17261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17262 | CFLAGS="${oldcflags}" |
17263 | fi | |
17264 | ||
17265 | if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then | |
17266 | CWARNS="${CWARNS}-Wshadow " | |
7083c021 AC |
17267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17268 | $as_echo "ok" >&6; } | |
212380e3 AC |
17269 | else |
17270 | charybdis_cv_c_gcc_w_shadow='' | |
7083c021 AC |
17271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17272 | $as_echo "no" >&6; } | |
212380e3 AC |
17273 | fi |
17274 | else | |
7083c021 AC |
17275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17276 | $as_echo "no" >&6; } | |
212380e3 AC |
17277 | fi |
17278 | ||
17279 | ||
7083c021 AC |
17280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5 |
17281 | $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; } | |
212380e3 AC |
17282 | if test "${GCC-no}" = yes |
17283 | then | |
b6d0720c | 17284 | if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false; then : |
7083c021 | 17285 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17286 | else |
17287 | ||
17288 | oldcflags="${CFLAGS-}" | |
17289 | CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror" | |
7083c021 | 17290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17291 | /* end confdefs.h. */ |
17292 | ||
17293 | #include <string.h> | |
17294 | #include <stdio.h> | |
17295 | int main(void); | |
17296 | ||
17297 | int | |
17298 | main () | |
17299 | { | |
17300 | ||
b1fc1658 | 17301 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17302 | |
17303 | ; | |
17304 | return 0; | |
17305 | } | |
17306 | _ACEOF | |
7083c021 | 17307 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17308 | charybdis_cv_c_gcc_w_missing_noreturn=yes |
17309 | else | |
7083c021 | 17310 | charybdis_cv_c_gcc_w_missing_noreturn=no |
212380e3 | 17311 | fi |
631ef239 | 17312 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17313 | CFLAGS="${oldcflags}" |
17314 | fi | |
17315 | ||
17316 | if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then | |
17317 | CWARNS="${CWARNS}-Wmissing-noreturn " | |
7083c021 AC |
17318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17319 | $as_echo "ok" >&6; } | |
212380e3 AC |
17320 | else |
17321 | charybdis_cv_c_gcc_w_missing_noreturn='' | |
7083c021 AC |
17322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17323 | $as_echo "no" >&6; } | |
212380e3 AC |
17324 | fi |
17325 | else | |
7083c021 AC |
17326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17327 | $as_echo "no" >&6; } | |
212380e3 AC |
17328 | fi |
17329 | ||
17330 | ||
7083c021 AC |
17331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5 |
17332 | $as_echo_n "checking GCC flag(s) -Wundef... " >&6; } | |
212380e3 AC |
17333 | if test "${GCC-no}" = yes |
17334 | then | |
b6d0720c | 17335 | if ${charybdis_cv_c_gcc_w_undef+:} false; then : |
7083c021 | 17336 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17337 | else |
17338 | ||
17339 | oldcflags="${CFLAGS-}" | |
17340 | CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror" | |
7083c021 | 17341 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17342 | /* end confdefs.h. */ |
17343 | ||
17344 | #include <string.h> | |
17345 | #include <stdio.h> | |
17346 | int main(void); | |
17347 | ||
17348 | int | |
17349 | main () | |
17350 | { | |
17351 | ||
b1fc1658 | 17352 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17353 | |
17354 | ; | |
17355 | return 0; | |
17356 | } | |
17357 | _ACEOF | |
7083c021 | 17358 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17359 | charybdis_cv_c_gcc_w_undef=yes |
17360 | else | |
7083c021 | 17361 | charybdis_cv_c_gcc_w_undef=no |
212380e3 | 17362 | fi |
631ef239 | 17363 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17364 | CFLAGS="${oldcflags}" |
17365 | fi | |
17366 | ||
17367 | if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then | |
17368 | CWARNS="${CWARNS}-Wundef " | |
7083c021 AC |
17369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17370 | $as_echo "ok" >&6; } | |
212380e3 AC |
17371 | else |
17372 | charybdis_cv_c_gcc_w_undef='' | |
7083c021 AC |
17373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17374 | $as_echo "no" >&6; } | |
212380e3 AC |
17375 | fi |
17376 | else | |
7083c021 AC |
17377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17378 | $as_echo "no" >&6; } | |
212380e3 AC |
17379 | fi |
17380 | ||
17381 | ||
7083c021 AC |
17382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5 |
17383 | $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; } | |
212380e3 AC |
17384 | if test "${GCC-no}" = yes |
17385 | then | |
b6d0720c | 17386 | if ${charybdis_cv_c_gcc_w_packed+:} false; then : |
7083c021 | 17387 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17388 | else |
17389 | ||
17390 | oldcflags="${CFLAGS-}" | |
17391 | CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror" | |
7083c021 | 17392 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17393 | /* end confdefs.h. */ |
17394 | ||
17395 | #include <string.h> | |
17396 | #include <stdio.h> | |
17397 | int main(void); | |
17398 | ||
17399 | int | |
17400 | main () | |
17401 | { | |
17402 | ||
b1fc1658 | 17403 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17404 | |
17405 | ; | |
17406 | return 0; | |
17407 | } | |
17408 | _ACEOF | |
7083c021 | 17409 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17410 | charybdis_cv_c_gcc_w_packed=yes |
17411 | else | |
7083c021 | 17412 | charybdis_cv_c_gcc_w_packed=no |
212380e3 | 17413 | fi |
631ef239 | 17414 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17415 | CFLAGS="${oldcflags}" |
17416 | fi | |
17417 | ||
17418 | if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then | |
17419 | CWARNS="${CWARNS}-Wpacked " | |
7083c021 AC |
17420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17421 | $as_echo "ok" >&6; } | |
212380e3 AC |
17422 | else |
17423 | charybdis_cv_c_gcc_w_packed='' | |
7083c021 AC |
17424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17425 | $as_echo "no" >&6; } | |
212380e3 AC |
17426 | fi |
17427 | else | |
7083c021 AC |
17428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17429 | $as_echo "no" >&6; } | |
212380e3 AC |
17430 | fi |
17431 | ||
17432 | ||
7083c021 AC |
17433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5 |
17434 | $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; } | |
212380e3 AC |
17435 | if test "${GCC-no}" = yes |
17436 | then | |
b6d0720c | 17437 | if ${charybdis_cv_c_gcc_w_nested_externs+:} false; then : |
7083c021 | 17438 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17439 | else |
17440 | ||
17441 | oldcflags="${CFLAGS-}" | |
17442 | CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror" | |
7083c021 | 17443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17444 | /* end confdefs.h. */ |
17445 | ||
17446 | #include <string.h> | |
17447 | #include <stdio.h> | |
17448 | int main(void); | |
17449 | ||
17450 | int | |
17451 | main () | |
17452 | { | |
17453 | ||
b1fc1658 | 17454 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17455 | |
17456 | ; | |
17457 | return 0; | |
17458 | } | |
17459 | _ACEOF | |
7083c021 | 17460 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17461 | charybdis_cv_c_gcc_w_nested_externs=yes |
17462 | else | |
7083c021 | 17463 | charybdis_cv_c_gcc_w_nested_externs=no |
212380e3 | 17464 | fi |
631ef239 | 17465 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17466 | CFLAGS="${oldcflags}" |
17467 | fi | |
17468 | ||
17469 | if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then | |
17470 | CWARNS="${CWARNS}-Wnested-externs " | |
7083c021 AC |
17471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17472 | $as_echo "ok" >&6; } | |
212380e3 AC |
17473 | else |
17474 | charybdis_cv_c_gcc_w_nested_externs='' | |
7083c021 AC |
17475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17476 | $as_echo "no" >&6; } | |
212380e3 AC |
17477 | fi |
17478 | else | |
7083c021 AC |
17479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17480 | $as_echo "no" >&6; } | |
212380e3 AC |
17481 | fi |
17482 | ||
17483 | ||
7083c021 AC |
17484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5 |
17485 | $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; } | |
212380e3 AC |
17486 | if test "${GCC-no}" = yes |
17487 | then | |
b6d0720c | 17488 | if ${charybdis_cv_c_gcc_w_unused+:} false; then : |
7083c021 | 17489 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17490 | else |
17491 | ||
17492 | oldcflags="${CFLAGS-}" | |
17493 | CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror" | |
7083c021 | 17494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17495 | /* end confdefs.h. */ |
17496 | ||
17497 | #include <string.h> | |
17498 | #include <stdio.h> | |
17499 | int main(void); | |
17500 | ||
17501 | int | |
17502 | main () | |
17503 | { | |
17504 | ||
b1fc1658 | 17505 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17506 | |
17507 | ; | |
17508 | return 0; | |
17509 | } | |
17510 | _ACEOF | |
7083c021 | 17511 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17512 | charybdis_cv_c_gcc_w_unused=yes |
17513 | else | |
7083c021 | 17514 | charybdis_cv_c_gcc_w_unused=no |
212380e3 | 17515 | fi |
631ef239 | 17516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17517 | CFLAGS="${oldcflags}" |
17518 | fi | |
17519 | ||
17520 | if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then | |
17521 | CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable " | |
7083c021 AC |
17522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17523 | $as_echo "ok" >&6; } | |
212380e3 AC |
17524 | else |
17525 | charybdis_cv_c_gcc_w_unused='' | |
7083c021 AC |
17526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17527 | $as_echo "no" >&6; } | |
212380e3 AC |
17528 | fi |
17529 | else | |
7083c021 AC |
17530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17531 | $as_echo "no" >&6; } | |
212380e3 AC |
17532 | fi |
17533 | ||
17534 | ||
7083c021 AC |
17535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5 |
17536 | $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; } | |
212380e3 AC |
17537 | if test "${GCC-no}" = yes |
17538 | then | |
b6d0720c | 17539 | if ${charybdis_cv_c_gcc_w_redundant_decls+:} false; then : |
7083c021 | 17540 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17541 | else |
17542 | ||
17543 | oldcflags="${CFLAGS-}" | |
17544 | CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror" | |
7083c021 | 17545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17546 | /* end confdefs.h. */ |
17547 | ||
17548 | #include <string.h> | |
17549 | #include <stdio.h> | |
17550 | int main(void); | |
17551 | ||
17552 | int | |
17553 | main () | |
17554 | { | |
17555 | ||
b1fc1658 | 17556 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17557 | |
17558 | ; | |
17559 | return 0; | |
17560 | } | |
17561 | _ACEOF | |
7083c021 | 17562 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17563 | charybdis_cv_c_gcc_w_redundant_decls=yes |
17564 | else | |
7083c021 | 17565 | charybdis_cv_c_gcc_w_redundant_decls=no |
212380e3 | 17566 | fi |
631ef239 | 17567 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17568 | CFLAGS="${oldcflags}" |
17569 | fi | |
17570 | ||
17571 | if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then | |
17572 | CWARNS="${CWARNS}-Wredundant-decls " | |
7083c021 AC |
17573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17574 | $as_echo "ok" >&6; } | |
212380e3 AC |
17575 | else |
17576 | charybdis_cv_c_gcc_w_redundant_decls='' | |
7083c021 AC |
17577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17578 | $as_echo "no" >&6; } | |
212380e3 AC |
17579 | fi |
17580 | else | |
7083c021 AC |
17581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17582 | $as_echo "no" >&6; } | |
212380e3 AC |
17583 | fi |
17584 | ||
17585 | ||
7083c021 AC |
17586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5 |
17587 | $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; } | |
212380e3 AC |
17588 | if test "${GCC-no}" = yes |
17589 | then | |
b6d0720c | 17590 | if ${charybdis_cv_c_gcc_w_float_equal+:} false; then : |
7083c021 | 17591 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17592 | else |
17593 | ||
17594 | oldcflags="${CFLAGS-}" | |
17595 | CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror" | |
7083c021 | 17596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17597 | /* end confdefs.h. */ |
17598 | ||
17599 | #include <string.h> | |
17600 | #include <stdio.h> | |
17601 | int main(void); | |
17602 | ||
17603 | int | |
17604 | main () | |
17605 | { | |
17606 | ||
b1fc1658 | 17607 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); |
212380e3 AC |
17608 | |
17609 | ; | |
17610 | return 0; | |
17611 | } | |
17612 | _ACEOF | |
7083c021 | 17613 | if ac_fn_c_try_compile "$LINENO"; then : |
212380e3 AC |
17614 | charybdis_cv_c_gcc_w_float_equal=yes |
17615 | else | |
7083c021 | 17616 | charybdis_cv_c_gcc_w_float_equal=no |
212380e3 | 17617 | fi |
631ef239 | 17618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
212380e3 AC |
17619 | CFLAGS="${oldcflags}" |
17620 | fi | |
17621 | ||
17622 | if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then | |
17623 | CWARNS="${CWARNS}-Wfloat-equal " | |
7083c021 AC |
17624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
17625 | $as_echo "ok" >&6; } | |
212380e3 AC |
17626 | else |
17627 | charybdis_cv_c_gcc_w_float_equal='' | |
7083c021 AC |
17628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17629 | $as_echo "no" >&6; } | |
212380e3 AC |
17630 | fi |
17631 | else | |
7083c021 AC |
17632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
17633 | $as_echo "no" >&6; } | |
212380e3 AC |
17634 | fi |
17635 | ||
17636 | ||
7083c021 AC |
17637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5 |
17638 | $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; } | |
212380e3 AC |
17639 | if test "${GCC-no}" = yes |
17640 | then | |
b6d0720c | 17641 | if ${charybdis_cv_c_gcc_w_format+:} false; then : |
7083c021 | 17642 | $as_echo_n "(cached) " >&6 |
212380e3 AC |
17643 | else |
17644 | ||
17645 | oldcflags="${CFLAGS-}" | |
4a584d41 | 17646 | CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror" |
7083c021 | 17647 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
212380e3 AC |
17648 | /* end confdefs.h. */ |
17649 | ||
17650 | #include <string.h> | |
17651 | #include <stdio.h> | |
17652 | int main(void); | |
17653 | ||
17654 | int | |
17655 | main () | |
17656 | { | |
7083c021 AC |
17657 | |
17658 | (void)strcmp("a","b"); fprintf(stdout,"test ok\n"); | |
17659 | ||
212380e3 AC |
17660 | ; |
17661 | return 0; | |
17662 | } | |
17663 | _ACEOF | |
7083c021 AC |
17664 | if ac_fn_c_try_compile "$LINENO"; then : |
17665 | charybdis_cv_c_gcc_w_format=yes | |
212380e3 | 17666 | else |
7083c021 AC |
17667 | charybdis_cv_c_gcc_w_format=no |
17668 | fi | |
17669 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
17670 | CFLAGS="${oldcflags}" | |
17671 | fi | |
17672 | ||
17673 | if test "x$charybdis_cv_c_gcc_w_format" = xyes; then | |
17674 | CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security " | |
17675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
17676 | $as_echo "ok" >&6; } | |
17677 | else | |
17678 | charybdis_cv_c_gcc_w_format='' | |
17679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17680 | $as_echo "no" >&6; } | |
17681 | fi | |
17682 | else | |
17683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
17684 | $as_echo "no" >&6; } | |
17685 | fi | |
17686 | ||
17687 | ||
17688 | IRC_CFLAGS="$CFLAGS" | |
212380e3 | 17689 | |
212380e3 | 17690 | fi |
631ef239 | 17691 | |
7083c021 | 17692 | |
d2c5159a JT |
17693 | IRC_CFLAGS="$IRC_CFLAGS $CWARNS" |
17694 | ||
212380e3 AC |
17695 | |
17696 | ||
17697 | ||
17698 | ||
17699 | ||
17700 | ||
17701 | ||
17702 | ||
17703 | ||
17704 | ||
17705 | ||
17706 | ||
17707 | ||
17708 | if test "$prefix" = "NONE"; then | |
17709 | ||
17710 | cat >>confdefs.h <<_ACEOF | |
17711 | #define IRCD_PREFIX "$ac_default_prefix" | |
17712 | _ACEOF | |
17713 | ||
17714 | ||
17715 | else | |
17716 | ||
17717 | ||
17718 | prefix=`echo $prefix | sed 's/\/$//'` | |
17719 | ||
17720 | cat >>confdefs.h <<_ACEOF | |
17721 | #define IRCD_PREFIX "$prefix" | |
17722 | _ACEOF | |
17723 | ||
17724 | ||
17725 | fi | |
17726 | ||
0d73e7db | 17727 | 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 | 17728 | |
2eff3833 | 17729 | ac_config_commands="$ac_config_commands tools/genssl_chmod" |
212380e3 AC |
17730 | |
17731 | ||
17732 | cat >confcache <<\_ACEOF | |
17733 | # This file is a shell script that caches the results of configure | |
17734 | # tests run on this system so they can be shared between configure | |
17735 | # scripts and configure runs, see configure's option --config-cache. | |
17736 | # It is not useful on other systems. If it contains results you don't | |
17737 | # want to keep, you may remove or edit it. | |
17738 | # | |
17739 | # config.status only pays attention to the cache file if you give it | |
17740 | # the --recheck option to rerun configure. | |
17741 | # | |
17742 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
17743 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17744 | # following values. | |
17745 | ||
17746 | _ACEOF | |
17747 | ||
17748 | # The following way of writing the cache mishandles newlines in values, | |
17749 | # but we know of no workaround that is simple, portable, and efficient. | |
631ef239 | 17750 | # So, we kill variables containing newlines. |
212380e3 AC |
17751 | # Ultrix sh set writes to stderr and can't be redirected directly, |
17752 | # and sets the high bit in the cache file unless we assign to the vars. | |
631ef239 AC |
17753 | ( |
17754 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
17755 | eval ac_val=\$$ac_var | |
17756 | case $ac_val in #( | |
17757 | *${as_nl}*) | |
17758 | case $ac_var in #( | |
7083c021 AC |
17759 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
17760 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
631ef239 AC |
17761 | esac |
17762 | case $ac_var in #( | |
17763 | _ | IFS | as_nl) ;; #( | |
7083c021 AC |
17764 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
17765 | *) { eval $ac_var=; unset $ac_var;} ;; | |
631ef239 AC |
17766 | esac ;; |
17767 | esac | |
17768 | done | |
17769 | ||
212380e3 | 17770 | (set) 2>&1 | |
631ef239 AC |
17771 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
17772 | *${as_nl}ac_space=\ *) | |
7083c021 AC |
17773 | # `set' does not quote correctly, so add quotes: double-quote |
17774 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
212380e3 AC |
17775 | sed -n \ |
17776 | "s/'/'\\\\''/g; | |
17777 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
631ef239 | 17778 | ;; #( |
212380e3 AC |
17779 | *) |
17780 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
631ef239 | 17781 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
212380e3 | 17782 | ;; |
631ef239 AC |
17783 | esac | |
17784 | sort | |
17785 | ) | | |
212380e3 | 17786 | sed ' |
631ef239 | 17787 | /^ac_cv_env_/b end |
212380e3 | 17788 | t clear |
631ef239 | 17789 | :clear |
212380e3 AC |
17790 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
17791 | t end | |
631ef239 AC |
17792 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
17793 | :end' >>confcache | |
17794 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
17795 | if test -w "$cache_file"; then | |
b6d0720c | 17796 | if test "x$cache_file" != "x/dev/null"; then |
7083c021 AC |
17797 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
17798 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
b6d0720c AC |
17799 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
17800 | cat confcache >"$cache_file" | |
17801 | else | |
17802 | case $cache_file in #( | |
17803 | */* | ?:*) | |
17804 | mv -f confcache "$cache_file"$$ && | |
17805 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
17806 | *) | |
17807 | mv -f confcache "$cache_file" ;; | |
17808 | esac | |
17809 | fi | |
17810 | fi | |
212380e3 | 17811 | else |
7083c021 AC |
17812 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
17813 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
212380e3 AC |
17814 | fi |
17815 | fi | |
17816 | rm -f confcache | |
17817 | ||
17818 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
17819 | # Let make expand exec_prefix. | |
17820 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
17821 | ||
212380e3 AC |
17822 | DEFS=-DHAVE_CONFIG_H |
17823 | ||
17824 | ac_libobjs= | |
17825 | ac_ltlibobjs= | |
b6d0720c | 17826 | U= |
212380e3 AC |
17827 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
17828 | # 1. Remove the extension, and $U if already installed. | |
631ef239 | 17829 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
7083c021 | 17830 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
631ef239 AC |
17831 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
17832 | # will be set to the directory where LIBOBJS objects are built. | |
7083c021 AC |
17833 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
17834 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
212380e3 AC |
17835 | done |
17836 | LIBOBJS=$ac_libobjs | |
17837 | ||
17838 | LTLIBOBJS=$ac_ltlibobjs | |
17839 | ||
17840 | ||
c52df125 AC |
17841 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
17842 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
17843 | if test -n "$am_sleep_pid"; then | |
17844 | # Hide warnings about reused PIDs. | |
17845 | wait $am_sleep_pid 2>/dev/null | |
17846 | fi | |
17847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
17848 | $as_echo "done" >&6; } | |
c52df125 AC |
17849 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
17850 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
17851 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17852 | fi | |
17853 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
17854 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
17855 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17856 | fi | |
eec2776c AJ |
17857 | if test -n "$EXEEXT"; then |
17858 | am__EXEEXT_TRUE= | |
17859 | am__EXEEXT_FALSE='#' | |
17860 | else | |
17861 | am__EXEEXT_TRUE='#' | |
17862 | am__EXEEXT_FALSE= | |
17863 | fi | |
17864 | ||
c52df125 AC |
17865 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then |
17866 | as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined. | |
17867 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17868 | fi | |
17869 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | |
17870 | as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined. | |
17871 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17872 | fi | |
17873 | LT_CONFIG_H=include/setup.h | |
17874 | ||
17875 | _ltdl_libobjs= | |
17876 | _ltdl_ltlibobjs= | |
17877 | if test -n "$_LT_LIBOBJS"; then | |
17878 | # Remove the extension. | |
17879 | _lt_sed_drop_objext='s/\.o$//;s/\.obj$//' | |
17880 | for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do | |
17881 | _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext" | |
17882 | _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo" | |
17883 | done | |
17884 | fi | |
17885 | ltdl_LIBOBJS=$_ltdl_libobjs | |
17886 | ||
17887 | ltdl_LTLIBOBJS=$_ltdl_ltlibobjs | |
17888 | ||
17889 | ||
17890 | if test -z "${BUILD_LTDL_TRUE}" && test -z "${BUILD_LTDL_FALSE}"; then | |
17891 | as_fn_error $? "conditional \"BUILD_LTDL\" was never defined. | |
17892 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
17893 | fi | |
212380e3 | 17894 | |
7083c021 AC |
17895 | |
17896 | ||
b6d0720c | 17897 | : "${CONFIG_STATUS=./config.status}" |
7083c021 | 17898 | ac_write_fail=0 |
212380e3 AC |
17899 | ac_clean_files_save=$ac_clean_files |
17900 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7083c021 AC |
17901 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
17902 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
17903 | as_write_fail=0 | |
17904 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
212380e3 AC |
17905 | #! $SHELL |
17906 | # Generated by $as_me. | |
17907 | # Run this file to recreate the current configuration. | |
17908 | # Compiler output produced by configure, useful for debugging | |
17909 | # configure, is in config.log if it exists. | |
17910 | ||
17911 | debug=false | |
17912 | ac_cs_recheck=false | |
17913 | ac_cs_silent=false | |
212380e3 | 17914 | |
7083c021 AC |
17915 | SHELL=\${CONFIG_SHELL-$SHELL} |
17916 | export SHELL | |
17917 | _ASEOF | |
17918 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
17919 | ## -------------------- ## | |
17920 | ## M4sh Initialization. ## | |
17921 | ## -------------------- ## | |
212380e3 | 17922 | |
631ef239 AC |
17923 | # Be more Bourne compatible |
17924 | DUALCASE=1; export DUALCASE # for MKS sh | |
7083c021 | 17925 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
212380e3 AC |
17926 | emulate sh |
17927 | NULLCMD=: | |
7083c021 | 17928 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
212380e3 AC |
17929 | # is contrary to our usage. Disable this feature. |
17930 | alias -g '${1+"$@"}'='"$@"' | |
631ef239 | 17931 | setopt NO_GLOB_SUBST |
212380e3 | 17932 | else |
7083c021 AC |
17933 | case `(set -o) 2>/dev/null` in #( |
17934 | *posix*) : | |
17935 | set -o posix ;; #( | |
17936 | *) : | |
17937 | ;; | |
631ef239 | 17938 | esac |
212380e3 AC |
17939 | fi |
17940 | ||
17941 | ||
7083c021 AC |
17942 | as_nl=' |
17943 | ' | |
17944 | export as_nl | |
17945 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
17946 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
17947 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
17948 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
17949 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
17950 | # but without wasting forks for bash or zsh. | |
17951 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
17952 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17953 | as_echo='print -r --' | |
17954 | as_echo_n='print -rn --' | |
17955 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
17956 | as_echo='printf %s\n' | |
17957 | as_echo_n='printf %s' | |
17958 | else | |
17959 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
17960 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
17961 | as_echo_n='/usr/ucb/echo -n' | |
631ef239 | 17962 | else |
7083c021 AC |
17963 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
17964 | as_echo_n_body='eval | |
17965 | arg=$1; | |
17966 | case $arg in #( | |
17967 | *"$as_nl"*) | |
17968 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
17969 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
17970 | esac; | |
17971 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
17972 | ' | |
17973 | export as_echo_n_body | |
17974 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
631ef239 | 17975 | fi |
7083c021 AC |
17976 | export as_echo_body |
17977 | as_echo='sh -c $as_echo_body as_echo' | |
631ef239 AC |
17978 | fi |
17979 | ||
7083c021 AC |
17980 | # The user is always right. |
17981 | if test "${PATH_SEPARATOR+set}" != set; then | |
17982 | PATH_SEPARATOR=: | |
17983 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
17984 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
17985 | PATH_SEPARATOR=';' | |
17986 | } | |
631ef239 AC |
17987 | fi |
17988 | ||
17989 | ||
17990 | # IFS | |
17991 | # We need space, tab and new line, in precisely that order. Quoting is | |
17992 | # there to prevent editors from complaining about space-tab. | |
17993 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
17994 | # splitting by setting IFS to empty value.) | |
631ef239 AC |
17995 | IFS=" "" $as_nl" |
17996 | ||
17997 | # Find who we are. Look in the path if we contain no directory separator. | |
b6d0720c | 17998 | as_myself= |
7083c021 | 17999 | case $0 in #(( |
631ef239 AC |
18000 | *[\\/]* ) as_myself=$0 ;; |
18001 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
18002 | for as_dir in $PATH | |
18003 | do | |
18004 | IFS=$as_save_IFS | |
18005 | test -z "$as_dir" && as_dir=. | |
7083c021 AC |
18006 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
18007 | done | |
631ef239 AC |
18008 | IFS=$as_save_IFS |
18009 | ||
18010 | ;; | |
18011 | esac | |
18012 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
18013 | # in which case we are not to be found in the path. | |
18014 | if test "x$as_myself" = x; then | |
18015 | as_myself=$0 | |
18016 | fi | |
18017 | if test ! -f "$as_myself"; then | |
7083c021 AC |
18018 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
18019 | exit 1 | |
631ef239 AC |
18020 | fi |
18021 | ||
7083c021 AC |
18022 | # Unset variables that we do not need and which cause bugs (e.g. in |
18023 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
18024 | # suppresses any "Segmentation fault" message there. '((' could | |
18025 | # trigger a bug in pdksh 5.2.14. | |
18026 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
18027 | do eval test x\${$as_var+set} = xset \ | |
18028 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
631ef239 | 18029 | done |
212380e3 AC |
18030 | PS1='$ ' |
18031 | PS2='> ' | |
18032 | PS4='+ ' | |
18033 | ||
7083c021 AC |
18034 | # NLS nuisances. |
18035 | LC_ALL=C | |
18036 | export LC_ALL | |
18037 | LANGUAGE=C | |
18038 | export LANGUAGE | |
18039 | ||
18040 | # CDPATH. | |
18041 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18042 | ||
18043 | ||
b6d0720c AC |
18044 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
18045 | # ---------------------------------------- | |
7083c021 AC |
18046 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
18047 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
b6d0720c | 18048 | # script with STATUS, using 1 if that was 0. |
7083c021 AC |
18049 | as_fn_error () |
18050 | { | |
b6d0720c AC |
18051 | as_status=$1; test $as_status -eq 0 && as_status=1 |
18052 | if test "$4"; then | |
18053 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
18054 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
212380e3 | 18055 | fi |
b6d0720c | 18056 | $as_echo "$as_me: error: $2" >&2 |
7083c021 AC |
18057 | as_fn_exit $as_status |
18058 | } # as_fn_error | |
18059 | ||
18060 | ||
18061 | # as_fn_set_status STATUS | |
18062 | # ----------------------- | |
18063 | # Set $? to STATUS, without forking. | |
18064 | as_fn_set_status () | |
18065 | { | |
18066 | return $1 | |
18067 | } # as_fn_set_status | |
18068 | ||
18069 | # as_fn_exit STATUS | |
18070 | # ----------------- | |
18071 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
18072 | as_fn_exit () | |
18073 | { | |
18074 | set +e | |
18075 | as_fn_set_status $1 | |
18076 | exit $1 | |
18077 | } # as_fn_exit | |
18078 | ||
18079 | # as_fn_unset VAR | |
18080 | # --------------- | |
18081 | # Portably unset VAR. | |
18082 | as_fn_unset () | |
18083 | { | |
18084 | { eval $1=; unset $1;} | |
18085 | } | |
18086 | as_unset=as_fn_unset | |
18087 | # as_fn_append VAR VALUE | |
18088 | # ---------------------- | |
18089 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
18090 | # advantage of any shell optimizations that allow amortized linear growth over | |
18091 | # repeated appends, instead of the typical quadratic growth present in naive | |
18092 | # implementations. | |
18093 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
18094 | eval 'as_fn_append () | |
18095 | { | |
18096 | eval $1+=\$2 | |
18097 | }' | |
18098 | else | |
18099 | as_fn_append () | |
18100 | { | |
18101 | eval $1=\$$1\$2 | |
18102 | } | |
18103 | fi # as_fn_append | |
18104 | ||
18105 | # as_fn_arith ARG... | |
18106 | # ------------------ | |
18107 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
18108 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
18109 | # must be portable across $(()) and expr. | |
18110 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
18111 | eval 'as_fn_arith () | |
18112 | { | |
18113 | as_val=$(( $* )) | |
18114 | }' | |
18115 | else | |
18116 | as_fn_arith () | |
18117 | { | |
18118 | as_val=`expr "$@" || test $? -eq 1` | |
18119 | } | |
18120 | fi # as_fn_arith | |
18121 | ||
212380e3 | 18122 | |
631ef239 AC |
18123 | if expr a : '\(a\)' >/dev/null 2>&1 && |
18124 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
212380e3 AC |
18125 | as_expr=expr |
18126 | else | |
18127 | as_expr=false | |
18128 | fi | |
18129 | ||
631ef239 | 18130 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
212380e3 AC |
18131 | as_basename=basename |
18132 | else | |
18133 | as_basename=false | |
18134 | fi | |
18135 | ||
7083c021 AC |
18136 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
18137 | as_dirname=dirname | |
18138 | else | |
18139 | as_dirname=false | |
18140 | fi | |
212380e3 | 18141 | |
631ef239 | 18142 | as_me=`$as_basename -- "$0" || |
212380e3 AC |
18143 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
18144 | X"$0" : 'X\(//\)$' \| \ | |
631ef239 | 18145 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 18146 | $as_echo X/"$0" | |
631ef239 AC |
18147 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
18148 | s//\1/ | |
18149 | q | |
18150 | } | |
18151 | /^X\/\(\/\/\)$/{ | |
18152 | s//\1/ | |
18153 | q | |
18154 | } | |
18155 | /^X\/\(\/\).*/{ | |
18156 | s//\1/ | |
18157 | q | |
18158 | } | |
18159 | s/.*/./; q'` | |
212380e3 | 18160 | |
7083c021 AC |
18161 | # Avoid depending upon Character Ranges. |
18162 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
18163 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
18164 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
18165 | as_cr_digits='0123456789' | |
18166 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
631ef239 AC |
18167 | |
18168 | ECHO_C= ECHO_N= ECHO_T= | |
7083c021 | 18169 | case `echo -n x` in #((((( |
631ef239 | 18170 | -n*) |
7083c021 | 18171 | case `echo 'xy\c'` in |
631ef239 | 18172 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
7083c021 AC |
18173 | xy) ECHO_C='\c';; |
18174 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
18175 | ECHO_T=' ';; | |
631ef239 AC |
18176 | esac;; |
18177 | *) | |
18178 | ECHO_N='-n';; | |
212380e3 AC |
18179 | esac |
18180 | ||
212380e3 | 18181 | rm -f conf$$ conf$$.exe conf$$.file |
631ef239 AC |
18182 | if test -d conf$$.dir; then |
18183 | rm -f conf$$.dir/conf$$.file | |
18184 | else | |
18185 | rm -f conf$$.dir | |
7083c021 AC |
18186 | mkdir conf$$.dir 2>/dev/null |
18187 | fi | |
18188 | if (echo >conf$$.file) 2>/dev/null; then | |
18189 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18190 | as_ln_s='ln -s' | |
18191 | # ... but there are two gotchas: | |
18192 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
18193 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
2eff3833 | 18194 | # In both cases, we have to default to `cp -pR'. |
7083c021 | 18195 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
2eff3833 | 18196 | as_ln_s='cp -pR' |
7083c021 AC |
18197 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18198 | as_ln_s=ln | |
18199 | else | |
2eff3833 | 18200 | as_ln_s='cp -pR' |
7083c021 | 18201 | fi |
212380e3 | 18202 | else |
2eff3833 | 18203 | as_ln_s='cp -pR' |
212380e3 | 18204 | fi |
631ef239 AC |
18205 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
18206 | rmdir conf$$.dir 2>/dev/null | |
212380e3 | 18207 | |
7083c021 AC |
18208 | |
18209 | # as_fn_mkdir_p | |
18210 | # ------------- | |
18211 | # Create "$as_dir" as a directory, including parents if necessary. | |
18212 | as_fn_mkdir_p () | |
18213 | { | |
18214 | ||
18215 | case $as_dir in #( | |
18216 | -*) as_dir=./$as_dir;; | |
18217 | esac | |
18218 | test -d "$as_dir" || eval $as_mkdir_p || { | |
18219 | as_dirs= | |
18220 | while :; do | |
18221 | case $as_dir in #( | |
18222 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
18223 | *) as_qdir=$as_dir;; | |
18224 | esac | |
18225 | as_dirs="'$as_qdir' $as_dirs" | |
18226 | as_dir=`$as_dirname -- "$as_dir" || | |
18227 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
18228 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
18229 | X"$as_dir" : 'X\(//\)$' \| \ | |
18230 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
18231 | $as_echo X"$as_dir" | | |
18232 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
18233 | s//\1/ | |
18234 | q | |
18235 | } | |
18236 | /^X\(\/\/\)[^/].*/{ | |
18237 | s//\1/ | |
18238 | q | |
18239 | } | |
18240 | /^X\(\/\/\)$/{ | |
18241 | s//\1/ | |
18242 | q | |
18243 | } | |
18244 | /^X\(\/\).*/{ | |
18245 | s//\1/ | |
18246 | q | |
18247 | } | |
18248 | s/.*/./; q'` | |
18249 | test -d "$as_dir" && break | |
18250 | done | |
18251 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
b6d0720c | 18252 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
7083c021 AC |
18253 | |
18254 | ||
18255 | } # as_fn_mkdir_p | |
212380e3 | 18256 | if mkdir -p . 2>/dev/null; then |
7083c021 | 18257 | as_mkdir_p='mkdir -p "$as_dir"' |
212380e3 AC |
18258 | else |
18259 | test -d ./-p && rmdir ./-p | |
18260 | as_mkdir_p=false | |
18261 | fi | |
18262 | ||
2eff3833 JT |
18263 | |
18264 | # as_fn_executable_p FILE | |
18265 | # ----------------------- | |
18266 | # Test if FILE is an executable regular file. | |
18267 | as_fn_executable_p () | |
18268 | { | |
18269 | test -f "$1" && test -x "$1" | |
18270 | } # as_fn_executable_p | |
18271 | as_test_x='test -x' | |
18272 | as_executable_p=as_fn_executable_p | |
212380e3 AC |
18273 | |
18274 | # Sed expression to map a string onto a valid CPP name. | |
18275 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
18276 | ||
18277 | # Sed expression to map a string onto a valid variable name. | |
18278 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
18279 | ||
18280 | ||
212380e3 | 18281 | exec 6>&1 |
7083c021 AC |
18282 | ## ----------------------------------- ## |
18283 | ## Main body of $CONFIG_STATUS script. ## | |
18284 | ## ----------------------------------- ## | |
18285 | _ASEOF | |
18286 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
212380e3 | 18287 | |
7083c021 AC |
18288 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18289 | # Save the log message, to keep $0 and so on meaningful, and to | |
212380e3 | 18290 | # report actual input values of CONFIG_FILES etc. instead of their |
631ef239 AC |
18291 | # values after options handling. |
18292 | ac_log=" | |
c52df125 | 18293 | This file was extended by charybdis $as_me 3.6.0-dev, which was |
2eff3833 | 18294 | generated by GNU Autoconf 2.69. Invocation command line was |
212380e3 AC |
18295 | |
18296 | CONFIG_FILES = $CONFIG_FILES | |
18297 | CONFIG_HEADERS = $CONFIG_HEADERS | |
18298 | CONFIG_LINKS = $CONFIG_LINKS | |
18299 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
18300 | $ $0 $@ | |
18301 | ||
631ef239 AC |
18302 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
18303 | " | |
18304 | ||
212380e3 AC |
18305 | _ACEOF |
18306 | ||
7083c021 AC |
18307 | case $ac_config_files in *" |
18308 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
18309 | esac | |
18310 | ||
18311 | case $ac_config_headers in *" | |
18312 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
18313 | esac | |
18314 | ||
18315 | ||
18316 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
212380e3 | 18317 | # Files that config.status was made for. |
631ef239 AC |
18318 | config_files="$ac_config_files" |
18319 | config_headers="$ac_config_headers" | |
9f9b7042 | 18320 | config_commands="$ac_config_commands" |
212380e3 | 18321 | |
631ef239 | 18322 | _ACEOF |
212380e3 | 18323 | |
7083c021 | 18324 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 | 18325 | ac_cs_usage="\ |
7083c021 AC |
18326 | \`$as_me' instantiates files and other configuration actions |
18327 | from templates according to the current configuration. Unless the files | |
18328 | and actions are specified as TAGs, all are instantiated by default. | |
212380e3 | 18329 | |
7083c021 | 18330 | Usage: $0 [OPTION]... [TAG]... |
212380e3 AC |
18331 | |
18332 | -h, --help print this help, then exit | |
631ef239 | 18333 | -V, --version print version number and configuration settings, then exit |
6fb6bd15 | 18334 | --config print configuration, then exit |
7083c021 AC |
18335 | -q, --quiet, --silent |
18336 | do not print progress messages | |
212380e3 AC |
18337 | -d, --debug don't remove temporary files |
18338 | --recheck update $as_me by reconfiguring in the same conditions | |
7083c021 AC |
18339 | --file=FILE[:TEMPLATE] |
18340 | instantiate the configuration file FILE | |
18341 | --header=FILE[:TEMPLATE] | |
18342 | instantiate the configuration header FILE | |
212380e3 AC |
18343 | |
18344 | Configuration files: | |
18345 | $config_files | |
18346 | ||
18347 | Configuration headers: | |
18348 | $config_headers | |
18349 | ||
9f9b7042 NPB |
18350 | Configuration commands: |
18351 | $config_commands | |
18352 | ||
7083c021 | 18353 | Report bugs to the package provider." |
212380e3 | 18354 | |
631ef239 | 18355 | _ACEOF |
7083c021 | 18356 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6fb6bd15 | 18357 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
212380e3 | 18358 | ac_cs_version="\\ |
c52df125 | 18359 | charybdis config.status 3.6.0-dev |
2eff3833 | 18360 | configured by $0, generated by GNU Autoconf 2.69, |
6fb6bd15 | 18361 | with options \\"\$ac_cs_config\\" |
212380e3 | 18362 | |
2eff3833 | 18363 | Copyright (C) 2012 Free Software Foundation, Inc. |
212380e3 AC |
18364 | This config.status script is free software; the Free Software Foundation |
18365 | gives unlimited permission to copy, distribute and modify it." | |
631ef239 AC |
18366 | |
18367 | ac_pwd='$ac_pwd' | |
18368 | srcdir='$srcdir' | |
18369 | INSTALL='$INSTALL' | |
c52df125 AC |
18370 | MKDIR_P='$MKDIR_P' |
18371 | AWK='$AWK' | |
7083c021 | 18372 | test -n "\$AWK" || AWK=awk |
212380e3 AC |
18373 | _ACEOF |
18374 | ||
7083c021 AC |
18375 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18376 | # The default lists apply if the user does not specify any file. | |
212380e3 AC |
18377 | ac_need_defaults=: |
18378 | while test $# != 0 | |
18379 | do | |
18380 | case $1 in | |
b6d0720c | 18381 | --*=?*) |
631ef239 AC |
18382 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
18383 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
212380e3 AC |
18384 | ac_shift=: |
18385 | ;; | |
b6d0720c AC |
18386 | --*=) |
18387 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
18388 | ac_optarg= | |
18389 | ac_shift=: | |
18390 | ;; | |
631ef239 | 18391 | *) |
212380e3 AC |
18392 | ac_option=$1 |
18393 | ac_optarg=$2 | |
18394 | ac_shift=shift | |
18395 | ;; | |
212380e3 AC |
18396 | esac |
18397 | ||
18398 | case $ac_option in | |
18399 | # Handling of the options. | |
212380e3 AC |
18400 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18401 | ac_cs_recheck=: ;; | |
631ef239 | 18402 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
7083c021 | 18403 | $as_echo "$ac_cs_version"; exit ;; |
6fb6bd15 AC |
18404 | --config | --confi | --conf | --con | --co | --c ) |
18405 | $as_echo "$ac_cs_config"; exit ;; | |
631ef239 | 18406 | --debug | --debu | --deb | --de | --d | -d ) |
212380e3 AC |
18407 | debug=: ;; |
18408 | --file | --fil | --fi | --f ) | |
18409 | $ac_shift | |
7083c021 AC |
18410 | case $ac_optarg in |
18411 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b6d0720c | 18412 | '') as_fn_error $? "missing file argument" ;; |
7083c021 AC |
18413 | esac |
18414 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
212380e3 AC |
18415 | ac_need_defaults=false;; |
18416 | --header | --heade | --head | --hea ) | |
18417 | $ac_shift | |
7083c021 AC |
18418 | case $ac_optarg in |
18419 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
18420 | esac | |
18421 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
212380e3 | 18422 | ac_need_defaults=false;; |
631ef239 AC |
18423 | --he | --h) |
18424 | # Conflict between --help and --header | |
b6d0720c | 18425 | as_fn_error $? "ambiguous option: \`$1' |
7083c021 | 18426 | Try \`$0 --help' for more information.";; |
631ef239 | 18427 | --help | --hel | -h ) |
7083c021 | 18428 | $as_echo "$ac_cs_usage"; exit ;; |
212380e3 AC |
18429 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
18430 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
18431 | ac_cs_silent=: ;; | |
18432 | ||
18433 | # This is an error. | |
b6d0720c | 18434 | -*) as_fn_error $? "unrecognized option: \`$1' |
7083c021 | 18435 | Try \`$0 --help' for more information." ;; |
212380e3 | 18436 | |
7083c021 | 18437 | *) as_fn_append ac_config_targets " $1" |
631ef239 | 18438 | ac_need_defaults=false ;; |
212380e3 AC |
18439 | |
18440 | esac | |
18441 | shift | |
18442 | done | |
18443 | ||
18444 | ac_configure_extra_args= | |
18445 | ||
18446 | if $ac_cs_silent; then | |
18447 | exec 6>/dev/null | |
18448 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
18449 | fi | |
18450 | ||
18451 | _ACEOF | |
7083c021 | 18452 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
212380e3 | 18453 | if \$ac_cs_recheck; then |
2eff3833 | 18454 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
7083c021 AC |
18455 | shift |
18456 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
18457 | CONFIG_SHELL='$SHELL' | |
631ef239 | 18458 | export CONFIG_SHELL |
7083c021 | 18459 | exec "\$@" |
212380e3 AC |
18460 | fi |
18461 | ||
18462 | _ACEOF | |
7083c021 | 18463 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
18464 | exec 5>>config.log |
18465 | { | |
18466 | echo | |
18467 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
18468 | ## Running $as_me. ## | |
18469 | _ASBOX | |
7083c021 | 18470 | $as_echo "$ac_log" |
631ef239 | 18471 | } >&5 |
212380e3 | 18472 | |
631ef239 | 18473 | _ACEOF |
7083c021 | 18474 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
c52df125 AC |
18475 | # |
18476 | # INIT-COMMANDS | |
18477 | # | |
18478 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
18479 | ||
18480 | ||
18481 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
18482 | # if CDPATH is set. | |
18483 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
18484 | ||
18485 | sed_quote_subst='$sed_quote_subst' | |
18486 | double_quote_subst='$double_quote_subst' | |
18487 | delay_variable_subst='$delay_variable_subst' | |
18488 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
18489 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
18490 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
18491 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
18492 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
18493 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
18494 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
18495 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
18496 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
18497 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
18498 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
18499 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
18500 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
18501 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
18502 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
18503 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
18504 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
18505 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
18506 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
18507 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
18508 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
18509 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
18510 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
18511 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
18512 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
18513 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
18514 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
18515 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
18516 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
18517 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
18518 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
18519 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
18520 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
18521 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
18522 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
18523 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
18524 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
18525 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
18526 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
18527 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
18528 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
18529 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
18530 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
18531 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
18532 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
18533 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18534 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18535 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18536 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
18537 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
18538 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
18539 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
18540 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
18541 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
18542 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
18543 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
18544 | 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"`' | |
18545 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18546 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
18547 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
18548 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
18549 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
18550 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
18551 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
18552 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
18553 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
18554 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
18555 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
18556 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
18557 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
18558 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
18559 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
18560 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
18561 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
18562 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
18563 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18564 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
18565 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
18566 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18567 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18568 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
18569 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
18570 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
18571 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
18572 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18573 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
18574 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
18575 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
18576 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18577 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
18578 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
18579 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
18580 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
18581 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
18582 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
18583 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18584 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
18585 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
18586 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
18587 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
18588 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
18589 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
18590 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
18591 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
18592 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
18593 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
18594 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
18595 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
18596 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
18597 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
18598 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
18599 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
18600 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
18601 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
18602 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
18603 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
18604 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
18605 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18606 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
18607 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
18608 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
18609 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
18610 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
18611 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
18612 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
18613 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
18614 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
18615 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
18616 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
18617 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
18618 | ||
18619 | LTCC='$LTCC' | |
18620 | LTCFLAGS='$LTCFLAGS' | |
18621 | compiler='$compiler_DEFAULT' | |
18622 | ||
18623 | # A function that is used when there is no print builtin or printf. | |
18624 | func_fallback_echo () | |
18625 | { | |
18626 | eval 'cat <<_LTECHO_EOF | |
18627 | \$1 | |
18628 | _LTECHO_EOF' | |
18629 | } | |
18630 | ||
18631 | # Quote evaled strings. | |
18632 | for var in SHELL \ | |
18633 | ECHO \ | |
18634 | PATH_SEPARATOR \ | |
18635 | SED \ | |
18636 | GREP \ | |
18637 | EGREP \ | |
18638 | FGREP \ | |
18639 | LD \ | |
18640 | NM \ | |
18641 | LN_S \ | |
18642 | lt_SP2NL \ | |
18643 | lt_NL2SP \ | |
18644 | reload_flag \ | |
18645 | OBJDUMP \ | |
18646 | deplibs_check_method \ | |
18647 | file_magic_cmd \ | |
18648 | file_magic_glob \ | |
18649 | want_nocaseglob \ | |
18650 | DLLTOOL \ | |
18651 | sharedlib_from_linklib_cmd \ | |
18652 | AR \ | |
18653 | AR_FLAGS \ | |
18654 | archiver_list_spec \ | |
18655 | STRIP \ | |
18656 | RANLIB \ | |
18657 | CC \ | |
18658 | CFLAGS \ | |
18659 | compiler \ | |
18660 | lt_cv_sys_global_symbol_pipe \ | |
18661 | lt_cv_sys_global_symbol_to_cdecl \ | |
18662 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18663 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
18664 | nm_file_list_spec \ | |
18665 | lt_prog_compiler_no_builtin_flag \ | |
18666 | lt_prog_compiler_pic \ | |
18667 | lt_prog_compiler_wl \ | |
18668 | lt_prog_compiler_static \ | |
18669 | lt_cv_prog_compiler_c_o \ | |
18670 | need_locks \ | |
18671 | MANIFEST_TOOL \ | |
18672 | DSYMUTIL \ | |
18673 | NMEDIT \ | |
18674 | LIPO \ | |
18675 | OTOOL \ | |
18676 | OTOOL64 \ | |
18677 | shrext_cmds \ | |
18678 | export_dynamic_flag_spec \ | |
18679 | whole_archive_flag_spec \ | |
18680 | compiler_needs_object \ | |
18681 | with_gnu_ld \ | |
18682 | allow_undefined_flag \ | |
18683 | no_undefined_flag \ | |
18684 | hardcode_libdir_flag_spec \ | |
18685 | hardcode_libdir_separator \ | |
18686 | exclude_expsyms \ | |
18687 | include_expsyms \ | |
18688 | file_list_spec \ | |
18689 | variables_saved_for_relink \ | |
18690 | libname_spec \ | |
18691 | library_names_spec \ | |
18692 | soname_spec \ | |
18693 | install_override_mode \ | |
18694 | finish_eval \ | |
18695 | old_striplib \ | |
18696 | striplib; do | |
18697 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
18698 | *[\\\\\\\`\\"\\\$]*) | |
18699 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
18700 | ;; | |
18701 | *) | |
18702 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18703 | ;; | |
18704 | esac | |
18705 | done | |
18706 | ||
18707 | # Double-quote double-evaled strings. | |
18708 | for var in reload_cmds \ | |
18709 | old_postinstall_cmds \ | |
18710 | old_postuninstall_cmds \ | |
18711 | old_archive_cmds \ | |
18712 | extract_expsyms_cmds \ | |
18713 | old_archive_from_new_cmds \ | |
18714 | old_archive_from_expsyms_cmds \ | |
18715 | archive_cmds \ | |
18716 | archive_expsym_cmds \ | |
18717 | module_cmds \ | |
18718 | module_expsym_cmds \ | |
18719 | export_symbols_cmds \ | |
18720 | prelink_cmds \ | |
18721 | postlink_cmds \ | |
18722 | postinstall_cmds \ | |
18723 | postuninstall_cmds \ | |
18724 | finish_cmds \ | |
18725 | sys_lib_search_path_spec \ | |
18726 | sys_lib_dlsearch_path_spec; do | |
18727 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
18728 | *[\\\\\\\`\\"\\\$]*) | |
18729 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
18730 | ;; | |
18731 | *) | |
18732 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
18733 | ;; | |
18734 | esac | |
18735 | done | |
18736 | ||
18737 | ac_aux_dir='$ac_aux_dir' | |
18738 | xsi_shell='$xsi_shell' | |
18739 | lt_shell_append='$lt_shell_append' | |
18740 | ||
18741 | # See if we are running on zsh, and set the options which allow our | |
18742 | # commands through without removal of \ escapes INIT. | |
18743 | if test -n "\${ZSH_VERSION+set}" ; then | |
18744 | setopt NO_GLOB_SUBST | |
18745 | fi | |
18746 | ||
18747 | ||
18748 | PACKAGE='$PACKAGE' | |
18749 | VERSION='$VERSION' | |
18750 | TIMESTAMP='$TIMESTAMP' | |
18751 | RM='$RM' | |
18752 | ofile='$ofile' | |
18753 | ||
18754 | ||
18755 | ||
18756 | ||
631ef239 | 18757 | _ACEOF |
212380e3 | 18758 | |
7083c021 | 18759 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
18760 | |
18761 | # Handling of arguments. | |
212380e3 AC |
18762 | for ac_config_target in $ac_config_targets |
18763 | do | |
631ef239 AC |
18764 | case $ac_config_target in |
18765 | "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;; | |
c52df125 AC |
18766 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
18767 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
631ef239 | 18768 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
0d73e7db | 18769 | "authd/Makefile") CONFIG_FILES="$CONFIG_FILES authd/Makefile" ;; |
7083c021 | 18770 | "bandb/Makefile") CONFIG_FILES="$CONFIG_FILES bandb/Makefile" ;; |
53970d07 | 18771 | "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;; |
631ef239 | 18772 | "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;; |
46fded53 | 18773 | "ircd/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;; |
631ef239 AC |
18774 | "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; |
18775 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
2eff3833 | 18776 | "tools/genssl") CONFIG_FILES="$CONFIG_FILES tools/genssl" ;; |
631ef239 AC |
18777 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
18778 | "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; | |
2eff3833 | 18779 | "tools/genssl_chmod") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/genssl_chmod" ;; |
631ef239 | 18780 | |
b6d0720c | 18781 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
212380e3 AC |
18782 | esac |
18783 | done | |
18784 | ||
631ef239 | 18785 | |
212380e3 AC |
18786 | # If the user did not use the arguments to specify the items to instantiate, |
18787 | # then the envvar interface is used. Set only those that are not. | |
18788 | # We use the long form for the default assignment because of an extremely | |
18789 | # bizarre bug on SunOS 4.1.3. | |
18790 | if $ac_need_defaults; then | |
18791 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
18792 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
9f9b7042 | 18793 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
212380e3 AC |
18794 | fi |
18795 | ||
18796 | # Have a temporary directory for convenience. Make it in the build tree | |
631ef239 | 18797 | # simply because there is no reason against having it here, and in addition, |
212380e3 | 18798 | # creating and moving files from /tmp can sometimes cause problems. |
631ef239 AC |
18799 | # Hook for its removal unless debugging. |
18800 | # Note that there is a small window in which the directory will not be cleaned: | |
18801 | # after its creation but before its name has been assigned to `$tmp'. | |
212380e3 AC |
18802 | $debug || |
18803 | { | |
b6d0720c | 18804 | tmp= ac_tmp= |
631ef239 | 18805 | trap 'exit_status=$? |
b6d0720c AC |
18806 | : "${ac_tmp:=$tmp}" |
18807 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
631ef239 | 18808 | ' 0 |
7083c021 | 18809 | trap 'as_fn_exit 1' 1 2 13 15 |
212380e3 | 18810 | } |
212380e3 AC |
18811 | # Create a (secure) tmp directory for tmp files. |
18812 | ||
18813 | { | |
631ef239 | 18814 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
b6d0720c | 18815 | test -d "$tmp" |
212380e3 AC |
18816 | } || |
18817 | { | |
631ef239 AC |
18818 | tmp=./conf$$-$RANDOM |
18819 | (umask 077 && mkdir "$tmp") | |
b6d0720c AC |
18820 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
18821 | ac_tmp=$tmp | |
212380e3 | 18822 | |
7083c021 AC |
18823 | # Set up the scripts for CONFIG_FILES section. |
18824 | # No need to generate them if there are no CONFIG_FILES. | |
18825 | # This happens for instance with `./config.status config.h'. | |
631ef239 AC |
18826 | if test -n "$CONFIG_FILES"; then |
18827 | ||
631ef239 | 18828 | |
7083c021 AC |
18829 | ac_cr=`echo X | tr X '\015'` |
18830 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
18831 | # But we know of no other shell where ac_cr would be empty at this | |
18832 | # point, so we can use a bashism as a fallback. | |
18833 | if test "x$ac_cr" = x; then | |
18834 | eval ac_cr=\$\'\\r\' | |
18835 | fi | |
18836 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
18837 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
b6d0720c | 18838 | ac_cs_awk_cr='\\r' |
7083c021 AC |
18839 | else |
18840 | ac_cs_awk_cr=$ac_cr | |
18841 | fi | |
18842 | ||
b6d0720c | 18843 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
7083c021 | 18844 | _ACEOF |
631ef239 AC |
18845 | |
18846 | ||
7083c021 AC |
18847 | { |
18848 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
18849 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
18850 | echo "_ACEOF" | |
18851 | } >conf$$subs.sh || | |
b6d0720c AC |
18852 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
18853 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
631ef239 AC |
18854 | ac_delim='%!_!# ' |
18855 | for ac_last_try in false false false false false :; do | |
7083c021 | 18856 | . ./conf$$subs.sh || |
b6d0720c | 18857 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
7083c021 AC |
18858 | |
18859 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
18860 | if test $ac_delim_n = $ac_delim_num; then | |
631ef239 AC |
18861 | break |
18862 | elif $ac_last_try; then | |
b6d0720c | 18863 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
631ef239 AC |
18864 | else |
18865 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
212380e3 | 18866 | fi |
631ef239 | 18867 | done |
7083c021 AC |
18868 | rm -f conf$$subs.sh |
18869 | ||
18870 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b6d0720c | 18871 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
7083c021 AC |
18872 | _ACEOF |
18873 | sed -n ' | |
18874 | h | |
18875 | s/^/S["/; s/!.*/"]=/ | |
18876 | p | |
18877 | g | |
18878 | s/^[^!]*!// | |
18879 | :repl | |
18880 | t repl | |
18881 | s/'"$ac_delim"'$// | |
18882 | t delim | |
18883 | :nl | |
18884 | h | |
6fb6bd15 | 18885 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
18886 | t more1 |
18887 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
18888 | p | |
18889 | n | |
18890 | b repl | |
18891 | :more1 | |
18892 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18893 | p | |
18894 | g | |
18895 | s/.\{148\}// | |
18896 | t nl | |
18897 | :delim | |
18898 | h | |
6fb6bd15 | 18899 | s/\(.\{148\}\)..*/\1/ |
7083c021 AC |
18900 | t more2 |
18901 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
18902 | p | |
18903 | b | |
18904 | :more2 | |
18905 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
18906 | p | |
18907 | g | |
18908 | s/.\{148\}// | |
18909 | t delim | |
18910 | ' <conf$$subs.awk | sed ' | |
18911 | /^[^""]/{ | |
18912 | N | |
18913 | s/\n// | |
18914 | } | |
18915 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
18916 | rm -f conf$$subs.awk | |
18917 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
18918 | _ACAWK | |
b6d0720c | 18919 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
7083c021 AC |
18920 | for (key in S) S_is_set[key] = 1 |
18921 | FS = "\a" | |
212380e3 | 18922 | |
7083c021 AC |
18923 | } |
18924 | { | |
18925 | line = $ 0 | |
18926 | nfields = split(line, field, "@") | |
18927 | substed = 0 | |
18928 | len = length(field[1]) | |
18929 | for (i = 2; i < nfields; i++) { | |
18930 | key = field[i] | |
18931 | keylen = length(key) | |
18932 | if (S_is_set[key]) { | |
18933 | value = S[key] | |
18934 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
18935 | len += length(value) + length(field[++i]) | |
18936 | substed = 1 | |
18937 | } else | |
18938 | len += 1 + keylen | |
18939 | } | |
631ef239 | 18940 | |
7083c021 AC |
18941 | print line |
18942 | } | |
18943 | ||
18944 | _ACAWK | |
631ef239 | 18945 | _ACEOF |
7083c021 AC |
18946 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
18947 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
18948 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
18949 | else | |
18950 | cat | |
b6d0720c AC |
18951 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
18952 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
212380e3 | 18953 | _ACEOF |
631ef239 | 18954 | |
b6d0720c AC |
18955 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
18956 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
631ef239 AC |
18957 | # trailing colons and then remove the whole line if VPATH becomes empty |
18958 | # (actually we leave an empty line to preserve line numbers). | |
18959 | if test "x$srcdir" = x.; then | |
b6d0720c AC |
18960 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
18961 | h | |
18962 | s/// | |
18963 | s/^/:/ | |
18964 | s/[ ]*$/:/ | |
18965 | s/:\$(srcdir):/:/g | |
18966 | s/:\${srcdir}:/:/g | |
18967 | s/:@srcdir@:/:/g | |
18968 | s/^:*// | |
631ef239 | 18969 | s/:*$// |
b6d0720c AC |
18970 | x |
18971 | s/\(=[ ]*\).*/\1/ | |
18972 | G | |
18973 | s/\n// | |
631ef239 AC |
18974 | s/^[^=]*=[ ]*$// |
18975 | }' | |
18976 | fi | |
18977 | ||
7083c021 | 18978 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
18979 | fi # test -n "$CONFIG_FILES" |
18980 | ||
7083c021 AC |
18981 | # Set up the scripts for CONFIG_HEADERS section. |
18982 | # No need to generate them if there are no CONFIG_HEADERS. | |
18983 | # This happens for instance with `./config.status Makefile'. | |
18984 | if test -n "$CONFIG_HEADERS"; then | |
b6d0720c | 18985 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
7083c021 AC |
18986 | BEGIN { |
18987 | _ACEOF | |
18988 | ||
18989 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
18990 | # here-document in config.status, that substitutes the proper values into | |
18991 | # config.h.in to produce config.h. | |
18992 | ||
18993 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
18994 | # handling of long lines. | |
18995 | ac_delim='%!_!# ' | |
18996 | for ac_last_try in false false :; do | |
b6d0720c AC |
18997 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
18998 | if test -z "$ac_tt"; then | |
7083c021 AC |
18999 | break |
19000 | elif $ac_last_try; then | |
b6d0720c | 19001 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
7083c021 AC |
19002 | else |
19003 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
19004 | fi | |
19005 | done | |
19006 | ||
19007 | # For the awk script, D is an array of macro values keyed by name, | |
19008 | # likewise P contains macro parameters if any. Preserve backslash | |
19009 | # newline sequences. | |
19010 | ||
19011 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
19012 | sed -n ' | |
19013 | s/.\{148\}/&'"$ac_delim"'/g | |
19014 | t rset | |
19015 | :rset | |
19016 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
19017 | t def | |
19018 | d | |
19019 | :def | |
19020 | s/\\$// | |
19021 | t bsnl | |
19022 | s/["\\]/\\&/g | |
19023 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19024 | D["\1"]=" \3"/p | |
19025 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
19026 | d | |
19027 | :bsnl | |
19028 | s/["\\]/\\&/g | |
19029 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
19030 | D["\1"]=" \3\\\\\\n"\\/p | |
19031 | t cont | |
19032 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
19033 | t cont | |
19034 | d | |
19035 | :cont | |
19036 | n | |
19037 | s/.\{148\}/&'"$ac_delim"'/g | |
19038 | t clear | |
19039 | :clear | |
19040 | s/\\$// | |
19041 | t bsnlc | |
19042 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
19043 | d | |
19044 | :bsnlc | |
19045 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
19046 | b cont | |
19047 | ' <confdefs.h | sed ' | |
19048 | s/'"$ac_delim"'/"\\\ | |
19049 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
19050 | ||
19051 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
19052 | for (key in D) D_is_set[key] = 1 | |
19053 | FS = "\a" | |
19054 | } | |
19055 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
19056 | line = \$ 0 | |
19057 | split(line, arg, " ") | |
19058 | if (arg[1] == "#") { | |
19059 | defundef = arg[2] | |
19060 | mac1 = arg[3] | |
19061 | } else { | |
19062 | defundef = substr(arg[1], 2) | |
19063 | mac1 = arg[2] | |
19064 | } | |
19065 | split(mac1, mac2, "(") #) | |
19066 | macro = mac2[1] | |
19067 | prefix = substr(line, 1, index(line, defundef) - 1) | |
19068 | if (D_is_set[macro]) { | |
19069 | # Preserve the white space surrounding the "#". | |
19070 | print prefix "define", macro P[macro] D[macro] | |
19071 | next | |
19072 | } else { | |
19073 | # Replace #undef with comments. This is necessary, for example, | |
19074 | # in the case of _POSIX_SOURCE, which is predefined and required | |
19075 | # on some systems where configure will not decide to define it. | |
19076 | if (defundef == "undef") { | |
19077 | print "/*", prefix defundef, macro, "*/" | |
19078 | next | |
19079 | } | |
19080 | } | |
19081 | } | |
19082 | { print } | |
19083 | _ACAWK | |
19084 | _ACEOF | |
19085 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
b6d0720c | 19086 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
7083c021 AC |
19087 | fi # test -n "$CONFIG_HEADERS" |
19088 | ||
631ef239 | 19089 | |
9f9b7042 | 19090 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
7083c021 AC |
19091 | shift |
19092 | for ac_tag | |
631ef239 AC |
19093 | do |
19094 | case $ac_tag in | |
19095 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
19096 | esac | |
19097 | case $ac_mode$ac_tag in | |
19098 | :[FHL]*:*);; | |
b6d0720c | 19099 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
631ef239 AC |
19100 | :[FH]-) ac_tag=-:-;; |
19101 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
212380e3 | 19102 | esac |
631ef239 AC |
19103 | ac_save_IFS=$IFS |
19104 | IFS=: | |
19105 | set x $ac_tag | |
19106 | IFS=$ac_save_IFS | |
19107 | shift | |
19108 | ac_file=$1 | |
19109 | shift | |
212380e3 | 19110 | |
631ef239 AC |
19111 | case $ac_mode in |
19112 | :L) ac_source=$1;; | |
19113 | :[FH]) | |
19114 | ac_file_inputs= | |
19115 | for ac_f | |
19116 | do | |
19117 | case $ac_f in | |
b6d0720c | 19118 | -) ac_f="$ac_tmp/stdin";; |
631ef239 AC |
19119 | *) # Look for the file first in the build tree, then in the source tree |
19120 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
19121 | # because $ac_f cannot contain `:'. | |
19122 | test -f "$ac_f" || | |
19123 | case $ac_f in | |
19124 | [\\/$]*) false;; | |
19125 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
19126 | esac || | |
b6d0720c | 19127 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
631ef239 | 19128 | esac |
7083c021 AC |
19129 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
19130 | as_fn_append ac_file_inputs " '$ac_f'" | |
631ef239 AC |
19131 | done |
19132 | ||
19133 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
19134 | # use $as_me), people would be surprised to read: | |
19135 | # /* config.h. Generated by config.status. */ | |
7083c021 AC |
19136 | configure_input='Generated from '` |
19137 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
19138 | `' by configure.' | |
631ef239 AC |
19139 | if test x"$ac_file" != x-; then |
19140 | configure_input="$ac_file. $configure_input" | |
7083c021 AC |
19141 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
19142 | $as_echo "$as_me: creating $ac_file" >&6;} | |
631ef239 | 19143 | fi |
7083c021 AC |
19144 | # Neutralize special characters interpreted by sed in replacement strings. |
19145 | case $configure_input in #( | |
19146 | *\&* | *\|* | *\\* ) | |
19147 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
19148 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
19149 | *) ac_sed_conf_input=$configure_input;; | |
19150 | esac | |
631ef239 AC |
19151 | |
19152 | case $ac_tag in | |
b6d0720c AC |
19153 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
19154 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
631ef239 AC |
19155 | esac |
19156 | ;; | |
19157 | esac | |
19158 | ||
19159 | ac_dir=`$as_dirname -- "$ac_file" || | |
212380e3 AC |
19160 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
19161 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
19162 | X"$ac_file" : 'X\(//\)$' \| \ | |
631ef239 | 19163 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
7083c021 | 19164 | $as_echo X"$ac_file" | |
631ef239 AC |
19165 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
19166 | s//\1/ | |
19167 | q | |
19168 | } | |
19169 | /^X\(\/\/\)[^/].*/{ | |
19170 | s//\1/ | |
19171 | q | |
19172 | } | |
19173 | /^X\(\/\/\)$/{ | |
19174 | s//\1/ | |
19175 | q | |
19176 | } | |
19177 | /^X\(\/\).*/{ | |
19178 | s//\1/ | |
19179 | q | |
19180 | } | |
19181 | s/.*/./; q'` | |
7083c021 | 19182 | as_dir="$ac_dir"; as_fn_mkdir_p |
212380e3 AC |
19183 | ac_builddir=. |
19184 | ||
631ef239 AC |
19185 | case "$ac_dir" in |
19186 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19187 | *) | |
7083c021 | 19188 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
631ef239 | 19189 | # A ".." for each directory in $ac_dir_suffix. |
7083c021 | 19190 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
631ef239 AC |
19191 | case $ac_top_builddir_sub in |
19192 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
19193 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
19194 | esac ;; | |
19195 | esac | |
19196 | ac_abs_top_builddir=$ac_pwd | |
19197 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
19198 | # for backward compatibility: | |
19199 | ac_top_builddir=$ac_top_build_prefix | |
212380e3 AC |
19200 | |
19201 | case $srcdir in | |
631ef239 | 19202 | .) # We are building in place. |
212380e3 | 19203 | ac_srcdir=. |
631ef239 AC |
19204 | ac_top_srcdir=$ac_top_builddir_sub |
19205 | ac_abs_top_srcdir=$ac_pwd ;; | |
19206 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
212380e3 | 19207 | ac_srcdir=$srcdir$ac_dir_suffix; |
631ef239 AC |
19208 | ac_top_srcdir=$srcdir |
19209 | ac_abs_top_srcdir=$srcdir ;; | |
19210 | *) # Relative name. | |
19211 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
19212 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
19213 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
212380e3 | 19214 | esac |
631ef239 | 19215 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
212380e3 | 19216 | |
212380e3 | 19217 | |
631ef239 AC |
19218 | case $ac_mode in |
19219 | :F) | |
19220 | # | |
19221 | # CONFIG_FILE | |
19222 | # | |
212380e3 AC |
19223 | |
19224 | case $INSTALL in | |
19225 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
631ef239 | 19226 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
212380e3 | 19227 | esac |
c52df125 AC |
19228 | ac_MKDIR_P=$MKDIR_P |
19229 | case $MKDIR_P in | |
19230 | [\\/$]* | ?:[\\/]* ) ;; | |
19231 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
19232 | esac | |
631ef239 | 19233 | _ACEOF |
212380e3 | 19234 | |
7083c021 | 19235 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
631ef239 AC |
19236 | # If the template does not know about datarootdir, expand it. |
19237 | # FIXME: This hack should be removed a few years after 2.60. | |
19238 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
7083c021 AC |
19239 | ac_sed_dataroot=' |
19240 | /datarootdir/ { | |
631ef239 AC |
19241 | p |
19242 | q | |
19243 | } | |
19244 | /@datadir@/p | |
19245 | /@docdir@/p | |
19246 | /@infodir@/p | |
19247 | /@localedir@/p | |
7083c021 AC |
19248 | /@mandir@/p' |
19249 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
631ef239 AC |
19250 | *datarootdir*) ac_datarootdir_seen=yes;; |
19251 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
7083c021 AC |
19252 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
19253 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
631ef239 | 19254 | _ACEOF |
7083c021 | 19255 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
631ef239 AC |
19256 | ac_datarootdir_hack=' |
19257 | s&@datadir@&$datadir&g | |
19258 | s&@docdir@&$docdir&g | |
19259 | s&@infodir@&$infodir&g | |
19260 | s&@localedir@&$localedir&g | |
19261 | s&@mandir@&$mandir&g | |
7083c021 | 19262 | s&\\\${datarootdir}&$datarootdir&g' ;; |
631ef239 | 19263 | esac |
212380e3 | 19264 | _ACEOF |
631ef239 AC |
19265 | |
19266 | # Neutralize VPATH when `$srcdir' = `.'. | |
19267 | # Shell code in configure.ac might set extrasub. | |
19268 | # FIXME: do we really want to maintain this feature? | |
7083c021 AC |
19269 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
19270 | ac_sed_extra="$ac_vpsub | |
212380e3 AC |
19271 | $extrasub |
19272 | _ACEOF | |
7083c021 | 19273 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
212380e3 AC |
19274 | :t |
19275 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7083c021 | 19276 | s|@configure_input@|$ac_sed_conf_input|;t t |
631ef239 | 19277 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
7083c021 | 19278 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
631ef239 AC |
19279 | s&@srcdir@&$ac_srcdir&;t t |
19280 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
19281 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
19282 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
19283 | s&@builddir@&$ac_builddir&;t t | |
19284 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
19285 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
19286 | s&@INSTALL@&$ac_INSTALL&;t t | |
c52df125 | 19287 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
631ef239 | 19288 | $ac_datarootdir_hack |
7083c021 | 19289 | " |
b6d0720c AC |
19290 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
19291 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
631ef239 AC |
19292 | |
19293 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
b6d0720c AC |
19294 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
19295 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
19296 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
7083c021 | 19297 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 19298 | which seems to be undefined. Please make sure it is defined" >&5 |
7083c021 | 19299 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b6d0720c | 19300 | which seems to be undefined. Please make sure it is defined" >&2;} |
631ef239 | 19301 | |
b6d0720c | 19302 | rm -f "$ac_tmp/stdin" |
212380e3 | 19303 | case $ac_file in |
b6d0720c AC |
19304 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
19305 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
7083c021 | 19306 | esac \ |
b6d0720c | 19307 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
631ef239 AC |
19308 | ;; |
19309 | :H) | |
19310 | # | |
19311 | # CONFIG_HEADER | |
19312 | # | |
212380e3 | 19313 | if test x"$ac_file" != x-; then |
7083c021 AC |
19314 | { |
19315 | $as_echo "/* $configure_input */" \ | |
b6d0720c AC |
19316 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
19317 | } >"$ac_tmp/config.h" \ | |
19318 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
19319 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
7083c021 AC |
19320 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
19321 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
212380e3 | 19322 | else |
7083c021 | 19323 | rm -f "$ac_file" |
b6d0720c AC |
19324 | mv "$ac_tmp/config.h" "$ac_file" \ |
19325 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
212380e3 AC |
19326 | fi |
19327 | else | |
7083c021 | 19328 | $as_echo "/* $configure_input */" \ |
b6d0720c AC |
19329 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
19330 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
212380e3 | 19331 | fi |
c52df125 AC |
19332 | # Compute "$ac_file"'s index in $config_headers. |
19333 | _am_arg="$ac_file" | |
19334 | _am_stamp_count=1 | |
19335 | for _am_header in $config_headers :; do | |
19336 | case $_am_header in | |
19337 | $_am_arg | $_am_arg:* ) | |
19338 | break ;; | |
19339 | * ) | |
19340 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
19341 | esac | |
19342 | done | |
19343 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
19344 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19345 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
19346 | X"$_am_arg" : 'X\(//\)$' \| \ | |
19347 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
19348 | $as_echo X"$_am_arg" | | |
19349 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19350 | s//\1/ | |
19351 | q | |
19352 | } | |
19353 | /^X\(\/\/\)[^/].*/{ | |
19354 | s//\1/ | |
19355 | q | |
19356 | } | |
19357 | /^X\(\/\/\)$/{ | |
19358 | s//\1/ | |
19359 | q | |
19360 | } | |
19361 | /^X\(\/\).*/{ | |
19362 | s//\1/ | |
19363 | q | |
19364 | } | |
19365 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
631ef239 AC |
19366 | ;; |
19367 | ||
9f9b7042 NPB |
19368 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
19369 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
19370 | ;; | |
631ef239 AC |
19371 | esac |
19372 | ||
9f9b7042 NPB |
19373 | |
19374 | case $ac_file$ac_mode in | |
c52df125 AC |
19375 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
19376 | # Older Autoconf quotes --file arguments for eval, but not when files | |
19377 | # are listed without --file. Let's play safe and only enable the eval | |
19378 | # if we detect the quoting. | |
19379 | case $CONFIG_FILES in | |
19380 | *\'*) eval set x "$CONFIG_FILES" ;; | |
19381 | *) set x $CONFIG_FILES ;; | |
19382 | esac | |
19383 | shift | |
19384 | for mf | |
19385 | do | |
19386 | # Strip MF so we end up with the name of the file. | |
19387 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
19388 | # Check whether this is an Automake generated Makefile or not. | |
19389 | # We used to match only the files named 'Makefile.in', but | |
19390 | # some people rename them; so instead we look at the file content. | |
19391 | # Grep'ing the first line is not enough: some people post-process | |
19392 | # each Makefile.in and add a new line on top of each file to say so. | |
19393 | # Grep'ing the whole file is not good either: AIX grep has a line | |
19394 | # limit of 2048, but all sed's we know have understand at least 4000. | |
19395 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
19396 | dirpart=`$as_dirname -- "$mf" || | |
19397 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19398 | X"$mf" : 'X\(//\)[^/]' \| \ | |
19399 | X"$mf" : 'X\(//\)$' \| \ | |
19400 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
19401 | $as_echo X"$mf" | | |
19402 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19403 | s//\1/ | |
19404 | q | |
19405 | } | |
19406 | /^X\(\/\/\)[^/].*/{ | |
19407 | s//\1/ | |
19408 | q | |
19409 | } | |
19410 | /^X\(\/\/\)$/{ | |
19411 | s//\1/ | |
19412 | q | |
19413 | } | |
19414 | /^X\(\/\).*/{ | |
19415 | s//\1/ | |
19416 | q | |
19417 | } | |
19418 | s/.*/./; q'` | |
19419 | else | |
19420 | continue | |
19421 | fi | |
19422 | # Extract the definition of DEPDIR, am__include, and am__quote | |
19423 | # from the Makefile without running 'make'. | |
19424 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
19425 | test -z "$DEPDIR" && continue | |
19426 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
19427 | test -z "$am__include" && continue | |
19428 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
19429 | # Find all dependency output files, they are included files with | |
19430 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
19431 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
19432 | # expansion. | |
19433 | for file in `sed -n " | |
19434 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
19435 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
19436 | # Make sure the directory exists. | |
19437 | test -f "$dirpart/$file" && continue | |
19438 | fdir=`$as_dirname -- "$file" || | |
19439 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
19440 | X"$file" : 'X\(//\)[^/]' \| \ | |
19441 | X"$file" : 'X\(//\)$' \| \ | |
19442 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
19443 | $as_echo X"$file" | | |
19444 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
19445 | s//\1/ | |
19446 | q | |
19447 | } | |
19448 | /^X\(\/\/\)[^/].*/{ | |
19449 | s//\1/ | |
19450 | q | |
19451 | } | |
19452 | /^X\(\/\/\)$/{ | |
19453 | s//\1/ | |
19454 | q | |
19455 | } | |
19456 | /^X\(\/\).*/{ | |
19457 | s//\1/ | |
19458 | q | |
19459 | } | |
19460 | s/.*/./; q'` | |
19461 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
19462 | # echo "creating $dirpart/$file" | |
19463 | echo '# dummy' > "$dirpart/$file" | |
19464 | done | |
19465 | done | |
19466 | } | |
19467 | ;; | |
19468 | "libtool":C) | |
19469 | ||
19470 | # See if we are running on zsh, and set the options which allow our | |
19471 | # commands through without removal of \ escapes. | |
19472 | if test -n "${ZSH_VERSION+set}" ; then | |
19473 | setopt NO_GLOB_SUBST | |
19474 | fi | |
19475 | ||
19476 | cfgfile="${ofile}T" | |
19477 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
19478 | $RM "$cfgfile" | |
19479 | ||
19480 | cat <<_LT_EOF >> "$cfgfile" | |
19481 | #! $SHELL | |
19482 | ||
19483 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
19484 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
19485 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
19486 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
19487 | # | |
19488 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
19489 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
19490 | # Foundation, Inc. | |
19491 | # Written by Gordon Matzigkeit, 1996 | |
19492 | # | |
19493 | # This file is part of GNU Libtool. | |
19494 | # | |
19495 | # GNU Libtool is free software; you can redistribute it and/or | |
19496 | # modify it under the terms of the GNU General Public License as | |
19497 | # published by the Free Software Foundation; either version 2 of | |
19498 | # the License, or (at your option) any later version. | |
19499 | # | |
19500 | # As a special exception to the GNU General Public License, | |
19501 | # if you distribute this file as part of a program or library that | |
19502 | # is built using GNU Libtool, you may include this file under the | |
19503 | # same distribution terms that you use for the rest of that program. | |
19504 | # | |
19505 | # GNU Libtool is distributed in the hope that it will be useful, | |
19506 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19507 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19508 | # GNU General Public License for more details. | |
19509 | # | |
19510 | # You should have received a copy of the GNU General Public License | |
19511 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
19512 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
19513 | # obtained by writing to the Free Software Foundation, Inc., | |
19514 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
19515 | ||
19516 | ||
19517 | # The names of the tagged configurations supported by this script. | |
19518 | available_tags="" | |
19519 | ||
19520 | # ### BEGIN LIBTOOL CONFIG | |
19521 | ||
19522 | # Which release of libtool.m4 was used? | |
19523 | macro_version=$macro_version | |
19524 | macro_revision=$macro_revision | |
19525 | ||
19526 | # Whether or not to build static libraries. | |
19527 | build_old_libs=$enable_static | |
19528 | ||
19529 | # Whether or not to build shared libraries. | |
19530 | build_libtool_libs=$enable_shared | |
19531 | ||
19532 | # What type of objects to build. | |
19533 | pic_mode=$pic_mode | |
19534 | ||
19535 | # Whether or not to optimize for fast installation. | |
19536 | fast_install=$enable_fast_install | |
19537 | ||
19538 | # Shell to use when invoking shell scripts. | |
19539 | SHELL=$lt_SHELL | |
19540 | ||
19541 | # An echo program that protects backslashes. | |
19542 | ECHO=$lt_ECHO | |
19543 | ||
19544 | # The PATH separator for the build system. | |
19545 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
19546 | ||
19547 | # The host system. | |
19548 | host_alias=$host_alias | |
19549 | host=$host | |
19550 | host_os=$host_os | |
19551 | ||
19552 | # The build system. | |
19553 | build_alias=$build_alias | |
19554 | build=$build | |
19555 | build_os=$build_os | |
19556 | ||
19557 | # A sed program that does not truncate output. | |
19558 | SED=$lt_SED | |
19559 | ||
19560 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
19561 | Xsed="\$SED -e 1s/^X//" | |
19562 | ||
19563 | # A grep program that handles long lines. | |
19564 | GREP=$lt_GREP | |
19565 | ||
19566 | # An ERE matcher. | |
19567 | EGREP=$lt_EGREP | |
19568 | ||
19569 | # A literal string matcher. | |
19570 | FGREP=$lt_FGREP | |
19571 | ||
19572 | # A BSD- or MS-compatible name lister. | |
19573 | NM=$lt_NM | |
19574 | ||
19575 | # Whether we need soft or hard links. | |
19576 | LN_S=$lt_LN_S | |
19577 | ||
19578 | # What is the maximum length of a command? | |
19579 | max_cmd_len=$max_cmd_len | |
19580 | ||
19581 | # Object file suffix (normally "o"). | |
19582 | objext=$ac_objext | |
19583 | ||
19584 | # Executable file suffix (normally ""). | |
19585 | exeext=$exeext | |
19586 | ||
19587 | # whether the shell understands "unset". | |
19588 | lt_unset=$lt_unset | |
19589 | ||
19590 | # turn spaces into newlines. | |
19591 | SP2NL=$lt_lt_SP2NL | |
19592 | ||
19593 | # turn newlines into spaces. | |
19594 | NL2SP=$lt_lt_NL2SP | |
19595 | ||
19596 | # convert \$build file names to \$host format. | |
19597 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
19598 | ||
19599 | # convert \$build files to toolchain format. | |
19600 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
19601 | ||
19602 | # An object symbol dumper. | |
19603 | OBJDUMP=$lt_OBJDUMP | |
19604 | ||
19605 | # Method to check whether dependent libraries are shared objects. | |
19606 | deplibs_check_method=$lt_deplibs_check_method | |
19607 | ||
19608 | # Command to use when deplibs_check_method = "file_magic". | |
19609 | file_magic_cmd=$lt_file_magic_cmd | |
19610 | ||
19611 | # How to find potential files when deplibs_check_method = "file_magic". | |
19612 | file_magic_glob=$lt_file_magic_glob | |
19613 | ||
19614 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
19615 | want_nocaseglob=$lt_want_nocaseglob | |
19616 | ||
19617 | # DLL creation program. | |
19618 | DLLTOOL=$lt_DLLTOOL | |
19619 | ||
19620 | # Command to associate shared and link libraries. | |
19621 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
19622 | ||
19623 | # The archiver. | |
19624 | AR=$lt_AR | |
19625 | ||
19626 | # Flags to create an archive. | |
19627 | AR_FLAGS=$lt_AR_FLAGS | |
19628 | ||
19629 | # How to feed a file listing to the archiver. | |
19630 | archiver_list_spec=$lt_archiver_list_spec | |
19631 | ||
19632 | # A symbol stripping program. | |
19633 | STRIP=$lt_STRIP | |
19634 | ||
19635 | # Commands used to install an old-style archive. | |
19636 | RANLIB=$lt_RANLIB | |
19637 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
19638 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
19639 | ||
19640 | # Whether to use a lock for old archive extraction. | |
19641 | lock_old_archive_extraction=$lock_old_archive_extraction | |
19642 | ||
19643 | # A C compiler. | |
19644 | LTCC=$lt_CC | |
19645 | ||
19646 | # LTCC compiler flags. | |
19647 | LTCFLAGS=$lt_CFLAGS | |
19648 | ||
19649 | # Take the output of nm and produce a listing of raw symbols and C names. | |
19650 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
19651 | ||
19652 | # Transform the output of nm in a proper C declaration. | |
19653 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
19654 | ||
19655 | # Transform the output of nm in a C name address pair. | |
19656 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
19657 | ||
19658 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
19659 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
19660 | ||
19661 | # Specify filename containing input files for \$NM. | |
19662 | nm_file_list_spec=$lt_nm_file_list_spec | |
19663 | ||
19664 | # The root where to search for dependent libraries,and in which our libraries should be installed. | |
19665 | lt_sysroot=$lt_sysroot | |
19666 | ||
19667 | # The name of the directory that contains temporary libtool files. | |
19668 | objdir=$objdir | |
19669 | ||
19670 | # Used to examine libraries when file_magic_cmd begins with "file". | |
19671 | MAGIC_CMD=$MAGIC_CMD | |
19672 | ||
19673 | # Must we lock files when doing compilation? | |
19674 | need_locks=$lt_need_locks | |
19675 | ||
19676 | # Manifest tool. | |
19677 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
19678 | ||
19679 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
19680 | DSYMUTIL=$lt_DSYMUTIL | |
19681 | ||
19682 | # Tool to change global to local symbols on Mac OS X. | |
19683 | NMEDIT=$lt_NMEDIT | |
19684 | ||
19685 | # Tool to manipulate fat objects and archives on Mac OS X. | |
19686 | LIPO=$lt_LIPO | |
19687 | ||
19688 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
19689 | OTOOL=$lt_OTOOL | |
19690 | ||
19691 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
19692 | OTOOL64=$lt_OTOOL64 | |
19693 | ||
19694 | # Old archive suffix (normally "a"). | |
19695 | libext=$libext | |
19696 | ||
19697 | # Shared library suffix (normally ".so"). | |
19698 | shrext_cmds=$lt_shrext_cmds | |
19699 | ||
19700 | # The commands to extract the exported symbol list from a shared archive. | |
19701 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
19702 | ||
19703 | # Variables whose values should be saved in libtool wrapper scripts and | |
19704 | # restored at link time. | |
19705 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
19706 | ||
19707 | # Do we need the "lib" prefix for modules? | |
19708 | need_lib_prefix=$need_lib_prefix | |
19709 | ||
19710 | # Do we need a version for libraries? | |
19711 | need_version=$need_version | |
19712 | ||
19713 | # Library versioning type. | |
19714 | version_type=$version_type | |
19715 | ||
19716 | # Shared library runtime path variable. | |
19717 | runpath_var=$runpath_var | |
19718 | ||
19719 | # Shared library path variable. | |
19720 | shlibpath_var=$shlibpath_var | |
19721 | ||
19722 | # Is shlibpath searched before the hard-coded library search path? | |
19723 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
19724 | ||
19725 | # Format of library name prefix. | |
19726 | libname_spec=$lt_libname_spec | |
19727 | ||
19728 | # List of archive names. First name is the real one, the rest are links. | |
19729 | # The last name is the one that the linker finds with -lNAME | |
19730 | library_names_spec=$lt_library_names_spec | |
19731 | ||
19732 | # The coded name of the library, if different from the real name. | |
19733 | soname_spec=$lt_soname_spec | |
19734 | ||
19735 | # Permission mode override for installation of shared libraries. | |
19736 | install_override_mode=$lt_install_override_mode | |
19737 | ||
19738 | # Command to use after installation of a shared archive. | |
19739 | postinstall_cmds=$lt_postinstall_cmds | |
19740 | ||
19741 | # Command to use after uninstallation of a shared archive. | |
19742 | postuninstall_cmds=$lt_postuninstall_cmds | |
19743 | ||
19744 | # Commands used to finish a libtool library installation in a directory. | |
19745 | finish_cmds=$lt_finish_cmds | |
19746 | ||
19747 | # As "finish_cmds", except a single script fragment to be evaled but | |
19748 | # not shown. | |
19749 | finish_eval=$lt_finish_eval | |
19750 | ||
19751 | # Whether we should hardcode library paths into libraries. | |
19752 | hardcode_into_libs=$hardcode_into_libs | |
19753 | ||
19754 | # Compile-time system search path for libraries. | |
19755 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
19756 | ||
19757 | # Run-time system search path for libraries. | |
19758 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
19759 | ||
19760 | # Whether dlopen is supported. | |
19761 | dlopen_support=$enable_dlopen | |
19762 | ||
19763 | # Whether dlopen of programs is supported. | |
19764 | dlopen_self=$enable_dlopen_self | |
19765 | ||
19766 | # Whether dlopen of statically linked programs is supported. | |
19767 | dlopen_self_static=$enable_dlopen_self_static | |
19768 | ||
19769 | # Commands to strip libraries. | |
19770 | old_striplib=$lt_old_striplib | |
19771 | striplib=$lt_striplib | |
19772 | ||
19773 | ||
19774 | # The linker used to build libraries. | |
19775 | LD=$lt_LD | |
19776 | ||
19777 | # How to create reloadable object files. | |
19778 | reload_flag=$lt_reload_flag | |
19779 | reload_cmds=$lt_reload_cmds | |
19780 | ||
19781 | # Commands used to build an old-style archive. | |
19782 | old_archive_cmds=$lt_old_archive_cmds | |
19783 | ||
19784 | # A language specific compiler. | |
19785 | CC=$lt_compiler | |
19786 | ||
19787 | # Is the compiler the GNU compiler? | |
19788 | with_gcc=$GCC | |
19789 | ||
19790 | # Compiler flag to turn off builtin functions. | |
19791 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
19792 | ||
19793 | # Additional compiler flags for building library objects. | |
19794 | pic_flag=$lt_lt_prog_compiler_pic | |
19795 | ||
19796 | # How to pass a linker flag through the compiler. | |
19797 | wl=$lt_lt_prog_compiler_wl | |
19798 | ||
19799 | # Compiler flag to prevent dynamic linking. | |
19800 | link_static_flag=$lt_lt_prog_compiler_static | |
19801 | ||
19802 | # Does compiler simultaneously support -c and -o options? | |
19803 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
19804 | ||
19805 | # Whether or not to add -lc for building shared libraries. | |
19806 | build_libtool_need_lc=$archive_cmds_need_lc | |
19807 | ||
19808 | # Whether or not to disallow shared libs when runtime libs are static. | |
19809 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
19810 | ||
19811 | # Compiler flag to allow reflexive dlopens. | |
19812 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
19813 | ||
19814 | # Compiler flag to generate shared objects directly from archives. | |
19815 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
19816 | ||
19817 | # Whether the compiler copes with passing no objects directly. | |
19818 | compiler_needs_object=$lt_compiler_needs_object | |
19819 | ||
19820 | # Create an old-style archive from a shared archive. | |
19821 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
19822 | ||
19823 | # Create a temporary old-style archive to link instead of a shared archive. | |
19824 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
19825 | ||
19826 | # Commands used to build a shared archive. | |
19827 | archive_cmds=$lt_archive_cmds | |
19828 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
19829 | ||
19830 | # Commands used to build a loadable module if different from building | |
19831 | # a shared archive. | |
19832 | module_cmds=$lt_module_cmds | |
19833 | module_expsym_cmds=$lt_module_expsym_cmds | |
19834 | ||
19835 | # Whether we are building with GNU ld or not. | |
19836 | with_gnu_ld=$lt_with_gnu_ld | |
19837 | ||
19838 | # Flag that allows shared libraries with undefined symbols to be built. | |
19839 | allow_undefined_flag=$lt_allow_undefined_flag | |
19840 | ||
19841 | # Flag that enforces no undefined symbols. | |
19842 | no_undefined_flag=$lt_no_undefined_flag | |
19843 | ||
19844 | # Flag to hardcode \$libdir into a binary during linking. | |
19845 | # This must work even if \$libdir does not exist | |
19846 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
19847 | ||
19848 | # Whether we need a single "-rpath" flag with a separated argument. | |
19849 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
19850 | ||
19851 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19852 | # DIR into the resulting binary. | |
19853 | hardcode_direct=$hardcode_direct | |
19854 | ||
19855 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
19856 | # DIR into the resulting binary and the resulting library dependency is | |
19857 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
19858 | # library is relocated. | |
19859 | hardcode_direct_absolute=$hardcode_direct_absolute | |
19860 | ||
19861 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
19862 | # into the resulting binary. | |
19863 | hardcode_minus_L=$hardcode_minus_L | |
19864 | ||
19865 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
19866 | # into the resulting binary. | |
19867 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
19868 | ||
19869 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
19870 | # into the library and all subsequent libraries and executables linked | |
19871 | # against it. | |
19872 | hardcode_automatic=$hardcode_automatic | |
19873 | ||
19874 | # Set to yes if linker adds runtime paths of dependent libraries | |
19875 | # to runtime path list. | |
19876 | inherit_rpath=$inherit_rpath | |
19877 | ||
19878 | # Whether libtool must link a program against all its dependency libraries. | |
19879 | link_all_deplibs=$link_all_deplibs | |
19880 | ||
19881 | # Set to "yes" if exported symbols are required. | |
19882 | always_export_symbols=$always_export_symbols | |
19883 | ||
19884 | # The commands to list exported symbols. | |
19885 | export_symbols_cmds=$lt_export_symbols_cmds | |
19886 | ||
19887 | # Symbols that should not be listed in the preloaded symbols. | |
19888 | exclude_expsyms=$lt_exclude_expsyms | |
19889 | ||
19890 | # Symbols that must always be exported. | |
19891 | include_expsyms=$lt_include_expsyms | |
19892 | ||
19893 | # Commands necessary for linking programs (against libraries) with templates. | |
19894 | prelink_cmds=$lt_prelink_cmds | |
19895 | ||
19896 | # Commands necessary for finishing linking programs. | |
19897 | postlink_cmds=$lt_postlink_cmds | |
19898 | ||
19899 | # Specify filename containing input files. | |
19900 | file_list_spec=$lt_file_list_spec | |
19901 | ||
19902 | # How to hardcode a shared library path into an executable. | |
19903 | hardcode_action=$hardcode_action | |
19904 | ||
19905 | # ### END LIBTOOL CONFIG | |
19906 | ||
19907 | _LT_EOF | |
19908 | ||
19909 | case $host_os in | |
19910 | aix3*) | |
19911 | cat <<\_LT_EOF >> "$cfgfile" | |
19912 | # AIX sometimes has problems with the GCC collect2 program. For some | |
19913 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
19914 | # vanish in a puff of smoke. | |
19915 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
19916 | COLLECT_NAMES= | |
19917 | export COLLECT_NAMES | |
19918 | fi | |
19919 | _LT_EOF | |
19920 | ;; | |
19921 | esac | |
19922 | ||
19923 | ||
19924 | ltmain="$ac_aux_dir/ltmain.sh" | |
19925 | ||
19926 | ||
19927 | # We use sed instead of cat because bash on DJGPP gets confused if | |
19928 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
19929 | # text mode, it properly converts lines to CR/LF. This bash problem | |
19930 | # is reportedly fixed, but why not run on old versions too? | |
19931 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
19932 | || (rm -f "$cfgfile"; exit 1) | |
19933 | ||
19934 | if test x"$xsi_shell" = xyes; then | |
19935 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
19936 | func_dirname ()\ | |
19937 | {\ | |
19938 | \ case ${1} in\ | |
19939 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
19940 | \ * ) func_dirname_result="${3}" ;;\ | |
19941 | \ esac\ | |
19942 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
19943 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
19944 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
19945 | test 0 -eq $? || _lt_function_replace_fail=: | |
19946 | ||
19947 | ||
19948 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
19949 | func_basename ()\ | |
19950 | {\ | |
19951 | \ func_basename_result="${1##*/}"\ | |
19952 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
19953 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
19954 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
19955 | test 0 -eq $? || _lt_function_replace_fail=: | |
19956 | ||
19957 | ||
19958 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
19959 | func_dirname_and_basename ()\ | |
19960 | {\ | |
19961 | \ case ${1} in\ | |
19962 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
19963 | \ * ) func_dirname_result="${3}" ;;\ | |
19964 | \ esac\ | |
19965 | \ func_basename_result="${1##*/}"\ | |
19966 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
19967 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
19968 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
19969 | test 0 -eq $? || _lt_function_replace_fail=: | |
19970 | ||
19971 | ||
19972 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
19973 | func_stripname ()\ | |
19974 | {\ | |
19975 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
19976 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
19977 | \ func_stripname_result=${3}\ | |
19978 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
19979 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
19980 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
19981 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
19982 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
19983 | test 0 -eq $? || _lt_function_replace_fail=: | |
19984 | ||
19985 | ||
19986 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
19987 | func_split_long_opt ()\ | |
19988 | {\ | |
19989 | \ func_split_long_opt_name=${1%%=*}\ | |
19990 | \ func_split_long_opt_arg=${1#*=}\ | |
19991 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
19992 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
19993 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
19994 | test 0 -eq $? || _lt_function_replace_fail=: | |
19995 | ||
19996 | ||
19997 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
19998 | func_split_short_opt ()\ | |
19999 | {\ | |
20000 | \ func_split_short_opt_arg=${1#??}\ | |
20001 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
20002 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
20003 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20004 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20005 | test 0 -eq $? || _lt_function_replace_fail=: | |
20006 | ||
20007 | ||
20008 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
20009 | func_lo2o ()\ | |
20010 | {\ | |
20011 | \ case ${1} in\ | |
20012 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
20013 | \ *) func_lo2o_result=${1} ;;\ | |
20014 | \ esac\ | |
20015 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
20016 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20017 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20018 | test 0 -eq $? || _lt_function_replace_fail=: | |
20019 | ||
20020 | ||
20021 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
20022 | func_xform ()\ | |
20023 | {\ | |
20024 | func_xform_result=${1%.*}.lo\ | |
20025 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
20026 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20027 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20028 | test 0 -eq $? || _lt_function_replace_fail=: | |
20029 | ||
20030 | ||
20031 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
20032 | func_arith ()\ | |
20033 | {\ | |
20034 | func_arith_result=$(( $* ))\ | |
20035 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
20036 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20037 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20038 | test 0 -eq $? || _lt_function_replace_fail=: | |
20039 | ||
20040 | ||
20041 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
20042 | func_len ()\ | |
20043 | {\ | |
20044 | func_len_result=${#1}\ | |
20045 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
20046 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20047 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20048 | test 0 -eq $? || _lt_function_replace_fail=: | |
20049 | ||
20050 | fi | |
20051 | ||
20052 | if test x"$lt_shell_append" = xyes; then | |
20053 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
20054 | func_append ()\ | |
20055 | {\ | |
20056 | eval "${1}+=\\${2}"\ | |
20057 | } # Extended-shell func_append 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_append_quoted ()$/,/^} # func_append_quoted /c\ | |
20064 | func_append_quoted ()\ | |
20065 | {\ | |
20066 | \ func_quote_for_eval "${2}"\ | |
20067 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
20068 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
20069 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20070 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20071 | test 0 -eq $? || _lt_function_replace_fail=: | |
20072 | ||
20073 | ||
20074 | # Save a `func_append' function call where possible by direct use of '+=' | |
20075 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
20076 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20077 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20078 | test 0 -eq $? || _lt_function_replace_fail=: | |
20079 | else | |
20080 | # Save a `func_append' function call even when '+=' is not available | |
20081 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
20082 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
20083 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
20084 | test 0 -eq $? || _lt_function_replace_fail=: | |
20085 | fi | |
20086 | ||
20087 | if test x"$_lt_function_replace_fail" = x":"; then | |
20088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
20089 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
20090 | fi | |
20091 | ||
20092 | ||
20093 | mv -f "$cfgfile" "$ofile" || | |
20094 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
20095 | chmod +x "$ofile" | |
20096 | ||
20097 | ;; | |
2eff3833 | 20098 | "tools/genssl_chmod":C) chmod 755 tools/genssl ;; |
9f9b7042 NPB |
20099 | |
20100 | esac | |
631ef239 | 20101 | done # for ac_tag |
212380e3 | 20102 | |
212380e3 | 20103 | |
7083c021 | 20104 | as_fn_exit 0 |
212380e3 | 20105 | _ACEOF |
212380e3 AC |
20106 | ac_clean_files=$ac_clean_files_save |
20107 | ||
7083c021 | 20108 | test $ac_write_fail = 0 || |
b6d0720c | 20109 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
7083c021 | 20110 | |
212380e3 AC |
20111 | |
20112 | # configure is writing to config.log, and then calls config.status. | |
20113 | # config.status does its own redirection, appending to config.log. | |
20114 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
20115 | # by configure, so config.status won't be able to write to it; its | |
20116 | # output is simply discarded. So we exec the FD to /dev/null, | |
20117 | # effectively closing config.log, so it can be properly (re)opened and | |
20118 | # appended to by config.status. When coming back to configure, we | |
20119 | # need to make the FD available again. | |
20120 | if test "$no_create" != yes; then | |
20121 | ac_cs_success=: | |
20122 | ac_config_status_args= | |
20123 | test "$silent" = yes && | |
20124 | ac_config_status_args="$ac_config_status_args --quiet" | |
20125 | exec 5>/dev/null | |
20126 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
20127 | exec 5>>config.log | |
20128 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
20129 | # would make configure fail if this is the last instruction. | |
b6d0720c | 20130 | $ac_cs_success || as_fn_exit 1 |
212380e3 | 20131 | fi |
1db8e007 JT |
20132 | |
20133 | # | |
20134 | # CONFIG_SUBDIRS section. | |
20135 | # | |
20136 | if test "$no_recursion" != yes; then | |
20137 | ||
20138 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments | |
20139 | # so they do not pile up. | |
20140 | ac_sub_configure_args= | |
20141 | ac_prev= | |
20142 | eval "set x $ac_configure_args" | |
20143 | shift | |
20144 | for ac_arg | |
20145 | do | |
20146 | if test -n "$ac_prev"; then | |
20147 | ac_prev= | |
20148 | continue | |
20149 | fi | |
20150 | case $ac_arg in | |
20151 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
20152 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
20153 | ac_prev=cache_file ;; | |
20154 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
20155 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
20156 | | --c=*) | |
20157 | ;; | |
20158 | --config-cache | -C) | |
20159 | ;; | |
20160 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
20161 | ac_prev=srcdir ;; | |
20162 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
20163 | ;; | |
20164 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
20165 | ac_prev=prefix ;; | |
20166 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
20167 | ;; | |
20168 | --disable-option-checking) | |
20169 | ;; | |
20170 | *) | |
20171 | case $ac_arg in | |
20172 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20173 | esac | |
20174 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; | |
20175 | esac | |
20176 | done | |
20177 | ||
20178 | # Always prepend --prefix to ensure using the same prefix | |
20179 | # in subdir configurations. | |
20180 | ac_arg="--prefix=$prefix" | |
20181 | case $ac_arg in | |
20182 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
20183 | esac | |
20184 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
20185 | ||
20186 | # Pass --silent | |
20187 | if test "$silent" = yes; then | |
20188 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
20189 | fi | |
20190 | ||
20191 | # Always prepend --disable-option-checking to silence warnings, since | |
20192 | # different subdirs can have different --enable and --with options. | |
20193 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" | |
20194 | ||
20195 | ac_popdir=`pwd` | |
20196 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
20197 | ||
20198 | # Do not complain, so a configure script can configure whichever | |
20199 | # parts of a large source tree are present. | |
20200 | test -d "$srcdir/$ac_dir" || continue | |
20201 | ||
20202 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
20203 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 | |
20204 | $as_echo "$ac_msg" >&6 | |
20205 | as_dir="$ac_dir"; as_fn_mkdir_p | |
20206 | ac_builddir=. | |
20207 | ||
20208 | case "$ac_dir" in | |
20209 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20210 | *) | |
20211 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
20212 | # A ".." for each directory in $ac_dir_suffix. | |
20213 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
20214 | case $ac_top_builddir_sub in | |
20215 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
20216 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
20217 | esac ;; | |
20218 | esac | |
20219 | ac_abs_top_builddir=$ac_pwd | |
20220 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
20221 | # for backward compatibility: | |
20222 | ac_top_builddir=$ac_top_build_prefix | |
20223 | ||
20224 | case $srcdir in | |
20225 | .) # We are building in place. | |
20226 | ac_srcdir=. | |
20227 | ac_top_srcdir=$ac_top_builddir_sub | |
20228 | ac_abs_top_srcdir=$ac_pwd ;; | |
20229 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
20230 | ac_srcdir=$srcdir$ac_dir_suffix; | |
20231 | ac_top_srcdir=$srcdir | |
20232 | ac_abs_top_srcdir=$srcdir ;; | |
20233 | *) # Relative name. | |
20234 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
20235 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
20236 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
20237 | esac | |
20238 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
20239 | ||
20240 | ||
20241 | cd "$ac_dir" | |
20242 | ||
20243 | # Check for guested configure; otherwise get Cygnus style configure. | |
20244 | if test -f "$ac_srcdir/configure.gnu"; then | |
20245 | ac_sub_configure=$ac_srcdir/configure.gnu | |
20246 | elif test -f "$ac_srcdir/configure"; then | |
20247 | ac_sub_configure=$ac_srcdir/configure | |
20248 | elif test -f "$ac_srcdir/configure.in"; then | |
20249 | # This should be Cygnus configure. | |
20250 | ac_sub_configure=$ac_aux_dir/configure | |
20251 | else | |
20252 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 | |
20253 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
20254 | ac_sub_configure= | |
20255 | fi | |
20256 | ||
20257 | # The recursion is here. | |
20258 | if test -n "$ac_sub_configure"; then | |
20259 | # Make the cache file name correct relative to the subdirectory. | |
20260 | case $cache_file in | |
20261 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
20262 | *) # Relative name. | |
20263 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
20264 | esac | |
20265 | ||
20266 | { $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 | |
20267 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
20268 | # The eval makes quoting arguments work. | |
20269 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
20270 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
20271 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 | |
20272 | fi | |
20273 | ||
20274 | cd "$ac_popdir" | |
20275 | done | |
20276 | fi | |
7083c021 AC |
20277 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
20278 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
20279 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
20280 | fi | |
b676ea3b | 20281 | |
212380e3 AC |
20282 | |
20283 | if test "$cf_openssl_version_ok" = yes; then | |
20284 | openssl="yes" | |
20285 | else | |
20286 | openssl="no" | |
20287 | fi | |
20288 | ||
212380e3 | 20289 | echo " |
b6d0720c | 20290 | Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}: |
212380e3 AC |
20291 | Install directory : $prefix |
20292 | ||
20293 | Ziplinks : $zlib | |
20294 | OpenSSL : $openssl | |
212380e3 AC |
20295 | |
20296 | Nickname length : $NICKLEN | |
20297 | Topic length : $TOPICLEN | |
20298 | ||
b6d0720c | 20299 | Use (g)make to compile $BRANDING_NAME, then (g)make install to install it. |
212380e3 | 20300 | " |