Commit | Line | Data |
---|---|---|
d9898ee8 | 1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
b0322a85 | 3 | # Generated by GNU Autoconf 2.69 for libmd5 1.21. |
d9898ee8 | 4 | # |
5 | # Report bugs to <courier-users@lists.sourceforge.net>. | |
6 | # | |
b0322a85 CE |
7 | # |
8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
9 | # | |
10 | # | |
d9898ee8 | 11 | # This configure script is free software; the Free Software Foundation |
12 | # gives unlimited permission to copy, distribute and modify it. | |
b0322a85 CE |
13 | ## -------------------- ## |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
d9898ee8 | 16 | |
dd184caf | 17 | # Be more Bourne compatible |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0322a85 | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
d9898ee8 | 20 | emulate sh |
21 | NULLCMD=: | |
8d138742 | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
d9898ee8 | 23 | # is contrary to our usage. Disable this feature. |
24 | alias -g '${1+"$@"}'='"$@"' | |
dd184caf | 25 | setopt NO_GLOB_SUBST |
26 | else | |
b0322a85 CE |
27 | case `(set -o) 2>/dev/null` in #( |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
dd184caf | 32 | esac |
dd184caf | 33 | fi |
34 | ||
35 | ||
8d138742 CE |
36 | as_nl=' |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b0322a85 CE |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8d138742 CE |
50 | as_echo='printf %s\n' |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
b0322a85 | 60 | case $arg in #( |
8d138742 CE |
61 | *"$as_nl"*) |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
dd184caf | 74 | # The user is always right. |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
8d138742 CE |
76 | PATH_SEPARATOR=: |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
d9898ee8 | 81 | fi |
d9898ee8 | 82 | |
d9898ee8 | 83 | |
dd184caf | 84 | # IFS |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
dd184caf | 89 | IFS=" "" $as_nl" |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
b0322a85 CE |
92 | as_myself= |
93 | case $0 in #(( | |
dd184caf | 94 | *[\\/]* ) as_myself=$0 ;; |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
101 | done | |
dd184caf | 102 | IFS=$as_save_IFS |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
8d138742 | 112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
b0322a85 | 113 | exit 1 |
dd184caf | 114 | fi |
115 | ||
b0322a85 CE |
116 | # Unset variables that we do not need and which cause bugs (e.g. in |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
dd184caf | 123 | done |
d9898ee8 | 124 | PS1='$ ' |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
8d138742 CE |
129 | LC_ALL=C |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
d9898ee8 | 133 | |
b0322a85 CE |
134 | # CDPATH. |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
137 | # Use a proper internal environment variable to ensure we don't fall | |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
162 | if test "x$CONFIG_SHELL" = x; then | |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
195 | test x\$exitcode = x0 || exit 1 | |
196 | test -x / || exit 1" | |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
201 | ||
202 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
203 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
206 | PATH=/empty FPATH=/empty; export PATH FPATH | |
207 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
208 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
209 | test \$(( 1 + 1 )) = 2 || exit 1" | |
210 | if (eval "$as_required") 2>/dev/null; then : | |
211 | as_have_required=yes | |
212 | else | |
213 | as_have_required=no | |
214 | fi | |
215 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
216 | ||
217 | else | |
218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
219 | as_found=false | |
220 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
221 | do | |
222 | IFS=$as_save_IFS | |
223 | test -z "$as_dir" && as_dir=. | |
224 | as_found=: | |
225 | case $as_dir in #( | |
226 | /*) | |
227 | for as_base in sh bash ksh sh5; do | |
228 | # Try only shells that exist, to save several forks. | |
229 | as_shell=$as_dir/$as_base | |
230 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
231 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | CONFIG_SHELL=$as_shell as_have_required=yes | |
233 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
234 | break 2 | |
235 | fi | |
236 | fi | |
237 | done;; | |
238 | esac | |
239 | as_found=false | |
240 | done | |
241 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
242 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
243 | CONFIG_SHELL=$SHELL as_have_required=yes | |
244 | fi; } | |
245 | IFS=$as_save_IFS | |
246 | ||
247 | ||
248 | if test "x$CONFIG_SHELL" != x; then : | |
249 | export CONFIG_SHELL | |
250 | # We cannot yet assume a decent shell, so we have to provide a | |
251 | # neutralization value for shells without unset; and this also | |
252 | # works around shells that cannot unset nonexistent variables. | |
253 | # Preserve -v and -x to the replacement shell. | |
254 | BASH_ENV=/dev/null | |
255 | ENV=/dev/null | |
256 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
257 | case $- in # (((( | |
258 | *v*x* | *x*v* ) as_opts=-vx ;; | |
259 | *v* ) as_opts=-v ;; | |
260 | *x* ) as_opts=-x ;; | |
261 | * ) as_opts= ;; | |
262 | esac | |
263 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
264 | # Admittedly, this is quite paranoid, since all the known shells bail | |
265 | # out after a failed `exec'. | |
266 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
267 | exit 255 | |
268 | fi | |
269 | ||
270 | if test x$as_have_required = xno; then : | |
271 | $as_echo "$0: This script requires a shell more modern than all" | |
272 | $as_echo "$0: the shells that I found on your system." | |
273 | if test x${ZSH_VERSION+set} = xset ; then | |
274 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
275 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
276 | else | |
277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
278 | $0: courier-users@lists.sourceforge.net about your system, | |
279 | $0: including any error possibly output before this | |
280 | $0: message. Then install a modern shell, or manually run | |
281 | $0: the script under such a shell if you do have one." | |
282 | fi | |
283 | exit 1 | |
284 | fi | |
285 | fi | |
286 | fi | |
287 | SHELL=${CONFIG_SHELL-/bin/sh} | |
288 | export SHELL | |
289 | # Unset more variables known to interfere with behavior of common tools. | |
290 | CLICOLOR_FORCE= GREP_OPTIONS= | |
291 | unset CLICOLOR_FORCE GREP_OPTIONS | |
292 | ||
293 | ## --------------------- ## | |
294 | ## M4sh Shell Functions. ## | |
295 | ## --------------------- ## | |
296 | # as_fn_unset VAR | |
297 | # --------------- | |
298 | # Portably unset VAR. | |
299 | as_fn_unset () | |
300 | { | |
301 | { eval $1=; unset $1;} | |
302 | } | |
303 | as_unset=as_fn_unset | |
304 | ||
305 | # as_fn_set_status STATUS | |
306 | # ----------------------- | |
307 | # Set $? to STATUS, without forking. | |
308 | as_fn_set_status () | |
309 | { | |
310 | return $1 | |
311 | } # as_fn_set_status | |
312 | ||
313 | # as_fn_exit STATUS | |
314 | # ----------------- | |
315 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
316 | as_fn_exit () | |
317 | { | |
318 | set +e | |
319 | as_fn_set_status $1 | |
320 | exit $1 | |
321 | } # as_fn_exit | |
322 | ||
323 | # as_fn_mkdir_p | |
324 | # ------------- | |
325 | # Create "$as_dir" as a directory, including parents if necessary. | |
326 | as_fn_mkdir_p () | |
327 | { | |
328 | ||
329 | case $as_dir in #( | |
330 | -*) as_dir=./$as_dir;; | |
331 | esac | |
332 | test -d "$as_dir" || eval $as_mkdir_p || { | |
333 | as_dirs= | |
334 | while :; do | |
335 | case $as_dir in #( | |
336 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
337 | *) as_qdir=$as_dir;; | |
338 | esac | |
339 | as_dirs="'$as_qdir' $as_dirs" | |
340 | as_dir=`$as_dirname -- "$as_dir" || | |
341 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
342 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
343 | X"$as_dir" : 'X\(//\)$' \| \ | |
344 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
345 | $as_echo X"$as_dir" | | |
346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
347 | s//\1/ | |
348 | q | |
349 | } | |
350 | /^X\(\/\/\)[^/].*/{ | |
351 | s//\1/ | |
352 | q | |
353 | } | |
354 | /^X\(\/\/\)$/{ | |
355 | s//\1/ | |
356 | q | |
357 | } | |
358 | /^X\(\/\).*/{ | |
359 | s//\1/ | |
360 | q | |
361 | } | |
362 | s/.*/./; q'` | |
363 | test -d "$as_dir" && break | |
364 | done | |
365 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
366 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
367 | ||
368 | ||
369 | } # as_fn_mkdir_p | |
370 | ||
371 | # as_fn_executable_p FILE | |
372 | # ----------------------- | |
373 | # Test if FILE is an executable regular file. | |
374 | as_fn_executable_p () | |
375 | { | |
376 | test -f "$1" && test -x "$1" | |
377 | } # as_fn_executable_p | |
378 | # as_fn_append VAR VALUE | |
379 | # ---------------------- | |
380 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
381 | # advantage of any shell optimizations that allow amortized linear growth over | |
382 | # repeated appends, instead of the typical quadratic growth present in naive | |
383 | # implementations. | |
384 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
385 | eval 'as_fn_append () | |
386 | { | |
387 | eval $1+=\$2 | |
388 | }' | |
389 | else | |
390 | as_fn_append () | |
391 | { | |
392 | eval $1=\$$1\$2 | |
393 | } | |
394 | fi # as_fn_append | |
395 | ||
396 | # as_fn_arith ARG... | |
397 | # ------------------ | |
398 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
399 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
400 | # must be portable across $(()) and expr. | |
401 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
402 | eval 'as_fn_arith () | |
403 | { | |
404 | as_val=$(( $* )) | |
405 | }' | |
406 | else | |
407 | as_fn_arith () | |
408 | { | |
409 | as_val=`expr "$@" || test $? -eq 1` | |
410 | } | |
411 | fi # as_fn_arith | |
412 | ||
413 | ||
414 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
415 | # ---------------------------------------- | |
416 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
417 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
418 | # script with STATUS, using 1 if that was 0. | |
419 | as_fn_error () | |
420 | { | |
421 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
422 | if test "$4"; then | |
423 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
424 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
425 | fi | |
426 | $as_echo "$as_me: error: $2" >&2 | |
427 | as_fn_exit $as_status | |
428 | } # as_fn_error | |
429 | ||
dd184caf | 430 | if expr a : '\(a\)' >/dev/null 2>&1 && |
431 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
d9898ee8 | 432 | as_expr=expr |
433 | else | |
434 | as_expr=false | |
435 | fi | |
436 | ||
dd184caf | 437 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 | 438 | as_basename=basename |
439 | else | |
440 | as_basename=false | |
441 | fi | |
442 | ||
b0322a85 CE |
443 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
444 | as_dirname=dirname | |
445 | else | |
446 | as_dirname=false | |
447 | fi | |
d9898ee8 | 448 | |
dd184caf | 449 | as_me=`$as_basename -- "$0" || |
d9898ee8 | 450 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
451 | X"$0" : 'X\(//\)$' \| \ | |
dd184caf | 452 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
8d138742 | 453 | $as_echo X/"$0" | |
dd184caf | 454 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
455 | s//\1/ | |
456 | q | |
457 | } | |
458 | /^X\/\(\/\/\)$/{ | |
459 | s//\1/ | |
460 | q | |
461 | } | |
462 | /^X\/\(\/\).*/{ | |
463 | s//\1/ | |
464 | q | |
465 | } | |
466 | s/.*/./; q'` | |
d9898ee8 | 467 | |
b0322a85 CE |
468 | # Avoid depending upon Character Ranges. |
469 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
470 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
471 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
472 | as_cr_digits='0123456789' | |
473 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d9898ee8 | 474 | |
d9898ee8 | 475 | |
b0322a85 CE |
476 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
477 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
478 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
479 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
480 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
481 | sed -n ' | |
482 | p | |
483 | /[$]LINENO/= | |
484 | ' <$as_myself | | |
485 | sed ' | |
486 | s/[$]LINENO.*/&-/ | |
487 | t lineno | |
488 | b | |
489 | :lineno | |
490 | N | |
491 | :loop | |
492 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
493 | t loop | |
494 | s/-\n.*// | |
495 | ' >$as_me.lineno && | |
496 | chmod +x "$as_me.lineno" || | |
497 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
d9898ee8 | 498 | |
b0322a85 CE |
499 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
500 | # already done that, so ensure we don't try to do so again and fall | |
501 | # in an infinite loop. This has already happened in practice. | |
502 | _as_can_reexec=no; export _as_can_reexec | |
503 | # Don't try to exec as it changes $[0], causing all sort of problems | |
504 | # (the dirname of $[0] is not the place where we might find the | |
505 | # original and so on. Autoconf is especially sensitive to this). | |
506 | . "./$as_me.lineno" | |
507 | # Exit status is that of the last command. | |
508 | exit | |
dd184caf | 509 | } |
d9898ee8 | 510 | |
b0322a85 CE |
511 | ECHO_C= ECHO_N= ECHO_T= |
512 | case `echo -n x` in #((((( | |
513 | -n*) | |
514 | case `echo 'xy\c'` in | |
515 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
516 | xy) ECHO_C='\c';; | |
517 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
518 | ECHO_T=' ';; | |
519 | esac;; | |
520 | *) | |
521 | ECHO_N='-n';; | |
522 | esac | |
dd184caf | 523 | |
b0322a85 CE |
524 | rm -f conf$$ conf$$.exe conf$$.file |
525 | if test -d conf$$.dir; then | |
526 | rm -f conf$$.dir/conf$$.file | |
dd184caf | 527 | else |
b0322a85 CE |
528 | rm -f conf$$.dir |
529 | mkdir conf$$.dir 2>/dev/null | |
dd184caf | 530 | fi |
b0322a85 CE |
531 | if (echo >conf$$.file) 2>/dev/null; then |
532 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
533 | as_ln_s='ln -s' | |
534 | # ... but there are two gotchas: | |
535 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
536 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
537 | # In both cases, we have to default to `cp -pR'. | |
538 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
539 | as_ln_s='cp -pR' | |
540 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
541 | as_ln_s=ln | |
542 | else | |
543 | as_ln_s='cp -pR' | |
544 | fi | |
dd184caf | 545 | else |
b0322a85 | 546 | as_ln_s='cp -pR' |
dd184caf | 547 | fi |
b0322a85 CE |
548 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
549 | rmdir conf$$.dir 2>/dev/null | |
dd184caf | 550 | |
b0322a85 CE |
551 | if mkdir -p . 2>/dev/null; then |
552 | as_mkdir_p='mkdir -p "$as_dir"' | |
dd184caf | 553 | else |
b0322a85 CE |
554 | test -d ./-p && rmdir ./-p |
555 | as_mkdir_p=false | |
556 | fi | |
dd184caf | 557 | |
b0322a85 CE |
558 | as_test_x='test -x' |
559 | as_executable_p=as_fn_executable_p | |
dd184caf | 560 | |
b0322a85 CE |
561 | # Sed expression to map a string onto a valid CPP name. |
562 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
dd184caf | 563 | |
b0322a85 CE |
564 | # Sed expression to map a string onto a valid variable name. |
565 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
dd184caf | 566 | |
b0322a85 | 567 | SHELL=${CONFIG_SHELL-/bin/sh} |
dd184caf | 568 | |
dd184caf | 569 | |
b0322a85 CE |
570 | test -n "$DJDIR" || exec 7<&0 </dev/null |
571 | exec 6>&1 | |
dd184caf | 572 | |
b0322a85 CE |
573 | # Name of the host. |
574 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
575 | # so uname gets run too. | |
576 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
d9898ee8 | 577 | |
d9898ee8 | 578 | # |
579 | # Initializations. | |
580 | # | |
581 | ac_default_prefix=/usr/local | |
dd184caf | 582 | ac_clean_files= |
d9898ee8 | 583 | ac_config_libobj_dir=. |
dd184caf | 584 | LIBOBJS= |
d9898ee8 | 585 | cross_compiling=no |
586 | subdirs= | |
587 | MFLAGS= | |
588 | MAKEFLAGS= | |
d9898ee8 | 589 | |
d9898ee8 | 590 | # Identity of this package. |
591 | PACKAGE_NAME='libmd5' | |
592 | PACKAGE_TARNAME='libmd5' | |
593 | PACKAGE_VERSION='1.21' | |
594 | PACKAGE_STRING='libmd5 1.21' | |
595 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' | |
b0322a85 | 596 | PACKAGE_URL='' |
d9898ee8 | 597 | |
598 | ac_unique_file="hmac.c" | |
599 | # Factoring default headers for most tests. | |
600 | ac_includes_default="\ | |
601 | #include <stdio.h> | |
dd184caf | 602 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 | 603 | # include <sys/types.h> |
604 | #endif | |
dd184caf | 605 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 | 606 | # include <sys/stat.h> |
607 | #endif | |
dd184caf | 608 | #ifdef STDC_HEADERS |
d9898ee8 | 609 | # include <stdlib.h> |
610 | # include <stddef.h> | |
611 | #else | |
dd184caf | 612 | # ifdef HAVE_STDLIB_H |
d9898ee8 | 613 | # include <stdlib.h> |
614 | # endif | |
615 | #endif | |
dd184caf | 616 | #ifdef HAVE_STRING_H |
617 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
d9898ee8 | 618 | # include <memory.h> |
619 | # endif | |
620 | # include <string.h> | |
621 | #endif | |
dd184caf | 622 | #ifdef HAVE_STRINGS_H |
d9898ee8 | 623 | # include <strings.h> |
624 | #endif | |
dd184caf | 625 | #ifdef HAVE_INTTYPES_H |
d9898ee8 | 626 | # include <inttypes.h> |
d9898ee8 | 627 | #endif |
dd184caf | 628 | #ifdef HAVE_STDINT_H |
629 | # include <stdint.h> | |
630 | #endif | |
631 | #ifdef HAVE_UNISTD_H | |
d9898ee8 | 632 | # include <unistd.h> |
633 | #endif" | |
634 | ||
8d138742 CE |
635 | ac_subst_vars='am__EXEEXT_FALSE |
636 | am__EXEEXT_TRUE | |
637 | LTLIBOBJS | |
638 | LIBOBJS | |
dd184caf | 639 | CPP |
8d138742 CE |
640 | OTOOL64 |
641 | OTOOL | |
642 | LIPO | |
643 | NMEDIT | |
644 | DSYMUTIL | |
b0322a85 | 645 | MANIFEST_TOOL |
8d138742 | 646 | RANLIB |
b0322a85 | 647 | ac_ct_AR |
8d138742 | 648 | AR |
b0322a85 | 649 | DLLTOOL |
8d138742 CE |
650 | OBJDUMP |
651 | NM | |
652 | ac_ct_DUMPBIN | |
653 | DUMPBIN | |
654 | LD | |
655 | FGREP | |
656 | EGREP | |
657 | GREP | |
658 | SED | |
659 | host_os | |
660 | host_vendor | |
661 | host_cpu | |
662 | host | |
663 | build_os | |
664 | build_vendor | |
665 | build_cpu | |
666 | build | |
dd184caf | 667 | LIBTOOL |
8d138742 CE |
668 | am__fastdepCC_FALSE |
669 | am__fastdepCC_TRUE | |
670 | CCDEPMODE | |
b0322a85 | 671 | am__nodep |
8d138742 CE |
672 | AMDEPBACKSLASH |
673 | AMDEP_FALSE | |
674 | AMDEP_TRUE | |
675 | am__quote | |
676 | am__include | |
677 | DEPDIR | |
678 | OBJEXT | |
679 | EXEEXT | |
680 | ac_ct_CC | |
681 | CPPFLAGS | |
682 | LDFLAGS | |
683 | CFLAGS | |
684 | CC | |
685 | LN_S | |
686 | HMACC_FALSE | |
687 | HMACC_TRUE | |
b0322a85 CE |
688 | AM_BACKSLASH |
689 | AM_DEFAULT_VERBOSITY | |
690 | AM_DEFAULT_V | |
691 | AM_V | |
8d138742 CE |
692 | am__untar |
693 | am__tar | |
694 | AMTAR | |
695 | am__leading_dot | |
696 | SET_MAKE | |
697 | AWK | |
698 | mkdir_p | |
699 | MKDIR_P | |
700 | INSTALL_STRIP_PROGRAM | |
701 | STRIP | |
702 | install_sh | |
703 | MAKEINFO | |
704 | AUTOHEADER | |
705 | AUTOMAKE | |
706 | AUTOCONF | |
707 | ACLOCAL | |
708 | VERSION | |
709 | PACKAGE | |
710 | CYGPATH_W | |
711 | am__isrc | |
712 | INSTALL_DATA | |
713 | INSTALL_SCRIPT | |
714 | INSTALL_PROGRAM | |
715 | target_alias | |
716 | host_alias | |
717 | build_alias | |
718 | LIBS | |
719 | ECHO_T | |
720 | ECHO_N | |
721 | ECHO_C | |
722 | DEFS | |
723 | mandir | |
724 | localedir | |
725 | libdir | |
726 | psdir | |
727 | pdfdir | |
728 | dvidir | |
729 | htmldir | |
730 | infodir | |
731 | docdir | |
732 | oldincludedir | |
733 | includedir | |
734 | localstatedir | |
735 | sharedstatedir | |
736 | sysconfdir | |
737 | datadir | |
738 | datarootdir | |
739 | libexecdir | |
740 | sbindir | |
741 | bindir | |
742 | program_transform_name | |
743 | prefix | |
744 | exec_prefix | |
b0322a85 | 745 | PACKAGE_URL |
8d138742 CE |
746 | PACKAGE_BUGREPORT |
747 | PACKAGE_STRING | |
748 | PACKAGE_VERSION | |
749 | PACKAGE_TARNAME | |
750 | PACKAGE_NAME | |
751 | PATH_SEPARATOR | |
752 | SHELL' | |
d9898ee8 | 753 | ac_subst_files='' |
8d138742 CE |
754 | ac_user_opts=' |
755 | enable_option_checking | |
b0322a85 | 756 | enable_silent_rules |
8d138742 CE |
757 | enable_dependency_tracking |
758 | enable_shared | |
759 | enable_static | |
760 | with_pic | |
761 | enable_fast_install | |
762 | with_gnu_ld | |
b0322a85 | 763 | with_sysroot |
8d138742 CE |
764 | enable_libtool_lock |
765 | with_int32 | |
b0322a85 | 766 | enable_largefile |
8d138742 | 767 | ' |
dd184caf | 768 | ac_precious_vars='build_alias |
769 | host_alias | |
770 | target_alias | |
771 | CC | |
772 | CFLAGS | |
773 | LDFLAGS | |
774 | LIBS | |
775 | CPPFLAGS | |
8d138742 | 776 | CPP' |
dd184caf | 777 | |
d9898ee8 | 778 | |
779 | # Initialize some variables set by options. | |
780 | ac_init_help= | |
781 | ac_init_version=false | |
8d138742 CE |
782 | ac_unrecognized_opts= |
783 | ac_unrecognized_sep= | |
d9898ee8 | 784 | # The variables have the same names as the options, with |
785 | # dashes changed to underlines. | |
786 | cache_file=/dev/null | |
787 | exec_prefix=NONE | |
788 | no_create= | |
789 | no_recursion= | |
790 | prefix=NONE | |
791 | program_prefix=NONE | |
792 | program_suffix=NONE | |
793 | program_transform_name=s,x,x, | |
794 | silent= | |
795 | site= | |
796 | srcdir= | |
797 | verbose= | |
798 | x_includes=NONE | |
799 | x_libraries=NONE | |
800 | ||
801 | # Installation directory options. | |
802 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
803 | # and all the variables that are supposed to be based on exec_prefix | |
804 | # by default will actually change. | |
805 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
dd184caf | 806 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 | 807 | bindir='${exec_prefix}/bin' |
808 | sbindir='${exec_prefix}/sbin' | |
809 | libexecdir='${exec_prefix}/libexec' | |
dd184caf | 810 | datarootdir='${prefix}/share' |
811 | datadir='${datarootdir}' | |
d9898ee8 | 812 | sysconfdir='${prefix}/etc' |
813 | sharedstatedir='${prefix}/com' | |
814 | localstatedir='${prefix}/var' | |
d9898ee8 | 815 | includedir='${prefix}/include' |
816 | oldincludedir='/usr/include' | |
dd184caf | 817 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
818 | infodir='${datarootdir}/info' | |
819 | htmldir='${docdir}' | |
820 | dvidir='${docdir}' | |
821 | pdfdir='${docdir}' | |
822 | psdir='${docdir}' | |
823 | libdir='${exec_prefix}/lib' | |
824 | localedir='${datarootdir}/locale' | |
825 | mandir='${datarootdir}/man' | |
d9898ee8 | 826 | |
827 | ac_prev= | |
dd184caf | 828 | ac_dashdash= |
d9898ee8 | 829 | for ac_option |
830 | do | |
831 | # If the previous option needs an argument, assign it. | |
832 | if test -n "$ac_prev"; then | |
dd184caf | 833 | eval $ac_prev=\$ac_option |
d9898ee8 | 834 | ac_prev= |
835 | continue | |
836 | fi | |
837 | ||
dd184caf | 838 | case $ac_option in |
b0322a85 CE |
839 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
840 | *=) ac_optarg= ;; | |
841 | *) ac_optarg=yes ;; | |
dd184caf | 842 | esac |
d9898ee8 | 843 | |
844 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
845 | ||
dd184caf | 846 | case $ac_dashdash$ac_option in |
847 | --) | |
848 | ac_dashdash=yes ;; | |
d9898ee8 | 849 | |
850 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
851 | ac_prev=bindir ;; | |
852 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
853 | bindir=$ac_optarg ;; | |
854 | ||
855 | -build | --build | --buil | --bui | --bu) | |
856 | ac_prev=build_alias ;; | |
857 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
858 | build_alias=$ac_optarg ;; | |
859 | ||
860 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
861 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
862 | ac_prev=cache_file ;; | |
863 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
864 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
865 | cache_file=$ac_optarg ;; | |
866 | ||
867 | --config-cache | -C) | |
868 | cache_file=config.cache ;; | |
869 | ||
dd184caf | 870 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 | 871 | ac_prev=datadir ;; |
dd184caf | 872 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 | 873 | datadir=$ac_optarg ;; |
874 | ||
dd184caf | 875 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
876 | | --dataroo | --dataro | --datar) | |
877 | ac_prev=datarootdir ;; | |
878 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
879 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
880 | datarootdir=$ac_optarg ;; | |
881 | ||
d9898ee8 | 882 | -disable-* | --disable-*) |
8d138742 | 883 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d9898ee8 | 884 | # Reject names that are not valid shell variable names. |
8d138742 | 885 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 886 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
887 | ac_useropt_orig=$ac_useropt |
888 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
889 | case $ac_user_opts in | |
890 | *" | |
891 | "enable_$ac_useropt" | |
892 | "*) ;; | |
893 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
894 | ac_unrecognized_sep=', ';; | |
895 | esac | |
896 | eval enable_$ac_useropt=no ;; | |
dd184caf | 897 | |
898 | -docdir | --docdir | --docdi | --doc | --do) | |
899 | ac_prev=docdir ;; | |
900 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
901 | docdir=$ac_optarg ;; | |
902 | ||
903 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
904 | ac_prev=dvidir ;; | |
905 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
906 | dvidir=$ac_optarg ;; | |
d9898ee8 | 907 | |
908 | -enable-* | --enable-*) | |
8d138742 | 909 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d9898ee8 | 910 | # Reject names that are not valid shell variable names. |
8d138742 | 911 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 912 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
913 | ac_useropt_orig=$ac_useropt |
914 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
915 | case $ac_user_opts in | |
916 | *" | |
917 | "enable_$ac_useropt" | |
918 | "*) ;; | |
919 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
920 | ac_unrecognized_sep=', ';; | |
921 | esac | |
922 | eval enable_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 923 | |
924 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
925 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
926 | | --exec | --exe | --ex) | |
927 | ac_prev=exec_prefix ;; | |
928 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
929 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
930 | | --exec=* | --exe=* | --ex=*) | |
931 | exec_prefix=$ac_optarg ;; | |
932 | ||
933 | -gas | --gas | --ga | --g) | |
934 | # Obsolete; use --with-gas. | |
935 | with_gas=yes ;; | |
936 | ||
937 | -help | --help | --hel | --he | -h) | |
938 | ac_init_help=long ;; | |
939 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
940 | ac_init_help=recursive ;; | |
941 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
942 | ac_init_help=short ;; | |
943 | ||
944 | -host | --host | --hos | --ho) | |
945 | ac_prev=host_alias ;; | |
946 | -host=* | --host=* | --hos=* | --ho=*) | |
947 | host_alias=$ac_optarg ;; | |
948 | ||
dd184caf | 949 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
950 | ac_prev=htmldir ;; | |
951 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
952 | | --ht=*) | |
953 | htmldir=$ac_optarg ;; | |
954 | ||
d9898ee8 | 955 | -includedir | --includedir | --includedi | --included | --include \ |
956 | | --includ | --inclu | --incl | --inc) | |
957 | ac_prev=includedir ;; | |
958 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
959 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
960 | includedir=$ac_optarg ;; | |
961 | ||
962 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
963 | ac_prev=infodir ;; | |
964 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
965 | infodir=$ac_optarg ;; | |
966 | ||
967 | -libdir | --libdir | --libdi | --libd) | |
968 | ac_prev=libdir ;; | |
969 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
970 | libdir=$ac_optarg ;; | |
971 | ||
972 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
973 | | --libexe | --libex | --libe) | |
974 | ac_prev=libexecdir ;; | |
975 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
976 | | --libexe=* | --libex=* | --libe=*) | |
977 | libexecdir=$ac_optarg ;; | |
978 | ||
dd184caf | 979 | -localedir | --localedir | --localedi | --localed | --locale) |
980 | ac_prev=localedir ;; | |
981 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
982 | localedir=$ac_optarg ;; | |
983 | ||
d9898ee8 | 984 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf | 985 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 | 986 | ac_prev=localstatedir ;; |
987 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dd184caf | 988 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 | 989 | localstatedir=$ac_optarg ;; |
990 | ||
991 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
992 | ac_prev=mandir ;; | |
993 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
994 | mandir=$ac_optarg ;; | |
995 | ||
996 | -nfp | --nfp | --nf) | |
997 | # Obsolete; use --without-fp. | |
998 | with_fp=no ;; | |
999 | ||
1000 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1001 | | --no-cr | --no-c | -n) | |
1002 | no_create=yes ;; | |
1003 | ||
1004 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1005 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1006 | no_recursion=yes ;; | |
1007 | ||
1008 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1009 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1010 | | --oldin | --oldi | --old | --ol | --o) | |
1011 | ac_prev=oldincludedir ;; | |
1012 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1013 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1014 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1015 | oldincludedir=$ac_optarg ;; | |
1016 | ||
1017 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1018 | ac_prev=prefix ;; | |
1019 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1020 | prefix=$ac_optarg ;; | |
1021 | ||
1022 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1023 | | --program-pre | --program-pr | --program-p) | |
1024 | ac_prev=program_prefix ;; | |
1025 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1026 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1027 | program_prefix=$ac_optarg ;; | |
1028 | ||
1029 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1030 | | --program-suf | --program-su | --program-s) | |
1031 | ac_prev=program_suffix ;; | |
1032 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1033 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1034 | program_suffix=$ac_optarg ;; | |
1035 | ||
1036 | -program-transform-name | --program-transform-name \ | |
1037 | | --program-transform-nam | --program-transform-na \ | |
1038 | | --program-transform-n | --program-transform- \ | |
1039 | | --program-transform | --program-transfor \ | |
1040 | | --program-transfo | --program-transf \ | |
1041 | | --program-trans | --program-tran \ | |
1042 | | --progr-tra | --program-tr | --program-t) | |
1043 | ac_prev=program_transform_name ;; | |
1044 | -program-transform-name=* | --program-transform-name=* \ | |
1045 | | --program-transform-nam=* | --program-transform-na=* \ | |
1046 | | --program-transform-n=* | --program-transform-=* \ | |
1047 | | --program-transform=* | --program-transfor=* \ | |
1048 | | --program-transfo=* | --program-transf=* \ | |
1049 | | --program-trans=* | --program-tran=* \ | |
1050 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1051 | program_transform_name=$ac_optarg ;; | |
1052 | ||
dd184caf | 1053 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1054 | ac_prev=pdfdir ;; | |
1055 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1056 | pdfdir=$ac_optarg ;; | |
1057 | ||
1058 | -psdir | --psdir | --psdi | --psd | --ps) | |
1059 | ac_prev=psdir ;; | |
1060 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1061 | psdir=$ac_optarg ;; | |
1062 | ||
d9898ee8 | 1063 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1064 | | -silent | --silent | --silen | --sile | --sil) | |
1065 | silent=yes ;; | |
1066 | ||
1067 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1068 | ac_prev=sbindir ;; | |
1069 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1070 | | --sbi=* | --sb=*) | |
1071 | sbindir=$ac_optarg ;; | |
1072 | ||
1073 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1074 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1075 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1076 | | --sha | --sh) | |
1077 | ac_prev=sharedstatedir ;; | |
1078 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1079 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1080 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1081 | | --sha=* | --sh=*) | |
1082 | sharedstatedir=$ac_optarg ;; | |
1083 | ||
1084 | -site | --site | --sit) | |
1085 | ac_prev=site ;; | |
1086 | -site=* | --site=* | --sit=*) | |
1087 | site=$ac_optarg ;; | |
1088 | ||
1089 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1090 | ac_prev=srcdir ;; | |
1091 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1092 | srcdir=$ac_optarg ;; | |
1093 | ||
1094 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1095 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1096 | ac_prev=sysconfdir ;; | |
1097 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1098 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1099 | sysconfdir=$ac_optarg ;; | |
1100 | ||
1101 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1102 | ac_prev=target_alias ;; | |
1103 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1104 | target_alias=$ac_optarg ;; | |
1105 | ||
1106 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1107 | verbose=yes ;; | |
1108 | ||
1109 | -version | --version | --versio | --versi | --vers | -V) | |
1110 | ac_init_version=: ;; | |
1111 | ||
1112 | -with-* | --with-*) | |
8d138742 | 1113 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d9898ee8 | 1114 | # Reject names that are not valid shell variable names. |
8d138742 | 1115 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1116 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1117 | ac_useropt_orig=$ac_useropt |
1118 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1119 | case $ac_user_opts in | |
1120 | *" | |
1121 | "with_$ac_useropt" | |
1122 | "*) ;; | |
1123 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1124 | ac_unrecognized_sep=', ';; | |
1125 | esac | |
1126 | eval with_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1127 | |
1128 | -without-* | --without-*) | |
8d138742 | 1129 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d9898ee8 | 1130 | # Reject names that are not valid shell variable names. |
8d138742 | 1131 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1132 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1133 | ac_useropt_orig=$ac_useropt |
1134 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1135 | case $ac_user_opts in | |
1136 | *" | |
1137 | "with_$ac_useropt" | |
1138 | "*) ;; | |
1139 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1140 | ac_unrecognized_sep=', ';; | |
1141 | esac | |
1142 | eval with_$ac_useropt=no ;; | |
d9898ee8 | 1143 | |
1144 | --x) | |
1145 | # Obsolete; use --with-x. | |
1146 | with_x=yes ;; | |
1147 | ||
1148 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1149 | | --x-incl | --x-inc | --x-in | --x-i) | |
1150 | ac_prev=x_includes ;; | |
1151 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1152 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1153 | x_includes=$ac_optarg ;; | |
1154 | ||
1155 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1156 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1157 | ac_prev=x_libraries ;; | |
1158 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1159 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1160 | x_libraries=$ac_optarg ;; | |
1161 | ||
b0322a85 CE |
1162 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1163 | Try \`$0 --help' for more information" | |
d9898ee8 | 1164 | ;; |
1165 | ||
1166 | *=*) | |
1167 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1168 | # Reject names that are not valid shell variable names. | |
b0322a85 CE |
1169 | case $ac_envvar in #( |
1170 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1171 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1172 | esac | |
dd184caf | 1173 | eval $ac_envvar=\$ac_optarg |
d9898ee8 | 1174 | export $ac_envvar ;; |
1175 | ||
1176 | *) | |
1177 | # FIXME: should be removed in autoconf 3.0. | |
8d138742 | 1178 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
d9898ee8 | 1179 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8d138742 | 1180 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b0322a85 | 1181 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
d9898ee8 | 1182 | ;; |
1183 | ||
1184 | esac | |
1185 | done | |
1186 | ||
1187 | if test -n "$ac_prev"; then | |
1188 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b0322a85 | 1189 | as_fn_error $? "missing argument to $ac_option" |
d9898ee8 | 1190 | fi |
1191 | ||
8d138742 CE |
1192 | if test -n "$ac_unrecognized_opts"; then |
1193 | case $enable_option_checking in | |
1194 | no) ;; | |
b0322a85 | 1195 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
8d138742 CE |
1196 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1197 | esac | |
1198 | fi | |
1199 | ||
1200 | # Check all directory arguments for consistency. | |
dd184caf | 1201 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1202 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1203 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1204 | libdir localedir mandir | |
d9898ee8 | 1205 | do |
dd184caf | 1206 | eval ac_val=\$$ac_var |
8d138742 CE |
1207 | # Remove trailing slashes. |
1208 | case $ac_val in | |
1209 | */ ) | |
1210 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1211 | eval $ac_var=\$ac_val;; | |
1212 | esac | |
1213 | # Be sure to have absolute directory names. | |
d9898ee8 | 1214 | case $ac_val in |
dd184caf | 1215 | [\\/$]* | ?:[\\/]* ) continue;; |
1216 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d9898ee8 | 1217 | esac |
b0322a85 | 1218 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
d9898ee8 | 1219 | done |
1220 | ||
1221 | # There might be people who depend on the old broken behavior: `$host' | |
1222 | # used to hold the argument of --host etc. | |
1223 | # FIXME: To remove some day. | |
1224 | build=$build_alias | |
1225 | host=$host_alias | |
1226 | target=$target_alias | |
1227 | ||
1228 | # FIXME: To remove some day. | |
1229 | if test "x$host_alias" != x; then | |
1230 | if test "x$build_alias" = x; then | |
1231 | cross_compiling=maybe | |
d9898ee8 | 1232 | elif test "x$build_alias" != "x$host_alias"; then |
1233 | cross_compiling=yes | |
1234 | fi | |
1235 | fi | |
1236 | ||
1237 | ac_tool_prefix= | |
1238 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1239 | ||
1240 | test "$silent" = yes && exec 6>/dev/null | |
1241 | ||
1242 | ||
dd184caf | 1243 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1244 | ac_ls_di=`ls -di .` && | |
1245 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b0322a85 | 1246 | as_fn_error $? "working directory cannot be determined" |
dd184caf | 1247 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b0322a85 | 1248 | as_fn_error $? "pwd does not report name of working directory" |
dd184caf | 1249 | |
1250 | ||
d9898ee8 | 1251 | # Find the source files, if location was not specified. |
1252 | if test -z "$srcdir"; then | |
1253 | ac_srcdir_defaulted=yes | |
dd184caf | 1254 | # Try the directory containing this script, then the parent directory. |
8d138742 CE |
1255 | ac_confdir=`$as_dirname -- "$as_myself" || |
1256 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1257 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1258 | X"$as_myself" : 'X\(//\)$' \| \ | |
1259 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1260 | $as_echo X"$as_myself" | | |
dd184caf | 1261 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1262 | s//\1/ | |
1263 | q | |
1264 | } | |
1265 | /^X\(\/\/\)[^/].*/{ | |
1266 | s//\1/ | |
1267 | q | |
1268 | } | |
1269 | /^X\(\/\/\)$/{ | |
1270 | s//\1/ | |
1271 | q | |
1272 | } | |
1273 | /^X\(\/\).*/{ | |
1274 | s//\1/ | |
1275 | q | |
1276 | } | |
1277 | s/.*/./; q'` | |
d9898ee8 | 1278 | srcdir=$ac_confdir |
dd184caf | 1279 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 | 1280 | srcdir=.. |
1281 | fi | |
1282 | else | |
1283 | ac_srcdir_defaulted=no | |
1284 | fi | |
dd184caf | 1285 | if test ! -r "$srcdir/$ac_unique_file"; then |
1286 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b0322a85 | 1287 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
d9898ee8 | 1288 | fi |
dd184caf | 1289 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1290 | ac_abs_confdir=`( | |
b0322a85 | 1291 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
dd184caf | 1292 | pwd)` |
1293 | # When building in place, set srcdir=. | |
1294 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1295 | srcdir=. | |
1296 | fi | |
1297 | # Remove unnecessary trailing slashes from srcdir. | |
1298 | # Double slashes in file names in object file debugging info | |
1299 | # mess up M-x gdb in Emacs. | |
1300 | case $srcdir in | |
1301 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1302 | esac | |
1303 | for ac_var in $ac_precious_vars; do | |
1304 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1305 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1306 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1307 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1308 | done | |
d9898ee8 | 1309 | |
1310 | # | |
1311 | # Report the --help message. | |
1312 | # | |
1313 | if test "$ac_init_help" = "long"; then | |
1314 | # Omit some internal or obsolete options to make the list less imposing. | |
1315 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1316 | cat <<_ACEOF | |
1317 | \`configure' configures libmd5 1.21 to adapt to many kinds of systems. | |
1318 | ||
1319 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1320 | ||
1321 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1322 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1323 | ||
1324 | Defaults for the options are specified in brackets. | |
1325 | ||
1326 | Configuration: | |
1327 | -h, --help display this help and exit | |
1328 | --help=short display options specific to this package | |
1329 | --help=recursive display the short help of all the included packages | |
1330 | -V, --version display version information and exit | |
b0322a85 | 1331 | -q, --quiet, --silent do not print \`checking ...' messages |
d9898ee8 | 1332 | --cache-file=FILE cache test results in FILE [disabled] |
1333 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1334 | -n, --no-create do not create output files | |
1335 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1336 | ||
d9898ee8 | 1337 | Installation directories: |
1338 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8d138742 | 1339 | [$ac_default_prefix] |
d9898ee8 | 1340 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8d138742 | 1341 | [PREFIX] |
d9898ee8 | 1342 | |
1343 | By default, \`make install' will install all the files in | |
1344 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1345 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1346 | for instance \`--prefix=\$HOME'. | |
1347 | ||
1348 | For better control, use the options below. | |
1349 | ||
1350 | Fine tuning of the installation directories: | |
8d138742 CE |
1351 | --bindir=DIR user executables [EPREFIX/bin] |
1352 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1353 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1354 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1355 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1356 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1357 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1358 | --includedir=DIR C header files [PREFIX/include] | |
1359 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1360 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1361 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1362 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1363 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1364 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1365 | --docdir=DIR documentation root [DATAROOTDIR/doc/libmd5] | |
1366 | --htmldir=DIR html documentation [DOCDIR] | |
1367 | --dvidir=DIR dvi documentation [DOCDIR] | |
1368 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1369 | --psdir=DIR ps documentation [DOCDIR] | |
d9898ee8 | 1370 | _ACEOF |
1371 | ||
1372 | cat <<\_ACEOF | |
1373 | ||
1374 | Program names: | |
1375 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1376 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1377 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1378 | ||
1379 | System types: | |
1380 | --build=BUILD configure for building on BUILD [guessed] | |
1381 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1382 | _ACEOF | |
1383 | fi | |
1384 | ||
1385 | if test -n "$ac_init_help"; then | |
1386 | case $ac_init_help in | |
1387 | short | recursive ) echo "Configuration of libmd5 1.21:";; | |
1388 | esac | |
1389 | cat <<\_ACEOF | |
1390 | ||
1391 | Optional Features: | |
8d138742 | 1392 | --disable-option-checking ignore unrecognized --enable/--with options |
d9898ee8 | 1393 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1394 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b0322a85 CE |
1395 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1396 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1397 | --enable-dependency-tracking | |
1398 | do not reject slow dependency extractors | |
1399 | --disable-dependency-tracking | |
1400 | speeds up one-time build | |
dd184caf | 1401 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1402 | --enable-static[=PKGS] build static libraries [default=yes] | |
d9898ee8 | 1403 | --enable-fast-install[=PKGS] |
1404 | optimize for fast installation [default=yes] | |
1405 | --disable-libtool-lock avoid locking (might break parallel builds) | |
b0322a85 | 1406 | --disable-largefile omit support for large files |
d9898ee8 | 1407 | |
1408 | Optional Packages: | |
1409 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1410 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
b0322a85 | 1411 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
d9898ee8 | 1412 | both] |
8d138742 | 1413 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
b0322a85 CE |
1414 | --with-sysroot=DIR Search for dependent libraries within DIR |
1415 | (or the compiler's sysroot if not specified). | |
d9898ee8 | 1416 | --with-int32='type' use 'type' for an unsigned 32 bit integer type |
1417 | ( default is 'unsigned') | |
1418 | ||
1419 | Some influential environment variables: | |
1420 | CC C compiler command | |
1421 | CFLAGS C compiler flags | |
1422 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1423 | nonstandard directory <lib dir> | |
dd184caf | 1424 | LIBS libraries to pass to the linker, e.g. -l<library> |
b0322a85 | 1425 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dd184caf | 1426 | you have headers in a nonstandard directory <include dir> |
d9898ee8 | 1427 | CPP C preprocessor |
d9898ee8 | 1428 | |
1429 | Use these variables to override the choices made by `configure' or to help | |
1430 | it to find libraries and programs with nonstandard names/locations. | |
1431 | ||
1432 | Report bugs to <courier-users@lists.sourceforge.net>. | |
1433 | _ACEOF | |
dd184caf | 1434 | ac_status=$? |
d9898ee8 | 1435 | fi |
1436 | ||
1437 | if test "$ac_init_help" = "recursive"; then | |
1438 | # If there are subdirs, report their specific --help. | |
d9898ee8 | 1439 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
8d138742 CE |
1440 | test -d "$ac_dir" || |
1441 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1442 | continue | |
d9898ee8 | 1443 | ac_builddir=. |
1444 | ||
dd184caf | 1445 | case "$ac_dir" in |
1446 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1447 | *) | |
8d138742 | 1448 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
dd184caf | 1449 | # A ".." for each directory in $ac_dir_suffix. |
8d138742 | 1450 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
dd184caf | 1451 | case $ac_top_builddir_sub in |
1452 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1453 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1454 | esac ;; | |
1455 | esac | |
1456 | ac_abs_top_builddir=$ac_pwd | |
1457 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1458 | # for backward compatibility: | |
1459 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 1460 | |
1461 | case $srcdir in | |
dd184caf | 1462 | .) # We are building in place. |
d9898ee8 | 1463 | ac_srcdir=. |
dd184caf | 1464 | ac_top_srcdir=$ac_top_builddir_sub |
1465 | ac_abs_top_srcdir=$ac_pwd ;; | |
1466 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
d9898ee8 | 1467 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf | 1468 | ac_top_srcdir=$srcdir |
1469 | ac_abs_top_srcdir=$srcdir ;; | |
1470 | *) # Relative name. | |
1471 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1472 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1473 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
d9898ee8 | 1474 | esac |
dd184caf | 1475 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1476 | ||
1477 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1478 | # Check for guested configure. | |
1479 | if test -f "$ac_srcdir/configure.gnu"; then | |
1480 | echo && | |
1481 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1482 | elif test -f "$ac_srcdir/configure"; then | |
1483 | echo && | |
1484 | $SHELL "$ac_srcdir/configure" --help=recursive | |
d9898ee8 | 1485 | else |
8d138742 | 1486 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf | 1487 | fi || ac_status=$? |
1488 | cd "$ac_pwd" || { ac_status=$?; break; } | |
d9898ee8 | 1489 | done |
1490 | fi | |
1491 | ||
dd184caf | 1492 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 | 1493 | if $ac_init_version; then |
1494 | cat <<\_ACEOF | |
1495 | libmd5 configure 1.21 | |
b0322a85 | 1496 | generated by GNU Autoconf 2.69 |
d9898ee8 | 1497 | |
b0322a85 | 1498 | Copyright (C) 2012 Free Software Foundation, Inc. |
d9898ee8 | 1499 | This configure script is free software; the Free Software Foundation |
1500 | gives unlimited permission to copy, distribute and modify it. | |
1501 | _ACEOF | |
dd184caf | 1502 | exit |
d9898ee8 | 1503 | fi |
d9898ee8 | 1504 | |
b0322a85 CE |
1505 | ## ------------------------ ## |
1506 | ## Autoconf initialization. ## | |
1507 | ## ------------------------ ## | |
d9898ee8 | 1508 | |
b0322a85 CE |
1509 | # ac_fn_c_try_compile LINENO |
1510 | # -------------------------- | |
1511 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1512 | ac_fn_c_try_compile () | |
d9898ee8 | 1513 | { |
b0322a85 CE |
1514 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1515 | rm -f conftest.$ac_objext | |
1516 | if { { ac_try="$ac_compile" | |
1517 | case "(($ac_try" in | |
1518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1519 | *) ac_try_echo=$ac_try;; | |
1520 | esac | |
1521 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1522 | $as_echo "$ac_try_echo"; } >&5 | |
1523 | (eval "$ac_compile") 2>conftest.err | |
1524 | ac_status=$? | |
1525 | if test -s conftest.err; then | |
1526 | grep -v '^ *+' conftest.err >conftest.er1 | |
1527 | cat conftest.er1 >&5 | |
1528 | mv -f conftest.er1 conftest.err | |
1529 | fi | |
1530 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1531 | test $ac_status = 0; } && { | |
1532 | test -z "$ac_c_werror_flag" || | |
1533 | test ! -s conftest.err | |
1534 | } && test -s conftest.$ac_objext; then : | |
1535 | ac_retval=0 | |
1536 | else | |
1537 | $as_echo "$as_me: failed program was:" >&5 | |
1538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 1539 | |
b0322a85 CE |
1540 | ac_retval=1 |
1541 | fi | |
1542 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1543 | as_fn_set_status $ac_retval | |
d9898ee8 | 1544 | |
b0322a85 | 1545 | } # ac_fn_c_try_compile |
d9898ee8 | 1546 | |
b0322a85 CE |
1547 | # ac_fn_c_try_link LINENO |
1548 | # ----------------------- | |
1549 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1550 | ac_fn_c_try_link () | |
1551 | { | |
1552 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1553 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1554 | if { { ac_try="$ac_link" | |
1555 | case "(($ac_try" in | |
1556 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1557 | *) ac_try_echo=$ac_try;; | |
1558 | esac | |
1559 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1560 | $as_echo "$ac_try_echo"; } >&5 | |
1561 | (eval "$ac_link") 2>conftest.err | |
1562 | ac_status=$? | |
1563 | if test -s conftest.err; then | |
1564 | grep -v '^ *+' conftest.err >conftest.er1 | |
1565 | cat conftest.er1 >&5 | |
1566 | mv -f conftest.er1 conftest.err | |
1567 | fi | |
1568 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1569 | test $ac_status = 0; } && { | |
1570 | test -z "$ac_c_werror_flag" || | |
1571 | test ! -s conftest.err | |
1572 | } && test -s conftest$ac_exeext && { | |
1573 | test "$cross_compiling" = yes || | |
1574 | test -x conftest$ac_exeext | |
1575 | }; then : | |
1576 | ac_retval=0 | |
1577 | else | |
1578 | $as_echo "$as_me: failed program was:" >&5 | |
1579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 1580 | |
b0322a85 CE |
1581 | ac_retval=1 |
1582 | fi | |
1583 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1584 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1585 | # interfere with the next link command; also delete a directory that is | |
1586 | # left behind by Apple's compiler. We do this before executing the actions. | |
1587 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1588 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1589 | as_fn_set_status $ac_retval | |
d9898ee8 | 1590 | |
b0322a85 | 1591 | } # ac_fn_c_try_link |
d9898ee8 | 1592 | |
b0322a85 CE |
1593 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1594 | # ------------------------------------------------------- | |
1595 | # Tests whether HEADER exists and can be compiled using the include files in | |
1596 | # INCLUDES, setting the cache variable VAR accordingly. | |
1597 | ac_fn_c_check_header_compile () | |
1598 | { | |
1599 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1601 | $as_echo_n "checking for $2... " >&6; } | |
1602 | if eval \${$3+:} false; then : | |
1603 | $as_echo_n "(cached) " >&6 | |
1604 | else | |
1605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1606 | /* end confdefs.h. */ | |
1607 | $4 | |
1608 | #include <$2> | |
d9898ee8 | 1609 | _ACEOF |
b0322a85 CE |
1610 | if ac_fn_c_try_compile "$LINENO"; then : |
1611 | eval "$3=yes" | |
1612 | else | |
1613 | eval "$3=no" | |
1614 | fi | |
1615 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1616 | fi | |
1617 | eval ac_res=\$$3 | |
1618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1619 | $as_echo "$ac_res" >&6; } | |
1620 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
d9898ee8 | 1621 | |
b0322a85 | 1622 | } # ac_fn_c_check_header_compile |
d9898ee8 | 1623 | |
b0322a85 CE |
1624 | # ac_fn_c_try_cpp LINENO |
1625 | # ---------------------- | |
1626 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1627 | ac_fn_c_try_cpp () | |
1628 | { | |
1629 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1630 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1631 | case "(($ac_try" in | |
1632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1633 | *) ac_try_echo=$ac_try;; | |
1634 | esac | |
1635 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1636 | $as_echo "$ac_try_echo"; } >&5 | |
1637 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1638 | ac_status=$? | |
1639 | if test -s conftest.err; then | |
1640 | grep -v '^ *+' conftest.err >conftest.er1 | |
1641 | cat conftest.er1 >&5 | |
1642 | mv -f conftest.er1 conftest.err | |
1643 | fi | |
1644 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1645 | test $ac_status = 0; } > conftest.i && { | |
1646 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1647 | test ! -s conftest.err | |
1648 | }; then : | |
1649 | ac_retval=0 | |
1650 | else | |
1651 | $as_echo "$as_me: failed program was:" >&5 | |
1652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 1653 | |
b0322a85 CE |
1654 | ac_retval=1 |
1655 | fi | |
1656 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1657 | as_fn_set_status $ac_retval | |
d9898ee8 | 1658 | |
b0322a85 | 1659 | } # ac_fn_c_try_cpp |
d9898ee8 | 1660 | |
b0322a85 CE |
1661 | # ac_fn_c_try_run LINENO |
1662 | # ---------------------- | |
1663 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1664 | # that executables *can* be run. | |
1665 | ac_fn_c_try_run () | |
1666 | { | |
1667 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1668 | if { { ac_try="$ac_link" | |
1669 | case "(($ac_try" in | |
1670 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1671 | *) ac_try_echo=$ac_try;; | |
1672 | esac | |
1673 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1674 | $as_echo "$ac_try_echo"; } >&5 | |
1675 | (eval "$ac_link") 2>&5 | |
1676 | ac_status=$? | |
1677 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1678 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1679 | { { case "(($ac_try" in | |
1680 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1681 | *) ac_try_echo=$ac_try;; | |
1682 | esac | |
1683 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1684 | $as_echo "$ac_try_echo"; } >&5 | |
1685 | (eval "$ac_try") 2>&5 | |
1686 | ac_status=$? | |
1687 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1688 | test $ac_status = 0; }; }; then : | |
1689 | ac_retval=0 | |
1690 | else | |
1691 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1692 | $as_echo "$as_me: failed program was:" >&5 | |
1693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 1694 | |
b0322a85 CE |
1695 | ac_retval=$ac_status |
1696 | fi | |
1697 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1698 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1699 | as_fn_set_status $ac_retval | |
d9898ee8 | 1700 | |
b0322a85 | 1701 | } # ac_fn_c_try_run |
d9898ee8 | 1702 | |
b0322a85 CE |
1703 | # ac_fn_c_check_func LINENO FUNC VAR |
1704 | # ---------------------------------- | |
1705 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1706 | ac_fn_c_check_func () | |
1707 | { | |
1708 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1710 | $as_echo_n "checking for $2... " >&6; } | |
1711 | if eval \${$3+:} false; then : | |
1712 | $as_echo_n "(cached) " >&6 | |
1713 | else | |
1714 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1715 | /* end confdefs.h. */ | |
1716 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1717 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1718 | #define $2 innocuous_$2 | |
d9898ee8 | 1719 | |
b0322a85 CE |
1720 | /* System header to define __stub macros and hopefully few prototypes, |
1721 | which can conflict with char $2 (); below. | |
1722 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1723 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 1724 | |
b0322a85 CE |
1725 | #ifdef __STDC__ |
1726 | # include <limits.h> | |
1727 | #else | |
1728 | # include <assert.h> | |
1729 | #endif | |
d9898ee8 | 1730 | |
b0322a85 | 1731 | #undef $2 |
d9898ee8 | 1732 | |
b0322a85 CE |
1733 | /* Override any GCC internal prototype to avoid an error. |
1734 | Use char because int might match the return type of a GCC | |
1735 | builtin and then its argument prototype would still apply. */ | |
1736 | #ifdef __cplusplus | |
1737 | extern "C" | |
1738 | #endif | |
1739 | char $2 (); | |
1740 | /* The GNU C library defines this for functions which it implements | |
1741 | to always fail with ENOSYS. Some functions are actually named | |
1742 | something starting with __ and the normal name is an alias. */ | |
1743 | #if defined __stub_$2 || defined __stub___$2 | |
1744 | choke me | |
1745 | #endif | |
d9898ee8 | 1746 | |
b0322a85 CE |
1747 | int |
1748 | main () | |
1749 | { | |
1750 | return $2 (); | |
1751 | ; | |
1752 | return 0; | |
1753 | } | |
d9898ee8 | 1754 | _ACEOF |
b0322a85 CE |
1755 | if ac_fn_c_try_link "$LINENO"; then : |
1756 | eval "$3=yes" | |
1757 | else | |
1758 | eval "$3=no" | |
1759 | fi | |
1760 | rm -f core conftest.err conftest.$ac_objext \ | |
1761 | conftest$ac_exeext conftest.$ac_ext | |
1762 | fi | |
1763 | eval ac_res=\$$3 | |
1764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1765 | $as_echo "$ac_res" >&6; } | |
1766 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
d9898ee8 | 1767 | |
b0322a85 | 1768 | } # ac_fn_c_check_func |
d9898ee8 | 1769 | |
b0322a85 CE |
1770 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1771 | # ------------------------------------------------------- | |
1772 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1773 | # the include files in INCLUDES and setting the cache variable VAR | |
1774 | # accordingly. | |
1775 | ac_fn_c_check_header_mongrel () | |
1776 | { | |
1777 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1778 | if eval \${$3+:} false; then : | |
1779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1780 | $as_echo_n "checking for $2... " >&6; } | |
1781 | if eval \${$3+:} false; then : | |
1782 | $as_echo_n "(cached) " >&6 | |
1783 | fi | |
1784 | eval ac_res=\$$3 | |
1785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1786 | $as_echo "$ac_res" >&6; } | |
1787 | else | |
1788 | # Is the header compilable? | |
1789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1790 | $as_echo_n "checking $2 usability... " >&6; } | |
1791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1792 | /* end confdefs.h. */ | |
1793 | $4 | |
1794 | #include <$2> | |
d9898ee8 | 1795 | _ACEOF |
b0322a85 CE |
1796 | if ac_fn_c_try_compile "$LINENO"; then : |
1797 | ac_header_compiler=yes | |
dd184caf | 1798 | else |
b0322a85 | 1799 | ac_header_compiler=no |
d9898ee8 | 1800 | fi |
b0322a85 CE |
1801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1803 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 1804 | |
b0322a85 CE |
1805 | # Is the header present? |
1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1807 | $as_echo_n "checking $2 presence... " >&6; } | |
1808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1809 | /* end confdefs.h. */ | |
1810 | #include <$2> | |
1811 | _ACEOF | |
1812 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1813 | ac_header_preproc=yes | |
d9898ee8 | 1814 | else |
b0322a85 | 1815 | ac_header_preproc=no |
d9898ee8 | 1816 | fi |
b0322a85 CE |
1817 | rm -f conftest.err conftest.i conftest.$ac_ext |
1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1819 | $as_echo "$ac_header_preproc" >&6; } | |
d9898ee8 | 1820 | |
b0322a85 CE |
1821 | # So? What about this header? |
1822 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1823 | yes:no: ) | |
1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1825 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1827 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1828 | ;; | |
1829 | no:yes:* ) | |
1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1831 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1833 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1834 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1835 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1837 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1839 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1840 | ( $as_echo "## -------------------------------------------------- ## | |
1841 | ## Report this to courier-users@lists.sourceforge.net ## | |
1842 | ## -------------------------------------------------- ##" | |
1843 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1844 | ;; | |
1845 | esac | |
1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1847 | $as_echo_n "checking for $2... " >&6; } | |
1848 | if eval \${$3+:} false; then : | |
1849 | $as_echo_n "(cached) " >&6 | |
1850 | else | |
1851 | eval "$3=\$ac_header_compiler" | |
d9898ee8 | 1852 | fi |
b0322a85 CE |
1853 | eval ac_res=\$$3 |
1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1855 | $as_echo "$ac_res" >&6; } | |
1856 | fi | |
1857 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
d9898ee8 | 1858 | |
b0322a85 | 1859 | } # ac_fn_c_check_header_mongrel |
d9898ee8 | 1860 | |
b0322a85 CE |
1861 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
1862 | # -------------------------------------------- | |
1863 | # Tries to find the compile-time value of EXPR in a program that includes | |
1864 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1865 | # computed | |
1866 | ac_fn_c_compute_int () | |
1867 | { | |
1868 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1869 | if test "$cross_compiling" = yes; then | |
1870 | # Depending upon the size, compute the lo and hi bounds. | |
1871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1872 | /* end confdefs.h. */ | |
1873 | $4 | |
1874 | int | |
1875 | main () | |
1876 | { | |
1877 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
1878 | test_array [0] = 0; | |
1879 | return test_array [0]; | |
d9898ee8 | 1880 | |
b0322a85 CE |
1881 | ; |
1882 | return 0; | |
1883 | } | |
1884 | _ACEOF | |
1885 | if ac_fn_c_try_compile "$LINENO"; then : | |
1886 | ac_lo=0 ac_mid=0 | |
1887 | while :; do | |
1888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1889 | /* end confdefs.h. */ | |
1890 | $4 | |
1891 | int | |
1892 | main () | |
1893 | { | |
1894 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1895 | test_array [0] = 0; | |
1896 | return test_array [0]; | |
d9898ee8 | 1897 | |
b0322a85 CE |
1898 | ; |
1899 | return 0; | |
1900 | } | |
1901 | _ACEOF | |
1902 | if ac_fn_c_try_compile "$LINENO"; then : | |
1903 | ac_hi=$ac_mid; break | |
1904 | else | |
1905 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
1906 | if test $ac_lo -le $ac_mid; then | |
1907 | ac_lo= ac_hi= | |
1908 | break | |
1909 | fi | |
1910 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
1911 | fi | |
1912 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1913 | done | |
1914 | else | |
1915 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1916 | /* end confdefs.h. */ | |
1917 | $4 | |
1918 | int | |
1919 | main () | |
1920 | { | |
1921 | static int test_array [1 - 2 * !(($2) < 0)]; | |
1922 | test_array [0] = 0; | |
1923 | return test_array [0]; | |
d9898ee8 | 1924 | |
b0322a85 CE |
1925 | ; |
1926 | return 0; | |
1927 | } | |
1928 | _ACEOF | |
1929 | if ac_fn_c_try_compile "$LINENO"; then : | |
1930 | ac_hi=-1 ac_mid=-1 | |
1931 | while :; do | |
1932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1933 | /* end confdefs.h. */ | |
1934 | $4 | |
1935 | int | |
1936 | main () | |
1937 | { | |
1938 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
1939 | test_array [0] = 0; | |
1940 | return test_array [0]; | |
d9898ee8 | 1941 | |
b0322a85 CE |
1942 | ; |
1943 | return 0; | |
1944 | } | |
1945 | _ACEOF | |
1946 | if ac_fn_c_try_compile "$LINENO"; then : | |
1947 | ac_lo=$ac_mid; break | |
1948 | else | |
1949 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
1950 | if test $ac_mid -le $ac_hi; then | |
1951 | ac_lo= ac_hi= | |
1952 | break | |
1953 | fi | |
1954 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
1955 | fi | |
1956 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1957 | done | |
1958 | else | |
1959 | ac_lo= ac_hi= | |
1960 | fi | |
1961 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1962 | fi | |
1963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1964 | # Binary search between lo and hi bounds. | |
1965 | while test "x$ac_lo" != "x$ac_hi"; do | |
1966 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
1967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1968 | /* end confdefs.h. */ | |
1969 | $4 | |
1970 | int | |
1971 | main () | |
1972 | { | |
1973 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1974 | test_array [0] = 0; | |
1975 | return test_array [0]; | |
d9898ee8 | 1976 | |
b0322a85 CE |
1977 | ; |
1978 | return 0; | |
1979 | } | |
1980 | _ACEOF | |
1981 | if ac_fn_c_try_compile "$LINENO"; then : | |
1982 | ac_hi=$ac_mid | |
1983 | else | |
1984 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
1985 | fi | |
1986 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1987 | done | |
1988 | case $ac_lo in #(( | |
1989 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
1990 | '') ac_retval=1 ;; | |
1991 | esac | |
1992 | else | |
1993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1994 | /* end confdefs.h. */ | |
1995 | $4 | |
1996 | static long int longval () { return $2; } | |
1997 | static unsigned long int ulongval () { return $2; } | |
1998 | #include <stdio.h> | |
1999 | #include <stdlib.h> | |
2000 | int | |
2001 | main () | |
2002 | { | |
d9898ee8 | 2003 | |
b0322a85 CE |
2004 | FILE *f = fopen ("conftest.val", "w"); |
2005 | if (! f) | |
2006 | return 1; | |
2007 | if (($2) < 0) | |
2008 | { | |
2009 | long int i = longval (); | |
2010 | if (i != ($2)) | |
2011 | return 1; | |
2012 | fprintf (f, "%ld", i); | |
2013 | } | |
2014 | else | |
2015 | { | |
2016 | unsigned long int i = ulongval (); | |
2017 | if (i != ($2)) | |
2018 | return 1; | |
2019 | fprintf (f, "%lu", i); | |
2020 | } | |
2021 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2022 | on some platforms. */ | |
2023 | return ferror (f) || fclose (f) != 0; | |
d9898ee8 | 2024 | |
b0322a85 CE |
2025 | ; |
2026 | return 0; | |
2027 | } | |
2028 | _ACEOF | |
2029 | if ac_fn_c_try_run "$LINENO"; then : | |
2030 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2031 | else | |
2032 | ac_retval=1 | |
2033 | fi | |
2034 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2035 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2036 | rm -f conftest.val | |
d9898ee8 | 2037 | |
b0322a85 CE |
2038 | fi |
2039 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2040 | as_fn_set_status $ac_retval | |
d9898ee8 | 2041 | |
b0322a85 CE |
2042 | } # ac_fn_c_compute_int |
2043 | cat >config.log <<_ACEOF | |
2044 | This file contains any messages produced by compilers while | |
2045 | running configure, to aid debugging if configure makes a mistake. | |
d9898ee8 | 2046 | |
b0322a85 CE |
2047 | It was created by libmd5 $as_me 1.21, which was |
2048 | generated by GNU Autoconf 2.69. Invocation command line was | |
d9898ee8 | 2049 | |
b0322a85 | 2050 | $ $0 $@ |
d9898ee8 | 2051 | |
b0322a85 CE |
2052 | _ACEOF |
2053 | exec 5>>config.log | |
2054 | { | |
2055 | cat <<_ASUNAME | |
2056 | ## --------- ## | |
2057 | ## Platform. ## | |
2058 | ## --------- ## | |
d9898ee8 | 2059 | |
b0322a85 CE |
2060 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2061 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2062 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2063 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2064 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
d9898ee8 | 2065 | |
b0322a85 CE |
2066 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2067 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
d9898ee8 | 2068 | |
b0322a85 CE |
2069 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2070 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2071 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2072 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2073 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2074 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2075 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
d9898ee8 | 2076 | |
b0322a85 | 2077 | _ASUNAME |
d9898ee8 | 2078 | |
b0322a85 CE |
2079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2080 | for as_dir in $PATH | |
2081 | do | |
2082 | IFS=$as_save_IFS | |
2083 | test -z "$as_dir" && as_dir=. | |
2084 | $as_echo "PATH: $as_dir" | |
2085 | done | |
2086 | IFS=$as_save_IFS | |
d9898ee8 | 2087 | |
b0322a85 | 2088 | } >&5 |
d9898ee8 | 2089 | |
b0322a85 | 2090 | cat >&5 <<_ACEOF |
d9898ee8 | 2091 | |
2092 | ||
b0322a85 CE |
2093 | ## ----------- ## |
2094 | ## Core tests. ## | |
2095 | ## ----------- ## | |
d9898ee8 | 2096 | |
b0322a85 CE |
2097 | _ACEOF |
2098 | ||
2099 | ||
2100 | # Keep a trace of the command line. | |
2101 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2102 | # Strip out --silent because we don't want to record it for future runs. | |
2103 | # Also quote any args containing shell meta-characters. | |
2104 | # Make two passes to allow for proper duplicate-argument suppression. | |
2105 | ac_configure_args= | |
2106 | ac_configure_args0= | |
2107 | ac_configure_args1= | |
2108 | ac_must_keep_next=false | |
2109 | for ac_pass in 1 2 | |
2110 | do | |
2111 | for ac_arg | |
2112 | do | |
2113 | case $ac_arg in | |
2114 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2115 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2116 | | -silent | --silent | --silen | --sile | --sil) | |
2117 | continue ;; | |
2118 | *\'*) | |
2119 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2120 | esac | |
2121 | case $ac_pass in | |
2122 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2123 | 2) | |
2124 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2125 | if test $ac_must_keep_next = true; then | |
2126 | ac_must_keep_next=false # Got value, back to normal. | |
2127 | else | |
2128 | case $ac_arg in | |
2129 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2130 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2131 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2132 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2133 | case "$ac_configure_args0 " in | |
2134 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2135 | esac | |
2136 | ;; | |
2137 | -* ) ac_must_keep_next=true ;; | |
2138 | esac | |
2139 | fi | |
2140 | as_fn_append ac_configure_args " '$ac_arg'" | |
2141 | ;; | |
2142 | esac | |
2143 | done | |
2144 | done | |
2145 | { ac_configure_args0=; unset ac_configure_args0;} | |
2146 | { ac_configure_args1=; unset ac_configure_args1;} | |
2147 | ||
2148 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2149 | # config.log. We remove comments because anyway the quotes in there | |
2150 | # would cause problems or look ugly. | |
2151 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2152 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2153 | trap 'exit_status=$? | |
2154 | # Save into config.log some information that might help in debugging. | |
2155 | { | |
2156 | echo | |
2157 | ||
2158 | $as_echo "## ---------------- ## | |
2159 | ## Cache variables. ## | |
2160 | ## ---------------- ##" | |
2161 | echo | |
2162 | # The following way of writing the cache mishandles newlines in values, | |
2163 | ( | |
2164 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2165 | eval ac_val=\$$ac_var | |
2166 | case $ac_val in #( | |
2167 | *${as_nl}*) | |
2168 | case $ac_var in #( | |
2169 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2170 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2171 | esac | |
2172 | case $ac_var in #( | |
2173 | _ | IFS | as_nl) ;; #( | |
2174 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2175 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2176 | esac ;; | |
2177 | esac | |
2178 | done | |
2179 | (set) 2>&1 | | |
2180 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2181 | *${as_nl}ac_space=\ *) | |
2182 | sed -n \ | |
2183 | "s/'\''/'\''\\\\'\'''\''/g; | |
2184 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2185 | ;; #( | |
2186 | *) | |
2187 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2188 | ;; | |
2189 | esac | | |
2190 | sort | |
2191 | ) | |
2192 | echo | |
2193 | ||
2194 | $as_echo "## ----------------- ## | |
2195 | ## Output variables. ## | |
2196 | ## ----------------- ##" | |
2197 | echo | |
2198 | for ac_var in $ac_subst_vars | |
2199 | do | |
2200 | eval ac_val=\$$ac_var | |
2201 | case $ac_val in | |
2202 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2203 | esac | |
2204 | $as_echo "$ac_var='\''$ac_val'\''" | |
2205 | done | sort | |
2206 | echo | |
2207 | ||
2208 | if test -n "$ac_subst_files"; then | |
2209 | $as_echo "## ------------------- ## | |
2210 | ## File substitutions. ## | |
2211 | ## ------------------- ##" | |
2212 | echo | |
2213 | for ac_var in $ac_subst_files | |
2214 | do | |
2215 | eval ac_val=\$$ac_var | |
2216 | case $ac_val in | |
2217 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2218 | esac | |
2219 | $as_echo "$ac_var='\''$ac_val'\''" | |
2220 | done | sort | |
2221 | echo | |
2222 | fi | |
2223 | ||
2224 | if test -s confdefs.h; then | |
2225 | $as_echo "## ----------- ## | |
2226 | ## confdefs.h. ## | |
2227 | ## ----------- ##" | |
2228 | echo | |
2229 | cat confdefs.h | |
2230 | echo | |
2231 | fi | |
2232 | test "$ac_signal" != 0 && | |
2233 | $as_echo "$as_me: caught signal $ac_signal" | |
2234 | $as_echo "$as_me: exit $exit_status" | |
2235 | } >&5 | |
2236 | rm -f core *.core core.conftest.* && | |
2237 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2238 | exit $exit_status | |
2239 | ' 0 | |
2240 | for ac_signal in 1 2 13 15; do | |
2241 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2242 | done | |
2243 | ac_signal=0 | |
2244 | ||
2245 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2246 | rm -f -r conftest* confdefs.h | |
2247 | ||
2248 | $as_echo "/* confdefs.h */" > confdefs.h | |
2249 | ||
2250 | # Predefined preprocessor variables. | |
2251 | ||
2252 | cat >>confdefs.h <<_ACEOF | |
2253 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2254 | _ACEOF | |
2255 | ||
2256 | cat >>confdefs.h <<_ACEOF | |
2257 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2258 | _ACEOF | |
2259 | ||
2260 | cat >>confdefs.h <<_ACEOF | |
2261 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2262 | _ACEOF | |
2263 | ||
2264 | cat >>confdefs.h <<_ACEOF | |
2265 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2266 | _ACEOF | |
2267 | ||
2268 | cat >>confdefs.h <<_ACEOF | |
2269 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2270 | _ACEOF | |
2271 | ||
2272 | cat >>confdefs.h <<_ACEOF | |
2273 | #define PACKAGE_URL "$PACKAGE_URL" | |
2274 | _ACEOF | |
2275 | ||
2276 | ||
2277 | # Let the site file select an alternate cache file if it wants to. | |
2278 | # Prefer an explicitly selected file to automatically selected ones. | |
2279 | ac_site_file1=NONE | |
2280 | ac_site_file2=NONE | |
2281 | if test -n "$CONFIG_SITE"; then | |
2282 | # We do not want a PATH search for config.site. | |
2283 | case $CONFIG_SITE in #(( | |
2284 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2285 | */*) ac_site_file1=$CONFIG_SITE;; | |
2286 | *) ac_site_file1=./$CONFIG_SITE;; | |
2287 | esac | |
2288 | elif test "x$prefix" != xNONE; then | |
2289 | ac_site_file1=$prefix/share/config.site | |
2290 | ac_site_file2=$prefix/etc/config.site | |
2291 | else | |
2292 | ac_site_file1=$ac_default_prefix/share/config.site | |
2293 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2294 | fi | |
2295 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2296 | do | |
2297 | test "x$ac_site_file" = xNONE && continue | |
2298 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2299 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2300 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2301 | sed 's/^/| /' "$ac_site_file" >&5 | |
2302 | . "$ac_site_file" \ | |
2303 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2304 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2305 | as_fn_error $? "failed to load site script $ac_site_file | |
2306 | See \`config.log' for more details" "$LINENO" 5; } | |
2307 | fi | |
2308 | done | |
2309 | ||
2310 | if test -r "$cache_file"; then | |
2311 | # Some versions of bash will fail to source /dev/null (special files | |
2312 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2313 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2314 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2315 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2316 | case $cache_file in | |
2317 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2318 | *) . "./$cache_file";; | |
2319 | esac | |
2320 | fi | |
2321 | else | |
2322 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2323 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2324 | >$cache_file | |
2325 | fi | |
2326 | ||
2327 | # Check that the precious variables saved in the cache have kept the same | |
2328 | # value. | |
2329 | ac_cache_corrupted=false | |
2330 | for ac_var in $ac_precious_vars; do | |
2331 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2332 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2333 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2334 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2335 | case $ac_old_set,$ac_new_set in | |
2336 | set,) | |
2337 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2338 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2339 | ac_cache_corrupted=: ;; | |
2340 | ,set) | |
2341 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2342 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2343 | ac_cache_corrupted=: ;; | |
2344 | ,);; | |
2345 | *) | |
2346 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2347 | # differences in whitespace do not lead to failure. | |
2348 | ac_old_val_w=`echo x $ac_old_val` | |
2349 | ac_new_val_w=`echo x $ac_new_val` | |
2350 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2351 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2352 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2353 | ac_cache_corrupted=: | |
2354 | else | |
2355 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2356 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2357 | eval $ac_var=\$ac_old_val | |
2358 | fi | |
2359 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2360 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2361 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2362 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2363 | fi;; | |
2364 | esac | |
2365 | # Pass precious variables to config.status. | |
2366 | if test "$ac_new_set" = set; then | |
2367 | case $ac_new_val in | |
2368 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2369 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2370 | esac | |
2371 | case " $ac_configure_args " in | |
2372 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2373 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2374 | esac | |
2375 | fi | |
2376 | done | |
2377 | if $ac_cache_corrupted; then | |
2378 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2379 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2380 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2381 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2382 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2383 | fi | |
2384 | ## -------------------- ## | |
2385 | ## Main body of script. ## | |
2386 | ## -------------------- ## | |
d9898ee8 | 2387 | |
dd184caf | 2388 | ac_ext=c |
2389 | ac_cpp='$CPP $CPPFLAGS' | |
2390 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2391 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2392 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 2393 | |
2394 | ||
2395 | ||
2396 | >confdefs.h # Kill PACKAGE_ macros | |
2397 | ||
2398 | ||
d9898ee8 | 2399 | ac_aux_dir= |
b0322a85 | 2400 | for ac_dir in ../.. "$srcdir"/../..; do |
dd184caf | 2401 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 | 2402 | ac_aux_dir=$ac_dir |
2403 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2404 | break | |
dd184caf | 2405 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 | 2406 | ac_aux_dir=$ac_dir |
2407 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2408 | break | |
dd184caf | 2409 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 | 2410 | ac_aux_dir=$ac_dir |
2411 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2412 | break | |
2413 | fi | |
2414 | done | |
2415 | if test -z "$ac_aux_dir"; then | |
b0322a85 | 2416 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 |
d9898ee8 | 2417 | fi |
dd184caf | 2418 | |
2419 | # These three variables are undocumented and unsupported, | |
2420 | # and are intended to be withdrawn in a future Autoconf release. | |
2421 | # They can cause serious problems if a builder's source tree is in a directory | |
2422 | # whose full name contains unusual characters. | |
2423 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2424 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2425 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2426 | ||
d9898ee8 | 2427 | |
b0322a85 CE |
2428 | ac_config_headers="$ac_config_headers config.h" |
2429 | ||
2430 | am__api_version='1.13' | |
2431 | ||
d9898ee8 | 2432 | # Find a good install program. We prefer a C program (faster), |
2433 | # so one script is as good as another. But avoid the broken or | |
2434 | # incompatible versions: | |
2435 | # SysV /etc/install, /usr/sbin/install | |
2436 | # SunOS /usr/etc/install | |
2437 | # IRIX /sbin/install | |
2438 | # AIX /bin/install | |
2439 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2440 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2441 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2442 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2443 | # OS/2's system install, which has a completely different semantic | |
2444 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 | 2445 | # Reject install programs that cannot install multiple files. |
b0322a85 | 2446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
8d138742 | 2447 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
d9898ee8 | 2448 | if test -z "$INSTALL"; then |
b0322a85 | 2449 | if ${ac_cv_path_install+:} false; then : |
8d138742 | 2450 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2451 | else |
2452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2453 | for as_dir in $PATH | |
2454 | do | |
2455 | IFS=$as_save_IFS | |
2456 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2457 | # Account for people who put trailing slashes in PATH elements. |
2458 | case $as_dir/ in #(( | |
2459 | ./ | .// | /[cC]/* | \ | |
d9898ee8 | 2460 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
b0322a85 | 2461 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
d9898ee8 | 2462 | /usr/ucb/* ) ;; |
2463 | *) | |
2464 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2465 | # Don't use installbsd from OSF since it installs stuff as root | |
2466 | # by default. | |
2467 | for ac_prog in ginstall scoinst install; do | |
2468 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b0322a85 | 2469 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
d9898ee8 | 2470 | if test $ac_prog = install && |
2471 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2472 | # AIX install. It has an incompatible calling convention. | |
2473 | : | |
2474 | elif test $ac_prog = install && | |
2475 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2476 | # program-specific install script used by HP pwplus--don't use. | |
2477 | : | |
2478 | else | |
8d138742 CE |
2479 | rm -rf conftest.one conftest.two conftest.dir |
2480 | echo one > conftest.one | |
2481 | echo two > conftest.two | |
2482 | mkdir conftest.dir | |
2483 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2484 | test -s conftest.one && test -s conftest.two && | |
2485 | test -s conftest.dir/conftest.one && | |
2486 | test -s conftest.dir/conftest.two | |
2487 | then | |
2488 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2489 | break 3 | |
2490 | fi | |
d9898ee8 | 2491 | fi |
2492 | fi | |
2493 | done | |
2494 | done | |
2495 | ;; | |
2496 | esac | |
8d138742 | 2497 | |
b0322a85 | 2498 | done |
dd184caf | 2499 | IFS=$as_save_IFS |
d9898ee8 | 2500 | |
8d138742 | 2501 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2502 | |
2503 | fi | |
2504 | if test "${ac_cv_path_install+set}" = set; then | |
2505 | INSTALL=$ac_cv_path_install | |
2506 | else | |
dd184caf | 2507 | # As a last resort, use the slow shell script. Don't cache a |
2508 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2509 | # break other packages using the cache if that directory is |
dd184caf | 2510 | # removed, or if the value is a relative name. |
d9898ee8 | 2511 | INSTALL=$ac_install_sh |
2512 | fi | |
2513 | fi | |
b0322a85 | 2514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
8d138742 | 2515 | $as_echo "$INSTALL" >&6; } |
d9898ee8 | 2516 | |
2517 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2518 | # It thinks the first close brace ends the variable substitution. | |
2519 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2520 | ||
2521 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2522 | ||
2523 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2524 | ||
b0322a85 | 2525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
8d138742 | 2526 | $as_echo_n "checking whether build environment is sane... " >&6; } |
8d138742 CE |
2527 | # Reject unsafe characters in $srcdir or the absolute working directory |
2528 | # name. Accept space and tab only in the latter. | |
2529 | am_lf=' | |
2530 | ' | |
2531 | case `pwd` in | |
2532 | *[\\\"\#\$\&\'\`$am_lf]*) | |
b0322a85 | 2533 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
8d138742 CE |
2534 | esac |
2535 | case $srcdir in | |
2536 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
b0322a85 | 2537 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
8d138742 CE |
2538 | esac |
2539 | ||
b0322a85 | 2540 | # Do 'set' in a subshell so we don't clobber the current shell's |
d9898ee8 | 2541 | # arguments. Must try -L first in case configure is actually a |
2542 | # symlink; some systems play weird games with the mod time of symlinks | |
2543 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2544 | # directory). | |
2545 | if ( | |
b0322a85 CE |
2546 | am_has_slept=no |
2547 | for am_try in 1 2; do | |
2548 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2549 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2550 | if test "$*" = "X"; then | |
2551 | # -L didn't work. | |
2552 | set X `ls -t "$srcdir/configure" conftest.file` | |
2553 | fi | |
2554 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2555 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2556 | ||
2557 | # If neither matched, then we have a broken ls. This can happen | |
2558 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2559 | # broken ls alias from the environment. This has actually | |
2560 | # happened. Such a system could not be considered "sane". | |
2561 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2562 | alias in your environment" "$LINENO" 5 | |
2563 | fi | |
2564 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2565 | break | |
2566 | fi | |
2567 | # Just in case. | |
2568 | sleep 1 | |
2569 | am_has_slept=yes | |
2570 | done | |
d9898ee8 | 2571 | test "$2" = conftest.file |
2572 | ) | |
2573 | then | |
2574 | # Ok. | |
2575 | : | |
2576 | else | |
b0322a85 CE |
2577 | as_fn_error $? "newly created file is older than distributed files! |
2578 | Check your system clock" "$LINENO" 5 | |
d9898ee8 | 2579 | fi |
b0322a85 | 2580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2581 | $as_echo "yes" >&6; } |
b0322a85 CE |
2582 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2583 | # generated files are strictly newer. | |
2584 | am_sleep_pid= | |
2585 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2586 | ( sleep 1 ) & | |
2587 | am_sleep_pid=$! | |
2588 | fi | |
2589 | ||
2590 | rm -f conftest.file | |
2591 | ||
d9898ee8 | 2592 | test "$program_prefix" != NONE && |
dd184caf | 2593 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 | 2594 | # Use a double $ so make ignores it. |
2595 | test "$program_suffix" != NONE && | |
dd184caf | 2596 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
8d138742 | 2597 | # Double any \ or $. |
d9898ee8 | 2598 | # By default was `s,x,x', remove it if useless. |
8d138742 CE |
2599 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2600 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
d9898ee8 | 2601 | |
2602 | # expand $ac_aux_dir to an absolute path | |
2603 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2604 | ||
8d138742 CE |
2605 | if test x"${MISSING+set}" != xset; then |
2606 | case $am_aux_dir in | |
2607 | *\ * | *\ *) | |
2608 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2609 | *) | |
2610 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2611 | esac | |
2612 | fi | |
d9898ee8 | 2613 | # Use eval to expand $SHELL |
b0322a85 CE |
2614 | if eval "$MISSING --is-lightweight"; then |
2615 | am_missing_run="$MISSING " | |
d9898ee8 | 2616 | else |
2617 | am_missing_run= | |
b0322a85 CE |
2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2619 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
8d138742 CE |
2620 | fi |
2621 | ||
2622 | if test x"${install_sh}" != xset; then | |
2623 | case $am_aux_dir in | |
2624 | *\ * | *\ *) | |
2625 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2626 | *) | |
2627 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2628 | esac | |
2629 | fi | |
2630 | ||
b0322a85 CE |
2631 | # Installed binaries are usually stripped using 'strip' when the user |
2632 | # run "make install-strip". However 'strip' might not be the right | |
8d138742 | 2633 | # tool to use in cross-compilation environments, therefore Automake |
b0322a85 | 2634 | # will honor the 'STRIP' environment variable to overrule this program. |
8d138742 CE |
2635 | if test "$cross_compiling" != no; then |
2636 | if test -n "$ac_tool_prefix"; then | |
2637 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2638 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 2639 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2640 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2641 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 CE |
2642 | $as_echo_n "(cached) " >&6 |
2643 | else | |
2644 | if test -n "$STRIP"; then | |
2645 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2646 | else | |
2647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2648 | for as_dir in $PATH | |
2649 | do | |
2650 | IFS=$as_save_IFS | |
2651 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2652 | for ac_exec_ext in '' $ac_executable_extensions; do |
2653 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2654 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 2655 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2656 | break 2 |
2657 | fi | |
2658 | done | |
b0322a85 | 2659 | done |
8d138742 CE |
2660 | IFS=$as_save_IFS |
2661 | ||
2662 | fi | |
2663 | fi | |
2664 | STRIP=$ac_cv_prog_STRIP | |
2665 | if test -n "$STRIP"; then | |
b0322a85 | 2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 CE |
2667 | $as_echo "$STRIP" >&6; } |
2668 | else | |
b0322a85 | 2669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2670 | $as_echo "no" >&6; } |
d9898ee8 | 2671 | fi |
2672 | ||
8d138742 CE |
2673 | |
2674 | fi | |
2675 | if test -z "$ac_cv_prog_STRIP"; then | |
2676 | ac_ct_STRIP=$STRIP | |
2677 | # Extract the first word of "strip", so it can be a program name with args. | |
2678 | set dummy strip; ac_word=$2 | |
b0322a85 | 2679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2680 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2681 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 CE |
2682 | $as_echo_n "(cached) " >&6 |
2683 | else | |
2684 | if test -n "$ac_ct_STRIP"; then | |
2685 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2686 | else | |
2687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2688 | for as_dir in $PATH | |
2689 | do | |
2690 | IFS=$as_save_IFS | |
2691 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2692 | for ac_exec_ext in '' $ac_executable_extensions; do |
2693 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2694 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 2695 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2696 | break 2 |
2697 | fi | |
2698 | done | |
b0322a85 | 2699 | done |
8d138742 CE |
2700 | IFS=$as_save_IFS |
2701 | ||
2702 | fi | |
2703 | fi | |
2704 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2705 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 2706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 CE |
2707 | $as_echo "$ac_ct_STRIP" >&6; } |
2708 | else | |
b0322a85 | 2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2710 | $as_echo "no" >&6; } |
2711 | fi | |
2712 | ||
2713 | if test "x$ac_ct_STRIP" = x; then | |
2714 | STRIP=":" | |
2715 | else | |
2716 | case $cross_compiling:$ac_tool_warned in | |
2717 | yes:) | |
b0322a85 | 2718 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
2719 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2720 | ac_tool_warned=yes ;; | |
2721 | esac | |
2722 | STRIP=$ac_ct_STRIP | |
2723 | fi | |
2724 | else | |
2725 | STRIP="$ac_cv_prog_STRIP" | |
2726 | fi | |
2727 | ||
2728 | fi | |
2729 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2730 | ||
b0322a85 | 2731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
8d138742 | 2732 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
dd184caf | 2733 | if test -z "$MKDIR_P"; then |
b0322a85 | 2734 | if ${ac_cv_path_mkdir+:} false; then : |
8d138742 | 2735 | $as_echo_n "(cached) " >&6 |
dd184caf | 2736 | else |
2737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2738 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2739 | do | |
2740 | IFS=$as_save_IFS | |
2741 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 2742 | for ac_prog in mkdir gmkdir; do |
dd184caf | 2743 | for ac_exec_ext in '' $ac_executable_extensions; do |
b0322a85 | 2744 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
dd184caf | 2745 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2746 | 'mkdir (GNU coreutils) '* | \ | |
2747 | 'mkdir (coreutils) '* | \ | |
2748 | 'mkdir (fileutils) '4.1*) | |
2749 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2750 | break 3;; | |
2751 | esac | |
2752 | done | |
2753 | done | |
b0322a85 | 2754 | done |
dd184caf | 2755 | IFS=$as_save_IFS |
2756 | ||
2757 | fi | |
2758 | ||
b0322a85 | 2759 | test -d ./--version && rmdir ./--version |
dd184caf | 2760 | if test "${ac_cv_path_mkdir+set}" = set; then |
2761 | MKDIR_P="$ac_cv_path_mkdir -p" | |
d9898ee8 | 2762 | else |
dd184caf | 2763 | # As a last resort, use the slow shell script. Don't cache a |
2764 | # value for MKDIR_P within a source directory, because that will | |
2765 | # break other packages using the cache if that directory is | |
2766 | # removed, or if the value is a relative name. | |
dd184caf | 2767 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 | 2768 | fi |
2769 | fi | |
b0322a85 | 2770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
8d138742 | 2771 | $as_echo "$MKDIR_P" >&6; } |
dd184caf | 2772 | |
d9898ee8 | 2773 | for ac_prog in gawk mawk nawk awk |
2774 | do | |
2775 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2776 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2778 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2779 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 2780 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2781 | else |
2782 | if test -n "$AWK"; then | |
2783 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2784 | else | |
2785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2786 | for as_dir in $PATH | |
2787 | do | |
2788 | IFS=$as_save_IFS | |
2789 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2790 | for ac_exec_ext in '' $ac_executable_extensions; do |
2791 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2792 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 2793 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2794 | break 2 |
2795 | fi | |
2796 | done | |
b0322a85 | 2797 | done |
dd184caf | 2798 | IFS=$as_save_IFS |
d9898ee8 | 2799 | |
2800 | fi | |
2801 | fi | |
2802 | AWK=$ac_cv_prog_AWK | |
2803 | if test -n "$AWK"; then | |
b0322a85 | 2804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 2805 | $as_echo "$AWK" >&6; } |
d9898ee8 | 2806 | else |
b0322a85 | 2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2808 | $as_echo "no" >&6; } |
d9898ee8 | 2809 | fi |
2810 | ||
dd184caf | 2811 | |
d9898ee8 | 2812 | test -n "$AWK" && break |
2813 | done | |
2814 | ||
b0322a85 | 2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
8d138742 CE |
2816 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2817 | set x ${MAKE-make} | |
2818 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b0322a85 | 2819 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
8d138742 | 2820 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2821 | else |
2822 | cat >conftest.make <<\_ACEOF | |
dd184caf | 2823 | SHELL = /bin/sh |
d9898ee8 | 2824 | all: |
dd184caf | 2825 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 | 2826 | _ACEOF |
b0322a85 | 2827 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
dd184caf | 2828 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2829 | *@@@%%%=?*=@@@%%%*) | |
2830 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2831 | *) | |
2832 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2833 | esac | |
d9898ee8 | 2834 | rm -f conftest.make |
2835 | fi | |
dd184caf | 2836 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
b0322a85 | 2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2838 | $as_echo "yes" >&6; } |
d9898ee8 | 2839 | SET_MAKE= |
2840 | else | |
b0322a85 | 2841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2842 | $as_echo "no" >&6; } |
d9898ee8 | 2843 | SET_MAKE="MAKE=${MAKE-make}" |
2844 | fi | |
2845 | ||
2846 | rm -rf .tst 2>/dev/null | |
2847 | mkdir .tst 2>/dev/null | |
2848 | if test -d .tst; then | |
2849 | am__leading_dot=. | |
2850 | else | |
2851 | am__leading_dot=_ | |
2852 | fi | |
2853 | rmdir .tst 2>/dev/null | |
2854 | ||
b0322a85 CE |
2855 | # Check whether --enable-silent-rules was given. |
2856 | if test "${enable_silent_rules+set}" = set; then : | |
2857 | enableval=$enable_silent_rules; | |
2858 | fi | |
2859 | ||
2860 | case $enable_silent_rules in # ((( | |
2861 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2862 | no) AM_DEFAULT_VERBOSITY=1;; | |
2863 | *) AM_DEFAULT_VERBOSITY=1;; | |
2864 | esac | |
2865 | am_make=${MAKE-make} | |
2866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2867 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2868 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2869 | $as_echo_n "(cached) " >&6 | |
2870 | else | |
2871 | if $as_echo 'TRUE=$(BAR$(V)) | |
2872 | BAR0=false | |
2873 | BAR1=true | |
2874 | V=1 | |
2875 | am__doit: | |
2876 | @$(TRUE) | |
2877 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2878 | am_cv_make_support_nested_variables=yes | |
2879 | else | |
2880 | am_cv_make_support_nested_variables=no | |
2881 | fi | |
2882 | fi | |
2883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2884 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2885 | if test $am_cv_make_support_nested_variables = yes; then | |
2886 | AM_V='$(V)' | |
2887 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2888 | else | |
2889 | AM_V=$AM_DEFAULT_VERBOSITY | |
2890 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2891 | fi | |
2892 | AM_BACKSLASH='\' | |
2893 | ||
dd184caf | 2894 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2895 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2896 | # is not polluted with repeated "-I." | |
2897 | am__isrc=' -I$(srcdir)' | |
2898 | # test to see if srcdir already configured | |
2899 | if test -f $srcdir/config.status; then | |
b0322a85 | 2900 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
dd184caf | 2901 | fi |
d9898ee8 | 2902 | fi |
2903 | ||
2904 | # test whether we have cygpath | |
2905 | if test -z "$CYGPATH_W"; then | |
2906 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2907 | CYGPATH_W='cygpath -w' | |
2908 | else | |
2909 | CYGPATH_W=echo | |
2910 | fi | |
2911 | fi | |
2912 | ||
2913 | ||
2914 | # Define the identity of the package. | |
2915 | PACKAGE='libmd5' | |
2916 | VERSION='1.21' | |
2917 | ||
2918 | ||
2919 | # Some tools Automake needs. | |
2920 | ||
2921 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2922 | ||
2923 | ||
2924 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2925 | ||
2926 | ||
2927 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2928 | ||
2929 | ||
2930 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2931 | ||
2932 | ||
2933 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2934 | ||
b0322a85 CE |
2935 | # For better backward compatibility. To be removed once Automake 1.9.x |
2936 | # dies out for good. For more background, see: | |
2937 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2938 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2939 | mkdir_p='$(MKDIR_P)' | |
2940 | ||
d9898ee8 | 2941 | # We need awk for the "check" target. The system "awk" is bad on |
2942 | # some platforms. | |
b0322a85 CE |
2943 | # Always define AMTAR for backward compatibility. Yes, it's still used |
2944 | # in the wild :-( We should find a proper way to deprecate it ... | |
2945 | AMTAR='$${TAR-tar}' | |
2946 | ||
d9898ee8 | 2947 | |
b0322a85 CE |
2948 | # We'll loop over all known methods to create a tar archive until one works. |
2949 | _am_tools='gnutar pax cpio none' | |
2950 | ||
2951 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
d9898ee8 | 2952 | |
d9898ee8 | 2953 | |
2954 | ||
2955 | ||
2956 | ||
2957 | ||
2958 | ||
dd184caf | 2959 | if test -d ${srcdir}/../libhmac; then |
d9898ee8 | 2960 | HMACC_TRUE= |
2961 | HMACC_FALSE='#' | |
2962 | else | |
2963 | HMACC_TRUE='#' | |
2964 | HMACC_FALSE= | |
2965 | fi | |
2966 | ||
2967 | ||
2968 | for ac_prog in gawk mawk nawk awk | |
2969 | do | |
2970 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2971 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2973 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2974 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 2975 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2976 | else |
2977 | if test -n "$AWK"; then | |
2978 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2979 | else | |
2980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2981 | for as_dir in $PATH | |
2982 | do | |
2983 | IFS=$as_save_IFS | |
2984 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2985 | for ac_exec_ext in '' $ac_executable_extensions; do |
2986 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2987 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 2988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2989 | break 2 |
2990 | fi | |
2991 | done | |
b0322a85 | 2992 | done |
dd184caf | 2993 | IFS=$as_save_IFS |
d9898ee8 | 2994 | |
2995 | fi | |
2996 | fi | |
2997 | AWK=$ac_cv_prog_AWK | |
2998 | if test -n "$AWK"; then | |
b0322a85 | 2999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 3000 | $as_echo "$AWK" >&6; } |
d9898ee8 | 3001 | else |
b0322a85 | 3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3003 | $as_echo "no" >&6; } |
d9898ee8 | 3004 | fi |
3005 | ||
dd184caf | 3006 | |
d9898ee8 | 3007 | test -n "$AWK" && break |
3008 | done | |
3009 | ||
d9898ee8 | 3010 | |
b0322a85 | 3011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
8d138742 | 3012 | $as_echo_n "checking whether ln -s works... " >&6; } |
d9898ee8 | 3013 | LN_S=$as_ln_s |
3014 | if test "$LN_S" = "ln -s"; then | |
b0322a85 | 3015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 3016 | $as_echo "yes" >&6; } |
d9898ee8 | 3017 | else |
b0322a85 | 3018 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
8d138742 | 3019 | $as_echo "no, using $LN_S" >&6; } |
d9898ee8 | 3020 | fi |
3021 | ||
3022 | ac_ext=c | |
3023 | ac_cpp='$CPP $CPPFLAGS' | |
3024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3027 | if test -n "$ac_tool_prefix"; then | |
3028 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3029 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b0322a85 | 3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3031 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3032 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3033 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3034 | else |
3035 | if test -n "$CC"; then | |
3036 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3037 | else | |
3038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3039 | for as_dir in $PATH | |
3040 | do | |
3041 | IFS=$as_save_IFS | |
3042 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3043 | for ac_exec_ext in '' $ac_executable_extensions; do |
3044 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3045 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
b0322a85 | 3046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3047 | break 2 |
3048 | fi | |
3049 | done | |
b0322a85 | 3050 | done |
dd184caf | 3051 | IFS=$as_save_IFS |
d9898ee8 | 3052 | |
3053 | fi | |
3054 | fi | |
3055 | CC=$ac_cv_prog_CC | |
3056 | if test -n "$CC"; then | |
b0322a85 | 3057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3058 | $as_echo "$CC" >&6; } |
d9898ee8 | 3059 | else |
b0322a85 | 3060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3061 | $as_echo "no" >&6; } |
d9898ee8 | 3062 | fi |
3063 | ||
dd184caf | 3064 | |
d9898ee8 | 3065 | fi |
3066 | if test -z "$ac_cv_prog_CC"; then | |
3067 | ac_ct_CC=$CC | |
3068 | # Extract the first word of "gcc", so it can be a program name with args. | |
3069 | set dummy gcc; ac_word=$2 | |
b0322a85 | 3070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3071 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3072 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 3073 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3074 | else |
3075 | if test -n "$ac_ct_CC"; then | |
3076 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3077 | else | |
3078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3079 | for as_dir in $PATH | |
3080 | do | |
3081 | IFS=$as_save_IFS | |
3082 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3083 | for ac_exec_ext in '' $ac_executable_extensions; do |
3084 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3085 | ac_cv_prog_ac_ct_CC="gcc" |
b0322a85 | 3086 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3087 | break 2 |
3088 | fi | |
3089 | done | |
b0322a85 | 3090 | done |
dd184caf | 3091 | IFS=$as_save_IFS |
d9898ee8 | 3092 | |
3093 | fi | |
3094 | fi | |
3095 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3096 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3098 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3099 | else |
b0322a85 | 3100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3101 | $as_echo "no" >&6; } |
d9898ee8 | 3102 | fi |
3103 | ||
dd184caf | 3104 | if test "x$ac_ct_CC" = x; then |
3105 | CC="" | |
3106 | else | |
3107 | case $cross_compiling:$ac_tool_warned in | |
3108 | yes:) | |
b0322a85 | 3109 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3110 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3111 | ac_tool_warned=yes ;; |
3112 | esac | |
3113 | CC=$ac_ct_CC | |
3114 | fi | |
d9898ee8 | 3115 | else |
3116 | CC="$ac_cv_prog_CC" | |
3117 | fi | |
3118 | ||
3119 | if test -z "$CC"; then | |
dd184caf | 3120 | if test -n "$ac_tool_prefix"; then |
3121 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 3122 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b0322a85 | 3123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3124 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3125 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3126 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3127 | else |
3128 | if test -n "$CC"; then | |
3129 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3130 | else | |
3131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3132 | for as_dir in $PATH | |
3133 | do | |
3134 | IFS=$as_save_IFS | |
3135 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3136 | for ac_exec_ext in '' $ac_executable_extensions; do |
3137 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3138 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
b0322a85 | 3139 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3140 | break 2 |
3141 | fi | |
3142 | done | |
b0322a85 | 3143 | done |
dd184caf | 3144 | IFS=$as_save_IFS |
d9898ee8 | 3145 | |
3146 | fi | |
3147 | fi | |
3148 | CC=$ac_cv_prog_CC | |
3149 | if test -n "$CC"; then | |
b0322a85 | 3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3151 | $as_echo "$CC" >&6; } |
d9898ee8 | 3152 | else |
b0322a85 | 3153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3154 | $as_echo "no" >&6; } |
d9898ee8 | 3155 | fi |
3156 | ||
d9898ee8 | 3157 | |
dd184caf | 3158 | fi |
d9898ee8 | 3159 | fi |
3160 | if test -z "$CC"; then | |
3161 | # Extract the first word of "cc", so it can be a program name with args. | |
3162 | set dummy cc; ac_word=$2 | |
b0322a85 | 3163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3164 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3165 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3166 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3167 | else |
3168 | if test -n "$CC"; then | |
3169 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3170 | else | |
3171 | ac_prog_rejected=no | |
3172 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3173 | for as_dir in $PATH | |
3174 | do | |
3175 | IFS=$as_save_IFS | |
3176 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3177 | for ac_exec_ext in '' $ac_executable_extensions; do |
3178 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3179 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3180 | ac_prog_rejected=yes | |
3181 | continue | |
3182 | fi | |
3183 | ac_cv_prog_CC="cc" | |
b0322a85 | 3184 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3185 | break 2 |
3186 | fi | |
3187 | done | |
b0322a85 | 3188 | done |
dd184caf | 3189 | IFS=$as_save_IFS |
d9898ee8 | 3190 | |
3191 | if test $ac_prog_rejected = yes; then | |
3192 | # We found a bogon in the path, so make sure we never use it. | |
3193 | set dummy $ac_cv_prog_CC | |
3194 | shift | |
3195 | if test $# != 0; then | |
3196 | # We chose a different compiler from the bogus one. | |
3197 | # However, it has the same basename, so the bogon will be chosen | |
3198 | # first if we set CC to just the basename; use the full file name. | |
3199 | shift | |
3200 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3201 | fi | |
3202 | fi | |
3203 | fi | |
3204 | fi | |
3205 | CC=$ac_cv_prog_CC | |
3206 | if test -n "$CC"; then | |
b0322a85 | 3207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3208 | $as_echo "$CC" >&6; } |
d9898ee8 | 3209 | else |
b0322a85 | 3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3211 | $as_echo "no" >&6; } |
d9898ee8 | 3212 | fi |
3213 | ||
dd184caf | 3214 | |
d9898ee8 | 3215 | fi |
3216 | if test -z "$CC"; then | |
3217 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 3218 | for ac_prog in cl.exe |
d9898ee8 | 3219 | do |
3220 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3221 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 3222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3223 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3224 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3225 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3226 | else |
3227 | if test -n "$CC"; then | |
3228 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3229 | else | |
3230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3231 | for as_dir in $PATH | |
3232 | do | |
3233 | IFS=$as_save_IFS | |
3234 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3235 | for ac_exec_ext in '' $ac_executable_extensions; do |
3236 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3237 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
b0322a85 | 3238 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3239 | break 2 |
3240 | fi | |
3241 | done | |
b0322a85 | 3242 | done |
dd184caf | 3243 | IFS=$as_save_IFS |
d9898ee8 | 3244 | |
3245 | fi | |
3246 | fi | |
3247 | CC=$ac_cv_prog_CC | |
3248 | if test -n "$CC"; then | |
b0322a85 | 3249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3250 | $as_echo "$CC" >&6; } |
d9898ee8 | 3251 | else |
b0322a85 | 3252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3253 | $as_echo "no" >&6; } |
d9898ee8 | 3254 | fi |
3255 | ||
dd184caf | 3256 | |
d9898ee8 | 3257 | test -n "$CC" && break |
3258 | done | |
3259 | fi | |
3260 | if test -z "$CC"; then | |
3261 | ac_ct_CC=$CC | |
dd184caf | 3262 | for ac_prog in cl.exe |
d9898ee8 | 3263 | do |
3264 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3265 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3267 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3268 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 3269 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3270 | else |
3271 | if test -n "$ac_ct_CC"; then | |
3272 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3273 | else | |
3274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3275 | for as_dir in $PATH | |
3276 | do | |
3277 | IFS=$as_save_IFS | |
3278 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3279 | for ac_exec_ext in '' $ac_executable_extensions; do |
3280 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3281 | ac_cv_prog_ac_ct_CC="$ac_prog" |
b0322a85 | 3282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3283 | break 2 |
3284 | fi | |
3285 | done | |
b0322a85 | 3286 | done |
dd184caf | 3287 | IFS=$as_save_IFS |
d9898ee8 | 3288 | |
3289 | fi | |
3290 | fi | |
3291 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3292 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3294 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3295 | else |
b0322a85 | 3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3297 | $as_echo "no" >&6; } |
d9898ee8 | 3298 | fi |
3299 | ||
dd184caf | 3300 | |
d9898ee8 | 3301 | test -n "$ac_ct_CC" && break |
3302 | done | |
3303 | ||
dd184caf | 3304 | if test "x$ac_ct_CC" = x; then |
3305 | CC="" | |
3306 | else | |
3307 | case $cross_compiling:$ac_tool_warned in | |
3308 | yes:) | |
b0322a85 | 3309 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3310 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3311 | ac_tool_warned=yes ;; |
3312 | esac | |
3313 | CC=$ac_ct_CC | |
3314 | fi | |
d9898ee8 | 3315 | fi |
3316 | ||
3317 | fi | |
3318 | ||
3319 | ||
b0322a85 | 3320 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3321 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3322 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3323 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3324 | |
3325 | # Provide some information about the compiler. | |
b0322a85 | 3326 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
8d138742 CE |
3327 | set X $ac_compile |
3328 | ac_compiler=$2 | |
b0322a85 CE |
3329 | for ac_option in --version -v -V -qversion; do |
3330 | { { ac_try="$ac_compiler $ac_option >&5" | |
dd184caf | 3331 | case "(($ac_try" in |
3332 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3333 | *) ac_try_echo=$ac_try;; | |
3334 | esac | |
b0322a85 CE |
3335 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3336 | $as_echo "$ac_try_echo"; } >&5 | |
3337 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
d9898ee8 | 3338 | ac_status=$? |
b0322a85 CE |
3339 | if test -s conftest.err; then |
3340 | sed '10a\ | |
3341 | ... rest of stderr output deleted ... | |
3342 | 10q' conftest.err >conftest.er1 | |
3343 | cat conftest.er1 >&5 | |
3344 | fi | |
3345 | rm -f conftest.er1 conftest.err | |
3346 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3347 | test $ac_status = 0; } | |
3348 | done | |
d9898ee8 | 3349 | |
b0322a85 | 3350 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3351 | /* end confdefs.h. */ |
3352 | ||
3353 | int | |
3354 | main () | |
3355 | { | |
3356 | ||
3357 | ; | |
3358 | return 0; | |
3359 | } | |
3360 | _ACEOF | |
3361 | ac_clean_files_save=$ac_clean_files | |
8d138742 | 3362 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d9898ee8 | 3363 | # Try to create an executable without -o first, disregard a.out. |
3364 | # It will help us diagnose broken compilers, and finding out an intuition | |
3365 | # of exeext. | |
b0322a85 CE |
3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3367 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
8d138742 CE |
3368 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3369 | ||
3370 | # The possible output files: | |
3371 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3372 | ||
dd184caf | 3373 | ac_rmfiles= |
3374 | for ac_file in $ac_files | |
3375 | do | |
3376 | case $ac_file in | |
8d138742 | 3377 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
dd184caf | 3378 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3379 | esac | |
3380 | done | |
3381 | rm -f $ac_rmfiles | |
3382 | ||
b0322a85 | 3383 | if { { ac_try="$ac_link_default" |
dd184caf | 3384 | case "(($ac_try" in |
3385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3386 | *) ac_try_echo=$ac_try;; | |
3387 | esac | |
b0322a85 CE |
3388 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3389 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3390 | (eval "$ac_link_default") 2>&5 |
d9898ee8 | 3391 | ac_status=$? |
b0322a85 CE |
3392 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3393 | test $ac_status = 0; }; then : | |
dd184caf | 3394 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3395 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3396 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3397 | # so that the user can short-circuit this test for compilers unknown to | |
3398 | # Autoconf. | |
3399 | for ac_file in $ac_files '' | |
d9898ee8 | 3400 | do |
3401 | test -f "$ac_file" || continue | |
3402 | case $ac_file in | |
8d138742 | 3403 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
d9898ee8 | 3404 | ;; |
3405 | [ab].out ) | |
3406 | # We found the default executable, but exeext='' is most | |
3407 | # certainly right. | |
3408 | break;; | |
3409 | *.* ) | |
b0322a85 | 3410 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
dd184caf | 3411 | then :; else |
3412 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3413 | fi | |
3414 | # We set ac_cv_exeext here because the later test for it is not | |
3415 | # safe: cross compilers may not add the suffix if given an `-o' | |
3416 | # argument, so we may need to know it at that point already. | |
3417 | # Even if this section looks crufty: it has the advantage of | |
3418 | # actually working. | |
d9898ee8 | 3419 | break;; |
3420 | * ) | |
3421 | break;; | |
3422 | esac | |
3423 | done | |
dd184caf | 3424 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3425 | ||
d9898ee8 | 3426 | else |
dd184caf | 3427 | ac_file='' |
3428 | fi | |
b0322a85 CE |
3429 | if test -z "$ac_file"; then : |
3430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3431 | $as_echo "no" >&6; } | |
3432 | $as_echo "$as_me: failed program was:" >&5 | |
d9898ee8 | 3433 | sed 's/^/| /' conftest.$ac_ext >&5 |
3434 | ||
b0322a85 | 3435 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3436 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3437 | as_fn_error 77 "C compiler cannot create executables |
3438 | See \`config.log' for more details" "$LINENO" 5; } | |
3439 | else | |
3440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3441 | $as_echo "yes" >&6; } | |
d9898ee8 | 3442 | fi |
b0322a85 CE |
3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3444 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3446 | $as_echo "$ac_file" >&6; } | |
d9898ee8 | 3447 | ac_exeext=$ac_cv_exeext |
d9898ee8 | 3448 | |
8d138742 | 3449 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
d9898ee8 | 3450 | ac_clean_files=$ac_clean_files_save |
b0322a85 | 3451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
8d138742 | 3452 | $as_echo_n "checking for suffix of executables... " >&6; } |
b0322a85 | 3453 | if { { ac_try="$ac_link" |
dd184caf | 3454 | case "(($ac_try" in |
3455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3456 | *) ac_try_echo=$ac_try;; | |
3457 | esac | |
b0322a85 CE |
3458 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3459 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3460 | (eval "$ac_link") 2>&5 |
d9898ee8 | 3461 | ac_status=$? |
b0322a85 CE |
3462 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3463 | test $ac_status = 0; }; then : | |
d9898ee8 | 3464 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3465 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3466 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3467 | # `rm'. | |
3468 | for ac_file in conftest.exe conftest conftest.*; do | |
3469 | test -f "$ac_file" || continue | |
3470 | case $ac_file in | |
8d138742 | 3471 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d9898ee8 | 3472 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 | 3473 | break;; |
3474 | * ) break;; | |
3475 | esac | |
3476 | done | |
3477 | else | |
b0322a85 | 3478 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3479 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3480 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3481 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3482 | fi |
b0322a85 CE |
3483 | rm -f conftest conftest$ac_cv_exeext |
3484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
8d138742 | 3485 | $as_echo "$ac_cv_exeext" >&6; } |
d9898ee8 | 3486 | |
3487 | rm -f conftest.$ac_ext | |
3488 | EXEEXT=$ac_cv_exeext | |
3489 | ac_exeext=$EXEEXT | |
b0322a85 CE |
3490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3491 | /* end confdefs.h. */ | |
3492 | #include <stdio.h> | |
3493 | int | |
3494 | main () | |
3495 | { | |
3496 | FILE *f = fopen ("conftest.out", "w"); | |
3497 | return ferror (f) || fclose (f) != 0; | |
3498 | ||
3499 | ; | |
3500 | return 0; | |
3501 | } | |
3502 | _ACEOF | |
3503 | ac_clean_files="$ac_clean_files conftest.out" | |
3504 | # Check that the compiler produces executables we can run. If not, either | |
3505 | # the compiler is broken, or we cross compile. | |
3506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3507 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3508 | if test "$cross_compiling" != yes; then | |
3509 | { { ac_try="$ac_link" | |
3510 | case "(($ac_try" in | |
3511 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3512 | *) ac_try_echo=$ac_try;; | |
3513 | esac | |
3514 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3515 | $as_echo "$ac_try_echo"; } >&5 | |
3516 | (eval "$ac_link") 2>&5 | |
3517 | ac_status=$? | |
3518 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3519 | test $ac_status = 0; } | |
3520 | if { ac_try='./conftest$ac_cv_exeext' | |
3521 | { { case "(($ac_try" in | |
3522 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3523 | *) ac_try_echo=$ac_try;; | |
3524 | esac | |
3525 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3526 | $as_echo "$ac_try_echo"; } >&5 | |
3527 | (eval "$ac_try") 2>&5 | |
3528 | ac_status=$? | |
3529 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3530 | test $ac_status = 0; }; }; then | |
3531 | cross_compiling=no | |
3532 | else | |
3533 | if test "$cross_compiling" = maybe; then | |
3534 | cross_compiling=yes | |
3535 | else | |
3536 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3537 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3538 | as_fn_error $? "cannot run C compiled programs. | |
3539 | If you meant to cross compile, use \`--host'. | |
3540 | See \`config.log' for more details" "$LINENO" 5; } | |
3541 | fi | |
3542 | fi | |
3543 | fi | |
3544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3545 | $as_echo "$cross_compiling" >&6; } | |
3546 | ||
3547 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3548 | ac_clean_files=$ac_clean_files_save | |
3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
8d138742 | 3550 | $as_echo_n "checking for suffix of object files... " >&6; } |
b0322a85 | 3551 | if ${ac_cv_objext+:} false; then : |
8d138742 | 3552 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3553 | else |
b0322a85 | 3554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3555 | /* end confdefs.h. */ |
3556 | ||
3557 | int | |
3558 | main () | |
3559 | { | |
3560 | ||
3561 | ; | |
3562 | return 0; | |
3563 | } | |
3564 | _ACEOF | |
3565 | rm -f conftest.o conftest.obj | |
b0322a85 | 3566 | if { { ac_try="$ac_compile" |
dd184caf | 3567 | case "(($ac_try" in |
3568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3569 | *) ac_try_echo=$ac_try;; | |
3570 | esac | |
b0322a85 CE |
3571 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3572 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3573 | (eval "$ac_compile") 2>&5 |
d9898ee8 | 3574 | ac_status=$? |
b0322a85 CE |
3575 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3576 | test $ac_status = 0; }; then : | |
dd184caf | 3577 | for ac_file in conftest.o conftest.obj conftest.*; do |
3578 | test -f "$ac_file" || continue; | |
d9898ee8 | 3579 | case $ac_file in |
8d138742 | 3580 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
d9898ee8 | 3581 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3582 | break;; | |
3583 | esac | |
3584 | done | |
3585 | else | |
8d138742 | 3586 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3587 | sed 's/^/| /' conftest.$ac_ext >&5 |
3588 | ||
b0322a85 | 3589 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3590 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3591 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3592 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3593 | fi |
d9898ee8 | 3594 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3595 | fi | |
b0322a85 | 3596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
8d138742 | 3597 | $as_echo "$ac_cv_objext" >&6; } |
d9898ee8 | 3598 | OBJEXT=$ac_cv_objext |
3599 | ac_objext=$OBJEXT | |
b0322a85 | 3600 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
8d138742 | 3601 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
b0322a85 | 3602 | if ${ac_cv_c_compiler_gnu+:} false; then : |
8d138742 | 3603 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3604 | else |
b0322a85 | 3605 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3606 | /* end confdefs.h. */ |
3607 | ||
3608 | int | |
3609 | main () | |
3610 | { | |
3611 | #ifndef __GNUC__ | |
3612 | choke me | |
3613 | #endif | |
3614 | ||
3615 | ; | |
3616 | return 0; | |
3617 | } | |
3618 | _ACEOF | |
b0322a85 | 3619 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3620 | ac_compiler_gnu=yes |
3621 | else | |
b0322a85 | 3622 | ac_compiler_gnu=no |
d9898ee8 | 3623 | fi |
dd184caf | 3624 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3625 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3626 | ||
3627 | fi | |
b0322a85 | 3628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
8d138742 CE |
3629 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3630 | if test $ac_compiler_gnu = yes; then | |
3631 | GCC=yes | |
3632 | else | |
3633 | GCC= | |
3634 | fi | |
d9898ee8 | 3635 | ac_test_CFLAGS=${CFLAGS+set} |
3636 | ac_save_CFLAGS=$CFLAGS | |
b0322a85 | 3637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
8d138742 | 3638 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
b0322a85 | 3639 | if ${ac_cv_prog_cc_g+:} false; then : |
8d138742 | 3640 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3641 | else |
dd184caf | 3642 | ac_save_c_werror_flag=$ac_c_werror_flag |
3643 | ac_c_werror_flag=yes | |
3644 | ac_cv_prog_cc_g=no | |
3645 | CFLAGS="-g" | |
b0322a85 | 3646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3647 | /* end confdefs.h. */ |
3648 | ||
3649 | int | |
3650 | main () | |
3651 | { | |
3652 | ||
3653 | ; | |
3654 | return 0; | |
3655 | } | |
3656 | _ACEOF | |
b0322a85 | 3657 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3658 | ac_cv_prog_cc_g=yes |
3659 | else | |
b0322a85 CE |
3660 | CFLAGS="" |
3661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3662 | /* end confdefs.h. */ | |
dd184caf | 3663 | |
3664 | int | |
3665 | main () | |
3666 | { | |
3667 | ||
3668 | ; | |
3669 | return 0; | |
3670 | } | |
3671 | _ACEOF | |
b0322a85 | 3672 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3673 | |
b0322a85 CE |
3674 | else |
3675 | ac_c_werror_flag=$ac_save_c_werror_flag | |
dd184caf | 3676 | CFLAGS="-g" |
b0322a85 | 3677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dd184caf | 3678 | /* end confdefs.h. */ |
3679 | ||
3680 | int | |
3681 | main () | |
3682 | { | |
3683 | ||
3684 | ; | |
3685 | return 0; | |
3686 | } | |
3687 | _ACEOF | |
b0322a85 | 3688 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3689 | ac_cv_prog_cc_g=yes |
dd184caf | 3690 | fi |
dd184caf | 3691 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3692 | fi | |
dd184caf | 3693 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3694 | fi |
dd184caf | 3695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3696 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 3697 | fi |
b0322a85 | 3698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
8d138742 | 3699 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
d9898ee8 | 3700 | if test "$ac_test_CFLAGS" = set; then |
3701 | CFLAGS=$ac_save_CFLAGS | |
3702 | elif test $ac_cv_prog_cc_g = yes; then | |
3703 | if test "$GCC" = yes; then | |
3704 | CFLAGS="-g -O2" | |
3705 | else | |
3706 | CFLAGS="-g" | |
3707 | fi | |
3708 | else | |
3709 | if test "$GCC" = yes; then | |
3710 | CFLAGS="-O2" | |
3711 | else | |
3712 | CFLAGS= | |
3713 | fi | |
3714 | fi | |
b0322a85 | 3715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
8d138742 | 3716 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
b0322a85 | 3717 | if ${ac_cv_prog_cc_c89+:} false; then : |
8d138742 | 3718 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3719 | else |
dd184caf | 3720 | ac_cv_prog_cc_c89=no |
d9898ee8 | 3721 | ac_save_CC=$CC |
b0322a85 | 3722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3723 | /* end confdefs.h. */ |
3724 | #include <stdarg.h> | |
3725 | #include <stdio.h> | |
b0322a85 | 3726 | struct stat; |
d9898ee8 | 3727 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3728 | struct buf { int x; }; | |
3729 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3730 | static char *e (p, i) | |
3731 | char **p; | |
3732 | int i; | |
3733 | { | |
3734 | return p[i]; | |
3735 | } | |
3736 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3737 | { | |
3738 | char *s; | |
3739 | va_list v; | |
3740 | va_start (v,p); | |
3741 | s = g (p, va_arg (v,int)); | |
3742 | va_end (v); | |
3743 | return s; | |
3744 | } | |
3745 | ||
3746 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3747 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3748 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 3749 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 3750 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3751 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 3752 | that's true only with -std. */ |
d9898ee8 | 3753 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3754 | ||
dd184caf | 3755 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3756 | inside strings and character constants. */ | |
3757 | #define FOO(x) 'x' | |
3758 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3759 | ||
d9898ee8 | 3760 | int test (int i, double x); |
3761 | struct s1 {int (*f) (int a);}; | |
3762 | struct s2 {int (*f) (double a);}; | |
3763 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3764 | int argc; | |
3765 | char **argv; | |
3766 | int | |
3767 | main () | |
3768 | { | |
3769 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3770 | ; | |
3771 | return 0; | |
3772 | } | |
3773 | _ACEOF | |
dd184caf | 3774 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3775 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 3776 | do |
3777 | CC="$ac_save_CC $ac_arg" | |
b0322a85 | 3778 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3779 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 | 3780 | fi |
dd184caf | 3781 | rm -f core conftest.err conftest.$ac_objext |
3782 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 3783 | done |
dd184caf | 3784 | rm -f conftest.$ac_ext |
d9898ee8 | 3785 | CC=$ac_save_CC |
3786 | ||
3787 | fi | |
dd184caf | 3788 | # AC_CACHE_VAL |
3789 | case "x$ac_cv_prog_cc_c89" in | |
3790 | x) | |
b0322a85 | 3791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
8d138742 | 3792 | $as_echo "none needed" >&6; } ;; |
dd184caf | 3793 | xno) |
b0322a85 | 3794 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
8d138742 | 3795 | $as_echo "unsupported" >&6; } ;; |
d9898ee8 | 3796 | *) |
dd184caf | 3797 | CC="$CC $ac_cv_prog_cc_c89" |
b0322a85 | 3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
8d138742 | 3799 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 | 3800 | esac |
b0322a85 | 3801 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d9898ee8 | 3802 | |
b0322a85 | 3803 | fi |
d9898ee8 | 3804 | |
d9898ee8 | 3805 | ac_ext=c |
3806 | ac_cpp='$CPP $CPPFLAGS' | |
3807 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3808 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3809 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3810 | DEPDIR="${am__leading_dot}deps" | |
3811 | ||
dd184caf | 3812 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 | 3813 | |
3814 | ||
3815 | am_make=${MAKE-make} | |
3816 | cat > confinc << 'END' | |
3817 | am__doit: | |
8d138742 | 3818 | @echo this is the am__doit target |
d9898ee8 | 3819 | .PHONY: am__doit |
3820 | END | |
3821 | # If we don't find an include directive, just comment out the code. | |
b0322a85 | 3822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
8d138742 | 3823 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
d9898ee8 | 3824 | am__include="#" |
3825 | am__quote= | |
3826 | _am_result=none | |
3827 | # First try GNU make style include. | |
3828 | echo "include confinc" > confmf | |
b0322a85 | 3829 | # Ignore all kinds of additional output from 'make'. |
8d138742 CE |
3830 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3831 | *the\ am__doit\ target*) | |
3832 | am__include=include | |
3833 | am__quote= | |
3834 | _am_result=GNU | |
3835 | ;; | |
3836 | esac | |
d9898ee8 | 3837 | # Now try BSD make style include. |
3838 | if test "$am__include" = "#"; then | |
3839 | echo '.include "confinc"' > confmf | |
8d138742 CE |
3840 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3841 | *the\ am__doit\ target*) | |
3842 | am__include=.include | |
3843 | am__quote="\"" | |
3844 | _am_result=BSD | |
3845 | ;; | |
3846 | esac | |
d9898ee8 | 3847 | fi |
3848 | ||
3849 | ||
b0322a85 | 3850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
8d138742 | 3851 | $as_echo "$_am_result" >&6; } |
d9898ee8 | 3852 | rm -f confinc confmf |
3853 | ||
dd184caf | 3854 | # Check whether --enable-dependency-tracking was given. |
b0322a85 | 3855 | if test "${enable_dependency_tracking+set}" = set; then : |
dd184caf | 3856 | enableval=$enable_dependency_tracking; |
3857 | fi | |
d9898ee8 | 3858 | |
d9898ee8 | 3859 | if test "x$enable_dependency_tracking" != xno; then |
3860 | am_depcomp="$ac_aux_dir/depcomp" | |
3861 | AMDEPBACKSLASH='\' | |
b0322a85 | 3862 | am__nodep='_no' |
d9898ee8 | 3863 | fi |
dd184caf | 3864 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 | 3865 | AMDEP_TRUE= |
3866 | AMDEP_FALSE='#' | |
3867 | else | |
3868 | AMDEP_TRUE='#' | |
3869 | AMDEP_FALSE= | |
3870 | fi | |
3871 | ||
3872 | ||
3873 | ||
d9898ee8 | 3874 | depcc="$CC" am_compiler_list= |
3875 | ||
b0322a85 | 3876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
8d138742 | 3877 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
b0322a85 | 3878 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
8d138742 | 3879 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3880 | else |
3881 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3882 | # We make a subdir and do the tests there. Otherwise we can end up | |
3883 | # making bogus files that we don't know about and never remove. For | |
3884 | # instance it was reported that on HP-UX the gcc test will end up | |
b0322a85 CE |
3885 | # making a dummy file named 'D' -- because '-MD' means "put the output |
3886 | # in D". | |
3887 | rm -rf conftest.dir | |
d9898ee8 | 3888 | mkdir conftest.dir |
3889 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3890 | # using a relative directory. | |
3891 | cp "$am_depcomp" conftest.dir | |
3892 | cd conftest.dir | |
3893 | # We will build objects and dependencies in a subdirectory because | |
3894 | # it helps to detect inapplicable dependency modes. For instance | |
3895 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3896 | # side effect of compilation, but ICC will put the dependencies in | |
3897 | # the current directory while Tru64 will put them in the object | |
3898 | # directory. | |
3899 | mkdir sub | |
3900 | ||
3901 | am_cv_CC_dependencies_compiler_type=none | |
3902 | if test "$am_compiler_list" = ""; then | |
3903 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3904 | fi | |
8d138742 CE |
3905 | am__universal=false |
3906 | case " $depcc " in #( | |
3907 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3908 | esac | |
3909 | ||
d9898ee8 | 3910 | for depmode in $am_compiler_list; do |
3911 | # Setup a source with many dependencies, because some compilers | |
3912 | # like to wrap large dependency lists on column 80 (with \), and | |
3913 | # we should not choose a depcomp mode which is confused by this. | |
3914 | # | |
3915 | # We need to recreate these files for each test, as the compiler may | |
3916 | # overwrite some of them when testing with obscure command lines. | |
3917 | # This happens at least with the AIX C compiler. | |
3918 | : > sub/conftest.c | |
3919 | for i in 1 2 3 4 5 6; do | |
3920 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
b0322a85 CE |
3921 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
3922 | # Solaris 10 /bin/sh. | |
3923 | echo '/* dummy */' > sub/conftst$i.h | |
d9898ee8 | 3924 | done |
3925 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3926 | ||
b0322a85 | 3927 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8d138742 | 3928 | # mode. It turns out that the SunPro C++ compiler does not properly |
b0322a85 CE |
3929 | # handle '-M -o', and we need to detect this. Also, some Intel |
3930 | # versions had trouble with output in subdirs. | |
8d138742 CE |
3931 | am__obj=sub/conftest.${OBJEXT-o} |
3932 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 3933 | case $depmode in |
8d138742 CE |
3934 | gcc) |
3935 | # This depmode causes a compiler race in universal mode. | |
3936 | test "$am__universal" = false || continue | |
3937 | ;; | |
d9898ee8 | 3938 | nosideeffect) |
b0322a85 CE |
3939 | # After this tag, mechanisms are not by side-effect, so they'll |
3940 | # only be used when explicitly requested. | |
d9898ee8 | 3941 | if test "x$enable_dependency_tracking" = xyes; then |
3942 | continue | |
3943 | else | |
3944 | break | |
3945 | fi | |
3946 | ;; | |
b0322a85 CE |
3947 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
3948 | # This compiler won't grok '-c -o', but also, the minuso test has | |
8d138742 CE |
3949 | # not run yet. These depmodes are late enough in the game, and |
3950 | # so weak that their functioning should not be impacted. | |
3951 | am__obj=conftest.${OBJEXT-o} | |
3952 | am__minus_obj= | |
3953 | ;; | |
d9898ee8 | 3954 | none) break ;; |
3955 | esac | |
d9898ee8 | 3956 | if depmode=$depmode \ |
8d138742 | 3957 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 3958 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 3959 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 3960 | >/dev/null 2>conftest.err && |
dd184caf | 3961 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3962 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 3963 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 3964 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3965 | # icc doesn't choke on unknown options, it will just issue warnings | |
3966 | # or remarks (even with -Werror). So we grep stderr for any message | |
3967 | # that says an option was ignored or not supported. | |
3968 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3969 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3970 | # The diagnosis changed in icc 8.0: | |
3971 | # icc: Command line remark: option '-MP' not supported | |
3972 | if (grep 'ignoring option' conftest.err || | |
3973 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3974 | am_cv_CC_dependencies_compiler_type=$depmode | |
3975 | break | |
3976 | fi | |
3977 | fi | |
3978 | done | |
3979 | ||
3980 | cd .. | |
3981 | rm -rf conftest.dir | |
3982 | else | |
3983 | am_cv_CC_dependencies_compiler_type=none | |
3984 | fi | |
3985 | ||
3986 | fi | |
b0322a85 | 3987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
8d138742 | 3988 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 | 3989 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3990 | ||
dd184caf | 3991 | if |
d9898ee8 | 3992 | test "x$enable_dependency_tracking" != xno \ |
3993 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3994 | am__fastdepCC_TRUE= | |
3995 | am__fastdepCC_FALSE='#' | |
3996 | else | |
3997 | am__fastdepCC_TRUE='#' | |
3998 | am__fastdepCC_FALSE= | |
3999 | fi | |
4000 | ||
4001 | ||
8d138742 CE |
4002 | case `pwd` in |
4003 | *\ * | *\ *) | |
b0322a85 | 4004 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
8d138742 CE |
4005 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
4006 | esac | |
4007 | ||
4008 | ||
4009 | ||
b0322a85 CE |
4010 | macro_version='2.4.2' |
4011 | macro_revision='1.3337' | |
8d138742 CE |
4012 | |
4013 | ||
4014 | ||
4015 | ||
d9898ee8 | 4016 | |
dd184caf | 4017 | |
d9898ee8 | 4018 | |
dd184caf | 4019 | |
dd184caf | 4020 | |
d9898ee8 | 4021 | |
8d138742 CE |
4022 | |
4023 | ||
4024 | ||
4025 | ltmain="$ac_aux_dir/ltmain.sh" | |
4026 | ||
d9898ee8 | 4027 | # Make sure we can run config.sub. |
dd184caf | 4028 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
b0322a85 | 4029 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
d9898ee8 | 4030 | |
b0322a85 | 4031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
8d138742 | 4032 | $as_echo_n "checking build system type... " >&6; } |
b0322a85 | 4033 | if ${ac_cv_build+:} false; then : |
8d138742 | 4034 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4035 | else |
dd184caf | 4036 | ac_build_alias=$build_alias |
4037 | test "x$ac_build_alias" = x && | |
4038 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4039 | test "x$ac_build_alias" = x && | |
b0322a85 | 4040 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
dd184caf | 4041 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
b0322a85 | 4042 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
d9898ee8 | 4043 | |
4044 | fi | |
b0322a85 | 4045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
8d138742 | 4046 | $as_echo "$ac_cv_build" >&6; } |
dd184caf | 4047 | case $ac_cv_build in |
4048 | *-*-*) ;; | |
b0322a85 | 4049 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
dd184caf | 4050 | esac |
d9898ee8 | 4051 | build=$ac_cv_build |
dd184caf | 4052 | ac_save_IFS=$IFS; IFS='-' |
4053 | set x $ac_cv_build | |
4054 | shift | |
4055 | build_cpu=$1 | |
4056 | build_vendor=$2 | |
4057 | shift; shift | |
4058 | # Remember, the first character of IFS is used to create $*, | |
4059 | # except with old shells: | |
4060 | build_os=$* | |
4061 | IFS=$ac_save_IFS | |
4062 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4063 | ||
4064 | ||
b0322a85 | 4065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
8d138742 | 4066 | $as_echo_n "checking host system type... " >&6; } |
b0322a85 | 4067 | if ${ac_cv_host+:} false; then : |
8d138742 | 4068 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4069 | else |
dd184caf | 4070 | if test "x$host_alias" = x; then |
4071 | ac_cv_host=$ac_cv_build | |
4072 | else | |
4073 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
b0322a85 | 4074 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
dd184caf | 4075 | fi |
d9898ee8 | 4076 | |
4077 | fi | |
b0322a85 | 4078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
8d138742 | 4079 | $as_echo "$ac_cv_host" >&6; } |
dd184caf | 4080 | case $ac_cv_host in |
4081 | *-*-*) ;; | |
b0322a85 | 4082 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
dd184caf | 4083 | esac |
d9898ee8 | 4084 | host=$ac_cv_host |
dd184caf | 4085 | ac_save_IFS=$IFS; IFS='-' |
4086 | set x $ac_cv_host | |
4087 | shift | |
4088 | host_cpu=$1 | |
4089 | host_vendor=$2 | |
4090 | shift; shift | |
4091 | # Remember, the first character of IFS is used to create $*, | |
4092 | # except with old shells: | |
4093 | host_os=$* | |
4094 | IFS=$ac_save_IFS | |
4095 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4096 | ||
4097 | ||
b0322a85 CE |
4098 | # Backslashify metacharacters that are still active within |
4099 | # double-quoted strings. | |
4100 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4101 | ||
4102 | # Same as above, but do not quote variable references. | |
4103 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4104 | ||
4105 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4106 | # double_quote_subst'ed string. | |
4107 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4108 | ||
4109 | # Sed substitution to delay expansion of an escaped single quote. | |
4110 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4111 | ||
4112 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4113 | no_glob_subst='s/\*/\\\*/g' | |
4114 | ||
4115 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4116 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4117 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4118 | ||
4119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4120 | $as_echo_n "checking how to print strings... " >&6; } | |
4121 | # Test print first, because it will be a builtin if present. | |
4122 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4123 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4124 | ECHO='print -r --' | |
4125 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4126 | ECHO='printf %s\n' | |
4127 | else | |
4128 | # Use this function as a fallback that always works. | |
4129 | func_fallback_echo () | |
4130 | { | |
4131 | eval 'cat <<_LTECHO_EOF | |
4132 | $1 | |
4133 | _LTECHO_EOF' | |
4134 | } | |
4135 | ECHO='func_fallback_echo' | |
4136 | fi | |
4137 | ||
4138 | # func_echo_all arg... | |
4139 | # Invoke $ECHO with all args, space-separated. | |
4140 | func_echo_all () | |
4141 | { | |
4142 | $ECHO "" | |
4143 | } | |
4144 | ||
4145 | case "$ECHO" in | |
4146 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4147 | $as_echo "printf" >&6; } ;; | |
4148 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4149 | $as_echo "print -r" >&6; } ;; | |
4150 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4151 | $as_echo "cat" >&6; } ;; | |
4152 | esac | |
4153 | ||
4154 | ||
4155 | ||
4156 | ||
4157 | ||
4158 | ||
4159 | ||
4160 | ||
4161 | ||
4162 | ||
4163 | ||
4164 | ||
4165 | ||
4166 | ||
4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
8d138742 | 4168 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
b0322a85 | 4169 | if ${ac_cv_path_SED+:} false; then : |
8d138742 CE |
4170 | $as_echo_n "(cached) " >&6 |
4171 | else | |
4172 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4173 | for ac_i in 1 2 3 4 5 6 7; do | |
4174 | ac_script="$ac_script$as_nl$ac_script" | |
4175 | done | |
4176 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
b0322a85 | 4177 | { ac_script=; unset ac_script;} |
8d138742 CE |
4178 | if test -z "$SED"; then |
4179 | ac_path_SED_found=false | |
4180 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 4182 | for as_dir in $PATH |
4183 | do | |
4184 | IFS=$as_save_IFS | |
4185 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4186 | for ac_prog in sed gsed; do |
d9898ee8 | 4187 | for ac_exec_ext in '' $ac_executable_extensions; do |
8d138742 | 4188 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
b0322a85 | 4189 | as_fn_executable_p "$ac_path_SED" || continue |
8d138742 CE |
4190 | # Check for GNU ac_path_SED and select it if it is found. |
4191 | # Check for GNU $ac_path_SED | |
4192 | case `"$ac_path_SED" --version 2>&1` in | |
4193 | *GNU*) | |
4194 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4195 | *) | |
4196 | ac_count=0 | |
4197 | $as_echo_n 0123456789 >"conftest.in" | |
4198 | while : | |
4199 | do | |
4200 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4201 | mv "conftest.tmp" "conftest.in" | |
4202 | cp "conftest.in" "conftest.nl" | |
4203 | $as_echo '' >> "conftest.nl" | |
4204 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4205 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4206 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4207 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
4208 | # Best one so far, save it but keep looking for a better one | |
4209 | ac_cv_path_SED="$ac_path_SED" | |
4210 | ac_path_SED_max=$ac_count | |
4211 | fi | |
4212 | # 10*(2^10) chars as input seems more than enough | |
4213 | test $ac_count -gt 10 && break | |
4214 | done | |
4215 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4216 | esac | |
4217 | ||
4218 | $ac_path_SED_found && break 3 | |
d9898ee8 | 4219 | done |
4220 | done | |
b0322a85 | 4221 | done |
d9898ee8 | 4222 | IFS=$as_save_IFS |
8d138742 | 4223 | if test -z "$ac_cv_path_SED"; then |
b0322a85 | 4224 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
d9898ee8 | 4225 | fi |
8d138742 CE |
4226 | else |
4227 | ac_cv_path_SED=$SED | |
4228 | fi | |
d9898ee8 | 4229 | |
4230 | fi | |
b0322a85 | 4231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
8d138742 CE |
4232 | $as_echo "$ac_cv_path_SED" >&6; } |
4233 | SED="$ac_cv_path_SED" | |
4234 | rm -f conftest.sed | |
4235 | ||
4236 | test -z "$SED" && SED=sed | |
4237 | Xsed="$SED -e 1s/^X//" | |
d9898ee8 | 4238 | |
d9898ee8 | 4239 | |
dd184caf | 4240 | |
8d138742 CE |
4241 | |
4242 | ||
4243 | ||
4244 | ||
4245 | ||
4246 | ||
4247 | ||
4248 | ||
b0322a85 | 4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
8d138742 | 4250 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
b0322a85 | 4251 | if ${ac_cv_path_GREP+:} false; then : |
8d138742 | 4252 | $as_echo_n "(cached) " >&6 |
dd184caf | 4253 | else |
8d138742 | 4254 | if test -z "$GREP"; then |
dd184caf | 4255 | ac_path_GREP_found=false |
8d138742 CE |
4256 | # Loop through the user's path and test for each of PROGNAME-LIST |
4257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4258 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4259 | do | |
4260 | IFS=$as_save_IFS | |
4261 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4262 | for ac_prog in grep ggrep; do |
8d138742 CE |
4263 | for ac_exec_ext in '' $ac_executable_extensions; do |
4264 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4265 | as_fn_executable_p "$ac_path_GREP" || continue |
8d138742 | 4266 | # Check for GNU ac_path_GREP and select it if it is found. |
dd184caf | 4267 | # Check for GNU $ac_path_GREP |
4268 | case `"$ac_path_GREP" --version 2>&1` in | |
4269 | *GNU*) | |
4270 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4271 | *) | |
4272 | ac_count=0 | |
8d138742 | 4273 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4274 | while : |
4275 | do | |
4276 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4277 | mv "conftest.tmp" "conftest.in" | |
4278 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4279 | $as_echo 'GREP' >> "conftest.nl" |
dd184caf | 4280 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4281 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4282 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4283 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4284 | # Best one so far, save it but keep looking for a better one | |
4285 | ac_cv_path_GREP="$ac_path_GREP" | |
4286 | ac_path_GREP_max=$ac_count | |
4287 | fi | |
4288 | # 10*(2^10) chars as input seems more than enough | |
4289 | test $ac_count -gt 10 && break | |
4290 | done | |
4291 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4292 | esac | |
4293 | ||
8d138742 CE |
4294 | $ac_path_GREP_found && break 3 |
4295 | done | |
dd184caf | 4296 | done |
b0322a85 | 4297 | done |
dd184caf | 4298 | IFS=$as_save_IFS |
8d138742 | 4299 | if test -z "$ac_cv_path_GREP"; then |
b0322a85 | 4300 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 | 4301 | fi |
dd184caf | 4302 | else |
4303 | ac_cv_path_GREP=$GREP | |
4304 | fi | |
4305 | ||
dd184caf | 4306 | fi |
b0322a85 | 4307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
8d138742 | 4308 | $as_echo "$ac_cv_path_GREP" >&6; } |
dd184caf | 4309 | GREP="$ac_cv_path_GREP" |
4310 | ||
d9898ee8 | 4311 | |
b0322a85 | 4312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
8d138742 | 4313 | $as_echo_n "checking for egrep... " >&6; } |
b0322a85 | 4314 | if ${ac_cv_path_EGREP+:} false; then : |
8d138742 | 4315 | $as_echo_n "(cached) " >&6 |
dd184caf | 4316 | else |
4317 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4318 | then ac_cv_path_EGREP="$GREP -E" | |
4319 | else | |
8d138742 | 4320 | if test -z "$EGREP"; then |
dd184caf | 4321 | ac_path_EGREP_found=false |
8d138742 CE |
4322 | # Loop through the user's path and test for each of PROGNAME-LIST |
4323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4324 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4325 | do | |
4326 | IFS=$as_save_IFS | |
4327 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4328 | for ac_prog in egrep; do |
8d138742 CE |
4329 | for ac_exec_ext in '' $ac_executable_extensions; do |
4330 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4331 | as_fn_executable_p "$ac_path_EGREP" || continue |
8d138742 | 4332 | # Check for GNU ac_path_EGREP and select it if it is found. |
dd184caf | 4333 | # Check for GNU $ac_path_EGREP |
4334 | case `"$ac_path_EGREP" --version 2>&1` in | |
4335 | *GNU*) | |
4336 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4337 | *) | |
4338 | ac_count=0 | |
8d138742 | 4339 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4340 | while : |
4341 | do | |
4342 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4343 | mv "conftest.tmp" "conftest.in" | |
4344 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4345 | $as_echo 'EGREP' >> "conftest.nl" |
dd184caf | 4346 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4347 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4348 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4349 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4350 | # Best one so far, save it but keep looking for a better one | |
4351 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4352 | ac_path_EGREP_max=$ac_count | |
d9898ee8 | 4353 | fi |
dd184caf | 4354 | # 10*(2^10) chars as input seems more than enough |
4355 | test $ac_count -gt 10 && break | |
4356 | done | |
4357 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4358 | esac | |
4359 | ||
8d138742 CE |
4360 | $ac_path_EGREP_found && break 3 |
4361 | done | |
dd184caf | 4362 | done |
b0322a85 | 4363 | done |
dd184caf | 4364 | IFS=$as_save_IFS |
8d138742 | 4365 | if test -z "$ac_cv_path_EGREP"; then |
b0322a85 | 4366 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4367 | fi |
4368 | else | |
4369 | ac_cv_path_EGREP=$EGREP | |
dd184caf | 4370 | fi |
4371 | ||
8d138742 | 4372 | fi |
dd184caf | 4373 | fi |
b0322a85 | 4374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
8d138742 CE |
4375 | $as_echo "$ac_cv_path_EGREP" >&6; } |
4376 | EGREP="$ac_cv_path_EGREP" | |
dd184caf | 4377 | |
8d138742 | 4378 | |
b0322a85 | 4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
8d138742 | 4380 | $as_echo_n "checking for fgrep... " >&6; } |
b0322a85 | 4381 | if ${ac_cv_path_FGREP+:} false; then : |
8d138742 | 4382 | $as_echo_n "(cached) " >&6 |
dd184caf | 4383 | else |
8d138742 CE |
4384 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4385 | then ac_cv_path_FGREP="$GREP -F" | |
4386 | else | |
4387 | if test -z "$FGREP"; then | |
4388 | ac_path_FGREP_found=false | |
4389 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4391 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4392 | do | |
4393 | IFS=$as_save_IFS | |
4394 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4395 | for ac_prog in fgrep; do |
8d138742 CE |
4396 | for ac_exec_ext in '' $ac_executable_extensions; do |
4397 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4398 | as_fn_executable_p "$ac_path_FGREP" || continue |
8d138742 CE |
4399 | # Check for GNU ac_path_FGREP and select it if it is found. |
4400 | # Check for GNU $ac_path_FGREP | |
4401 | case `"$ac_path_FGREP" --version 2>&1` in | |
4402 | *GNU*) | |
4403 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4404 | *) | |
4405 | ac_count=0 | |
4406 | $as_echo_n 0123456789 >"conftest.in" | |
4407 | while : | |
4408 | do | |
4409 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4410 | mv "conftest.tmp" "conftest.in" | |
4411 | cp "conftest.in" "conftest.nl" | |
4412 | $as_echo 'FGREP' >> "conftest.nl" | |
4413 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4414 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4415 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4416 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
4417 | # Best one so far, save it but keep looking for a better one | |
4418 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4419 | ac_path_FGREP_max=$ac_count | |
4420 | fi | |
4421 | # 10*(2^10) chars as input seems more than enough | |
4422 | test $ac_count -gt 10 && break | |
4423 | done | |
4424 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4425 | esac | |
dd184caf | 4426 | |
8d138742 CE |
4427 | $ac_path_FGREP_found && break 3 |
4428 | done | |
4429 | done | |
b0322a85 | 4430 | done |
8d138742 CE |
4431 | IFS=$as_save_IFS |
4432 | if test -z "$ac_cv_path_FGREP"; then | |
b0322a85 | 4433 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4434 | fi |
4435 | else | |
4436 | ac_cv_path_FGREP=$FGREP | |
4437 | fi | |
dd184caf | 4438 | |
4439 | fi | |
d9898ee8 | 4440 | fi |
b0322a85 | 4441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
8d138742 CE |
4442 | $as_echo "$ac_cv_path_FGREP" >&6; } |
4443 | FGREP="$ac_cv_path_FGREP" | |
4444 | ||
4445 | ||
4446 | test -z "$GREP" && GREP=grep | |
4447 | ||
4448 | ||
4449 | ||
4450 | ||
4451 | ||
4452 | ||
4453 | ||
4454 | ||
4455 | ||
4456 | ||
4457 | ||
4458 | ||
4459 | ||
4460 | ||
4461 | ||
4462 | ||
d9898ee8 | 4463 | |
4464 | ||
4465 | ||
dd184caf | 4466 | # Check whether --with-gnu-ld was given. |
b0322a85 | 4467 | if test "${with_gnu_ld+set}" = set; then : |
dd184caf | 4468 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 | 4469 | else |
4470 | with_gnu_ld=no | |
dd184caf | 4471 | fi |
4472 | ||
d9898ee8 | 4473 | ac_prog=ld |
4474 | if test "$GCC" = yes; then | |
4475 | # Check if gcc -print-prog-name=ld gives a path. | |
b0322a85 | 4476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
8d138742 | 4477 | $as_echo_n "checking for ld used by $CC... " >&6; } |
d9898ee8 | 4478 | case $host in |
4479 | *-*-mingw*) | |
4480 | # gcc leaves a trailing carriage return which upsets mingw | |
4481 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4482 | *) | |
4483 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4484 | esac | |
4485 | case $ac_prog in | |
4486 | # Accept absolute paths. | |
4487 | [\\/]* | ?:[\\/]*) | |
4488 | re_direlt='/[^/][^/]*/\.\./' | |
4489 | # Canonicalize the pathname of ld | |
8d138742 CE |
4490 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4491 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4492 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
d9898ee8 | 4493 | done |
4494 | test -z "$LD" && LD="$ac_prog" | |
4495 | ;; | |
4496 | "") | |
4497 | # If it fails, then pretend we aren't using GCC. | |
4498 | ac_prog=ld | |
4499 | ;; | |
4500 | *) | |
4501 | # If it is relative, then search for the first ld in PATH. | |
4502 | with_gnu_ld=unknown | |
4503 | ;; | |
4504 | esac | |
4505 | elif test "$with_gnu_ld" = yes; then | |
b0322a85 | 4506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
8d138742 | 4507 | $as_echo_n "checking for GNU ld... " >&6; } |
d9898ee8 | 4508 | else |
b0322a85 | 4509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
8d138742 | 4510 | $as_echo_n "checking for non-GNU ld... " >&6; } |
d9898ee8 | 4511 | fi |
b0322a85 | 4512 | if ${lt_cv_path_LD+:} false; then : |
8d138742 | 4513 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4514 | else |
4515 | if test -z "$LD"; then | |
4516 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4517 | for ac_dir in $PATH; do | |
4518 | IFS="$lt_save_ifs" | |
4519 | test -z "$ac_dir" && ac_dir=. | |
4520 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4521 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4522 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4523 | # but apparently some variants of GNU ld only accept -v. | |
4524 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4525 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4526 | *GNU* | *'with BFD'*) | |
4527 | test "$with_gnu_ld" != no && break | |
4528 | ;; | |
4529 | *) | |
4530 | test "$with_gnu_ld" != yes && break | |
4531 | ;; | |
4532 | esac | |
4533 | fi | |
4534 | done | |
4535 | IFS="$lt_save_ifs" | |
4536 | else | |
4537 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4538 | fi | |
4539 | fi | |
4540 | ||
4541 | LD="$lt_cv_path_LD" | |
4542 | if test -n "$LD"; then | |
b0322a85 | 4543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8d138742 | 4544 | $as_echo "$LD" >&6; } |
d9898ee8 | 4545 | else |
b0322a85 | 4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4547 | $as_echo "no" >&6; } |
d9898ee8 | 4548 | fi |
b0322a85 CE |
4549 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4550 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
8d138742 | 4551 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
b0322a85 | 4552 | if ${lt_cv_prog_gnu_ld+:} false; then : |
8d138742 | 4553 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4554 | else |
4555 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4556 | case `$LD -v 2>&1 </dev/null` in | |
4557 | *GNU* | *'with BFD'*) | |
4558 | lt_cv_prog_gnu_ld=yes | |
4559 | ;; | |
4560 | *) | |
4561 | lt_cv_prog_gnu_ld=no | |
4562 | ;; | |
4563 | esac | |
4564 | fi | |
b0322a85 | 4565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
8d138742 | 4566 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 | 4567 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4568 | ||
4569 | ||
d9898ee8 | 4570 | |
8d138742 CE |
4571 | |
4572 | ||
4573 | ||
4574 | ||
4575 | ||
4576 | ||
b0322a85 | 4577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
8d138742 | 4578 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
b0322a85 | 4579 | if ${lt_cv_path_NM+:} false; then : |
8d138742 | 4580 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4581 | else |
4582 | if test -n "$NM"; then | |
4583 | # Let the user override the test. | |
4584 | lt_cv_path_NM="$NM" | |
4585 | else | |
4586 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4587 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4588 | lt_nm_to_check="$lt_nm_to_check nm" | |
4589 | fi | |
4590 | for lt_tmp_nm in $lt_nm_to_check; do | |
4591 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4592 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4593 | IFS="$lt_save_ifs" | |
4594 | test -z "$ac_dir" && ac_dir=. | |
4595 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4596 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4597 | # Check to see if the nm accepts a BSD-compat flag. | |
4598 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4599 | # nm: unknown option "B" ignored | |
4600 | # Tru64's nm complains that /dev/null is an invalid object file | |
4601 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4602 | */dev/null* | *'Invalid file or object type'*) | |
4603 | lt_cv_path_NM="$tmp_nm -B" | |
4604 | break | |
4605 | ;; | |
4606 | *) | |
4607 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4608 | */dev/null*) | |
4609 | lt_cv_path_NM="$tmp_nm -p" | |
4610 | break | |
4611 | ;; | |
4612 | *) | |
4613 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4614 | continue # so that we can try to find one that supports BSD flags | |
4615 | ;; | |
4616 | esac | |
4617 | ;; | |
4618 | esac | |
4619 | fi | |
4620 | done | |
4621 | IFS="$lt_save_ifs" | |
4622 | done | |
8d138742 | 4623 | : ${lt_cv_path_NM=no} |
d9898ee8 | 4624 | fi |
4625 | fi | |
b0322a85 | 4626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
8d138742 CE |
4627 | $as_echo "$lt_cv_path_NM" >&6; } |
4628 | if test "$lt_cv_path_NM" != "no"; then | |
4629 | NM="$lt_cv_path_NM" | |
d9898ee8 | 4630 | else |
8d138742 | 4631 | # Didn't find any BSD compatible name lister, look for dumpbin. |
b0322a85 CE |
4632 | if test -n "$DUMPBIN"; then : |
4633 | # Let the user override the test. | |
4634 | else | |
4635 | if test -n "$ac_tool_prefix"; then | |
4636 | for ac_prog in dumpbin "link -dump" | |
8d138742 CE |
4637 | do |
4638 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4639 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4641 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4642 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
8d138742 CE |
4643 | $as_echo_n "(cached) " >&6 |
4644 | else | |
4645 | if test -n "$DUMPBIN"; then | |
4646 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4647 | else | |
4648 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4649 | for as_dir in $PATH | |
4650 | do | |
4651 | IFS=$as_save_IFS | |
4652 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4653 | for ac_exec_ext in '' $ac_executable_extensions; do |
4654 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4655 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
b0322a85 | 4656 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4657 | break 2 |
4658 | fi | |
4659 | done | |
b0322a85 | 4660 | done |
8d138742 | 4661 | IFS=$as_save_IFS |
d9898ee8 | 4662 | |
8d138742 CE |
4663 | fi |
4664 | fi | |
4665 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4666 | if test -n "$DUMPBIN"; then | |
b0322a85 | 4667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
8d138742 CE |
4668 | $as_echo "$DUMPBIN" >&6; } |
4669 | else | |
b0322a85 | 4670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4671 | $as_echo "no" >&6; } |
4672 | fi | |
d9898ee8 | 4673 | |
d9898ee8 | 4674 | |
8d138742 CE |
4675 | test -n "$DUMPBIN" && break |
4676 | done | |
4677 | fi | |
4678 | if test -z "$DUMPBIN"; then | |
4679 | ac_ct_DUMPBIN=$DUMPBIN | |
b0322a85 | 4680 | for ac_prog in dumpbin "link -dump" |
8d138742 CE |
4681 | do |
4682 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4683 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 4684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4685 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4686 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
8d138742 CE |
4687 | $as_echo_n "(cached) " >&6 |
4688 | else | |
4689 | if test -n "$ac_ct_DUMPBIN"; then | |
4690 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4691 | else | |
4692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4693 | for as_dir in $PATH | |
4694 | do | |
4695 | IFS=$as_save_IFS | |
4696 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4697 | for ac_exec_ext in '' $ac_executable_extensions; do |
4698 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4699 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
b0322a85 | 4700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 4701 | break 2 |
ac40fd9e | 4702 | fi |
8d138742 | 4703 | done |
b0322a85 | 4704 | done |
8d138742 | 4705 | IFS=$as_save_IFS |
d9898ee8 | 4706 | |
8d138742 CE |
4707 | fi |
4708 | fi | |
4709 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4710 | if test -n "$ac_ct_DUMPBIN"; then | |
b0322a85 | 4711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
8d138742 CE |
4712 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
4713 | else | |
b0322a85 | 4714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4715 | $as_echo "no" >&6; } |
4716 | fi | |
d9898ee8 | 4717 | |
8d138742 CE |
4718 | |
4719 | test -n "$ac_ct_DUMPBIN" && break | |
4720 | done | |
4721 | ||
4722 | if test "x$ac_ct_DUMPBIN" = x; then | |
4723 | DUMPBIN=":" | |
d9898ee8 | 4724 | else |
8d138742 CE |
4725 | case $cross_compiling:$ac_tool_warned in |
4726 | yes:) | |
b0322a85 | 4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
4728 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4729 | ac_tool_warned=yes ;; | |
4730 | esac | |
4731 | DUMPBIN=$ac_ct_DUMPBIN | |
d9898ee8 | 4732 | fi |
8d138742 | 4733 | fi |
d9898ee8 | 4734 | |
b0322a85 CE |
4735 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
4736 | *COFF*) | |
4737 | DUMPBIN="$DUMPBIN -symbols" | |
4738 | ;; | |
4739 | *) | |
4740 | DUMPBIN=: | |
4741 | ;; | |
4742 | esac | |
4743 | fi | |
d9898ee8 | 4744 | |
8d138742 CE |
4745 | if test "$DUMPBIN" != ":"; then |
4746 | NM="$DUMPBIN" | |
4747 | fi | |
4748 | fi | |
4749 | test -z "$NM" && NM=nm | |
d9898ee8 | 4750 | |
d9898ee8 | 4751 | |
d9898ee8 | 4752 | |
d9898ee8 | 4753 | |
d9898ee8 | 4754 | |
d9898ee8 | 4755 | |
b0322a85 | 4756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
8d138742 | 4757 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
b0322a85 | 4758 | if ${lt_cv_nm_interface+:} false; then : |
8d138742 CE |
4759 | $as_echo_n "(cached) " >&6 |
4760 | else | |
4761 | lt_cv_nm_interface="BSD nm" | |
4762 | echo "int some_variable = 0;" > conftest.$ac_ext | |
b0322a85 | 4763 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
8d138742 CE |
4764 | (eval "$ac_compile" 2>conftest.err) |
4765 | cat conftest.err >&5 | |
b0322a85 | 4766 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
8d138742 CE |
4767 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4768 | cat conftest.err >&5 | |
b0322a85 | 4769 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
8d138742 CE |
4770 | cat conftest.out >&5 |
4771 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4772 | lt_cv_nm_interface="MS dumpbin" | |
d9898ee8 | 4773 | fi |
8d138742 CE |
4774 | rm -f conftest* |
4775 | fi | |
b0322a85 | 4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
8d138742 | 4777 | $as_echo "$lt_cv_nm_interface" >&6; } |
d9898ee8 | 4778 | |
8d138742 | 4779 | # find the maximum length of command line arguments |
b0322a85 | 4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
8d138742 | 4781 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
b0322a85 | 4782 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
8d138742 CE |
4783 | $as_echo_n "(cached) " >&6 |
4784 | else | |
4785 | i=0 | |
4786 | teststring="ABCD" | |
d9898ee8 | 4787 | |
8d138742 CE |
4788 | case $build_os in |
4789 | msdosdjgpp*) | |
4790 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4791 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4792 | # during glob expansion). Even if it were fixed, the result of this | |
4793 | # check would be larger than it should be. | |
4794 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4795 | ;; | |
ac40fd9e | 4796 | |
8d138742 CE |
4797 | gnu*) |
4798 | # Under GNU Hurd, this test is not required because there is | |
4799 | # no limit to the length of command line arguments. | |
4800 | # Libtool will interpret -1 as no limit whatsoever | |
4801 | lt_cv_sys_max_cmd_len=-1; | |
4802 | ;; | |
d9898ee8 | 4803 | |
8d138742 CE |
4804 | cygwin* | mingw* | cegcc*) |
4805 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4806 | # about 5 minutes as the teststring grows exponentially. | |
4807 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4808 | # you end up with a "frozen" computer, even though with patience | |
4809 | # the test eventually succeeds (with a max line length of 256k). | |
4810 | # Instead, let's just punt: use the minimum linelength reported by | |
4811 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4812 | lt_cv_sys_max_cmd_len=8192; | |
d9898ee8 | 4813 | ;; |
8d138742 | 4814 | |
b0322a85 CE |
4815 | mint*) |
4816 | # On MiNT this can take a long time and run out of memory. | |
4817 | lt_cv_sys_max_cmd_len=8192; | |
4818 | ;; | |
4819 | ||
8d138742 CE |
4820 | amigaos*) |
4821 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4822 | # So we just punt and use a minimum line length of 8192. | |
4823 | lt_cv_sys_max_cmd_len=8192; | |
d9898ee8 | 4824 | ;; |
8d138742 CE |
4825 | |
4826 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
4827 | # This has been around since 386BSD, at least. Likely further. | |
4828 | if test -x /sbin/sysctl; then | |
4829 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4830 | elif test -x /usr/sbin/sysctl; then | |
4831 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4832 | else | |
4833 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4834 | fi | |
4835 | # And add a safety zone | |
4836 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4837 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
d9898ee8 | 4838 | ;; |
8d138742 CE |
4839 | |
4840 | interix*) | |
4841 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4842 | lt_cv_sys_max_cmd_len=196608 | |
d9898ee8 | 4843 | ;; |
8d138742 | 4844 | |
b0322a85 CE |
4845 | os2*) |
4846 | # The test takes a long time on OS/2. | |
4847 | lt_cv_sys_max_cmd_len=8192 | |
4848 | ;; | |
4849 | ||
8d138742 CE |
4850 | osf*) |
4851 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4852 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4853 | # nice to cause kernel panics so lets avoid the loop below. | |
4854 | # First set a reasonable default. | |
4855 | lt_cv_sys_max_cmd_len=16384 | |
4856 | # | |
4857 | if test -x /sbin/sysconfig; then | |
4858 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4859 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4860 | esac | |
4861 | fi | |
d9898ee8 | 4862 | ;; |
8d138742 CE |
4863 | sco3.2v5*) |
4864 | lt_cv_sys_max_cmd_len=102400 | |
4865 | ;; | |
4866 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4867 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4868 | if test -n "$kargmax"; then | |
4869 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4870 | else | |
4871 | lt_cv_sys_max_cmd_len=32768 | |
4872 | fi | |
4873 | ;; | |
4874 | *) | |
4875 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
4876 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
4877 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4878 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4879 | else | |
4880 | # Make teststring a little bigger before we do anything with it. | |
4881 | # a 1K string should be a reasonable start. | |
4882 | for i in 1 2 3 4 5 6 7 8 ; do | |
4883 | teststring=$teststring$teststring | |
4884 | done | |
4885 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4886 | # If test is not a shell built-in, we'll probably end up computing a | |
4887 | # maximum length that is only half of the actual maximum length, but | |
4888 | # we can't tell. | |
b0322a85 CE |
4889 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
4890 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
8d138742 CE |
4891 | test $i != 17 # 1/2 MB should be enough |
4892 | do | |
4893 | i=`expr $i + 1` | |
4894 | teststring=$teststring$teststring | |
4895 | done | |
4896 | # Only check the string length outside the loop. | |
4897 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4898 | teststring= | |
4899 | # Add a significant safety factor because C++ compilers can tack on | |
4900 | # massive amounts of additional arguments before passing them to the | |
4901 | # linker. It appears as though 1/2 is a usable value. | |
4902 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4903 | fi | |
d9898ee8 | 4904 | ;; |
4905 | esac | |
d9898ee8 | 4906 | |
8d138742 | 4907 | fi |
d9898ee8 | 4908 | |
8d138742 | 4909 | if test -n $lt_cv_sys_max_cmd_len ; then |
b0322a85 | 4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
8d138742 CE |
4911 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
4912 | else | |
b0322a85 | 4913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
8d138742 | 4914 | $as_echo "none" >&6; } |
d9898ee8 | 4915 | fi |
8d138742 | 4916 | max_cmd_len=$lt_cv_sys_max_cmd_len |
d9898ee8 | 4917 | |
4918 | ||
4919 | ||
4920 | ||
d9898ee8 | 4921 | |
d9898ee8 | 4922 | |
8d138742 CE |
4923 | : ${CP="cp -f"} |
4924 | : ${MV="mv -f"} | |
4925 | : ${RM="rm -f"} | |
d9898ee8 | 4926 | |
b0322a85 | 4927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
8d138742 CE |
4928 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
4929 | # Try some XSI features | |
4930 | xsi_shell=no | |
4931 | ( _lt_dummy="a/b/c" | |
b0322a85 CE |
4932 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
4933 | = c,a/b,b/c, \ | |
8d138742 CE |
4934 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
4935 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
4936 | && xsi_shell=yes | |
b0322a85 | 4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
8d138742 | 4938 | $as_echo "$xsi_shell" >&6; } |
d9898ee8 | 4939 | |
d9898ee8 | 4940 | |
b0322a85 | 4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
8d138742 CE |
4942 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
4943 | lt_shell_append=no | |
4944 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4945 | >/dev/null 2>&1 \ | |
4946 | && lt_shell_append=yes | |
b0322a85 | 4947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
8d138742 | 4948 | $as_echo "$lt_shell_append" >&6; } |
d9898ee8 | 4949 | |
d9898ee8 | 4950 | |
8d138742 CE |
4951 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
4952 | lt_unset=unset | |
d9898ee8 | 4953 | else |
8d138742 CE |
4954 | lt_unset=false |
4955 | fi | |
d9898ee8 | 4956 | |
d9898ee8 | 4957 | |
d9898ee8 | 4958 | |
dd184caf | 4959 | |
d9898ee8 | 4960 | |
8d138742 CE |
4961 | # test EBCDIC or ASCII |
4962 | case `echo X|tr X '\101'` in | |
4963 | A) # ASCII based system | |
4964 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4965 | lt_SP2NL='tr \040 \012' | |
4966 | lt_NL2SP='tr \015\012 \040\040' | |
d9898ee8 | 4967 | ;; |
8d138742 CE |
4968 | *) # EBCDIC based system |
4969 | lt_SP2NL='tr \100 \n' | |
4970 | lt_NL2SP='tr \r\n \100\100' | |
d9898ee8 | 4971 | ;; |
8d138742 | 4972 | esac |
d9898ee8 | 4973 | |
4974 | ||
d9898ee8 | 4975 | |
d9898ee8 | 4976 | |
4977 | ||
8d138742 CE |
4978 | |
4979 | ||
4980 | ||
4981 | ||
b0322a85 CE |
4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
4983 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
4984 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
4985 | $as_echo_n "(cached) " >&6 | |
4986 | else | |
4987 | case $host in | |
4988 | *-*-mingw* ) | |
4989 | case $build in | |
4990 | *-*-mingw* ) # actually msys | |
4991 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
4992 | ;; | |
4993 | *-*-cygwin* ) | |
4994 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
4995 | ;; | |
4996 | * ) # otherwise, assume *nix | |
4997 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
4998 | ;; | |
4999 | esac | |
5000 | ;; | |
5001 | *-*-cygwin* ) | |
5002 | case $build in | |
5003 | *-*-mingw* ) # actually msys | |
5004 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5005 | ;; | |
5006 | *-*-cygwin* ) | |
5007 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5008 | ;; | |
5009 | * ) # otherwise, assume *nix | |
5010 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5011 | ;; | |
5012 | esac | |
5013 | ;; | |
5014 | * ) # unhandled hosts (and "normal" native builds) | |
5015 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5016 | ;; | |
5017 | esac | |
5018 | ||
5019 | fi | |
5020 | ||
5021 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
5022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
5023 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
5024 | ||
5025 | ||
5026 | ||
5027 | ||
5028 | ||
5029 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5030 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5031 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5032 | $as_echo_n "(cached) " >&6 | |
5033 | else | |
5034 | #assume ordinary cross tools, or native build. | |
5035 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5036 | case $host in | |
5037 | *-*-mingw* ) | |
5038 | case $build in | |
5039 | *-*-mingw* ) # actually msys | |
5040 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5041 | ;; | |
5042 | esac | |
5043 | ;; | |
5044 | esac | |
5045 | ||
5046 | fi | |
5047 | ||
5048 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5050 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5051 | ||
5052 | ||
5053 | ||
5054 | ||
5055 | ||
5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
8d138742 | 5057 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
b0322a85 | 5058 | if ${lt_cv_ld_reload_flag+:} false; then : |
8d138742 | 5059 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5060 | else |
8d138742 CE |
5061 | lt_cv_ld_reload_flag='-r' |
5062 | fi | |
b0322a85 | 5063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
8d138742 CE |
5064 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
5065 | reload_flag=$lt_cv_ld_reload_flag | |
5066 | case $reload_flag in | |
5067 | "" | " "*) ;; | |
5068 | *) reload_flag=" $reload_flag" ;; | |
5069 | esac | |
5070 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5071 | case $host_os in | |
b0322a85 CE |
5072 | cygwin* | mingw* | pw32* | cegcc*) |
5073 | if test "$GCC" != yes; then | |
5074 | reload_cmds=false | |
5075 | fi | |
5076 | ;; | |
8d138742 CE |
5077 | darwin*) |
5078 | if test "$GCC" = yes; then | |
5079 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5080 | else | |
5081 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5082 | fi | |
5083 | ;; | |
dd184caf | 5084 | esac |
d9898ee8 | 5085 | |
dd184caf | 5086 | |
d9898ee8 | 5087 | |
d9898ee8 | 5088 | |
dd184caf | 5089 | |
d9898ee8 | 5090 | |
d9898ee8 | 5091 | |
d9898ee8 | 5092 | |
8d138742 CE |
5093 | |
5094 | if test -n "$ac_tool_prefix"; then | |
5095 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5096 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
b0322a85 | 5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5098 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5099 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
8d138742 | 5100 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5101 | else |
8d138742 CE |
5102 | if test -n "$OBJDUMP"; then |
5103 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
d9898ee8 | 5104 | else |
8d138742 CE |
5105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5106 | for as_dir in $PATH | |
5107 | do | |
5108 | IFS=$as_save_IFS | |
5109 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5110 | for ac_exec_ext in '' $ac_executable_extensions; do |
5111 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5112 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
b0322a85 | 5113 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5114 | break 2 |
5115 | fi | |
5116 | done | |
b0322a85 | 5117 | done |
8d138742 | 5118 | IFS=$as_save_IFS |
d9898ee8 | 5119 | |
8d138742 CE |
5120 | fi |
5121 | fi | |
5122 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5123 | if test -n "$OBJDUMP"; then | |
b0322a85 | 5124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
8d138742 CE |
5125 | $as_echo "$OBJDUMP" >&6; } |
5126 | else | |
b0322a85 | 5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5128 | $as_echo "no" >&6; } |
d9898ee8 | 5129 | fi |
dd184caf | 5130 | |
d9898ee8 | 5131 | |
8d138742 CE |
5132 | fi |
5133 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5134 | ac_ct_OBJDUMP=$OBJDUMP | |
5135 | # Extract the first word of "objdump", so it can be a program name with args. | |
5136 | set dummy objdump; ac_word=$2 | |
b0322a85 | 5137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5138 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5139 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
8d138742 | 5140 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5141 | else |
8d138742 CE |
5142 | if test -n "$ac_ct_OBJDUMP"; then |
5143 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5144 | else | |
5145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5146 | for as_dir in $PATH | |
5147 | do | |
5148 | IFS=$as_save_IFS | |
5149 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5150 | for ac_exec_ext in '' $ac_executable_extensions; do |
5151 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5152 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
b0322a85 | 5153 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5154 | break 2 |
5155 | fi | |
5156 | done | |
b0322a85 | 5157 | done |
8d138742 | 5158 | IFS=$as_save_IFS |
d9898ee8 | 5159 | |
8d138742 CE |
5160 | fi |
5161 | fi | |
5162 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5163 | if test -n "$ac_ct_OBJDUMP"; then | |
b0322a85 | 5164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
8d138742 CE |
5165 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
5166 | else | |
b0322a85 | 5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5168 | $as_echo "no" >&6; } |
d9898ee8 | 5169 | fi |
dd184caf | 5170 | |
8d138742 CE |
5171 | if test "x$ac_ct_OBJDUMP" = x; then |
5172 | OBJDUMP="false" | |
5173 | else | |
5174 | case $cross_compiling:$ac_tool_warned in | |
5175 | yes:) | |
b0322a85 | 5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5177 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5178 | ac_tool_warned=yes ;; | |
5179 | esac | |
5180 | OBJDUMP=$ac_ct_OBJDUMP | |
5181 | fi | |
d9898ee8 | 5182 | else |
8d138742 | 5183 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
d9898ee8 | 5184 | fi |
5185 | ||
8d138742 | 5186 | test -z "$OBJDUMP" && OBJDUMP=objdump |
d9898ee8 | 5187 | |
5188 | ||
d9898ee8 | 5189 | |
d9898ee8 | 5190 | |
d9898ee8 | 5191 | |
dd184caf | 5192 | |
d9898ee8 | 5193 | |
d9898ee8 | 5194 | |
8d138742 | 5195 | |
b0322a85 | 5196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
8d138742 | 5197 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
b0322a85 | 5198 | if ${lt_cv_deplibs_check_method+:} false; then : |
8d138742 | 5199 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5200 | else |
8d138742 CE |
5201 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5202 | lt_cv_file_magic_test_file= | |
5203 | lt_cv_deplibs_check_method='unknown' | |
5204 | # Need to set the preceding variable on all platforms that support | |
5205 | # interlibrary dependencies. | |
5206 | # 'none' -- dependencies not supported. | |
5207 | # `unknown' -- same as none, but documents that we really don't know. | |
5208 | # 'pass_all' -- all dependencies passed with no checks. | |
5209 | # 'test_compile' -- check by making test program. | |
5210 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5211 | # which responds to the $file_magic_cmd with a given extended regex. | |
5212 | # If you have `file' or equivalent on your system and you're not sure | |
5213 | # whether `pass_all' will *always* work, you probably want this one. | |
d9898ee8 | 5214 | |
8d138742 CE |
5215 | case $host_os in |
5216 | aix[4-9]*) | |
5217 | lt_cv_deplibs_check_method=pass_all | |
5218 | ;; | |
d9898ee8 | 5219 | |
8d138742 CE |
5220 | beos*) |
5221 | lt_cv_deplibs_check_method=pass_all | |
5222 | ;; | |
d9898ee8 | 5223 | |
8d138742 CE |
5224 | bsdi[45]*) |
5225 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5226 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5227 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5228 | ;; | |
d9898ee8 | 5229 | |
8d138742 CE |
5230 | cygwin*) |
5231 | # func_win32_libid is a shell function defined in ltmain.sh | |
5232 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5233 | lt_cv_file_magic_cmd='func_win32_libid' | |
5234 | ;; | |
d9898ee8 | 5235 | |
8d138742 CE |
5236 | mingw* | pw32*) |
5237 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5238 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5239 | # unless we find 'file', for example because we are cross-compiling. | |
b0322a85 CE |
5240 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
5241 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
8d138742 CE |
5242 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5243 | lt_cv_file_magic_cmd='func_win32_libid' | |
5244 | else | |
b0322a85 CE |
5245 | # Keep this pattern in sync with the one in func_win32_libid. |
5246 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
8d138742 CE |
5247 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
5248 | fi | |
5249 | ;; | |
d9898ee8 | 5250 | |
b0322a85 | 5251 | cegcc*) |
8d138742 CE |
5252 | # use the weaker test based on 'objdump'. See mingw*. |
5253 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5254 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5255 | ;; | |
d9898ee8 | 5256 | |
8d138742 CE |
5257 | darwin* | rhapsody*) |
5258 | lt_cv_deplibs_check_method=pass_all | |
5259 | ;; | |
5260 | ||
5261 | freebsd* | dragonfly*) | |
5262 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5263 | case $host_cpu in | |
5264 | i*86 ) | |
5265 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5266 | # Let's accept both of them until this is cleared up. | |
5267 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5268 | lt_cv_file_magic_cmd=/usr/bin/file | |
5269 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5270 | ;; | |
5271 | esac | |
5272 | else | |
5273 | lt_cv_deplibs_check_method=pass_all | |
5274 | fi | |
5275 | ;; | |
dd184caf | 5276 | |
8d138742 CE |
5277 | gnu*) |
5278 | lt_cv_deplibs_check_method=pass_all | |
5279 | ;; | |
dd184caf | 5280 | |
b0322a85 CE |
5281 | haiku*) |
5282 | lt_cv_deplibs_check_method=pass_all | |
5283 | ;; | |
5284 | ||
8d138742 CE |
5285 | hpux10.20* | hpux11*) |
5286 | lt_cv_file_magic_cmd=/usr/bin/file | |
5287 | case $host_cpu in | |
5288 | ia64*) | |
5289 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5290 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5291 | ;; | |
5292 | hppa*64*) | |
b0322a85 | 5293 | 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]' |
8d138742 CE |
5294 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5295 | ;; | |
5296 | *) | |
b0322a85 | 5297 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
8d138742 CE |
5298 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5299 | ;; | |
5300 | esac | |
5301 | ;; | |
d9898ee8 | 5302 | |
8d138742 CE |
5303 | interix[3-9]*) |
5304 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5305 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5306 | ;; | |
d9898ee8 | 5307 | |
8d138742 CE |
5308 | irix5* | irix6* | nonstopux*) |
5309 | case $LD in | |
5310 | *-32|*"-32 ") libmagic=32-bit;; | |
5311 | *-n32|*"-n32 ") libmagic=N32;; | |
5312 | *-64|*"-64 ") libmagic=64-bit;; | |
5313 | *) libmagic=never-match;; | |
5314 | esac | |
5315 | lt_cv_deplibs_check_method=pass_all | |
5316 | ;; | |
d9898ee8 | 5317 | |
b0322a85 CE |
5318 | # This must be glibc/ELF. |
5319 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
8d138742 CE |
5320 | lt_cv_deplibs_check_method=pass_all |
5321 | ;; | |
d9898ee8 | 5322 | |
8d138742 CE |
5323 | netbsd*) |
5324 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5325 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5326 | else | |
5327 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5328 | fi | |
5329 | ;; | |
d9898ee8 | 5330 | |
8d138742 CE |
5331 | newos6*) |
5332 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5333 | lt_cv_file_magic_cmd=/usr/bin/file | |
5334 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5335 | ;; | |
d9898ee8 | 5336 | |
8d138742 CE |
5337 | *nto* | *qnx*) |
5338 | lt_cv_deplibs_check_method=pass_all | |
5339 | ;; | |
d9898ee8 | 5340 | |
8d138742 CE |
5341 | openbsd*) |
5342 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5343 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5344 | else | |
5345 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5346 | fi | |
5347 | ;; | |
d9898ee8 | 5348 | |
8d138742 CE |
5349 | osf3* | osf4* | osf5*) |
5350 | lt_cv_deplibs_check_method=pass_all | |
5351 | ;; | |
d9898ee8 | 5352 | |
8d138742 CE |
5353 | rdos*) |
5354 | lt_cv_deplibs_check_method=pass_all | |
5355 | ;; | |
d9898ee8 | 5356 | |
8d138742 CE |
5357 | solaris*) |
5358 | lt_cv_deplibs_check_method=pass_all | |
5359 | ;; | |
d9898ee8 | 5360 | |
8d138742 CE |
5361 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5362 | lt_cv_deplibs_check_method=pass_all | |
5363 | ;; | |
d9898ee8 | 5364 | |
8d138742 CE |
5365 | sysv4 | sysv4.3*) |
5366 | case $host_vendor in | |
5367 | motorola) | |
5368 | 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]' | |
5369 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5370 | ;; | |
5371 | ncr) | |
5372 | lt_cv_deplibs_check_method=pass_all | |
5373 | ;; | |
5374 | sequent) | |
5375 | lt_cv_file_magic_cmd='/bin/file' | |
5376 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5377 | ;; | |
5378 | sni) | |
5379 | lt_cv_file_magic_cmd='/bin/file' | |
5380 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5381 | lt_cv_file_magic_test_file=/lib/libc.so | |
5382 | ;; | |
5383 | siemens) | |
5384 | lt_cv_deplibs_check_method=pass_all | |
5385 | ;; | |
5386 | pc) | |
5387 | lt_cv_deplibs_check_method=pass_all | |
5388 | ;; | |
5389 | esac | |
5390 | ;; | |
d9898ee8 | 5391 | |
8d138742 CE |
5392 | tpf*) |
5393 | lt_cv_deplibs_check_method=pass_all | |
5394 | ;; | |
dd184caf | 5395 | esac |
d9898ee8 | 5396 | |
d9898ee8 | 5397 | fi |
b0322a85 | 5398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
8d138742 | 5399 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
b0322a85 CE |
5400 | |
5401 | file_magic_glob= | |
5402 | want_nocaseglob=no | |
5403 | if test "$build" = "$host"; then | |
5404 | case $host_os in | |
5405 | mingw* | pw32*) | |
5406 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5407 | want_nocaseglob=yes | |
5408 | else | |
5409 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5410 | fi | |
5411 | ;; | |
5412 | esac | |
5413 | fi | |
5414 | ||
8d138742 CE |
5415 | file_magic_cmd=$lt_cv_file_magic_cmd |
5416 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5417 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
dd184caf | 5418 | |
d9898ee8 | 5419 | |
d9898ee8 | 5420 | |
d9898ee8 | 5421 | |
5422 | ||
5423 | ||
d9898ee8 | 5424 | |
dd184caf | 5425 | |
d9898ee8 | 5426 | |
8d138742 | 5427 | |
b0322a85 CE |
5428 | |
5429 | ||
5430 | ||
5431 | ||
5432 | ||
5433 | ||
5434 | ||
5435 | ||
5436 | ||
5437 | ||
8d138742 CE |
5438 | |
5439 | ||
5440 | if test -n "$ac_tool_prefix"; then | |
b0322a85 CE |
5441 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
5442 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5444 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5445 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
8d138742 | 5446 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5447 | else |
b0322a85 CE |
5448 | if test -n "$DLLTOOL"; then |
5449 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8d138742 CE |
5450 | else |
5451 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5452 | for as_dir in $PATH | |
5453 | do | |
5454 | IFS=$as_save_IFS | |
5455 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5456 | for ac_exec_ext in '' $ac_executable_extensions; do |
5457 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5458 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5459 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8d138742 CE |
5460 | break 2 |
5461 | fi | |
5462 | done | |
b0322a85 | 5463 | done |
8d138742 | 5464 | IFS=$as_save_IFS |
d9898ee8 | 5465 | |
8d138742 CE |
5466 | fi |
5467 | fi | |
b0322a85 CE |
5468 | DLLTOOL=$ac_cv_prog_DLLTOOL |
5469 | if test -n "$DLLTOOL"; then | |
5470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5471 | $as_echo "$DLLTOOL" >&6; } | |
8d138742 | 5472 | else |
b0322a85 | 5473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5474 | $as_echo "no" >&6; } |
d9898ee8 | 5475 | fi |
dd184caf | 5476 | |
d9898ee8 | 5477 | |
d9898ee8 | 5478 | fi |
b0322a85 CE |
5479 | if test -z "$ac_cv_prog_DLLTOOL"; then |
5480 | ac_ct_DLLTOOL=$DLLTOOL | |
5481 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5482 | set dummy dlltool; ac_word=$2 | |
5483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5484 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5485 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
8d138742 CE |
5486 | $as_echo_n "(cached) " >&6 |
5487 | else | |
b0322a85 CE |
5488 | if test -n "$ac_ct_DLLTOOL"; then |
5489 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
8d138742 CE |
5490 | else |
5491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5492 | for as_dir in $PATH | |
5493 | do | |
5494 | IFS=$as_save_IFS | |
5495 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5496 | for ac_exec_ext in '' $ac_executable_extensions; do |
5497 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5498 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5499 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8d138742 CE |
5500 | break 2 |
5501 | fi | |
5502 | done | |
b0322a85 | 5503 | done |
8d138742 | 5504 | IFS=$as_save_IFS |
d9898ee8 | 5505 | |
5506 | fi | |
8d138742 | 5507 | fi |
b0322a85 CE |
5508 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
5509 | if test -n "$ac_ct_DLLTOOL"; then | |
5510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5511 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
8d138742 | 5512 | else |
b0322a85 | 5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5514 | $as_echo "no" >&6; } |
5515 | fi | |
d9898ee8 | 5516 | |
b0322a85 CE |
5517 | if test "x$ac_ct_DLLTOOL" = x; then |
5518 | DLLTOOL="false" | |
8d138742 CE |
5519 | else |
5520 | case $cross_compiling:$ac_tool_warned in | |
5521 | yes:) | |
b0322a85 | 5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5523 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5524 | ac_tool_warned=yes ;; | |
5525 | esac | |
b0322a85 | 5526 | DLLTOOL=$ac_ct_DLLTOOL |
8d138742 CE |
5527 | fi |
5528 | else | |
b0322a85 | 5529 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
d9898ee8 | 5530 | fi |
5531 | ||
b0322a85 CE |
5532 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
5533 | ||
5534 | ||
5535 | ||
d9898ee8 | 5536 | |
8d138742 CE |
5537 | |
5538 | ||
5539 | ||
5540 | ||
5541 | ||
5542 | ||
b0322a85 CE |
5543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
5544 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5545 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5546 | $as_echo_n "(cached) " >&6 | |
5547 | else | |
5548 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5549 | ||
5550 | case $host_os in | |
5551 | cygwin* | mingw* | pw32* | cegcc*) | |
5552 | # two different shell functions defined in ltmain.sh | |
5553 | # decide which to use based on capabilities of $DLLTOOL | |
5554 | case `$DLLTOOL --help 2>&1` in | |
5555 | *--identify-strict*) | |
5556 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5557 | ;; | |
5558 | *) | |
5559 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5560 | ;; | |
5561 | esac | |
5562 | ;; | |
5563 | *) | |
5564 | # fallback: assume linklib IS sharedlib | |
5565 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
5566 | ;; | |
5567 | esac | |
5568 | ||
5569 | fi | |
5570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5571 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5572 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5573 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5574 | ||
5575 | ||
5576 | ||
5577 | ||
8d138742 CE |
5578 | |
5579 | ||
5580 | ||
5581 | ||
5582 | if test -n "$ac_tool_prefix"; then | |
b0322a85 CE |
5583 | for ac_prog in ar |
5584 | do | |
5585 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5586 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5588 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5589 | if ${ac_cv_prog_AR+:} false; then : |
8d138742 | 5590 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5591 | else |
b0322a85 CE |
5592 | if test -n "$AR"; then |
5593 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
d9898ee8 | 5594 | else |
5595 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5596 | for as_dir in $PATH | |
5597 | do | |
5598 | IFS=$as_save_IFS | |
5599 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5600 | for ac_exec_ext in '' $ac_executable_extensions; do |
5601 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5602 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5603 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 5604 | break 2 |
5605 | fi | |
5606 | done | |
b0322a85 | 5607 | done |
dd184caf | 5608 | IFS=$as_save_IFS |
d9898ee8 | 5609 | |
5610 | fi | |
5611 | fi | |
b0322a85 CE |
5612 | AR=$ac_cv_prog_AR |
5613 | if test -n "$AR"; then | |
5614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5615 | $as_echo "$AR" >&6; } | |
d9898ee8 | 5616 | else |
b0322a85 | 5617 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5618 | $as_echo "no" >&6; } |
d9898ee8 | 5619 | fi |
5620 | ||
dd184caf | 5621 | |
b0322a85 CE |
5622 | test -n "$AR" && break |
5623 | done | |
d9898ee8 | 5624 | fi |
b0322a85 CE |
5625 | if test -z "$AR"; then |
5626 | ac_ct_AR=$AR | |
5627 | for ac_prog in ar | |
5628 | do | |
5629 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5630 | set dummy $ac_prog; ac_word=$2 | |
5631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5632 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5633 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
8d138742 | 5634 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5635 | else |
b0322a85 CE |
5636 | if test -n "$ac_ct_AR"; then |
5637 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5638 | else | |
5639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5640 | for as_dir in $PATH | |
5641 | do | |
5642 | IFS=$as_save_IFS | |
5643 | test -z "$as_dir" && as_dir=. | |
5644 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5645 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5646 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5647 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5648 | break 2 | |
5649 | fi | |
5650 | done | |
5651 | done | |
5652 | IFS=$as_save_IFS | |
5653 | ||
5654 | fi | |
5655 | fi | |
5656 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5657 | if test -n "$ac_ct_AR"; then | |
5658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5659 | $as_echo "$ac_ct_AR" >&6; } | |
5660 | else | |
5661 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5662 | $as_echo "no" >&6; } | |
5663 | fi | |
5664 | ||
5665 | ||
5666 | test -n "$ac_ct_AR" && break | |
5667 | done | |
5668 | ||
5669 | if test "x$ac_ct_AR" = x; then | |
5670 | AR="false" | |
5671 | else | |
5672 | case $cross_compiling:$ac_tool_warned in | |
5673 | yes:) | |
5674 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5675 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5676 | ac_tool_warned=yes ;; | |
5677 | esac | |
5678 | AR=$ac_ct_AR | |
5679 | fi | |
5680 | fi | |
5681 | ||
5682 | : ${AR=ar} | |
5683 | : ${AR_FLAGS=cru} | |
5684 | ||
5685 | ||
5686 | ||
5687 | ||
5688 | ||
5689 | ||
5690 | ||
5691 | ||
5692 | ||
5693 | ||
5694 | ||
5695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
5696 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5697 | if ${lt_cv_ar_at_file+:} false; then : | |
5698 | $as_echo_n "(cached) " >&6 | |
5699 | else | |
5700 | lt_cv_ar_at_file=no | |
5701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5702 | /* end confdefs.h. */ | |
5703 | ||
5704 | int | |
5705 | main () | |
5706 | { | |
5707 | ||
5708 | ; | |
5709 | return 0; | |
5710 | } | |
5711 | _ACEOF | |
5712 | if ac_fn_c_try_compile "$LINENO"; then : | |
5713 | echo conftest.$ac_objext > conftest.lst | |
5714 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5715 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5716 | (eval $lt_ar_try) 2>&5 | |
5717 | ac_status=$? | |
5718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5719 | test $ac_status = 0; } | |
5720 | if test "$ac_status" -eq 0; then | |
5721 | # Ensure the archiver fails upon bogus file names. | |
5722 | rm -f conftest.$ac_objext libconftest.a | |
5723 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5724 | (eval $lt_ar_try) 2>&5 | |
5725 | ac_status=$? | |
5726 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5727 | test $ac_status = 0; } | |
5728 | if test "$ac_status" -ne 0; then | |
5729 | lt_cv_ar_at_file=@ | |
5730 | fi | |
5731 | fi | |
5732 | rm -f conftest.* libconftest.a | |
5733 | ||
5734 | fi | |
5735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5736 | ||
5737 | fi | |
5738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5739 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
5740 | ||
5741 | if test "x$lt_cv_ar_at_file" = xno; then | |
5742 | archiver_list_spec= | |
5743 | else | |
5744 | archiver_list_spec=$lt_cv_ar_at_file | |
5745 | fi | |
5746 | ||
5747 | ||
5748 | ||
5749 | ||
5750 | ||
5751 | ||
5752 | ||
5753 | if test -n "$ac_tool_prefix"; then | |
5754 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5755 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5757 | $as_echo_n "checking for $ac_word... " >&6; } | |
5758 | if ${ac_cv_prog_STRIP+:} false; then : | |
5759 | $as_echo_n "(cached) " >&6 | |
5760 | else | |
5761 | if test -n "$STRIP"; then | |
5762 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5763 | else | |
5764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5765 | for as_dir in $PATH | |
5766 | do | |
5767 | IFS=$as_save_IFS | |
5768 | test -z "$as_dir" && as_dir=. | |
5769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5770 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5771 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5773 | break 2 | |
5774 | fi | |
5775 | done | |
5776 | done | |
5777 | IFS=$as_save_IFS | |
5778 | ||
5779 | fi | |
5780 | fi | |
5781 | STRIP=$ac_cv_prog_STRIP | |
5782 | if test -n "$STRIP"; then | |
5783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
5784 | $as_echo "$STRIP" >&6; } | |
5785 | else | |
5786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5787 | $as_echo "no" >&6; } | |
5788 | fi | |
5789 | ||
5790 | ||
5791 | fi | |
5792 | if test -z "$ac_cv_prog_STRIP"; then | |
5793 | ac_ct_STRIP=$STRIP | |
5794 | # Extract the first word of "strip", so it can be a program name with args. | |
5795 | set dummy strip; ac_word=$2 | |
5796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5797 | $as_echo_n "checking for $ac_word... " >&6; } | |
5798 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
5799 | $as_echo_n "(cached) " >&6 | |
5800 | else | |
5801 | if test -n "$ac_ct_STRIP"; then | |
8d138742 | 5802 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
d9898ee8 | 5803 | else |
5804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5805 | for as_dir in $PATH | |
5806 | do | |
5807 | IFS=$as_save_IFS | |
5808 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5809 | for ac_exec_ext in '' $ac_executable_extensions; do |
5810 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5811 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 5812 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 5813 | break 2 |
5814 | fi | |
5815 | done | |
b0322a85 | 5816 | done |
dd184caf | 5817 | IFS=$as_save_IFS |
d9898ee8 | 5818 | |
5819 | fi | |
5820 | fi | |
8d138742 CE |
5821 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5822 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 | 5824 | $as_echo "$ac_ct_STRIP" >&6; } |
d9898ee8 | 5825 | else |
b0322a85 | 5826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5827 | $as_echo "no" >&6; } |
d9898ee8 | 5828 | fi |
5829 | ||
8d138742 CE |
5830 | if test "x$ac_ct_STRIP" = x; then |
5831 | STRIP=":" | |
dd184caf | 5832 | else |
5833 | case $cross_compiling:$ac_tool_warned in | |
5834 | yes:) | |
b0322a85 | 5835 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 5836 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 5837 | ac_tool_warned=yes ;; |
5838 | esac | |
8d138742 | 5839 | STRIP=$ac_ct_STRIP |
dd184caf | 5840 | fi |
8d138742 CE |
5841 | else |
5842 | STRIP="$ac_cv_prog_STRIP" | |
d9898ee8 | 5843 | fi |
5844 | ||
8d138742 | 5845 | test -z "$STRIP" && STRIP=: |
d9898ee8 | 5846 | |
d9898ee8 | 5847 | |
d9898ee8 | 5848 | |
8d138742 CE |
5849 | |
5850 | ||
5851 | ||
5852 | if test -n "$ac_tool_prefix"; then | |
5853 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5854 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b0322a85 | 5855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5856 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5857 | if ${ac_cv_prog_RANLIB+:} false; then : |
8d138742 | 5858 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5859 | else |
8d138742 CE |
5860 | if test -n "$RANLIB"; then |
5861 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5862 | else | |
5863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5864 | for as_dir in $PATH | |
5865 | do | |
5866 | IFS=$as_save_IFS | |
5867 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5868 | for ac_exec_ext in '' $ac_executable_extensions; do |
5869 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5870 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
b0322a85 | 5871 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5872 | break 2 |
5873 | fi | |
5874 | done | |
b0322a85 | 5875 | done |
8d138742 | 5876 | IFS=$as_save_IFS |
d9898ee8 | 5877 | |
8d138742 CE |
5878 | fi |
5879 | fi | |
5880 | RANLIB=$ac_cv_prog_RANLIB | |
5881 | if test -n "$RANLIB"; then | |
b0322a85 | 5882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8d138742 CE |
5883 | $as_echo "$RANLIB" >&6; } |
5884 | else | |
b0322a85 | 5885 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5886 | $as_echo "no" >&6; } |
d9898ee8 | 5887 | fi |
dd184caf | 5888 | |
d9898ee8 | 5889 | |
8d138742 CE |
5890 | fi |
5891 | if test -z "$ac_cv_prog_RANLIB"; then | |
5892 | ac_ct_RANLIB=$RANLIB | |
5893 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5894 | set dummy ranlib; ac_word=$2 | |
b0322a85 | 5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5896 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5897 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
8d138742 CE |
5898 | $as_echo_n "(cached) " >&6 |
5899 | else | |
5900 | if test -n "$ac_ct_RANLIB"; then | |
5901 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5902 | else | |
5903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5904 | for as_dir in $PATH | |
5905 | do | |
5906 | IFS=$as_save_IFS | |
5907 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5908 | for ac_exec_ext in '' $ac_executable_extensions; do |
5909 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5910 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
b0322a85 | 5911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5912 | break 2 |
5913 | fi | |
5914 | done | |
b0322a85 | 5915 | done |
8d138742 | 5916 | IFS=$as_save_IFS |
d9898ee8 | 5917 | |
8d138742 CE |
5918 | fi |
5919 | fi | |
5920 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5921 | if test -n "$ac_ct_RANLIB"; then | |
b0322a85 | 5922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8d138742 CE |
5923 | $as_echo "$ac_ct_RANLIB" >&6; } |
5924 | else | |
b0322a85 | 5925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5926 | $as_echo "no" >&6; } |
5927 | fi | |
5928 | ||
5929 | if test "x$ac_ct_RANLIB" = x; then | |
5930 | RANLIB=":" | |
5931 | else | |
5932 | case $cross_compiling:$ac_tool_warned in | |
5933 | yes:) | |
b0322a85 | 5934 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5935 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5936 | ac_tool_warned=yes ;; | |
dd184caf | 5937 | esac |
8d138742 CE |
5938 | RANLIB=$ac_ct_RANLIB |
5939 | fi | |
d9898ee8 | 5940 | else |
8d138742 CE |
5941 | RANLIB="$ac_cv_prog_RANLIB" |
5942 | fi | |
d9898ee8 | 5943 | |
8d138742 | 5944 | test -z "$RANLIB" && RANLIB=: |
dd184caf | 5945 | |
dd184caf | 5946 | |
d9898ee8 | 5947 | |
dd184caf | 5948 | |
dd184caf | 5949 | |
d9898ee8 | 5950 | |
8d138742 CE |
5951 | # Determine commands to create old-style static archives. |
5952 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
5953 | old_postinstall_cmds='chmod 644 $oldlib' | |
5954 | old_postuninstall_cmds= | |
dd184caf | 5955 | |
8d138742 CE |
5956 | if test -n "$RANLIB"; then |
5957 | case $host_os in | |
5958 | openbsd*) | |
b0322a85 | 5959 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
8d138742 CE |
5960 | ;; |
5961 | *) | |
b0322a85 | 5962 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
8d138742 CE |
5963 | ;; |
5964 | esac | |
b0322a85 | 5965 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
d9898ee8 | 5966 | fi |
dd184caf | 5967 | |
b0322a85 CE |
5968 | case $host_os in |
5969 | darwin*) | |
5970 | lock_old_archive_extraction=yes ;; | |
5971 | *) | |
5972 | lock_old_archive_extraction=no ;; | |
5973 | esac | |
5974 | ||
5975 | ||
5976 | ||
5977 | ||
5978 | ||
5979 | ||
d9898ee8 | 5980 | |
dd184caf | 5981 | |
d9898ee8 | 5982 | |
d9898ee8 | 5983 | |
d9898ee8 | 5984 | |
d9898ee8 | 5985 | |
d9898ee8 | 5986 | |
d9898ee8 | 5987 | |
d9898ee8 | 5988 | |
d9898ee8 | 5989 | |
5990 | ||
5991 | ||
5992 | ||
d9898ee8 | 5993 | |
dd184caf | 5994 | |
d9898ee8 | 5995 | |
d9898ee8 | 5996 | |
dd184caf | 5997 | |
d9898ee8 | 5998 | |
d9898ee8 | 5999 | |
d9898ee8 | 6000 | |
d9898ee8 | 6001 | |
dd184caf | 6002 | |
d9898ee8 | 6003 | |
d9898ee8 | 6004 | |
dd184caf | 6005 | |
d9898ee8 | 6006 | |
d9898ee8 | 6007 | |
d9898ee8 | 6008 | |
d9898ee8 | 6009 | |
6010 | ||
d9898ee8 | 6011 | |
d9898ee8 | 6012 | |
8d138742 CE |
6013 | # If no C compiler was specified, use CC. |
6014 | LTCC=${LTCC-"$CC"} | |
dd184caf | 6015 | |
8d138742 CE |
6016 | # If no C compiler flags were specified, use CFLAGS. |
6017 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 6018 | |
8d138742 CE |
6019 | # Allow CC to be a program name with arguments. |
6020 | compiler=$CC | |
6021 | ||
6022 | ||
6023 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
b0322a85 | 6024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8d138742 | 6025 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
b0322a85 | 6026 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
8d138742 | 6027 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6028 | else |
d9898ee8 | 6029 | |
8d138742 CE |
6030 | # These are sane defaults that work on at least a few old systems. |
6031 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
dd184caf | 6032 | |
8d138742 CE |
6033 | # Character class describing NM global symbol codes. |
6034 | symcode='[BCDEGRST]' | |
d9898ee8 | 6035 | |
8d138742 CE |
6036 | # Regexp to match symbols that can be accessed directly from C. |
6037 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6038 | ||
6039 | # Define system-specific variables. | |
6040 | case $host_os in | |
6041 | aix*) | |
6042 | symcode='[BCDT]' | |
6043 | ;; | |
6044 | cygwin* | mingw* | pw32* | cegcc*) | |
6045 | symcode='[ABCDGISTW]' | |
6046 | ;; | |
6047 | hpux*) | |
6048 | if test "$host_cpu" = ia64; then | |
6049 | symcode='[ABCDEGRST]' | |
dd184caf | 6050 | fi |
8d138742 CE |
6051 | ;; |
6052 | irix* | nonstopux*) | |
6053 | symcode='[BCDEGRST]' | |
6054 | ;; | |
6055 | osf*) | |
6056 | symcode='[BCDEGQRST]' | |
6057 | ;; | |
6058 | solaris*) | |
6059 | symcode='[BDRT]' | |
6060 | ;; | |
6061 | sco3.2v5*) | |
6062 | symcode='[DT]' | |
6063 | ;; | |
6064 | sysv4.2uw2*) | |
6065 | symcode='[DT]' | |
6066 | ;; | |
6067 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6068 | symcode='[ABDT]' | |
6069 | ;; | |
6070 | sysv4) | |
6071 | symcode='[DFNSTU]' | |
6072 | ;; | |
6073 | esac | |
6074 | ||
6075 | # If we're using GNU nm, then use its standard symbol codes. | |
6076 | case `$NM -V 2>&1` in | |
6077 | *GNU* | *'with BFD'*) | |
6078 | symcode='[ABCDGIRSTW]' ;; | |
6079 | esac | |
d9898ee8 | 6080 | |
8d138742 CE |
6081 | # Transform an extracted symbol line into a proper C declaration. |
6082 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6083 | # so use this general approach. | |
6084 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
d9898ee8 | 6085 | |
8d138742 | 6086 | # Transform an extracted symbol line into symbol name and symbol address |
b0322a85 CE |
6087 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
6088 | 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'" | |
8d138742 CE |
6089 | |
6090 | # Handle CRLF in mingw tool chain | |
6091 | opt_cr= | |
6092 | case $build_os in | |
6093 | mingw*) | |
6094 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6095 | ;; | |
dd184caf | 6096 | esac |
8d138742 CE |
6097 | |
6098 | # Try without a prefix underscore, then with it. | |
6099 | for ac_symprfx in "" "_"; do | |
6100 | ||
6101 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6102 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6103 | ||
6104 | # Write the raw and C identifiers. | |
6105 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6106 | # Fake it for dumpbin and say T for any non-static function | |
6107 | # and D for any global variable. | |
6108 | # Also find C++ and __fastcall symbols from MSVC++, | |
6109 | # which start with @ or ?. | |
6110 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6111 | " {last_section=section; section=\$ 3};"\ | |
b0322a85 | 6112 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
8d138742 CE |
6113 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
6114 | " \$ 0!~/External *\|/{next};"\ | |
6115 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6116 | " {if(hide[section]) next};"\ | |
6117 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6118 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6119 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6120 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6121 | " ' prfx=^$ac_symprfx" | |
6122 | else | |
6123 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6124 | fi | |
b0322a85 | 6125 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
8d138742 CE |
6126 | |
6127 | # Check to see that the pipe works correctly. | |
6128 | pipe_works=no | |
6129 | ||
6130 | rm -f conftest* | |
6131 | cat > conftest.$ac_ext <<_LT_EOF | |
6132 | #ifdef __cplusplus | |
6133 | extern "C" { | |
6134 | #endif | |
6135 | char nm_test_var; | |
6136 | void nm_test_func(void); | |
6137 | void nm_test_func(void){} | |
6138 | #ifdef __cplusplus | |
6139 | } | |
6140 | #endif | |
6141 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6142 | _LT_EOF | |
6143 | ||
b0322a85 | 6144 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 | 6145 | (eval $ac_compile) 2>&5 |
d9898ee8 | 6146 | ac_status=$? |
b0322a85 CE |
6147 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6148 | test $ac_status = 0; }; then | |
8d138742 CE |
6149 | # Now try to grab the symbols. |
6150 | nlist=conftest.nm | |
b0322a85 CE |
6151 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6152 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
d9898ee8 | 6153 | ac_status=$? |
b0322a85 CE |
6154 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6155 | test $ac_status = 0; } && test -s "$nlist"; then | |
8d138742 CE |
6156 | # Try sorting and uniquifying the output. |
6157 | if sort "$nlist" | uniq > "$nlist"T; then | |
6158 | mv -f "$nlist"T "$nlist" | |
6159 | else | |
6160 | rm -f "$nlist"T | |
6161 | fi | |
d9898ee8 | 6162 | |
8d138742 CE |
6163 | # Make sure that we snagged all the symbols we need. |
6164 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6165 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6166 | cat <<_LT_EOF > conftest.$ac_ext | |
b0322a85 CE |
6167 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
6168 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
6169 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
6170 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
6171 | # define LT_DLSYM_CONST | |
6172 | #elif defined(__osf__) | |
6173 | /* This system does not cope well with relocations in const data. */ | |
6174 | # define LT_DLSYM_CONST | |
6175 | #else | |
6176 | # define LT_DLSYM_CONST const | |
6177 | #endif | |
6178 | ||
8d138742 CE |
6179 | #ifdef __cplusplus |
6180 | extern "C" { | |
d9898ee8 | 6181 | #endif |
6182 | ||
8d138742 CE |
6183 | _LT_EOF |
6184 | # Now generate the symbol file. | |
6185 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
d9898ee8 | 6186 | |
8d138742 | 6187 | cat <<_LT_EOF >> conftest.$ac_ext |
dd184caf | 6188 | |
8d138742 | 6189 | /* The mapping between symbol names and symbols. */ |
b0322a85 | 6190 | LT_DLSYM_CONST struct { |
8d138742 CE |
6191 | const char *name; |
6192 | void *address; | |
6193 | } | |
6194 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6195 | { | |
6196 | { "@PROGRAM@", (void *) 0 }, | |
6197 | _LT_EOF | |
6198 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6199 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6200 | {0, (void *) 0} | |
6201 | }; | |
d9898ee8 | 6202 | |
8d138742 CE |
6203 | /* This works around a problem in FreeBSD linker */ |
6204 | #ifdef FREEBSD_WORKAROUND | |
6205 | static const void *lt_preloaded_setup() { | |
6206 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6207 | } | |
6208 | #endif | |
d9898ee8 | 6209 | |
8d138742 CE |
6210 | #ifdef __cplusplus |
6211 | } | |
6212 | #endif | |
6213 | _LT_EOF | |
6214 | # Now try linking the two files. | |
6215 | mv conftest.$ac_objext conftstm.$ac_objext | |
b0322a85 CE |
6216 | lt_globsym_save_LIBS=$LIBS |
6217 | lt_globsym_save_CFLAGS=$CFLAGS | |
8d138742 CE |
6218 | LIBS="conftstm.$ac_objext" |
6219 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
b0322a85 | 6220 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 | 6221 | (eval $ac_link) 2>&5 |
d9898ee8 | 6222 | ac_status=$? |
b0322a85 CE |
6223 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6224 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
8d138742 CE |
6225 | pipe_works=yes |
6226 | fi | |
b0322a85 CE |
6227 | LIBS=$lt_globsym_save_LIBS |
6228 | CFLAGS=$lt_globsym_save_CFLAGS | |
8d138742 CE |
6229 | else |
6230 | echo "cannot find nm_test_func in $nlist" >&5 | |
6231 | fi | |
6232 | else | |
6233 | echo "cannot find nm_test_var in $nlist" >&5 | |
6234 | fi | |
6235 | else | |
6236 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6237 | fi | |
6238 | else | |
6239 | echo "$progname: failed program was:" >&5 | |
6240 | cat conftest.$ac_ext >&5 | |
6241 | fi | |
6242 | rm -rf conftest* conftst* | |
d9898ee8 | 6243 | |
8d138742 CE |
6244 | # Do not use the global_symbol_pipe unless it works. |
6245 | if test "$pipe_works" = yes; then | |
6246 | break | |
6247 | else | |
6248 | lt_cv_sys_global_symbol_pipe= | |
6249 | fi | |
6250 | done | |
dd184caf | 6251 | |
8d138742 | 6252 | fi |
d9898ee8 | 6253 | |
8d138742 CE |
6254 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6255 | lt_cv_sys_global_symbol_to_cdecl= | |
d9898ee8 | 6256 | fi |
8d138742 | 6257 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
b0322a85 | 6258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8d138742 | 6259 | $as_echo "failed" >&6; } |
d9898ee8 | 6260 | else |
b0322a85 | 6261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8d138742 | 6262 | $as_echo "ok" >&6; } |
d9898ee8 | 6263 | fi |
6264 | ||
b0322a85 CE |
6265 | # Response file support. |
6266 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6267 | nm_file_list_spec='@' | |
6268 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6269 | nm_file_list_spec='@' | |
6270 | fi | |
6271 | ||
6272 | ||
6273 | ||
6274 | ||
6275 | ||
6276 | ||
6277 | ||
d9898ee8 | 6278 | |
6279 | ||
6280 | ||
d9898ee8 | 6281 | |
d9898ee8 | 6282 | |
d9898ee8 | 6283 | |
d9898ee8 | 6284 | |
d9898ee8 | 6285 | |
d9898ee8 | 6286 | |
d9898ee8 | 6287 | |
d9898ee8 | 6288 | |
d9898ee8 | 6289 | |
d9898ee8 | 6290 | |
d9898ee8 | 6291 | |
6292 | ||
6293 | ||
6294 | ||
b0322a85 CE |
6295 | |
6296 | ||
6297 | ||
6298 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6299 | $as_echo_n "checking for sysroot... " >&6; } | |
6300 | ||
6301 | # Check whether --with-sysroot was given. | |
6302 | if test "${with_sysroot+set}" = set; then : | |
6303 | withval=$with_sysroot; | |
6304 | else | |
6305 | with_sysroot=no | |
6306 | fi | |
6307 | ||
6308 | ||
6309 | lt_sysroot= | |
6310 | case ${with_sysroot} in #( | |
6311 | yes) | |
6312 | if test "$GCC" = yes; then | |
6313 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
6314 | fi | |
6315 | ;; #( | |
6316 | /*) | |
6317 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6318 | ;; #( | |
6319 | no|'') | |
6320 | ;; #( | |
6321 | *) | |
6322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
6323 | $as_echo "${with_sysroot}" >&6; } | |
6324 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
6325 | ;; | |
6326 | esac | |
6327 | ||
6328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6329 | $as_echo "${lt_sysroot:-no}" >&6; } | |
ac40fd9e | 6330 | |
d9898ee8 | 6331 | |
d9898ee8 | 6332 | |
d9898ee8 | 6333 | |
d9898ee8 | 6334 | |
8d138742 | 6335 | # Check whether --enable-libtool-lock was given. |
b0322a85 | 6336 | if test "${enable_libtool_lock+set}" = set; then : |
8d138742 CE |
6337 | enableval=$enable_libtool_lock; |
6338 | fi | |
d9898ee8 | 6339 | |
8d138742 | 6340 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
d9898ee8 | 6341 | |
8d138742 CE |
6342 | # Some flags need to be propagated to the compiler or linker for good |
6343 | # libtool support. | |
6344 | case $host in | |
6345 | ia64-*-hpux*) | |
6346 | # Find out which ABI we are using. | |
6347 | echo 'int i;' > conftest.$ac_ext | |
b0322a85 | 6348 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6349 | (eval $ac_compile) 2>&5 |
6350 | ac_status=$? | |
b0322a85 CE |
6351 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6352 | test $ac_status = 0; }; then | |
8d138742 CE |
6353 | case `/usr/bin/file conftest.$ac_objext` in |
6354 | *ELF-32*) | |
6355 | HPUX_IA64_MODE="32" | |
6356 | ;; | |
6357 | *ELF-64*) | |
6358 | HPUX_IA64_MODE="64" | |
6359 | ;; | |
6360 | esac | |
d9898ee8 | 6361 | fi |
8d138742 | 6362 | rm -rf conftest* |
d9898ee8 | 6363 | ;; |
8d138742 CE |
6364 | *-*-irix6*) |
6365 | # Find out which ABI we are using. | |
b0322a85 CE |
6366 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6367 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8d138742 CE |
6368 | (eval $ac_compile) 2>&5 |
6369 | ac_status=$? | |
b0322a85 CE |
6370 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6371 | test $ac_status = 0; }; then | |
8d138742 CE |
6372 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6373 | case `/usr/bin/file conftest.$ac_objext` in | |
6374 | *32-bit*) | |
6375 | LD="${LD-ld} -melf32bsmip" | |
6376 | ;; | |
6377 | *N32*) | |
6378 | LD="${LD-ld} -melf32bmipn32" | |
6379 | ;; | |
6380 | *64-bit*) | |
6381 | LD="${LD-ld} -melf64bmip" | |
6382 | ;; | |
6383 | esac | |
6384 | else | |
6385 | case `/usr/bin/file conftest.$ac_objext` in | |
6386 | *32-bit*) | |
6387 | LD="${LD-ld} -32" | |
6388 | ;; | |
6389 | *N32*) | |
6390 | LD="${LD-ld} -n32" | |
6391 | ;; | |
6392 | *64-bit*) | |
6393 | LD="${LD-ld} -64" | |
6394 | ;; | |
6395 | esac | |
6396 | fi | |
d9898ee8 | 6397 | fi |
8d138742 | 6398 | rm -rf conftest* |
d9898ee8 | 6399 | ;; |
d9898ee8 | 6400 | |
8d138742 CE |
6401 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
6402 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6403 | # Find out which ABI we are using. | |
6404 | echo 'int i;' > conftest.$ac_ext | |
b0322a85 | 6405 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6406 | (eval $ac_compile) 2>&5 |
6407 | ac_status=$? | |
b0322a85 CE |
6408 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6409 | test $ac_status = 0; }; then | |
8d138742 CE |
6410 | case `/usr/bin/file conftest.o` in |
6411 | *32-bit*) | |
6412 | case $host in | |
6413 | x86_64-*kfreebsd*-gnu) | |
6414 | LD="${LD-ld} -m elf_i386_fbsd" | |
6415 | ;; | |
6416 | x86_64-*linux*) | |
6417 | LD="${LD-ld} -m elf_i386" | |
6418 | ;; | |
6419 | ppc64-*linux*|powerpc64-*linux*) | |
6420 | LD="${LD-ld} -m elf32ppclinux" | |
6421 | ;; | |
6422 | s390x-*linux*) | |
6423 | LD="${LD-ld} -m elf_s390" | |
6424 | ;; | |
6425 | sparc64-*linux*) | |
6426 | LD="${LD-ld} -m elf32_sparc" | |
6427 | ;; | |
6428 | esac | |
6429 | ;; | |
6430 | *64-bit*) | |
6431 | case $host in | |
6432 | x86_64-*kfreebsd*-gnu) | |
6433 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6434 | ;; | |
6435 | x86_64-*linux*) | |
6436 | LD="${LD-ld} -m elf_x86_64" | |
6437 | ;; | |
6438 | ppc*-*linux*|powerpc*-*linux*) | |
6439 | LD="${LD-ld} -m elf64ppc" | |
6440 | ;; | |
6441 | s390*-*linux*|s390*-*tpf*) | |
6442 | LD="${LD-ld} -m elf64_s390" | |
6443 | ;; | |
6444 | sparc*-*linux*) | |
6445 | LD="${LD-ld} -m elf64_sparc" | |
6446 | ;; | |
6447 | esac | |
6448 | ;; | |
6449 | esac | |
6450 | fi | |
6451 | rm -rf conftest* | |
d9898ee8 | 6452 | ;; |
d9898ee8 | 6453 | |
8d138742 CE |
6454 | *-*-sco3.2v5*) |
6455 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6456 | SAVE_CFLAGS="$CFLAGS" | |
6457 | CFLAGS="$CFLAGS -belf" | |
b0322a85 | 6458 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8d138742 | 6459 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
b0322a85 | 6460 | if ${lt_cv_cc_needs_belf+:} false; then : |
8d138742 CE |
6461 | $as_echo_n "(cached) " >&6 |
6462 | else | |
6463 | ac_ext=c | |
6464 | ac_cpp='$CPP $CPPFLAGS' | |
6465 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6466 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6467 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 6468 | |
b0322a85 | 6469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 6470 | /* end confdefs.h. */ |
d9898ee8 | 6471 | |
8d138742 CE |
6472 | int |
6473 | main () | |
6474 | { | |
d9898ee8 | 6475 | |
8d138742 CE |
6476 | ; |
6477 | return 0; | |
6478 | } | |
6479 | _ACEOF | |
b0322a85 | 6480 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
6481 | lt_cv_cc_needs_belf=yes |
6482 | else | |
b0322a85 | 6483 | lt_cv_cc_needs_belf=no |
8d138742 | 6484 | fi |
b0322a85 CE |
6485 | rm -f core conftest.err conftest.$ac_objext \ |
6486 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
6487 | ac_ext=c |
6488 | ac_cpp='$CPP $CPPFLAGS' | |
6489 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6490 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6491 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 6492 | |
8d138742 | 6493 | fi |
b0322a85 | 6494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8d138742 CE |
6495 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
6496 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6497 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6498 | CFLAGS="$SAVE_CFLAGS" | |
6499 | fi | |
6500 | ;; | |
b0322a85 | 6501 | *-*solaris*) |
8d138742 CE |
6502 | # Find out which ABI we are using. |
6503 | echo 'int i;' > conftest.$ac_ext | |
b0322a85 | 6504 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
d9898ee8 | 6505 | (eval $ac_compile) 2>&5 |
6506 | ac_status=$? | |
b0322a85 CE |
6507 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6508 | test $ac_status = 0; }; then | |
8d138742 CE |
6509 | case `/usr/bin/file conftest.o` in |
6510 | *64-bit*) | |
6511 | case $lt_cv_prog_gnu_ld in | |
b0322a85 CE |
6512 | yes*) |
6513 | case $host in | |
6514 | i?86-*-solaris*) | |
6515 | LD="${LD-ld} -m elf_x86_64" | |
6516 | ;; | |
6517 | sparc*-*-solaris*) | |
6518 | LD="${LD-ld} -m elf64_sparc" | |
6519 | ;; | |
6520 | esac | |
6521 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
6522 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
6523 | LD="${LD-ld}_sol2" | |
6524 | fi | |
6525 | ;; | |
8d138742 CE |
6526 | *) |
6527 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6528 | LD="${LD-ld} -64" | |
6529 | fi | |
6530 | ;; | |
6531 | esac | |
6532 | ;; | |
6533 | esac | |
6534 | fi | |
6535 | rm -rf conftest* | |
6536 | ;; | |
6537 | esac | |
d9898ee8 | 6538 | |
8d138742 | 6539 | need_locks="$enable_libtool_lock" |
d9898ee8 | 6540 | |
b0322a85 CE |
6541 | if test -n "$ac_tool_prefix"; then |
6542 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6543 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6545 | $as_echo_n "checking for $ac_word... " >&6; } | |
6546 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6547 | $as_echo_n "(cached) " >&6 | |
6548 | else | |
6549 | if test -n "$MANIFEST_TOOL"; then | |
6550 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6551 | else | |
6552 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6553 | for as_dir in $PATH | |
6554 | do | |
6555 | IFS=$as_save_IFS | |
6556 | test -z "$as_dir" && as_dir=. | |
6557 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6558 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6559 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6560 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6561 | break 2 | |
6562 | fi | |
6563 | done | |
6564 | done | |
6565 | IFS=$as_save_IFS | |
6566 | ||
6567 | fi | |
6568 | fi | |
6569 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6570 | if test -n "$MANIFEST_TOOL"; then | |
6571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6572 | $as_echo "$MANIFEST_TOOL" >&6; } | |
6573 | else | |
6574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6575 | $as_echo "no" >&6; } | |
6576 | fi | |
6577 | ||
6578 | ||
6579 | fi | |
6580 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6581 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6582 | # Extract the first word of "mt", so it can be a program name with args. | |
6583 | set dummy mt; ac_word=$2 | |
6584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6585 | $as_echo_n "checking for $ac_word... " >&6; } | |
6586 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6587 | $as_echo_n "(cached) " >&6 | |
6588 | else | |
6589 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6590 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
6591 | else | |
6592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6593 | for as_dir in $PATH | |
6594 | do | |
6595 | IFS=$as_save_IFS | |
6596 | test -z "$as_dir" && as_dir=. | |
6597 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6598 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6599 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
6600 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6601 | break 2 | |
6602 | fi | |
6603 | done | |
6604 | done | |
6605 | IFS=$as_save_IFS | |
6606 | ||
6607 | fi | |
6608 | fi | |
6609 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
6610 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
6612 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
6613 | else | |
6614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6615 | $as_echo "no" >&6; } | |
6616 | fi | |
6617 | ||
6618 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
6619 | MANIFEST_TOOL=":" | |
6620 | else | |
6621 | case $cross_compiling:$ac_tool_warned in | |
6622 | yes:) | |
6623 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6624 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6625 | ac_tool_warned=yes ;; | |
6626 | esac | |
6627 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
6628 | fi | |
6629 | else | |
6630 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
6631 | fi | |
6632 | ||
6633 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
6634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
6635 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
6636 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
6637 | $as_echo_n "(cached) " >&6 | |
6638 | else | |
6639 | lt_cv_path_mainfest_tool=no | |
6640 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
6641 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
6642 | cat conftest.err >&5 | |
6643 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
6644 | lt_cv_path_mainfest_tool=yes | |
6645 | fi | |
6646 | rm -f conftest* | |
6647 | fi | |
6648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
6649 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
6650 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
6651 | MANIFEST_TOOL=: | |
6652 | fi | |
6653 | ||
6654 | ||
6655 | ||
6656 | ||
6657 | ||
d9898ee8 | 6658 | |
8d138742 CE |
6659 | case $host_os in |
6660 | rhapsody* | darwin*) | |
6661 | if test -n "$ac_tool_prefix"; then | |
6662 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6663 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
b0322a85 | 6664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6665 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6666 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
8d138742 CE |
6667 | $as_echo_n "(cached) " >&6 |
6668 | else | |
6669 | if test -n "$DSYMUTIL"; then | |
6670 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6671 | else | |
6672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6673 | for as_dir in $PATH | |
6674 | do | |
6675 | IFS=$as_save_IFS | |
6676 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6677 | for ac_exec_ext in '' $ac_executable_extensions; do |
6678 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6679 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
b0322a85 | 6680 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6681 | break 2 |
6682 | fi | |
6683 | done | |
b0322a85 | 6684 | done |
8d138742 | 6685 | IFS=$as_save_IFS |
d9898ee8 | 6686 | |
8d138742 CE |
6687 | fi |
6688 | fi | |
6689 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6690 | if test -n "$DSYMUTIL"; then | |
b0322a85 | 6691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8d138742 CE |
6692 | $as_echo "$DSYMUTIL" >&6; } |
6693 | else | |
b0322a85 | 6694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6695 | $as_echo "no" >&6; } |
6696 | fi | |
d9898ee8 | 6697 | |
d9898ee8 | 6698 | |
8d138742 CE |
6699 | fi |
6700 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6701 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6702 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6703 | set dummy dsymutil; ac_word=$2 | |
b0322a85 | 6704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6705 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6706 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
8d138742 CE |
6707 | $as_echo_n "(cached) " >&6 |
6708 | else | |
6709 | if test -n "$ac_ct_DSYMUTIL"; then | |
6710 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6711 | else | |
6712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6713 | for as_dir in $PATH | |
6714 | do | |
6715 | IFS=$as_save_IFS | |
6716 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6717 | for ac_exec_ext in '' $ac_executable_extensions; do |
6718 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6719 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
b0322a85 | 6720 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 6721 | break 2 |
d9898ee8 | 6722 | fi |
6723 | done | |
b0322a85 | 6724 | done |
8d138742 | 6725 | IFS=$as_save_IFS |
d9898ee8 | 6726 | |
6727 | fi | |
d9898ee8 | 6728 | fi |
8d138742 CE |
6729 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
6730 | if test -n "$ac_ct_DSYMUTIL"; then | |
b0322a85 | 6731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
8d138742 | 6732 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
d9898ee8 | 6733 | else |
b0322a85 | 6734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6735 | $as_echo "no" >&6; } |
d9898ee8 | 6736 | fi |
6737 | ||
8d138742 CE |
6738 | if test "x$ac_ct_DSYMUTIL" = x; then |
6739 | DSYMUTIL=":" | |
6740 | else | |
6741 | case $cross_compiling:$ac_tool_warned in | |
6742 | yes:) | |
b0322a85 | 6743 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
6744 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6745 | ac_tool_warned=yes ;; | |
6746 | esac | |
6747 | DSYMUTIL=$ac_ct_DSYMUTIL | |
6748 | fi | |
d9898ee8 | 6749 | else |
8d138742 | 6750 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
d9898ee8 | 6751 | fi |
d9898ee8 | 6752 | |
8d138742 CE |
6753 | if test -n "$ac_tool_prefix"; then |
6754 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
6755 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
b0322a85 | 6756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6757 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6758 | if ${ac_cv_prog_NMEDIT+:} false; then : |
8d138742 CE |
6759 | $as_echo_n "(cached) " >&6 |
6760 | else | |
6761 | if test -n "$NMEDIT"; then | |
6762 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
6763 | else | |
6764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6765 | for as_dir in $PATH | |
6766 | do | |
6767 | IFS=$as_save_IFS | |
6768 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6769 | for ac_exec_ext in '' $ac_executable_extensions; do |
6770 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6771 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
b0322a85 | 6772 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 6773 | break 2 |
d9898ee8 | 6774 | fi |
8d138742 | 6775 | done |
b0322a85 | 6776 | done |
8d138742 | 6777 | IFS=$as_save_IFS |
d9898ee8 | 6778 | |
8d138742 CE |
6779 | fi |
6780 | fi | |
6781 | NMEDIT=$ac_cv_prog_NMEDIT | |
6782 | if test -n "$NMEDIT"; then | |
b0322a85 | 6783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
8d138742 CE |
6784 | $as_echo "$NMEDIT" >&6; } |
6785 | else | |
b0322a85 | 6786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6787 | $as_echo "no" >&6; } |
6788 | fi | |
d9898ee8 | 6789 | |
d9898ee8 | 6790 | |
8d138742 CE |
6791 | fi |
6792 | if test -z "$ac_cv_prog_NMEDIT"; then | |
6793 | ac_ct_NMEDIT=$NMEDIT | |
6794 | # Extract the first word of "nmedit", so it can be a program name with args. | |
6795 | set dummy nmedit; ac_word=$2 | |
b0322a85 | 6796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6797 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6798 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
8d138742 CE |
6799 | $as_echo_n "(cached) " >&6 |
6800 | else | |
6801 | if test -n "$ac_ct_NMEDIT"; then | |
6802 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
6803 | else | |
6804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6805 | for as_dir in $PATH | |
6806 | do | |
6807 | IFS=$as_save_IFS | |
6808 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6809 | for ac_exec_ext in '' $ac_executable_extensions; do |
6810 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6811 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
b0322a85 | 6812 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6813 | break 2 |
6814 | fi | |
6815 | done | |
b0322a85 | 6816 | done |
8d138742 | 6817 | IFS=$as_save_IFS |
d9898ee8 | 6818 | |
8d138742 CE |
6819 | fi |
6820 | fi | |
6821 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
6822 | if test -n "$ac_ct_NMEDIT"; then | |
b0322a85 | 6823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
8d138742 CE |
6824 | $as_echo "$ac_ct_NMEDIT" >&6; } |
6825 | else | |
b0322a85 | 6826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6827 | $as_echo "no" >&6; } |
6828 | fi | |
d9898ee8 | 6829 | |
8d138742 CE |
6830 | if test "x$ac_ct_NMEDIT" = x; then |
6831 | NMEDIT=":" | |
6832 | else | |
6833 | case $cross_compiling:$ac_tool_warned in | |
6834 | yes:) | |
b0322a85 | 6835 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
6836 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6837 | ac_tool_warned=yes ;; | |
6838 | esac | |
6839 | NMEDIT=$ac_ct_NMEDIT | |
6840 | fi | |
6841 | else | |
6842 | NMEDIT="$ac_cv_prog_NMEDIT" | |
6843 | fi | |
d9898ee8 | 6844 | |
8d138742 CE |
6845 | if test -n "$ac_tool_prefix"; then |
6846 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
6847 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
b0322a85 | 6848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6849 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6850 | if ${ac_cv_prog_LIPO+:} false; then : |
8d138742 | 6851 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6852 | else |
8d138742 CE |
6853 | if test -n "$LIPO"; then |
6854 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
d9898ee8 | 6855 | else |
6856 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6857 | for as_dir in $PATH | |
6858 | do | |
6859 | IFS=$as_save_IFS | |
6860 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6861 | for ac_exec_ext in '' $ac_executable_extensions; do |
6862 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6863 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
b0322a85 | 6864 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6865 | break 2 |
6866 | fi | |
6867 | done | |
b0322a85 | 6868 | done |
dd184caf | 6869 | IFS=$as_save_IFS |
d9898ee8 | 6870 | |
6871 | fi | |
6872 | fi | |
8d138742 CE |
6873 | LIPO=$ac_cv_prog_LIPO |
6874 | if test -n "$LIPO"; then | |
b0322a85 | 6875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8d138742 | 6876 | $as_echo "$LIPO" >&6; } |
d9898ee8 | 6877 | else |
b0322a85 | 6878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6879 | $as_echo "no" >&6; } |
d9898ee8 | 6880 | fi |
6881 | ||
dd184caf | 6882 | |
d9898ee8 | 6883 | fi |
8d138742 CE |
6884 | if test -z "$ac_cv_prog_LIPO"; then |
6885 | ac_ct_LIPO=$LIPO | |
6886 | # Extract the first word of "lipo", so it can be a program name with args. | |
6887 | set dummy lipo; ac_word=$2 | |
b0322a85 | 6888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6889 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6890 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
8d138742 | 6891 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6892 | else |
8d138742 CE |
6893 | if test -n "$ac_ct_LIPO"; then |
6894 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
d9898ee8 | 6895 | else |
6896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6897 | for as_dir in $PATH | |
6898 | do | |
6899 | IFS=$as_save_IFS | |
6900 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6901 | for ac_exec_ext in '' $ac_executable_extensions; do |
6902 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6903 | ac_cv_prog_ac_ct_LIPO="lipo" |
b0322a85 | 6904 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6905 | break 2 |
6906 | fi | |
6907 | done | |
b0322a85 | 6908 | done |
dd184caf | 6909 | IFS=$as_save_IFS |
d9898ee8 | 6910 | |
d9898ee8 | 6911 | fi |
6912 | fi | |
8d138742 CE |
6913 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
6914 | if test -n "$ac_ct_LIPO"; then | |
b0322a85 | 6915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
8d138742 | 6916 | $as_echo "$ac_ct_LIPO" >&6; } |
d9898ee8 | 6917 | else |
b0322a85 | 6918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6919 | $as_echo "no" >&6; } |
d9898ee8 | 6920 | fi |
6921 | ||
8d138742 CE |
6922 | if test "x$ac_ct_LIPO" = x; then |
6923 | LIPO=":" | |
dd184caf | 6924 | else |
6925 | case $cross_compiling:$ac_tool_warned in | |
6926 | yes:) | |
b0322a85 | 6927 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 6928 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 6929 | ac_tool_warned=yes ;; |
6930 | esac | |
8d138742 | 6931 | LIPO=$ac_ct_LIPO |
dd184caf | 6932 | fi |
d9898ee8 | 6933 | else |
8d138742 | 6934 | LIPO="$ac_cv_prog_LIPO" |
d9898ee8 | 6935 | fi |
6936 | ||
8d138742 CE |
6937 | if test -n "$ac_tool_prefix"; then |
6938 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
6939 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
b0322a85 | 6940 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6941 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6942 | if ${ac_cv_prog_OTOOL+:} false; then : |
8d138742 | 6943 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6944 | else |
8d138742 CE |
6945 | if test -n "$OTOOL"; then |
6946 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
d9898ee8 | 6947 | else |
6948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6949 | for as_dir in $PATH | |
6950 | do | |
6951 | IFS=$as_save_IFS | |
6952 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6953 | for ac_exec_ext in '' $ac_executable_extensions; do |
6954 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6955 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
b0322a85 | 6956 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6957 | break 2 |
6958 | fi | |
6959 | done | |
b0322a85 | 6960 | done |
dd184caf | 6961 | IFS=$as_save_IFS |
d9898ee8 | 6962 | |
6963 | fi | |
6964 | fi | |
8d138742 CE |
6965 | OTOOL=$ac_cv_prog_OTOOL |
6966 | if test -n "$OTOOL"; then | |
b0322a85 | 6967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
8d138742 | 6968 | $as_echo "$OTOOL" >&6; } |
d9898ee8 | 6969 | else |
b0322a85 | 6970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 6971 | $as_echo "no" >&6; } |
d9898ee8 | 6972 | fi |
6973 | ||
dd184caf | 6974 | |
d9898ee8 | 6975 | fi |
8d138742 CE |
6976 | if test -z "$ac_cv_prog_OTOOL"; then |
6977 | ac_ct_OTOOL=$OTOOL | |
6978 | # Extract the first word of "otool", so it can be a program name with args. | |
6979 | set dummy otool; ac_word=$2 | |
b0322a85 | 6980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6981 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6982 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
8d138742 | 6983 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6984 | else |
8d138742 CE |
6985 | if test -n "$ac_ct_OTOOL"; then |
6986 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
d9898ee8 | 6987 | else |
6988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6989 | for as_dir in $PATH | |
6990 | do | |
6991 | IFS=$as_save_IFS | |
6992 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6993 | for ac_exec_ext in '' $ac_executable_extensions; do |
6994 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6995 | ac_cv_prog_ac_ct_OTOOL="otool" |
b0322a85 | 6996 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 6997 | break 2 |
6998 | fi | |
6999 | done | |
b0322a85 | 7000 | done |
dd184caf | 7001 | IFS=$as_save_IFS |
d9898ee8 | 7002 | |
d9898ee8 | 7003 | fi |
7004 | fi | |
8d138742 CE |
7005 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
7006 | if test -n "$ac_ct_OTOOL"; then | |
b0322a85 | 7007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
8d138742 | 7008 | $as_echo "$ac_ct_OTOOL" >&6; } |
d9898ee8 | 7009 | else |
b0322a85 | 7010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7011 | $as_echo "no" >&6; } |
d9898ee8 | 7012 | fi |
7013 | ||
8d138742 CE |
7014 | if test "x$ac_ct_OTOOL" = x; then |
7015 | OTOOL=":" | |
dd184caf | 7016 | else |
7017 | case $cross_compiling:$ac_tool_warned in | |
7018 | yes:) | |
b0322a85 | 7019 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 7020 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 7021 | ac_tool_warned=yes ;; |
7022 | esac | |
8d138742 | 7023 | OTOOL=$ac_ct_OTOOL |
dd184caf | 7024 | fi |
d9898ee8 | 7025 | else |
8d138742 | 7026 | OTOOL="$ac_cv_prog_OTOOL" |
d9898ee8 | 7027 | fi |
7028 | ||
8d138742 CE |
7029 | if test -n "$ac_tool_prefix"; then |
7030 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7031 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
b0322a85 | 7032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7033 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7034 | if ${ac_cv_prog_OTOOL64+:} false; then : |
8d138742 | 7035 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7036 | else |
8d138742 CE |
7037 | if test -n "$OTOOL64"; then |
7038 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
d9898ee8 | 7039 | else |
7040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7041 | for as_dir in $PATH | |
7042 | do | |
7043 | IFS=$as_save_IFS | |
7044 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7045 | for ac_exec_ext in '' $ac_executable_extensions; do |
7046 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7047 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
b0322a85 | 7048 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7049 | break 2 |
7050 | fi | |
7051 | done | |
b0322a85 | 7052 | done |
dd184caf | 7053 | IFS=$as_save_IFS |
d9898ee8 | 7054 | |
7055 | fi | |
7056 | fi | |
8d138742 CE |
7057 | OTOOL64=$ac_cv_prog_OTOOL64 |
7058 | if test -n "$OTOOL64"; then | |
b0322a85 | 7059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
8d138742 | 7060 | $as_echo "$OTOOL64" >&6; } |
d9898ee8 | 7061 | else |
b0322a85 | 7062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7063 | $as_echo "no" >&6; } |
d9898ee8 | 7064 | fi |
7065 | ||
dd184caf | 7066 | |
d9898ee8 | 7067 | fi |
8d138742 CE |
7068 | if test -z "$ac_cv_prog_OTOOL64"; then |
7069 | ac_ct_OTOOL64=$OTOOL64 | |
7070 | # Extract the first word of "otool64", so it can be a program name with args. | |
7071 | set dummy otool64; ac_word=$2 | |
b0322a85 | 7072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7073 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7074 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
8d138742 | 7075 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7076 | else |
8d138742 CE |
7077 | if test -n "$ac_ct_OTOOL64"; then |
7078 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
d9898ee8 | 7079 | else |
7080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7081 | for as_dir in $PATH | |
7082 | do | |
7083 | IFS=$as_save_IFS | |
7084 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7085 | for ac_exec_ext in '' $ac_executable_extensions; do |
7086 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7087 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
b0322a85 | 7088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7089 | break 2 |
7090 | fi | |
7091 | done | |
b0322a85 | 7092 | done |
dd184caf | 7093 | IFS=$as_save_IFS |
d9898ee8 | 7094 | |
d9898ee8 | 7095 | fi |
7096 | fi | |
8d138742 CE |
7097 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
7098 | if test -n "$ac_ct_OTOOL64"; then | |
b0322a85 | 7099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
8d138742 | 7100 | $as_echo "$ac_ct_OTOOL64" >&6; } |
d9898ee8 | 7101 | else |
b0322a85 | 7102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7103 | $as_echo "no" >&6; } |
d9898ee8 | 7104 | fi |
7105 | ||
8d138742 CE |
7106 | if test "x$ac_ct_OTOOL64" = x; then |
7107 | OTOOL64=":" | |
dd184caf | 7108 | else |
7109 | case $cross_compiling:$ac_tool_warned in | |
7110 | yes:) | |
b0322a85 | 7111 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 7112 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 7113 | ac_tool_warned=yes ;; |
7114 | esac | |
8d138742 | 7115 | OTOOL64=$ac_ct_OTOOL64 |
dd184caf | 7116 | fi |
d9898ee8 | 7117 | else |
8d138742 | 7118 | OTOOL64="$ac_cv_prog_OTOOL64" |
d9898ee8 | 7119 | fi |
7120 | ||
7121 | ||
d9898ee8 | 7122 | |
d9898ee8 | 7123 | |
d9898ee8 | 7124 | |
d9898ee8 | 7125 | |
d9898ee8 | 7126 | |
7127 | ||
dd184caf | 7128 | |
d9898ee8 | 7129 | |
7130 | ||
d9898ee8 | 7131 | |
d9898ee8 | 7132 | |
d9898ee8 | 7133 | |
d9898ee8 | 7134 | |
7135 | ||
d9898ee8 | 7136 | |
d9898ee8 | 7137 | |
d9898ee8 | 7138 | |
7139 | ||
d9898ee8 | 7140 | |
d9898ee8 | 7141 | |
7142 | ||
7143 | ||
d9898ee8 | 7144 | |
d9898ee8 | 7145 | |
7146 | ||
b0322a85 | 7147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8d138742 | 7148 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
b0322a85 | 7149 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
8d138742 | 7150 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7151 | else |
8d138742 CE |
7152 | lt_cv_apple_cc_single_mod=no |
7153 | if test -z "${LT_MULTI_MODULE}"; then | |
7154 | # By default we will add the -single_module flag. You can override | |
7155 | # by either setting the environment variable LT_MULTI_MODULE | |
7156 | # non-empty at configure time, or by adding -multi_module to the | |
7157 | # link flags. | |
7158 | rm -rf libconftest.dylib* | |
7159 | echo "int foo(void){return 1;}" > conftest.c | |
7160 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7161 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7162 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7163 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7164 | _lt_result=$? | |
b0322a85 CE |
7165 | # If there is a non-empty error log, and "single_module" |
7166 | # appears in it, assume the flag caused a linker warning | |
7167 | if test -s conftest.err && $GREP single_module conftest.err; then | |
7168 | cat conftest.err >&5 | |
7169 | # Otherwise, if the output was created with a 0 exit code from | |
7170 | # the compiler, it worked. | |
7171 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
8d138742 CE |
7172 | lt_cv_apple_cc_single_mod=yes |
7173 | else | |
7174 | cat conftest.err >&5 | |
7175 | fi | |
7176 | rm -rf libconftest.dylib* | |
7177 | rm -f conftest.* | |
7178 | fi | |
d9898ee8 | 7179 | fi |
b0322a85 | 7180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8d138742 | 7181 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
b0322a85 CE |
7182 | |
7183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8d138742 | 7184 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
b0322a85 | 7185 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
8d138742 CE |
7186 | $as_echo_n "(cached) " >&6 |
7187 | else | |
7188 | lt_cv_ld_exported_symbols_list=no | |
7189 | save_LDFLAGS=$LDFLAGS | |
7190 | echo "_main" > conftest.sym | |
7191 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
b0322a85 | 7192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 7193 | /* end confdefs.h. */ |
d9898ee8 | 7194 | |
8d138742 CE |
7195 | int |
7196 | main () | |
7197 | { | |
7198 | ||
7199 | ; | |
7200 | return 0; | |
7201 | } | |
7202 | _ACEOF | |
b0322a85 | 7203 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 7204 | lt_cv_ld_exported_symbols_list=yes |
d9898ee8 | 7205 | else |
b0322a85 | 7206 | lt_cv_ld_exported_symbols_list=no |
d9898ee8 | 7207 | fi |
b0322a85 CE |
7208 | rm -f core conftest.err conftest.$ac_objext \ |
7209 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 | 7210 | LDFLAGS="$save_LDFLAGS" |
d9898ee8 | 7211 | |
8d138742 | 7212 | fi |
b0322a85 | 7213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8d138742 | 7214 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
b0322a85 CE |
7215 | |
7216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7217 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7218 | if ${lt_cv_ld_force_load+:} false; then : | |
7219 | $as_echo_n "(cached) " >&6 | |
7220 | else | |
7221 | lt_cv_ld_force_load=no | |
7222 | cat > conftest.c << _LT_EOF | |
7223 | int forced_loaded() { return 2;} | |
7224 | _LT_EOF | |
7225 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7226 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7227 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7228 | $AR cru libconftest.a conftest.o 2>&5 | |
7229 | echo "$RANLIB libconftest.a" >&5 | |
7230 | $RANLIB libconftest.a 2>&5 | |
7231 | cat > conftest.c << _LT_EOF | |
7232 | int main() { return 0;} | |
7233 | _LT_EOF | |
7234 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7235 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7236 | _lt_result=$? | |
7237 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7238 | cat conftest.err >&5 | |
7239 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
7240 | lt_cv_ld_force_load=yes | |
7241 | else | |
7242 | cat conftest.err >&5 | |
7243 | fi | |
7244 | rm -f conftest.err libconftest.a conftest conftest.c | |
7245 | rm -rf conftest.dSYM | |
7246 | ||
7247 | fi | |
7248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7249 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
d9898ee8 | 7250 | case $host_os in |
8d138742 CE |
7251 | rhapsody* | darwin1.[012]) |
7252 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7253 | darwin1.*) | |
7254 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7255 | darwin*) # darwin 5.x on | |
7256 | # if running on 10.5 or later, the deployment target defaults | |
7257 | # to the OS version, if on x86, and 10.4, the deployment | |
7258 | # target defaults to 10.4. Don't you love it? | |
7259 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7260 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7261 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7262 | 10.[012]*) | |
7263 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7264 | 10.*) | |
7265 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7266 | esac | |
7267 | ;; | |
7268 | esac | |
7269 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7270 | _lt_dar_single_mod='$single_module' | |
7271 | fi | |
7272 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7273 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7274 | else | |
7275 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7276 | fi | |
b0322a85 | 7277 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
8d138742 CE |
7278 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7279 | else | |
7280 | _lt_dsymutil= | |
7281 | fi | |
7282 | ;; | |
7283 | esac | |
d9898ee8 | 7284 | |
8d138742 CE |
7285 | ac_ext=c |
7286 | ac_cpp='$CPP $CPPFLAGS' | |
7287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b0322a85 | 7290 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
8d138742 CE |
7291 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
7292 | # On Suns, sometimes $CPP names a directory. | |
7293 | if test -n "$CPP" && test -d "$CPP"; then | |
7294 | CPP= | |
d9898ee8 | 7295 | fi |
8d138742 | 7296 | if test -z "$CPP"; then |
b0322a85 | 7297 | if ${ac_cv_prog_CPP+:} false; then : |
8d138742 | 7298 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7299 | else |
8d138742 CE |
7300 | # Double quotes because CPP needs to be expanded |
7301 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7302 | do | |
7303 | ac_preproc_ok=false | |
7304 | for ac_c_preproc_warn_flag in '' yes | |
7305 | do | |
7306 | # Use a header file that comes with gcc, so configuring glibc | |
7307 | # with a fresh cross-compiler works. | |
7308 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7309 | # <limits.h> exists even on freestanding compilers. | |
7310 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7311 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 7312 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7313 | /* end confdefs.h. */ |
7314 | #ifdef __STDC__ | |
7315 | # include <limits.h> | |
7316 | #else | |
7317 | # include <assert.h> | |
7318 | #endif | |
7319 | Syntax error | |
7320 | _ACEOF | |
b0322a85 | 7321 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 7322 | |
b0322a85 | 7323 | else |
8d138742 CE |
7324 | # Broken: fails on valid input. |
7325 | continue | |
7326 | fi | |
b0322a85 | 7327 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7328 | |
8d138742 CE |
7329 | # OK, works on sane cases. Now check whether nonexistent headers |
7330 | # can be detected and how. | |
b0322a85 | 7331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7332 | /* end confdefs.h. */ |
7333 | #include <ac_nonexistent.h> | |
7334 | _ACEOF | |
b0322a85 | 7335 | if ac_fn_c_try_cpp "$LINENO"; then : |
8d138742 CE |
7336 | # Broken: success on invalid input. |
7337 | continue | |
7338 | else | |
8d138742 CE |
7339 | # Passes both tests. |
7340 | ac_preproc_ok=: | |
7341 | break | |
7342 | fi | |
b0322a85 | 7343 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7344 | |
8d138742 CE |
7345 | done |
7346 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
7347 | rm -f conftest.i conftest.err conftest.$ac_ext |
7348 | if $ac_preproc_ok; then : | |
8d138742 CE |
7349 | break |
7350 | fi | |
d9898ee8 | 7351 | |
8d138742 CE |
7352 | done |
7353 | ac_cv_prog_CPP=$CPP | |
d9898ee8 | 7354 | |
8d138742 CE |
7355 | fi |
7356 | CPP=$ac_cv_prog_CPP | |
7357 | else | |
7358 | ac_cv_prog_CPP=$CPP | |
7359 | fi | |
b0322a85 | 7360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
8d138742 CE |
7361 | $as_echo "$CPP" >&6; } |
7362 | ac_preproc_ok=false | |
7363 | for ac_c_preproc_warn_flag in '' yes | |
7364 | do | |
7365 | # Use a header file that comes with gcc, so configuring glibc | |
7366 | # with a fresh cross-compiler works. | |
7367 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7368 | # <limits.h> exists even on freestanding compilers. | |
7369 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7370 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 7371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7372 | /* end confdefs.h. */ |
7373 | #ifdef __STDC__ | |
7374 | # include <limits.h> | |
7375 | #else | |
7376 | # include <assert.h> | |
7377 | #endif | |
7378 | Syntax error | |
7379 | _ACEOF | |
b0322a85 | 7380 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 7381 | |
b0322a85 | 7382 | else |
8d138742 CE |
7383 | # Broken: fails on valid input. |
7384 | continue | |
7385 | fi | |
b0322a85 | 7386 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7387 | |
8d138742 CE |
7388 | # OK, works on sane cases. Now check whether nonexistent headers |
7389 | # can be detected and how. | |
b0322a85 | 7390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7391 | /* end confdefs.h. */ |
7392 | #include <ac_nonexistent.h> | |
7393 | _ACEOF | |
b0322a85 | 7394 | if ac_fn_c_try_cpp "$LINENO"; then : |
8d138742 CE |
7395 | # Broken: success on invalid input. |
7396 | continue | |
7397 | else | |
8d138742 CE |
7398 | # Passes both tests. |
7399 | ac_preproc_ok=: | |
7400 | break | |
7401 | fi | |
b0322a85 | 7402 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7403 | |
8d138742 CE |
7404 | done |
7405 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
7406 | rm -f conftest.i conftest.err conftest.$ac_ext |
7407 | if $ac_preproc_ok; then : | |
7408 | ||
8d138742 | 7409 | else |
b0322a85 | 7410 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 7411 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
7412 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7413 | See \`config.log' for more details" "$LINENO" 5; } | |
8d138742 | 7414 | fi |
d9898ee8 | 7415 | |
8d138742 CE |
7416 | ac_ext=c |
7417 | ac_cpp='$CPP $CPPFLAGS' | |
7418 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7419 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7420 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 7421 | |
d9898ee8 | 7422 | |
b0322a85 | 7423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 7424 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 7425 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 CE |
7426 | $as_echo_n "(cached) " >&6 |
7427 | else | |
b0322a85 | 7428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7429 | /* end confdefs.h. */ |
7430 | #include <stdlib.h> | |
7431 | #include <stdarg.h> | |
7432 | #include <string.h> | |
7433 | #include <float.h> | |
d9898ee8 | 7434 | |
8d138742 CE |
7435 | int |
7436 | main () | |
7437 | { | |
d9898ee8 | 7438 | |
8d138742 CE |
7439 | ; |
7440 | return 0; | |
7441 | } | |
7442 | _ACEOF | |
b0322a85 | 7443 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
7444 | ac_cv_header_stdc=yes |
7445 | else | |
b0322a85 | 7446 | ac_cv_header_stdc=no |
8d138742 | 7447 | fi |
8d138742 | 7448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 7449 | |
8d138742 CE |
7450 | if test $ac_cv_header_stdc = yes; then |
7451 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 7452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7453 | /* end confdefs.h. */ |
7454 | #include <string.h> | |
d9898ee8 | 7455 | |
8d138742 CE |
7456 | _ACEOF |
7457 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7458 | $EGREP "memchr" >/dev/null 2>&1; then : |
7459 | ||
8d138742 CE |
7460 | else |
7461 | ac_cv_header_stdc=no | |
7462 | fi | |
7463 | rm -f conftest* | |
d9898ee8 | 7464 | |
8d138742 | 7465 | fi |
d9898ee8 | 7466 | |
8d138742 CE |
7467 | if test $ac_cv_header_stdc = yes; then |
7468 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 7469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7470 | /* end confdefs.h. */ |
7471 | #include <stdlib.h> | |
d9898ee8 | 7472 | |
8d138742 CE |
7473 | _ACEOF |
7474 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7475 | $EGREP "free" >/dev/null 2>&1; then : |
7476 | ||
8d138742 CE |
7477 | else |
7478 | ac_cv_header_stdc=no | |
7479 | fi | |
7480 | rm -f conftest* | |
d9898ee8 | 7481 | |
8d138742 | 7482 | fi |
d9898ee8 | 7483 | |
8d138742 CE |
7484 | if test $ac_cv_header_stdc = yes; then |
7485 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 7486 | if test "$cross_compiling" = yes; then : |
8d138742 CE |
7487 | : |
7488 | else | |
b0322a85 | 7489 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7490 | /* end confdefs.h. */ |
7491 | #include <ctype.h> | |
7492 | #include <stdlib.h> | |
7493 | #if ((' ' & 0x0FF) == 0x020) | |
7494 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7495 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7496 | #else | |
7497 | # define ISLOWER(c) \ | |
7498 | (('a' <= (c) && (c) <= 'i') \ | |
7499 | || ('j' <= (c) && (c) <= 'r') \ | |
7500 | || ('s' <= (c) && (c) <= 'z')) | |
7501 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7502 | #endif | |
d9898ee8 | 7503 | |
8d138742 CE |
7504 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7505 | int | |
7506 | main () | |
7507 | { | |
7508 | int i; | |
7509 | for (i = 0; i < 256; i++) | |
7510 | if (XOR (islower (i), ISLOWER (i)) | |
7511 | || toupper (i) != TOUPPER (i)) | |
7512 | return 2; | |
7513 | return 0; | |
7514 | } | |
7515 | _ACEOF | |
b0322a85 | 7516 | if ac_fn_c_try_run "$LINENO"; then : |
d9898ee8 | 7517 | |
b0322a85 CE |
7518 | else |
7519 | ac_cv_header_stdc=no | |
8d138742 | 7520 | fi |
b0322a85 CE |
7521 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7522 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8d138742 | 7523 | fi |
d9898ee8 | 7524 | |
8d138742 CE |
7525 | fi |
7526 | fi | |
b0322a85 | 7527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
8d138742 CE |
7528 | $as_echo "$ac_cv_header_stdc" >&6; } |
7529 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 7530 | |
b0322a85 | 7531 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d9898ee8 | 7532 | |
8d138742 | 7533 | fi |
d9898ee8 | 7534 | |
8d138742 | 7535 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
8d138742 CE |
7536 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7537 | inttypes.h stdint.h unistd.h | |
b0322a85 CE |
7538 | do : |
7539 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7540 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7541 | " | |
7542 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8d138742 CE |
7543 | cat >>confdefs.h <<_ACEOF |
7544 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7545 | _ACEOF | |
d9898ee8 | 7546 | |
8d138742 | 7547 | fi |
d9898ee8 | 7548 | |
8d138742 | 7549 | done |
d9898ee8 | 7550 | |
d9898ee8 | 7551 | |
8d138742 | 7552 | for ac_header in dlfcn.h |
b0322a85 CE |
7553 | do : |
7554 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7555 | " | |
7556 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8d138742 | 7557 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 7558 | #define HAVE_DLFCN_H 1 |
8d138742 | 7559 | _ACEOF |
d9898ee8 | 7560 | |
8d138742 | 7561 | fi |
d9898ee8 | 7562 | |
8d138742 | 7563 | done |
d9898ee8 | 7564 | |
d9898ee8 | 7565 | |
d9898ee8 | 7566 | |
b0322a85 CE |
7567 | |
7568 | ||
8d138742 | 7569 | # Set options |
d9898ee8 | 7570 | |
d9898ee8 | 7571 | |
d9898ee8 | 7572 | |
8d138742 | 7573 | enable_dlopen=no |
d9898ee8 | 7574 | |
d9898ee8 | 7575 | |
8d138742 | 7576 | enable_win32_dll=no |
d9898ee8 | 7577 | |
d9898ee8 | 7578 | |
8d138742 | 7579 | # Check whether --enable-shared was given. |
b0322a85 | 7580 | if test "${enable_shared+set}" = set; then : |
8d138742 CE |
7581 | enableval=$enable_shared; p=${PACKAGE-default} |
7582 | case $enableval in | |
7583 | yes) enable_shared=yes ;; | |
7584 | no) enable_shared=no ;; | |
7585 | *) | |
7586 | enable_shared=no | |
7587 | # Look at the argument we got. We use all the common list separators. | |
7588 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7589 | for pkg in $enableval; do | |
7590 | IFS="$lt_save_ifs" | |
7591 | if test "X$pkg" = "X$p"; then | |
7592 | enable_shared=yes | |
7593 | fi | |
7594 | done | |
7595 | IFS="$lt_save_ifs" | |
7596 | ;; | |
7597 | esac | |
7598 | else | |
7599 | enable_shared=yes | |
7600 | fi | |
d9898ee8 | 7601 | |
d9898ee8 | 7602 | |
d9898ee8 | 7603 | |
d9898ee8 | 7604 | |
d9898ee8 | 7605 | |
d9898ee8 | 7606 | |
d9898ee8 | 7607 | |
d9898ee8 | 7608 | |
7609 | ||
8d138742 | 7610 | # Check whether --enable-static was given. |
b0322a85 | 7611 | if test "${enable_static+set}" = set; then : |
8d138742 CE |
7612 | enableval=$enable_static; p=${PACKAGE-default} |
7613 | case $enableval in | |
7614 | yes) enable_static=yes ;; | |
7615 | no) enable_static=no ;; | |
7616 | *) | |
7617 | enable_static=no | |
7618 | # Look at the argument we got. We use all the common list separators. | |
7619 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7620 | for pkg in $enableval; do | |
7621 | IFS="$lt_save_ifs" | |
7622 | if test "X$pkg" = "X$p"; then | |
7623 | enable_static=yes | |
7624 | fi | |
7625 | done | |
7626 | IFS="$lt_save_ifs" | |
7627 | ;; | |
7628 | esac | |
d9898ee8 | 7629 | else |
8d138742 | 7630 | enable_static=yes |
d9898ee8 | 7631 | fi |
7632 | ||
7633 | ||
d9898ee8 | 7634 | |
d9898ee8 | 7635 | |
d9898ee8 | 7636 | |
d9898ee8 | 7637 | |
d9898ee8 | 7638 | |
d9898ee8 | 7639 | |
d9898ee8 | 7640 | |
d9898ee8 | 7641 | |
8d138742 | 7642 | # Check whether --with-pic was given. |
b0322a85 CE |
7643 | if test "${with_pic+set}" = set; then : |
7644 | withval=$with_pic; lt_p=${PACKAGE-default} | |
7645 | case $withval in | |
7646 | yes|no) pic_mode=$withval ;; | |
7647 | *) | |
7648 | pic_mode=default | |
7649 | # Look at the argument we got. We use all the common list separators. | |
7650 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7651 | for lt_pkg in $withval; do | |
7652 | IFS="$lt_save_ifs" | |
7653 | if test "X$lt_pkg" = "X$lt_p"; then | |
7654 | pic_mode=yes | |
7655 | fi | |
7656 | done | |
7657 | IFS="$lt_save_ifs" | |
7658 | ;; | |
7659 | esac | |
8d138742 CE |
7660 | else |
7661 | pic_mode=default | |
7662 | fi | |
d9898ee8 | 7663 | |
7664 | ||
8d138742 | 7665 | test -z "$pic_mode" && pic_mode=default |
d9898ee8 | 7666 | |
d9898ee8 | 7667 | |
7668 | ||
d9898ee8 | 7669 | |
7670 | ||
d9898ee8 | 7671 | |
d9898ee8 | 7672 | |
8d138742 | 7673 | # Check whether --enable-fast-install was given. |
b0322a85 | 7674 | if test "${enable_fast_install+set}" = set; then : |
8d138742 CE |
7675 | enableval=$enable_fast_install; p=${PACKAGE-default} |
7676 | case $enableval in | |
7677 | yes) enable_fast_install=yes ;; | |
7678 | no) enable_fast_install=no ;; | |
7679 | *) | |
7680 | enable_fast_install=no | |
7681 | # Look at the argument we got. We use all the common list separators. | |
7682 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7683 | for pkg in $enableval; do | |
7684 | IFS="$lt_save_ifs" | |
7685 | if test "X$pkg" = "X$p"; then | |
7686 | enable_fast_install=yes | |
7687 | fi | |
7688 | done | |
7689 | IFS="$lt_save_ifs" | |
7690 | ;; | |
7691 | esac | |
7692 | else | |
7693 | enable_fast_install=yes | |
7694 | fi | |
d9898ee8 | 7695 | |
d9898ee8 | 7696 | |
d9898ee8 | 7697 | |
d9898ee8 | 7698 | |
d9898ee8 | 7699 | |
d9898ee8 | 7700 | |
d9898ee8 | 7701 | |
d9898ee8 | 7702 | |
d9898ee8 | 7703 | |
d9898ee8 | 7704 | |
d9898ee8 | 7705 | |
8d138742 CE |
7706 | # This can be used to rebuild libtool when needed |
7707 | LIBTOOL_DEPS="$ltmain" | |
d9898ee8 | 7708 | |
8d138742 CE |
7709 | # Always use our own libtool. |
7710 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d9898ee8 | 7711 | |
d9898ee8 | 7712 | |
d9898ee8 | 7713 | |
d9898ee8 | 7714 | |
d9898ee8 | 7715 | |
d9898ee8 | 7716 | |
d9898ee8 | 7717 | |
d9898ee8 | 7718 | |
d9898ee8 | 7719 | |
d9898ee8 | 7720 | |
ac40fd9e | 7721 | |
d9898ee8 | 7722 | |
d9898ee8 | 7723 | |
d9898ee8 | 7724 | |
d9898ee8 | 7725 | |
d9898ee8 | 7726 | |
d9898ee8 | 7727 | |
d9898ee8 | 7728 | |
d9898ee8 | 7729 | |
b0322a85 CE |
7730 | |
7731 | ||
7732 | ||
7733 | ||
7734 | ||
d9898ee8 | 7735 | |
d9898ee8 | 7736 | |
d9898ee8 | 7737 | |
d9898ee8 | 7738 | |
d9898ee8 | 7739 | |
d9898ee8 | 7740 | |
8d138742 CE |
7741 | test -z "$LN_S" && LN_S="ln -s" |
7742 | ||
d9898ee8 | 7743 | |
d9898ee8 | 7744 | |
d9898ee8 | 7745 | |
7746 | ||
d9898ee8 | 7747 | |
d9898ee8 | 7748 | |
d9898ee8 | 7749 | |
7750 | ||
8d138742 CE |
7751 | |
7752 | ||
7753 | ||
7754 | ||
7755 | ||
7756 | if test -n "${ZSH_VERSION+set}" ; then | |
7757 | setopt NO_GLOB_SUBST | |
7758 | fi | |
7759 | ||
b0322a85 | 7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8d138742 | 7761 | $as_echo_n "checking for objdir... " >&6; } |
b0322a85 | 7762 | if ${lt_cv_objdir+:} false; then : |
8d138742 | 7763 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7764 | else |
8d138742 CE |
7765 | rm -f .libs 2>/dev/null |
7766 | mkdir .libs 2>/dev/null | |
7767 | if test -d .libs; then | |
7768 | lt_cv_objdir=.libs | |
7769 | else | |
7770 | # MS-DOS does not allow filenames that begin with a dot. | |
7771 | lt_cv_objdir=_libs | |
d9898ee8 | 7772 | fi |
8d138742 CE |
7773 | rmdir .libs 2>/dev/null |
7774 | fi | |
b0322a85 | 7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8d138742 CE |
7776 | $as_echo "$lt_cv_objdir" >&6; } |
7777 | objdir=$lt_cv_objdir | |
d9898ee8 | 7778 | |
d9898ee8 | 7779 | |
d9898ee8 | 7780 | |
d9898ee8 | 7781 | |
d9898ee8 | 7782 | |
8d138742 CE |
7783 | cat >>confdefs.h <<_ACEOF |
7784 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7785 | _ACEOF | |
d9898ee8 | 7786 | |
d9898ee8 | 7787 | |
d9898ee8 | 7788 | |
d9898ee8 | 7789 | |
8d138742 CE |
7790 | case $host_os in |
7791 | aix3*) | |
7792 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7793 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7794 | # vanish in a puff of smoke. | |
7795 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7796 | COLLECT_NAMES= | |
7797 | export COLLECT_NAMES | |
7798 | fi | |
7799 | ;; | |
7800 | esac | |
d9898ee8 | 7801 | |
8d138742 CE |
7802 | # Global variables: |
7803 | ofile=libtool | |
7804 | can_build_shared=yes | |
d9898ee8 | 7805 | |
8d138742 CE |
7806 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7807 | # which needs '.lib'). | |
7808 | libext=a | |
d9898ee8 | 7809 | |
8d138742 | 7810 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
d9898ee8 | 7811 | |
8d138742 CE |
7812 | old_CC="$CC" |
7813 | old_CFLAGS="$CFLAGS" | |
d9898ee8 | 7814 | |
8d138742 CE |
7815 | # Set sane defaults for various variables |
7816 | test -z "$CC" && CC=cc | |
7817 | test -z "$LTCC" && LTCC=$CC | |
7818 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7819 | test -z "$LD" && LD=ld | |
7820 | test -z "$ac_objext" && ac_objext=o | |
d9898ee8 | 7821 | |
8d138742 CE |
7822 | for cc_temp in $compiler""; do |
7823 | case $cc_temp in | |
7824 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7825 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7826 | \-*) ;; | |
7827 | *) break;; | |
7828 | esac | |
7829 | done | |
b0322a85 | 7830 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
8d138742 CE |
7831 | |
7832 | ||
7833 | # Only perform the check for file, if the check method requires it | |
7834 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7835 | case $deplibs_check_method in | |
7836 | file_magic*) | |
7837 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
b0322a85 | 7838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8d138742 | 7839 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
b0322a85 | 7840 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 CE |
7841 | $as_echo_n "(cached) " >&6 |
7842 | else | |
7843 | case $MAGIC_CMD in | |
7844 | [\\/*] | ?:[\\/]*) | |
7845 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7846 | ;; | |
7847 | *) | |
7848 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7849 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7850 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7851 | for ac_dir in $ac_dummy; do | |
7852 | IFS="$lt_save_ifs" | |
7853 | test -z "$ac_dir" && ac_dir=. | |
7854 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7855 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7856 | if test -n "$file_magic_test_file"; then | |
7857 | case $deplibs_check_method in | |
7858 | "file_magic "*) | |
7859 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7860 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7861 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7862 | $EGREP "$file_magic_regex" > /dev/null; then | |
7863 | : | |
d9898ee8 | 7864 | else |
8d138742 | 7865 | cat <<_LT_EOF 1>&2 |
d9898ee8 | 7866 | |
8d138742 CE |
7867 | *** Warning: the command libtool uses to detect shared libraries, |
7868 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7869 | *** The result is that libtool may fail to recognize shared libraries | |
7870 | *** as such. This will affect the creation of libtool libraries that | |
7871 | *** depend on shared libraries, but programs linked with such libtool | |
7872 | *** libraries will work regardless of this problem. Nevertheless, you | |
7873 | *** may want to report the problem to your system manager and/or to | |
7874 | *** bug-libtool@gnu.org | |
d9898ee8 | 7875 | |
8d138742 CE |
7876 | _LT_EOF |
7877 | fi ;; | |
7878 | esac | |
7879 | fi | |
7880 | break | |
7881 | fi | |
7882 | done | |
7883 | IFS="$lt_save_ifs" | |
7884 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7885 | ;; | |
dd184caf | 7886 | esac |
ac40fd9e | 7887 | fi |
8d138742 CE |
7888 | |
7889 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7890 | if test -n "$MAGIC_CMD"; then | |
b0322a85 | 7891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 | 7892 | $as_echo "$MAGIC_CMD" >&6; } |
d9898ee8 | 7893 | else |
b0322a85 | 7894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7895 | $as_echo "no" >&6; } |
7896 | fi | |
d9898ee8 | 7897 | |
dd184caf | 7898 | |
dd184caf | 7899 | |
d9898ee8 | 7900 | |
d9898ee8 | 7901 | |
8d138742 CE |
7902 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7903 | if test -n "$ac_tool_prefix"; then | |
b0322a85 | 7904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8d138742 | 7905 | $as_echo_n "checking for file... " >&6; } |
b0322a85 | 7906 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 CE |
7907 | $as_echo_n "(cached) " >&6 |
7908 | else | |
7909 | case $MAGIC_CMD in | |
7910 | [\\/*] | ?:[\\/]*) | |
7911 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7912 | ;; | |
7913 | *) | |
7914 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7915 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7916 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7917 | for ac_dir in $ac_dummy; do | |
7918 | IFS="$lt_save_ifs" | |
7919 | test -z "$ac_dir" && ac_dir=. | |
7920 | if test -f $ac_dir/file; then | |
7921 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7922 | if test -n "$file_magic_test_file"; then | |
7923 | case $deplibs_check_method in | |
7924 | "file_magic "*) | |
7925 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7926 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7927 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7928 | $EGREP "$file_magic_regex" > /dev/null; then | |
7929 | : | |
7930 | else | |
7931 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 7932 | |
8d138742 CE |
7933 | *** Warning: the command libtool uses to detect shared libraries, |
7934 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7935 | *** The result is that libtool may fail to recognize shared libraries | |
7936 | *** as such. This will affect the creation of libtool libraries that | |
7937 | *** depend on shared libraries, but programs linked with such libtool | |
7938 | *** libraries will work regardless of this problem. Nevertheless, you | |
7939 | *** may want to report the problem to your system manager and/or to | |
7940 | *** bug-libtool@gnu.org | |
7941 | ||
7942 | _LT_EOF | |
7943 | fi ;; | |
7944 | esac | |
7945 | fi | |
7946 | break | |
7947 | fi | |
7948 | done | |
7949 | IFS="$lt_save_ifs" | |
7950 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7951 | ;; | |
7952 | esac | |
ac40fd9e | 7953 | fi |
8d138742 CE |
7954 | |
7955 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7956 | if test -n "$MAGIC_CMD"; then | |
b0322a85 | 7957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 | 7958 | $as_echo "$MAGIC_CMD" >&6; } |
d9898ee8 | 7959 | else |
b0322a85 | 7960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7961 | $as_echo "no" >&6; } |
7962 | fi | |
d9898ee8 | 7963 | |
dd184caf | 7964 | |
8d138742 CE |
7965 | else |
7966 | MAGIC_CMD=: | |
7967 | fi | |
d9898ee8 | 7968 | fi |
dd184caf | 7969 | |
8d138742 CE |
7970 | fi |
7971 | ;; | |
7972 | esac | |
d9898ee8 | 7973 | |
8d138742 | 7974 | # Use C for the default configuration in the libtool script |
d9898ee8 | 7975 | |
8d138742 CE |
7976 | lt_save_CC="$CC" |
7977 | ac_ext=c | |
7978 | ac_cpp='$CPP $CPPFLAGS' | |
7979 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7980 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7981 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 7982 | |
d9898ee8 | 7983 | |
8d138742 CE |
7984 | # Source file extension for C test sources. |
7985 | ac_ext=c | |
d9898ee8 | 7986 | |
8d138742 CE |
7987 | # Object file extension for compiled C test sources. |
7988 | objext=o | |
7989 | objext=$objext | |
d9898ee8 | 7990 | |
8d138742 CE |
7991 | # Code to be used in simple compile tests |
7992 | lt_simple_compile_test_code="int some_variable = 0;" | |
d9898ee8 | 7993 | |
8d138742 CE |
7994 | # Code to be used in simple link tests |
7995 | lt_simple_link_test_code='int main(){return(0);}' | |
d9898ee8 | 7996 | |
d9898ee8 | 7997 | |
d9898ee8 | 7998 | |
d9898ee8 | 7999 | |
d9898ee8 | 8000 | |
d9898ee8 | 8001 | |
d9898ee8 | 8002 | |
8d138742 CE |
8003 | # If no C compiler was specified, use CC. |
8004 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 8005 | |
8d138742 CE |
8006 | # If no C compiler flags were specified, use CFLAGS. |
8007 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 8008 | |
8d138742 CE |
8009 | # Allow CC to be a program name with arguments. |
8010 | compiler=$CC | |
d9898ee8 | 8011 | |
8d138742 CE |
8012 | # Save the default compiler, since it gets overwritten when the other |
8013 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8014 | compiler_DEFAULT=$CC | |
d9898ee8 | 8015 | |
8d138742 CE |
8016 | # save warnings/boilerplate of simple test code |
8017 | ac_outfile=conftest.$ac_objext | |
8018 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8019 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8020 | _lt_compiler_boilerplate=`cat conftest.err` | |
8021 | $RM conftest* | |
d9898ee8 | 8022 | |
8d138742 CE |
8023 | ac_outfile=conftest.$ac_objext |
8024 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8025 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8026 | _lt_linker_boilerplate=`cat conftest.err` | |
8027 | $RM -r conftest* | |
d9898ee8 | 8028 | |
d9898ee8 | 8029 | |
8d138742 | 8030 | if test -n "$compiler"; then |
d9898ee8 | 8031 | |
8d138742 | 8032 | lt_prog_compiler_no_builtin_flag= |
d9898ee8 | 8033 | |
8d138742 | 8034 | if test "$GCC" = yes; then |
b0322a85 CE |
8035 | case $cc_basename in |
8036 | nvcc*) | |
8037 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8038 | *) | |
8039 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8040 | esac | |
8041 | ||
8042 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8d138742 | 8043 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
b0322a85 | 8044 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
8d138742 CE |
8045 | $as_echo_n "(cached) " >&6 |
8046 | else | |
8047 | lt_cv_prog_compiler_rtti_exceptions=no | |
8048 | ac_outfile=conftest.$ac_objext | |
8049 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8050 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8051 | # Insert the option either (1) after the last *FLAGS variable, or | |
8052 | # (2) before a word containing "conftest.", or (3) at the end. | |
8053 | # Note that $ac_compile itself does not contain backslashes and begins | |
8054 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8055 | # The option is referenced via a variable to avoid confusing sed. | |
8056 | lt_compile=`echo "$ac_compile" | $SED \ | |
8057 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8058 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8059 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8060 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8061 | (eval "$lt_compile" 2>conftest.err) |
8062 | ac_status=$? | |
8063 | cat conftest.err >&5 | |
b0322a85 | 8064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8065 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8066 | # The compiler can only warn and ignore the option if not recognized | |
8067 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8068 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
8069 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8070 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8071 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8072 | fi | |
8073 | fi | |
8074 | $RM conftest* | |
d9898ee8 | 8075 | |
8d138742 | 8076 | fi |
b0322a85 | 8077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8d138742 | 8078 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 | 8079 | |
8d138742 CE |
8080 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
8081 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8082 | else | |
8083 | : | |
8084 | fi | |
d9898ee8 | 8085 | |
8d138742 | 8086 | fi |
d9898ee8 | 8087 | |
d9898ee8 | 8088 | |
d9898ee8 | 8089 | |
d9898ee8 | 8090 | |
d9898ee8 | 8091 | |
d9898ee8 | 8092 | |
8d138742 CE |
8093 | lt_prog_compiler_wl= |
8094 | lt_prog_compiler_pic= | |
8095 | lt_prog_compiler_static= | |
8096 | ||
8d138742 CE |
8097 | |
8098 | if test "$GCC" = yes; then | |
8099 | lt_prog_compiler_wl='-Wl,' | |
8100 | lt_prog_compiler_static='-static' | |
d9898ee8 | 8101 | |
8d138742 CE |
8102 | case $host_os in |
8103 | aix*) | |
8104 | # All AIX code is PIC. | |
8105 | if test "$host_cpu" = ia64; then | |
8106 | # AIX 5 now supports IA64 processor | |
8107 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8108 | fi |
8109 | ;; | |
8110 | ||
8d138742 CE |
8111 | amigaos*) |
8112 | case $host_cpu in | |
8113 | powerpc) | |
8114 | # see comment about AmigaOS4 .so support | |
8115 | lt_prog_compiler_pic='-fPIC' | |
8116 | ;; | |
8117 | m68k) | |
8118 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8119 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8120 | # like `-m68040'. | |
8121 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8122 | ;; | |
8123 | esac | |
d9898ee8 | 8124 | ;; |
8125 | ||
8d138742 CE |
8126 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8127 | # PIC is the default for these OSes. | |
d9898ee8 | 8128 | ;; |
d9898ee8 | 8129 | |
8d138742 CE |
8130 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8131 | # This hack is so that the source file can tell whether it is being | |
8132 | # built for inclusion in a dll (and should export symbols for example). | |
8133 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8134 | # (--disable-auto-import) libraries | |
8135 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d9898ee8 | 8136 | ;; |
d9898ee8 | 8137 | |
8d138742 CE |
8138 | darwin* | rhapsody*) |
8139 | # PIC is the default on this platform | |
8140 | # Common symbols not allowed in MH_DYLIB files | |
8141 | lt_prog_compiler_pic='-fno-common' | |
d9898ee8 | 8142 | ;; |
d9898ee8 | 8143 | |
b0322a85 CE |
8144 | haiku*) |
8145 | # PIC is the default for Haiku. | |
8146 | # The "-static" flag exists, but is broken. | |
8147 | lt_prog_compiler_static= | |
8148 | ;; | |
8149 | ||
8d138742 CE |
8150 | hpux*) |
8151 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8152 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8153 | # sets the default TLS model and affects inlining. | |
8154 | case $host_cpu in | |
8155 | hppa*64*) | |
8156 | # +Z the default | |
8157 | ;; | |
8158 | *) | |
8159 | lt_prog_compiler_pic='-fPIC' | |
8160 | ;; | |
8161 | esac | |
8162 | ;; | |
ac40fd9e | 8163 | |
8d138742 CE |
8164 | interix[3-9]*) |
8165 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8166 | # Instead, we relocate shared libraries at runtime. | |
8167 | ;; | |
d9898ee8 | 8168 | |
8d138742 CE |
8169 | msdosdjgpp*) |
8170 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8171 | # on systems that don't support them. | |
8172 | lt_prog_compiler_can_build_shared=no | |
8173 | enable_shared=no | |
8174 | ;; | |
d9898ee8 | 8175 | |
8d138742 CE |
8176 | *nto* | *qnx*) |
8177 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8178 | # it will coredump. | |
8179 | lt_prog_compiler_pic='-fPIC -shared' | |
8180 | ;; | |
d9898ee8 | 8181 | |
8d138742 CE |
8182 | sysv4*MP*) |
8183 | if test -d /usr/nec; then | |
8184 | lt_prog_compiler_pic=-Kconform_pic | |
8185 | fi | |
8186 | ;; | |
d9898ee8 | 8187 | |
8d138742 CE |
8188 | *) |
8189 | lt_prog_compiler_pic='-fPIC' | |
8190 | ;; | |
8191 | esac | |
b0322a85 CE |
8192 | |
8193 | case $cc_basename in | |
8194 | nvcc*) # Cuda Compiler Driver 2.2 | |
8195 | lt_prog_compiler_wl='-Xlinker ' | |
8196 | if test -n "$lt_prog_compiler_pic"; then | |
8197 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8198 | fi | |
8199 | ;; | |
8200 | esac | |
d9898ee8 | 8201 | else |
8d138742 | 8202 | # PORTME Check for flag to pass linker flags through the system compiler. |
d9898ee8 | 8203 | case $host_os in |
8d138742 CE |
8204 | aix*) |
8205 | lt_prog_compiler_wl='-Wl,' | |
8206 | if test "$host_cpu" = ia64; then | |
8207 | # AIX 5 now supports IA64 processor | |
8208 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8209 | else |
8d138742 | 8210 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
d9898ee8 | 8211 | fi |
8212 | ;; | |
d9898ee8 | 8213 | |
8d138742 CE |
8214 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8215 | # This hack is so that the source file can tell whether it is being | |
8216 | # built for inclusion in a dll (and should export symbols for example). | |
8217 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8218 | ;; | |
d9898ee8 | 8219 | |
8d138742 CE |
8220 | hpux9* | hpux10* | hpux11*) |
8221 | lt_prog_compiler_wl='-Wl,' | |
8222 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8223 | # not for PA HP-UX. | |
8224 | case $host_cpu in | |
8225 | hppa*64*|ia64*) | |
8226 | # +Z the default | |
8227 | ;; | |
8228 | *) | |
8229 | lt_prog_compiler_pic='+Z' | |
8230 | ;; | |
8231 | esac | |
8232 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8233 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8234 | ;; | |
d9898ee8 | 8235 | |
8d138742 CE |
8236 | irix5* | irix6* | nonstopux*) |
8237 | lt_prog_compiler_wl='-Wl,' | |
8238 | # PIC (with -KPIC) is the default. | |
8239 | lt_prog_compiler_static='-non_shared' | |
8240 | ;; | |
8241 | ||
b0322a85 | 8242 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
8d138742 CE |
8243 | case $cc_basename in |
8244 | # old Intel for x86_64 which still supported -KPIC. | |
8245 | ecc*) | |
8246 | lt_prog_compiler_wl='-Wl,' | |
8247 | lt_prog_compiler_pic='-KPIC' | |
8248 | lt_prog_compiler_static='-static' | |
8249 | ;; | |
8250 | # icc used to be incompatible with GCC. | |
8251 | # ICC 10 doesn't accept -KPIC any more. | |
8252 | icc* | ifort*) | |
8253 | lt_prog_compiler_wl='-Wl,' | |
8254 | lt_prog_compiler_pic='-fPIC' | |
8255 | lt_prog_compiler_static='-static' | |
8256 | ;; | |
8257 | # Lahey Fortran 8.1. | |
8258 | lf95*) | |
8259 | lt_prog_compiler_wl='-Wl,' | |
8260 | lt_prog_compiler_pic='--shared' | |
8261 | lt_prog_compiler_static='--static' | |
8262 | ;; | |
b0322a85 CE |
8263 | nagfor*) |
8264 | # NAG Fortran compiler | |
8265 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8266 | lt_prog_compiler_pic='-PIC' | |
8267 | lt_prog_compiler_static='-Bstatic' | |
8268 | ;; | |
8269 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8d138742 CE |
8270 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8271 | # which looks to be a dead project) | |
8272 | lt_prog_compiler_wl='-Wl,' | |
8273 | lt_prog_compiler_pic='-fpic' | |
8274 | lt_prog_compiler_static='-Bstatic' | |
8275 | ;; | |
8276 | ccc*) | |
8277 | lt_prog_compiler_wl='-Wl,' | |
8278 | # All Alpha code is PIC. | |
8279 | lt_prog_compiler_static='-non_shared' | |
8280 | ;; | |
b0322a85 CE |
8281 | xl* | bgxl* | bgf* | mpixl*) |
8282 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8d138742 CE |
8283 | lt_prog_compiler_wl='-Wl,' |
8284 | lt_prog_compiler_pic='-qpic' | |
8285 | lt_prog_compiler_static='-qstaticlink' | |
8286 | ;; | |
8287 | *) | |
8288 | case `$CC -V 2>&1 | sed 5q` in | |
b0322a85 CE |
8289 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
8290 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8291 | lt_prog_compiler_pic='-KPIC' | |
8292 | lt_prog_compiler_static='-Bstatic' | |
8293 | lt_prog_compiler_wl='' | |
8294 | ;; | |
8295 | *Sun\ F* | *Sun*Fortran*) | |
8296 | lt_prog_compiler_pic='-KPIC' | |
8297 | lt_prog_compiler_static='-Bstatic' | |
8298 | lt_prog_compiler_wl='-Qoption ld ' | |
8299 | ;; | |
8d138742 CE |
8300 | *Sun\ C*) |
8301 | # Sun C 5.9 | |
8302 | lt_prog_compiler_pic='-KPIC' | |
8303 | lt_prog_compiler_static='-Bstatic' | |
8304 | lt_prog_compiler_wl='-Wl,' | |
8305 | ;; | |
b0322a85 CE |
8306 | *Intel*\ [CF]*Compiler*) |
8307 | lt_prog_compiler_wl='-Wl,' | |
8308 | lt_prog_compiler_pic='-fPIC' | |
8309 | lt_prog_compiler_static='-static' | |
8310 | ;; | |
8311 | *Portland\ Group*) | |
8312 | lt_prog_compiler_wl='-Wl,' | |
8313 | lt_prog_compiler_pic='-fpic' | |
8d138742 | 8314 | lt_prog_compiler_static='-Bstatic' |
8d138742 CE |
8315 | ;; |
8316 | esac | |
8317 | ;; | |
8318 | esac | |
8319 | ;; | |
d9898ee8 | 8320 | |
8d138742 CE |
8321 | newsos6) |
8322 | lt_prog_compiler_pic='-KPIC' | |
8323 | lt_prog_compiler_static='-Bstatic' | |
8324 | ;; | |
d9898ee8 | 8325 | |
8d138742 CE |
8326 | *nto* | *qnx*) |
8327 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8328 | # it will coredump. | |
8329 | lt_prog_compiler_pic='-fPIC -shared' | |
8330 | ;; | |
d9898ee8 | 8331 | |
8d138742 CE |
8332 | osf3* | osf4* | osf5*) |
8333 | lt_prog_compiler_wl='-Wl,' | |
8334 | # All OSF/1 code is PIC. | |
8335 | lt_prog_compiler_static='-non_shared' | |
d9898ee8 | 8336 | ;; |
8d138742 CE |
8337 | |
8338 | rdos*) | |
8339 | lt_prog_compiler_static='-non_shared' | |
d9898ee8 | 8340 | ;; |
8d138742 CE |
8341 | |
8342 | solaris*) | |
8343 | lt_prog_compiler_pic='-KPIC' | |
8344 | lt_prog_compiler_static='-Bstatic' | |
8345 | case $cc_basename in | |
b0322a85 | 8346 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
8d138742 CE |
8347 | lt_prog_compiler_wl='-Qoption ld ';; |
8348 | *) | |
8349 | lt_prog_compiler_wl='-Wl,';; | |
8350 | esac | |
d9898ee8 | 8351 | ;; |
d9898ee8 | 8352 | |
8d138742 CE |
8353 | sunos4*) |
8354 | lt_prog_compiler_wl='-Qoption ld ' | |
8355 | lt_prog_compiler_pic='-PIC' | |
8356 | lt_prog_compiler_static='-Bstatic' | |
8357 | ;; | |
d9898ee8 | 8358 | |
8d138742 CE |
8359 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8360 | lt_prog_compiler_wl='-Wl,' | |
8361 | lt_prog_compiler_pic='-KPIC' | |
8362 | lt_prog_compiler_static='-Bstatic' | |
8363 | ;; | |
ac40fd9e | 8364 | |
8d138742 CE |
8365 | sysv4*MP*) |
8366 | if test -d /usr/nec ;then | |
8367 | lt_prog_compiler_pic='-Kconform_pic' | |
8368 | lt_prog_compiler_static='-Bstatic' | |
8369 | fi | |
8370 | ;; | |
d9898ee8 | 8371 | |
8d138742 CE |
8372 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8373 | lt_prog_compiler_wl='-Wl,' | |
8374 | lt_prog_compiler_pic='-KPIC' | |
8375 | lt_prog_compiler_static='-Bstatic' | |
8376 | ;; | |
d9898ee8 | 8377 | |
8d138742 CE |
8378 | unicos*) |
8379 | lt_prog_compiler_wl='-Wl,' | |
8380 | lt_prog_compiler_can_build_shared=no | |
8381 | ;; | |
d9898ee8 | 8382 | |
8d138742 CE |
8383 | uts4*) |
8384 | lt_prog_compiler_pic='-pic' | |
8385 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8386 | ;; |
8d138742 CE |
8387 | |
8388 | *) | |
8389 | lt_prog_compiler_can_build_shared=no | |
d9898ee8 | 8390 | ;; |
8d138742 CE |
8391 | esac |
8392 | fi | |
8393 | ||
8394 | case $host_os in | |
8395 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8396 | *djgpp*) | |
8397 | lt_prog_compiler_pic= | |
d9898ee8 | 8398 | ;; |
8d138742 CE |
8399 | *) |
8400 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
d9898ee8 | 8401 | ;; |
8d138742 | 8402 | esac |
d9898ee8 | 8403 | |
b0322a85 CE |
8404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8405 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8406 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8407 | $as_echo_n "(cached) " >&6 | |
8408 | else | |
8409 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8410 | fi | |
8411 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8412 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8413 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
d9898ee8 | 8414 | |
8d138742 CE |
8415 | # |
8416 | # Check to make sure the PIC flag actually works. | |
8417 | # | |
8418 | if test -n "$lt_prog_compiler_pic"; then | |
b0322a85 | 8419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8d138742 | 8420 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
b0322a85 | 8421 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
8d138742 CE |
8422 | $as_echo_n "(cached) " >&6 |
8423 | else | |
8424 | lt_cv_prog_compiler_pic_works=no | |
8425 | ac_outfile=conftest.$ac_objext | |
8426 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8427 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8428 | # Insert the option either (1) after the last *FLAGS variable, or | |
8429 | # (2) before a word containing "conftest.", or (3) at the end. | |
8430 | # Note that $ac_compile itself does not contain backslashes and begins | |
8431 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8432 | # The option is referenced via a variable to avoid confusing sed. | |
8433 | lt_compile=`echo "$ac_compile" | $SED \ | |
8434 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8435 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8436 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8437 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8438 | (eval "$lt_compile" 2>conftest.err) |
8439 | ac_status=$? | |
8440 | cat conftest.err >&5 | |
b0322a85 | 8441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8442 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8443 | # The compiler can only warn and ignore the option if not recognized | |
8444 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8445 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
8446 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8447 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8448 | lt_cv_prog_compiler_pic_works=yes | |
8449 | fi | |
8450 | fi | |
8451 | $RM conftest* | |
d9898ee8 | 8452 | |
8d138742 | 8453 | fi |
b0322a85 | 8454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8d138742 | 8455 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
d9898ee8 | 8456 | |
8d138742 CE |
8457 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
8458 | case $lt_prog_compiler_pic in | |
8459 | "" | " "*) ;; | |
8460 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8461 | esac | |
8462 | else | |
8463 | lt_prog_compiler_pic= | |
8464 | lt_prog_compiler_can_build_shared=no | |
8465 | fi | |
d9898ee8 | 8466 | |
8d138742 | 8467 | fi |
d9898ee8 | 8468 | |
d9898ee8 | 8469 | |
d9898ee8 | 8470 | |
d9898ee8 | 8471 | |
d9898ee8 | 8472 | |
d9898ee8 | 8473 | |
b0322a85 CE |
8474 | |
8475 | ||
8476 | ||
8477 | ||
8478 | ||
8d138742 CE |
8479 | # |
8480 | # Check to make sure the static flag actually works. | |
8481 | # | |
8482 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
b0322a85 | 8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8d138742 | 8484 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
b0322a85 | 8485 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
8d138742 CE |
8486 | $as_echo_n "(cached) " >&6 |
8487 | else | |
8488 | lt_cv_prog_compiler_static_works=no | |
8489 | save_LDFLAGS="$LDFLAGS" | |
8490 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8491 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8492 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8493 | # The linker can only warn and ignore the option if not recognized | |
8494 | # So say no if there are warnings | |
8495 | if test -s conftest.err; then | |
8496 | # Append any errors to the config.log. | |
8497 | cat conftest.err 1>&5 | |
b0322a85 | 8498 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
8d138742 CE |
8499 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8500 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8501 | lt_cv_prog_compiler_static_works=yes | |
8502 | fi | |
8503 | else | |
8504 | lt_cv_prog_compiler_static_works=yes | |
8505 | fi | |
8506 | fi | |
8507 | $RM -r conftest* | |
8508 | LDFLAGS="$save_LDFLAGS" | |
ac40fd9e | 8509 | |
8d138742 | 8510 | fi |
b0322a85 | 8511 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8d138742 | 8512 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
d9898ee8 | 8513 | |
8d138742 CE |
8514 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
8515 | : | |
8516 | else | |
8517 | lt_prog_compiler_static= | |
8518 | fi | |
d9898ee8 | 8519 | |
d9898ee8 | 8520 | |
d9898ee8 | 8521 | |
d9898ee8 | 8522 | |
d9898ee8 | 8523 | |
d9898ee8 | 8524 | |
8d138742 | 8525 | |
b0322a85 | 8526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 8527 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 8528 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 CE |
8529 | $as_echo_n "(cached) " >&6 |
8530 | else | |
8531 | lt_cv_prog_compiler_c_o=no | |
8532 | $RM -r conftest 2>/dev/null | |
8533 | mkdir conftest | |
8534 | cd conftest | |
8535 | mkdir out | |
8536 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8537 | ||
8538 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8539 | # Insert the option either (1) after the last *FLAGS variable, or | |
8540 | # (2) before a word containing "conftest.", or (3) at the end. | |
8541 | # Note that $ac_compile itself does not contain backslashes and begins | |
8542 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8543 | lt_compile=`echo "$ac_compile" | $SED \ | |
8544 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8545 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8546 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8547 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8548 | (eval "$lt_compile" 2>out/conftest.err) |
8549 | ac_status=$? | |
8550 | cat out/conftest.err >&5 | |
b0322a85 | 8551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8552 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8553 | then | |
8554 | # The compiler can only warn and ignore the option if not recognized | |
8555 | # So say no if there are warnings | |
b0322a85 | 8556 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
8557 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8558 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8559 | lt_cv_prog_compiler_c_o=yes | |
8560 | fi | |
8561 | fi | |
8562 | chmod u+w . 2>&5 | |
8563 | $RM conftest* | |
8564 | # SGI C++ compiler will create directory out/ii_files/ for | |
8565 | # template instantiation | |
8566 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8567 | $RM out/* && rmdir out | |
8568 | cd .. | |
8569 | $RM -r conftest | |
8570 | $RM conftest* | |
8571 | ||
d9898ee8 | 8572 | fi |
b0322a85 | 8573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 8574 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 8575 | |
d9898ee8 | 8576 | |
d9898ee8 | 8577 | |
d9898ee8 | 8578 | |
8579 | ||
d9898ee8 | 8580 | |
b0322a85 | 8581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 8582 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 8583 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 CE |
8584 | $as_echo_n "(cached) " >&6 |
8585 | else | |
8586 | lt_cv_prog_compiler_c_o=no | |
8587 | $RM -r conftest 2>/dev/null | |
8588 | mkdir conftest | |
8589 | cd conftest | |
8590 | mkdir out | |
8591 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8592 | |
8d138742 CE |
8593 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8594 | # Insert the option either (1) after the last *FLAGS variable, or | |
8595 | # (2) before a word containing "conftest.", or (3) at the end. | |
8596 | # Note that $ac_compile itself does not contain backslashes and begins | |
8597 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8598 | lt_compile=`echo "$ac_compile" | $SED \ | |
8599 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8600 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8601 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8602 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8603 | (eval "$lt_compile" 2>out/conftest.err) |
8604 | ac_status=$? | |
8605 | cat out/conftest.err >&5 | |
b0322a85 | 8606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8607 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8608 | then | |
8609 | # The compiler can only warn and ignore the option if not recognized | |
8610 | # So say no if there are warnings | |
b0322a85 | 8611 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
8612 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8613 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8614 | lt_cv_prog_compiler_c_o=yes | |
8615 | fi | |
8616 | fi | |
8617 | chmod u+w . 2>&5 | |
8618 | $RM conftest* | |
8619 | # SGI C++ compiler will create directory out/ii_files/ for | |
8620 | # template instantiation | |
8621 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8622 | $RM out/* && rmdir out | |
8623 | cd .. | |
8624 | $RM -r conftest | |
8625 | $RM conftest* | |
d9898ee8 | 8626 | |
8d138742 | 8627 | fi |
b0322a85 | 8628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 8629 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 8630 | |
d9898ee8 | 8631 | |
d9898ee8 | 8632 | |
d9898ee8 | 8633 | |
8d138742 CE |
8634 | hard_links="nottested" |
8635 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8636 | # do not overwrite the value of need_locks provided by the user | |
b0322a85 | 8637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8d138742 CE |
8638 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
8639 | hard_links=yes | |
8640 | $RM conftest* | |
8641 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8642 | touch conftest.a | |
8643 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8644 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
b0322a85 | 8645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8d138742 CE |
8646 | $as_echo "$hard_links" >&6; } |
8647 | if test "$hard_links" = no; then | |
b0322a85 | 8648 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8d138742 CE |
8649 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
8650 | need_locks=warn | |
8651 | fi | |
8652 | else | |
8653 | need_locks=no | |
8654 | fi | |
d9898ee8 | 8655 | |
d9898ee8 | 8656 | |
d9898ee8 | 8657 | |
d9898ee8 | 8658 | |
d9898ee8 | 8659 | |
d9898ee8 | 8660 | |
b0322a85 | 8661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8d138742 | 8662 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
d9898ee8 | 8663 | |
8d138742 CE |
8664 | runpath_var= |
8665 | allow_undefined_flag= | |
8666 | always_export_symbols=no | |
8667 | archive_cmds= | |
8668 | archive_expsym_cmds= | |
8669 | compiler_needs_object=no | |
8670 | enable_shared_with_static_runtimes=no | |
8671 | export_dynamic_flag_spec= | |
8672 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8673 | hardcode_automatic=no | |
8674 | hardcode_direct=no | |
8675 | hardcode_direct_absolute=no | |
8676 | hardcode_libdir_flag_spec= | |
8d138742 CE |
8677 | hardcode_libdir_separator= |
8678 | hardcode_minus_L=no | |
8679 | hardcode_shlibpath_var=unsupported | |
8680 | inherit_rpath=no | |
8681 | link_all_deplibs=unknown | |
8682 | module_cmds= | |
8683 | module_expsym_cmds= | |
8684 | old_archive_from_new_cmds= | |
8685 | old_archive_from_expsyms_cmds= | |
8686 | thread_safe_flag_spec= | |
8687 | whole_archive_flag_spec= | |
8688 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8689 | # included in the symbol list | |
8690 | include_expsyms= | |
8691 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8692 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8693 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8694 | # as well as any symbol that contains `d'. | |
8695 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
8696 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8697 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8698 | # the symbol is explicitly referenced. Since portable code cannot | |
8699 | # rely on this symbol name, it's probably fine to never include it in | |
8700 | # preloaded symbol tables. | |
8701 | # Exclude shared library initialization/finalization symbols. | |
8702 | extract_expsyms_cmds= | |
d9898ee8 | 8703 | |
8d138742 CE |
8704 | case $host_os in |
8705 | cygwin* | mingw* | pw32* | cegcc*) | |
8706 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8707 | # When not using gcc, we currently assume that we are using | |
8708 | # Microsoft Visual C++. | |
8709 | if test "$GCC" != yes; then | |
8710 | with_gnu_ld=no | |
8711 | fi | |
8712 | ;; | |
8713 | interix*) | |
8714 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8715 | with_gnu_ld=yes | |
8716 | ;; | |
8717 | openbsd*) | |
8718 | with_gnu_ld=no | |
8719 | ;; | |
8720 | esac | |
d9898ee8 | 8721 | |
8d138742 | 8722 | ld_shlibs=yes |
b0322a85 CE |
8723 | |
8724 | # On some targets, GNU ld is compatible enough with the native linker | |
8725 | # that we're better off using the native interface for both. | |
8726 | lt_use_gnu_ld_interface=no | |
8d138742 | 8727 | if test "$with_gnu_ld" = yes; then |
b0322a85 CE |
8728 | case $host_os in |
8729 | aix*) | |
8730 | # The AIX port of GNU ld has always aspired to compatibility | |
8731 | # with the native linker. However, as the warning in the GNU ld | |
8732 | # block says, versions before 2.19.5* couldn't really create working | |
8733 | # shared libraries, regardless of the interface used. | |
8734 | case `$LD -v 2>&1` in | |
8735 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8736 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8737 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8738 | *) | |
8739 | lt_use_gnu_ld_interface=yes | |
8740 | ;; | |
8741 | esac | |
8742 | ;; | |
8743 | *) | |
8744 | lt_use_gnu_ld_interface=yes | |
8745 | ;; | |
8746 | esac | |
8747 | fi | |
8748 | ||
8749 | if test "$lt_use_gnu_ld_interface" = yes; then | |
8d138742 CE |
8750 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8751 | wlarc='${wl}' | |
8752 | ||
8753 | # Set some defaults for GNU ld with shared library support. These | |
8754 | # are reset later if shared libraries are not supported. Putting them | |
8755 | # here allows them to be overridden if necessary. | |
8756 | runpath_var=LD_RUN_PATH | |
8757 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8758 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8759 | # ancient GNU ld didn't support --whole-archive et. al. | |
8760 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8761 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8762 | else | |
8763 | whole_archive_flag_spec= | |
8764 | fi | |
8765 | supports_anon_versioning=no | |
8766 | case `$LD -v 2>&1` in | |
b0322a85 | 8767 | *GNU\ gold*) supports_anon_versioning=yes ;; |
8d138742 CE |
8768 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8769 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8770 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8771 | *\ 2.11.*) ;; # other 2.11 versions | |
8772 | *) supports_anon_versioning=yes ;; | |
8773 | esac | |
d9898ee8 | 8774 | |
8d138742 CE |
8775 | # See if GNU ld supports shared libraries. |
8776 | case $host_os in | |
8777 | aix[3-9]*) | |
8778 | # On AIX/PPC, the GNU linker is very broken | |
8779 | if test "$host_cpu" != ia64; then | |
8780 | ld_shlibs=no | |
8781 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8782 | |
b0322a85 | 8783 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
8d138742 CE |
8784 | *** to be unable to reliably create shared libraries on AIX. |
8785 | *** Therefore, libtool is disabling shared libraries support. If you | |
b0322a85 CE |
8786 | *** really care for shared libraries, you may want to install binutils |
8787 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8788 | *** You will then need to restart the configuration process. | |
d9898ee8 | 8789 | |
8d138742 CE |
8790 | _LT_EOF |
8791 | fi | |
8792 | ;; | |
d9898ee8 | 8793 | |
8d138742 CE |
8794 | amigaos*) |
8795 | case $host_cpu in | |
8796 | powerpc) | |
8797 | # see comment about AmigaOS4 .so support | |
8798 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8799 | archive_expsym_cmds='' | |
8800 | ;; | |
8801 | m68k) | |
8802 | 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)' | |
8803 | hardcode_libdir_flag_spec='-L$libdir' | |
8804 | hardcode_minus_L=yes | |
8805 | ;; | |
8806 | esac | |
8807 | ;; | |
d9898ee8 | 8808 | |
8d138742 CE |
8809 | beos*) |
8810 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8811 | allow_undefined_flag=unsupported | |
8812 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8813 | # support --undefined. This deserves some investigation. FIXME | |
8814 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8815 | else | |
8816 | ld_shlibs=no | |
8817 | fi | |
8818 | ;; | |
d9898ee8 | 8819 | |
8d138742 CE |
8820 | cygwin* | mingw* | pw32* | cegcc*) |
8821 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8822 | # as there is no search path for DLLs. | |
8823 | hardcode_libdir_flag_spec='-L$libdir' | |
b0322a85 | 8824 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
8d138742 CE |
8825 | allow_undefined_flag=unsupported |
8826 | always_export_symbols=no | |
8827 | enable_shared_with_static_runtimes=yes | |
b0322a85 CE |
8828 | 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' |
8829 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
d9898ee8 | 8830 | |
8d138742 CE |
8831 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
8832 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8833 | # If the export-symbols file already is a .def file (1st line | |
8834 | # is EXPORTS), use it as is; otherwise, prepend... | |
8835 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8836 | cp $export_symbols $output_objdir/$soname.def; | |
8837 | else | |
8838 | echo EXPORTS > $output_objdir/$soname.def; | |
8839 | cat $export_symbols >> $output_objdir/$soname.def; | |
8840 | fi~ | |
8841 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8842 | else | |
8843 | ld_shlibs=no | |
8844 | fi | |
8845 | ;; | |
d9898ee8 | 8846 | |
b0322a85 CE |
8847 | haiku*) |
8848 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8849 | link_all_deplibs=yes | |
8850 | ;; | |
8851 | ||
8d138742 CE |
8852 | interix[3-9]*) |
8853 | hardcode_direct=no | |
8854 | hardcode_shlibpath_var=no | |
8855 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8856 | export_dynamic_flag_spec='${wl}-E' | |
8857 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8858 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8859 | # default) and relocated if they conflict, which is a slow very memory | |
8860 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8861 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8862 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8863 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8864 | 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' | |
8865 | ;; | |
d9898ee8 | 8866 | |
b0322a85 | 8867 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
8d138742 CE |
8868 | tmp_diet=no |
8869 | if test "$host_os" = linux-dietlibc; then | |
8870 | case $cc_basename in | |
8871 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8872 | esac | |
8873 | fi | |
8874 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8875 | && test "$tmp_diet" = no | |
8876 | then | |
b0322a85 | 8877 | tmp_addflag=' $pic_flag' |
8d138742 CE |
8878 | tmp_sharedflag='-shared' |
8879 | case $cc_basename,$host_cpu in | |
8880 | pgcc*) # Portland Group C compiler | |
b0322a85 | 8881 | 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' |
8d138742 CE |
8882 | tmp_addflag=' $pic_flag' |
8883 | ;; | |
b0322a85 CE |
8884 | pgf77* | pgf90* | pgf95* | pgfortran*) |
8885 | # Portland Group f77 and f90 compilers | |
8886 | 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' | |
8d138742 CE |
8887 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8888 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8889 | tmp_addflag=' -i_dynamic' ;; | |
8890 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8891 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8892 | ifc* | ifort*) # Intel Fortran compiler | |
8893 | tmp_addflag=' -nofor_main' ;; | |
8894 | lf95*) # Lahey Fortran 8.1 | |
8895 | whole_archive_flag_spec= | |
8896 | tmp_sharedflag='--shared' ;; | |
b0322a85 | 8897 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
8d138742 CE |
8898 | tmp_sharedflag='-qmkshrobj' |
8899 | tmp_addflag= ;; | |
b0322a85 CE |
8900 | nvcc*) # Cuda Compiler Driver 2.2 |
8901 | 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' | |
8902 | compiler_needs_object=yes | |
8903 | ;; | |
8d138742 CE |
8904 | esac |
8905 | case `$CC -V 2>&1 | sed 5q` in | |
8906 | *Sun\ C*) # Sun C 5.9 | |
b0322a85 | 8907 | 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' |
8d138742 CE |
8908 | compiler_needs_object=yes |
8909 | tmp_sharedflag='-G' ;; | |
8910 | *Sun\ F*) # Sun Fortran 8.3 | |
8911 | tmp_sharedflag='-G' ;; | |
8912 | esac | |
8913 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
d9898ee8 | 8914 | |
8d138742 CE |
8915 | if test "x$supports_anon_versioning" = xyes; then |
8916 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8917 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8918 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8919 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8920 | fi | |
d9898ee8 | 8921 | |
8d138742 | 8922 | case $cc_basename in |
b0322a85 | 8923 | xlf* | bgf* | bgxlf* | mpixlf*) |
8d138742 CE |
8924 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
8925 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
b0322a85 CE |
8926 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8927 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
8d138742 CE |
8928 | if test "x$supports_anon_versioning" = xyes; then |
8929 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8930 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8931 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
b0322a85 | 8932 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
8d138742 CE |
8933 | fi |
8934 | ;; | |
8935 | esac | |
8936 | else | |
8937 | ld_shlibs=no | |
8938 | fi | |
8939 | ;; | |
d9898ee8 | 8940 | |
8d138742 CE |
8941 | netbsd*) |
8942 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8943 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8944 | wlarc= | |
8945 | else | |
b0322a85 CE |
8946 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8947 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
8948 | fi |
8949 | ;; | |
d9898ee8 | 8950 | |
8d138742 CE |
8951 | solaris*) |
8952 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8953 | ld_shlibs=no | |
8954 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8955 | |
8d138742 CE |
8956 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8957 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8958 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8959 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8960 | *** your PATH or compiler configuration so that the native linker is | |
8961 | *** used, and then restart. | |
d9898ee8 | 8962 | |
8d138742 CE |
8963 | _LT_EOF |
8964 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
b0322a85 CE |
8965 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8966 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
8967 | else |
8968 | ld_shlibs=no | |
8969 | fi | |
8970 | ;; | |
d9898ee8 | 8971 | |
8d138742 CE |
8972 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8973 | case `$LD -v 2>&1` in | |
8974 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8975 | ld_shlibs=no | |
8976 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8977 | |
8d138742 CE |
8978 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
8979 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8980 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8981 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8982 | *** your PATH or compiler configuration so that the native linker is | |
8983 | *** used, and then restart. | |
d9898ee8 | 8984 | |
8d138742 CE |
8985 | _LT_EOF |
8986 | ;; | |
8987 | *) | |
8988 | # For security reasons, it is highly recommended that you always | |
8989 | # use absolute paths for naming shared libraries, and exclude the | |
8990 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8991 | # requires that you compile everything twice, which is a pain. | |
8992 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8993 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8994 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8995 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8996 | else | |
8997 | ld_shlibs=no | |
8998 | fi | |
8999 | ;; | |
9000 | esac | |
9001 | ;; | |
d9898ee8 | 9002 | |
8d138742 CE |
9003 | sunos4*) |
9004 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9005 | wlarc= | |
9006 | hardcode_direct=yes | |
9007 | hardcode_shlibpath_var=no | |
9008 | ;; | |
d9898ee8 | 9009 | |
8d138742 CE |
9010 | *) |
9011 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
b0322a85 CE |
9012 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
9013 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
9014 | else |
9015 | ld_shlibs=no | |
9016 | fi | |
9017 | ;; | |
9018 | esac | |
d9898ee8 | 9019 | |
8d138742 CE |
9020 | if test "$ld_shlibs" = no; then |
9021 | runpath_var= | |
9022 | hardcode_libdir_flag_spec= | |
9023 | export_dynamic_flag_spec= | |
9024 | whole_archive_flag_spec= | |
9025 | fi | |
9026 | else | |
9027 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9028 | case $host_os in | |
9029 | aix3*) | |
9030 | allow_undefined_flag=unsupported | |
9031 | always_export_symbols=yes | |
9032 | 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' | |
9033 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9034 | # are no directories specified by -L. | |
9035 | hardcode_minus_L=yes | |
9036 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9037 | # Neither direct hardcoding nor static linking is supported with a | |
9038 | # broken collect2. | |
9039 | hardcode_direct=unsupported | |
9040 | fi | |
9041 | ;; | |
d9898ee8 | 9042 | |
8d138742 CE |
9043 | aix[4-9]*) |
9044 | if test "$host_cpu" = ia64; then | |
9045 | # On IA64, the linker does run time linking by default, so we don't | |
9046 | # have to do anything special. | |
9047 | aix_use_runtimelinking=no | |
9048 | exp_sym_flag='-Bexport' | |
9049 | no_entry_flag="" | |
9050 | else | |
9051 | # If we're using GNU nm, then we don't want the "-C" option. | |
9052 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
b0322a85 CE |
9053 | # Also, AIX nm treats weak defined symbols like other global |
9054 | # defined symbols, whereas GNU nm marks them as "W". | |
8d138742 | 9055 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
b0322a85 | 9056 | 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' |
8d138742 CE |
9057 | else |
9058 | 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' | |
9059 | fi | |
9060 | aix_use_runtimelinking=no | |
d9898ee8 | 9061 | |
8d138742 CE |
9062 | # Test if we are trying to use run time linking or normal |
9063 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9064 | # need to do runtime linking. | |
9065 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9066 | for ld_flag in $LDFLAGS; do | |
9067 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9068 | aix_use_runtimelinking=yes | |
9069 | break | |
9070 | fi | |
9071 | done | |
9072 | ;; | |
9073 | esac | |
d9898ee8 | 9074 | |
8d138742 CE |
9075 | exp_sym_flag='-bexport' |
9076 | no_entry_flag='-bnoentry' | |
9077 | fi | |
d9898ee8 | 9078 | |
8d138742 CE |
9079 | # When large executables or shared objects are built, AIX ld can |
9080 | # have problems creating the table of contents. If linking a library | |
9081 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9082 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9083 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d9898ee8 | 9084 | |
8d138742 CE |
9085 | archive_cmds='' |
9086 | hardcode_direct=yes | |
9087 | hardcode_direct_absolute=yes | |
9088 | hardcode_libdir_separator=':' | |
9089 | link_all_deplibs=yes | |
9090 | file_list_spec='${wl}-f,' | |
d9898ee8 | 9091 | |
8d138742 CE |
9092 | if test "$GCC" = yes; then |
9093 | case $host_os in aix4.[012]|aix4.[012].*) | |
9094 | # We only want to do this on AIX 4.2 and lower, the check | |
9095 | # below for broken collect2 doesn't work under 4.3+ | |
9096 | collect2name=`${CC} -print-prog-name=collect2` | |
9097 | if test -f "$collect2name" && | |
9098 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9099 | then | |
9100 | # We have reworked collect2 | |
9101 | : | |
9102 | else | |
9103 | # We have old collect2 | |
9104 | hardcode_direct=unsupported | |
9105 | # It fails to find uninstalled libraries when the uninstalled | |
9106 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9107 | # to unsupported forces relinking | |
9108 | hardcode_minus_L=yes | |
9109 | hardcode_libdir_flag_spec='-L$libdir' | |
9110 | hardcode_libdir_separator= | |
9111 | fi | |
9112 | ;; | |
9113 | esac | |
9114 | shared_flag='-shared' | |
9115 | if test "$aix_use_runtimelinking" = yes; then | |
9116 | shared_flag="$shared_flag "'${wl}-G' | |
9117 | fi | |
9118 | else | |
9119 | # not using gcc | |
9120 | if test "$host_cpu" = ia64; then | |
9121 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9122 | # chokes on -Wl,-G. The following line is correct: | |
9123 | shared_flag='-G' | |
9124 | else | |
9125 | if test "$aix_use_runtimelinking" = yes; then | |
9126 | shared_flag='${wl}-G' | |
9127 | else | |
9128 | shared_flag='${wl}-bM:SRE' | |
9129 | fi | |
9130 | fi | |
9131 | fi | |
d9898ee8 | 9132 | |
8d138742 CE |
9133 | export_dynamic_flag_spec='${wl}-bexpall' |
9134 | # It seems that -bexpall does not export symbols beginning with | |
9135 | # underscore (_), so it is better to generate a list of symbols to export. | |
9136 | always_export_symbols=yes | |
9137 | if test "$aix_use_runtimelinking" = yes; then | |
9138 | # Warning - without using the other runtime loading flags (-brtl), | |
9139 | # -berok will link without error, but may produce a broken library. | |
9140 | allow_undefined_flag='-berok' | |
9141 | # Determine the default libpath from the value encoded in an | |
9142 | # empty executable. | |
b0322a85 CE |
9143 | if test "${lt_cv_aix_libpath+set}" = set; then |
9144 | aix_libpath=$lt_cv_aix_libpath | |
9145 | else | |
9146 | if ${lt_cv_aix_libpath_+:} false; then : | |
9147 | $as_echo_n "(cached) " >&6 | |
9148 | else | |
9149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 9150 | /* end confdefs.h. */ |
d9898ee8 | 9151 | |
8d138742 CE |
9152 | int |
9153 | main () | |
9154 | { | |
d9898ee8 | 9155 | |
8d138742 CE |
9156 | ; |
9157 | return 0; | |
9158 | } | |
9159 | _ACEOF | |
b0322a85 | 9160 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 9161 | |
b0322a85 CE |
9162 | lt_aix_libpath_sed=' |
9163 | /Import File Strings/,/^$/ { | |
9164 | /^0/ { | |
9165 | s/^0 *\([^ ]*\) *$/\1/ | |
9166 | p | |
9167 | } | |
9168 | }' | |
9169 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9170 | # Check for a 64-bit object if we didn't find anything. | |
9171 | if test -z "$lt_cv_aix_libpath_"; then | |
9172 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9173 | fi | |
9174 | fi | |
9175 | rm -f core conftest.err conftest.$ac_objext \ | |
9176 | conftest$ac_exeext conftest.$ac_ext | |
9177 | if test -z "$lt_cv_aix_libpath_"; then | |
9178 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
9179 | fi | |
d9898ee8 | 9180 | |
8d138742 | 9181 | fi |
d9898ee8 | 9182 | |
b0322a85 CE |
9183 | aix_libpath=$lt_cv_aix_libpath_ |
9184 | fi | |
d9898ee8 | 9185 | |
8d138742 | 9186 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
b0322a85 | 9187 | 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" |
8d138742 CE |
9188 | else |
9189 | if test "$host_cpu" = ia64; then | |
9190 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9191 | allow_undefined_flag="-z nodefs" | |
9192 | 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" | |
9193 | else | |
9194 | # Determine the default libpath from the value encoded in an | |
9195 | # empty executable. | |
b0322a85 CE |
9196 | if test "${lt_cv_aix_libpath+set}" = set; then |
9197 | aix_libpath=$lt_cv_aix_libpath | |
9198 | else | |
9199 | if ${lt_cv_aix_libpath_+:} false; then : | |
9200 | $as_echo_n "(cached) " >&6 | |
9201 | else | |
9202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 9203 | /* end confdefs.h. */ |
d9898ee8 | 9204 | |
8d138742 CE |
9205 | int |
9206 | main () | |
9207 | { | |
d9898ee8 | 9208 | |
8d138742 CE |
9209 | ; |
9210 | return 0; | |
9211 | } | |
9212 | _ACEOF | |
b0322a85 | 9213 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 9214 | |
b0322a85 CE |
9215 | lt_aix_libpath_sed=' |
9216 | /Import File Strings/,/^$/ { | |
9217 | /^0/ { | |
9218 | s/^0 *\([^ ]*\) *$/\1/ | |
9219 | p | |
9220 | } | |
9221 | }' | |
9222 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9223 | # Check for a 64-bit object if we didn't find anything. | |
9224 | if test -z "$lt_cv_aix_libpath_"; then | |
9225 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9226 | fi | |
9227 | fi | |
9228 | rm -f core conftest.err conftest.$ac_objext \ | |
9229 | conftest$ac_exeext conftest.$ac_ext | |
9230 | if test -z "$lt_cv_aix_libpath_"; then | |
9231 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
9232 | fi | |
d9898ee8 | 9233 | |
8d138742 | 9234 | fi |
d9898ee8 | 9235 | |
b0322a85 CE |
9236 | aix_libpath=$lt_cv_aix_libpath_ |
9237 | fi | |
d9898ee8 | 9238 | |
8d138742 CE |
9239 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
9240 | # Warning - without using the other run time loading flags, | |
9241 | # -berok will link without error, but may produce a broken library. | |
9242 | no_undefined_flag=' ${wl}-bernotok' | |
9243 | allow_undefined_flag=' ${wl}-berok' | |
b0322a85 CE |
9244 | if test "$with_gnu_ld" = yes; then |
9245 | # We only use this code for GNU lds that support --whole-archive. | |
9246 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9247 | else | |
9248 | # Exported symbols can be pulled into shared objects from archives | |
9249 | whole_archive_flag_spec='$convenience' | |
9250 | fi | |
8d138742 CE |
9251 | archive_cmds_need_lc=yes |
9252 | # This is similar to how AIX traditionally builds its shared libraries. | |
9253 | 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' | |
9254 | fi | |
9255 | fi | |
9256 | ;; | |
d9898ee8 | 9257 | |
8d138742 CE |
9258 | amigaos*) |
9259 | case $host_cpu in | |
9260 | powerpc) | |
9261 | # see comment about AmigaOS4 .so support | |
9262 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9263 | archive_expsym_cmds='' | |
9264 | ;; | |
9265 | m68k) | |
9266 | 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)' | |
9267 | hardcode_libdir_flag_spec='-L$libdir' | |
9268 | hardcode_minus_L=yes | |
9269 | ;; | |
9270 | esac | |
9271 | ;; | |
d9898ee8 | 9272 | |
8d138742 CE |
9273 | bsdi[45]*) |
9274 | export_dynamic_flag_spec=-rdynamic | |
9275 | ;; | |
d9898ee8 | 9276 | |
8d138742 CE |
9277 | cygwin* | mingw* | pw32* | cegcc*) |
9278 | # When not using gcc, we currently assume that we are using | |
9279 | # Microsoft Visual C++. | |
9280 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9281 | # no search path for DLLs. | |
b0322a85 CE |
9282 | case $cc_basename in |
9283 | cl*) | |
9284 | # Native MSVC | |
9285 | hardcode_libdir_flag_spec=' ' | |
9286 | allow_undefined_flag=unsupported | |
9287 | always_export_symbols=yes | |
9288 | file_list_spec='@' | |
9289 | # Tell ltmain to make .lib files, not .a files. | |
9290 | libext=lib | |
9291 | # Tell ltmain to make .dll files, not .so files. | |
9292 | shrext_cmds=".dll" | |
9293 | # FIXME: Setting linknames here is a bad hack. | |
9294 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
9295 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9296 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
9297 | else | |
9298 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
9299 | fi~ | |
9300 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9301 | linknames=' | |
9302 | # The linker will not automatically build a static lib if we build a DLL. | |
9303 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9304 | enable_shared_with_static_runtimes=yes | |
9305 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9306 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9307 | # Don't use ranlib | |
9308 | old_postinstall_cmds='chmod 644 $oldlib' | |
9309 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9310 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
9311 | case $lt_outputfile in | |
9312 | *.exe|*.EXE) ;; | |
9313 | *) | |
9314 | lt_outputfile="$lt_outputfile.exe" | |
9315 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
9316 | ;; | |
9317 | esac~ | |
9318 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
9319 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9320 | $RM "$lt_outputfile.manifest"; | |
9321 | fi' | |
9322 | ;; | |
9323 | *) | |
9324 | # Assume MSVC wrapper | |
9325 | hardcode_libdir_flag_spec=' ' | |
9326 | allow_undefined_flag=unsupported | |
9327 | # Tell ltmain to make .lib files, not .a files. | |
9328 | libext=lib | |
9329 | # Tell ltmain to make .dll files, not .so files. | |
9330 | shrext_cmds=".dll" | |
9331 | # FIXME: Setting linknames here is a bad hack. | |
9332 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9333 | # The linker will automatically build a .lib file if we build a DLL. | |
9334 | old_archive_from_new_cmds='true' | |
9335 | # FIXME: Should let the user specify the lib program. | |
9336 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9337 | enable_shared_with_static_runtimes=yes | |
9338 | ;; | |
9339 | esac | |
8d138742 | 9340 | ;; |
d9898ee8 | 9341 | |
8d138742 | 9342 | darwin* | rhapsody*) |
d9898ee8 | 9343 | |
d9898ee8 | 9344 | |
8d138742 CE |
9345 | archive_cmds_need_lc=no |
9346 | hardcode_direct=no | |
9347 | hardcode_automatic=yes | |
9348 | hardcode_shlibpath_var=unsupported | |
b0322a85 CE |
9349 | if test "$lt_cv_ld_force_load" = "yes"; then |
9350 | 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\"`' | |
9351 | ||
9352 | else | |
9353 | whole_archive_flag_spec='' | |
9354 | fi | |
8d138742 CE |
9355 | link_all_deplibs=yes |
9356 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9357 | case $cc_basename in | |
9358 | ifort*) _lt_dar_can_shared=yes ;; | |
9359 | *) _lt_dar_can_shared=$GCC ;; | |
9360 | esac | |
9361 | if test "$_lt_dar_can_shared" = "yes"; then | |
b0322a85 | 9362 | output_verbose_link_cmd=func_echo_all |
8d138742 CE |
9363 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9364 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9365 | 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}" | |
9366 | 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}" | |
d9898ee8 | 9367 | |
8d138742 CE |
9368 | else |
9369 | ld_shlibs=no | |
9370 | fi | |
d9898ee8 | 9371 | |
8d138742 | 9372 | ;; |
d9898ee8 | 9373 | |
8d138742 CE |
9374 | dgux*) |
9375 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9376 | hardcode_libdir_flag_spec='-L$libdir' | |
9377 | hardcode_shlibpath_var=no | |
9378 | ;; | |
d9898ee8 | 9379 | |
8d138742 CE |
9380 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9381 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9382 | # does not break anything, and helps significantly (at the cost of a little | |
9383 | # extra space). | |
9384 | freebsd2.2*) | |
9385 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9386 | hardcode_libdir_flag_spec='-R$libdir' | |
9387 | hardcode_direct=yes | |
9388 | hardcode_shlibpath_var=no | |
9389 | ;; | |
d9898ee8 | 9390 | |
8d138742 | 9391 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
b0322a85 | 9392 | freebsd2.*) |
8d138742 CE |
9393 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9394 | hardcode_direct=yes | |
9395 | hardcode_minus_L=yes | |
9396 | hardcode_shlibpath_var=no | |
9397 | ;; | |
d9898ee8 | 9398 | |
8d138742 CE |
9399 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9400 | freebsd* | dragonfly*) | |
b0322a85 | 9401 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9402 | hardcode_libdir_flag_spec='-R$libdir' |
9403 | hardcode_direct=yes | |
9404 | hardcode_shlibpath_var=no | |
9405 | ;; | |
d9898ee8 | 9406 | |
8d138742 CE |
9407 | hpux9*) |
9408 | if test "$GCC" = yes; then | |
b0322a85 | 9409 | 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' |
8d138742 CE |
9410 | else |
9411 | 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' | |
9412 | fi | |
9413 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9414 | hardcode_libdir_separator=: | |
9415 | hardcode_direct=yes | |
d9898ee8 | 9416 | |
8d138742 CE |
9417 | # hardcode_minus_L: Not really in the search PATH, |
9418 | # but as the default location of the library. | |
9419 | hardcode_minus_L=yes | |
9420 | export_dynamic_flag_spec='${wl}-E' | |
9421 | ;; | |
d9898ee8 | 9422 | |
8d138742 | 9423 | hpux10*) |
b0322a85 CE |
9424 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
9425 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
9426 | else |
9427 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9428 | fi | |
9429 | if test "$with_gnu_ld" = no; then | |
9430 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8d138742 CE |
9431 | hardcode_libdir_separator=: |
9432 | hardcode_direct=yes | |
9433 | hardcode_direct_absolute=yes | |
9434 | export_dynamic_flag_spec='${wl}-E' | |
9435 | # hardcode_minus_L: Not really in the search PATH, | |
9436 | # but as the default location of the library. | |
9437 | hardcode_minus_L=yes | |
9438 | fi | |
9439 | ;; | |
d9898ee8 | 9440 | |
8d138742 | 9441 | hpux11*) |
b0322a85 | 9442 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
8d138742 CE |
9443 | case $host_cpu in |
9444 | hppa*64*) | |
9445 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9446 | ;; | |
9447 | ia64*) | |
b0322a85 | 9448 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9449 | ;; |
9450 | *) | |
b0322a85 | 9451 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9452 | ;; |
9453 | esac | |
9454 | else | |
9455 | case $host_cpu in | |
9456 | hppa*64*) | |
9457 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9458 | ;; | |
9459 | ia64*) | |
9460 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9461 | ;; | |
9462 | *) | |
b0322a85 CE |
9463 | |
9464 | # Older versions of the 11.00 compiler do not understand -b yet | |
9465 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9467 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9468 | if ${lt_cv_prog_compiler__b+:} false; then : | |
9469 | $as_echo_n "(cached) " >&6 | |
9470 | else | |
9471 | lt_cv_prog_compiler__b=no | |
9472 | save_LDFLAGS="$LDFLAGS" | |
9473 | LDFLAGS="$LDFLAGS -b" | |
9474 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9475 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9476 | # The linker can only warn and ignore the option if not recognized | |
9477 | # So say no if there are warnings | |
9478 | if test -s conftest.err; then | |
9479 | # Append any errors to the config.log. | |
9480 | cat conftest.err 1>&5 | |
9481 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9482 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9483 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9484 | lt_cv_prog_compiler__b=yes | |
9485 | fi | |
9486 | else | |
9487 | lt_cv_prog_compiler__b=yes | |
9488 | fi | |
9489 | fi | |
9490 | $RM -r conftest* | |
9491 | LDFLAGS="$save_LDFLAGS" | |
9492 | ||
9493 | fi | |
9494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9495 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9496 | ||
9497 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9498 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9499 | else | |
9500 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9501 | fi | |
9502 | ||
8d138742 CE |
9503 | ;; |
9504 | esac | |
9505 | fi | |
9506 | if test "$with_gnu_ld" = no; then | |
9507 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9508 | hardcode_libdir_separator=: | |
d9898ee8 | 9509 | |
8d138742 CE |
9510 | case $host_cpu in |
9511 | hppa*64*|ia64*) | |
9512 | hardcode_direct=no | |
9513 | hardcode_shlibpath_var=no | |
9514 | ;; | |
9515 | *) | |
9516 | hardcode_direct=yes | |
9517 | hardcode_direct_absolute=yes | |
9518 | export_dynamic_flag_spec='${wl}-E' | |
d9898ee8 | 9519 | |
8d138742 CE |
9520 | # hardcode_minus_L: Not really in the search PATH, |
9521 | # but as the default location of the library. | |
9522 | hardcode_minus_L=yes | |
9523 | ;; | |
9524 | esac | |
9525 | fi | |
9526 | ;; | |
d9898ee8 | 9527 | |
8d138742 CE |
9528 | irix5* | irix6* | nonstopux*) |
9529 | if test "$GCC" = yes; then | |
b0322a85 | 9530 | 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' |
8d138742 CE |
9531 | # Try to use the -exported_symbol ld option, if it does not |
9532 | # work, assume that -exports_file does not work either and | |
9533 | # implicitly export all symbols. | |
b0322a85 CE |
9534 | # This should be the same for all languages, so no per-tag cache variable. |
9535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
9536 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
9537 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
9538 | $as_echo_n "(cached) " >&6 | |
9539 | else | |
9540 | save_LDFLAGS="$LDFLAGS" | |
9541 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9543 | /* end confdefs.h. */ | |
9544 | int foo (void) { return 0; } | |
8d138742 | 9545 | _ACEOF |
b0322a85 CE |
9546 | if ac_fn_c_try_link "$LINENO"; then : |
9547 | lt_cv_irix_exported_symbol=yes | |
8d138742 | 9548 | else |
b0322a85 | 9549 | lt_cv_irix_exported_symbol=no |
8d138742 | 9550 | fi |
b0322a85 CE |
9551 | rm -f core conftest.err conftest.$ac_objext \ |
9552 | conftest$ac_exeext conftest.$ac_ext | |
9553 | LDFLAGS="$save_LDFLAGS" | |
9554 | fi | |
9555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
9556 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
9557 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
9558 | 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' | |
9559 | fi | |
8d138742 | 9560 | else |
b0322a85 CE |
9561 | 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' |
9562 | 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' | |
8d138742 CE |
9563 | fi |
9564 | archive_cmds_need_lc='no' | |
9565 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9566 | hardcode_libdir_separator=: | |
9567 | inherit_rpath=yes | |
9568 | link_all_deplibs=yes | |
9569 | ;; | |
d9898ee8 | 9570 | |
8d138742 CE |
9571 | netbsd*) |
9572 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9573 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9574 | else | |
9575 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9576 | fi | |
9577 | hardcode_libdir_flag_spec='-R$libdir' | |
9578 | hardcode_direct=yes | |
9579 | hardcode_shlibpath_var=no | |
9580 | ;; | |
d9898ee8 | 9581 | |
8d138742 CE |
9582 | newsos6) |
9583 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9584 | hardcode_direct=yes | |
9585 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9586 | hardcode_libdir_separator=: | |
9587 | hardcode_shlibpath_var=no | |
9588 | ;; | |
d9898ee8 | 9589 | |
8d138742 CE |
9590 | *nto* | *qnx*) |
9591 | ;; | |
d9898ee8 | 9592 | |
8d138742 CE |
9593 | openbsd*) |
9594 | if test -f /usr/libexec/ld.so; then | |
9595 | hardcode_direct=yes | |
9596 | hardcode_shlibpath_var=no | |
9597 | hardcode_direct_absolute=yes | |
9598 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9599 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9600 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9601 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9602 | export_dynamic_flag_spec='${wl}-E' | |
9603 | else | |
9604 | case $host_os in | |
9605 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9606 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9607 | hardcode_libdir_flag_spec='-R$libdir' | |
9608 | ;; | |
9609 | *) | |
9610 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9611 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9612 | ;; | |
9613 | esac | |
9614 | fi | |
9615 | else | |
9616 | ld_shlibs=no | |
9617 | fi | |
9618 | ;; | |
d9898ee8 | 9619 | |
8d138742 CE |
9620 | os2*) |
9621 | hardcode_libdir_flag_spec='-L$libdir' | |
9622 | hardcode_minus_L=yes | |
9623 | allow_undefined_flag=unsupported | |
b0322a85 | 9624 | 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' |
8d138742 CE |
9625 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9626 | ;; | |
d9898ee8 | 9627 | |
8d138742 CE |
9628 | osf3*) |
9629 | if test "$GCC" = yes; then | |
9630 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
b0322a85 | 9631 | 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' |
8d138742 CE |
9632 | else |
9633 | allow_undefined_flag=' -expect_unresolved \*' | |
b0322a85 | 9634 | 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' |
8d138742 CE |
9635 | fi |
9636 | archive_cmds_need_lc='no' | |
9637 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9638 | hardcode_libdir_separator=: | |
9639 | ;; | |
d9898ee8 | 9640 | |
8d138742 CE |
9641 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
9642 | if test "$GCC" = yes; then | |
9643 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
b0322a85 | 9644 | 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' |
8d138742 CE |
9645 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9646 | else | |
9647 | allow_undefined_flag=' -expect_unresolved \*' | |
b0322a85 | 9648 | 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' |
8d138742 | 9649 | 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~ |
b0322a85 | 9650 | $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' |
d9898ee8 | 9651 | |
8d138742 CE |
9652 | # Both c and cxx compiler support -rpath directly |
9653 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9654 | fi | |
9655 | archive_cmds_need_lc='no' | |
9656 | hardcode_libdir_separator=: | |
9657 | ;; | |
d9898ee8 | 9658 | |
8d138742 CE |
9659 | solaris*) |
9660 | no_undefined_flag=' -z defs' | |
9661 | if test "$GCC" = yes; then | |
9662 | wlarc='${wl}' | |
b0322a85 | 9663 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 | 9664 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
b0322a85 | 9665 | $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' |
8d138742 CE |
9666 | else |
9667 | case `$CC -V 2>&1` in | |
9668 | *"Compilers 5.0"*) | |
9669 | wlarc='' | |
9670 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9671 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9672 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9673 | ;; | |
9674 | *) | |
9675 | wlarc='${wl}' | |
9676 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9677 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9678 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9679 | ;; | |
9680 | esac | |
9681 | fi | |
9682 | hardcode_libdir_flag_spec='-R$libdir' | |
9683 | hardcode_shlibpath_var=no | |
9684 | case $host_os in | |
9685 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9686 | *) | |
9687 | # The compiler driver will combine and reorder linker options, | |
9688 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9689 | # but is careful enough not to reorder. | |
9690 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9691 | if test "$GCC" = yes; then | |
9692 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9693 | else | |
9694 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9695 | fi | |
9696 | ;; | |
9697 | esac | |
9698 | link_all_deplibs=yes | |
9699 | ;; | |
d9898ee8 | 9700 | |
8d138742 CE |
9701 | sunos4*) |
9702 | if test "x$host_vendor" = xsequent; then | |
9703 | # Use $CC to link under sequent, because it throws in some extra .o | |
9704 | # files that make .init and .fini sections work. | |
9705 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9706 | else | |
9707 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9708 | fi | |
9709 | hardcode_libdir_flag_spec='-L$libdir' | |
9710 | hardcode_direct=yes | |
9711 | hardcode_minus_L=yes | |
9712 | hardcode_shlibpath_var=no | |
9713 | ;; | |
d9898ee8 | 9714 | |
8d138742 CE |
9715 | sysv4) |
9716 | case $host_vendor in | |
9717 | sni) | |
9718 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9719 | hardcode_direct=yes # is this really true??? | |
9720 | ;; | |
9721 | siemens) | |
9722 | ## LD is ld it makes a PLAMLIB | |
9723 | ## CC just makes a GrossModule. | |
9724 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9725 | reload_cmds='$CC -r -o $output$reload_objs' | |
9726 | hardcode_direct=no | |
9727 | ;; | |
9728 | motorola) | |
9729 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9730 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9731 | ;; | |
9732 | esac | |
9733 | runpath_var='LD_RUN_PATH' | |
9734 | hardcode_shlibpath_var=no | |
9735 | ;; | |
d9898ee8 | 9736 | |
8d138742 CE |
9737 | sysv4.3*) |
9738 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9739 | hardcode_shlibpath_var=no | |
9740 | export_dynamic_flag_spec='-Bexport' | |
9741 | ;; | |
d9898ee8 | 9742 | |
8d138742 CE |
9743 | sysv4*MP*) |
9744 | if test -d /usr/nec; then | |
9745 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9746 | hardcode_shlibpath_var=no | |
9747 | runpath_var=LD_RUN_PATH | |
9748 | hardcode_runpath_var=yes | |
9749 | ld_shlibs=yes | |
9750 | fi | |
9751 | ;; | |
d9898ee8 | 9752 | |
8d138742 CE |
9753 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
9754 | no_undefined_flag='${wl}-z,text' | |
9755 | archive_cmds_need_lc=no | |
9756 | hardcode_shlibpath_var=no | |
9757 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 9758 | |
8d138742 CE |
9759 | if test "$GCC" = yes; then |
9760 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9761 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9762 | else | |
9763 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9764 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9765 | fi | |
9766 | ;; | |
d9898ee8 | 9767 | |
8d138742 CE |
9768 | sysv5* | sco3.2v5* | sco5v6*) |
9769 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9770 | # link with -lc, and that would cause any symbols used from libc to | |
9771 | # always be unresolved, which means just about no library would | |
9772 | # ever link correctly. If we're not using GNU ld we use -z text | |
9773 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9774 | # as -z defs. | |
9775 | no_undefined_flag='${wl}-z,text' | |
9776 | allow_undefined_flag='${wl}-z,nodefs' | |
9777 | archive_cmds_need_lc=no | |
9778 | hardcode_shlibpath_var=no | |
9779 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9780 | hardcode_libdir_separator=':' | |
9781 | link_all_deplibs=yes | |
9782 | export_dynamic_flag_spec='${wl}-Bexport' | |
9783 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 9784 | |
8d138742 CE |
9785 | if test "$GCC" = yes; then |
9786 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9787 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9788 | else | |
9789 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9790 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9791 | fi | |
9792 | ;; | |
d9898ee8 | 9793 | |
8d138742 CE |
9794 | uts4*) |
9795 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9796 | hardcode_libdir_flag_spec='-L$libdir' | |
9797 | hardcode_shlibpath_var=no | |
9798 | ;; | |
d9898ee8 | 9799 | |
8d138742 CE |
9800 | *) |
9801 | ld_shlibs=no | |
9802 | ;; | |
9803 | esac | |
d9898ee8 | 9804 | |
8d138742 CE |
9805 | if test x$host_vendor = xsni; then |
9806 | case $host in | |
9807 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9808 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
d9898ee8 | 9809 | ;; |
8d138742 CE |
9810 | esac |
9811 | fi | |
9812 | fi | |
9813 | ||
b0322a85 | 9814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
8d138742 CE |
9815 | $as_echo "$ld_shlibs" >&6; } |
9816 | test "$ld_shlibs" = no && can_build_shared=no | |
9817 | ||
9818 | with_gnu_ld=$with_gnu_ld | |
9819 | ||
9820 | ||
9821 | ||
9822 | ||
9823 | ||
9824 | ||
9825 | ||
9826 | ||
9827 | ||
9828 | ||
9829 | ||
9830 | ||
9831 | ||
9832 | ||
9833 | ||
9834 | # | |
9835 | # Do we need to explicitly link libc? | |
9836 | # | |
9837 | case "x$archive_cmds_need_lc" in | |
9838 | x|xyes) | |
9839 | # Assume -lc should be added | |
9840 | archive_cmds_need_lc=yes | |
9841 | ||
9842 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9843 | case $archive_cmds in | |
9844 | *'~'*) | |
9845 | # FIXME: we may have to deal with multi-command sequences. | |
9846 | ;; | |
9847 | '$CC '*) | |
9848 | # Test whether the compiler implicitly links with -lc since on some | |
9849 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9850 | # to ld, don't add -lc before -lgcc. | |
b0322a85 | 9851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
8d138742 | 9852 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
b0322a85 CE |
9853 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
9854 | $as_echo_n "(cached) " >&6 | |
9855 | else | |
9856 | $RM conftest* | |
9857 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8d138742 | 9858 | |
b0322a85 | 9859 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
9860 | (eval $ac_compile) 2>&5 |
9861 | ac_status=$? | |
b0322a85 CE |
9862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9863 | test $ac_status = 0; } 2>conftest.err; then | |
9864 | soname=conftest | |
9865 | lib=conftest | |
9866 | libobjs=conftest.$ac_objext | |
9867 | deplibs= | |
9868 | wl=$lt_prog_compiler_wl | |
9869 | pic_flag=$lt_prog_compiler_pic | |
9870 | compiler_flags=-v | |
9871 | linker_flags=-v | |
9872 | verstring= | |
9873 | output_objdir=. | |
9874 | libname=conftest | |
9875 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9876 | allow_undefined_flag= | |
9877 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8d138742 CE |
9878 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9879 | ac_status=$? | |
b0322a85 CE |
9880 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9881 | test $ac_status = 0; } | |
9882 | then | |
9883 | lt_cv_archive_cmds_need_lc=no | |
9884 | else | |
9885 | lt_cv_archive_cmds_need_lc=yes | |
9886 | fi | |
9887 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9888 | else | |
9889 | cat conftest.err 1>&5 | |
9890 | fi | |
9891 | $RM conftest* | |
9892 | ||
9893 | fi | |
9894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
9895 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
9896 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
8d138742 CE |
9897 | ;; |
9898 | esac | |
9899 | fi | |
9900 | ;; | |
9901 | esac | |
9902 | ||
9903 | ||
d9898ee8 | 9904 | |
d9898ee8 | 9905 | |
d9898ee8 | 9906 | |
d9898ee8 | 9907 | |
d9898ee8 | 9908 | |
d9898ee8 | 9909 | |
d9898ee8 | 9910 | |
d9898ee8 | 9911 | |
d9898ee8 | 9912 | |
d9898ee8 | 9913 | |
9914 | ||
d9898ee8 | 9915 | |
d9898ee8 | 9916 | |
9917 | ||
d9898ee8 | 9918 | |
9919 | ||
d9898ee8 | 9920 | |
d9898ee8 | 9921 | |
9922 | ||
d9898ee8 | 9923 | |
d9898ee8 | 9924 | |
9925 | ||
d9898ee8 | 9926 | |
d9898ee8 | 9927 | |
d9898ee8 | 9928 | |
d9898ee8 | 9929 | |
d9898ee8 | 9930 | |
d9898ee8 | 9931 | |
d9898ee8 | 9932 | |
d9898ee8 | 9933 | |
d9898ee8 | 9934 | |
d9898ee8 | 9935 | |
d9898ee8 | 9936 | |
d9898ee8 | 9937 | |
d9898ee8 | 9938 | |
d9898ee8 | 9939 | |
d9898ee8 | 9940 | |
d9898ee8 | 9941 | |
d9898ee8 | 9942 | |
d9898ee8 | 9943 | |
d9898ee8 | 9944 | |
d9898ee8 | 9945 | |
d9898ee8 | 9946 | |
d9898ee8 | 9947 | |
d9898ee8 | 9948 | |
ac40fd9e | 9949 | |
d9898ee8 | 9950 | |
d9898ee8 | 9951 | |
d9898ee8 | 9952 | |
d9898ee8 | 9953 | |
d9898ee8 | 9954 | |
d9898ee8 | 9955 | |
d9898ee8 | 9956 | |
d9898ee8 | 9957 | |
d9898ee8 | 9958 | |
d9898ee8 | 9959 | |
d9898ee8 | 9960 | |
d9898ee8 | 9961 | |
d9898ee8 | 9962 | |
d9898ee8 | 9963 | |
d9898ee8 | 9964 | |
d9898ee8 | 9965 | |
d9898ee8 | 9966 | |
9967 | ||
d9898ee8 | 9968 | |
d9898ee8 | 9969 | |
d9898ee8 | 9970 | |
9971 | ||
d9898ee8 | 9972 | |
d9898ee8 | 9973 | |
d9898ee8 | 9974 | |
d9898ee8 | 9975 | |
d9898ee8 | 9976 | |
d9898ee8 | 9977 | |
d9898ee8 | 9978 | |
d9898ee8 | 9979 | |
d9898ee8 | 9980 | |
d9898ee8 | 9981 | |
d9898ee8 | 9982 | |
d9898ee8 | 9983 | |
d9898ee8 | 9984 | |
d9898ee8 | 9985 | |
d9898ee8 | 9986 | |
d9898ee8 | 9987 | |
d9898ee8 | 9988 | |
d9898ee8 | 9989 | |
d9898ee8 | 9990 | |
d9898ee8 | 9991 | |
d9898ee8 | 9992 | |
d9898ee8 | 9993 | |
d9898ee8 | 9994 | |
d9898ee8 | 9995 | |
d9898ee8 | 9996 | |
d9898ee8 | 9997 | |
d9898ee8 | 9998 | |
d9898ee8 | 9999 | |
d9898ee8 | 10000 | |
d9898ee8 | 10001 | |
d9898ee8 | 10002 | |
d9898ee8 | 10003 | |
d9898ee8 | 10004 | |
d9898ee8 | 10005 | |
d9898ee8 | 10006 | |
dd184caf | 10007 | |
dd184caf | 10008 | |
d9898ee8 | 10009 | |
d9898ee8 | 10010 | |
d9898ee8 | 10011 | |
d9898ee8 | 10012 | |
d9898ee8 | 10013 | |
dd184caf | 10014 | |
dd184caf | 10015 | |
d9898ee8 | 10016 | |
d9898ee8 | 10017 | |
d9898ee8 | 10018 | |
d9898ee8 | 10019 | |
d9898ee8 | 10020 | |
d9898ee8 | 10021 | |
d9898ee8 | 10022 | |
d9898ee8 | 10023 | |
d9898ee8 | 10024 | |
d9898ee8 | 10025 | |
d9898ee8 | 10026 | |
d9898ee8 | 10027 | |
d9898ee8 | 10028 | |
d9898ee8 | 10029 | |
d9898ee8 | 10030 | |
d9898ee8 | 10031 | |
d9898ee8 | 10032 | |
d9898ee8 | 10033 | |
d9898ee8 | 10034 | |
d9898ee8 | 10035 | |
d9898ee8 | 10036 | |
d9898ee8 | 10037 | |
d9898ee8 | 10038 | |
d9898ee8 | 10039 | |
d9898ee8 | 10040 | |
d9898ee8 | 10041 | |
d9898ee8 | 10042 | |
d9898ee8 | 10043 | |
d9898ee8 | 10044 | |
d9898ee8 | 10045 | |
d9898ee8 | 10046 | |
d9898ee8 | 10047 | |
d9898ee8 | 10048 | |
d9898ee8 | 10049 | |
d9898ee8 | 10050 | |
d9898ee8 | 10051 | |
d9898ee8 | 10052 | |
d9898ee8 | 10053 | |
b0322a85 | 10054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
8d138742 CE |
10055 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
10056 | ||
10057 | if test "$GCC" = yes; then | |
10058 | case $host_os in | |
10059 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10060 | *) lt_awk_arg="/^libraries:/" ;; | |
10061 | esac | |
b0322a85 CE |
10062 | case $host_os in |
10063 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10064 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10065 | esac | |
10066 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10067 | case $lt_search_path_spec in | |
10068 | *\;*) | |
8d138742 CE |
10069 | # if the path contains ";" then we assume it to be the separator |
10070 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10071 | # assumed that no part of a normal pathname contains ";" but that should | |
10072 | # okay in the real world where ";" in dirpaths is itself problematic. | |
b0322a85 CE |
10073 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10074 | ;; | |
10075 | *) | |
10076 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10077 | ;; | |
10078 | esac | |
8d138742 CE |
10079 | # Ok, now we have the path, separated by spaces, we can step through it |
10080 | # and add multilib dir if necessary. | |
10081 | lt_tmp_lt_search_path_spec= | |
10082 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10083 | for lt_sys_path in $lt_search_path_spec; do | |
10084 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10085 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10086 | else | |
10087 | test -d "$lt_sys_path" && \ | |
10088 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10089 | fi | |
10090 | done | |
b0322a85 | 10091 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
8d138742 CE |
10092 | BEGIN {RS=" "; FS="/|\n";} { |
10093 | lt_foo=""; | |
10094 | lt_count=0; | |
10095 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10096 | if ($lt_i != "" && $lt_i != ".") { | |
10097 | if ($lt_i == "..") { | |
10098 | lt_count++; | |
10099 | } else { | |
10100 | if (lt_count == 0) { | |
10101 | lt_foo="/" $lt_i lt_foo; | |
10102 | } else { | |
10103 | lt_count--; | |
10104 | } | |
10105 | } | |
10106 | } | |
10107 | } | |
10108 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10109 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10110 | }'` | |
b0322a85 CE |
10111 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10112 | # for these hosts. | |
10113 | case $host_os in | |
10114 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10115 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10116 | esac | |
10117 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
8d138742 CE |
10118 | else |
10119 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10120 | fi | |
d9898ee8 | 10121 | library_names_spec= |
10122 | libname_spec='lib$name' | |
10123 | soname_spec= | |
10124 | shrext_cmds=".so" | |
10125 | postinstall_cmds= | |
10126 | postuninstall_cmds= | |
10127 | finish_cmds= | |
10128 | finish_eval= | |
10129 | shlibpath_var= | |
10130 | shlibpath_overrides_runpath=unknown | |
10131 | version_type=none | |
10132 | dynamic_linker="$host_os ld.so" | |
10133 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
d9898ee8 | 10134 | need_lib_prefix=unknown |
10135 | hardcode_into_libs=no | |
10136 | ||
10137 | # when you set need_version to no, make sure it does not cause -set_version | |
10138 | # flags to be left without arguments | |
10139 | need_version=unknown | |
10140 | ||
10141 | case $host_os in | |
10142 | aix3*) | |
b0322a85 | 10143 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10144 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
10145 | shlibpath_var=LIBPATH | |
10146 | ||
10147 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10148 | soname_spec='${libname}${release}${shared_ext}$major' | |
10149 | ;; | |
10150 | ||
8d138742 | 10151 | aix[4-9]*) |
b0322a85 | 10152 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10153 | need_lib_prefix=no |
10154 | need_version=no | |
10155 | hardcode_into_libs=yes | |
10156 | if test "$host_cpu" = ia64; then | |
10157 | # AIX 5 supports IA64 | |
10158 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10159 | shlibpath_var=LD_LIBRARY_PATH | |
10160 | else | |
10161 | # With GCC up to 2.95.x, collect2 would create an import file | |
10162 | # for dependence libraries. The import file would start with | |
10163 | # the line `#! .'. This would cause the generated library to | |
10164 | # depend on `.', always an invalid library. This was fixed in | |
10165 | # development snapshots of GCC prior to 3.0. | |
10166 | case $host_os in | |
10167 | aix4 | aix4.[01] | aix4.[01].*) | |
10168 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10169 | echo ' yes ' | |
8d138742 | 10170 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
d9898ee8 | 10171 | : |
10172 | else | |
10173 | can_build_shared=no | |
10174 | fi | |
10175 | ;; | |
10176 | esac | |
10177 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10178 | # soname into executable. Probably we can add versioning support to | |
10179 | # collect2, so additional links can be useful in future. | |
10180 | if test "$aix_use_runtimelinking" = yes; then | |
10181 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10182 | # instead of lib<name>.a to let people know that these are not | |
10183 | # typical AIX shared libraries. | |
10184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10185 | else | |
10186 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10187 | # and later when we are not doing run time linking. | |
10188 | library_names_spec='${libname}${release}.a $libname.a' | |
10189 | soname_spec='${libname}${release}${shared_ext}$major' | |
10190 | fi | |
10191 | shlibpath_var=LIBPATH | |
10192 | fi | |
10193 | ;; | |
10194 | ||
10195 | amigaos*) | |
8d138742 CE |
10196 | case $host_cpu in |
10197 | powerpc) | |
10198 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10199 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10200 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10201 | ;; | |
10202 | m68k) | |
10203 | library_names_spec='$libname.ixlibrary $libname.a' | |
10204 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
b0322a85 | 10205 | 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' |
8d138742 CE |
10206 | ;; |
10207 | esac | |
d9898ee8 | 10208 | ;; |
10209 | ||
10210 | beos*) | |
10211 | library_names_spec='${libname}${shared_ext}' | |
10212 | dynamic_linker="$host_os ld.so" | |
10213 | shlibpath_var=LIBRARY_PATH | |
10214 | ;; | |
10215 | ||
10216 | bsdi[45]*) | |
b0322a85 | 10217 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10218 | need_version=no |
10219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10220 | soname_spec='${libname}${release}${shared_ext}$major' | |
10221 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10222 | shlibpath_var=LD_LIBRARY_PATH | |
10223 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10224 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10225 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10226 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10227 | # libtool to hard-code these into programs | |
10228 | ;; | |
10229 | ||
8d138742 | 10230 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 10231 | version_type=windows |
10232 | shrext_cmds=".dll" | |
10233 | need_version=no | |
10234 | need_lib_prefix=no | |
10235 | ||
b0322a85 CE |
10236 | case $GCC,$cc_basename in |
10237 | yes,*) | |
10238 | # gcc | |
d9898ee8 | 10239 | library_names_spec='$libname.dll.a' |
10240 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10241 | postinstall_cmds='base_file=`basename \${file}`~ | |
8d138742 | 10242 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
d9898ee8 | 10243 | dldir=$destdir/`dirname \$dlpath`~ |
10244 | test -d \$dldir || mkdir -p \$dldir~ | |
10245 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8d138742 CE |
10246 | chmod a+x \$dldir/$dlname~ |
10247 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10248 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10249 | fi' | |
d9898ee8 | 10250 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10251 | dlpath=$dir/\$dldll~ | |
8d138742 | 10252 | $RM \$dlpath' |
d9898ee8 | 10253 | shlibpath_overrides_runpath=yes |
10254 | ||
10255 | case $host_os in | |
10256 | cygwin*) | |
10257 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10258 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
b0322a85 CE |
10259 | |
10260 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
d9898ee8 | 10261 | ;; |
8d138742 | 10262 | mingw* | cegcc*) |
d9898ee8 | 10263 | # MinGW DLLs use traditional 'lib' prefix |
10264 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
d9898ee8 | 10265 | ;; |
10266 | pw32*) | |
10267 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10268 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10269 | ;; | |
10270 | esac | |
b0322a85 CE |
10271 | dynamic_linker='Win32 ld.exe' |
10272 | ;; | |
10273 | ||
10274 | *,cl*) | |
10275 | # Native MSVC | |
10276 | libname_spec='$name' | |
10277 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10278 | library_names_spec='${libname}.dll.lib' | |
10279 | ||
10280 | case $build_os in | |
10281 | mingw*) | |
10282 | sys_lib_search_path_spec= | |
10283 | lt_save_ifs=$IFS | |
10284 | IFS=';' | |
10285 | for lt_path in $LIB | |
10286 | do | |
10287 | IFS=$lt_save_ifs | |
10288 | # Let DOS variable expansion print the short 8.3 style file name. | |
10289 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10290 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10291 | done | |
10292 | IFS=$lt_save_ifs | |
10293 | # Convert to MSYS style. | |
10294 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10295 | ;; | |
10296 | cygwin*) | |
10297 | # Convert to unix form, then to dos form, then back to unix form | |
10298 | # but this time dos style (no spaces!) so that the unix form looks | |
10299 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10300 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10301 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10302 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10303 | ;; | |
10304 | *) | |
10305 | sys_lib_search_path_spec="$LIB" | |
10306 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10307 | # It is most probably a Windows format PATH. | |
10308 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10309 | else | |
10310 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10311 | fi | |
10312 | # FIXME: find the short name or the path components, as spaces are | |
10313 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
10314 | ;; | |
10315 | esac | |
10316 | ||
10317 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10318 | postinstall_cmds='base_file=`basename \${file}`~ | |
10319 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10320 | dldir=$destdir/`dirname \$dlpath`~ | |
10321 | test -d \$dldir || mkdir -p \$dldir~ | |
10322 | $install_prog $dir/$dlname \$dldir/$dlname' | |
10323 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10324 | dlpath=$dir/\$dldll~ | |
10325 | $RM \$dlpath' | |
10326 | shlibpath_overrides_runpath=yes | |
10327 | dynamic_linker='Win32 link.exe' | |
d9898ee8 | 10328 | ;; |
10329 | ||
10330 | *) | |
b0322a85 | 10331 | # Assume MSVC wrapper |
d9898ee8 | 10332 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
b0322a85 | 10333 | dynamic_linker='Win32 ld.exe' |
d9898ee8 | 10334 | ;; |
10335 | esac | |
d9898ee8 | 10336 | # FIXME: first we should search . and the directory the executable is in |
10337 | shlibpath_var=PATH | |
10338 | ;; | |
10339 | ||
10340 | darwin* | rhapsody*) | |
10341 | dynamic_linker="$host_os dyld" | |
10342 | version_type=darwin | |
10343 | need_lib_prefix=no | |
10344 | need_version=no | |
8d138742 | 10345 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
d9898ee8 | 10346 | soname_spec='${libname}${release}${major}$shared_ext' |
10347 | shlibpath_overrides_runpath=yes | |
10348 | shlibpath_var=DYLD_LIBRARY_PATH | |
10349 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
ac40fd9e | 10350 | |
8d138742 | 10351 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
d9898ee8 | 10352 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
10353 | ;; | |
10354 | ||
10355 | dgux*) | |
b0322a85 | 10356 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10357 | need_lib_prefix=no |
10358 | need_version=no | |
10359 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10360 | soname_spec='${libname}${release}${shared_ext}$major' | |
10361 | shlibpath_var=LD_LIBRARY_PATH | |
10362 | ;; | |
10363 | ||
d9898ee8 | 10364 | freebsd* | dragonfly*) |
10365 | # DragonFly does not have aout. When/if they implement a new | |
10366 | # versioning mechanism, adjust this. | |
10367 | if test -x /usr/bin/objformat; then | |
10368 | objformat=`/usr/bin/objformat` | |
10369 | else | |
10370 | case $host_os in | |
b0322a85 | 10371 | freebsd[23].*) objformat=aout ;; |
d9898ee8 | 10372 | *) objformat=elf ;; |
10373 | esac | |
10374 | fi | |
10375 | version_type=freebsd-$objformat | |
10376 | case $version_type in | |
10377 | freebsd-elf*) | |
10378 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10379 | need_version=no | |
10380 | need_lib_prefix=no | |
10381 | ;; | |
10382 | freebsd-*) | |
10383 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10384 | need_version=yes | |
10385 | ;; | |
10386 | esac | |
10387 | shlibpath_var=LD_LIBRARY_PATH | |
10388 | case $host_os in | |
b0322a85 | 10389 | freebsd2.*) |
d9898ee8 | 10390 | shlibpath_overrides_runpath=yes |
10391 | ;; | |
10392 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10393 | shlibpath_overrides_runpath=yes | |
10394 | hardcode_into_libs=yes | |
10395 | ;; | |
10396 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10397 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10398 | shlibpath_overrides_runpath=no | |
10399 | hardcode_into_libs=yes | |
10400 | ;; | |
ac40fd9e | 10401 | *) # from 4.6 on, and DragonFly |
d9898ee8 | 10402 | shlibpath_overrides_runpath=yes |
10403 | hardcode_into_libs=yes | |
10404 | ;; | |
10405 | esac | |
10406 | ;; | |
10407 | ||
10408 | gnu*) | |
b0322a85 | 10409 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10410 | need_lib_prefix=no |
10411 | need_version=no | |
10412 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10413 | soname_spec='${libname}${release}${shared_ext}$major' | |
10414 | shlibpath_var=LD_LIBRARY_PATH | |
b0322a85 CE |
10415 | shlibpath_overrides_runpath=no |
10416 | hardcode_into_libs=yes | |
10417 | ;; | |
10418 | ||
10419 | haiku*) | |
10420 | version_type=linux # correct to gnu/linux during the next big refactor | |
10421 | need_lib_prefix=no | |
10422 | need_version=no | |
10423 | dynamic_linker="$host_os runtime_loader" | |
10424 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10425 | soname_spec='${libname}${release}${shared_ext}$major' | |
10426 | shlibpath_var=LIBRARY_PATH | |
10427 | shlibpath_overrides_runpath=yes | |
10428 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
d9898ee8 | 10429 | hardcode_into_libs=yes |
10430 | ;; | |
10431 | ||
10432 | hpux9* | hpux10* | hpux11*) | |
10433 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10434 | # link against other versions. | |
10435 | version_type=sunos | |
10436 | need_lib_prefix=no | |
10437 | need_version=no | |
10438 | case $host_cpu in | |
10439 | ia64*) | |
10440 | shrext_cmds='.so' | |
10441 | hardcode_into_libs=yes | |
10442 | dynamic_linker="$host_os dld.so" | |
10443 | shlibpath_var=LD_LIBRARY_PATH | |
10444 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10445 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10446 | soname_spec='${libname}${release}${shared_ext}$major' | |
10447 | if test "X$HPUX_IA64_MODE" = X32; then | |
10448 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10449 | else | |
10450 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10451 | fi | |
10452 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10453 | ;; | |
8d138742 CE |
10454 | hppa*64*) |
10455 | shrext_cmds='.sl' | |
10456 | hardcode_into_libs=yes | |
10457 | dynamic_linker="$host_os dld.sl" | |
10458 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10459 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10461 | soname_spec='${libname}${release}${shared_ext}$major' | |
10462 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10463 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10464 | ;; | |
10465 | *) | |
d9898ee8 | 10466 | shrext_cmds='.sl' |
10467 | dynamic_linker="$host_os dld.sl" | |
10468 | shlibpath_var=SHLIB_PATH | |
10469 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10470 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10471 | soname_spec='${libname}${release}${shared_ext}$major' | |
10472 | ;; | |
10473 | esac | |
b0322a85 | 10474 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
d9898ee8 | 10475 | postinstall_cmds='chmod 555 $lib' |
b0322a85 CE |
10476 | # or fails outright, so override atomically: |
10477 | install_override_mode=555 | |
d9898ee8 | 10478 | ;; |
10479 | ||
ac40fd9e | 10480 | interix[3-9]*) |
b0322a85 | 10481 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10482 | need_lib_prefix=no |
10483 | need_version=no | |
10484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10485 | soname_spec='${libname}${release}${shared_ext}$major' | |
10486 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10487 | shlibpath_var=LD_LIBRARY_PATH | |
10488 | shlibpath_overrides_runpath=no | |
10489 | hardcode_into_libs=yes | |
10490 | ;; | |
10491 | ||
10492 | irix5* | irix6* | nonstopux*) | |
10493 | case $host_os in | |
10494 | nonstopux*) version_type=nonstopux ;; | |
10495 | *) | |
10496 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
b0322a85 | 10497 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10498 | else |
10499 | version_type=irix | |
10500 | fi ;; | |
10501 | esac | |
10502 | need_lib_prefix=no | |
10503 | need_version=no | |
10504 | soname_spec='${libname}${release}${shared_ext}$major' | |
10505 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10506 | case $host_os in | |
10507 | irix5* | nonstopux*) | |
10508 | libsuff= shlibsuff= | |
10509 | ;; | |
10510 | *) | |
10511 | case $LD in # libtool.m4 will add one of these switches to LD | |
10512 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10513 | libsuff= shlibsuff= libmagic=32-bit;; | |
10514 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10515 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10516 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10517 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10518 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10519 | esac | |
10520 | ;; | |
10521 | esac | |
10522 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10523 | shlibpath_overrides_runpath=no | |
10524 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10525 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10526 | hardcode_into_libs=yes | |
10527 | ;; | |
10528 | ||
8d138742 CE |
10529 | # No shared lib support for Linux oldld, aout, or coff. |
10530 | linux*oldld* | linux*aout* | linux*coff*) | |
10531 | dynamic_linker=no | |
10532 | ;; | |
10533 | ||
b0322a85 CE |
10534 | # This must be glibc/ELF. |
10535 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
10536 | version_type=linux # correct to gnu/linux during the next big refactor | |
8d138742 CE |
10537 | need_lib_prefix=no |
10538 | need_version=no | |
10539 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10540 | soname_spec='${libname}${release}${shared_ext}$major' | |
10541 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10542 | shlibpath_var=LD_LIBRARY_PATH | |
10543 | shlibpath_overrides_runpath=no | |
b0322a85 | 10544 | |
8d138742 | 10545 | # Some binutils ld are patched to set DT_RUNPATH |
b0322a85 CE |
10546 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
10547 | $as_echo_n "(cached) " >&6 | |
10548 | else | |
10549 | lt_cv_shlibpath_overrides_runpath=no | |
10550 | save_LDFLAGS=$LDFLAGS | |
10551 | save_libdir=$libdir | |
10552 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10553 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 CE |
10555 | /* end confdefs.h. */ |
10556 | ||
10557 | int | |
10558 | main () | |
10559 | { | |
10560 | ||
10561 | ; | |
10562 | return 0; | |
10563 | } | |
10564 | _ACEOF | |
b0322a85 CE |
10565 | if ac_fn_c_try_link "$LINENO"; then : |
10566 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10567 | lt_cv_shlibpath_overrides_runpath=yes | |
8d138742 | 10568 | fi |
b0322a85 CE |
10569 | fi |
10570 | rm -f core conftest.err conftest.$ac_objext \ | |
10571 | conftest$ac_exeext conftest.$ac_ext | |
10572 | LDFLAGS=$save_LDFLAGS | |
10573 | libdir=$save_libdir | |
8d138742 CE |
10574 | |
10575 | fi | |
10576 | ||
b0322a85 | 10577 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
d9898ee8 | 10578 | |
d9898ee8 | 10579 | # This implies no fast_install, which is unacceptable. |
10580 | # Some rework will be needed to allow for fast_install | |
10581 | # before this can be enabled. | |
10582 | hardcode_into_libs=yes | |
8d138742 CE |
10583 | |
10584 | # Add ABI-specific directories to the system library path. | |
10585 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
d9898ee8 | 10586 | |
10587 | # Append ld.so.conf contents to the search path | |
10588 | if test -f /etc/ld.so.conf; then | |
b0322a85 | 10589 | 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' ' '` |
ac40fd9e | 10590 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
b0322a85 | 10591 | |
d9898ee8 | 10592 | fi |
10593 | ||
10594 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10595 | # powerpc, because MkLinux only supported shared libraries with the | |
10596 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10597 | # most powerpc-linux boxes support dynamic linking these days and | |
10598 | # people can always --disable-shared, the test was removed, and we | |
10599 | # assume the GNU/Linux dynamic linker is in use. | |
10600 | dynamic_linker='GNU/Linux ld.so' | |
10601 | ;; | |
10602 | ||
d9898ee8 | 10603 | netbsd*) |
10604 | version_type=sunos | |
10605 | need_lib_prefix=no | |
10606 | need_version=no | |
8d138742 | 10607 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
d9898ee8 | 10608 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
10609 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10610 | dynamic_linker='NetBSD (a.out) ld.so' | |
10611 | else | |
10612 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10613 | soname_spec='${libname}${release}${shared_ext}$major' | |
10614 | dynamic_linker='NetBSD ld.elf_so' | |
10615 | fi | |
10616 | shlibpath_var=LD_LIBRARY_PATH | |
10617 | shlibpath_overrides_runpath=yes | |
10618 | hardcode_into_libs=yes | |
10619 | ;; | |
10620 | ||
10621 | newsos6) | |
b0322a85 | 10622 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10623 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10624 | shlibpath_var=LD_LIBRARY_PATH | |
10625 | shlibpath_overrides_runpath=yes | |
10626 | ;; | |
10627 | ||
8d138742 CE |
10628 | *nto* | *qnx*) |
10629 | version_type=qnx | |
d9898ee8 | 10630 | need_lib_prefix=no |
10631 | need_version=no | |
10632 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10633 | soname_spec='${libname}${release}${shared_ext}$major' | |
10634 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 CE |
10635 | shlibpath_overrides_runpath=no |
10636 | hardcode_into_libs=yes | |
10637 | dynamic_linker='ldqnx.so' | |
d9898ee8 | 10638 | ;; |
10639 | ||
10640 | openbsd*) | |
10641 | version_type=sunos | |
10642 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10643 | need_lib_prefix=no | |
10644 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10645 | case $host_os in | |
8d138742 CE |
10646 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
10647 | *) need_version=no ;; | |
d9898ee8 | 10648 | esac |
10649 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10650 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10651 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 | 10652 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
d9898ee8 | 10653 | case $host_os in |
10654 | openbsd2.[89] | openbsd2.[89].*) | |
10655 | shlibpath_overrides_runpath=no | |
10656 | ;; | |
10657 | *) | |
10658 | shlibpath_overrides_runpath=yes | |
10659 | ;; | |
10660 | esac | |
10661 | else | |
10662 | shlibpath_overrides_runpath=yes | |
10663 | fi | |
10664 | ;; | |
10665 | ||
10666 | os2*) | |
10667 | libname_spec='$name' | |
10668 | shrext_cmds=".dll" | |
10669 | need_lib_prefix=no | |
10670 | library_names_spec='$libname${shared_ext} $libname.a' | |
10671 | dynamic_linker='OS/2 ld.exe' | |
10672 | shlibpath_var=LIBPATH | |
10673 | ;; | |
10674 | ||
10675 | osf3* | osf4* | osf5*) | |
10676 | version_type=osf | |
10677 | need_lib_prefix=no | |
10678 | need_version=no | |
10679 | soname_spec='${libname}${release}${shared_ext}$major' | |
10680 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10681 | shlibpath_var=LD_LIBRARY_PATH | |
10682 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10683 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10684 | ;; | |
10685 | ||
ac40fd9e | 10686 | rdos*) |
10687 | dynamic_linker=no | |
10688 | ;; | |
10689 | ||
d9898ee8 | 10690 | solaris*) |
b0322a85 | 10691 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10692 | need_lib_prefix=no |
10693 | need_version=no | |
10694 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10695 | soname_spec='${libname}${release}${shared_ext}$major' | |
10696 | shlibpath_var=LD_LIBRARY_PATH | |
10697 | shlibpath_overrides_runpath=yes | |
10698 | hardcode_into_libs=yes | |
10699 | # ldd complains unless libraries are executable | |
10700 | postinstall_cmds='chmod +x $lib' | |
10701 | ;; | |
10702 | ||
10703 | sunos4*) | |
10704 | version_type=sunos | |
10705 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10706 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10707 | shlibpath_var=LD_LIBRARY_PATH | |
10708 | shlibpath_overrides_runpath=yes | |
10709 | if test "$with_gnu_ld" = yes; then | |
10710 | need_lib_prefix=no | |
10711 | fi | |
10712 | need_version=yes | |
10713 | ;; | |
10714 | ||
10715 | sysv4 | sysv4.3*) | |
b0322a85 | 10716 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10717 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10718 | soname_spec='${libname}${release}${shared_ext}$major' | |
10719 | shlibpath_var=LD_LIBRARY_PATH | |
10720 | case $host_vendor in | |
10721 | sni) | |
10722 | shlibpath_overrides_runpath=no | |
10723 | need_lib_prefix=no | |
d9898ee8 | 10724 | runpath_var=LD_RUN_PATH |
10725 | ;; | |
10726 | siemens) | |
10727 | need_lib_prefix=no | |
10728 | ;; | |
10729 | motorola) | |
10730 | need_lib_prefix=no | |
10731 | need_version=no | |
10732 | shlibpath_overrides_runpath=no | |
10733 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10734 | ;; | |
10735 | esac | |
10736 | ;; | |
10737 | ||
10738 | sysv4*MP*) | |
10739 | if test -d /usr/nec ;then | |
b0322a85 | 10740 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10741 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
10742 | soname_spec='$libname${shared_ext}.$major' | |
10743 | shlibpath_var=LD_LIBRARY_PATH | |
10744 | fi | |
10745 | ;; | |
10746 | ||
10747 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10748 | version_type=freebsd-elf | |
10749 | need_lib_prefix=no | |
10750 | need_version=no | |
10751 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10752 | soname_spec='${libname}${release}${shared_ext}$major' | |
10753 | shlibpath_var=LD_LIBRARY_PATH | |
8d138742 | 10754 | shlibpath_overrides_runpath=yes |
d9898ee8 | 10755 | hardcode_into_libs=yes |
10756 | if test "$with_gnu_ld" = yes; then | |
10757 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
d9898ee8 | 10758 | else |
10759 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
d9898ee8 | 10760 | case $host_os in |
10761 | sco3.2v5*) | |
10762 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10763 | ;; | |
10764 | esac | |
10765 | fi | |
10766 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10767 | ;; | |
10768 | ||
8d138742 CE |
10769 | tpf*) |
10770 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
b0322a85 | 10771 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
10772 | need_lib_prefix=no |
10773 | need_version=no | |
b0322a85 CE |
10774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
10775 | shlibpath_var=LD_LIBRARY_PATH | |
10776 | shlibpath_overrides_runpath=no | |
10777 | hardcode_into_libs=yes | |
10778 | ;; | |
10779 | ||
10780 | uts4*) | |
10781 | version_type=linux # correct to gnu/linux during the next big refactor | |
10782 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10783 | soname_spec='${libname}${release}${shared_ext}$major' | |
10784 | shlibpath_var=LD_LIBRARY_PATH | |
10785 | ;; | |
10786 | ||
10787 | *) | |
10788 | dynamic_linker=no | |
10789 | ;; | |
8d138742 | 10790 | esac |
b0322a85 CE |
10791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10792 | $as_echo "$dynamic_linker" >&6; } | |
10793 | test "$dynamic_linker" = no && can_build_shared=no | |
8d138742 | 10794 | |
b0322a85 CE |
10795 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
10796 | if test "$GCC" = yes; then | |
10797 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
d9898ee8 | 10798 | fi |
10799 | ||
b0322a85 CE |
10800 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10801 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
8d138742 | 10802 | fi |
b0322a85 CE |
10803 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
10804 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
8d138742 | 10805 | fi |
d9898ee8 | 10806 | |
d9898ee8 | 10807 | |
d9898ee8 | 10808 | |
d9898ee8 | 10809 | |
d9898ee8 | 10810 | |
10811 | ||
d9898ee8 | 10812 | |
d9898ee8 | 10813 | |
d9898ee8 | 10814 | |
d9898ee8 | 10815 | |
d9898ee8 | 10816 | |
d9898ee8 | 10817 | |
d9898ee8 | 10818 | |
d9898ee8 | 10819 | |
10820 | ||
d9898ee8 | 10821 | |
d9898ee8 | 10822 | |
10823 | ||
d9898ee8 | 10824 | |
d9898ee8 | 10825 | |
d9898ee8 | 10826 | |
d9898ee8 | 10827 | |
d9898ee8 | 10828 | |
d9898ee8 | 10829 | |
d9898ee8 | 10830 | |
d9898ee8 | 10831 | |
d9898ee8 | 10832 | |
d9898ee8 | 10833 | |
d9898ee8 | 10834 | |
d9898ee8 | 10835 | |
d9898ee8 | 10836 | |
d9898ee8 | 10837 | |
d9898ee8 | 10838 | |
d9898ee8 | 10839 | |
d9898ee8 | 10840 | |
d9898ee8 | 10841 | |
d9898ee8 | 10842 | |
d9898ee8 | 10843 | |
d9898ee8 | 10844 | |
d9898ee8 | 10845 | |
d9898ee8 | 10846 | |
d9898ee8 | 10847 | |
d9898ee8 | 10848 | |
d9898ee8 | 10849 | |
d9898ee8 | 10850 | |
d9898ee8 | 10851 | |
d9898ee8 | 10852 | |
d9898ee8 | 10853 | |
d9898ee8 | 10854 | |
d9898ee8 | 10855 | |
d9898ee8 | 10856 | |
d9898ee8 | 10857 | |
d9898ee8 | 10858 | |
d9898ee8 | 10859 | |
d9898ee8 | 10860 | |
b0322a85 CE |
10861 | |
10862 | ||
10863 | ||
10864 | ||
10865 | ||
10866 | ||
10867 | ||
10868 | ||
10869 | ||
10870 | ||
10871 | ||
10872 | ||
10873 | ||
10874 | ||
10875 | ||
10876 | ||
10877 | ||
10878 | ||
10879 | ||
10880 | ||
10881 | ||
10882 | ||
10883 | ||
10884 | ||
10885 | ||
10886 | ||
10887 | ||
10888 | ||
10889 | ||
10890 | ||
10891 | ||
10892 | ||
10893 | ||
10894 | ||
10895 | ||
10896 | ||
10897 | ||
10898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
10899 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
10900 | hardcode_action= | |
10901 | if test -n "$hardcode_libdir_flag_spec" || | |
10902 | test -n "$runpath_var" || | |
10903 | test "X$hardcode_automatic" = "Xyes" ; then | |
10904 | ||
10905 | # We can hardcode non-existent directories. | |
10906 | if test "$hardcode_direct" != no && | |
10907 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10908 | # have to relink, otherwise we might link with an installed library | |
10909 | # when we should be linking with a yet-to-be-installed one | |
10910 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10911 | test "$hardcode_minus_L" != no; then | |
10912 | # Linking always hardcodes the temporary library directory. | |
10913 | hardcode_action=relink | |
10914 | else | |
10915 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10916 | hardcode_action=immediate | |
10917 | fi | |
8d138742 | 10918 | else |
b0322a85 CE |
10919 | # We cannot hardcode anything, or else we can only hardcode existing |
10920 | # directories. | |
10921 | hardcode_action=unsupported | |
8d138742 | 10922 | fi |
b0322a85 CE |
10923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
10924 | $as_echo "$hardcode_action" >&6; } | |
d9898ee8 | 10925 | |
b0322a85 CE |
10926 | if test "$hardcode_action" = relink || |
10927 | test "$inherit_rpath" = yes; then | |
10928 | # Fast installation is not supported | |
10929 | enable_fast_install=no | |
10930 | elif test "$shlibpath_overrides_runpath" = yes || | |
10931 | test "$enable_shared" = no; then | |
10932 | # Fast installation is not necessary | |
10933 | enable_fast_install=needless | |
10934 | fi | |
d9898ee8 | 10935 | |
d9898ee8 | 10936 | |
d9898ee8 | 10937 | |
d9898ee8 | 10938 | |
d9898ee8 | 10939 | |
d9898ee8 | 10940 | |
b0322a85 CE |
10941 | if test "x$enable_dlopen" != xyes; then |
10942 | enable_dlopen=unknown | |
10943 | enable_dlopen_self=unknown | |
10944 | enable_dlopen_self_static=unknown | |
10945 | else | |
10946 | lt_cv_dlopen=no | |
10947 | lt_cv_dlopen_libs= | |
d9898ee8 | 10948 | |
b0322a85 CE |
10949 | case $host_os in |
10950 | beos*) | |
10951 | lt_cv_dlopen="load_add_on" | |
10952 | lt_cv_dlopen_libs= | |
10953 | lt_cv_dlopen_self=yes | |
10954 | ;; | |
d9898ee8 | 10955 | |
b0322a85 CE |
10956 | mingw* | pw32* | cegcc*) |
10957 | lt_cv_dlopen="LoadLibrary" | |
10958 | lt_cv_dlopen_libs= | |
10959 | ;; | |
d9898ee8 | 10960 | |
b0322a85 CE |
10961 | cygwin*) |
10962 | lt_cv_dlopen="dlopen" | |
10963 | lt_cv_dlopen_libs= | |
10964 | ;; | |
d9898ee8 | 10965 | |
b0322a85 CE |
10966 | darwin*) |
10967 | # if libdl is installed we need to link against it | |
10968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
10969 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10970 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
10971 | $as_echo_n "(cached) " >&6 | |
10972 | else | |
10973 | ac_check_lib_save_LIBS=$LIBS | |
10974 | LIBS="-ldl $LIBS" | |
10975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10976 | /* end confdefs.h. */ | |
d9898ee8 | 10977 | |
b0322a85 CE |
10978 | /* Override any GCC internal prototype to avoid an error. |
10979 | Use char because int might match the return type of a GCC | |
10980 | builtin and then its argument prototype would still apply. */ | |
10981 | #ifdef __cplusplus | |
10982 | extern "C" | |
10983 | #endif | |
10984 | char dlopen (); | |
10985 | int | |
10986 | main () | |
10987 | { | |
10988 | return dlopen (); | |
10989 | ; | |
10990 | return 0; | |
10991 | } | |
10992 | _ACEOF | |
10993 | if ac_fn_c_try_link "$LINENO"; then : | |
10994 | ac_cv_lib_dl_dlopen=yes | |
10995 | else | |
10996 | ac_cv_lib_dl_dlopen=no | |
10997 | fi | |
10998 | rm -f core conftest.err conftest.$ac_objext \ | |
10999 | conftest$ac_exeext conftest.$ac_ext | |
11000 | LIBS=$ac_check_lib_save_LIBS | |
11001 | fi | |
11002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11003 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11004 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11005 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11006 | else | |
d9898ee8 | 11007 | |
b0322a85 CE |
11008 | lt_cv_dlopen="dyld" |
11009 | lt_cv_dlopen_libs= | |
11010 | lt_cv_dlopen_self=yes | |
d9898ee8 | 11011 | |
b0322a85 | 11012 | fi |
d9898ee8 | 11013 | |
8d138742 | 11014 | ;; |
d9898ee8 | 11015 | |
b0322a85 CE |
11016 | *) |
11017 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11018 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
11019 | lt_cv_dlopen="shl_load" | |
11020 | else | |
11021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11022 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11023 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11024 | $as_echo_n "(cached) " >&6 | |
11025 | else | |
11026 | ac_check_lib_save_LIBS=$LIBS | |
11027 | LIBS="-ldld $LIBS" | |
11028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11029 | /* end confdefs.h. */ | |
d9898ee8 | 11030 | |
b0322a85 CE |
11031 | /* Override any GCC internal prototype to avoid an error. |
11032 | Use char because int might match the return type of a GCC | |
11033 | builtin and then its argument prototype would still apply. */ | |
11034 | #ifdef __cplusplus | |
11035 | extern "C" | |
11036 | #endif | |
11037 | char shl_load (); | |
11038 | int | |
11039 | main () | |
11040 | { | |
11041 | return shl_load (); | |
11042 | ; | |
11043 | return 0; | |
11044 | } | |
11045 | _ACEOF | |
11046 | if ac_fn_c_try_link "$LINENO"; then : | |
11047 | ac_cv_lib_dld_shl_load=yes | |
11048 | else | |
11049 | ac_cv_lib_dld_shl_load=no | |
11050 | fi | |
11051 | rm -f core conftest.err conftest.$ac_objext \ | |
11052 | conftest$ac_exeext conftest.$ac_ext | |
11053 | LIBS=$ac_check_lib_save_LIBS | |
11054 | fi | |
11055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11056 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11057 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11058 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
11059 | else | |
11060 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11061 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
11062 | lt_cv_dlopen="dlopen" | |
11063 | else | |
11064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11065 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11066 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11067 | $as_echo_n "(cached) " >&6 | |
11068 | else | |
11069 | ac_check_lib_save_LIBS=$LIBS | |
11070 | LIBS="-ldl $LIBS" | |
11071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11072 | /* end confdefs.h. */ | |
d9898ee8 | 11073 | |
b0322a85 CE |
11074 | /* Override any GCC internal prototype to avoid an error. |
11075 | Use char because int might match the return type of a GCC | |
11076 | builtin and then its argument prototype would still apply. */ | |
11077 | #ifdef __cplusplus | |
11078 | extern "C" | |
11079 | #endif | |
11080 | char dlopen (); | |
11081 | int | |
11082 | main () | |
11083 | { | |
11084 | return dlopen (); | |
11085 | ; | |
11086 | return 0; | |
11087 | } | |
11088 | _ACEOF | |
11089 | if ac_fn_c_try_link "$LINENO"; then : | |
11090 | ac_cv_lib_dl_dlopen=yes | |
11091 | else | |
11092 | ac_cv_lib_dl_dlopen=no | |
11093 | fi | |
11094 | rm -f core conftest.err conftest.$ac_objext \ | |
11095 | conftest$ac_exeext conftest.$ac_ext | |
11096 | LIBS=$ac_check_lib_save_LIBS | |
11097 | fi | |
11098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11099 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11100 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11101 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11102 | else | |
11103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11104 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11105 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
11106 | $as_echo_n "(cached) " >&6 | |
11107 | else | |
11108 | ac_check_lib_save_LIBS=$LIBS | |
11109 | LIBS="-lsvld $LIBS" | |
11110 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11111 | /* end confdefs.h. */ | |
d9898ee8 | 11112 | |
b0322a85 CE |
11113 | /* Override any GCC internal prototype to avoid an error. |
11114 | Use char because int might match the return type of a GCC | |
11115 | builtin and then its argument prototype would still apply. */ | |
11116 | #ifdef __cplusplus | |
11117 | extern "C" | |
11118 | #endif | |
11119 | char dlopen (); | |
11120 | int | |
11121 | main () | |
11122 | { | |
11123 | return dlopen (); | |
11124 | ; | |
11125 | return 0; | |
11126 | } | |
11127 | _ACEOF | |
11128 | if ac_fn_c_try_link "$LINENO"; then : | |
11129 | ac_cv_lib_svld_dlopen=yes | |
11130 | else | |
11131 | ac_cv_lib_svld_dlopen=no | |
11132 | fi | |
11133 | rm -f core conftest.err conftest.$ac_objext \ | |
11134 | conftest$ac_exeext conftest.$ac_ext | |
11135 | LIBS=$ac_check_lib_save_LIBS | |
11136 | fi | |
11137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11138 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11139 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11140 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11141 | else | |
11142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11143 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11144 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11145 | $as_echo_n "(cached) " >&6 | |
11146 | else | |
11147 | ac_check_lib_save_LIBS=$LIBS | |
11148 | LIBS="-ldld $LIBS" | |
11149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11150 | /* end confdefs.h. */ | |
d9898ee8 | 11151 | |
b0322a85 CE |
11152 | /* Override any GCC internal prototype to avoid an error. |
11153 | Use char because int might match the return type of a GCC | |
11154 | builtin and then its argument prototype would still apply. */ | |
11155 | #ifdef __cplusplus | |
11156 | extern "C" | |
11157 | #endif | |
11158 | char dld_link (); | |
11159 | int | |
11160 | main () | |
11161 | { | |
11162 | return dld_link (); | |
11163 | ; | |
11164 | return 0; | |
11165 | } | |
11166 | _ACEOF | |
11167 | if ac_fn_c_try_link "$LINENO"; then : | |
11168 | ac_cv_lib_dld_dld_link=yes | |
11169 | else | |
11170 | ac_cv_lib_dld_dld_link=no | |
11171 | fi | |
11172 | rm -f core conftest.err conftest.$ac_objext \ | |
11173 | conftest$ac_exeext conftest.$ac_ext | |
11174 | LIBS=$ac_check_lib_save_LIBS | |
11175 | fi | |
11176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11177 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11178 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
11179 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
8d138742 | 11180 | fi |
d9898ee8 | 11181 | |
d9898ee8 | 11182 | |
b0322a85 | 11183 | fi |
d9898ee8 | 11184 | |
d9898ee8 | 11185 | |
b0322a85 | 11186 | fi |
d9898ee8 | 11187 | |
d9898ee8 | 11188 | |
b0322a85 | 11189 | fi |
d9898ee8 | 11190 | |
d9898ee8 | 11191 | |
b0322a85 | 11192 | fi |
d9898ee8 | 11193 | |
d9898ee8 | 11194 | |
b0322a85 | 11195 | fi |
d9898ee8 | 11196 | |
b0322a85 CE |
11197 | ;; |
11198 | esac | |
d9898ee8 | 11199 | |
b0322a85 CE |
11200 | if test "x$lt_cv_dlopen" != xno; then |
11201 | enable_dlopen=yes | |
11202 | else | |
11203 | enable_dlopen=no | |
11204 | fi | |
d9898ee8 | 11205 | |
b0322a85 CE |
11206 | case $lt_cv_dlopen in |
11207 | dlopen) | |
11208 | save_CPPFLAGS="$CPPFLAGS" | |
11209 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
d9898ee8 | 11210 | |
b0322a85 CE |
11211 | save_LDFLAGS="$LDFLAGS" |
11212 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
d9898ee8 | 11213 | |
b0322a85 CE |
11214 | save_LIBS="$LIBS" |
11215 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
d9898ee8 | 11216 | |
b0322a85 CE |
11217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11218 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11219 | if ${lt_cv_dlopen_self+:} false; then : | |
11220 | $as_echo_n "(cached) " >&6 | |
11221 | else | |
11222 | if test "$cross_compiling" = yes; then : | |
11223 | lt_cv_dlopen_self=cross | |
11224 | else | |
11225 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11226 | lt_status=$lt_dlunknown | |
11227 | cat > conftest.$ac_ext <<_LT_EOF | |
11228 | #line $LINENO "configure" | |
11229 | #include "confdefs.h" | |
d9898ee8 | 11230 | |
b0322a85 CE |
11231 | #if HAVE_DLFCN_H |
11232 | #include <dlfcn.h> | |
11233 | #endif | |
d9898ee8 | 11234 | |
b0322a85 | 11235 | #include <stdio.h> |
d9898ee8 | 11236 | |
b0322a85 CE |
11237 | #ifdef RTLD_GLOBAL |
11238 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11239 | #else | |
11240 | # ifdef DL_GLOBAL | |
11241 | # define LT_DLGLOBAL DL_GLOBAL | |
11242 | # else | |
11243 | # define LT_DLGLOBAL 0 | |
11244 | # endif | |
11245 | #endif | |
d9898ee8 | 11246 | |
b0322a85 CE |
11247 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11248 | find out it does not work in some platform. */ | |
11249 | #ifndef LT_DLLAZY_OR_NOW | |
11250 | # ifdef RTLD_LAZY | |
11251 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11252 | # else | |
11253 | # ifdef DL_LAZY | |
11254 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11255 | # else | |
11256 | # ifdef RTLD_NOW | |
11257 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11258 | # else | |
11259 | # ifdef DL_NOW | |
11260 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11261 | # else | |
11262 | # define LT_DLLAZY_OR_NOW 0 | |
11263 | # endif | |
11264 | # endif | |
11265 | # endif | |
11266 | # endif | |
11267 | #endif | |
d9898ee8 | 11268 | |
b0322a85 CE |
11269 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11270 | correspondingly for the symbols needed. */ | |
11271 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11272 | int fnord () __attribute__((visibility("default"))); | |
11273 | #endif | |
d9898ee8 | 11274 | |
b0322a85 CE |
11275 | int fnord () { return 42; } |
11276 | int main () | |
8d138742 | 11277 | { |
b0322a85 CE |
11278 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11279 | int status = $lt_dlunknown; | |
d9898ee8 | 11280 | |
b0322a85 CE |
11281 | if (self) |
11282 | { | |
11283 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11284 | else | |
11285 | { | |
11286 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11287 | else puts (dlerror ()); | |
11288 | } | |
11289 | /* dlclose (self); */ | |
11290 | } | |
11291 | else | |
11292 | puts (dlerror ()); | |
11293 | ||
11294 | return status; | |
8d138742 | 11295 | } |
b0322a85 CE |
11296 | _LT_EOF |
11297 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11298 | (eval $ac_link) 2>&5 | |
8d138742 | 11299 | ac_status=$? |
b0322a85 CE |
11300 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11301 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11302 | (./conftest; exit; ) >&5 2>/dev/null | |
11303 | lt_status=$? | |
11304 | case x$lt_status in | |
11305 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11306 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11307 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11308 | esac | |
11309 | else : | |
11310 | # compilation failed | |
11311 | lt_cv_dlopen_self=no | |
11312 | fi | |
8d138742 | 11313 | fi |
b0322a85 | 11314 | rm -fr conftest* |
d9898ee8 | 11315 | |
d9898ee8 | 11316 | |
8d138742 | 11317 | fi |
b0322a85 CE |
11318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11319 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
d9898ee8 | 11320 | |
b0322a85 CE |
11321 | if test "x$lt_cv_dlopen_self" = xyes; then |
11322 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11324 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11325 | if ${lt_cv_dlopen_self_static+:} false; then : | |
11326 | $as_echo_n "(cached) " >&6 | |
8d138742 | 11327 | else |
b0322a85 CE |
11328 | if test "$cross_compiling" = yes; then : |
11329 | lt_cv_dlopen_self_static=cross | |
11330 | else | |
11331 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11332 | lt_status=$lt_dlunknown | |
11333 | cat > conftest.$ac_ext <<_LT_EOF | |
11334 | #line $LINENO "configure" | |
11335 | #include "confdefs.h" | |
d9898ee8 | 11336 | |
b0322a85 CE |
11337 | #if HAVE_DLFCN_H |
11338 | #include <dlfcn.h> | |
11339 | #endif | |
d9898ee8 | 11340 | |
b0322a85 CE |
11341 | #include <stdio.h> |
11342 | ||
11343 | #ifdef RTLD_GLOBAL | |
11344 | # define LT_DLGLOBAL RTLD_GLOBAL | |
8d138742 | 11345 | #else |
b0322a85 CE |
11346 | # ifdef DL_GLOBAL |
11347 | # define LT_DLGLOBAL DL_GLOBAL | |
11348 | # else | |
11349 | # define LT_DLGLOBAL 0 | |
11350 | # endif | |
8d138742 | 11351 | #endif |
d9898ee8 | 11352 | |
b0322a85 CE |
11353 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11354 | find out it does not work in some platform. */ | |
11355 | #ifndef LT_DLLAZY_OR_NOW | |
11356 | # ifdef RTLD_LAZY | |
11357 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11358 | # else | |
11359 | # ifdef DL_LAZY | |
11360 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11361 | # else | |
11362 | # ifdef RTLD_NOW | |
11363 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11364 | # else | |
11365 | # ifdef DL_NOW | |
11366 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11367 | # else | |
11368 | # define LT_DLLAZY_OR_NOW 0 | |
11369 | # endif | |
11370 | # endif | |
11371 | # endif | |
11372 | # endif | |
11373 | #endif | |
d9898ee8 | 11374 | |
b0322a85 CE |
11375 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11376 | correspondingly for the symbols needed. */ | |
11377 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11378 | int fnord () __attribute__((visibility("default"))); | |
11379 | #endif | |
d9898ee8 | 11380 | |
b0322a85 CE |
11381 | int fnord () { return 42; } |
11382 | int main () | |
11383 | { | |
11384 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11385 | int status = $lt_dlunknown; | |
d9898ee8 | 11386 | |
b0322a85 CE |
11387 | if (self) |
11388 | { | |
11389 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11390 | else | |
11391 | { | |
11392 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11393 | else puts (dlerror ()); | |
11394 | } | |
11395 | /* dlclose (self); */ | |
11396 | } | |
11397 | else | |
11398 | puts (dlerror ()); | |
11399 | ||
11400 | return status; | |
11401 | } | |
11402 | _LT_EOF | |
11403 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11404 | (eval $ac_link) 2>&5 | |
11405 | ac_status=$? | |
11406 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11407 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11408 | (./conftest; exit; ) >&5 2>/dev/null | |
11409 | lt_status=$? | |
11410 | case x$lt_status in | |
11411 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11412 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11413 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11414 | esac | |
11415 | else : | |
11416 | # compilation failed | |
11417 | lt_cv_dlopen_self_static=no | |
11418 | fi | |
8d138742 | 11419 | fi |
b0322a85 | 11420 | rm -fr conftest* |
d9898ee8 | 11421 | |
11422 | ||
d9898ee8 | 11423 | fi |
b0322a85 CE |
11424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11425 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11426 | fi | |
d9898ee8 | 11427 | |
b0322a85 CE |
11428 | CPPFLAGS="$save_CPPFLAGS" |
11429 | LDFLAGS="$save_LDFLAGS" | |
11430 | LIBS="$save_LIBS" | |
11431 | ;; | |
11432 | esac | |
d9898ee8 | 11433 | |
b0322a85 CE |
11434 | case $lt_cv_dlopen_self in |
11435 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11436 | *) enable_dlopen_self=unknown ;; | |
11437 | esac | |
d9898ee8 | 11438 | |
b0322a85 CE |
11439 | case $lt_cv_dlopen_self_static in |
11440 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11441 | *) enable_dlopen_self_static=unknown ;; | |
11442 | esac | |
8d138742 | 11443 | fi |
d9898ee8 | 11444 | |
d9898ee8 | 11445 | |
d9898ee8 | 11446 | |
d9898ee8 | 11447 | |
d9898ee8 | 11448 | |
11449 | ||
11450 | ||
d9898ee8 | 11451 | |
d9898ee8 | 11452 | |
11453 | ||
11454 | ||
11455 | ||
11456 | ||
11457 | ||
11458 | ||
11459 | ||
11460 | ||
b0322a85 CE |
11461 | striplib= |
11462 | old_striplib= | |
11463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
11464 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11465 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11466 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11467 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11469 | $as_echo "yes" >&6; } | |
11470 | else | |
11471 | # FIXME - insert some real tests, host_os isn't really good enough | |
11472 | case $host_os in | |
11473 | darwin*) | |
11474 | if test -n "$STRIP" ; then | |
11475 | striplib="$STRIP -x" | |
11476 | old_striplib="$STRIP -S" | |
11477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11478 | $as_echo "yes" >&6; } | |
11479 | else | |
11480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11481 | $as_echo "no" >&6; } | |
11482 | fi | |
11483 | ;; | |
11484 | *) | |
11485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11486 | $as_echo "no" >&6; } | |
11487 | ;; | |
11488 | esac | |
11489 | fi | |
d9898ee8 | 11490 | |
11491 | ||
11492 | ||
11493 | ||
11494 | ||
11495 | ||
11496 | ||
11497 | ||
11498 | ||
11499 | ||
11500 | ||
11501 | ||
b0322a85 CE |
11502 | # Report which library types will actually be built |
11503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
11504 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11506 | $as_echo "$can_build_shared" >&6; } | |
d9898ee8 | 11507 | |
b0322a85 CE |
11508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11509 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11510 | test "$can_build_shared" = "no" && enable_shared=no | |
d9898ee8 | 11511 | |
b0322a85 CE |
11512 | # On AIX, shared libraries and static libraries use the same namespace, and |
11513 | # are all built from PIC. | |
11514 | case $host_os in | |
11515 | aix3*) | |
11516 | test "$enable_shared" = yes && enable_static=no | |
11517 | if test -n "$RANLIB"; then | |
11518 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11519 | postinstall_cmds='$RANLIB $lib' | |
11520 | fi | |
11521 | ;; | |
11522 | ||
11523 | aix[4-9]*) | |
11524 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11525 | test "$enable_shared" = yes && enable_static=no | |
11526 | fi | |
11527 | ;; | |
11528 | esac | |
11529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
11530 | $as_echo "$enable_shared" >&6; } | |
11531 | ||
11532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
11533 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11534 | # Make sure either enable_shared or enable_static is yes. | |
11535 | test "$enable_shared" = yes || enable_static=yes | |
11536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
11537 | $as_echo "$enable_static" >&6; } | |
d9898ee8 | 11538 | |
d9898ee8 | 11539 | |
d9898ee8 | 11540 | |
d9898ee8 | 11541 | |
d9898ee8 | 11542 | fi |
b0322a85 CE |
11543 | ac_ext=c |
11544 | ac_cpp='$CPP $CPPFLAGS' | |
11545 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11546 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11547 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11548 | ||
11549 | CC="$lt_save_CC" | |
11550 | ||
11551 | ||
dd184caf | 11552 | |
d9898ee8 | 11553 | |
d9898ee8 | 11554 | |
8d138742 | 11555 | |
8d138742 | 11556 | |
8d138742 | 11557 | |
8d138742 | 11558 | |
d9898ee8 | 11559 | |
d9898ee8 | 11560 | |
d9898ee8 | 11561 | |
d9898ee8 | 11562 | |
b0322a85 CE |
11563 | |
11564 | ||
11565 | ac_config_commands="$ac_config_commands libtool" | |
11566 | ||
11567 | ||
11568 | ||
11569 | ||
11570 | # Only expand once: | |
11571 | ||
11572 | ||
11573 | ||
11574 | if test "$GCC" = yes | |
11575 | then | |
11576 | CFLAGS="-Wall $CFLAGS" | |
d9898ee8 | 11577 | fi |
11578 | ||
b0322a85 CE |
11579 | CFLAGS="$CFLAGS -I$srcdir/.. -I.." |
11580 | ||
11581 | ||
11582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
11583 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
11584 | if ${ac_cv_header_stdc+:} false; then : | |
11585 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 11586 | else |
b0322a85 | 11587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 11588 | /* end confdefs.h. */ |
dd184caf | 11589 | #include <stdlib.h> |
b0322a85 CE |
11590 | #include <stdarg.h> |
11591 | #include <string.h> | |
11592 | #include <float.h> | |
11593 | ||
d9898ee8 | 11594 | int |
11595 | main () | |
11596 | { | |
8d138742 | 11597 | |
8d138742 | 11598 | ; |
dd184caf | 11599 | return 0; |
d9898ee8 | 11600 | } |
11601 | _ACEOF | |
b0322a85 CE |
11602 | if ac_fn_c_try_compile "$LINENO"; then : |
11603 | ac_cv_header_stdc=yes | |
d9898ee8 | 11604 | else |
b0322a85 | 11605 | ac_cv_header_stdc=no |
d9898ee8 | 11606 | fi |
b0322a85 | 11607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 11608 | |
b0322a85 CE |
11609 | if test $ac_cv_header_stdc = yes; then |
11610 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11611 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11612 | /* end confdefs.h. */ | |
11613 | #include <string.h> | |
d9898ee8 | 11614 | |
8d138742 | 11615 | _ACEOF |
b0322a85 CE |
11616 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11617 | $EGREP "memchr" >/dev/null 2>&1; then : | |
d9898ee8 | 11618 | |
d9898ee8 | 11619 | else |
b0322a85 CE |
11620 | ac_cv_header_stdc=no |
11621 | fi | |
11622 | rm -f conftest* | |
11623 | ||
11624 | fi | |
11625 | ||
11626 | if test $ac_cv_header_stdc = yes; then | |
11627 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11628 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d9898ee8 | 11629 | /* end confdefs.h. */ |
b0322a85 | 11630 | #include <stdlib.h> |
8d138742 | 11631 | |
d9898ee8 | 11632 | _ACEOF |
b0322a85 CE |
11633 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11634 | $EGREP "free" >/dev/null 2>&1; then : | |
11635 | ||
11636 | else | |
11637 | ac_cv_header_stdc=no | |
11638 | fi | |
11639 | rm -f conftest* | |
11640 | ||
11641 | fi | |
11642 | ||
11643 | if test $ac_cv_header_stdc = yes; then | |
11644 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11645 | if test "$cross_compiling" = yes; then : | |
11646 | : | |
11647 | else | |
11648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d9898ee8 | 11649 | /* end confdefs.h. */ |
b0322a85 CE |
11650 | #include <ctype.h> |
11651 | #include <stdlib.h> | |
11652 | #if ((' ' & 0x0FF) == 0x020) | |
11653 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11654 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11655 | #else | |
11656 | # define ISLOWER(c) \ | |
11657 | (('a' <= (c) && (c) <= 'i') \ | |
11658 | || ('j' <= (c) && (c) <= 'r') \ | |
11659 | || ('s' <= (c) && (c) <= 'z')) | |
11660 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11661 | #endif | |
11662 | ||
11663 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8d138742 CE |
11664 | int |
11665 | main () | |
11666 | { | |
b0322a85 CE |
11667 | int i; |
11668 | for (i = 0; i < 256; i++) | |
11669 | if (XOR (islower (i), ISLOWER (i)) | |
11670 | || toupper (i) != TOUPPER (i)) | |
11671 | return 2; | |
8d138742 CE |
11672 | return 0; |
11673 | } | |
d9898ee8 | 11674 | _ACEOF |
b0322a85 CE |
11675 | if ac_fn_c_try_run "$LINENO"; then : |
11676 | ||
d9898ee8 | 11677 | else |
b0322a85 CE |
11678 | ac_cv_header_stdc=no |
11679 | fi | |
11680 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
11681 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
11682 | fi | |
11683 | ||
11684 | fi | |
11685 | fi | |
11686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
11687 | $as_echo "$ac_cv_header_stdc" >&6; } | |
11688 | if test $ac_cv_header_stdc = yes; then | |
11689 | ||
11690 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
d9898ee8 | 11691 | |
d9898ee8 | 11692 | fi |
dd184caf | 11693 | |
d9898ee8 | 11694 | |
b0322a85 CE |
11695 | for ac_header in sys/types.h |
11696 | do : | |
11697 | ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" | |
11698 | if test "x$ac_cv_header_sys_types_h" = xyes; then : | |
11699 | cat >>confdefs.h <<_ACEOF | |
11700 | #define HAVE_SYS_TYPES_H 1 | |
d9898ee8 | 11701 | _ACEOF |
b0322a85 CE |
11702 | |
11703 | fi | |
11704 | ||
11705 | done | |
11706 | ||
11707 | ||
11708 | ||
11709 | ||
11710 | # Check whether --with-int32 was given. | |
11711 | if test "${with_int32+set}" = set; then : | |
11712 | withval=$with_int32; int32="$withval" | |
11713 | else | |
11714 | ||
11715 | ||
11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5 | |
11717 | $as_echo_n "checking for uint32_t... " >&6; } | |
11718 | ||
11719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 11720 | /* end confdefs.h. */ |
b0322a85 CE |
11721 | |
11722 | #if HAVE_SYS_TYPES_H | |
11723 | #include <sys/types.h> | |
11724 | #endif | |
11725 | ||
8d138742 CE |
11726 | int |
11727 | main () | |
11728 | { | |
b0322a85 CE |
11729 | |
11730 | uint32_t i=0; | |
d9898ee8 | 11731 | |
8d138742 CE |
11732 | ; |
11733 | return 0; | |
11734 | } | |
11735 | _ACEOF | |
b0322a85 CE |
11736 | if ac_fn_c_try_compile "$LINENO"; then : |
11737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11738 | $as_echo "yes" >&6; } ; int32="uint32_t" | |
11739 | else | |
11740 | ||
11741 | ||
11742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11743 | $as_echo "no" >&6; } | |
11744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int_32_t" >&5 | |
11745 | $as_echo_n "checking for u_int_32_t... " >&6; } | |
11746 | ||
11747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d9898ee8 | 11748 | /* end confdefs.h. */ |
b0322a85 CE |
11749 | |
11750 | #if HAVE_SYS_TYPES_H | |
11751 | #include <sys/types.h> | |
11752 | #endif | |
11753 | ||
d9898ee8 | 11754 | int |
11755 | main () | |
11756 | { | |
b0322a85 CE |
11757 | |
11758 | u_int32_t i=0; | |
d9898ee8 | 11759 | |
11760 | ; | |
11761 | return 0; | |
11762 | } | |
11763 | _ACEOF | |
b0322a85 CE |
11764 | if ac_fn_c_try_compile "$LINENO"; then : |
11765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11766 | $as_echo "yes" >&6; }; int32="u_int32_t" | |
d9898ee8 | 11767 | else |
d9898ee8 | 11768 | |
11769 | ||
b0322a85 CE |
11770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11771 | $as_echo "no" >&6; } | |
11772 | ||
11773 | # The cast to long int works around a bug in the HP C Compiler | |
11774 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11775 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11776 | # This bug is HP SR number 8606223364. | |
11777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5 | |
11778 | $as_echo_n "checking size of unsigned... " >&6; } | |
11779 | if ${ac_cv_sizeof_unsigned+:} false; then : | |
11780 | $as_echo_n "(cached) " >&6 | |
8d138742 | 11781 | else |
b0322a85 | 11782 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then : |
d9898ee8 | 11783 | |
b0322a85 CE |
11784 | else |
11785 | if test "$ac_cv_type_unsigned" = yes; then | |
11786 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11787 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11788 | as_fn_error 77 "cannot compute sizeof (unsigned) | |
11789 | See \`config.log' for more details" "$LINENO" 5; } | |
11790 | else | |
11791 | ac_cv_sizeof_unsigned=0 | |
11792 | fi | |
8d138742 | 11793 | fi |
d9898ee8 | 11794 | |
8d138742 | 11795 | fi |
b0322a85 CE |
11796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5 |
11797 | $as_echo "$ac_cv_sizeof_unsigned" >&6; } | |
8d138742 | 11798 | |
d9898ee8 | 11799 | |
b0322a85 CE |
11800 | |
11801 | cat >>confdefs.h <<_ACEOF | |
11802 | #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned | |
d9898ee8 | 11803 | _ACEOF |
d9898ee8 | 11804 | |
11805 | ||
b0322a85 CE |
11806 | if test "$ac_cv_sizeof_unsigned" != 4 |
11807 | then | |
11808 | # The cast to long int works around a bug in the HP C Compiler | |
11809 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11810 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11811 | # This bug is HP SR number 8606223364. | |
11812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 | |
11813 | $as_echo_n "checking size of unsigned long... " >&6; } | |
11814 | if ${ac_cv_sizeof_unsigned_long+:} false; then : | |
11815 | $as_echo_n "(cached) " >&6 | |
11816 | else | |
11817 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : | |
11818 | ||
11819 | else | |
11820 | if test "$ac_cv_type_unsigned_long" = yes; then | |
11821 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8d138742 | 11822 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
11823 | as_fn_error 77 "cannot compute sizeof (unsigned long) |
11824 | See \`config.log' for more details" "$LINENO" 5; } | |
8d138742 CE |
11825 | else |
11826 | ac_cv_sizeof_unsigned_long=0 | |
b0322a85 CE |
11827 | fi |
11828 | fi | |
8d138742 | 11829 | |
b0322a85 CE |
11830 | fi |
11831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 | |
11832 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } | |
8d138742 | 11833 | |
b0322a85 CE |
11834 | |
11835 | ||
11836 | cat >>confdefs.h <<_ACEOF | |
11837 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long | |
d9898ee8 | 11838 | _ACEOF |
b0322a85 CE |
11839 | |
11840 | ||
11841 | if test "$ac_cv_sizeof_unsigned_long" != 4 | |
11842 | then | |
11843 | # The cast to long int works around a bug in the HP C Compiler | |
11844 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11845 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11846 | # This bug is HP SR number 8606223364. | |
11847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 | |
11848 | $as_echo_n "checking size of unsigned short... " >&6; } | |
11849 | if ${ac_cv_sizeof_unsigned_short+:} false; then : | |
11850 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 11851 | else |
b0322a85 | 11852 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : |
d9898ee8 | 11853 | |
b0322a85 CE |
11854 | else |
11855 | if test "$ac_cv_type_unsigned_short" = yes; then | |
11856 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8d138742 | 11857 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
11858 | as_fn_error 77 "cannot compute sizeof (unsigned short) |
11859 | See \`config.log' for more details" "$LINENO" 5; } | |
8d138742 | 11860 | else |
b0322a85 | 11861 | ac_cv_sizeof_unsigned_short=0 |
8d138742 | 11862 | fi |
d9898ee8 | 11863 | fi |
b0322a85 | 11864 | |
8d138742 | 11865 | fi |
b0322a85 CE |
11866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 |
11867 | $as_echo "$ac_cv_sizeof_unsigned_short" >&6; } | |
11868 | ||
11869 | ||
11870 | ||
11871 | cat >>confdefs.h <<_ACEOF | |
11872 | #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short | |
11873 | _ACEOF | |
11874 | ||
11875 | ||
11876 | if test "$ac_cv_sizeof_unsigned_short" != 4 | |
11877 | then | |
11878 | as_fn_error $? "--with-int32 option is required" "$LINENO" 5 | |
11879 | fi | |
11880 | int32="unsigned short" | |
11881 | fi | |
11882 | int32="unsigned long" | |
11883 | else | |
11884 | int32="unsigned" | |
11885 | fi | |
11886 | ||
11887 | fi | |
11888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11889 | ||
11890 | fi | |
11891 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11892 | ||
11893 | ||
d9898ee8 | 11894 | fi |
8d138742 | 11895 | |
b0322a85 | 11896 | UINT32="$int32" |
8d138742 CE |
11897 | |
11898 | ||
11899 | cat >>confdefs.h <<_ACEOF | |
b0322a85 | 11900 | #define MD5_WORD $UINT32 |
8d138742 | 11901 | _ACEOF |
d9898ee8 | 11902 | |
8d138742 | 11903 | |
b0322a85 CE |
11904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
11905 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
11906 | if ${ac_cv_c_const+:} false; then : | |
8d138742 | 11907 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 11908 | else |
b0322a85 | 11909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 11910 | /* end confdefs.h. */ |
d9898ee8 | 11911 | |
d9898ee8 | 11912 | int |
11913 | main () | |
11914 | { | |
d9898ee8 | 11915 | |
b0322a85 CE |
11916 | #ifndef __cplusplus |
11917 | /* Ultrix mips cc rejects this sort of thing. */ | |
11918 | typedef int charset[2]; | |
11919 | const charset cs = { 0, 0 }; | |
11920 | /* SunOS 4.1.1 cc rejects this. */ | |
11921 | char const *const *pcpcc; | |
11922 | char **ppc; | |
11923 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
11924 | struct point {int x, y;}; | |
11925 | static struct point const zero = {0,0}; | |
11926 | /* AIX XL C 1.02.0.0 rejects this. | |
11927 | It does not let you subtract one const X* pointer from another in | |
11928 | an arm of an if-expression whose if-part is not a constant | |
11929 | expression */ | |
11930 | const char *g = "string"; | |
11931 | pcpcc = &g + (g ? g-g : 0); | |
11932 | /* HPUX 7.0 cc rejects these. */ | |
11933 | ++pcpcc; | |
11934 | ppc = (char**) pcpcc; | |
11935 | pcpcc = (char const *const *) ppc; | |
11936 | { /* SCO 3.2v4 cc rejects this sort of thing. */ | |
11937 | char tx; | |
11938 | char *t = &tx; | |
11939 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
d9898ee8 | 11940 | |
b0322a85 CE |
11941 | *t++ = 0; |
11942 | if (s) return 0; | |
11943 | } | |
11944 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
11945 | int x[] = {25, 17}; | |
11946 | const int *foo = &x[0]; | |
11947 | ++foo; | |
11948 | } | |
11949 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
11950 | typedef const int *iptr; | |
11951 | iptr p = 0; | |
11952 | ++p; | |
11953 | } | |
11954 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying | |
11955 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
11956 | struct s { int j; const int *ap[3]; } bx; | |
11957 | struct s *b = &bx; b->j = 5; | |
11958 | } | |
11959 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
11960 | const int foo = 10; | |
11961 | if (!foo) return 0; | |
11962 | } | |
11963 | return !cs[0] && !zero.x; | |
11964 | #endif | |
d9898ee8 | 11965 | |
11966 | ; | |
11967 | return 0; | |
11968 | } | |
11969 | _ACEOF | |
b0322a85 CE |
11970 | if ac_fn_c_try_compile "$LINENO"; then : |
11971 | ac_cv_c_const=yes | |
d9898ee8 | 11972 | else |
b0322a85 | 11973 | ac_cv_c_const=no |
d9898ee8 | 11974 | fi |
dd184caf | 11975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0322a85 CE |
11976 | fi |
11977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
11978 | $as_echo "$ac_cv_c_const" >&6; } | |
11979 | if test $ac_cv_c_const = no; then | |
11980 | ||
11981 | $as_echo "#define const /**/" >>confdefs.h | |
d9898ee8 | 11982 | |
d9898ee8 | 11983 | fi |
dd184caf | 11984 | |
b0322a85 CE |
11985 | # Check whether --enable-largefile was given. |
11986 | if test "${enable_largefile+set}" = set; then : | |
11987 | enableval=$enable_largefile; | |
d9898ee8 | 11988 | fi |
dd184caf | 11989 | |
b0322a85 CE |
11990 | if test "$enable_largefile" != no; then |
11991 | ||
11992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
11993 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
11994 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
11995 | $as_echo_n "(cached) " >&6 | |
11996 | else | |
11997 | ac_cv_sys_largefile_CC=no | |
11998 | if test "$GCC" != yes; then | |
11999 | ac_save_CC=$CC | |
12000 | while :; do | |
12001 | # IRIX 6.2 and later do not support large files by default, | |
12002 | # so use the C compiler's -n32 option if that helps. | |
12003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d9898ee8 | 12004 | /* end confdefs.h. */ |
b0322a85 CE |
12005 | #include <sys/types.h> |
12006 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12007 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12008 | since some C++ compilers masquerading as C compilers | |
12009 | incorrectly reject 9223372036854775807. */ | |
12010 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12011 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12012 | && LARGE_OFF_T % 2147483647 == 1) | |
12013 | ? 1 : -1]; | |
d9898ee8 | 12014 | int |
12015 | main () | |
12016 | { | |
d9898ee8 | 12017 | |
12018 | ; | |
12019 | return 0; | |
12020 | } | |
12021 | _ACEOF | |
b0322a85 CE |
12022 | if ac_fn_c_try_compile "$LINENO"; then : |
12023 | break | |
8d138742 | 12024 | fi |
b0322a85 CE |
12025 | rm -f core conftest.err conftest.$ac_objext |
12026 | CC="$CC -n32" | |
12027 | if ac_fn_c_try_compile "$LINENO"; then : | |
12028 | ac_cv_sys_largefile_CC=' -n32'; break | |
12029 | fi | |
12030 | rm -f core conftest.err conftest.$ac_objext | |
12031 | break | |
12032 | done | |
12033 | CC=$ac_save_CC | |
12034 | rm -f conftest.$ac_ext | |
12035 | fi | |
12036 | fi | |
12037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
12038 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
12039 | if test "$ac_cv_sys_largefile_CC" != no; then | |
12040 | CC=$CC$ac_cv_sys_largefile_CC | |
12041 | fi | |
8d138742 | 12042 | |
b0322a85 CE |
12043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
12044 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
12045 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
12046 | $as_echo_n "(cached) " >&6 | |
8d138742 | 12047 | else |
b0322a85 CE |
12048 | while :; do |
12049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 12050 | /* end confdefs.h. */ |
b0322a85 CE |
12051 | #include <sys/types.h> |
12052 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12053 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12054 | since some C++ compilers masquerading as C compilers | |
12055 | incorrectly reject 9223372036854775807. */ | |
12056 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12057 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12058 | && LARGE_OFF_T % 2147483647 == 1) | |
12059 | ? 1 : -1]; | |
8d138742 CE |
12060 | int |
12061 | main () | |
12062 | { | |
12063 | ||
8d138742 CE |
12064 | ; |
12065 | return 0; | |
12066 | } | |
12067 | _ACEOF | |
b0322a85 CE |
12068 | if ac_fn_c_try_compile "$LINENO"; then : |
12069 | ac_cv_sys_file_offset_bits=no; break | |
8d138742 | 12070 | fi |
8d138742 | 12071 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0322a85 CE |
12072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12073 | /* end confdefs.h. */ | |
12074 | #define _FILE_OFFSET_BITS 64 | |
12075 | #include <sys/types.h> | |
12076 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12077 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12078 | since some C++ compilers masquerading as C compilers | |
12079 | incorrectly reject 9223372036854775807. */ | |
12080 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12081 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12082 | && LARGE_OFF_T % 2147483647 == 1) | |
12083 | ? 1 : -1]; | |
12084 | int | |
12085 | main () | |
12086 | { | |
8d138742 | 12087 | |
b0322a85 CE |
12088 | ; |
12089 | return 0; | |
12090 | } | |
12091 | _ACEOF | |
12092 | if ac_fn_c_try_compile "$LINENO"; then : | |
12093 | ac_cv_sys_file_offset_bits=64; break | |
8d138742 | 12094 | fi |
8d138742 | 12095 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0322a85 CE |
12096 | ac_cv_sys_file_offset_bits=unknown |
12097 | break | |
12098 | done | |
8d138742 | 12099 | fi |
b0322a85 CE |
12100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
12101 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
12102 | case $ac_cv_sys_file_offset_bits in #( | |
12103 | no | unknown) ;; | |
12104 | *) | |
8d138742 | 12105 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 12106 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
8d138742 | 12107 | _ACEOF |
b0322a85 CE |
12108 | ;; |
12109 | esac | |
12110 | rm -rf conftest* | |
12111 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
12112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
12113 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
12114 | if ${ac_cv_sys_large_files+:} false; then : | |
8d138742 CE |
12115 | $as_echo_n "(cached) " >&6 |
12116 | else | |
b0322a85 CE |
12117 | while :; do |
12118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 12119 | /* end confdefs.h. */ |
b0322a85 CE |
12120 | #include <sys/types.h> |
12121 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12122 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12123 | since some C++ compilers masquerading as C compilers | |
12124 | incorrectly reject 9223372036854775807. */ | |
12125 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12126 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12127 | && LARGE_OFF_T % 2147483647 == 1) | |
12128 | ? 1 : -1]; | |
8d138742 CE |
12129 | int |
12130 | main () | |
12131 | { | |
8d138742 CE |
12132 | |
12133 | ; | |
12134 | return 0; | |
12135 | } | |
12136 | _ACEOF | |
b0322a85 CE |
12137 | if ac_fn_c_try_compile "$LINENO"; then : |
12138 | ac_cv_sys_large_files=no; break | |
d9898ee8 | 12139 | fi |
b0322a85 CE |
12140 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12142 | /* end confdefs.h. */ | |
12143 | #define _LARGE_FILES 1 | |
12144 | #include <sys/types.h> | |
12145 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12146 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12147 | since some C++ compilers masquerading as C compilers | |
12148 | incorrectly reject 9223372036854775807. */ | |
12149 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12150 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12151 | && LARGE_OFF_T % 2147483647 == 1) | |
12152 | ? 1 : -1]; | |
12153 | int | |
12154 | main () | |
12155 | { | |
dd184caf | 12156 | |
b0322a85 CE |
12157 | ; |
12158 | return 0; | |
12159 | } | |
12160 | _ACEOF | |
12161 | if ac_fn_c_try_compile "$LINENO"; then : | |
12162 | ac_cv_sys_large_files=1; break | |
12163 | fi | |
dd184caf | 12164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0322a85 CE |
12165 | ac_cv_sys_large_files=unknown |
12166 | break | |
12167 | done | |
8d138742 | 12168 | fi |
b0322a85 CE |
12169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
12170 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
12171 | case $ac_cv_sys_large_files in #( | |
12172 | no | unknown) ;; | |
12173 | *) | |
12174 | cat >>confdefs.h <<_ACEOF | |
12175 | #define _LARGE_FILES $ac_cv_sys_large_files | |
d9898ee8 | 12176 | _ACEOF |
b0322a85 CE |
12177 | ;; |
12178 | esac | |
12179 | rm -rf conftest* | |
12180 | fi | |
12181 | ||
d9898ee8 | 12182 | |
8d138742 CE |
12183 | fi |
12184 | ||
12185 | ||
12186 | ||
12187 | ac_config_files="$ac_config_files Makefile" | |
12188 | ||
12189 | cat >confcache <<\_ACEOF | |
12190 | # This file is a shell script that caches the results of configure | |
12191 | # tests run on this system so they can be shared between configure | |
12192 | # scripts and configure runs, see configure's option --config-cache. | |
12193 | # It is not useful on other systems. If it contains results you don't | |
12194 | # want to keep, you may remove or edit it. | |
12195 | # | |
12196 | # config.status only pays attention to the cache file if you give it | |
12197 | # the --recheck option to rerun configure. | |
12198 | # | |
12199 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
12200 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12201 | # following values. | |
12202 | ||
12203 | _ACEOF | |
12204 | ||
12205 | # The following way of writing the cache mishandles newlines in values, | |
12206 | # but we know of no workaround that is simple, portable, and efficient. | |
12207 | # So, we kill variables containing newlines. | |
12208 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12209 | # and sets the high bit in the cache file unless we assign to the vars. | |
12210 | ( | |
12211 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12212 | eval ac_val=\$$ac_var | |
12213 | case $ac_val in #( | |
12214 | *${as_nl}*) | |
12215 | case $ac_var in #( | |
b0322a85 | 12216 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 CE |
12217 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
12218 | esac | |
12219 | case $ac_var in #( | |
12220 | _ | IFS | as_nl) ;; #( | |
12221 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
b0322a85 | 12222 | *) { eval $ac_var=; unset $ac_var;} ;; |
8d138742 CE |
12223 | esac ;; |
12224 | esac | |
12225 | done | |
12226 | ||
12227 | (set) 2>&1 | | |
12228 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
12229 | *${as_nl}ac_space=\ *) | |
b0322a85 CE |
12230 | # `set' does not quote correctly, so add quotes: double-quote |
12231 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
8d138742 CE |
12232 | sed -n \ |
12233 | "s/'/'\\\\''/g; | |
12234 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12235 | ;; #( | |
12236 | *) | |
12237 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12238 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
12239 | ;; | |
12240 | esac | | |
12241 | sort | |
12242 | ) | | |
12243 | sed ' | |
12244 | /^ac_cv_env_/b end | |
12245 | t clear | |
12246 | :clear | |
12247 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12248 | t end | |
12249 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12250 | :end' >>confcache | |
12251 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12252 | if test -w "$cache_file"; then | |
b0322a85 CE |
12253 | if test "x$cache_file" != "x/dev/null"; then |
12254 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
8d138742 | 12255 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
b0322a85 CE |
12256 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
12257 | cat confcache >"$cache_file" | |
12258 | else | |
12259 | case $cache_file in #( | |
12260 | */* | ?:*) | |
12261 | mv -f confcache "$cache_file"$$ && | |
12262 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
12263 | *) | |
12264 | mv -f confcache "$cache_file" ;; | |
12265 | esac | |
12266 | fi | |
12267 | fi | |
d9898ee8 | 12268 | else |
b0322a85 | 12269 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
8d138742 CE |
12270 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
12271 | fi | |
12272 | fi | |
12273 | rm -f confcache | |
d9898ee8 | 12274 | |
8d138742 CE |
12275 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12276 | # Let make expand exec_prefix. | |
12277 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12278 | ||
12279 | DEFS=-DHAVE_CONFIG_H | |
12280 | ||
12281 | ac_libobjs= | |
12282 | ac_ltlibobjs= | |
12283 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
12284 | # 1. Remove the extension, and $U if already installed. | |
12285 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
12286 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
12287 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
12288 | # will be set to the directory where LIBOBJS objects are built. | |
b0322a85 CE |
12289 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
12290 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
8d138742 CE |
12291 | done |
12292 | LIBOBJS=$ac_libobjs | |
12293 | ||
12294 | LTLIBOBJS=$ac_ltlibobjs | |
12295 | ||
12296 | ||
b0322a85 CE |
12297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
12298 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
12299 | if test -n "$am_sleep_pid"; then | |
12300 | # Hide warnings about reused PIDs. | |
12301 | wait $am_sleep_pid 2>/dev/null | |
12302 | fi | |
12303 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
12304 | $as_echo "done" >&6; } | |
8d138742 CE |
12305 | if test -n "$EXEEXT"; then |
12306 | am__EXEEXT_TRUE= | |
12307 | am__EXEEXT_FALSE='#' | |
12308 | else | |
12309 | am__EXEEXT_TRUE='#' | |
12310 | am__EXEEXT_FALSE= | |
12311 | fi | |
12312 | ||
12313 | if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then | |
b0322a85 CE |
12314 | as_fn_error $? "conditional \"HMACC\" was never defined. |
12315 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
12316 | fi |
12317 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
b0322a85 CE |
12318 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
12319 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
12320 | fi |
12321 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
b0322a85 CE |
12322 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
12323 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
12324 | fi |
12325 | ||
b0322a85 | 12326 | : "${CONFIG_STATUS=./config.status}" |
8d138742 CE |
12327 | ac_write_fail=0 |
12328 | ac_clean_files_save=$ac_clean_files | |
12329 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
b0322a85 | 12330 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8d138742 | 12331 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
b0322a85 CE |
12332 | as_write_fail=0 |
12333 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
8d138742 CE |
12334 | #! $SHELL |
12335 | # Generated by $as_me. | |
12336 | # Run this file to recreate the current configuration. | |
12337 | # Compiler output produced by configure, useful for debugging | |
12338 | # configure, is in config.log if it exists. | |
12339 | ||
12340 | debug=false | |
12341 | ac_cs_recheck=false | |
12342 | ac_cs_silent=false | |
8d138742 | 12343 | |
b0322a85 CE |
12344 | SHELL=\${CONFIG_SHELL-$SHELL} |
12345 | export SHELL | |
12346 | _ASEOF | |
12347 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
12348 | ## -------------------- ## | |
12349 | ## M4sh Initialization. ## | |
12350 | ## -------------------- ## | |
8d138742 CE |
12351 | |
12352 | # Be more Bourne compatible | |
12353 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0322a85 | 12354 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
8d138742 CE |
12355 | emulate sh |
12356 | NULLCMD=: | |
12357 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
12358 | # is contrary to our usage. Disable this feature. | |
12359 | alias -g '${1+"$@"}'='"$@"' | |
12360 | setopt NO_GLOB_SUBST | |
d9898ee8 | 12361 | else |
b0322a85 CE |
12362 | case `(set -o) 2>/dev/null` in #( |
12363 | *posix*) : | |
12364 | set -o posix ;; #( | |
12365 | *) : | |
12366 | ;; | |
8d138742 | 12367 | esac |
d9898ee8 | 12368 | fi |
8d138742 CE |
12369 | |
12370 | ||
8d138742 CE |
12371 | as_nl=' |
12372 | ' | |
12373 | export as_nl | |
12374 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12375 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12376 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12377 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b0322a85 CE |
12378 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
12379 | # but without wasting forks for bash or zsh. | |
12380 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
12381 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12382 | as_echo='print -r --' | |
12383 | as_echo_n='print -rn --' | |
12384 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8d138742 CE |
12385 | as_echo='printf %s\n' |
12386 | as_echo_n='printf %s' | |
12387 | else | |
12388 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12389 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12390 | as_echo_n='/usr/ucb/echo -n' | |
12391 | else | |
12392 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
12393 | as_echo_n_body='eval | |
12394 | arg=$1; | |
b0322a85 | 12395 | case $arg in #( |
8d138742 CE |
12396 | *"$as_nl"*) |
12397 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12398 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12399 | esac; | |
12400 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12401 | ' | |
12402 | export as_echo_n_body | |
12403 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
12404 | fi | |
12405 | export as_echo_body | |
12406 | as_echo='sh -c $as_echo_body as_echo' | |
d9898ee8 | 12407 | fi |
8d138742 CE |
12408 | |
12409 | # The user is always right. | |
12410 | if test "${PATH_SEPARATOR+set}" != set; then | |
12411 | PATH_SEPARATOR=: | |
12412 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12413 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12414 | PATH_SEPARATOR=';' | |
12415 | } | |
d9898ee8 | 12416 | fi |
dd184caf | 12417 | |
dd184caf | 12418 | |
8d138742 CE |
12419 | # IFS |
12420 | # We need space, tab and new line, in precisely that order. Quoting is | |
12421 | # there to prevent editors from complaining about space-tab. | |
12422 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12423 | # splitting by setting IFS to empty value.) | |
12424 | IFS=" "" $as_nl" | |
d9898ee8 | 12425 | |
8d138742 | 12426 | # Find who we are. Look in the path if we contain no directory separator. |
b0322a85 CE |
12427 | as_myself= |
12428 | case $0 in #(( | |
8d138742 CE |
12429 | *[\\/]* ) as_myself=$0 ;; |
12430 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12431 | for as_dir in $PATH | |
12432 | do | |
12433 | IFS=$as_save_IFS | |
12434 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
12435 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
12436 | done | |
8d138742 | 12437 | IFS=$as_save_IFS |
d9898ee8 | 12438 | |
8d138742 | 12439 | ;; |
dd184caf | 12440 | esac |
8d138742 CE |
12441 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
12442 | # in which case we are not to be found in the path. | |
12443 | if test "x$as_myself" = x; then | |
12444 | as_myself=$0 | |
d9898ee8 | 12445 | fi |
8d138742 CE |
12446 | if test ! -f "$as_myself"; then |
12447 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
b0322a85 | 12448 | exit 1 |
d9898ee8 | 12449 | fi |
d9898ee8 | 12450 | |
b0322a85 CE |
12451 | # Unset variables that we do not need and which cause bugs (e.g. in |
12452 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
12453 | # suppresses any "Segmentation fault" message there. '((' could | |
12454 | # trigger a bug in pdksh 5.2.14. | |
12455 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
12456 | do eval test x\${$as_var+set} = xset \ | |
12457 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8d138742 CE |
12458 | done |
12459 | PS1='$ ' | |
12460 | PS2='> ' | |
12461 | PS4='+ ' | |
d9898ee8 | 12462 | |
8d138742 CE |
12463 | # NLS nuisances. |
12464 | LC_ALL=C | |
12465 | export LC_ALL | |
12466 | LANGUAGE=C | |
12467 | export LANGUAGE | |
d9898ee8 | 12468 | |
b0322a85 CE |
12469 | # CDPATH. |
12470 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12471 | ||
12472 | ||
12473 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
12474 | # ---------------------------------------- | |
12475 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
12476 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12477 | # script with STATUS, using 1 if that was 0. | |
12478 | as_fn_error () | |
12479 | { | |
12480 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
12481 | if test "$4"; then | |
12482 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
12483 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
12484 | fi | |
12485 | $as_echo "$as_me: error: $2" >&2 | |
12486 | as_fn_exit $as_status | |
12487 | } # as_fn_error | |
12488 | ||
12489 | ||
12490 | # as_fn_set_status STATUS | |
12491 | # ----------------------- | |
12492 | # Set $? to STATUS, without forking. | |
12493 | as_fn_set_status () | |
12494 | { | |
12495 | return $1 | |
12496 | } # as_fn_set_status | |
12497 | ||
12498 | # as_fn_exit STATUS | |
12499 | # ----------------- | |
12500 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
12501 | as_fn_exit () | |
12502 | { | |
12503 | set +e | |
12504 | as_fn_set_status $1 | |
12505 | exit $1 | |
12506 | } # as_fn_exit | |
12507 | ||
12508 | # as_fn_unset VAR | |
12509 | # --------------- | |
12510 | # Portably unset VAR. | |
12511 | as_fn_unset () | |
12512 | { | |
12513 | { eval $1=; unset $1;} | |
12514 | } | |
12515 | as_unset=as_fn_unset | |
12516 | # as_fn_append VAR VALUE | |
12517 | # ---------------------- | |
12518 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
12519 | # advantage of any shell optimizations that allow amortized linear growth over | |
12520 | # repeated appends, instead of the typical quadratic growth present in naive | |
12521 | # implementations. | |
12522 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
12523 | eval 'as_fn_append () | |
12524 | { | |
12525 | eval $1+=\$2 | |
12526 | }' | |
12527 | else | |
12528 | as_fn_append () | |
12529 | { | |
12530 | eval $1=\$$1\$2 | |
12531 | } | |
12532 | fi # as_fn_append | |
12533 | ||
12534 | # as_fn_arith ARG... | |
12535 | # ------------------ | |
12536 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
12537 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
12538 | # must be portable across $(()) and expr. | |
12539 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
12540 | eval 'as_fn_arith () | |
12541 | { | |
12542 | as_val=$(( $* )) | |
12543 | }' | |
12544 | else | |
12545 | as_fn_arith () | |
12546 | { | |
12547 | as_val=`expr "$@" || test $? -eq 1` | |
12548 | } | |
12549 | fi # as_fn_arith | |
12550 | ||
12551 | ||
8d138742 CE |
12552 | if expr a : '\(a\)' >/dev/null 2>&1 && |
12553 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
12554 | as_expr=expr | |
d9898ee8 | 12555 | else |
8d138742 | 12556 | as_expr=false |
d9898ee8 | 12557 | fi |
dd184caf | 12558 | |
8d138742 CE |
12559 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
12560 | as_basename=basename | |
d9898ee8 | 12561 | else |
8d138742 CE |
12562 | as_basename=false |
12563 | fi | |
d9898ee8 | 12564 | |
b0322a85 CE |
12565 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
12566 | as_dirname=dirname | |
12567 | else | |
12568 | as_dirname=false | |
12569 | fi | |
d9898ee8 | 12570 | |
8d138742 CE |
12571 | as_me=`$as_basename -- "$0" || |
12572 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
12573 | X"$0" : 'X\(//\)$' \| \ | |
12574 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
12575 | $as_echo X/"$0" | | |
12576 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12577 | s//\1/ | |
12578 | q | |
12579 | } | |
12580 | /^X\/\(\/\/\)$/{ | |
12581 | s//\1/ | |
12582 | q | |
12583 | } | |
12584 | /^X\/\(\/\).*/{ | |
12585 | s//\1/ | |
12586 | q | |
12587 | } | |
12588 | s/.*/./; q'` | |
12589 | ||
b0322a85 CE |
12590 | # Avoid depending upon Character Ranges. |
12591 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12592 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12593 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12594 | as_cr_digits='0123456789' | |
12595 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d9898ee8 | 12596 | |
8d138742 | 12597 | ECHO_C= ECHO_N= ECHO_T= |
b0322a85 | 12598 | case `echo -n x` in #((((( |
8d138742 | 12599 | -n*) |
b0322a85 | 12600 | case `echo 'xy\c'` in |
8d138742 | 12601 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b0322a85 CE |
12602 | xy) ECHO_C='\c';; |
12603 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
12604 | ECHO_T=' ';; | |
8d138742 CE |
12605 | esac;; |
12606 | *) | |
12607 | ECHO_N='-n';; | |
12608 | esac | |
b0322a85 CE |
12609 | |
12610 | rm -f conf$$ conf$$.exe conf$$.file | |
12611 | if test -d conf$$.dir; then | |
12612 | rm -f conf$$.dir/conf$$.file | |
8d138742 | 12613 | else |
b0322a85 CE |
12614 | rm -f conf$$.dir |
12615 | mkdir conf$$.dir 2>/dev/null | |
12616 | fi | |
12617 | if (echo >conf$$.file) 2>/dev/null; then | |
12618 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12619 | as_ln_s='ln -s' | |
12620 | # ... but there are two gotchas: | |
12621 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12622 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12623 | # In both cases, we have to default to `cp -pR'. | |
12624 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
12625 | as_ln_s='cp -pR' | |
12626 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
12627 | as_ln_s=ln | |
12628 | else | |
12629 | as_ln_s='cp -pR' | |
12630 | fi | |
12631 | else | |
12632 | as_ln_s='cp -pR' | |
d9898ee8 | 12633 | fi |
b0322a85 CE |
12634 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
12635 | rmdir conf$$.dir 2>/dev/null | |
12636 | ||
12637 | ||
12638 | # as_fn_mkdir_p | |
12639 | # ------------- | |
12640 | # Create "$as_dir" as a directory, including parents if necessary. | |
12641 | as_fn_mkdir_p () | |
12642 | { | |
12643 | ||
12644 | case $as_dir in #( | |
12645 | -*) as_dir=./$as_dir;; | |
12646 | esac | |
12647 | test -d "$as_dir" || eval $as_mkdir_p || { | |
12648 | as_dirs= | |
12649 | while :; do | |
12650 | case $as_dir in #( | |
12651 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12652 | *) as_qdir=$as_dir;; | |
12653 | esac | |
12654 | as_dirs="'$as_qdir' $as_dirs" | |
12655 | as_dir=`$as_dirname -- "$as_dir" || | |
12656 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12657 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12658 | X"$as_dir" : 'X\(//\)$' \| \ | |
12659 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12660 | $as_echo X"$as_dir" | | |
12661 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12662 | s//\1/ | |
12663 | q | |
12664 | } | |
12665 | /^X\(\/\/\)[^/].*/{ | |
12666 | s//\1/ | |
12667 | q | |
12668 | } | |
12669 | /^X\(\/\/\)$/{ | |
12670 | s//\1/ | |
12671 | q | |
12672 | } | |
12673 | /^X\(\/\).*/{ | |
12674 | s//\1/ | |
12675 | q | |
12676 | } | |
12677 | s/.*/./; q'` | |
12678 | test -d "$as_dir" && break | |
12679 | done | |
12680 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12681 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
dd184caf | 12682 | |
d9898ee8 | 12683 | |
b0322a85 | 12684 | } # as_fn_mkdir_p |
8d138742 | 12685 | if mkdir -p . 2>/dev/null; then |
b0322a85 | 12686 | as_mkdir_p='mkdir -p "$as_dir"' |
8d138742 CE |
12687 | else |
12688 | test -d ./-p && rmdir ./-p | |
12689 | as_mkdir_p=false | |
d9898ee8 | 12690 | fi |
dd184caf | 12691 | |
b0322a85 CE |
12692 | |
12693 | # as_fn_executable_p FILE | |
12694 | # ----------------------- | |
12695 | # Test if FILE is an executable regular file. | |
12696 | as_fn_executable_p () | |
12697 | { | |
12698 | test -f "$1" && test -x "$1" | |
12699 | } # as_fn_executable_p | |
12700 | as_test_x='test -x' | |
12701 | as_executable_p=as_fn_executable_p | |
dd184caf | 12702 | |
8d138742 CE |
12703 | # Sed expression to map a string onto a valid CPP name. |
12704 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 12705 | |
8d138742 CE |
12706 | # Sed expression to map a string onto a valid variable name. |
12707 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 12708 | |
dd184caf | 12709 | |
8d138742 | 12710 | exec 6>&1 |
b0322a85 CE |
12711 | ## ----------------------------------- ## |
12712 | ## Main body of $CONFIG_STATUS script. ## | |
12713 | ## ----------------------------------- ## | |
12714 | _ASEOF | |
12715 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
d9898ee8 | 12716 | |
b0322a85 CE |
12717 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12718 | # Save the log message, to keep $0 and so on meaningful, and to | |
8d138742 CE |
12719 | # report actual input values of CONFIG_FILES etc. instead of their |
12720 | # values after options handling. | |
12721 | ac_log=" | |
12722 | This file was extended by libmd5 $as_me 1.21, which was | |
b0322a85 | 12723 | generated by GNU Autoconf 2.69. Invocation command line was |
8d138742 CE |
12724 | |
12725 | CONFIG_FILES = $CONFIG_FILES | |
12726 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12727 | CONFIG_LINKS = $CONFIG_LINKS | |
12728 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12729 | $ $0 $@ | |
12730 | ||
12731 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
12732 | " | |
d9898ee8 | 12733 | |
d9898ee8 | 12734 | _ACEOF |
8d138742 CE |
12735 | |
12736 | case $ac_config_files in *" | |
12737 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
dd184caf | 12738 | esac |
8d138742 CE |
12739 | |
12740 | case $ac_config_headers in *" | |
12741 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
dd184caf | 12742 | esac |
d9898ee8 | 12743 | |
dd184caf | 12744 | |
8d138742 CE |
12745 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12746 | # Files that config.status was made for. | |
12747 | config_files="$ac_config_files" | |
12748 | config_headers="$ac_config_headers" | |
12749 | config_commands="$ac_config_commands" | |
12750 | ||
12751 | _ACEOF | |
12752 | ||
12753 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12754 | ac_cs_usage="\ | |
b0322a85 CE |
12755 | \`$as_me' instantiates files and other configuration actions |
12756 | from templates according to the current configuration. Unless the files | |
12757 | and actions are specified as TAGs, all are instantiated by default. | |
8d138742 | 12758 | |
b0322a85 | 12759 | Usage: $0 [OPTION]... [TAG]... |
8d138742 CE |
12760 | |
12761 | -h, --help print this help, then exit | |
12762 | -V, --version print version number and configuration settings, then exit | |
b0322a85 | 12763 | --config print configuration, then exit |
8d138742 CE |
12764 | -q, --quiet, --silent |
12765 | do not print progress messages | |
12766 | -d, --debug don't remove temporary files | |
12767 | --recheck update $as_me by reconfiguring in the same conditions | |
12768 | --file=FILE[:TEMPLATE] | |
12769 | instantiate the configuration file FILE | |
12770 | --header=FILE[:TEMPLATE] | |
12771 | instantiate the configuration header FILE | |
12772 | ||
12773 | Configuration files: | |
12774 | $config_files | |
12775 | ||
12776 | Configuration headers: | |
12777 | $config_headers | |
12778 | ||
12779 | Configuration commands: | |
12780 | $config_commands | |
dd184caf | 12781 | |
b0322a85 | 12782 | Report bugs to <courier-users@lists.sourceforge.net>." |
dd184caf | 12783 | |
d9898ee8 | 12784 | _ACEOF |
8d138742 | 12785 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b0322a85 | 12786 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
8d138742 CE |
12787 | ac_cs_version="\\ |
12788 | libmd5 config.status 1.21 | |
b0322a85 CE |
12789 | configured by $0, generated by GNU Autoconf 2.69, |
12790 | with options \\"\$ac_cs_config\\" | |
d9898ee8 | 12791 | |
b0322a85 | 12792 | Copyright (C) 2012 Free Software Foundation, Inc. |
8d138742 CE |
12793 | This config.status script is free software; the Free Software Foundation |
12794 | gives unlimited permission to copy, distribute and modify it." | |
d9898ee8 | 12795 | |
8d138742 CE |
12796 | ac_pwd='$ac_pwd' |
12797 | srcdir='$srcdir' | |
12798 | INSTALL='$INSTALL' | |
12799 | MKDIR_P='$MKDIR_P' | |
12800 | AWK='$AWK' | |
12801 | test -n "\$AWK" || AWK=awk | |
d9898ee8 | 12802 | _ACEOF |
d9898ee8 | 12803 | |
8d138742 CE |
12804 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12805 | # The default lists apply if the user does not specify any file. | |
12806 | ac_need_defaults=: | |
12807 | while test $# != 0 | |
12808 | do | |
12809 | case $1 in | |
b0322a85 | 12810 | --*=?*) |
8d138742 CE |
12811 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
12812 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
12813 | ac_shift=: | |
12814 | ;; | |
b0322a85 CE |
12815 | --*=) |
12816 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12817 | ac_optarg= | |
12818 | ac_shift=: | |
12819 | ;; | |
8d138742 CE |
12820 | *) |
12821 | ac_option=$1 | |
12822 | ac_optarg=$2 | |
12823 | ac_shift=shift | |
12824 | ;; | |
12825 | esac | |
dd184caf | 12826 | |
8d138742 CE |
12827 | case $ac_option in |
12828 | # Handling of the options. | |
12829 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
12830 | ac_cs_recheck=: ;; | |
12831 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
12832 | $as_echo "$ac_cs_version"; exit ;; | |
b0322a85 CE |
12833 | --config | --confi | --conf | --con | --co | --c ) |
12834 | $as_echo "$ac_cs_config"; exit ;; | |
8d138742 CE |
12835 | --debug | --debu | --deb | --de | --d | -d ) |
12836 | debug=: ;; | |
12837 | --file | --fil | --fi | --f ) | |
12838 | $ac_shift | |
12839 | case $ac_optarg in | |
12840 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b0322a85 | 12841 | '') as_fn_error $? "missing file argument" ;; |
8d138742 | 12842 | esac |
b0322a85 | 12843 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
8d138742 CE |
12844 | ac_need_defaults=false;; |
12845 | --header | --heade | --head | --hea ) | |
12846 | $ac_shift | |
12847 | case $ac_optarg in | |
12848 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12849 | esac | |
b0322a85 | 12850 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
8d138742 CE |
12851 | ac_need_defaults=false;; |
12852 | --he | --h) | |
12853 | # Conflict between --help and --header | |
b0322a85 CE |
12854 | as_fn_error $? "ambiguous option: \`$1' |
12855 | Try \`$0 --help' for more information.";; | |
8d138742 CE |
12856 | --help | --hel | -h ) |
12857 | $as_echo "$ac_cs_usage"; exit ;; | |
12858 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
12859 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12860 | ac_cs_silent=: ;; | |
12861 | ||
12862 | # This is an error. | |
b0322a85 CE |
12863 | -*) as_fn_error $? "unrecognized option: \`$1' |
12864 | Try \`$0 --help' for more information." ;; | |
8d138742 | 12865 | |
b0322a85 | 12866 | *) as_fn_append ac_config_targets " $1" |
8d138742 CE |
12867 | ac_need_defaults=false ;; |
12868 | ||
12869 | esac | |
12870 | shift | |
12871 | done | |
12872 | ||
12873 | ac_configure_extra_args= | |
12874 | ||
12875 | if $ac_cs_silent; then | |
12876 | exec 6>/dev/null | |
12877 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
d9898ee8 | 12878 | fi |
d9898ee8 | 12879 | |
d9898ee8 | 12880 | _ACEOF |
8d138742 CE |
12881 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12882 | if \$ac_cs_recheck; then | |
b0322a85 | 12883 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8d138742 CE |
12884 | shift |
12885 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
12886 | CONFIG_SHELL='$SHELL' | |
12887 | export CONFIG_SHELL | |
12888 | exec "\$@" | |
12889 | fi | |
d9898ee8 | 12890 | |
d9898ee8 | 12891 | _ACEOF |
8d138742 CE |
12892 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
12893 | exec 5>>config.log | |
d9898ee8 | 12894 | { |
8d138742 CE |
12895 | echo |
12896 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12897 | ## Running $as_me. ## | |
12898 | _ASBOX | |
12899 | $as_echo "$ac_log" | |
12900 | } >&5 | |
d9898ee8 | 12901 | |
d9898ee8 | 12902 | _ACEOF |
8d138742 CE |
12903 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
12904 | # | |
12905 | # INIT-COMMANDS | |
12906 | # | |
12907 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
d9898ee8 | 12908 | |
dd184caf | 12909 | |
8d138742 CE |
12910 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
12911 | # if CDPATH is set. | |
12912 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
d9898ee8 | 12913 | |
8d138742 CE |
12914 | sed_quote_subst='$sed_quote_subst' |
12915 | double_quote_subst='$double_quote_subst' | |
12916 | delay_variable_subst='$delay_variable_subst' | |
b0322a85 CE |
12917 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
12918 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
12919 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
12920 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
12921 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
12922 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
12923 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
12924 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
12925 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
12926 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
12927 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
12928 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
12929 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
12930 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
12931 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
12932 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
12933 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
12934 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
12935 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
12936 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
12937 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
12938 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
12939 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
12940 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
12941 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
12942 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
12943 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
12944 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
12945 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
12946 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
12947 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
12948 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
12949 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
12950 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
12951 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
12952 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
12953 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
12954 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
12955 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
12956 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
12957 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
12958 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
12959 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
12960 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
12961 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
12962 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
12963 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
12964 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
12965 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
12966 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
12967 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
12968 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
12969 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
12970 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
12971 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
12972 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
12973 | 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"`' | |
12974 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
12975 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
12976 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
12977 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
12978 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
12979 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
12980 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
12981 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
12982 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
12983 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
12984 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
12985 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
12986 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
12987 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
12988 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
12989 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
12990 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
12991 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
12992 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
12993 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
12994 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
12995 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
12996 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
12997 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
12998 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
12999 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13000 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13001 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13002 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
13003 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13004 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
13005 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13006 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13007 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13008 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
13009 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
13010 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
13011 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
13012 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13013 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
13014 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
13015 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
13016 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
13017 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
13018 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
13019 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
13020 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
13021 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
13022 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
13023 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
13024 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
13025 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
13026 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
13027 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
13028 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13029 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
13030 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
13031 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
13032 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
13033 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
13034 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13035 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13036 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
13037 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
13038 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
13039 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
13040 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
13041 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
13042 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
13043 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
13044 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
13045 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
13046 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
8d138742 CE |
13047 | |
13048 | LTCC='$LTCC' | |
13049 | LTCFLAGS='$LTCFLAGS' | |
13050 | compiler='$compiler_DEFAULT' | |
13051 | ||
b0322a85 CE |
13052 | # A function that is used when there is no print builtin or printf. |
13053 | func_fallback_echo () | |
13054 | { | |
13055 | eval 'cat <<_LTECHO_EOF | |
13056 | \$1 | |
13057 | _LTECHO_EOF' | |
13058 | } | |
13059 | ||
8d138742 | 13060 | # Quote evaled strings. |
b0322a85 CE |
13061 | for var in SHELL \ |
13062 | ECHO \ | |
13063 | PATH_SEPARATOR \ | |
13064 | SED \ | |
8d138742 CE |
13065 | GREP \ |
13066 | EGREP \ | |
13067 | FGREP \ | |
13068 | LD \ | |
13069 | NM \ | |
13070 | LN_S \ | |
13071 | lt_SP2NL \ | |
13072 | lt_NL2SP \ | |
13073 | reload_flag \ | |
13074 | OBJDUMP \ | |
13075 | deplibs_check_method \ | |
13076 | file_magic_cmd \ | |
b0322a85 CE |
13077 | file_magic_glob \ |
13078 | want_nocaseglob \ | |
13079 | DLLTOOL \ | |
13080 | sharedlib_from_linklib_cmd \ | |
8d138742 CE |
13081 | AR \ |
13082 | AR_FLAGS \ | |
b0322a85 | 13083 | archiver_list_spec \ |
8d138742 CE |
13084 | STRIP \ |
13085 | RANLIB \ | |
13086 | CC \ | |
13087 | CFLAGS \ | |
13088 | compiler \ | |
13089 | lt_cv_sys_global_symbol_pipe \ | |
13090 | lt_cv_sys_global_symbol_to_cdecl \ | |
13091 | lt_cv_sys_global_symbol_to_c_name_address \ | |
13092 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
b0322a85 | 13093 | nm_file_list_spec \ |
8d138742 | 13094 | lt_prog_compiler_no_builtin_flag \ |
8d138742 | 13095 | lt_prog_compiler_pic \ |
b0322a85 | 13096 | lt_prog_compiler_wl \ |
8d138742 CE |
13097 | lt_prog_compiler_static \ |
13098 | lt_cv_prog_compiler_c_o \ | |
13099 | need_locks \ | |
b0322a85 | 13100 | MANIFEST_TOOL \ |
8d138742 CE |
13101 | DSYMUTIL \ |
13102 | NMEDIT \ | |
13103 | LIPO \ | |
13104 | OTOOL \ | |
13105 | OTOOL64 \ | |
13106 | shrext_cmds \ | |
13107 | export_dynamic_flag_spec \ | |
13108 | whole_archive_flag_spec \ | |
13109 | compiler_needs_object \ | |
13110 | with_gnu_ld \ | |
13111 | allow_undefined_flag \ | |
13112 | no_undefined_flag \ | |
13113 | hardcode_libdir_flag_spec \ | |
8d138742 | 13114 | hardcode_libdir_separator \ |
8d138742 CE |
13115 | exclude_expsyms \ |
13116 | include_expsyms \ | |
13117 | file_list_spec \ | |
13118 | variables_saved_for_relink \ | |
13119 | libname_spec \ | |
13120 | library_names_spec \ | |
13121 | soname_spec \ | |
b0322a85 | 13122 | install_override_mode \ |
8d138742 CE |
13123 | finish_eval \ |
13124 | old_striplib \ | |
13125 | striplib; do | |
b0322a85 | 13126 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 13127 | *[\\\\\\\`\\"\\\$]*) |
b0322a85 | 13128 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
8d138742 CE |
13129 | ;; |
13130 | *) | |
13131 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13132 | ;; | |
13133 | esac | |
13134 | done | |
d9898ee8 | 13135 | |
8d138742 CE |
13136 | # Double-quote double-evaled strings. |
13137 | for var in reload_cmds \ | |
13138 | old_postinstall_cmds \ | |
13139 | old_postuninstall_cmds \ | |
13140 | old_archive_cmds \ | |
13141 | extract_expsyms_cmds \ | |
13142 | old_archive_from_new_cmds \ | |
13143 | old_archive_from_expsyms_cmds \ | |
13144 | archive_cmds \ | |
13145 | archive_expsym_cmds \ | |
13146 | module_cmds \ | |
13147 | module_expsym_cmds \ | |
13148 | export_symbols_cmds \ | |
13149 | prelink_cmds \ | |
b0322a85 | 13150 | postlink_cmds \ |
8d138742 CE |
13151 | postinstall_cmds \ |
13152 | postuninstall_cmds \ | |
13153 | finish_cmds \ | |
13154 | sys_lib_search_path_spec \ | |
13155 | sys_lib_dlsearch_path_spec; do | |
b0322a85 | 13156 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 13157 | *[\\\\\\\`\\"\\\$]*) |
b0322a85 | 13158 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
8d138742 CE |
13159 | ;; |
13160 | *) | |
13161 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13162 | ;; | |
13163 | esac | |
13164 | done | |
d9898ee8 | 13165 | |
8d138742 CE |
13166 | ac_aux_dir='$ac_aux_dir' |
13167 | xsi_shell='$xsi_shell' | |
13168 | lt_shell_append='$lt_shell_append' | |
13169 | ||
13170 | # See if we are running on zsh, and set the options which allow our | |
13171 | # commands through without removal of \ escapes INIT. | |
13172 | if test -n "\${ZSH_VERSION+set}" ; then | |
13173 | setopt NO_GLOB_SUBST | |
d9898ee8 | 13174 | fi |
dd184caf | 13175 | |
d9898ee8 | 13176 | |
8d138742 CE |
13177 | PACKAGE='$PACKAGE' |
13178 | VERSION='$VERSION' | |
13179 | TIMESTAMP='$TIMESTAMP' | |
13180 | RM='$RM' | |
13181 | ofile='$ofile' | |
13182 | ||
13183 | ||
dd184caf | 13184 | |
dd184caf | 13185 | |
d9898ee8 | 13186 | _ACEOF |
8d138742 CE |
13187 | |
13188 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13189 | ||
13190 | # Handling of arguments. | |
13191 | for ac_config_target in $ac_config_targets | |
13192 | do | |
13193 | case $ac_config_target in | |
13194 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
13195 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
13196 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
13197 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13198 | ||
b0322a85 | 13199 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
8d138742 CE |
13200 | esac |
13201 | done | |
13202 | ||
13203 | ||
13204 | # If the user did not use the arguments to specify the items to instantiate, | |
13205 | # then the envvar interface is used. Set only those that are not. | |
13206 | # We use the long form for the default assignment because of an extremely | |
13207 | # bizarre bug on SunOS 4.1.3. | |
13208 | if $ac_need_defaults; then | |
13209 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13210 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13211 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13212 | fi | |
13213 | ||
13214 | # Have a temporary directory for convenience. Make it in the build tree | |
13215 | # simply because there is no reason against having it here, and in addition, | |
13216 | # creating and moving files from /tmp can sometimes cause problems. | |
13217 | # Hook for its removal unless debugging. | |
13218 | # Note that there is a small window in which the directory will not be cleaned: | |
13219 | # after its creation but before its name has been assigned to `$tmp'. | |
13220 | $debug || | |
d9898ee8 | 13221 | { |
b0322a85 | 13222 | tmp= ac_tmp= |
8d138742 | 13223 | trap 'exit_status=$? |
b0322a85 CE |
13224 | : "${ac_tmp:=$tmp}" |
13225 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
8d138742 | 13226 | ' 0 |
b0322a85 | 13227 | trap 'as_fn_exit 1' 1 2 13 15 |
8d138742 CE |
13228 | } |
13229 | # Create a (secure) tmp directory for tmp files. | |
d9898ee8 | 13230 | |
8d138742 CE |
13231 | { |
13232 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
b0322a85 | 13233 | test -d "$tmp" |
8d138742 CE |
13234 | } || |
13235 | { | |
13236 | tmp=./conf$$-$RANDOM | |
13237 | (umask 077 && mkdir "$tmp") | |
b0322a85 CE |
13238 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
13239 | ac_tmp=$tmp | |
d9898ee8 | 13240 | |
8d138742 CE |
13241 | # Set up the scripts for CONFIG_FILES section. |
13242 | # No need to generate them if there are no CONFIG_FILES. | |
13243 | # This happens for instance with `./config.status config.h'. | |
13244 | if test -n "$CONFIG_FILES"; then | |
dd184caf | 13245 | |
8d138742 | 13246 | |
b0322a85 CE |
13247 | ac_cr=`echo X | tr X '\015'` |
13248 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
13249 | # But we know of no other shell where ac_cr would be empty at this | |
13250 | # point, so we can use a bashism as a fallback. | |
13251 | if test "x$ac_cr" = x; then | |
13252 | eval ac_cr=\$\'\\r\' | |
13253 | fi | |
8d138742 CE |
13254 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
13255 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
13256 | ac_cs_awk_cr='\\r' | |
d9898ee8 | 13257 | else |
8d138742 CE |
13258 | ac_cs_awk_cr=$ac_cr |
13259 | fi | |
13260 | ||
b0322a85 | 13261 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
d9898ee8 | 13262 | _ACEOF |
8d138742 CE |
13263 | |
13264 | ||
d9898ee8 | 13265 | { |
8d138742 CE |
13266 | echo "cat >conf$$subs.awk <<_ACEOF" && |
13267 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13268 | echo "_ACEOF" | |
13269 | } >conf$$subs.sh || | |
b0322a85 CE |
13270 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
13271 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
8d138742 CE |
13272 | ac_delim='%!_!# ' |
13273 | for ac_last_try in false false false false false :; do | |
13274 | . ./conf$$subs.sh || | |
b0322a85 | 13275 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
d9898ee8 | 13276 | |
8d138742 CE |
13277 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
13278 | if test $ac_delim_n = $ac_delim_num; then | |
13279 | break | |
13280 | elif $ac_last_try; then | |
b0322a85 | 13281 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
d9898ee8 | 13282 | else |
8d138742 CE |
13283 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
13284 | fi | |
13285 | done | |
13286 | rm -f conf$$subs.sh | |
13287 | ||
13288 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 13289 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
8d138742 CE |
13290 | _ACEOF |
13291 | sed -n ' | |
13292 | h | |
13293 | s/^/S["/; s/!.*/"]=/ | |
13294 | p | |
13295 | g | |
13296 | s/^[^!]*!// | |
13297 | :repl | |
13298 | t repl | |
13299 | s/'"$ac_delim"'$// | |
13300 | t delim | |
13301 | :nl | |
13302 | h | |
b0322a85 | 13303 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
13304 | t more1 |
13305 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13306 | p | |
13307 | n | |
13308 | b repl | |
13309 | :more1 | |
13310 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13311 | p | |
13312 | g | |
13313 | s/.\{148\}// | |
13314 | t nl | |
13315 | :delim | |
13316 | h | |
b0322a85 | 13317 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
13318 | t more2 |
13319 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13320 | p | |
13321 | b | |
13322 | :more2 | |
13323 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13324 | p | |
13325 | g | |
13326 | s/.\{148\}// | |
13327 | t delim | |
13328 | ' <conf$$subs.awk | sed ' | |
13329 | /^[^""]/{ | |
13330 | N | |
13331 | s/\n// | |
13332 | } | |
13333 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13334 | rm -f conf$$subs.awk | |
13335 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13336 | _ACAWK | |
b0322a85 | 13337 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
8d138742 CE |
13338 | for (key in S) S_is_set[key] = 1 |
13339 | FS = "\a" | |
d9898ee8 | 13340 | |
d9898ee8 | 13341 | } |
8d138742 CE |
13342 | { |
13343 | line = $ 0 | |
13344 | nfields = split(line, field, "@") | |
13345 | substed = 0 | |
13346 | len = length(field[1]) | |
13347 | for (i = 2; i < nfields; i++) { | |
13348 | key = field[i] | |
13349 | keylen = length(key) | |
13350 | if (S_is_set[key]) { | |
13351 | value = S[key] | |
13352 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13353 | len += length(value) + length(field[++i]) | |
13354 | substed = 1 | |
13355 | } else | |
13356 | len += 1 + keylen | |
13357 | } | |
13358 | ||
13359 | print line | |
13360 | } | |
13361 | ||
13362 | _ACAWK | |
d9898ee8 | 13363 | _ACEOF |
8d138742 CE |
13364 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13365 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13366 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
d9898ee8 | 13367 | else |
8d138742 | 13368 | cat |
b0322a85 CE |
13369 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
13370 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
8d138742 | 13371 | _ACEOF |
d9898ee8 | 13372 | |
b0322a85 CE |
13373 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
13374 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
8d138742 CE |
13375 | # trailing colons and then remove the whole line if VPATH becomes empty |
13376 | # (actually we leave an empty line to preserve line numbers). | |
13377 | if test "x$srcdir" = x.; then | |
b0322a85 CE |
13378 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
13379 | h | |
13380 | s/// | |
13381 | s/^/:/ | |
13382 | s/[ ]*$/:/ | |
13383 | s/:\$(srcdir):/:/g | |
13384 | s/:\${srcdir}:/:/g | |
13385 | s/:@srcdir@:/:/g | |
13386 | s/^:*// | |
8d138742 | 13387 | s/:*$// |
b0322a85 CE |
13388 | x |
13389 | s/\(=[ ]*\).*/\1/ | |
13390 | G | |
13391 | s/\n// | |
8d138742 CE |
13392 | s/^[^=]*=[ ]*$// |
13393 | }' | |
d9898ee8 | 13394 | fi |
dd184caf | 13395 | |
8d138742 CE |
13396 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13397 | fi # test -n "$CONFIG_FILES" | |
dd184caf | 13398 | |
8d138742 CE |
13399 | # Set up the scripts for CONFIG_HEADERS section. |
13400 | # No need to generate them if there are no CONFIG_HEADERS. | |
13401 | # This happens for instance with `./config.status Makefile'. | |
13402 | if test -n "$CONFIG_HEADERS"; then | |
b0322a85 | 13403 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
8d138742 | 13404 | BEGIN { |
d9898ee8 | 13405 | _ACEOF |
13406 | ||
8d138742 CE |
13407 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
13408 | # here-document in config.status, that substitutes the proper values into | |
13409 | # config.h.in to produce config.h. | |
d9898ee8 | 13410 | |
8d138742 CE |
13411 | # Create a delimiter string that does not exist in confdefs.h, to ease |
13412 | # handling of long lines. | |
13413 | ac_delim='%!_!# ' | |
13414 | for ac_last_try in false false :; do | |
b0322a85 CE |
13415 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
13416 | if test -z "$ac_tt"; then | |
8d138742 CE |
13417 | break |
13418 | elif $ac_last_try; then | |
b0322a85 | 13419 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
8d138742 CE |
13420 | else |
13421 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13422 | fi | |
13423 | done | |
13424 | ||
13425 | # For the awk script, D is an array of macro values keyed by name, | |
13426 | # likewise P contains macro parameters if any. Preserve backslash | |
13427 | # newline sequences. | |
13428 | ||
13429 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13430 | sed -n ' | |
13431 | s/.\{148\}/&'"$ac_delim"'/g | |
13432 | t rset | |
13433 | :rset | |
13434 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13435 | t def | |
13436 | d | |
13437 | :def | |
13438 | s/\\$// | |
13439 | t bsnl | |
13440 | s/["\\]/\\&/g | |
13441 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13442 | D["\1"]=" \3"/p | |
13443 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13444 | d | |
13445 | :bsnl | |
13446 | s/["\\]/\\&/g | |
13447 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13448 | D["\1"]=" \3\\\\\\n"\\/p | |
13449 | t cont | |
13450 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13451 | t cont | |
13452 | d | |
13453 | :cont | |
13454 | n | |
13455 | s/.\{148\}/&'"$ac_delim"'/g | |
13456 | t clear | |
13457 | :clear | |
13458 | s/\\$// | |
13459 | t bsnlc | |
13460 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13461 | d | |
13462 | :bsnlc | |
13463 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13464 | b cont | |
13465 | ' <confdefs.h | sed ' | |
13466 | s/'"$ac_delim"'/"\\\ | |
13467 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13468 | ||
13469 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13470 | for (key in D) D_is_set[key] = 1 | |
13471 | FS = "\a" | |
13472 | } | |
13473 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13474 | line = \$ 0 | |
13475 | split(line, arg, " ") | |
13476 | if (arg[1] == "#") { | |
13477 | defundef = arg[2] | |
13478 | mac1 = arg[3] | |
13479 | } else { | |
13480 | defundef = substr(arg[1], 2) | |
13481 | mac1 = arg[2] | |
13482 | } | |
13483 | split(mac1, mac2, "(") #) | |
13484 | macro = mac2[1] | |
13485 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13486 | if (D_is_set[macro]) { | |
13487 | # Preserve the white space surrounding the "#". | |
13488 | print prefix "define", macro P[macro] D[macro] | |
13489 | next | |
13490 | } else { | |
13491 | # Replace #undef with comments. This is necessary, for example, | |
13492 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13493 | # on some systems where configure will not decide to define it. | |
13494 | if (defundef == "undef") { | |
13495 | print "/*", prefix defundef, macro, "*/" | |
13496 | next | |
13497 | } | |
13498 | } | |
13499 | } | |
13500 | { print } | |
13501 | _ACAWK | |
13502 | _ACEOF | |
13503 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
b0322a85 | 13504 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
8d138742 | 13505 | fi # test -n "$CONFIG_HEADERS" |
d9898ee8 | 13506 | |
dd184caf | 13507 | |
8d138742 CE |
13508 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
13509 | shift | |
13510 | for ac_tag | |
13511 | do | |
13512 | case $ac_tag in | |
13513 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13514 | esac | |
13515 | case $ac_mode$ac_tag in | |
13516 | :[FHL]*:*);; | |
b0322a85 | 13517 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
8d138742 CE |
13518 | :[FH]-) ac_tag=-:-;; |
13519 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13520 | esac | |
13521 | ac_save_IFS=$IFS | |
13522 | IFS=: | |
13523 | set x $ac_tag | |
13524 | IFS=$ac_save_IFS | |
13525 | shift | |
13526 | ac_file=$1 | |
13527 | shift | |
d9898ee8 | 13528 | |
8d138742 CE |
13529 | case $ac_mode in |
13530 | :L) ac_source=$1;; | |
13531 | :[FH]) | |
13532 | ac_file_inputs= | |
13533 | for ac_f | |
13534 | do | |
13535 | case $ac_f in | |
b0322a85 | 13536 | -) ac_f="$ac_tmp/stdin";; |
8d138742 CE |
13537 | *) # Look for the file first in the build tree, then in the source tree |
13538 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13539 | # because $ac_f cannot contain `:'. | |
13540 | test -f "$ac_f" || | |
13541 | case $ac_f in | |
13542 | [\\/$]*) false;; | |
13543 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13544 | esac || | |
b0322a85 | 13545 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
8d138742 CE |
13546 | esac |
13547 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
b0322a85 | 13548 | as_fn_append ac_file_inputs " '$ac_f'" |
8d138742 | 13549 | done |
d9898ee8 | 13550 | |
8d138742 CE |
13551 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
13552 | # use $as_me), people would be surprised to read: | |
13553 | # /* config.h. Generated by config.status. */ | |
13554 | configure_input='Generated from '` | |
13555 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13556 | `' by configure.' | |
13557 | if test x"$ac_file" != x-; then | |
13558 | configure_input="$ac_file. $configure_input" | |
b0322a85 | 13559 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
8d138742 CE |
13560 | $as_echo "$as_me: creating $ac_file" >&6;} |
13561 | fi | |
13562 | # Neutralize special characters interpreted by sed in replacement strings. | |
13563 | case $configure_input in #( | |
13564 | *\&* | *\|* | *\\* ) | |
13565 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13566 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13567 | *) ac_sed_conf_input=$configure_input;; | |
13568 | esac | |
dd184caf | 13569 | |
8d138742 | 13570 | case $ac_tag in |
b0322a85 CE |
13571 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
13572 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
8d138742 CE |
13573 | esac |
13574 | ;; | |
13575 | esac | |
dd184caf | 13576 | |
8d138742 CE |
13577 | ac_dir=`$as_dirname -- "$ac_file" || |
13578 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13579 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13580 | X"$ac_file" : 'X\(//\)$' \| \ | |
13581 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
13582 | $as_echo X"$ac_file" | | |
13583 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13584 | s//\1/ | |
13585 | q | |
13586 | } | |
13587 | /^X\(\/\/\)[^/].*/{ | |
13588 | s//\1/ | |
13589 | q | |
13590 | } | |
13591 | /^X\(\/\/\)$/{ | |
13592 | s//\1/ | |
13593 | q | |
13594 | } | |
13595 | /^X\(\/\).*/{ | |
13596 | s//\1/ | |
13597 | q | |
13598 | } | |
13599 | s/.*/./; q'` | |
b0322a85 | 13600 | as_dir="$ac_dir"; as_fn_mkdir_p |
8d138742 | 13601 | ac_builddir=. |
d9898ee8 | 13602 | |
8d138742 CE |
13603 | case "$ac_dir" in |
13604 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13605 | *) | |
13606 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
13607 | # A ".." for each directory in $ac_dir_suffix. | |
13608 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
13609 | case $ac_top_builddir_sub in | |
13610 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13611 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13612 | esac ;; | |
13613 | esac | |
13614 | ac_abs_top_builddir=$ac_pwd | |
13615 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13616 | # for backward compatibility: | |
13617 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 13618 | |
8d138742 CE |
13619 | case $srcdir in |
13620 | .) # We are building in place. | |
13621 | ac_srcdir=. | |
13622 | ac_top_srcdir=$ac_top_builddir_sub | |
13623 | ac_abs_top_srcdir=$ac_pwd ;; | |
13624 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13625 | ac_srcdir=$srcdir$ac_dir_suffix; | |
13626 | ac_top_srcdir=$srcdir | |
13627 | ac_abs_top_srcdir=$srcdir ;; | |
13628 | *) # Relative name. | |
13629 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13630 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13631 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
13632 | esac | |
13633 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
d9898ee8 | 13634 | |
d9898ee8 | 13635 | |
8d138742 CE |
13636 | case $ac_mode in |
13637 | :F) | |
13638 | # | |
13639 | # CONFIG_FILE | |
13640 | # | |
d9898ee8 | 13641 | |
8d138742 CE |
13642 | case $INSTALL in |
13643 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
13644 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
13645 | esac | |
13646 | ac_MKDIR_P=$MKDIR_P | |
13647 | case $MKDIR_P in | |
13648 | [\\/$]* | ?:[\\/]* ) ;; | |
13649 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
13650 | esac | |
d9898ee8 | 13651 | _ACEOF |
d9898ee8 | 13652 | |
8d138742 CE |
13653 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13654 | # If the template does not know about datarootdir, expand it. | |
13655 | # FIXME: This hack should be removed a few years after 2.60. | |
13656 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8d138742 CE |
13657 | ac_sed_dataroot=' |
13658 | /datarootdir/ { | |
13659 | p | |
13660 | q | |
13661 | } | |
13662 | /@datadir@/p | |
13663 | /@docdir@/p | |
13664 | /@infodir@/p | |
13665 | /@localedir@/p | |
b0322a85 | 13666 | /@mandir@/p' |
8d138742 CE |
13667 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
13668 | *datarootdir*) ac_datarootdir_seen=yes;; | |
13669 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
b0322a85 | 13670 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
8d138742 CE |
13671 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
13672 | _ACEOF | |
13673 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13674 | ac_datarootdir_hack=' | |
13675 | s&@datadir@&$datadir&g | |
13676 | s&@docdir@&$docdir&g | |
13677 | s&@infodir@&$infodir&g | |
13678 | s&@localedir@&$localedir&g | |
13679 | s&@mandir@&$mandir&g | |
b0322a85 | 13680 | s&\\\${datarootdir}&$datarootdir&g' ;; |
8d138742 CE |
13681 | esac |
13682 | _ACEOF | |
13683 | ||
13684 | # Neutralize VPATH when `$srcdir' = `.'. | |
13685 | # Shell code in configure.ac might set extrasub. | |
13686 | # FIXME: do we really want to maintain this feature? | |
13687 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13688 | ac_sed_extra="$ac_vpsub | |
13689 | $extrasub | |
13690 | _ACEOF | |
13691 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13692 | :t | |
13693 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13694 | s|@configure_input@|$ac_sed_conf_input|;t t | |
13695 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
13696 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
13697 | s&@srcdir@&$ac_srcdir&;t t | |
13698 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13699 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13700 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13701 | s&@builddir@&$ac_builddir&;t t | |
13702 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13703 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13704 | s&@INSTALL@&$ac_INSTALL&;t t | |
13705 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
13706 | $ac_datarootdir_hack | |
13707 | " | |
b0322a85 CE |
13708 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
13709 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
d9898ee8 | 13710 | |
8d138742 | 13711 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
b0322a85 CE |
13712 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
13713 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
13714 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
13715 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13716 | which seems to be undefined. Please make sure it is defined" >&5 | |
8d138742 | 13717 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b0322a85 | 13718 | which seems to be undefined. Please make sure it is defined" >&2;} |
d9898ee8 | 13719 | |
b0322a85 | 13720 | rm -f "$ac_tmp/stdin" |
8d138742 | 13721 | case $ac_file in |
b0322a85 CE |
13722 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
13723 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
8d138742 | 13724 | esac \ |
b0322a85 | 13725 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8d138742 CE |
13726 | ;; |
13727 | :H) | |
13728 | # | |
13729 | # CONFIG_HEADER | |
13730 | # | |
13731 | if test x"$ac_file" != x-; then | |
13732 | { | |
13733 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
13734 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
13735 | } >"$ac_tmp/config.h" \ | |
13736 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
13737 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
13738 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8d138742 CE |
13739 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
13740 | else | |
13741 | rm -f "$ac_file" | |
b0322a85 CE |
13742 | mv "$ac_tmp/config.h" "$ac_file" \ |
13743 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8d138742 CE |
13744 | fi |
13745 | else | |
13746 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
13747 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
13748 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
8d138742 CE |
13749 | fi |
13750 | # Compute "$ac_file"'s index in $config_headers. | |
13751 | _am_arg="$ac_file" | |
13752 | _am_stamp_count=1 | |
13753 | for _am_header in $config_headers :; do | |
13754 | case $_am_header in | |
13755 | $_am_arg | $_am_arg:* ) | |
13756 | break ;; | |
13757 | * ) | |
13758 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13759 | esac | |
13760 | done | |
13761 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
13762 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13763 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
13764 | X"$_am_arg" : 'X\(//\)$' \| \ | |
13765 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
13766 | $as_echo X"$_am_arg" | | |
13767 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13768 | s//\1/ | |
13769 | q | |
13770 | } | |
13771 | /^X\(\/\/\)[^/].*/{ | |
13772 | s//\1/ | |
13773 | q | |
13774 | } | |
13775 | /^X\(\/\/\)$/{ | |
13776 | s//\1/ | |
13777 | q | |
13778 | } | |
13779 | /^X\(\/\).*/{ | |
13780 | s//\1/ | |
13781 | q | |
13782 | } | |
13783 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
13784 | ;; | |
dd184caf | 13785 | |
b0322a85 | 13786 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8d138742 CE |
13787 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
13788 | ;; | |
13789 | esac | |
d9898ee8 | 13790 | |
d9898ee8 | 13791 | |
8d138742 CE |
13792 | case $ac_file$ac_mode in |
13793 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
b0322a85 | 13794 | # Older Autoconf quotes --file arguments for eval, but not when files |
8d138742 CE |
13795 | # are listed without --file. Let's play safe and only enable the eval |
13796 | # if we detect the quoting. | |
13797 | case $CONFIG_FILES in | |
13798 | *\'*) eval set x "$CONFIG_FILES" ;; | |
13799 | *) set x $CONFIG_FILES ;; | |
13800 | esac | |
13801 | shift | |
13802 | for mf | |
13803 | do | |
13804 | # Strip MF so we end up with the name of the file. | |
13805 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13806 | # Check whether this is an Automake generated Makefile or not. | |
b0322a85 | 13807 | # We used to match only the files named 'Makefile.in', but |
8d138742 CE |
13808 | # some people rename them; so instead we look at the file content. |
13809 | # Grep'ing the first line is not enough: some people post-process | |
13810 | # each Makefile.in and add a new line on top of each file to say so. | |
13811 | # Grep'ing the whole file is not good either: AIX grep has a line | |
13812 | # limit of 2048, but all sed's we know have understand at least 4000. | |
13813 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
13814 | dirpart=`$as_dirname -- "$mf" || | |
13815 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13816 | X"$mf" : 'X\(//\)[^/]' \| \ | |
13817 | X"$mf" : 'X\(//\)$' \| \ | |
13818 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
13819 | $as_echo X"$mf" | | |
13820 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13821 | s//\1/ | |
13822 | q | |
13823 | } | |
13824 | /^X\(\/\/\)[^/].*/{ | |
13825 | s//\1/ | |
13826 | q | |
13827 | } | |
13828 | /^X\(\/\/\)$/{ | |
13829 | s//\1/ | |
13830 | q | |
13831 | } | |
13832 | /^X\(\/\).*/{ | |
13833 | s//\1/ | |
13834 | q | |
13835 | } | |
13836 | s/.*/./; q'` | |
13837 | else | |
13838 | continue | |
13839 | fi | |
13840 | # Extract the definition of DEPDIR, am__include, and am__quote | |
b0322a85 | 13841 | # from the Makefile without running 'make'. |
8d138742 CE |
13842 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
13843 | test -z "$DEPDIR" && continue | |
13844 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
b0322a85 | 13845 | test -z "$am__include" && continue |
8d138742 | 13846 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
8d138742 CE |
13847 | # Find all dependency output files, they are included files with |
13848 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
13849 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
13850 | # expansion. | |
13851 | for file in `sed -n " | |
13852 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
b0322a85 | 13853 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
8d138742 CE |
13854 | # Make sure the directory exists. |
13855 | test -f "$dirpart/$file" && continue | |
13856 | fdir=`$as_dirname -- "$file" || | |
13857 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13858 | X"$file" : 'X\(//\)[^/]' \| \ | |
13859 | X"$file" : 'X\(//\)$' \| \ | |
13860 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
13861 | $as_echo X"$file" | | |
13862 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13863 | s//\1/ | |
13864 | q | |
13865 | } | |
13866 | /^X\(\/\/\)[^/].*/{ | |
13867 | s//\1/ | |
13868 | q | |
13869 | } | |
13870 | /^X\(\/\/\)$/{ | |
13871 | s//\1/ | |
13872 | q | |
13873 | } | |
13874 | /^X\(\/\).*/{ | |
13875 | s//\1/ | |
13876 | q | |
13877 | } | |
13878 | s/.*/./; q'` | |
b0322a85 | 13879 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
8d138742 CE |
13880 | # echo "creating $dirpart/$file" |
13881 | echo '# dummy' > "$dirpart/$file" | |
13882 | done | |
13883 | done | |
13884 | } | |
13885 | ;; | |
13886 | "libtool":C) | |
d9898ee8 | 13887 | |
8d138742 CE |
13888 | # See if we are running on zsh, and set the options which allow our |
13889 | # commands through without removal of \ escapes. | |
13890 | if test -n "${ZSH_VERSION+set}" ; then | |
13891 | setopt NO_GLOB_SUBST | |
13892 | fi | |
d9898ee8 | 13893 | |
8d138742 CE |
13894 | cfgfile="${ofile}T" |
13895 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
13896 | $RM "$cfgfile" | |
d9898ee8 | 13897 | |
8d138742 CE |
13898 | cat <<_LT_EOF >> "$cfgfile" |
13899 | #! $SHELL | |
dd184caf | 13900 | |
8d138742 CE |
13901 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
13902 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
13903 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
13904 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
d9898ee8 | 13905 | # |
8d138742 | 13906 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
b0322a85 CE |
13907 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
13908 | # Foundation, Inc. | |
8d138742 | 13909 | # Written by Gordon Matzigkeit, 1996 |
d9898ee8 | 13910 | # |
8d138742 CE |
13911 | # This file is part of GNU Libtool. |
13912 | # | |
13913 | # GNU Libtool is free software; you can redistribute it and/or | |
13914 | # modify it under the terms of the GNU General Public License as | |
13915 | # published by the Free Software Foundation; either version 2 of | |
13916 | # the License, or (at your option) any later version. | |
13917 | # | |
13918 | # As a special exception to the GNU General Public License, | |
13919 | # if you distribute this file as part of a program or library that | |
13920 | # is built using GNU Libtool, you may include this file under the | |
13921 | # same distribution terms that you use for the rest of that program. | |
13922 | # | |
13923 | # GNU Libtool is distributed in the hope that it will be useful, | |
13924 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13925 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13926 | # GNU General Public License for more details. | |
13927 | # | |
13928 | # You should have received a copy of the GNU General Public License | |
13929 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
13930 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
13931 | # obtained by writing to the Free Software Foundation, Inc., | |
13932 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d9898ee8 | 13933 | |
d9898ee8 | 13934 | |
8d138742 CE |
13935 | # The names of the tagged configurations supported by this script. |
13936 | available_tags="" | |
dd184caf | 13937 | |
8d138742 | 13938 | # ### BEGIN LIBTOOL CONFIG |
d9898ee8 | 13939 | |
8d138742 CE |
13940 | # Which release of libtool.m4 was used? |
13941 | macro_version=$macro_version | |
13942 | macro_revision=$macro_revision | |
d9898ee8 | 13943 | |
8d138742 CE |
13944 | # Whether or not to build shared libraries. |
13945 | build_libtool_libs=$enable_shared | |
d9898ee8 | 13946 | |
8d138742 CE |
13947 | # Whether or not to build static libraries. |
13948 | build_old_libs=$enable_static | |
d9898ee8 | 13949 | |
8d138742 CE |
13950 | # What type of objects to build. |
13951 | pic_mode=$pic_mode | |
d9898ee8 | 13952 | |
8d138742 CE |
13953 | # Whether or not to optimize for fast installation. |
13954 | fast_install=$enable_fast_install | |
d9898ee8 | 13955 | |
b0322a85 CE |
13956 | # Shell to use when invoking shell scripts. |
13957 | SHELL=$lt_SHELL | |
13958 | ||
13959 | # An echo program that protects backslashes. | |
13960 | ECHO=$lt_ECHO | |
13961 | ||
13962 | # The PATH separator for the build system. | |
13963 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
13964 | ||
8d138742 CE |
13965 | # The host system. |
13966 | host_alias=$host_alias | |
13967 | host=$host | |
13968 | host_os=$host_os | |
d9898ee8 | 13969 | |
8d138742 CE |
13970 | # The build system. |
13971 | build_alias=$build_alias | |
13972 | build=$build | |
13973 | build_os=$build_os | |
d9898ee8 | 13974 | |
8d138742 CE |
13975 | # A sed program that does not truncate output. |
13976 | SED=$lt_SED | |
d9898ee8 | 13977 | |
8d138742 CE |
13978 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
13979 | Xsed="\$SED -e 1s/^X//" | |
d9898ee8 | 13980 | |
8d138742 CE |
13981 | # A grep program that handles long lines. |
13982 | GREP=$lt_GREP | |
dd184caf | 13983 | |
8d138742 CE |
13984 | # An ERE matcher. |
13985 | EGREP=$lt_EGREP | |
dd184caf | 13986 | |
8d138742 CE |
13987 | # A literal string matcher. |
13988 | FGREP=$lt_FGREP | |
dd184caf | 13989 | |
8d138742 CE |
13990 | # A BSD- or MS-compatible name lister. |
13991 | NM=$lt_NM | |
dd184caf | 13992 | |
8d138742 CE |
13993 | # Whether we need soft or hard links. |
13994 | LN_S=$lt_LN_S | |
dd184caf | 13995 | |
8d138742 CE |
13996 | # What is the maximum length of a command? |
13997 | max_cmd_len=$max_cmd_len | |
dd184caf | 13998 | |
8d138742 CE |
13999 | # Object file suffix (normally "o"). |
14000 | objext=$ac_objext | |
d9898ee8 | 14001 | |
8d138742 CE |
14002 | # Executable file suffix (normally ""). |
14003 | exeext=$exeext | |
d9898ee8 | 14004 | |
8d138742 CE |
14005 | # whether the shell understands "unset". |
14006 | lt_unset=$lt_unset | |
d9898ee8 | 14007 | |
8d138742 CE |
14008 | # turn spaces into newlines. |
14009 | SP2NL=$lt_lt_SP2NL | |
dd184caf | 14010 | |
8d138742 CE |
14011 | # turn newlines into spaces. |
14012 | NL2SP=$lt_lt_NL2SP | |
dd184caf | 14013 | |
b0322a85 CE |
14014 | # convert \$build file names to \$host format. |
14015 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
14016 | ||
14017 | # convert \$build files to toolchain format. | |
14018 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
dd184caf | 14019 | |
8d138742 CE |
14020 | # An object symbol dumper. |
14021 | OBJDUMP=$lt_OBJDUMP | |
d9898ee8 | 14022 | |
8d138742 CE |
14023 | # Method to check whether dependent libraries are shared objects. |
14024 | deplibs_check_method=$lt_deplibs_check_method | |
d9898ee8 | 14025 | |
b0322a85 | 14026 | # Command to use when deplibs_check_method = "file_magic". |
8d138742 | 14027 | file_magic_cmd=$lt_file_magic_cmd |
d9898ee8 | 14028 | |
b0322a85 CE |
14029 | # How to find potential files when deplibs_check_method = "file_magic". |
14030 | file_magic_glob=$lt_file_magic_glob | |
14031 | ||
14032 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
14033 | want_nocaseglob=$lt_want_nocaseglob | |
14034 | ||
14035 | # DLL creation program. | |
14036 | DLLTOOL=$lt_DLLTOOL | |
14037 | ||
14038 | # Command to associate shared and link libraries. | |
14039 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
14040 | ||
8d138742 CE |
14041 | # The archiver. |
14042 | AR=$lt_AR | |
b0322a85 CE |
14043 | |
14044 | # Flags to create an archive. | |
8d138742 | 14045 | AR_FLAGS=$lt_AR_FLAGS |
d9898ee8 | 14046 | |
b0322a85 CE |
14047 | # How to feed a file listing to the archiver. |
14048 | archiver_list_spec=$lt_archiver_list_spec | |
14049 | ||
8d138742 CE |
14050 | # A symbol stripping program. |
14051 | STRIP=$lt_STRIP | |
d9898ee8 | 14052 | |
8d138742 CE |
14053 | # Commands used to install an old-style archive. |
14054 | RANLIB=$lt_RANLIB | |
14055 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14056 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
d9898ee8 | 14057 | |
b0322a85 CE |
14058 | # Whether to use a lock for old archive extraction. |
14059 | lock_old_archive_extraction=$lock_old_archive_extraction | |
14060 | ||
8d138742 CE |
14061 | # A C compiler. |
14062 | LTCC=$lt_CC | |
d9898ee8 | 14063 | |
8d138742 CE |
14064 | # LTCC compiler flags. |
14065 | LTCFLAGS=$lt_CFLAGS | |
d9898ee8 | 14066 | |
8d138742 CE |
14067 | # Take the output of nm and produce a listing of raw symbols and C names. |
14068 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
d9898ee8 | 14069 | |
8d138742 CE |
14070 | # Transform the output of nm in a proper C declaration. |
14071 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
d9898ee8 | 14072 | |
8d138742 CE |
14073 | # Transform the output of nm in a C name address pair. |
14074 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
d9898ee8 | 14075 | |
8d138742 CE |
14076 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
14077 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
d9898ee8 | 14078 | |
b0322a85 CE |
14079 | # Specify filename containing input files for \$NM. |
14080 | nm_file_list_spec=$lt_nm_file_list_spec | |
d9898ee8 | 14081 | |
b0322a85 CE |
14082 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
14083 | lt_sysroot=$lt_sysroot | |
dd184caf | 14084 | |
b0322a85 CE |
14085 | # The name of the directory that contains temporary libtool files. |
14086 | objdir=$objdir | |
d9898ee8 | 14087 | |
8d138742 CE |
14088 | # Used to examine libraries when file_magic_cmd begins with "file". |
14089 | MAGIC_CMD=$MAGIC_CMD | |
d9898ee8 | 14090 | |
8d138742 CE |
14091 | # Must we lock files when doing compilation? |
14092 | need_locks=$lt_need_locks | |
d9898ee8 | 14093 | |
b0322a85 CE |
14094 | # Manifest tool. |
14095 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
14096 | ||
8d138742 CE |
14097 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
14098 | DSYMUTIL=$lt_DSYMUTIL | |
d9898ee8 | 14099 | |
8d138742 CE |
14100 | # Tool to change global to local symbols on Mac OS X. |
14101 | NMEDIT=$lt_NMEDIT | |
d9898ee8 | 14102 | |
8d138742 CE |
14103 | # Tool to manipulate fat objects and archives on Mac OS X. |
14104 | LIPO=$lt_LIPO | |
d9898ee8 | 14105 | |
8d138742 CE |
14106 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
14107 | OTOOL=$lt_OTOOL | |
d9898ee8 | 14108 | |
8d138742 CE |
14109 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
14110 | OTOOL64=$lt_OTOOL64 | |
d9898ee8 | 14111 | |
8d138742 CE |
14112 | # Old archive suffix (normally "a"). |
14113 | libext=$libext | |
d9898ee8 | 14114 | |
8d138742 CE |
14115 | # Shared library suffix (normally ".so"). |
14116 | shrext_cmds=$lt_shrext_cmds | |
d9898ee8 | 14117 | |
8d138742 CE |
14118 | # The commands to extract the exported symbol list from a shared archive. |
14119 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
d9898ee8 | 14120 | |
8d138742 CE |
14121 | # Variables whose values should be saved in libtool wrapper scripts and |
14122 | # restored at link time. | |
14123 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
dd184caf | 14124 | |
8d138742 CE |
14125 | # Do we need the "lib" prefix for modules? |
14126 | need_lib_prefix=$need_lib_prefix | |
d9898ee8 | 14127 | |
8d138742 CE |
14128 | # Do we need a version for libraries? |
14129 | need_version=$need_version | |
d9898ee8 | 14130 | |
8d138742 CE |
14131 | # Library versioning type. |
14132 | version_type=$version_type | |
d9898ee8 | 14133 | |
8d138742 CE |
14134 | # Shared library runtime path variable. |
14135 | runpath_var=$runpath_var | |
d9898ee8 | 14136 | |
8d138742 CE |
14137 | # Shared library path variable. |
14138 | shlibpath_var=$shlibpath_var | |
d9898ee8 | 14139 | |
8d138742 CE |
14140 | # Is shlibpath searched before the hard-coded library search path? |
14141 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
d9898ee8 | 14142 | |
8d138742 CE |
14143 | # Format of library name prefix. |
14144 | libname_spec=$lt_libname_spec | |
d9898ee8 | 14145 | |
8d138742 CE |
14146 | # List of archive names. First name is the real one, the rest are links. |
14147 | # The last name is the one that the linker finds with -lNAME | |
14148 | library_names_spec=$lt_library_names_spec | |
d9898ee8 | 14149 | |
8d138742 CE |
14150 | # The coded name of the library, if different from the real name. |
14151 | soname_spec=$lt_soname_spec | |
d9898ee8 | 14152 | |
b0322a85 CE |
14153 | # Permission mode override for installation of shared libraries. |
14154 | install_override_mode=$lt_install_override_mode | |
14155 | ||
8d138742 CE |
14156 | # Command to use after installation of a shared archive. |
14157 | postinstall_cmds=$lt_postinstall_cmds | |
d9898ee8 | 14158 | |
8d138742 CE |
14159 | # Command to use after uninstallation of a shared archive. |
14160 | postuninstall_cmds=$lt_postuninstall_cmds | |
d9898ee8 | 14161 | |
8d138742 CE |
14162 | # Commands used to finish a libtool library installation in a directory. |
14163 | finish_cmds=$lt_finish_cmds | |
dd184caf | 14164 | |
8d138742 CE |
14165 | # As "finish_cmds", except a single script fragment to be evaled but |
14166 | # not shown. | |
14167 | finish_eval=$lt_finish_eval | |
d9898ee8 | 14168 | |
8d138742 CE |
14169 | # Whether we should hardcode library paths into libraries. |
14170 | hardcode_into_libs=$hardcode_into_libs | |
d9898ee8 | 14171 | |
8d138742 CE |
14172 | # Compile-time system search path for libraries. |
14173 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
d9898ee8 | 14174 | |
8d138742 CE |
14175 | # Run-time system search path for libraries. |
14176 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
d9898ee8 | 14177 | |
8d138742 CE |
14178 | # Whether dlopen is supported. |
14179 | dlopen_support=$enable_dlopen | |
d9898ee8 | 14180 | |
8d138742 CE |
14181 | # Whether dlopen of programs is supported. |
14182 | dlopen_self=$enable_dlopen_self | |
d9898ee8 | 14183 | |
8d138742 CE |
14184 | # Whether dlopen of statically linked programs is supported. |
14185 | dlopen_self_static=$enable_dlopen_self_static | |
d9898ee8 | 14186 | |
8d138742 CE |
14187 | # Commands to strip libraries. |
14188 | old_striplib=$lt_old_striplib | |
14189 | striplib=$lt_striplib | |
d9898ee8 | 14190 | |
d9898ee8 | 14191 | |
8d138742 CE |
14192 | # The linker used to build libraries. |
14193 | LD=$lt_LD | |
d9898ee8 | 14194 | |
b0322a85 CE |
14195 | # How to create reloadable object files. |
14196 | reload_flag=$lt_reload_flag | |
14197 | reload_cmds=$lt_reload_cmds | |
14198 | ||
8d138742 CE |
14199 | # Commands used to build an old-style archive. |
14200 | old_archive_cmds=$lt_old_archive_cmds | |
d9898ee8 | 14201 | |
8d138742 CE |
14202 | # A language specific compiler. |
14203 | CC=$lt_compiler | |
d9898ee8 | 14204 | |
8d138742 CE |
14205 | # Is the compiler the GNU compiler? |
14206 | with_gcc=$GCC | |
dd184caf | 14207 | |
8d138742 CE |
14208 | # Compiler flag to turn off builtin functions. |
14209 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dd184caf | 14210 | |
8d138742 CE |
14211 | # Additional compiler flags for building library objects. |
14212 | pic_flag=$lt_lt_prog_compiler_pic | |
dd184caf | 14213 | |
b0322a85 CE |
14214 | # How to pass a linker flag through the compiler. |
14215 | wl=$lt_lt_prog_compiler_wl | |
14216 | ||
8d138742 CE |
14217 | # Compiler flag to prevent dynamic linking. |
14218 | link_static_flag=$lt_lt_prog_compiler_static | |
d9898ee8 | 14219 | |
8d138742 CE |
14220 | # Does compiler simultaneously support -c and -o options? |
14221 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
14222 | ||
14223 | # Whether or not to add -lc for building shared libraries. | |
14224 | build_libtool_need_lc=$archive_cmds_need_lc | |
14225 | ||
14226 | # Whether or not to disallow shared libs when runtime libs are static. | |
14227 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
14228 | ||
14229 | # Compiler flag to allow reflexive dlopens. | |
14230 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
d9898ee8 | 14231 | |
8d138742 CE |
14232 | # Compiler flag to generate shared objects directly from archives. |
14233 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
d9898ee8 | 14234 | |
8d138742 CE |
14235 | # Whether the compiler copes with passing no objects directly. |
14236 | compiler_needs_object=$lt_compiler_needs_object | |
d9898ee8 | 14237 | |
8d138742 CE |
14238 | # Create an old-style archive from a shared archive. |
14239 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
d9898ee8 | 14240 | |
8d138742 CE |
14241 | # Create a temporary old-style archive to link instead of a shared archive. |
14242 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
d9898ee8 | 14243 | |
8d138742 CE |
14244 | # Commands used to build a shared archive. |
14245 | archive_cmds=$lt_archive_cmds | |
14246 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
dd184caf | 14247 | |
8d138742 CE |
14248 | # Commands used to build a loadable module if different from building |
14249 | # a shared archive. | |
14250 | module_cmds=$lt_module_cmds | |
14251 | module_expsym_cmds=$lt_module_expsym_cmds | |
dd184caf | 14252 | |
8d138742 CE |
14253 | # Whether we are building with GNU ld or not. |
14254 | with_gnu_ld=$lt_with_gnu_ld | |
dd184caf | 14255 | |
8d138742 CE |
14256 | # Flag that allows shared libraries with undefined symbols to be built. |
14257 | allow_undefined_flag=$lt_allow_undefined_flag | |
dd184caf | 14258 | |
8d138742 CE |
14259 | # Flag that enforces no undefined symbols. |
14260 | no_undefined_flag=$lt_no_undefined_flag | |
d9898ee8 | 14261 | |
8d138742 CE |
14262 | # Flag to hardcode \$libdir into a binary during linking. |
14263 | # This must work even if \$libdir does not exist | |
14264 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
dd184caf | 14265 | |
8d138742 CE |
14266 | # Whether we need a single "-rpath" flag with a separated argument. |
14267 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
dd184caf | 14268 | |
8d138742 CE |
14269 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
14270 | # DIR into the resulting binary. | |
14271 | hardcode_direct=$hardcode_direct | |
dd184caf | 14272 | |
8d138742 CE |
14273 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
14274 | # DIR into the resulting binary and the resulting library dependency is | |
14275 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
14276 | # library is relocated. | |
14277 | hardcode_direct_absolute=$hardcode_direct_absolute | |
dd184caf | 14278 | |
8d138742 CE |
14279 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
14280 | # into the resulting binary. | |
14281 | hardcode_minus_L=$hardcode_minus_L | |
dd184caf | 14282 | |
8d138742 CE |
14283 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
14284 | # into the resulting binary. | |
14285 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
dd184caf | 14286 | |
8d138742 CE |
14287 | # Set to "yes" if building a shared library automatically hardcodes DIR |
14288 | # into the library and all subsequent libraries and executables linked | |
14289 | # against it. | |
14290 | hardcode_automatic=$hardcode_automatic | |
dd184caf | 14291 | |
8d138742 CE |
14292 | # Set to yes if linker adds runtime paths of dependent libraries |
14293 | # to runtime path list. | |
14294 | inherit_rpath=$inherit_rpath | |
dd184caf | 14295 | |
8d138742 CE |
14296 | # Whether libtool must link a program against all its dependency libraries. |
14297 | link_all_deplibs=$link_all_deplibs | |
dd184caf | 14298 | |
8d138742 CE |
14299 | # Set to "yes" if exported symbols are required. |
14300 | always_export_symbols=$always_export_symbols | |
dd184caf | 14301 | |
8d138742 CE |
14302 | # The commands to list exported symbols. |
14303 | export_symbols_cmds=$lt_export_symbols_cmds | |
dd184caf | 14304 | |
8d138742 CE |
14305 | # Symbols that should not be listed in the preloaded symbols. |
14306 | exclude_expsyms=$lt_exclude_expsyms | |
d9898ee8 | 14307 | |
8d138742 CE |
14308 | # Symbols that must always be exported. |
14309 | include_expsyms=$lt_include_expsyms | |
d9898ee8 | 14310 | |
8d138742 CE |
14311 | # Commands necessary for linking programs (against libraries) with templates. |
14312 | prelink_cmds=$lt_prelink_cmds | |
d9898ee8 | 14313 | |
b0322a85 CE |
14314 | # Commands necessary for finishing linking programs. |
14315 | postlink_cmds=$lt_postlink_cmds | |
14316 | ||
8d138742 CE |
14317 | # Specify filename containing input files. |
14318 | file_list_spec=$lt_file_list_spec | |
14319 | ||
14320 | # How to hardcode a shared library path into an executable. | |
14321 | hardcode_action=$hardcode_action | |
d9898ee8 | 14322 | |
8d138742 | 14323 | # ### END LIBTOOL CONFIG |
d9898ee8 | 14324 | |
8d138742 | 14325 | _LT_EOF |
d9898ee8 | 14326 | |
8d138742 CE |
14327 | case $host_os in |
14328 | aix3*) | |
14329 | cat <<\_LT_EOF >> "$cfgfile" | |
14330 | # AIX sometimes has problems with the GCC collect2 program. For some | |
14331 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
14332 | # vanish in a puff of smoke. | |
14333 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
14334 | COLLECT_NAMES= | |
14335 | export COLLECT_NAMES | |
14336 | fi | |
14337 | _LT_EOF | |
14338 | ;; | |
dd184caf | 14339 | esac |
8d138742 CE |
14340 | |
14341 | ||
14342 | ltmain="$ac_aux_dir/ltmain.sh" | |
14343 | ||
14344 | ||
14345 | # We use sed instead of cat because bash on DJGPP gets confused if | |
14346 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
14347 | # text mode, it properly converts lines to CR/LF. This bash problem | |
14348 | # is reportedly fixed, but why not run on old versions too? | |
b0322a85 CE |
14349 | sed '$q' "$ltmain" >> "$cfgfile" \ |
14350 | || (rm -f "$cfgfile"; exit 1) | |
14351 | ||
14352 | if test x"$xsi_shell" = xyes; then | |
14353 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
14354 | func_dirname ()\ | |
14355 | {\ | |
14356 | \ case ${1} in\ | |
14357 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
14358 | \ * ) func_dirname_result="${3}" ;;\ | |
14359 | \ esac\ | |
14360 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
14361 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14362 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14363 | test 0 -eq $? || _lt_function_replace_fail=: | |
14364 | ||
14365 | ||
14366 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
14367 | func_basename ()\ | |
14368 | {\ | |
14369 | \ func_basename_result="${1##*/}"\ | |
14370 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
14371 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14372 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14373 | test 0 -eq $? || _lt_function_replace_fail=: | |
14374 | ||
14375 | ||
14376 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
14377 | func_dirname_and_basename ()\ | |
14378 | {\ | |
14379 | \ case ${1} in\ | |
14380 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
14381 | \ * ) func_dirname_result="${3}" ;;\ | |
14382 | \ esac\ | |
14383 | \ func_basename_result="${1##*/}"\ | |
14384 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
14385 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14386 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14387 | test 0 -eq $? || _lt_function_replace_fail=: | |
14388 | ||
14389 | ||
14390 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
14391 | func_stripname ()\ | |
14392 | {\ | |
14393 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
14394 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
14395 | \ func_stripname_result=${3}\ | |
14396 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
14397 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
14398 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
14399 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14400 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14401 | test 0 -eq $? || _lt_function_replace_fail=: | |
14402 | ||
14403 | ||
14404 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
14405 | func_split_long_opt ()\ | |
14406 | {\ | |
14407 | \ func_split_long_opt_name=${1%%=*}\ | |
14408 | \ func_split_long_opt_arg=${1#*=}\ | |
14409 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
14410 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14411 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14412 | test 0 -eq $? || _lt_function_replace_fail=: | |
14413 | ||
14414 | ||
14415 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
14416 | func_split_short_opt ()\ | |
14417 | {\ | |
14418 | \ func_split_short_opt_arg=${1#??}\ | |
14419 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
14420 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
14421 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14422 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14423 | test 0 -eq $? || _lt_function_replace_fail=: | |
14424 | ||
14425 | ||
14426 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
14427 | func_lo2o ()\ | |
14428 | {\ | |
14429 | \ case ${1} in\ | |
14430 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
14431 | \ *) func_lo2o_result=${1} ;;\ | |
14432 | \ esac\ | |
14433 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
14434 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14435 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14436 | test 0 -eq $? || _lt_function_replace_fail=: | |
14437 | ||
14438 | ||
14439 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
14440 | func_xform ()\ | |
14441 | {\ | |
14442 | func_xform_result=${1%.*}.lo\ | |
14443 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
14444 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14445 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14446 | test 0 -eq $? || _lt_function_replace_fail=: | |
14447 | ||
14448 | ||
14449 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
14450 | func_arith ()\ | |
14451 | {\ | |
14452 | func_arith_result=$(( $* ))\ | |
14453 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
14454 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14455 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14456 | test 0 -eq $? || _lt_function_replace_fail=: | |
14457 | ||
14458 | ||
14459 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
14460 | func_len ()\ | |
14461 | {\ | |
14462 | func_len_result=${#1}\ | |
14463 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
14464 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14465 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14466 | test 0 -eq $? || _lt_function_replace_fail=: | |
14467 | ||
14468 | fi | |
14469 | ||
14470 | if test x"$lt_shell_append" = xyes; then | |
14471 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
14472 | func_append ()\ | |
14473 | {\ | |
14474 | eval "${1}+=\\${2}"\ | |
14475 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
14476 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14477 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14478 | test 0 -eq $? || _lt_function_replace_fail=: | |
14479 | ||
14480 | ||
14481 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
14482 | func_append_quoted ()\ | |
14483 | {\ | |
14484 | \ func_quote_for_eval "${2}"\ | |
14485 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
14486 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
14487 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14488 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14489 | test 0 -eq $? || _lt_function_replace_fail=: | |
14490 | ||
14491 | ||
14492 | # Save a `func_append' function call where possible by direct use of '+=' | |
14493 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
14494 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14495 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14496 | test 0 -eq $? || _lt_function_replace_fail=: | |
14497 | else | |
14498 | # Save a `func_append' function call even when '+=' is not available | |
14499 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
14500 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
14501 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
14502 | test 0 -eq $? || _lt_function_replace_fail=: | |
14503 | fi | |
14504 | ||
14505 | if test x"$_lt_function_replace_fail" = x":"; then | |
14506 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
14507 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
14508 | fi | |
14509 | ||
14510 | ||
14511 | mv -f "$cfgfile" "$ofile" || | |
8d138742 CE |
14512 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
14513 | chmod +x "$ofile" | |
14514 | ||
d9898ee8 | 14515 | ;; |
dd184caf | 14516 | |
d9898ee8 | 14517 | esac |
dd184caf | 14518 | done # for ac_tag |
d9898ee8 | 14519 | |
d9898ee8 | 14520 | |
b0322a85 | 14521 | as_fn_exit 0 |
d9898ee8 | 14522 | _ACEOF |
d9898ee8 | 14523 | ac_clean_files=$ac_clean_files_save |
14524 | ||
8d138742 | 14525 | test $ac_write_fail = 0 || |
b0322a85 | 14526 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
8d138742 | 14527 | |
d9898ee8 | 14528 | |
14529 | # configure is writing to config.log, and then calls config.status. | |
14530 | # config.status does its own redirection, appending to config.log. | |
14531 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14532 | # by configure, so config.status won't be able to write to it; its | |
14533 | # output is simply discarded. So we exec the FD to /dev/null, | |
14534 | # effectively closing config.log, so it can be properly (re)opened and | |
14535 | # appended to by config.status. When coming back to configure, we | |
14536 | # need to make the FD available again. | |
14537 | if test "$no_create" != yes; then | |
14538 | ac_cs_success=: | |
14539 | ac_config_status_args= | |
14540 | test "$silent" = yes && | |
14541 | ac_config_status_args="$ac_config_status_args --quiet" | |
14542 | exec 5>/dev/null | |
14543 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14544 | exec 5>>config.log | |
14545 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14546 | # would make configure fail if this is the last instruction. | |
b0322a85 | 14547 | $ac_cs_success || as_fn_exit 1 |
d9898ee8 | 14548 | fi |
8d138742 | 14549 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
b0322a85 | 14550 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
8d138742 CE |
14551 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
14552 | fi | |
d9898ee8 | 14553 |