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 |
d50284c4 | 640 | LT_SYS_LIBRARY_PATH |
8d138742 CE |
641 | OTOOL64 |
642 | OTOOL | |
643 | LIPO | |
644 | NMEDIT | |
645 | DSYMUTIL | |
b0322a85 | 646 | MANIFEST_TOOL |
8d138742 | 647 | RANLIB |
b0322a85 | 648 | ac_ct_AR |
8d138742 | 649 | AR |
b0322a85 | 650 | DLLTOOL |
8d138742 CE |
651 | OBJDUMP |
652 | NM | |
653 | ac_ct_DUMPBIN | |
654 | DUMPBIN | |
655 | LD | |
656 | FGREP | |
657 | EGREP | |
658 | GREP | |
659 | SED | |
660 | host_os | |
661 | host_vendor | |
662 | host_cpu | |
663 | host | |
664 | build_os | |
665 | build_vendor | |
666 | build_cpu | |
667 | build | |
dd184caf | 668 | LIBTOOL |
8d138742 CE |
669 | am__fastdepCC_FALSE |
670 | am__fastdepCC_TRUE | |
671 | CCDEPMODE | |
b0322a85 | 672 | am__nodep |
8d138742 CE |
673 | AMDEPBACKSLASH |
674 | AMDEP_FALSE | |
675 | AMDEP_TRUE | |
676 | am__quote | |
677 | am__include | |
678 | DEPDIR | |
679 | OBJEXT | |
680 | EXEEXT | |
681 | ac_ct_CC | |
682 | CPPFLAGS | |
683 | LDFLAGS | |
684 | CFLAGS | |
685 | CC | |
686 | LN_S | |
687 | HMACC_FALSE | |
688 | HMACC_TRUE | |
b0322a85 CE |
689 | AM_BACKSLASH |
690 | AM_DEFAULT_VERBOSITY | |
691 | AM_DEFAULT_V | |
692 | AM_V | |
8d138742 CE |
693 | am__untar |
694 | am__tar | |
695 | AMTAR | |
696 | am__leading_dot | |
697 | SET_MAKE | |
698 | AWK | |
699 | mkdir_p | |
700 | MKDIR_P | |
701 | INSTALL_STRIP_PROGRAM | |
702 | STRIP | |
703 | install_sh | |
704 | MAKEINFO | |
705 | AUTOHEADER | |
706 | AUTOMAKE | |
707 | AUTOCONF | |
708 | ACLOCAL | |
709 | VERSION | |
710 | PACKAGE | |
711 | CYGPATH_W | |
712 | am__isrc | |
713 | INSTALL_DATA | |
714 | INSTALL_SCRIPT | |
715 | INSTALL_PROGRAM | |
716 | target_alias | |
717 | host_alias | |
718 | build_alias | |
719 | LIBS | |
720 | ECHO_T | |
721 | ECHO_N | |
722 | ECHO_C | |
723 | DEFS | |
724 | mandir | |
725 | localedir | |
726 | libdir | |
727 | psdir | |
728 | pdfdir | |
729 | dvidir | |
730 | htmldir | |
731 | infodir | |
732 | docdir | |
733 | oldincludedir | |
734 | includedir | |
735 | localstatedir | |
736 | sharedstatedir | |
737 | sysconfdir | |
738 | datadir | |
739 | datarootdir | |
740 | libexecdir | |
741 | sbindir | |
742 | bindir | |
743 | program_transform_name | |
744 | prefix | |
745 | exec_prefix | |
b0322a85 | 746 | PACKAGE_URL |
8d138742 CE |
747 | PACKAGE_BUGREPORT |
748 | PACKAGE_STRING | |
749 | PACKAGE_VERSION | |
750 | PACKAGE_TARNAME | |
751 | PACKAGE_NAME | |
752 | PATH_SEPARATOR | |
753 | SHELL' | |
d9898ee8 | 754 | ac_subst_files='' |
8d138742 CE |
755 | ac_user_opts=' |
756 | enable_option_checking | |
b0322a85 | 757 | enable_silent_rules |
8d138742 CE |
758 | enable_dependency_tracking |
759 | enable_shared | |
760 | enable_static | |
761 | with_pic | |
762 | enable_fast_install | |
d50284c4 | 763 | with_aix_soname |
8d138742 | 764 | with_gnu_ld |
b0322a85 | 765 | with_sysroot |
8d138742 CE |
766 | enable_libtool_lock |
767 | with_int32 | |
b0322a85 | 768 | enable_largefile |
8d138742 | 769 | ' |
dd184caf | 770 | ac_precious_vars='build_alias |
771 | host_alias | |
772 | target_alias | |
773 | CC | |
774 | CFLAGS | |
775 | LDFLAGS | |
776 | LIBS | |
777 | CPPFLAGS | |
d50284c4 | 778 | LT_SYS_LIBRARY_PATH |
8d138742 | 779 | CPP' |
dd184caf | 780 | |
d9898ee8 | 781 | |
782 | # Initialize some variables set by options. | |
783 | ac_init_help= | |
784 | ac_init_version=false | |
8d138742 CE |
785 | ac_unrecognized_opts= |
786 | ac_unrecognized_sep= | |
d9898ee8 | 787 | # The variables have the same names as the options, with |
788 | # dashes changed to underlines. | |
789 | cache_file=/dev/null | |
790 | exec_prefix=NONE | |
791 | no_create= | |
792 | no_recursion= | |
793 | prefix=NONE | |
794 | program_prefix=NONE | |
795 | program_suffix=NONE | |
796 | program_transform_name=s,x,x, | |
797 | silent= | |
798 | site= | |
799 | srcdir= | |
800 | verbose= | |
801 | x_includes=NONE | |
802 | x_libraries=NONE | |
803 | ||
804 | # Installation directory options. | |
805 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
806 | # and all the variables that are supposed to be based on exec_prefix | |
807 | # by default will actually change. | |
808 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
dd184caf | 809 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 | 810 | bindir='${exec_prefix}/bin' |
811 | sbindir='${exec_prefix}/sbin' | |
812 | libexecdir='${exec_prefix}/libexec' | |
dd184caf | 813 | datarootdir='${prefix}/share' |
814 | datadir='${datarootdir}' | |
d9898ee8 | 815 | sysconfdir='${prefix}/etc' |
816 | sharedstatedir='${prefix}/com' | |
817 | localstatedir='${prefix}/var' | |
d9898ee8 | 818 | includedir='${prefix}/include' |
819 | oldincludedir='/usr/include' | |
dd184caf | 820 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
821 | infodir='${datarootdir}/info' | |
822 | htmldir='${docdir}' | |
823 | dvidir='${docdir}' | |
824 | pdfdir='${docdir}' | |
825 | psdir='${docdir}' | |
826 | libdir='${exec_prefix}/lib' | |
827 | localedir='${datarootdir}/locale' | |
828 | mandir='${datarootdir}/man' | |
d9898ee8 | 829 | |
830 | ac_prev= | |
dd184caf | 831 | ac_dashdash= |
d9898ee8 | 832 | for ac_option |
833 | do | |
834 | # If the previous option needs an argument, assign it. | |
835 | if test -n "$ac_prev"; then | |
dd184caf | 836 | eval $ac_prev=\$ac_option |
d9898ee8 | 837 | ac_prev= |
838 | continue | |
839 | fi | |
840 | ||
dd184caf | 841 | case $ac_option in |
b0322a85 CE |
842 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
843 | *=) ac_optarg= ;; | |
844 | *) ac_optarg=yes ;; | |
dd184caf | 845 | esac |
d9898ee8 | 846 | |
847 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
848 | ||
dd184caf | 849 | case $ac_dashdash$ac_option in |
850 | --) | |
851 | ac_dashdash=yes ;; | |
d9898ee8 | 852 | |
853 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
854 | ac_prev=bindir ;; | |
855 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
856 | bindir=$ac_optarg ;; | |
857 | ||
858 | -build | --build | --buil | --bui | --bu) | |
859 | ac_prev=build_alias ;; | |
860 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
861 | build_alias=$ac_optarg ;; | |
862 | ||
863 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
864 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
865 | ac_prev=cache_file ;; | |
866 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
867 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
868 | cache_file=$ac_optarg ;; | |
869 | ||
870 | --config-cache | -C) | |
871 | cache_file=config.cache ;; | |
872 | ||
dd184caf | 873 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 | 874 | ac_prev=datadir ;; |
dd184caf | 875 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 | 876 | datadir=$ac_optarg ;; |
877 | ||
dd184caf | 878 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
879 | | --dataroo | --dataro | --datar) | |
880 | ac_prev=datarootdir ;; | |
881 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
882 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
883 | datarootdir=$ac_optarg ;; | |
884 | ||
d9898ee8 | 885 | -disable-* | --disable-*) |
8d138742 | 886 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d9898ee8 | 887 | # Reject names that are not valid shell variable names. |
8d138742 | 888 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 889 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
890 | ac_useropt_orig=$ac_useropt |
891 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
892 | case $ac_user_opts in | |
893 | *" | |
894 | "enable_$ac_useropt" | |
895 | "*) ;; | |
896 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
897 | ac_unrecognized_sep=', ';; | |
898 | esac | |
899 | eval enable_$ac_useropt=no ;; | |
dd184caf | 900 | |
901 | -docdir | --docdir | --docdi | --doc | --do) | |
902 | ac_prev=docdir ;; | |
903 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
904 | docdir=$ac_optarg ;; | |
905 | ||
906 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
907 | ac_prev=dvidir ;; | |
908 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
909 | dvidir=$ac_optarg ;; | |
d9898ee8 | 910 | |
911 | -enable-* | --enable-*) | |
8d138742 | 912 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d9898ee8 | 913 | # Reject names that are not valid shell variable names. |
8d138742 | 914 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 915 | as_fn_error $? "invalid feature name: $ac_useropt" |
8d138742 CE |
916 | ac_useropt_orig=$ac_useropt |
917 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
918 | case $ac_user_opts in | |
919 | *" | |
920 | "enable_$ac_useropt" | |
921 | "*) ;; | |
922 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
923 | ac_unrecognized_sep=', ';; | |
924 | esac | |
925 | eval enable_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 926 | |
927 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
928 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
929 | | --exec | --exe | --ex) | |
930 | ac_prev=exec_prefix ;; | |
931 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
932 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
933 | | --exec=* | --exe=* | --ex=*) | |
934 | exec_prefix=$ac_optarg ;; | |
935 | ||
936 | -gas | --gas | --ga | --g) | |
937 | # Obsolete; use --with-gas. | |
938 | with_gas=yes ;; | |
939 | ||
940 | -help | --help | --hel | --he | -h) | |
941 | ac_init_help=long ;; | |
942 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
943 | ac_init_help=recursive ;; | |
944 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
945 | ac_init_help=short ;; | |
946 | ||
947 | -host | --host | --hos | --ho) | |
948 | ac_prev=host_alias ;; | |
949 | -host=* | --host=* | --hos=* | --ho=*) | |
950 | host_alias=$ac_optarg ;; | |
951 | ||
dd184caf | 952 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
953 | ac_prev=htmldir ;; | |
954 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
955 | | --ht=*) | |
956 | htmldir=$ac_optarg ;; | |
957 | ||
d9898ee8 | 958 | -includedir | --includedir | --includedi | --included | --include \ |
959 | | --includ | --inclu | --incl | --inc) | |
960 | ac_prev=includedir ;; | |
961 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
962 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
963 | includedir=$ac_optarg ;; | |
964 | ||
965 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
966 | ac_prev=infodir ;; | |
967 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
968 | infodir=$ac_optarg ;; | |
969 | ||
970 | -libdir | --libdir | --libdi | --libd) | |
971 | ac_prev=libdir ;; | |
972 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
973 | libdir=$ac_optarg ;; | |
974 | ||
975 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
976 | | --libexe | --libex | --libe) | |
977 | ac_prev=libexecdir ;; | |
978 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
979 | | --libexe=* | --libex=* | --libe=*) | |
980 | libexecdir=$ac_optarg ;; | |
981 | ||
dd184caf | 982 | -localedir | --localedir | --localedi | --localed | --locale) |
983 | ac_prev=localedir ;; | |
984 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
985 | localedir=$ac_optarg ;; | |
986 | ||
d9898ee8 | 987 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf | 988 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 | 989 | ac_prev=localstatedir ;; |
990 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
dd184caf | 991 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 | 992 | localstatedir=$ac_optarg ;; |
993 | ||
994 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
995 | ac_prev=mandir ;; | |
996 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
997 | mandir=$ac_optarg ;; | |
998 | ||
999 | -nfp | --nfp | --nf) | |
1000 | # Obsolete; use --without-fp. | |
1001 | with_fp=no ;; | |
1002 | ||
1003 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1004 | | --no-cr | --no-c | -n) | |
1005 | no_create=yes ;; | |
1006 | ||
1007 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1008 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1009 | no_recursion=yes ;; | |
1010 | ||
1011 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1012 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1013 | | --oldin | --oldi | --old | --ol | --o) | |
1014 | ac_prev=oldincludedir ;; | |
1015 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1016 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1017 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1018 | oldincludedir=$ac_optarg ;; | |
1019 | ||
1020 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1021 | ac_prev=prefix ;; | |
1022 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1023 | prefix=$ac_optarg ;; | |
1024 | ||
1025 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1026 | | --program-pre | --program-pr | --program-p) | |
1027 | ac_prev=program_prefix ;; | |
1028 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1029 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1030 | program_prefix=$ac_optarg ;; | |
1031 | ||
1032 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1033 | | --program-suf | --program-su | --program-s) | |
1034 | ac_prev=program_suffix ;; | |
1035 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1036 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1037 | program_suffix=$ac_optarg ;; | |
1038 | ||
1039 | -program-transform-name | --program-transform-name \ | |
1040 | | --program-transform-nam | --program-transform-na \ | |
1041 | | --program-transform-n | --program-transform- \ | |
1042 | | --program-transform | --program-transfor \ | |
1043 | | --program-transfo | --program-transf \ | |
1044 | | --program-trans | --program-tran \ | |
1045 | | --progr-tra | --program-tr | --program-t) | |
1046 | ac_prev=program_transform_name ;; | |
1047 | -program-transform-name=* | --program-transform-name=* \ | |
1048 | | --program-transform-nam=* | --program-transform-na=* \ | |
1049 | | --program-transform-n=* | --program-transform-=* \ | |
1050 | | --program-transform=* | --program-transfor=* \ | |
1051 | | --program-transfo=* | --program-transf=* \ | |
1052 | | --program-trans=* | --program-tran=* \ | |
1053 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1054 | program_transform_name=$ac_optarg ;; | |
1055 | ||
dd184caf | 1056 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1057 | ac_prev=pdfdir ;; | |
1058 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1059 | pdfdir=$ac_optarg ;; | |
1060 | ||
1061 | -psdir | --psdir | --psdi | --psd | --ps) | |
1062 | ac_prev=psdir ;; | |
1063 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1064 | psdir=$ac_optarg ;; | |
1065 | ||
d9898ee8 | 1066 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1067 | | -silent | --silent | --silen | --sile | --sil) | |
1068 | silent=yes ;; | |
1069 | ||
1070 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1071 | ac_prev=sbindir ;; | |
1072 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1073 | | --sbi=* | --sb=*) | |
1074 | sbindir=$ac_optarg ;; | |
1075 | ||
1076 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1077 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1078 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1079 | | --sha | --sh) | |
1080 | ac_prev=sharedstatedir ;; | |
1081 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1082 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1083 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1084 | | --sha=* | --sh=*) | |
1085 | sharedstatedir=$ac_optarg ;; | |
1086 | ||
1087 | -site | --site | --sit) | |
1088 | ac_prev=site ;; | |
1089 | -site=* | --site=* | --sit=*) | |
1090 | site=$ac_optarg ;; | |
1091 | ||
1092 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1093 | ac_prev=srcdir ;; | |
1094 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1095 | srcdir=$ac_optarg ;; | |
1096 | ||
1097 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1098 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1099 | ac_prev=sysconfdir ;; | |
1100 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1101 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1102 | sysconfdir=$ac_optarg ;; | |
1103 | ||
1104 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1105 | ac_prev=target_alias ;; | |
1106 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1107 | target_alias=$ac_optarg ;; | |
1108 | ||
1109 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1110 | verbose=yes ;; | |
1111 | ||
1112 | -version | --version | --versio | --versi | --vers | -V) | |
1113 | ac_init_version=: ;; | |
1114 | ||
1115 | -with-* | --with-*) | |
8d138742 | 1116 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d9898ee8 | 1117 | # Reject names that are not valid shell variable names. |
8d138742 | 1118 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1119 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1120 | ac_useropt_orig=$ac_useropt |
1121 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1122 | case $ac_user_opts in | |
1123 | *" | |
1124 | "with_$ac_useropt" | |
1125 | "*) ;; | |
1126 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1127 | ac_unrecognized_sep=', ';; | |
1128 | esac | |
1129 | eval with_$ac_useropt=\$ac_optarg ;; | |
d9898ee8 | 1130 | |
1131 | -without-* | --without-*) | |
8d138742 | 1132 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d9898ee8 | 1133 | # Reject names that are not valid shell variable names. |
8d138742 | 1134 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
b0322a85 | 1135 | as_fn_error $? "invalid package name: $ac_useropt" |
8d138742 CE |
1136 | ac_useropt_orig=$ac_useropt |
1137 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1138 | case $ac_user_opts in | |
1139 | *" | |
1140 | "with_$ac_useropt" | |
1141 | "*) ;; | |
1142 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1143 | ac_unrecognized_sep=', ';; | |
1144 | esac | |
1145 | eval with_$ac_useropt=no ;; | |
d9898ee8 | 1146 | |
1147 | --x) | |
1148 | # Obsolete; use --with-x. | |
1149 | with_x=yes ;; | |
1150 | ||
1151 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1152 | | --x-incl | --x-inc | --x-in | --x-i) | |
1153 | ac_prev=x_includes ;; | |
1154 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1155 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1156 | x_includes=$ac_optarg ;; | |
1157 | ||
1158 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1159 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1160 | ac_prev=x_libraries ;; | |
1161 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1162 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1163 | x_libraries=$ac_optarg ;; | |
1164 | ||
b0322a85 CE |
1165 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1166 | Try \`$0 --help' for more information" | |
d9898ee8 | 1167 | ;; |
1168 | ||
1169 | *=*) | |
1170 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1171 | # Reject names that are not valid shell variable names. | |
b0322a85 CE |
1172 | case $ac_envvar in #( |
1173 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1174 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1175 | esac | |
dd184caf | 1176 | eval $ac_envvar=\$ac_optarg |
d9898ee8 | 1177 | export $ac_envvar ;; |
1178 | ||
1179 | *) | |
1180 | # FIXME: should be removed in autoconf 3.0. | |
8d138742 | 1181 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
d9898ee8 | 1182 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
8d138742 | 1183 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
b0322a85 | 1184 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
d9898ee8 | 1185 | ;; |
1186 | ||
1187 | esac | |
1188 | done | |
1189 | ||
1190 | if test -n "$ac_prev"; then | |
1191 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
b0322a85 | 1192 | as_fn_error $? "missing argument to $ac_option" |
d9898ee8 | 1193 | fi |
1194 | ||
8d138742 CE |
1195 | if test -n "$ac_unrecognized_opts"; then |
1196 | case $enable_option_checking in | |
1197 | no) ;; | |
b0322a85 | 1198 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
8d138742 CE |
1199 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1200 | esac | |
1201 | fi | |
1202 | ||
1203 | # Check all directory arguments for consistency. | |
dd184caf | 1204 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1205 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1206 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1207 | libdir localedir mandir | |
d9898ee8 | 1208 | do |
dd184caf | 1209 | eval ac_val=\$$ac_var |
8d138742 CE |
1210 | # Remove trailing slashes. |
1211 | case $ac_val in | |
1212 | */ ) | |
1213 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1214 | eval $ac_var=\$ac_val;; | |
1215 | esac | |
1216 | # Be sure to have absolute directory names. | |
d9898ee8 | 1217 | case $ac_val in |
dd184caf | 1218 | [\\/$]* | ?:[\\/]* ) continue;; |
1219 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
d9898ee8 | 1220 | esac |
b0322a85 | 1221 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
d9898ee8 | 1222 | done |
1223 | ||
1224 | # There might be people who depend on the old broken behavior: `$host' | |
1225 | # used to hold the argument of --host etc. | |
1226 | # FIXME: To remove some day. | |
1227 | build=$build_alias | |
1228 | host=$host_alias | |
1229 | target=$target_alias | |
1230 | ||
1231 | # FIXME: To remove some day. | |
1232 | if test "x$host_alias" != x; then | |
1233 | if test "x$build_alias" = x; then | |
1234 | cross_compiling=maybe | |
d9898ee8 | 1235 | elif test "x$build_alias" != "x$host_alias"; then |
1236 | cross_compiling=yes | |
1237 | fi | |
1238 | fi | |
1239 | ||
1240 | ac_tool_prefix= | |
1241 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1242 | ||
1243 | test "$silent" = yes && exec 6>/dev/null | |
1244 | ||
1245 | ||
dd184caf | 1246 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1247 | ac_ls_di=`ls -di .` && | |
1248 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
b0322a85 | 1249 | as_fn_error $? "working directory cannot be determined" |
dd184caf | 1250 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
b0322a85 | 1251 | as_fn_error $? "pwd does not report name of working directory" |
dd184caf | 1252 | |
1253 | ||
d9898ee8 | 1254 | # Find the source files, if location was not specified. |
1255 | if test -z "$srcdir"; then | |
1256 | ac_srcdir_defaulted=yes | |
dd184caf | 1257 | # Try the directory containing this script, then the parent directory. |
8d138742 CE |
1258 | ac_confdir=`$as_dirname -- "$as_myself" || |
1259 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1260 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1261 | X"$as_myself" : 'X\(//\)$' \| \ | |
1262 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1263 | $as_echo X"$as_myself" | | |
dd184caf | 1264 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1265 | s//\1/ | |
1266 | q | |
1267 | } | |
1268 | /^X\(\/\/\)[^/].*/{ | |
1269 | s//\1/ | |
1270 | q | |
1271 | } | |
1272 | /^X\(\/\/\)$/{ | |
1273 | s//\1/ | |
1274 | q | |
1275 | } | |
1276 | /^X\(\/\).*/{ | |
1277 | s//\1/ | |
1278 | q | |
1279 | } | |
1280 | s/.*/./; q'` | |
d9898ee8 | 1281 | srcdir=$ac_confdir |
dd184caf | 1282 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 | 1283 | srcdir=.. |
1284 | fi | |
1285 | else | |
1286 | ac_srcdir_defaulted=no | |
1287 | fi | |
dd184caf | 1288 | if test ! -r "$srcdir/$ac_unique_file"; then |
1289 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
b0322a85 | 1290 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
d9898ee8 | 1291 | fi |
dd184caf | 1292 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1293 | ac_abs_confdir=`( | |
b0322a85 | 1294 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
dd184caf | 1295 | pwd)` |
1296 | # When building in place, set srcdir=. | |
1297 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1298 | srcdir=. | |
1299 | fi | |
1300 | # Remove unnecessary trailing slashes from srcdir. | |
1301 | # Double slashes in file names in object file debugging info | |
1302 | # mess up M-x gdb in Emacs. | |
1303 | case $srcdir in | |
1304 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1305 | esac | |
1306 | for ac_var in $ac_precious_vars; do | |
1307 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1308 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1309 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1310 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1311 | done | |
d9898ee8 | 1312 | |
1313 | # | |
1314 | # Report the --help message. | |
1315 | # | |
1316 | if test "$ac_init_help" = "long"; then | |
1317 | # Omit some internal or obsolete options to make the list less imposing. | |
1318 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1319 | cat <<_ACEOF | |
1320 | \`configure' configures libmd5 1.21 to adapt to many kinds of systems. | |
1321 | ||
1322 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1323 | ||
1324 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1325 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1326 | ||
1327 | Defaults for the options are specified in brackets. | |
1328 | ||
1329 | Configuration: | |
1330 | -h, --help display this help and exit | |
1331 | --help=short display options specific to this package | |
1332 | --help=recursive display the short help of all the included packages | |
1333 | -V, --version display version information and exit | |
b0322a85 | 1334 | -q, --quiet, --silent do not print \`checking ...' messages |
d9898ee8 | 1335 | --cache-file=FILE cache test results in FILE [disabled] |
1336 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1337 | -n, --no-create do not create output files | |
1338 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1339 | ||
d9898ee8 | 1340 | Installation directories: |
1341 | --prefix=PREFIX install architecture-independent files in PREFIX | |
8d138742 | 1342 | [$ac_default_prefix] |
d9898ee8 | 1343 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8d138742 | 1344 | [PREFIX] |
d9898ee8 | 1345 | |
1346 | By default, \`make install' will install all the files in | |
1347 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1348 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1349 | for instance \`--prefix=\$HOME'. | |
1350 | ||
1351 | For better control, use the options below. | |
1352 | ||
1353 | Fine tuning of the installation directories: | |
8d138742 CE |
1354 | --bindir=DIR user executables [EPREFIX/bin] |
1355 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1356 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1357 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1358 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1359 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1360 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1361 | --includedir=DIR C header files [PREFIX/include] | |
1362 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1363 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1364 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1365 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1366 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1367 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1368 | --docdir=DIR documentation root [DATAROOTDIR/doc/libmd5] | |
1369 | --htmldir=DIR html documentation [DOCDIR] | |
1370 | --dvidir=DIR dvi documentation [DOCDIR] | |
1371 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1372 | --psdir=DIR ps documentation [DOCDIR] | |
d9898ee8 | 1373 | _ACEOF |
1374 | ||
1375 | cat <<\_ACEOF | |
1376 | ||
1377 | Program names: | |
1378 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1379 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1380 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1381 | ||
1382 | System types: | |
1383 | --build=BUILD configure for building on BUILD [guessed] | |
1384 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1385 | _ACEOF | |
1386 | fi | |
1387 | ||
1388 | if test -n "$ac_init_help"; then | |
1389 | case $ac_init_help in | |
1390 | short | recursive ) echo "Configuration of libmd5 1.21:";; | |
1391 | esac | |
1392 | cat <<\_ACEOF | |
1393 | ||
1394 | Optional Features: | |
8d138742 | 1395 | --disable-option-checking ignore unrecognized --enable/--with options |
d9898ee8 | 1396 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1397 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
b0322a85 CE |
1398 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1399 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1400 | --enable-dependency-tracking | |
1401 | do not reject slow dependency extractors | |
1402 | --disable-dependency-tracking | |
1403 | speeds up one-time build | |
dd184caf | 1404 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1405 | --enable-static[=PKGS] build static libraries [default=yes] | |
d9898ee8 | 1406 | --enable-fast-install[=PKGS] |
1407 | optimize for fast installation [default=yes] | |
1408 | --disable-libtool-lock avoid locking (might break parallel builds) | |
b0322a85 | 1409 | --disable-largefile omit support for large files |
d9898ee8 | 1410 | |
1411 | Optional Packages: | |
1412 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1413 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
b0322a85 | 1414 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
d9898ee8 | 1415 | both] |
d50284c4 CE |
1416 | --with-aix-soname=aix|svr4|both |
1417 | shared library versioning (aka "SONAME") variant to | |
1418 | provide on AIX, [default=aix]. | |
8d138742 | 1419 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
d50284c4 CE |
1420 | --with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
1421 | compiler's sysroot if not specified). | |
d9898ee8 | 1422 | --with-int32='type' use 'type' for an unsigned 32 bit integer type |
1423 | ( default is 'unsigned') | |
1424 | ||
1425 | Some influential environment variables: | |
1426 | CC C compiler command | |
1427 | CFLAGS C compiler flags | |
1428 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1429 | nonstandard directory <lib dir> | |
dd184caf | 1430 | LIBS libraries to pass to the linker, e.g. -l<library> |
b0322a85 | 1431 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
dd184caf | 1432 | you have headers in a nonstandard directory <include dir> |
d50284c4 CE |
1433 | LT_SYS_LIBRARY_PATH |
1434 | User-defined run-time library search path. | |
d9898ee8 | 1435 | CPP C preprocessor |
d9898ee8 | 1436 | |
1437 | Use these variables to override the choices made by `configure' or to help | |
1438 | it to find libraries and programs with nonstandard names/locations. | |
1439 | ||
1440 | Report bugs to <courier-users@lists.sourceforge.net>. | |
1441 | _ACEOF | |
dd184caf | 1442 | ac_status=$? |
d9898ee8 | 1443 | fi |
1444 | ||
1445 | if test "$ac_init_help" = "recursive"; then | |
1446 | # If there are subdirs, report their specific --help. | |
d9898ee8 | 1447 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
8d138742 CE |
1448 | test -d "$ac_dir" || |
1449 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1450 | continue | |
d9898ee8 | 1451 | ac_builddir=. |
1452 | ||
dd184caf | 1453 | case "$ac_dir" in |
1454 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1455 | *) | |
8d138742 | 1456 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
dd184caf | 1457 | # A ".." for each directory in $ac_dir_suffix. |
8d138742 | 1458 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
dd184caf | 1459 | case $ac_top_builddir_sub in |
1460 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1461 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1462 | esac ;; | |
1463 | esac | |
1464 | ac_abs_top_builddir=$ac_pwd | |
1465 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1466 | # for backward compatibility: | |
1467 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 1468 | |
1469 | case $srcdir in | |
dd184caf | 1470 | .) # We are building in place. |
d9898ee8 | 1471 | ac_srcdir=. |
dd184caf | 1472 | ac_top_srcdir=$ac_top_builddir_sub |
1473 | ac_abs_top_srcdir=$ac_pwd ;; | |
1474 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
d9898ee8 | 1475 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf | 1476 | ac_top_srcdir=$srcdir |
1477 | ac_abs_top_srcdir=$srcdir ;; | |
1478 | *) # Relative name. | |
1479 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1480 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1481 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
d9898ee8 | 1482 | esac |
dd184caf | 1483 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1484 | ||
1485 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1486 | # Check for guested configure. | |
1487 | if test -f "$ac_srcdir/configure.gnu"; then | |
1488 | echo && | |
1489 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1490 | elif test -f "$ac_srcdir/configure"; then | |
1491 | echo && | |
1492 | $SHELL "$ac_srcdir/configure" --help=recursive | |
d9898ee8 | 1493 | else |
8d138742 | 1494 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf | 1495 | fi || ac_status=$? |
1496 | cd "$ac_pwd" || { ac_status=$?; break; } | |
d9898ee8 | 1497 | done |
1498 | fi | |
1499 | ||
dd184caf | 1500 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 | 1501 | if $ac_init_version; then |
1502 | cat <<\_ACEOF | |
1503 | libmd5 configure 1.21 | |
b0322a85 | 1504 | generated by GNU Autoconf 2.69 |
d9898ee8 | 1505 | |
b0322a85 | 1506 | Copyright (C) 2012 Free Software Foundation, Inc. |
d9898ee8 | 1507 | This configure script is free software; the Free Software Foundation |
1508 | gives unlimited permission to copy, distribute and modify it. | |
1509 | _ACEOF | |
dd184caf | 1510 | exit |
d9898ee8 | 1511 | fi |
d9898ee8 | 1512 | |
b0322a85 CE |
1513 | ## ------------------------ ## |
1514 | ## Autoconf initialization. ## | |
1515 | ## ------------------------ ## | |
d9898ee8 | 1516 | |
b0322a85 CE |
1517 | # ac_fn_c_try_compile LINENO |
1518 | # -------------------------- | |
1519 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1520 | ac_fn_c_try_compile () | |
d9898ee8 | 1521 | { |
b0322a85 CE |
1522 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1523 | rm -f conftest.$ac_objext | |
1524 | if { { ac_try="$ac_compile" | |
1525 | case "(($ac_try" in | |
1526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1527 | *) ac_try_echo=$ac_try;; | |
1528 | esac | |
1529 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1530 | $as_echo "$ac_try_echo"; } >&5 | |
1531 | (eval "$ac_compile") 2>conftest.err | |
1532 | ac_status=$? | |
1533 | if test -s conftest.err; then | |
1534 | grep -v '^ *+' conftest.err >conftest.er1 | |
1535 | cat conftest.er1 >&5 | |
1536 | mv -f conftest.er1 conftest.err | |
1537 | fi | |
1538 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1539 | test $ac_status = 0; } && { | |
1540 | test -z "$ac_c_werror_flag" || | |
1541 | test ! -s conftest.err | |
1542 | } && test -s conftest.$ac_objext; then : | |
1543 | ac_retval=0 | |
1544 | else | |
1545 | $as_echo "$as_me: failed program was:" >&5 | |
1546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 1547 | |
b0322a85 CE |
1548 | ac_retval=1 |
1549 | fi | |
1550 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1551 | as_fn_set_status $ac_retval | |
d9898ee8 | 1552 | |
b0322a85 | 1553 | } # ac_fn_c_try_compile |
d9898ee8 | 1554 | |
b0322a85 CE |
1555 | # ac_fn_c_try_link LINENO |
1556 | # ----------------------- | |
1557 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1558 | ac_fn_c_try_link () | |
1559 | { | |
1560 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1561 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1562 | if { { ac_try="$ac_link" | |
1563 | case "(($ac_try" in | |
1564 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1565 | *) ac_try_echo=$ac_try;; | |
1566 | esac | |
1567 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1568 | $as_echo "$ac_try_echo"; } >&5 | |
1569 | (eval "$ac_link") 2>conftest.err | |
1570 | ac_status=$? | |
1571 | if test -s conftest.err; then | |
1572 | grep -v '^ *+' conftest.err >conftest.er1 | |
1573 | cat conftest.er1 >&5 | |
1574 | mv -f conftest.er1 conftest.err | |
1575 | fi | |
1576 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1577 | test $ac_status = 0; } && { | |
1578 | test -z "$ac_c_werror_flag" || | |
1579 | test ! -s conftest.err | |
1580 | } && test -s conftest$ac_exeext && { | |
1581 | test "$cross_compiling" = yes || | |
1582 | test -x conftest$ac_exeext | |
1583 | }; then : | |
1584 | ac_retval=0 | |
1585 | else | |
1586 | $as_echo "$as_me: failed program was:" >&5 | |
1587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 1588 | |
b0322a85 CE |
1589 | ac_retval=1 |
1590 | fi | |
1591 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1592 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1593 | # interfere with the next link command; also delete a directory that is | |
1594 | # left behind by Apple's compiler. We do this before executing the actions. | |
1595 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1596 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1597 | as_fn_set_status $ac_retval | |
d9898ee8 | 1598 | |
b0322a85 | 1599 | } # ac_fn_c_try_link |
d9898ee8 | 1600 | |
b0322a85 CE |
1601 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1602 | # ------------------------------------------------------- | |
1603 | # Tests whether HEADER exists and can be compiled using the include files in | |
1604 | # INCLUDES, setting the cache variable VAR accordingly. | |
1605 | ac_fn_c_check_header_compile () | |
1606 | { | |
1607 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1609 | $as_echo_n "checking for $2... " >&6; } | |
1610 | if eval \${$3+:} false; then : | |
1611 | $as_echo_n "(cached) " >&6 | |
1612 | else | |
1613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1614 | /* end confdefs.h. */ | |
1615 | $4 | |
1616 | #include <$2> | |
d9898ee8 | 1617 | _ACEOF |
b0322a85 CE |
1618 | if ac_fn_c_try_compile "$LINENO"; then : |
1619 | eval "$3=yes" | |
1620 | else | |
1621 | eval "$3=no" | |
1622 | fi | |
1623 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1624 | fi | |
1625 | eval ac_res=\$$3 | |
1626 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1627 | $as_echo "$ac_res" >&6; } | |
1628 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
d9898ee8 | 1629 | |
b0322a85 | 1630 | } # ac_fn_c_check_header_compile |
d9898ee8 | 1631 | |
b0322a85 CE |
1632 | # ac_fn_c_try_cpp LINENO |
1633 | # ---------------------- | |
1634 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1635 | ac_fn_c_try_cpp () | |
1636 | { | |
1637 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1638 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1639 | case "(($ac_try" in | |
1640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1641 | *) ac_try_echo=$ac_try;; | |
1642 | esac | |
1643 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1644 | $as_echo "$ac_try_echo"; } >&5 | |
1645 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1646 | ac_status=$? | |
1647 | if test -s conftest.err; then | |
1648 | grep -v '^ *+' conftest.err >conftest.er1 | |
1649 | cat conftest.er1 >&5 | |
1650 | mv -f conftest.er1 conftest.err | |
1651 | fi | |
1652 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1653 | test $ac_status = 0; } > conftest.i && { | |
1654 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1655 | test ! -s conftest.err | |
1656 | }; then : | |
1657 | ac_retval=0 | |
1658 | else | |
1659 | $as_echo "$as_me: failed program was:" >&5 | |
1660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 1661 | |
b0322a85 CE |
1662 | ac_retval=1 |
1663 | fi | |
1664 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1665 | as_fn_set_status $ac_retval | |
d9898ee8 | 1666 | |
b0322a85 | 1667 | } # ac_fn_c_try_cpp |
d9898ee8 | 1668 | |
b0322a85 CE |
1669 | # ac_fn_c_try_run LINENO |
1670 | # ---------------------- | |
1671 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1672 | # that executables *can* be run. | |
1673 | ac_fn_c_try_run () | |
1674 | { | |
1675 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1676 | if { { ac_try="$ac_link" | |
1677 | case "(($ac_try" in | |
1678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1679 | *) ac_try_echo=$ac_try;; | |
1680 | esac | |
1681 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1682 | $as_echo "$ac_try_echo"; } >&5 | |
1683 | (eval "$ac_link") 2>&5 | |
1684 | ac_status=$? | |
1685 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1686 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1687 | { { case "(($ac_try" in | |
1688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1689 | *) ac_try_echo=$ac_try;; | |
1690 | esac | |
1691 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1692 | $as_echo "$ac_try_echo"; } >&5 | |
1693 | (eval "$ac_try") 2>&5 | |
1694 | ac_status=$? | |
1695 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1696 | test $ac_status = 0; }; }; then : | |
1697 | ac_retval=0 | |
1698 | else | |
1699 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1700 | $as_echo "$as_me: failed program was:" >&5 | |
1701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d9898ee8 | 1702 | |
b0322a85 CE |
1703 | ac_retval=$ac_status |
1704 | fi | |
1705 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1706 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1707 | as_fn_set_status $ac_retval | |
d9898ee8 | 1708 | |
b0322a85 | 1709 | } # ac_fn_c_try_run |
d9898ee8 | 1710 | |
b0322a85 CE |
1711 | # ac_fn_c_check_func LINENO FUNC VAR |
1712 | # ---------------------------------- | |
1713 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1714 | ac_fn_c_check_func () | |
1715 | { | |
1716 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1718 | $as_echo_n "checking for $2... " >&6; } | |
1719 | if eval \${$3+:} false; then : | |
1720 | $as_echo_n "(cached) " >&6 | |
1721 | else | |
1722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1723 | /* end confdefs.h. */ | |
1724 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1725 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1726 | #define $2 innocuous_$2 | |
d9898ee8 | 1727 | |
b0322a85 CE |
1728 | /* System header to define __stub macros and hopefully few prototypes, |
1729 | which can conflict with char $2 (); below. | |
1730 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1731 | <limits.h> exists even on freestanding compilers. */ | |
d9898ee8 | 1732 | |
b0322a85 CE |
1733 | #ifdef __STDC__ |
1734 | # include <limits.h> | |
1735 | #else | |
1736 | # include <assert.h> | |
1737 | #endif | |
d9898ee8 | 1738 | |
b0322a85 | 1739 | #undef $2 |
d9898ee8 | 1740 | |
b0322a85 CE |
1741 | /* Override any GCC internal prototype to avoid an error. |
1742 | Use char because int might match the return type of a GCC | |
1743 | builtin and then its argument prototype would still apply. */ | |
1744 | #ifdef __cplusplus | |
1745 | extern "C" | |
1746 | #endif | |
1747 | char $2 (); | |
1748 | /* The GNU C library defines this for functions which it implements | |
1749 | to always fail with ENOSYS. Some functions are actually named | |
1750 | something starting with __ and the normal name is an alias. */ | |
1751 | #if defined __stub_$2 || defined __stub___$2 | |
1752 | choke me | |
1753 | #endif | |
d9898ee8 | 1754 | |
b0322a85 CE |
1755 | int |
1756 | main () | |
1757 | { | |
1758 | return $2 (); | |
1759 | ; | |
1760 | return 0; | |
1761 | } | |
d9898ee8 | 1762 | _ACEOF |
b0322a85 CE |
1763 | if ac_fn_c_try_link "$LINENO"; then : |
1764 | eval "$3=yes" | |
1765 | else | |
1766 | eval "$3=no" | |
1767 | fi | |
1768 | rm -f core conftest.err conftest.$ac_objext \ | |
1769 | conftest$ac_exeext conftest.$ac_ext | |
1770 | fi | |
1771 | eval ac_res=\$$3 | |
1772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1773 | $as_echo "$ac_res" >&6; } | |
1774 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
d9898ee8 | 1775 | |
b0322a85 | 1776 | } # ac_fn_c_check_func |
d9898ee8 | 1777 | |
b0322a85 CE |
1778 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1779 | # ------------------------------------------------------- | |
1780 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1781 | # the include files in INCLUDES and setting the cache variable VAR | |
1782 | # accordingly. | |
1783 | ac_fn_c_check_header_mongrel () | |
1784 | { | |
1785 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1786 | if eval \${$3+:} false; then : | |
1787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1788 | $as_echo_n "checking for $2... " >&6; } | |
1789 | if eval \${$3+:} false; then : | |
1790 | $as_echo_n "(cached) " >&6 | |
1791 | fi | |
1792 | eval ac_res=\$$3 | |
1793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1794 | $as_echo "$ac_res" >&6; } | |
1795 | else | |
1796 | # Is the header compilable? | |
1797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1798 | $as_echo_n "checking $2 usability... " >&6; } | |
1799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1800 | /* end confdefs.h. */ | |
1801 | $4 | |
1802 | #include <$2> | |
d9898ee8 | 1803 | _ACEOF |
b0322a85 CE |
1804 | if ac_fn_c_try_compile "$LINENO"; then : |
1805 | ac_header_compiler=yes | |
dd184caf | 1806 | else |
b0322a85 | 1807 | ac_header_compiler=no |
d9898ee8 | 1808 | fi |
b0322a85 CE |
1809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1811 | $as_echo "$ac_header_compiler" >&6; } | |
d9898ee8 | 1812 | |
b0322a85 CE |
1813 | # Is the header present? |
1814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1815 | $as_echo_n "checking $2 presence... " >&6; } | |
1816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1817 | /* end confdefs.h. */ | |
1818 | #include <$2> | |
1819 | _ACEOF | |
1820 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1821 | ac_header_preproc=yes | |
d9898ee8 | 1822 | else |
b0322a85 | 1823 | ac_header_preproc=no |
d9898ee8 | 1824 | fi |
b0322a85 CE |
1825 | rm -f conftest.err conftest.i conftest.$ac_ext |
1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1827 | $as_echo "$ac_header_preproc" >&6; } | |
d9898ee8 | 1828 | |
b0322a85 CE |
1829 | # So? What about this header? |
1830 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1831 | yes:no: ) | |
1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1833 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1834 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1835 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1836 | ;; | |
1837 | no:yes:* ) | |
1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1839 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1840 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1841 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1842 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1843 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1845 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1846 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1847 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1848 | ( $as_echo "## -------------------------------------------------- ## | |
1849 | ## Report this to courier-users@lists.sourceforge.net ## | |
1850 | ## -------------------------------------------------- ##" | |
1851 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1852 | ;; | |
1853 | esac | |
1854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1855 | $as_echo_n "checking for $2... " >&6; } | |
1856 | if eval \${$3+:} false; then : | |
1857 | $as_echo_n "(cached) " >&6 | |
1858 | else | |
1859 | eval "$3=\$ac_header_compiler" | |
d9898ee8 | 1860 | fi |
b0322a85 CE |
1861 | eval ac_res=\$$3 |
1862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1863 | $as_echo "$ac_res" >&6; } | |
1864 | fi | |
1865 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
d9898ee8 | 1866 | |
b0322a85 | 1867 | } # ac_fn_c_check_header_mongrel |
d9898ee8 | 1868 | |
b0322a85 CE |
1869 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
1870 | # -------------------------------------------- | |
1871 | # Tries to find the compile-time value of EXPR in a program that includes | |
1872 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1873 | # computed | |
1874 | ac_fn_c_compute_int () | |
1875 | { | |
1876 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1877 | if test "$cross_compiling" = yes; then | |
1878 | # Depending upon the size, compute the lo and hi bounds. | |
1879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1880 | /* end confdefs.h. */ | |
1881 | $4 | |
1882 | int | |
1883 | main () | |
1884 | { | |
1885 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
1886 | test_array [0] = 0; | |
1887 | return test_array [0]; | |
d9898ee8 | 1888 | |
b0322a85 CE |
1889 | ; |
1890 | return 0; | |
1891 | } | |
1892 | _ACEOF | |
1893 | if ac_fn_c_try_compile "$LINENO"; then : | |
1894 | ac_lo=0 ac_mid=0 | |
1895 | while :; do | |
1896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1897 | /* end confdefs.h. */ | |
1898 | $4 | |
1899 | int | |
1900 | main () | |
1901 | { | |
1902 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1903 | test_array [0] = 0; | |
1904 | return test_array [0]; | |
d9898ee8 | 1905 | |
b0322a85 CE |
1906 | ; |
1907 | return 0; | |
1908 | } | |
1909 | _ACEOF | |
1910 | if ac_fn_c_try_compile "$LINENO"; then : | |
1911 | ac_hi=$ac_mid; break | |
1912 | else | |
1913 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val | |
1914 | if test $ac_lo -le $ac_mid; then | |
1915 | ac_lo= ac_hi= | |
1916 | break | |
1917 | fi | |
1918 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
1919 | fi | |
1920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1921 | done | |
1922 | else | |
1923 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1924 | /* end confdefs.h. */ | |
1925 | $4 | |
1926 | int | |
1927 | main () | |
1928 | { | |
1929 | static int test_array [1 - 2 * !(($2) < 0)]; | |
1930 | test_array [0] = 0; | |
1931 | return test_array [0]; | |
d9898ee8 | 1932 | |
b0322a85 CE |
1933 | ; |
1934 | return 0; | |
1935 | } | |
1936 | _ACEOF | |
1937 | if ac_fn_c_try_compile "$LINENO"; then : | |
1938 | ac_hi=-1 ac_mid=-1 | |
1939 | while :; do | |
1940 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1941 | /* end confdefs.h. */ | |
1942 | $4 | |
1943 | int | |
1944 | main () | |
1945 | { | |
1946 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
1947 | test_array [0] = 0; | |
1948 | return test_array [0]; | |
d9898ee8 | 1949 | |
b0322a85 CE |
1950 | ; |
1951 | return 0; | |
1952 | } | |
1953 | _ACEOF | |
1954 | if ac_fn_c_try_compile "$LINENO"; then : | |
1955 | ac_lo=$ac_mid; break | |
1956 | else | |
1957 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
1958 | if test $ac_mid -le $ac_hi; then | |
1959 | ac_lo= ac_hi= | |
1960 | break | |
1961 | fi | |
1962 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
1963 | fi | |
1964 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1965 | done | |
1966 | else | |
1967 | ac_lo= ac_hi= | |
1968 | fi | |
1969 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1970 | fi | |
1971 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1972 | # Binary search between lo and hi bounds. | |
1973 | while test "x$ac_lo" != "x$ac_hi"; do | |
1974 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
1975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1976 | /* end confdefs.h. */ | |
1977 | $4 | |
1978 | int | |
1979 | main () | |
1980 | { | |
1981 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
1982 | test_array [0] = 0; | |
1983 | return test_array [0]; | |
d9898ee8 | 1984 | |
b0322a85 CE |
1985 | ; |
1986 | return 0; | |
1987 | } | |
1988 | _ACEOF | |
1989 | if ac_fn_c_try_compile "$LINENO"; then : | |
1990 | ac_hi=$ac_mid | |
1991 | else | |
1992 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
1993 | fi | |
1994 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1995 | done | |
1996 | case $ac_lo in #(( | |
1997 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
1998 | '') ac_retval=1 ;; | |
1999 | esac | |
2000 | else | |
2001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2002 | /* end confdefs.h. */ | |
2003 | $4 | |
2004 | static long int longval () { return $2; } | |
2005 | static unsigned long int ulongval () { return $2; } | |
2006 | #include <stdio.h> | |
2007 | #include <stdlib.h> | |
2008 | int | |
2009 | main () | |
2010 | { | |
d9898ee8 | 2011 | |
b0322a85 CE |
2012 | FILE *f = fopen ("conftest.val", "w"); |
2013 | if (! f) | |
2014 | return 1; | |
2015 | if (($2) < 0) | |
2016 | { | |
2017 | long int i = longval (); | |
2018 | if (i != ($2)) | |
2019 | return 1; | |
2020 | fprintf (f, "%ld", i); | |
2021 | } | |
2022 | else | |
2023 | { | |
2024 | unsigned long int i = ulongval (); | |
2025 | if (i != ($2)) | |
2026 | return 1; | |
2027 | fprintf (f, "%lu", i); | |
2028 | } | |
2029 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2030 | on some platforms. */ | |
2031 | return ferror (f) || fclose (f) != 0; | |
d9898ee8 | 2032 | |
b0322a85 CE |
2033 | ; |
2034 | return 0; | |
2035 | } | |
2036 | _ACEOF | |
2037 | if ac_fn_c_try_run "$LINENO"; then : | |
2038 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2039 | else | |
2040 | ac_retval=1 | |
2041 | fi | |
2042 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2043 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2044 | rm -f conftest.val | |
d9898ee8 | 2045 | |
b0322a85 CE |
2046 | fi |
2047 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2048 | as_fn_set_status $ac_retval | |
d9898ee8 | 2049 | |
b0322a85 CE |
2050 | } # ac_fn_c_compute_int |
2051 | cat >config.log <<_ACEOF | |
2052 | This file contains any messages produced by compilers while | |
2053 | running configure, to aid debugging if configure makes a mistake. | |
d9898ee8 | 2054 | |
b0322a85 CE |
2055 | It was created by libmd5 $as_me 1.21, which was |
2056 | generated by GNU Autoconf 2.69. Invocation command line was | |
d9898ee8 | 2057 | |
b0322a85 | 2058 | $ $0 $@ |
d9898ee8 | 2059 | |
b0322a85 CE |
2060 | _ACEOF |
2061 | exec 5>>config.log | |
2062 | { | |
2063 | cat <<_ASUNAME | |
2064 | ## --------- ## | |
2065 | ## Platform. ## | |
2066 | ## --------- ## | |
d9898ee8 | 2067 | |
b0322a85 CE |
2068 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2069 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2070 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2071 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2072 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
d9898ee8 | 2073 | |
b0322a85 CE |
2074 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2075 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
d9898ee8 | 2076 | |
b0322a85 CE |
2077 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2078 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2079 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2080 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2081 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2082 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2083 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
d9898ee8 | 2084 | |
b0322a85 | 2085 | _ASUNAME |
d9898ee8 | 2086 | |
b0322a85 CE |
2087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2088 | for as_dir in $PATH | |
2089 | do | |
2090 | IFS=$as_save_IFS | |
2091 | test -z "$as_dir" && as_dir=. | |
2092 | $as_echo "PATH: $as_dir" | |
2093 | done | |
2094 | IFS=$as_save_IFS | |
d9898ee8 | 2095 | |
b0322a85 | 2096 | } >&5 |
d9898ee8 | 2097 | |
b0322a85 | 2098 | cat >&5 <<_ACEOF |
d9898ee8 | 2099 | |
2100 | ||
b0322a85 CE |
2101 | ## ----------- ## |
2102 | ## Core tests. ## | |
2103 | ## ----------- ## | |
d9898ee8 | 2104 | |
b0322a85 CE |
2105 | _ACEOF |
2106 | ||
2107 | ||
2108 | # Keep a trace of the command line. | |
2109 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2110 | # Strip out --silent because we don't want to record it for future runs. | |
2111 | # Also quote any args containing shell meta-characters. | |
2112 | # Make two passes to allow for proper duplicate-argument suppression. | |
2113 | ac_configure_args= | |
2114 | ac_configure_args0= | |
2115 | ac_configure_args1= | |
2116 | ac_must_keep_next=false | |
2117 | for ac_pass in 1 2 | |
2118 | do | |
2119 | for ac_arg | |
2120 | do | |
2121 | case $ac_arg in | |
2122 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2123 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2124 | | -silent | --silent | --silen | --sile | --sil) | |
2125 | continue ;; | |
2126 | *\'*) | |
2127 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2128 | esac | |
2129 | case $ac_pass in | |
2130 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2131 | 2) | |
2132 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2133 | if test $ac_must_keep_next = true; then | |
2134 | ac_must_keep_next=false # Got value, back to normal. | |
2135 | else | |
2136 | case $ac_arg in | |
2137 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2138 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2139 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2140 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2141 | case "$ac_configure_args0 " in | |
2142 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2143 | esac | |
2144 | ;; | |
2145 | -* ) ac_must_keep_next=true ;; | |
2146 | esac | |
2147 | fi | |
2148 | as_fn_append ac_configure_args " '$ac_arg'" | |
2149 | ;; | |
2150 | esac | |
2151 | done | |
2152 | done | |
2153 | { ac_configure_args0=; unset ac_configure_args0;} | |
2154 | { ac_configure_args1=; unset ac_configure_args1;} | |
2155 | ||
2156 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2157 | # config.log. We remove comments because anyway the quotes in there | |
2158 | # would cause problems or look ugly. | |
2159 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2160 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2161 | trap 'exit_status=$? | |
2162 | # Save into config.log some information that might help in debugging. | |
2163 | { | |
2164 | echo | |
2165 | ||
2166 | $as_echo "## ---------------- ## | |
2167 | ## Cache variables. ## | |
2168 | ## ---------------- ##" | |
2169 | echo | |
2170 | # The following way of writing the cache mishandles newlines in values, | |
2171 | ( | |
2172 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2173 | eval ac_val=\$$ac_var | |
2174 | case $ac_val in #( | |
2175 | *${as_nl}*) | |
2176 | case $ac_var in #( | |
2177 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2178 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2179 | esac | |
2180 | case $ac_var in #( | |
2181 | _ | IFS | as_nl) ;; #( | |
2182 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2183 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2184 | esac ;; | |
2185 | esac | |
2186 | done | |
2187 | (set) 2>&1 | | |
2188 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2189 | *${as_nl}ac_space=\ *) | |
2190 | sed -n \ | |
2191 | "s/'\''/'\''\\\\'\'''\''/g; | |
2192 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2193 | ;; #( | |
2194 | *) | |
2195 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2196 | ;; | |
2197 | esac | | |
2198 | sort | |
2199 | ) | |
2200 | echo | |
2201 | ||
2202 | $as_echo "## ----------------- ## | |
2203 | ## Output variables. ## | |
2204 | ## ----------------- ##" | |
2205 | echo | |
2206 | for ac_var in $ac_subst_vars | |
2207 | do | |
2208 | eval ac_val=\$$ac_var | |
2209 | case $ac_val in | |
2210 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2211 | esac | |
2212 | $as_echo "$ac_var='\''$ac_val'\''" | |
2213 | done | sort | |
2214 | echo | |
2215 | ||
2216 | if test -n "$ac_subst_files"; then | |
2217 | $as_echo "## ------------------- ## | |
2218 | ## File substitutions. ## | |
2219 | ## ------------------- ##" | |
2220 | echo | |
2221 | for ac_var in $ac_subst_files | |
2222 | do | |
2223 | eval ac_val=\$$ac_var | |
2224 | case $ac_val in | |
2225 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2226 | esac | |
2227 | $as_echo "$ac_var='\''$ac_val'\''" | |
2228 | done | sort | |
2229 | echo | |
2230 | fi | |
2231 | ||
2232 | if test -s confdefs.h; then | |
2233 | $as_echo "## ----------- ## | |
2234 | ## confdefs.h. ## | |
2235 | ## ----------- ##" | |
2236 | echo | |
2237 | cat confdefs.h | |
2238 | echo | |
2239 | fi | |
2240 | test "$ac_signal" != 0 && | |
2241 | $as_echo "$as_me: caught signal $ac_signal" | |
2242 | $as_echo "$as_me: exit $exit_status" | |
2243 | } >&5 | |
2244 | rm -f core *.core core.conftest.* && | |
2245 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2246 | exit $exit_status | |
2247 | ' 0 | |
2248 | for ac_signal in 1 2 13 15; do | |
2249 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2250 | done | |
2251 | ac_signal=0 | |
2252 | ||
2253 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2254 | rm -f -r conftest* confdefs.h | |
2255 | ||
2256 | $as_echo "/* confdefs.h */" > confdefs.h | |
2257 | ||
2258 | # Predefined preprocessor variables. | |
2259 | ||
2260 | cat >>confdefs.h <<_ACEOF | |
2261 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2262 | _ACEOF | |
2263 | ||
2264 | cat >>confdefs.h <<_ACEOF | |
2265 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2266 | _ACEOF | |
2267 | ||
2268 | cat >>confdefs.h <<_ACEOF | |
2269 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2270 | _ACEOF | |
2271 | ||
2272 | cat >>confdefs.h <<_ACEOF | |
2273 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2274 | _ACEOF | |
2275 | ||
2276 | cat >>confdefs.h <<_ACEOF | |
2277 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2278 | _ACEOF | |
2279 | ||
2280 | cat >>confdefs.h <<_ACEOF | |
2281 | #define PACKAGE_URL "$PACKAGE_URL" | |
2282 | _ACEOF | |
2283 | ||
2284 | ||
2285 | # Let the site file select an alternate cache file if it wants to. | |
2286 | # Prefer an explicitly selected file to automatically selected ones. | |
2287 | ac_site_file1=NONE | |
2288 | ac_site_file2=NONE | |
2289 | if test -n "$CONFIG_SITE"; then | |
2290 | # We do not want a PATH search for config.site. | |
2291 | case $CONFIG_SITE in #(( | |
2292 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2293 | */*) ac_site_file1=$CONFIG_SITE;; | |
2294 | *) ac_site_file1=./$CONFIG_SITE;; | |
2295 | esac | |
2296 | elif test "x$prefix" != xNONE; then | |
2297 | ac_site_file1=$prefix/share/config.site | |
2298 | ac_site_file2=$prefix/etc/config.site | |
2299 | else | |
2300 | ac_site_file1=$ac_default_prefix/share/config.site | |
2301 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2302 | fi | |
2303 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2304 | do | |
2305 | test "x$ac_site_file" = xNONE && continue | |
2306 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2308 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2309 | sed 's/^/| /' "$ac_site_file" >&5 | |
2310 | . "$ac_site_file" \ | |
2311 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2312 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2313 | as_fn_error $? "failed to load site script $ac_site_file | |
2314 | See \`config.log' for more details" "$LINENO" 5; } | |
2315 | fi | |
2316 | done | |
2317 | ||
2318 | if test -r "$cache_file"; then | |
2319 | # Some versions of bash will fail to source /dev/null (special files | |
2320 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2321 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2322 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2323 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2324 | case $cache_file in | |
2325 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2326 | *) . "./$cache_file";; | |
2327 | esac | |
2328 | fi | |
2329 | else | |
2330 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2331 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2332 | >$cache_file | |
2333 | fi | |
2334 | ||
2335 | # Check that the precious variables saved in the cache have kept the same | |
2336 | # value. | |
2337 | ac_cache_corrupted=false | |
2338 | for ac_var in $ac_precious_vars; do | |
2339 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2340 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2341 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2342 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2343 | case $ac_old_set,$ac_new_set in | |
2344 | set,) | |
2345 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2346 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2347 | ac_cache_corrupted=: ;; | |
2348 | ,set) | |
2349 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2350 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2351 | ac_cache_corrupted=: ;; | |
2352 | ,);; | |
2353 | *) | |
2354 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2355 | # differences in whitespace do not lead to failure. | |
2356 | ac_old_val_w=`echo x $ac_old_val` | |
2357 | ac_new_val_w=`echo x $ac_new_val` | |
2358 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2359 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2360 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2361 | ac_cache_corrupted=: | |
2362 | else | |
2363 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2364 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2365 | eval $ac_var=\$ac_old_val | |
2366 | fi | |
2367 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2368 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2369 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2370 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2371 | fi;; | |
2372 | esac | |
2373 | # Pass precious variables to config.status. | |
2374 | if test "$ac_new_set" = set; then | |
2375 | case $ac_new_val in | |
2376 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2377 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2378 | esac | |
2379 | case " $ac_configure_args " in | |
2380 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2381 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2382 | esac | |
2383 | fi | |
2384 | done | |
2385 | if $ac_cache_corrupted; then | |
2386 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2387 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2388 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2389 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2390 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2391 | fi | |
2392 | ## -------------------- ## | |
2393 | ## Main body of script. ## | |
2394 | ## -------------------- ## | |
d9898ee8 | 2395 | |
dd184caf | 2396 | ac_ext=c |
2397 | ac_cpp='$CPP $CPPFLAGS' | |
2398 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2399 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2400 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 2401 | |
2402 | ||
2403 | ||
2404 | >confdefs.h # Kill PACKAGE_ macros | |
2405 | ||
2406 | ||
d9898ee8 | 2407 | ac_aux_dir= |
b0322a85 | 2408 | for ac_dir in ../.. "$srcdir"/../..; do |
dd184caf | 2409 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 | 2410 | ac_aux_dir=$ac_dir |
2411 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2412 | break | |
dd184caf | 2413 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 | 2414 | ac_aux_dir=$ac_dir |
2415 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2416 | break | |
dd184caf | 2417 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 | 2418 | ac_aux_dir=$ac_dir |
2419 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2420 | break | |
2421 | fi | |
2422 | done | |
2423 | if test -z "$ac_aux_dir"; then | |
b0322a85 | 2424 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5 |
d9898ee8 | 2425 | fi |
dd184caf | 2426 | |
2427 | # These three variables are undocumented and unsupported, | |
2428 | # and are intended to be withdrawn in a future Autoconf release. | |
2429 | # They can cause serious problems if a builder's source tree is in a directory | |
2430 | # whose full name contains unusual characters. | |
2431 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2432 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2433 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2434 | ||
d9898ee8 | 2435 | |
b0322a85 CE |
2436 | ac_config_headers="$ac_config_headers config.h" |
2437 | ||
d50284c4 | 2438 | am__api_version='1.15' |
b0322a85 | 2439 | |
d9898ee8 | 2440 | # Find a good install program. We prefer a C program (faster), |
2441 | # so one script is as good as another. But avoid the broken or | |
2442 | # incompatible versions: | |
2443 | # SysV /etc/install, /usr/sbin/install | |
2444 | # SunOS /usr/etc/install | |
2445 | # IRIX /sbin/install | |
2446 | # AIX /bin/install | |
2447 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2448 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2449 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2450 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2451 | # OS/2's system install, which has a completely different semantic | |
2452 | # ./install, which can be erroneously created by make from ./install.sh. | |
8d138742 | 2453 | # Reject install programs that cannot install multiple files. |
b0322a85 | 2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
8d138742 | 2455 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
d9898ee8 | 2456 | if test -z "$INSTALL"; then |
b0322a85 | 2457 | if ${ac_cv_path_install+:} false; then : |
8d138742 | 2458 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2459 | else |
2460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2461 | for as_dir in $PATH | |
2462 | do | |
2463 | IFS=$as_save_IFS | |
2464 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2465 | # Account for people who put trailing slashes in PATH elements. |
2466 | case $as_dir/ in #(( | |
2467 | ./ | .// | /[cC]/* | \ | |
d9898ee8 | 2468 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
b0322a85 | 2469 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
d9898ee8 | 2470 | /usr/ucb/* ) ;; |
2471 | *) | |
2472 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2473 | # Don't use installbsd from OSF since it installs stuff as root | |
2474 | # by default. | |
2475 | for ac_prog in ginstall scoinst install; do | |
2476 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b0322a85 | 2477 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
d9898ee8 | 2478 | if test $ac_prog = install && |
2479 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2480 | # AIX install. It has an incompatible calling convention. | |
2481 | : | |
2482 | elif test $ac_prog = install && | |
2483 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2484 | # program-specific install script used by HP pwplus--don't use. | |
2485 | : | |
2486 | else | |
8d138742 CE |
2487 | rm -rf conftest.one conftest.two conftest.dir |
2488 | echo one > conftest.one | |
2489 | echo two > conftest.two | |
2490 | mkdir conftest.dir | |
2491 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2492 | test -s conftest.one && test -s conftest.two && | |
2493 | test -s conftest.dir/conftest.one && | |
2494 | test -s conftest.dir/conftest.two | |
2495 | then | |
2496 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2497 | break 3 | |
2498 | fi | |
d9898ee8 | 2499 | fi |
2500 | fi | |
2501 | done | |
2502 | done | |
2503 | ;; | |
2504 | esac | |
8d138742 | 2505 | |
b0322a85 | 2506 | done |
dd184caf | 2507 | IFS=$as_save_IFS |
d9898ee8 | 2508 | |
8d138742 | 2509 | rm -rf conftest.one conftest.two conftest.dir |
d9898ee8 | 2510 | |
2511 | fi | |
2512 | if test "${ac_cv_path_install+set}" = set; then | |
2513 | INSTALL=$ac_cv_path_install | |
2514 | else | |
dd184caf | 2515 | # As a last resort, use the slow shell script. Don't cache a |
2516 | # value for INSTALL within a source directory, because that will | |
d9898ee8 | 2517 | # break other packages using the cache if that directory is |
dd184caf | 2518 | # removed, or if the value is a relative name. |
d9898ee8 | 2519 | INSTALL=$ac_install_sh |
2520 | fi | |
2521 | fi | |
b0322a85 | 2522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
8d138742 | 2523 | $as_echo "$INSTALL" >&6; } |
d9898ee8 | 2524 | |
2525 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2526 | # It thinks the first close brace ends the variable substitution. | |
2527 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2528 | ||
2529 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2530 | ||
2531 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2532 | ||
b0322a85 | 2533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
8d138742 | 2534 | $as_echo_n "checking whether build environment is sane... " >&6; } |
8d138742 CE |
2535 | # Reject unsafe characters in $srcdir or the absolute working directory |
2536 | # name. Accept space and tab only in the latter. | |
2537 | am_lf=' | |
2538 | ' | |
2539 | case `pwd` in | |
2540 | *[\\\"\#\$\&\'\`$am_lf]*) | |
b0322a85 | 2541 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
8d138742 CE |
2542 | esac |
2543 | case $srcdir in | |
2544 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
b0322a85 | 2545 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
8d138742 CE |
2546 | esac |
2547 | ||
b0322a85 | 2548 | # Do 'set' in a subshell so we don't clobber the current shell's |
d9898ee8 | 2549 | # arguments. Must try -L first in case configure is actually a |
2550 | # symlink; some systems play weird games with the mod time of symlinks | |
2551 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2552 | # directory). | |
2553 | if ( | |
b0322a85 CE |
2554 | am_has_slept=no |
2555 | for am_try in 1 2; do | |
2556 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2557 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2558 | if test "$*" = "X"; then | |
2559 | # -L didn't work. | |
2560 | set X `ls -t "$srcdir/configure" conftest.file` | |
2561 | fi | |
2562 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2563 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2564 | ||
2565 | # If neither matched, then we have a broken ls. This can happen | |
2566 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2567 | # broken ls alias from the environment. This has actually | |
2568 | # happened. Such a system could not be considered "sane". | |
2569 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2570 | alias in your environment" "$LINENO" 5 | |
2571 | fi | |
2572 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2573 | break | |
2574 | fi | |
2575 | # Just in case. | |
2576 | sleep 1 | |
2577 | am_has_slept=yes | |
2578 | done | |
d9898ee8 | 2579 | test "$2" = conftest.file |
2580 | ) | |
2581 | then | |
2582 | # Ok. | |
2583 | : | |
2584 | else | |
b0322a85 CE |
2585 | as_fn_error $? "newly created file is older than distributed files! |
2586 | Check your system clock" "$LINENO" 5 | |
d9898ee8 | 2587 | fi |
b0322a85 | 2588 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2589 | $as_echo "yes" >&6; } |
b0322a85 CE |
2590 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2591 | # generated files are strictly newer. | |
2592 | am_sleep_pid= | |
2593 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2594 | ( sleep 1 ) & | |
2595 | am_sleep_pid=$! | |
2596 | fi | |
2597 | ||
2598 | rm -f conftest.file | |
2599 | ||
d9898ee8 | 2600 | test "$program_prefix" != NONE && |
dd184caf | 2601 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 | 2602 | # Use a double $ so make ignores it. |
2603 | test "$program_suffix" != NONE && | |
dd184caf | 2604 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
8d138742 | 2605 | # Double any \ or $. |
d9898ee8 | 2606 | # By default was `s,x,x', remove it if useless. |
8d138742 CE |
2607 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2608 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
d9898ee8 | 2609 | |
d50284c4 CE |
2610 | # Expand $ac_aux_dir to an absolute path. |
2611 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
d9898ee8 | 2612 | |
8d138742 CE |
2613 | if test x"${MISSING+set}" != xset; then |
2614 | case $am_aux_dir in | |
2615 | *\ * | *\ *) | |
2616 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2617 | *) | |
2618 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2619 | esac | |
2620 | fi | |
d9898ee8 | 2621 | # Use eval to expand $SHELL |
b0322a85 CE |
2622 | if eval "$MISSING --is-lightweight"; then |
2623 | am_missing_run="$MISSING " | |
d9898ee8 | 2624 | else |
2625 | am_missing_run= | |
b0322a85 CE |
2626 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2627 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
8d138742 CE |
2628 | fi |
2629 | ||
d50284c4 | 2630 | if test x"${install_sh+set}" != xset; then |
8d138742 CE |
2631 | case $am_aux_dir in |
2632 | *\ * | *\ *) | |
2633 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2634 | *) | |
2635 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2636 | esac | |
2637 | fi | |
2638 | ||
b0322a85 CE |
2639 | # Installed binaries are usually stripped using 'strip' when the user |
2640 | # run "make install-strip". However 'strip' might not be the right | |
8d138742 | 2641 | # tool to use in cross-compilation environments, therefore Automake |
b0322a85 | 2642 | # will honor the 'STRIP' environment variable to overrule this program. |
8d138742 CE |
2643 | if test "$cross_compiling" != no; then |
2644 | if test -n "$ac_tool_prefix"; then | |
2645 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2646 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
b0322a85 | 2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2648 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2649 | if ${ac_cv_prog_STRIP+:} false; then : |
8d138742 CE |
2650 | $as_echo_n "(cached) " >&6 |
2651 | else | |
2652 | if test -n "$STRIP"; then | |
2653 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2654 | else | |
2655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2656 | for as_dir in $PATH | |
2657 | do | |
2658 | IFS=$as_save_IFS | |
2659 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2660 | for ac_exec_ext in '' $ac_executable_extensions; do |
2661 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2662 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
b0322a85 | 2663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2664 | break 2 |
2665 | fi | |
2666 | done | |
b0322a85 | 2667 | done |
8d138742 CE |
2668 | IFS=$as_save_IFS |
2669 | ||
2670 | fi | |
2671 | fi | |
2672 | STRIP=$ac_cv_prog_STRIP | |
2673 | if test -n "$STRIP"; then | |
b0322a85 | 2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
8d138742 CE |
2675 | $as_echo "$STRIP" >&6; } |
2676 | else | |
b0322a85 | 2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2678 | $as_echo "no" >&6; } |
d9898ee8 | 2679 | fi |
2680 | ||
8d138742 CE |
2681 | |
2682 | fi | |
2683 | if test -z "$ac_cv_prog_STRIP"; then | |
2684 | ac_ct_STRIP=$STRIP | |
2685 | # Extract the first word of "strip", so it can be a program name with args. | |
2686 | set dummy strip; ac_word=$2 | |
b0322a85 | 2687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2688 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2689 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
8d138742 CE |
2690 | $as_echo_n "(cached) " >&6 |
2691 | else | |
2692 | if test -n "$ac_ct_STRIP"; then | |
2693 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2694 | else | |
2695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2696 | for as_dir in $PATH | |
2697 | do | |
2698 | IFS=$as_save_IFS | |
2699 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2700 | for ac_exec_ext in '' $ac_executable_extensions; do |
2701 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 2702 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 2703 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
2704 | break 2 |
2705 | fi | |
2706 | done | |
b0322a85 | 2707 | done |
8d138742 CE |
2708 | IFS=$as_save_IFS |
2709 | ||
2710 | fi | |
2711 | fi | |
2712 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2713 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 CE |
2715 | $as_echo "$ac_ct_STRIP" >&6; } |
2716 | else | |
b0322a85 | 2717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
2718 | $as_echo "no" >&6; } |
2719 | fi | |
2720 | ||
2721 | if test "x$ac_ct_STRIP" = x; then | |
2722 | STRIP=":" | |
2723 | else | |
2724 | case $cross_compiling:$ac_tool_warned in | |
2725 | yes:) | |
b0322a85 | 2726 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
2727 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2728 | ac_tool_warned=yes ;; | |
2729 | esac | |
2730 | STRIP=$ac_ct_STRIP | |
2731 | fi | |
2732 | else | |
2733 | STRIP="$ac_cv_prog_STRIP" | |
2734 | fi | |
2735 | ||
2736 | fi | |
2737 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2738 | ||
b0322a85 | 2739 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
8d138742 | 2740 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
dd184caf | 2741 | if test -z "$MKDIR_P"; then |
b0322a85 | 2742 | if ${ac_cv_path_mkdir+:} false; then : |
8d138742 | 2743 | $as_echo_n "(cached) " >&6 |
dd184caf | 2744 | else |
2745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2746 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2747 | do | |
2748 | IFS=$as_save_IFS | |
2749 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 2750 | for ac_prog in mkdir gmkdir; do |
dd184caf | 2751 | for ac_exec_ext in '' $ac_executable_extensions; do |
b0322a85 | 2752 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
dd184caf | 2753 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2754 | 'mkdir (GNU coreutils) '* | \ | |
2755 | 'mkdir (coreutils) '* | \ | |
2756 | 'mkdir (fileutils) '4.1*) | |
2757 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2758 | break 3;; | |
2759 | esac | |
2760 | done | |
2761 | done | |
b0322a85 | 2762 | done |
dd184caf | 2763 | IFS=$as_save_IFS |
2764 | ||
2765 | fi | |
2766 | ||
b0322a85 | 2767 | test -d ./--version && rmdir ./--version |
dd184caf | 2768 | if test "${ac_cv_path_mkdir+set}" = set; then |
2769 | MKDIR_P="$ac_cv_path_mkdir -p" | |
d9898ee8 | 2770 | else |
dd184caf | 2771 | # As a last resort, use the slow shell script. Don't cache a |
2772 | # value for MKDIR_P within a source directory, because that will | |
2773 | # break other packages using the cache if that directory is | |
2774 | # removed, or if the value is a relative name. | |
dd184caf | 2775 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 | 2776 | fi |
2777 | fi | |
b0322a85 | 2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
8d138742 | 2779 | $as_echo "$MKDIR_P" >&6; } |
dd184caf | 2780 | |
d9898ee8 | 2781 | for ac_prog in gawk mawk nawk awk |
2782 | do | |
2783 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2784 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 2785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 2786 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 2787 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 2788 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2789 | else |
2790 | if test -n "$AWK"; then | |
2791 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2792 | else | |
2793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2794 | for as_dir in $PATH | |
2795 | do | |
2796 | IFS=$as_save_IFS | |
2797 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
2798 | for ac_exec_ext in '' $ac_executable_extensions; do |
2799 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 2800 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 2801 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 2802 | break 2 |
2803 | fi | |
2804 | done | |
b0322a85 | 2805 | done |
dd184caf | 2806 | IFS=$as_save_IFS |
d9898ee8 | 2807 | |
2808 | fi | |
2809 | fi | |
2810 | AWK=$ac_cv_prog_AWK | |
2811 | if test -n "$AWK"; then | |
b0322a85 | 2812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 2813 | $as_echo "$AWK" >&6; } |
d9898ee8 | 2814 | else |
b0322a85 | 2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2816 | $as_echo "no" >&6; } |
d9898ee8 | 2817 | fi |
2818 | ||
dd184caf | 2819 | |
d9898ee8 | 2820 | test -n "$AWK" && break |
2821 | done | |
2822 | ||
b0322a85 | 2823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
8d138742 CE |
2824 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2825 | set x ${MAKE-make} | |
2826 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
b0322a85 | 2827 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
8d138742 | 2828 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 2829 | else |
2830 | cat >conftest.make <<\_ACEOF | |
dd184caf | 2831 | SHELL = /bin/sh |
d9898ee8 | 2832 | all: |
dd184caf | 2833 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 | 2834 | _ACEOF |
b0322a85 | 2835 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
dd184caf | 2836 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2837 | *@@@%%%=?*=@@@%%%*) | |
2838 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2839 | *) | |
2840 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2841 | esac | |
d9898ee8 | 2842 | rm -f conftest.make |
2843 | fi | |
dd184caf | 2844 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
b0322a85 | 2845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 2846 | $as_echo "yes" >&6; } |
d9898ee8 | 2847 | SET_MAKE= |
2848 | else | |
b0322a85 | 2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 2850 | $as_echo "no" >&6; } |
d9898ee8 | 2851 | SET_MAKE="MAKE=${MAKE-make}" |
2852 | fi | |
2853 | ||
2854 | rm -rf .tst 2>/dev/null | |
2855 | mkdir .tst 2>/dev/null | |
2856 | if test -d .tst; then | |
2857 | am__leading_dot=. | |
2858 | else | |
2859 | am__leading_dot=_ | |
2860 | fi | |
2861 | rmdir .tst 2>/dev/null | |
2862 | ||
b0322a85 CE |
2863 | # Check whether --enable-silent-rules was given. |
2864 | if test "${enable_silent_rules+set}" = set; then : | |
2865 | enableval=$enable_silent_rules; | |
2866 | fi | |
2867 | ||
2868 | case $enable_silent_rules in # ((( | |
2869 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2870 | no) AM_DEFAULT_VERBOSITY=1;; | |
2871 | *) AM_DEFAULT_VERBOSITY=1;; | |
2872 | esac | |
2873 | am_make=${MAKE-make} | |
2874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2875 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2876 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2877 | $as_echo_n "(cached) " >&6 | |
2878 | else | |
2879 | if $as_echo 'TRUE=$(BAR$(V)) | |
2880 | BAR0=false | |
2881 | BAR1=true | |
2882 | V=1 | |
2883 | am__doit: | |
2884 | @$(TRUE) | |
2885 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2886 | am_cv_make_support_nested_variables=yes | |
2887 | else | |
2888 | am_cv_make_support_nested_variables=no | |
2889 | fi | |
2890 | fi | |
2891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2892 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2893 | if test $am_cv_make_support_nested_variables = yes; then | |
2894 | AM_V='$(V)' | |
2895 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2896 | else | |
2897 | AM_V=$AM_DEFAULT_VERBOSITY | |
2898 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2899 | fi | |
2900 | AM_BACKSLASH='\' | |
2901 | ||
dd184caf | 2902 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2903 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2904 | # is not polluted with repeated "-I." | |
2905 | am__isrc=' -I$(srcdir)' | |
2906 | # test to see if srcdir already configured | |
2907 | if test -f $srcdir/config.status; then | |
b0322a85 | 2908 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
dd184caf | 2909 | fi |
d9898ee8 | 2910 | fi |
2911 | ||
2912 | # test whether we have cygpath | |
2913 | if test -z "$CYGPATH_W"; then | |
2914 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2915 | CYGPATH_W='cygpath -w' | |
2916 | else | |
2917 | CYGPATH_W=echo | |
2918 | fi | |
2919 | fi | |
2920 | ||
2921 | ||
2922 | # Define the identity of the package. | |
2923 | PACKAGE='libmd5' | |
2924 | VERSION='1.21' | |
2925 | ||
2926 | ||
2927 | # Some tools Automake needs. | |
2928 | ||
2929 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2930 | ||
2931 | ||
2932 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2933 | ||
2934 | ||
2935 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2936 | ||
2937 | ||
2938 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2939 | ||
2940 | ||
2941 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2942 | ||
b0322a85 CE |
2943 | # For better backward compatibility. To be removed once Automake 1.9.x |
2944 | # dies out for good. For more background, see: | |
2945 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2946 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2947 | mkdir_p='$(MKDIR_P)' | |
2948 | ||
d50284c4 CE |
2949 | # We need awk for the "check" target (and possibly the TAP driver). The |
2950 | # system "awk" is bad on some platforms. | |
b0322a85 CE |
2951 | # Always define AMTAR for backward compatibility. Yes, it's still used |
2952 | # in the wild :-( We should find a proper way to deprecate it ... | |
2953 | AMTAR='$${TAR-tar}' | |
2954 | ||
d9898ee8 | 2955 | |
b0322a85 CE |
2956 | # We'll loop over all known methods to create a tar archive until one works. |
2957 | _am_tools='gnutar pax cpio none' | |
2958 | ||
2959 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
d9898ee8 | 2960 | |
d9898ee8 | 2961 | |
2962 | ||
2963 | ||
2964 | ||
2965 | ||
d50284c4 CE |
2966 | # POSIX will say in a future version that running "rm -f" with no argument |
2967 | # is OK; and we want to be able to make that assumption in our Makefile | |
2968 | # recipes. So use an aggressive probe to check that the usage we want is | |
2969 | # actually supported "in the wild" to an acceptable degree. | |
2970 | # See automake bug#10828. | |
2971 | # To make any issue more visible, cause the running configure to be aborted | |
2972 | # by default if the 'rm' program in use doesn't match our expectations; the | |
2973 | # user can still override this though. | |
2974 | if rm -f && rm -fr && rm -rf; then : OK; else | |
2975 | cat >&2 <<'END' | |
2976 | Oops! | |
2977 | ||
2978 | Your 'rm' program seems unable to run without file operands specified | |
2979 | on the command line, even when the '-f' option is present. This is contrary | |
2980 | to the behaviour of most rm programs out there, and not conforming with | |
2981 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
2982 | ||
2983 | Please tell bug-automake@gnu.org about your system, including the value | |
2984 | of your $PATH and any error possibly output before this message. This | |
2985 | can help us improve future automake versions. | |
2986 | ||
2987 | END | |
2988 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
2989 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
2990 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
2991 | echo >&2 | |
2992 | else | |
2993 | cat >&2 <<'END' | |
2994 | Aborting the configuration process, to ensure you take notice of the issue. | |
2995 | ||
2996 | You can download and install GNU coreutils to get an 'rm' implementation | |
2997 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
2998 | ||
2999 | If you want to complete the configuration process using your problematic | |
3000 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3001 | to "yes", and re-run configure. | |
3002 | ||
3003 | END | |
3004 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3005 | fi | |
3006 | fi | |
3007 | ||
d9898ee8 | 3008 | |
dd184caf | 3009 | if test -d ${srcdir}/../libhmac; then |
d9898ee8 | 3010 | HMACC_TRUE= |
3011 | HMACC_FALSE='#' | |
3012 | else | |
3013 | HMACC_TRUE='#' | |
3014 | HMACC_FALSE= | |
3015 | fi | |
3016 | ||
3017 | ||
3018 | for ac_prog in gawk mawk nawk awk | |
3019 | do | |
3020 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3021 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 3022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3023 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3024 | if ${ac_cv_prog_AWK+:} false; then : |
8d138742 | 3025 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3026 | else |
3027 | if test -n "$AWK"; then | |
3028 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3029 | else | |
3030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3031 | for as_dir in $PATH | |
3032 | do | |
3033 | IFS=$as_save_IFS | |
3034 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3035 | for ac_exec_ext in '' $ac_executable_extensions; do |
3036 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3037 | ac_cv_prog_AWK="$ac_prog" |
b0322a85 | 3038 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3039 | break 2 |
3040 | fi | |
3041 | done | |
b0322a85 | 3042 | done |
dd184caf | 3043 | IFS=$as_save_IFS |
d9898ee8 | 3044 | |
3045 | fi | |
3046 | fi | |
3047 | AWK=$ac_cv_prog_AWK | |
3048 | if test -n "$AWK"; then | |
b0322a85 | 3049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
8d138742 | 3050 | $as_echo "$AWK" >&6; } |
d9898ee8 | 3051 | else |
b0322a85 | 3052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3053 | $as_echo "no" >&6; } |
d9898ee8 | 3054 | fi |
3055 | ||
dd184caf | 3056 | |
d9898ee8 | 3057 | test -n "$AWK" && break |
3058 | done | |
3059 | ||
d9898ee8 | 3060 | |
b0322a85 | 3061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
8d138742 | 3062 | $as_echo_n "checking whether ln -s works... " >&6; } |
d9898ee8 | 3063 | LN_S=$as_ln_s |
3064 | if test "$LN_S" = "ln -s"; then | |
b0322a85 | 3065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
8d138742 | 3066 | $as_echo "yes" >&6; } |
d9898ee8 | 3067 | else |
b0322a85 | 3068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
8d138742 | 3069 | $as_echo "no, using $LN_S" >&6; } |
d9898ee8 | 3070 | fi |
3071 | ||
3072 | ac_ext=c | |
3073 | ac_cpp='$CPP $CPPFLAGS' | |
3074 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3075 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3076 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3077 | if test -n "$ac_tool_prefix"; then | |
3078 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3079 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b0322a85 | 3080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3081 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3082 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3083 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3084 | else |
3085 | if test -n "$CC"; then | |
3086 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3087 | else | |
3088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3089 | for as_dir in $PATH | |
3090 | do | |
3091 | IFS=$as_save_IFS | |
3092 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3093 | for ac_exec_ext in '' $ac_executable_extensions; do |
3094 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3095 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
b0322a85 | 3096 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3097 | break 2 |
3098 | fi | |
3099 | done | |
b0322a85 | 3100 | done |
dd184caf | 3101 | IFS=$as_save_IFS |
d9898ee8 | 3102 | |
3103 | fi | |
3104 | fi | |
3105 | CC=$ac_cv_prog_CC | |
3106 | if test -n "$CC"; then | |
b0322a85 | 3107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3108 | $as_echo "$CC" >&6; } |
d9898ee8 | 3109 | else |
b0322a85 | 3110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3111 | $as_echo "no" >&6; } |
d9898ee8 | 3112 | fi |
3113 | ||
dd184caf | 3114 | |
d9898ee8 | 3115 | fi |
3116 | if test -z "$ac_cv_prog_CC"; then | |
3117 | ac_ct_CC=$CC | |
3118 | # Extract the first word of "gcc", so it can be a program name with args. | |
3119 | set dummy gcc; ac_word=$2 | |
b0322a85 | 3120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3121 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3122 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 3123 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3124 | else |
3125 | if test -n "$ac_ct_CC"; then | |
3126 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3127 | else | |
3128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3129 | for as_dir in $PATH | |
3130 | do | |
3131 | IFS=$as_save_IFS | |
3132 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3133 | for ac_exec_ext in '' $ac_executable_extensions; do |
3134 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3135 | ac_cv_prog_ac_ct_CC="gcc" |
b0322a85 | 3136 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3137 | break 2 |
3138 | fi | |
3139 | done | |
b0322a85 | 3140 | done |
dd184caf | 3141 | IFS=$as_save_IFS |
d9898ee8 | 3142 | |
3143 | fi | |
3144 | fi | |
3145 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3146 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3148 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3149 | else |
b0322a85 | 3150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3151 | $as_echo "no" >&6; } |
d9898ee8 | 3152 | fi |
3153 | ||
dd184caf | 3154 | if test "x$ac_ct_CC" = x; then |
3155 | CC="" | |
3156 | else | |
3157 | case $cross_compiling:$ac_tool_warned in | |
3158 | yes:) | |
b0322a85 | 3159 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3160 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3161 | ac_tool_warned=yes ;; |
3162 | esac | |
3163 | CC=$ac_ct_CC | |
3164 | fi | |
d9898ee8 | 3165 | else |
3166 | CC="$ac_cv_prog_CC" | |
3167 | fi | |
3168 | ||
3169 | if test -z "$CC"; then | |
dd184caf | 3170 | if test -n "$ac_tool_prefix"; then |
3171 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
d9898ee8 | 3172 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b0322a85 | 3173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3174 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3175 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3176 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3177 | else |
3178 | if test -n "$CC"; then | |
3179 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3180 | else | |
3181 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3182 | for as_dir in $PATH | |
3183 | do | |
3184 | IFS=$as_save_IFS | |
3185 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3186 | for ac_exec_ext in '' $ac_executable_extensions; do |
3187 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3188 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
b0322a85 | 3189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3190 | break 2 |
3191 | fi | |
3192 | done | |
b0322a85 | 3193 | done |
dd184caf | 3194 | IFS=$as_save_IFS |
d9898ee8 | 3195 | |
3196 | fi | |
3197 | fi | |
3198 | CC=$ac_cv_prog_CC | |
3199 | if test -n "$CC"; then | |
b0322a85 | 3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3201 | $as_echo "$CC" >&6; } |
d9898ee8 | 3202 | else |
b0322a85 | 3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3204 | $as_echo "no" >&6; } |
d9898ee8 | 3205 | fi |
3206 | ||
d9898ee8 | 3207 | |
dd184caf | 3208 | fi |
d9898ee8 | 3209 | fi |
3210 | if test -z "$CC"; then | |
3211 | # Extract the first word of "cc", so it can be a program name with args. | |
3212 | set dummy cc; ac_word=$2 | |
b0322a85 | 3213 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3214 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3215 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3216 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3217 | else |
3218 | if test -n "$CC"; then | |
3219 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3220 | else | |
3221 | ac_prog_rejected=no | |
3222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3223 | for as_dir in $PATH | |
3224 | do | |
3225 | IFS=$as_save_IFS | |
3226 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3227 | for ac_exec_ext in '' $ac_executable_extensions; do |
3228 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3229 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3230 | ac_prog_rejected=yes | |
3231 | continue | |
3232 | fi | |
3233 | ac_cv_prog_CC="cc" | |
b0322a85 | 3234 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3235 | break 2 |
3236 | fi | |
3237 | done | |
b0322a85 | 3238 | done |
dd184caf | 3239 | IFS=$as_save_IFS |
d9898ee8 | 3240 | |
3241 | if test $ac_prog_rejected = yes; then | |
3242 | # We found a bogon in the path, so make sure we never use it. | |
3243 | set dummy $ac_cv_prog_CC | |
3244 | shift | |
3245 | if test $# != 0; then | |
3246 | # We chose a different compiler from the bogus one. | |
3247 | # However, it has the same basename, so the bogon will be chosen | |
3248 | # first if we set CC to just the basename; use the full file name. | |
3249 | shift | |
3250 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3251 | fi | |
3252 | fi | |
3253 | fi | |
3254 | fi | |
3255 | CC=$ac_cv_prog_CC | |
3256 | if test -n "$CC"; then | |
b0322a85 | 3257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3258 | $as_echo "$CC" >&6; } |
d9898ee8 | 3259 | else |
b0322a85 | 3260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3261 | $as_echo "no" >&6; } |
d9898ee8 | 3262 | fi |
3263 | ||
dd184caf | 3264 | |
d9898ee8 | 3265 | fi |
3266 | if test -z "$CC"; then | |
3267 | if test -n "$ac_tool_prefix"; then | |
dd184caf | 3268 | for ac_prog in cl.exe |
d9898ee8 | 3269 | do |
3270 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3271 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3273 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3274 | if ${ac_cv_prog_CC+:} false; then : |
8d138742 | 3275 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3276 | else |
3277 | if test -n "$CC"; then | |
3278 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3279 | else | |
3280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3281 | for as_dir in $PATH | |
3282 | do | |
3283 | IFS=$as_save_IFS | |
3284 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3285 | for ac_exec_ext in '' $ac_executable_extensions; do |
3286 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3287 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
b0322a85 | 3288 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3289 | break 2 |
3290 | fi | |
3291 | done | |
b0322a85 | 3292 | done |
dd184caf | 3293 | IFS=$as_save_IFS |
d9898ee8 | 3294 | |
3295 | fi | |
3296 | fi | |
3297 | CC=$ac_cv_prog_CC | |
3298 | if test -n "$CC"; then | |
b0322a85 | 3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
8d138742 | 3300 | $as_echo "$CC" >&6; } |
d9898ee8 | 3301 | else |
b0322a85 | 3302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3303 | $as_echo "no" >&6; } |
d9898ee8 | 3304 | fi |
3305 | ||
dd184caf | 3306 | |
d9898ee8 | 3307 | test -n "$CC" && break |
3308 | done | |
3309 | fi | |
3310 | if test -z "$CC"; then | |
3311 | ac_ct_CC=$CC | |
dd184caf | 3312 | for ac_prog in cl.exe |
d9898ee8 | 3313 | do |
3314 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3315 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 3316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 3317 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 3318 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
8d138742 | 3319 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3320 | else |
3321 | if test -n "$ac_ct_CC"; then | |
3322 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3323 | else | |
3324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3325 | for as_dir in $PATH | |
3326 | do | |
3327 | IFS=$as_save_IFS | |
3328 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
3329 | for ac_exec_ext in '' $ac_executable_extensions; do |
3330 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d9898ee8 | 3331 | ac_cv_prog_ac_ct_CC="$ac_prog" |
b0322a85 | 3332 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 3333 | break 2 |
3334 | fi | |
3335 | done | |
b0322a85 | 3336 | done |
dd184caf | 3337 | IFS=$as_save_IFS |
d9898ee8 | 3338 | |
3339 | fi | |
3340 | fi | |
3341 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3342 | if test -n "$ac_ct_CC"; then | |
b0322a85 | 3343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
8d138742 | 3344 | $as_echo "$ac_ct_CC" >&6; } |
d9898ee8 | 3345 | else |
b0322a85 | 3346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 3347 | $as_echo "no" >&6; } |
d9898ee8 | 3348 | fi |
3349 | ||
dd184caf | 3350 | |
d9898ee8 | 3351 | test -n "$ac_ct_CC" && break |
3352 | done | |
3353 | ||
dd184caf | 3354 | if test "x$ac_ct_CC" = x; then |
3355 | CC="" | |
3356 | else | |
3357 | case $cross_compiling:$ac_tool_warned in | |
3358 | yes:) | |
b0322a85 | 3359 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 3360 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 3361 | ac_tool_warned=yes ;; |
3362 | esac | |
3363 | CC=$ac_ct_CC | |
3364 | fi | |
d9898ee8 | 3365 | fi |
3366 | ||
3367 | fi | |
3368 | ||
3369 | ||
b0322a85 | 3370 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3371 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3372 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3373 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3374 | |
3375 | # Provide some information about the compiler. | |
b0322a85 | 3376 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
8d138742 CE |
3377 | set X $ac_compile |
3378 | ac_compiler=$2 | |
b0322a85 CE |
3379 | for ac_option in --version -v -V -qversion; do |
3380 | { { ac_try="$ac_compiler $ac_option >&5" | |
dd184caf | 3381 | case "(($ac_try" in |
3382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3383 | *) ac_try_echo=$ac_try;; | |
3384 | esac | |
b0322a85 CE |
3385 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3386 | $as_echo "$ac_try_echo"; } >&5 | |
3387 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
d9898ee8 | 3388 | ac_status=$? |
b0322a85 CE |
3389 | if test -s conftest.err; then |
3390 | sed '10a\ | |
3391 | ... rest of stderr output deleted ... | |
3392 | 10q' conftest.err >conftest.er1 | |
3393 | cat conftest.er1 >&5 | |
3394 | fi | |
3395 | rm -f conftest.er1 conftest.err | |
3396 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3397 | test $ac_status = 0; } | |
3398 | done | |
d9898ee8 | 3399 | |
b0322a85 | 3400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3401 | /* end confdefs.h. */ |
3402 | ||
3403 | int | |
3404 | main () | |
3405 | { | |
3406 | ||
3407 | ; | |
3408 | return 0; | |
3409 | } | |
3410 | _ACEOF | |
3411 | ac_clean_files_save=$ac_clean_files | |
8d138742 | 3412 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
d9898ee8 | 3413 | # Try to create an executable without -o first, disregard a.out. |
3414 | # It will help us diagnose broken compilers, and finding out an intuition | |
3415 | # of exeext. | |
b0322a85 CE |
3416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
3417 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
8d138742 CE |
3418 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
3419 | ||
3420 | # The possible output files: | |
3421 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3422 | ||
dd184caf | 3423 | ac_rmfiles= |
3424 | for ac_file in $ac_files | |
3425 | do | |
3426 | case $ac_file in | |
8d138742 | 3427 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
dd184caf | 3428 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
3429 | esac | |
3430 | done | |
3431 | rm -f $ac_rmfiles | |
3432 | ||
b0322a85 | 3433 | if { { ac_try="$ac_link_default" |
dd184caf | 3434 | case "(($ac_try" in |
3435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3436 | *) ac_try_echo=$ac_try;; | |
3437 | esac | |
b0322a85 CE |
3438 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3439 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3440 | (eval "$ac_link_default") 2>&5 |
d9898ee8 | 3441 | ac_status=$? |
b0322a85 CE |
3442 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3443 | test $ac_status = 0; }; then : | |
dd184caf | 3444 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
3445 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3446 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3447 | # so that the user can short-circuit this test for compilers unknown to | |
3448 | # Autoconf. | |
3449 | for ac_file in $ac_files '' | |
d9898ee8 | 3450 | do |
3451 | test -f "$ac_file" || continue | |
3452 | case $ac_file in | |
8d138742 | 3453 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
d9898ee8 | 3454 | ;; |
3455 | [ab].out ) | |
3456 | # We found the default executable, but exeext='' is most | |
3457 | # certainly right. | |
3458 | break;; | |
3459 | *.* ) | |
b0322a85 | 3460 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
dd184caf | 3461 | then :; else |
3462 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3463 | fi | |
3464 | # We set ac_cv_exeext here because the later test for it is not | |
3465 | # safe: cross compilers may not add the suffix if given an `-o' | |
3466 | # argument, so we may need to know it at that point already. | |
3467 | # Even if this section looks crufty: it has the advantage of | |
3468 | # actually working. | |
d9898ee8 | 3469 | break;; |
3470 | * ) | |
3471 | break;; | |
3472 | esac | |
3473 | done | |
dd184caf | 3474 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3475 | ||
d9898ee8 | 3476 | else |
dd184caf | 3477 | ac_file='' |
3478 | fi | |
b0322a85 CE |
3479 | if test -z "$ac_file"; then : |
3480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3481 | $as_echo "no" >&6; } | |
3482 | $as_echo "$as_me: failed program was:" >&5 | |
d9898ee8 | 3483 | sed 's/^/| /' conftest.$ac_ext >&5 |
3484 | ||
b0322a85 | 3485 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3486 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3487 | as_fn_error 77 "C compiler cannot create executables |
3488 | See \`config.log' for more details" "$LINENO" 5; } | |
3489 | else | |
3490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3491 | $as_echo "yes" >&6; } | |
d9898ee8 | 3492 | fi |
b0322a85 CE |
3493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
3494 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3496 | $as_echo "$ac_file" >&6; } | |
d9898ee8 | 3497 | ac_exeext=$ac_cv_exeext |
d9898ee8 | 3498 | |
8d138742 | 3499 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
d9898ee8 | 3500 | ac_clean_files=$ac_clean_files_save |
b0322a85 | 3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
8d138742 | 3502 | $as_echo_n "checking for suffix of executables... " >&6; } |
b0322a85 | 3503 | if { { ac_try="$ac_link" |
dd184caf | 3504 | case "(($ac_try" in |
3505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3506 | *) ac_try_echo=$ac_try;; | |
3507 | esac | |
b0322a85 CE |
3508 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3509 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3510 | (eval "$ac_link") 2>&5 |
d9898ee8 | 3511 | ac_status=$? |
b0322a85 CE |
3512 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3513 | test $ac_status = 0; }; then : | |
d9898ee8 | 3514 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3515 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3516 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3517 | # `rm'. | |
3518 | for ac_file in conftest.exe conftest conftest.*; do | |
3519 | test -f "$ac_file" || continue | |
3520 | case $ac_file in | |
8d138742 | 3521 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
d9898ee8 | 3522 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 | 3523 | break;; |
3524 | * ) break;; | |
3525 | esac | |
3526 | done | |
3527 | else | |
b0322a85 | 3528 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3529 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3530 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
3531 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3532 | fi |
b0322a85 CE |
3533 | rm -f conftest conftest$ac_cv_exeext |
3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
8d138742 | 3535 | $as_echo "$ac_cv_exeext" >&6; } |
d9898ee8 | 3536 | |
3537 | rm -f conftest.$ac_ext | |
3538 | EXEEXT=$ac_cv_exeext | |
3539 | ac_exeext=$EXEEXT | |
b0322a85 CE |
3540 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3541 | /* end confdefs.h. */ | |
3542 | #include <stdio.h> | |
3543 | int | |
3544 | main () | |
3545 | { | |
3546 | FILE *f = fopen ("conftest.out", "w"); | |
3547 | return ferror (f) || fclose (f) != 0; | |
3548 | ||
3549 | ; | |
3550 | return 0; | |
3551 | } | |
3552 | _ACEOF | |
3553 | ac_clean_files="$ac_clean_files conftest.out" | |
3554 | # Check that the compiler produces executables we can run. If not, either | |
3555 | # the compiler is broken, or we cross compile. | |
3556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3557 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3558 | if test "$cross_compiling" != yes; then | |
3559 | { { ac_try="$ac_link" | |
3560 | case "(($ac_try" in | |
3561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3562 | *) ac_try_echo=$ac_try;; | |
3563 | esac | |
3564 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3565 | $as_echo "$ac_try_echo"; } >&5 | |
3566 | (eval "$ac_link") 2>&5 | |
3567 | ac_status=$? | |
3568 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3569 | test $ac_status = 0; } | |
3570 | if { ac_try='./conftest$ac_cv_exeext' | |
3571 | { { case "(($ac_try" in | |
3572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3573 | *) ac_try_echo=$ac_try;; | |
3574 | esac | |
3575 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3576 | $as_echo "$ac_try_echo"; } >&5 | |
3577 | (eval "$ac_try") 2>&5 | |
3578 | ac_status=$? | |
3579 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3580 | test $ac_status = 0; }; }; then | |
3581 | cross_compiling=no | |
3582 | else | |
3583 | if test "$cross_compiling" = maybe; then | |
3584 | cross_compiling=yes | |
3585 | else | |
3586 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3587 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3588 | as_fn_error $? "cannot run C compiled programs. | |
3589 | If you meant to cross compile, use \`--host'. | |
3590 | See \`config.log' for more details" "$LINENO" 5; } | |
3591 | fi | |
3592 | fi | |
3593 | fi | |
3594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3595 | $as_echo "$cross_compiling" >&6; } | |
3596 | ||
3597 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3598 | ac_clean_files=$ac_clean_files_save | |
3599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
8d138742 | 3600 | $as_echo_n "checking for suffix of object files... " >&6; } |
b0322a85 | 3601 | if ${ac_cv_objext+:} false; then : |
8d138742 | 3602 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3603 | else |
b0322a85 | 3604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3605 | /* end confdefs.h. */ |
3606 | ||
3607 | int | |
3608 | main () | |
3609 | { | |
3610 | ||
3611 | ; | |
3612 | return 0; | |
3613 | } | |
3614 | _ACEOF | |
3615 | rm -f conftest.o conftest.obj | |
b0322a85 | 3616 | if { { ac_try="$ac_compile" |
dd184caf | 3617 | case "(($ac_try" in |
3618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3619 | *) ac_try_echo=$ac_try;; | |
3620 | esac | |
b0322a85 CE |
3621 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3622 | $as_echo "$ac_try_echo"; } >&5 | |
dd184caf | 3623 | (eval "$ac_compile") 2>&5 |
d9898ee8 | 3624 | ac_status=$? |
b0322a85 CE |
3625 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3626 | test $ac_status = 0; }; then : | |
dd184caf | 3627 | for ac_file in conftest.o conftest.obj conftest.*; do |
3628 | test -f "$ac_file" || continue; | |
d9898ee8 | 3629 | case $ac_file in |
8d138742 | 3630 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
d9898ee8 | 3631 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3632 | break;; | |
3633 | esac | |
3634 | done | |
3635 | else | |
8d138742 | 3636 | $as_echo "$as_me: failed program was:" >&5 |
d9898ee8 | 3637 | sed 's/^/| /' conftest.$ac_ext >&5 |
3638 | ||
b0322a85 | 3639 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 3640 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
3641 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
3642 | See \`config.log' for more details" "$LINENO" 5; } | |
d9898ee8 | 3643 | fi |
d9898ee8 | 3644 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3645 | fi | |
b0322a85 | 3646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
8d138742 | 3647 | $as_echo "$ac_cv_objext" >&6; } |
d9898ee8 | 3648 | OBJEXT=$ac_cv_objext |
3649 | ac_objext=$OBJEXT | |
b0322a85 | 3650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
8d138742 | 3651 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
b0322a85 | 3652 | if ${ac_cv_c_compiler_gnu+:} false; then : |
8d138742 | 3653 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3654 | else |
b0322a85 | 3655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3656 | /* end confdefs.h. */ |
3657 | ||
3658 | int | |
3659 | main () | |
3660 | { | |
3661 | #ifndef __GNUC__ | |
3662 | choke me | |
3663 | #endif | |
3664 | ||
3665 | ; | |
3666 | return 0; | |
3667 | } | |
3668 | _ACEOF | |
b0322a85 | 3669 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3670 | ac_compiler_gnu=yes |
3671 | else | |
b0322a85 | 3672 | ac_compiler_gnu=no |
d9898ee8 | 3673 | fi |
dd184caf | 3674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3675 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3676 | ||
3677 | fi | |
b0322a85 | 3678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
8d138742 CE |
3679 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3680 | if test $ac_compiler_gnu = yes; then | |
3681 | GCC=yes | |
3682 | else | |
3683 | GCC= | |
3684 | fi | |
d9898ee8 | 3685 | ac_test_CFLAGS=${CFLAGS+set} |
3686 | ac_save_CFLAGS=$CFLAGS | |
b0322a85 | 3687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
8d138742 | 3688 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
b0322a85 | 3689 | if ${ac_cv_prog_cc_g+:} false; then : |
8d138742 | 3690 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3691 | else |
dd184caf | 3692 | ac_save_c_werror_flag=$ac_c_werror_flag |
3693 | ac_c_werror_flag=yes | |
3694 | ac_cv_prog_cc_g=no | |
3695 | CFLAGS="-g" | |
b0322a85 | 3696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3697 | /* end confdefs.h. */ |
3698 | ||
3699 | int | |
3700 | main () | |
3701 | { | |
3702 | ||
3703 | ; | |
3704 | return 0; | |
3705 | } | |
3706 | _ACEOF | |
b0322a85 | 3707 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3708 | ac_cv_prog_cc_g=yes |
3709 | else | |
b0322a85 CE |
3710 | CFLAGS="" |
3711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3712 | /* end confdefs.h. */ | |
dd184caf | 3713 | |
3714 | int | |
3715 | main () | |
3716 | { | |
3717 | ||
3718 | ; | |
3719 | return 0; | |
3720 | } | |
3721 | _ACEOF | |
b0322a85 | 3722 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3723 | |
b0322a85 CE |
3724 | else |
3725 | ac_c_werror_flag=$ac_save_c_werror_flag | |
dd184caf | 3726 | CFLAGS="-g" |
b0322a85 | 3727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
dd184caf | 3728 | /* end confdefs.h. */ |
3729 | ||
3730 | int | |
3731 | main () | |
3732 | { | |
3733 | ||
3734 | ; | |
3735 | return 0; | |
3736 | } | |
3737 | _ACEOF | |
b0322a85 | 3738 | if ac_fn_c_try_compile "$LINENO"; then : |
d9898ee8 | 3739 | ac_cv_prog_cc_g=yes |
dd184caf | 3740 | fi |
dd184caf | 3741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3742 | fi | |
dd184caf | 3743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 3744 | fi |
dd184caf | 3745 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3746 | ac_c_werror_flag=$ac_save_c_werror_flag | |
d9898ee8 | 3747 | fi |
b0322a85 | 3748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
8d138742 | 3749 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
d9898ee8 | 3750 | if test "$ac_test_CFLAGS" = set; then |
3751 | CFLAGS=$ac_save_CFLAGS | |
3752 | elif test $ac_cv_prog_cc_g = yes; then | |
3753 | if test "$GCC" = yes; then | |
3754 | CFLAGS="-g -O2" | |
3755 | else | |
3756 | CFLAGS="-g" | |
3757 | fi | |
3758 | else | |
3759 | if test "$GCC" = yes; then | |
3760 | CFLAGS="-O2" | |
3761 | else | |
3762 | CFLAGS= | |
3763 | fi | |
3764 | fi | |
b0322a85 | 3765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
8d138742 | 3766 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
b0322a85 | 3767 | if ${ac_cv_prog_cc_c89+:} false; then : |
8d138742 | 3768 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3769 | else |
dd184caf | 3770 | ac_cv_prog_cc_c89=no |
d9898ee8 | 3771 | ac_save_CC=$CC |
b0322a85 | 3772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 3773 | /* end confdefs.h. */ |
3774 | #include <stdarg.h> | |
3775 | #include <stdio.h> | |
b0322a85 | 3776 | struct stat; |
d9898ee8 | 3777 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3778 | struct buf { int x; }; | |
3779 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3780 | static char *e (p, i) | |
3781 | char **p; | |
3782 | int i; | |
3783 | { | |
3784 | return p[i]; | |
3785 | } | |
3786 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3787 | { | |
3788 | char *s; | |
3789 | va_list v; | |
3790 | va_start (v,p); | |
3791 | s = g (p, va_arg (v,int)); | |
3792 | va_end (v); | |
3793 | return s; | |
3794 | } | |
3795 | ||
3796 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3797 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3798 | These don't provoke an error unfortunately, instead are silently treated | |
dd184caf | 3799 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 | 3800 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3801 | array size at least. It's necessary to write '\x00'==0 to get something | |
dd184caf | 3802 | that's true only with -std. */ |
d9898ee8 | 3803 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3804 | ||
dd184caf | 3805 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3806 | inside strings and character constants. */ | |
3807 | #define FOO(x) 'x' | |
3808 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3809 | ||
d9898ee8 | 3810 | int test (int i, double x); |
3811 | struct s1 {int (*f) (int a);}; | |
3812 | struct s2 {int (*f) (double a);}; | |
3813 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3814 | int argc; | |
3815 | char **argv; | |
3816 | int | |
3817 | main () | |
3818 | { | |
3819 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3820 | ; | |
3821 | return 0; | |
3822 | } | |
3823 | _ACEOF | |
dd184caf | 3824 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3825 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
d9898ee8 | 3826 | do |
3827 | CC="$ac_save_CC $ac_arg" | |
b0322a85 | 3828 | if ac_fn_c_try_compile "$LINENO"; then : |
dd184caf | 3829 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 | 3830 | fi |
dd184caf | 3831 | rm -f core conftest.err conftest.$ac_objext |
3832 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
d9898ee8 | 3833 | done |
dd184caf | 3834 | rm -f conftest.$ac_ext |
d9898ee8 | 3835 | CC=$ac_save_CC |
3836 | ||
3837 | fi | |
dd184caf | 3838 | # AC_CACHE_VAL |
3839 | case "x$ac_cv_prog_cc_c89" in | |
3840 | x) | |
b0322a85 | 3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
8d138742 | 3842 | $as_echo "none needed" >&6; } ;; |
dd184caf | 3843 | xno) |
b0322a85 | 3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
8d138742 | 3845 | $as_echo "unsupported" >&6; } ;; |
d9898ee8 | 3846 | *) |
dd184caf | 3847 | CC="$CC $ac_cv_prog_cc_c89" |
b0322a85 | 3848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
8d138742 | 3849 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 | 3850 | esac |
b0322a85 | 3851 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
d9898ee8 | 3852 | |
b0322a85 | 3853 | fi |
d9898ee8 | 3854 | |
d9898ee8 | 3855 | ac_ext=c |
3856 | ac_cpp='$CPP $CPPFLAGS' | |
3857 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3858 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3859 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d50284c4 CE |
3860 | |
3861 | ac_ext=c | |
3862 | ac_cpp='$CPP $CPPFLAGS' | |
3863 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3864 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3865 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3866 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3867 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3868 | if ${am_cv_prog_cc_c_o+:} false; then : | |
3869 | $as_echo_n "(cached) " >&6 | |
3870 | else | |
3871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3872 | /* end confdefs.h. */ | |
3873 | ||
3874 | int | |
3875 | main () | |
3876 | { | |
3877 | ||
3878 | ; | |
3879 | return 0; | |
3880 | } | |
3881 | _ACEOF | |
3882 | # Make sure it works both with $CC and with simple cc. | |
3883 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
3884 | # compilers refuse to overwrite an existing .o file with -o, | |
3885 | # though they will create one. | |
3886 | am_cv_prog_cc_c_o=yes | |
3887 | for am_i in 1 2; do | |
3888 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3889 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3890 | ac_status=$? | |
3891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3892 | (exit $ac_status); } \ | |
3893 | && test -f conftest2.$ac_objext; then | |
3894 | : OK | |
3895 | else | |
3896 | am_cv_prog_cc_c_o=no | |
3897 | break | |
3898 | fi | |
3899 | done | |
3900 | rm -f core conftest* | |
3901 | unset am_i | |
3902 | fi | |
3903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3904 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3905 | if test "$am_cv_prog_cc_c_o" != yes; then | |
3906 | # Losing compiler, so override with the script. | |
3907 | # FIXME: It is wrong to rewrite CC. | |
3908 | # But if we don't then we get into trouble of one sort or another. | |
3909 | # A longer-term fix would be to have automake use am__CC in this case, | |
3910 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3911 | CC="$am_aux_dir/compile $CC" | |
3912 | fi | |
3913 | ac_ext=c | |
3914 | ac_cpp='$CPP $CPPFLAGS' | |
3915 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3916 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3917 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3918 | ||
d9898ee8 | 3919 | DEPDIR="${am__leading_dot}deps" |
3920 | ||
dd184caf | 3921 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 | 3922 | |
3923 | ||
3924 | am_make=${MAKE-make} | |
3925 | cat > confinc << 'END' | |
3926 | am__doit: | |
8d138742 | 3927 | @echo this is the am__doit target |
d9898ee8 | 3928 | .PHONY: am__doit |
3929 | END | |
3930 | # If we don't find an include directive, just comment out the code. | |
b0322a85 | 3931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
8d138742 | 3932 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
d9898ee8 | 3933 | am__include="#" |
3934 | am__quote= | |
3935 | _am_result=none | |
3936 | # First try GNU make style include. | |
3937 | echo "include confinc" > confmf | |
b0322a85 | 3938 | # Ignore all kinds of additional output from 'make'. |
8d138742 CE |
3939 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3940 | *the\ am__doit\ target*) | |
3941 | am__include=include | |
3942 | am__quote= | |
3943 | _am_result=GNU | |
3944 | ;; | |
3945 | esac | |
d9898ee8 | 3946 | # Now try BSD make style include. |
3947 | if test "$am__include" = "#"; then | |
3948 | echo '.include "confinc"' > confmf | |
8d138742 CE |
3949 | case `$am_make -s -f confmf 2> /dev/null` in #( |
3950 | *the\ am__doit\ target*) | |
3951 | am__include=.include | |
3952 | am__quote="\"" | |
3953 | _am_result=BSD | |
3954 | ;; | |
3955 | esac | |
d9898ee8 | 3956 | fi |
3957 | ||
3958 | ||
b0322a85 | 3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
8d138742 | 3960 | $as_echo "$_am_result" >&6; } |
d9898ee8 | 3961 | rm -f confinc confmf |
3962 | ||
dd184caf | 3963 | # Check whether --enable-dependency-tracking was given. |
b0322a85 | 3964 | if test "${enable_dependency_tracking+set}" = set; then : |
dd184caf | 3965 | enableval=$enable_dependency_tracking; |
3966 | fi | |
d9898ee8 | 3967 | |
d9898ee8 | 3968 | if test "x$enable_dependency_tracking" != xno; then |
3969 | am_depcomp="$ac_aux_dir/depcomp" | |
3970 | AMDEPBACKSLASH='\' | |
b0322a85 | 3971 | am__nodep='_no' |
d9898ee8 | 3972 | fi |
dd184caf | 3973 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 | 3974 | AMDEP_TRUE= |
3975 | AMDEP_FALSE='#' | |
3976 | else | |
3977 | AMDEP_TRUE='#' | |
3978 | AMDEP_FALSE= | |
3979 | fi | |
3980 | ||
3981 | ||
3982 | ||
d9898ee8 | 3983 | depcc="$CC" am_compiler_list= |
3984 | ||
b0322a85 | 3985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
8d138742 | 3986 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
b0322a85 | 3987 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
8d138742 | 3988 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 3989 | else |
3990 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3991 | # We make a subdir and do the tests there. Otherwise we can end up | |
3992 | # making bogus files that we don't know about and never remove. For | |
3993 | # instance it was reported that on HP-UX the gcc test will end up | |
b0322a85 CE |
3994 | # making a dummy file named 'D' -- because '-MD' means "put the output |
3995 | # in D". | |
3996 | rm -rf conftest.dir | |
d9898ee8 | 3997 | mkdir conftest.dir |
3998 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3999 | # using a relative directory. | |
4000 | cp "$am_depcomp" conftest.dir | |
4001 | cd conftest.dir | |
4002 | # We will build objects and dependencies in a subdirectory because | |
4003 | # it helps to detect inapplicable dependency modes. For instance | |
4004 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4005 | # side effect of compilation, but ICC will put the dependencies in | |
4006 | # the current directory while Tru64 will put them in the object | |
4007 | # directory. | |
4008 | mkdir sub | |
4009 | ||
4010 | am_cv_CC_dependencies_compiler_type=none | |
4011 | if test "$am_compiler_list" = ""; then | |
4012 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4013 | fi | |
8d138742 CE |
4014 | am__universal=false |
4015 | case " $depcc " in #( | |
4016 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4017 | esac | |
4018 | ||
d9898ee8 | 4019 | for depmode in $am_compiler_list; do |
4020 | # Setup a source with many dependencies, because some compilers | |
4021 | # like to wrap large dependency lists on column 80 (with \), and | |
4022 | # we should not choose a depcomp mode which is confused by this. | |
4023 | # | |
4024 | # We need to recreate these files for each test, as the compiler may | |
4025 | # overwrite some of them when testing with obscure command lines. | |
4026 | # This happens at least with the AIX C compiler. | |
4027 | : > sub/conftest.c | |
4028 | for i in 1 2 3 4 5 6; do | |
4029 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
b0322a85 CE |
4030 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
4031 | # Solaris 10 /bin/sh. | |
4032 | echo '/* dummy */' > sub/conftst$i.h | |
d9898ee8 | 4033 | done |
4034 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4035 | ||
b0322a85 | 4036 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
8d138742 | 4037 | # mode. It turns out that the SunPro C++ compiler does not properly |
b0322a85 CE |
4038 | # handle '-M -o', and we need to detect this. Also, some Intel |
4039 | # versions had trouble with output in subdirs. | |
8d138742 CE |
4040 | am__obj=sub/conftest.${OBJEXT-o} |
4041 | am__minus_obj="-o $am__obj" | |
d9898ee8 | 4042 | case $depmode in |
8d138742 CE |
4043 | gcc) |
4044 | # This depmode causes a compiler race in universal mode. | |
4045 | test "$am__universal" = false || continue | |
4046 | ;; | |
d9898ee8 | 4047 | nosideeffect) |
b0322a85 CE |
4048 | # After this tag, mechanisms are not by side-effect, so they'll |
4049 | # only be used when explicitly requested. | |
d9898ee8 | 4050 | if test "x$enable_dependency_tracking" = xyes; then |
4051 | continue | |
4052 | else | |
4053 | break | |
4054 | fi | |
4055 | ;; | |
b0322a85 CE |
4056 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
4057 | # This compiler won't grok '-c -o', but also, the minuso test has | |
8d138742 CE |
4058 | # not run yet. These depmodes are late enough in the game, and |
4059 | # so weak that their functioning should not be impacted. | |
4060 | am__obj=conftest.${OBJEXT-o} | |
4061 | am__minus_obj= | |
4062 | ;; | |
d9898ee8 | 4063 | none) break ;; |
4064 | esac | |
d9898ee8 | 4065 | if depmode=$depmode \ |
8d138742 | 4066 | source=sub/conftest.c object=$am__obj \ |
d9898ee8 | 4067 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
8d138742 | 4068 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
d9898ee8 | 4069 | >/dev/null 2>conftest.err && |
dd184caf | 4070 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 4071 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
8d138742 | 4072 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 | 4073 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4074 | # icc doesn't choke on unknown options, it will just issue warnings | |
4075 | # or remarks (even with -Werror). So we grep stderr for any message | |
4076 | # that says an option was ignored or not supported. | |
4077 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4078 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4079 | # The diagnosis changed in icc 8.0: | |
4080 | # icc: Command line remark: option '-MP' not supported | |
4081 | if (grep 'ignoring option' conftest.err || | |
4082 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4083 | am_cv_CC_dependencies_compiler_type=$depmode | |
4084 | break | |
4085 | fi | |
4086 | fi | |
4087 | done | |
4088 | ||
4089 | cd .. | |
4090 | rm -rf conftest.dir | |
4091 | else | |
4092 | am_cv_CC_dependencies_compiler_type=none | |
4093 | fi | |
4094 | ||
4095 | fi | |
b0322a85 | 4096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
8d138742 | 4097 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 | 4098 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
4099 | ||
dd184caf | 4100 | if |
d9898ee8 | 4101 | test "x$enable_dependency_tracking" != xno \ |
4102 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4103 | am__fastdepCC_TRUE= | |
4104 | am__fastdepCC_FALSE='#' | |
4105 | else | |
4106 | am__fastdepCC_TRUE='#' | |
4107 | am__fastdepCC_FALSE= | |
4108 | fi | |
4109 | ||
4110 | ||
8d138742 CE |
4111 | case `pwd` in |
4112 | *\ * | *\ *) | |
b0322a85 | 4113 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
8d138742 CE |
4114 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
4115 | esac | |
4116 | ||
4117 | ||
4118 | ||
d50284c4 CE |
4119 | macro_version='2.4.6' |
4120 | macro_revision='2.4.6' | |
8d138742 CE |
4121 | |
4122 | ||
4123 | ||
4124 | ||
d9898ee8 | 4125 | |
dd184caf | 4126 | |
d9898ee8 | 4127 | |
dd184caf | 4128 | |
dd184caf | 4129 | |
d9898ee8 | 4130 | |
8d138742 CE |
4131 | |
4132 | ||
4133 | ||
d50284c4 | 4134 | ltmain=$ac_aux_dir/ltmain.sh |
8d138742 | 4135 | |
d9898ee8 | 4136 | # Make sure we can run config.sub. |
dd184caf | 4137 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
b0322a85 | 4138 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
d9898ee8 | 4139 | |
b0322a85 | 4140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
8d138742 | 4141 | $as_echo_n "checking build system type... " >&6; } |
b0322a85 | 4142 | if ${ac_cv_build+:} false; then : |
8d138742 | 4143 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4144 | else |
dd184caf | 4145 | ac_build_alias=$build_alias |
4146 | test "x$ac_build_alias" = x && | |
4147 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4148 | test "x$ac_build_alias" = x && | |
b0322a85 | 4149 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
dd184caf | 4150 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
b0322a85 | 4151 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
d9898ee8 | 4152 | |
4153 | fi | |
b0322a85 | 4154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
8d138742 | 4155 | $as_echo "$ac_cv_build" >&6; } |
dd184caf | 4156 | case $ac_cv_build in |
4157 | *-*-*) ;; | |
b0322a85 | 4158 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
dd184caf | 4159 | esac |
d9898ee8 | 4160 | build=$ac_cv_build |
dd184caf | 4161 | ac_save_IFS=$IFS; IFS='-' |
4162 | set x $ac_cv_build | |
4163 | shift | |
4164 | build_cpu=$1 | |
4165 | build_vendor=$2 | |
4166 | shift; shift | |
4167 | # Remember, the first character of IFS is used to create $*, | |
4168 | # except with old shells: | |
4169 | build_os=$* | |
4170 | IFS=$ac_save_IFS | |
4171 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4172 | ||
4173 | ||
b0322a85 | 4174 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
8d138742 | 4175 | $as_echo_n "checking host system type... " >&6; } |
b0322a85 | 4176 | if ${ac_cv_host+:} false; then : |
8d138742 | 4177 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4178 | else |
dd184caf | 4179 | if test "x$host_alias" = x; then |
4180 | ac_cv_host=$ac_cv_build | |
4181 | else | |
4182 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
b0322a85 | 4183 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
dd184caf | 4184 | fi |
d9898ee8 | 4185 | |
4186 | fi | |
b0322a85 | 4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
8d138742 | 4188 | $as_echo "$ac_cv_host" >&6; } |
dd184caf | 4189 | case $ac_cv_host in |
4190 | *-*-*) ;; | |
b0322a85 | 4191 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
dd184caf | 4192 | esac |
d9898ee8 | 4193 | host=$ac_cv_host |
dd184caf | 4194 | ac_save_IFS=$IFS; IFS='-' |
4195 | set x $ac_cv_host | |
4196 | shift | |
4197 | host_cpu=$1 | |
4198 | host_vendor=$2 | |
4199 | shift; shift | |
4200 | # Remember, the first character of IFS is used to create $*, | |
4201 | # except with old shells: | |
4202 | host_os=$* | |
4203 | IFS=$ac_save_IFS | |
4204 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4205 | ||
4206 | ||
b0322a85 CE |
4207 | # Backslashify metacharacters that are still active within |
4208 | # double-quoted strings. | |
4209 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4210 | ||
4211 | # Same as above, but do not quote variable references. | |
4212 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4213 | ||
4214 | # Sed substitution to delay expansion of an escaped shell variable in a | |
4215 | # double_quote_subst'ed string. | |
4216 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4217 | ||
4218 | # Sed substitution to delay expansion of an escaped single quote. | |
4219 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4220 | ||
4221 | # Sed substitution to avoid accidental globbing in evaled expressions | |
4222 | no_glob_subst='s/\*/\\\*/g' | |
4223 | ||
4224 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4225 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4226 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4227 | ||
4228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4229 | $as_echo_n "checking how to print strings... " >&6; } | |
4230 | # Test print first, because it will be a builtin if present. | |
4231 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4232 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4233 | ECHO='print -r --' | |
4234 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4235 | ECHO='printf %s\n' | |
4236 | else | |
4237 | # Use this function as a fallback that always works. | |
4238 | func_fallback_echo () | |
4239 | { | |
4240 | eval 'cat <<_LTECHO_EOF | |
4241 | $1 | |
4242 | _LTECHO_EOF' | |
4243 | } | |
4244 | ECHO='func_fallback_echo' | |
4245 | fi | |
4246 | ||
4247 | # func_echo_all arg... | |
4248 | # Invoke $ECHO with all args, space-separated. | |
4249 | func_echo_all () | |
4250 | { | |
4251 | $ECHO "" | |
4252 | } | |
4253 | ||
d50284c4 | 4254 | case $ECHO in |
b0322a85 CE |
4255 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
4256 | $as_echo "printf" >&6; } ;; | |
4257 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4258 | $as_echo "print -r" >&6; } ;; | |
4259 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4260 | $as_echo "cat" >&6; } ;; | |
4261 | esac | |
4262 | ||
4263 | ||
4264 | ||
4265 | ||
4266 | ||
4267 | ||
4268 | ||
4269 | ||
4270 | ||
4271 | ||
4272 | ||
4273 | ||
4274 | ||
4275 | ||
4276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
8d138742 | 4277 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
b0322a85 | 4278 | if ${ac_cv_path_SED+:} false; then : |
8d138742 CE |
4279 | $as_echo_n "(cached) " >&6 |
4280 | else | |
4281 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4282 | for ac_i in 1 2 3 4 5 6 7; do | |
4283 | ac_script="$ac_script$as_nl$ac_script" | |
4284 | done | |
4285 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
b0322a85 | 4286 | { ac_script=; unset ac_script;} |
8d138742 CE |
4287 | if test -z "$SED"; then |
4288 | ac_path_SED_found=false | |
4289 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d9898ee8 | 4291 | for as_dir in $PATH |
4292 | do | |
4293 | IFS=$as_save_IFS | |
4294 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4295 | for ac_prog in sed gsed; do |
d9898ee8 | 4296 | for ac_exec_ext in '' $ac_executable_extensions; do |
8d138742 | 4297 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
b0322a85 | 4298 | as_fn_executable_p "$ac_path_SED" || continue |
8d138742 CE |
4299 | # Check for GNU ac_path_SED and select it if it is found. |
4300 | # Check for GNU $ac_path_SED | |
4301 | case `"$ac_path_SED" --version 2>&1` in | |
4302 | *GNU*) | |
4303 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4304 | *) | |
4305 | ac_count=0 | |
4306 | $as_echo_n 0123456789 >"conftest.in" | |
4307 | while : | |
4308 | do | |
4309 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4310 | mv "conftest.tmp" "conftest.in" | |
4311 | cp "conftest.in" "conftest.nl" | |
4312 | $as_echo '' >> "conftest.nl" | |
4313 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4314 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4315 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4316 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
4317 | # Best one so far, save it but keep looking for a better one | |
4318 | ac_cv_path_SED="$ac_path_SED" | |
4319 | ac_path_SED_max=$ac_count | |
4320 | fi | |
4321 | # 10*(2^10) chars as input seems more than enough | |
4322 | test $ac_count -gt 10 && break | |
4323 | done | |
4324 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4325 | esac | |
4326 | ||
4327 | $ac_path_SED_found && break 3 | |
d9898ee8 | 4328 | done |
4329 | done | |
b0322a85 | 4330 | done |
d9898ee8 | 4331 | IFS=$as_save_IFS |
8d138742 | 4332 | if test -z "$ac_cv_path_SED"; then |
b0322a85 | 4333 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
d9898ee8 | 4334 | fi |
8d138742 CE |
4335 | else |
4336 | ac_cv_path_SED=$SED | |
4337 | fi | |
d9898ee8 | 4338 | |
4339 | fi | |
b0322a85 | 4340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
8d138742 CE |
4341 | $as_echo "$ac_cv_path_SED" >&6; } |
4342 | SED="$ac_cv_path_SED" | |
4343 | rm -f conftest.sed | |
4344 | ||
4345 | test -z "$SED" && SED=sed | |
4346 | Xsed="$SED -e 1s/^X//" | |
d9898ee8 | 4347 | |
d9898ee8 | 4348 | |
dd184caf | 4349 | |
8d138742 CE |
4350 | |
4351 | ||
4352 | ||
4353 | ||
4354 | ||
4355 | ||
4356 | ||
4357 | ||
b0322a85 | 4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
8d138742 | 4359 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
b0322a85 | 4360 | if ${ac_cv_path_GREP+:} false; then : |
8d138742 | 4361 | $as_echo_n "(cached) " >&6 |
dd184caf | 4362 | else |
8d138742 | 4363 | if test -z "$GREP"; then |
dd184caf | 4364 | ac_path_GREP_found=false |
8d138742 CE |
4365 | # Loop through the user's path and test for each of PROGNAME-LIST |
4366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4367 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4368 | do | |
4369 | IFS=$as_save_IFS | |
4370 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4371 | for ac_prog in grep ggrep; do |
8d138742 CE |
4372 | for ac_exec_ext in '' $ac_executable_extensions; do |
4373 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4374 | as_fn_executable_p "$ac_path_GREP" || continue |
8d138742 | 4375 | # Check for GNU ac_path_GREP and select it if it is found. |
dd184caf | 4376 | # Check for GNU $ac_path_GREP |
4377 | case `"$ac_path_GREP" --version 2>&1` in | |
4378 | *GNU*) | |
4379 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4380 | *) | |
4381 | ac_count=0 | |
8d138742 | 4382 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4383 | while : |
4384 | do | |
4385 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4386 | mv "conftest.tmp" "conftest.in" | |
4387 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4388 | $as_echo 'GREP' >> "conftest.nl" |
dd184caf | 4389 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4390 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4391 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4392 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4393 | # Best one so far, save it but keep looking for a better one | |
4394 | ac_cv_path_GREP="$ac_path_GREP" | |
4395 | ac_path_GREP_max=$ac_count | |
4396 | fi | |
4397 | # 10*(2^10) chars as input seems more than enough | |
4398 | test $ac_count -gt 10 && break | |
4399 | done | |
4400 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4401 | esac | |
4402 | ||
8d138742 CE |
4403 | $ac_path_GREP_found && break 3 |
4404 | done | |
dd184caf | 4405 | done |
b0322a85 | 4406 | done |
dd184caf | 4407 | IFS=$as_save_IFS |
8d138742 | 4408 | if test -z "$ac_cv_path_GREP"; then |
b0322a85 | 4409 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 | 4410 | fi |
dd184caf | 4411 | else |
4412 | ac_cv_path_GREP=$GREP | |
4413 | fi | |
4414 | ||
dd184caf | 4415 | fi |
b0322a85 | 4416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
8d138742 | 4417 | $as_echo "$ac_cv_path_GREP" >&6; } |
dd184caf | 4418 | GREP="$ac_cv_path_GREP" |
4419 | ||
d9898ee8 | 4420 | |
b0322a85 | 4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
8d138742 | 4422 | $as_echo_n "checking for egrep... " >&6; } |
b0322a85 | 4423 | if ${ac_cv_path_EGREP+:} false; then : |
8d138742 | 4424 | $as_echo_n "(cached) " >&6 |
dd184caf | 4425 | else |
4426 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4427 | then ac_cv_path_EGREP="$GREP -E" | |
4428 | else | |
8d138742 | 4429 | if test -z "$EGREP"; then |
dd184caf | 4430 | ac_path_EGREP_found=false |
8d138742 CE |
4431 | # Loop through the user's path and test for each of PROGNAME-LIST |
4432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
dd184caf | 4433 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4434 | do | |
4435 | IFS=$as_save_IFS | |
4436 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4437 | for ac_prog in egrep; do |
8d138742 CE |
4438 | for ac_exec_ext in '' $ac_executable_extensions; do |
4439 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4440 | as_fn_executable_p "$ac_path_EGREP" || continue |
8d138742 | 4441 | # Check for GNU ac_path_EGREP and select it if it is found. |
dd184caf | 4442 | # Check for GNU $ac_path_EGREP |
4443 | case `"$ac_path_EGREP" --version 2>&1` in | |
4444 | *GNU*) | |
4445 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4446 | *) | |
4447 | ac_count=0 | |
8d138742 | 4448 | $as_echo_n 0123456789 >"conftest.in" |
dd184caf | 4449 | while : |
4450 | do | |
4451 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4452 | mv "conftest.tmp" "conftest.in" | |
4453 | cp "conftest.in" "conftest.nl" | |
8d138742 | 4454 | $as_echo 'EGREP' >> "conftest.nl" |
dd184caf | 4455 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4456 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4457 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
dd184caf | 4458 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4459 | # Best one so far, save it but keep looking for a better one | |
4460 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4461 | ac_path_EGREP_max=$ac_count | |
d9898ee8 | 4462 | fi |
dd184caf | 4463 | # 10*(2^10) chars as input seems more than enough |
4464 | test $ac_count -gt 10 && break | |
4465 | done | |
4466 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4467 | esac | |
4468 | ||
8d138742 CE |
4469 | $ac_path_EGREP_found && break 3 |
4470 | done | |
dd184caf | 4471 | done |
b0322a85 | 4472 | done |
dd184caf | 4473 | IFS=$as_save_IFS |
8d138742 | 4474 | if test -z "$ac_cv_path_EGREP"; then |
b0322a85 | 4475 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4476 | fi |
4477 | else | |
4478 | ac_cv_path_EGREP=$EGREP | |
dd184caf | 4479 | fi |
4480 | ||
8d138742 | 4481 | fi |
dd184caf | 4482 | fi |
b0322a85 | 4483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
8d138742 CE |
4484 | $as_echo "$ac_cv_path_EGREP" >&6; } |
4485 | EGREP="$ac_cv_path_EGREP" | |
dd184caf | 4486 | |
8d138742 | 4487 | |
b0322a85 | 4488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
8d138742 | 4489 | $as_echo_n "checking for fgrep... " >&6; } |
b0322a85 | 4490 | if ${ac_cv_path_FGREP+:} false; then : |
8d138742 | 4491 | $as_echo_n "(cached) " >&6 |
dd184caf | 4492 | else |
8d138742 CE |
4493 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4494 | then ac_cv_path_FGREP="$GREP -F" | |
4495 | else | |
4496 | if test -z "$FGREP"; then | |
4497 | ac_path_FGREP_found=false | |
4498 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4499 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4500 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4501 | do | |
4502 | IFS=$as_save_IFS | |
4503 | test -z "$as_dir" && as_dir=. | |
b0322a85 | 4504 | for ac_prog in fgrep; do |
8d138742 CE |
4505 | for ac_exec_ext in '' $ac_executable_extensions; do |
4506 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
b0322a85 | 4507 | as_fn_executable_p "$ac_path_FGREP" || continue |
8d138742 CE |
4508 | # Check for GNU ac_path_FGREP and select it if it is found. |
4509 | # Check for GNU $ac_path_FGREP | |
4510 | case `"$ac_path_FGREP" --version 2>&1` in | |
4511 | *GNU*) | |
4512 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
4513 | *) | |
4514 | ac_count=0 | |
4515 | $as_echo_n 0123456789 >"conftest.in" | |
4516 | while : | |
4517 | do | |
4518 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4519 | mv "conftest.tmp" "conftest.in" | |
4520 | cp "conftest.in" "conftest.nl" | |
4521 | $as_echo 'FGREP' >> "conftest.nl" | |
4522 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4523 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
b0322a85 | 4524 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
8d138742 CE |
4525 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
4526 | # Best one so far, save it but keep looking for a better one | |
4527 | ac_cv_path_FGREP="$ac_path_FGREP" | |
4528 | ac_path_FGREP_max=$ac_count | |
4529 | fi | |
4530 | # 10*(2^10) chars as input seems more than enough | |
4531 | test $ac_count -gt 10 && break | |
4532 | done | |
4533 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4534 | esac | |
dd184caf | 4535 | |
8d138742 CE |
4536 | $ac_path_FGREP_found && break 3 |
4537 | done | |
4538 | done | |
b0322a85 | 4539 | done |
8d138742 CE |
4540 | IFS=$as_save_IFS |
4541 | if test -z "$ac_cv_path_FGREP"; then | |
b0322a85 | 4542 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
8d138742 CE |
4543 | fi |
4544 | else | |
4545 | ac_cv_path_FGREP=$FGREP | |
4546 | fi | |
dd184caf | 4547 | |
4548 | fi | |
d9898ee8 | 4549 | fi |
b0322a85 | 4550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
8d138742 CE |
4551 | $as_echo "$ac_cv_path_FGREP" >&6; } |
4552 | FGREP="$ac_cv_path_FGREP" | |
4553 | ||
4554 | ||
4555 | test -z "$GREP" && GREP=grep | |
4556 | ||
4557 | ||
4558 | ||
4559 | ||
4560 | ||
4561 | ||
4562 | ||
4563 | ||
4564 | ||
4565 | ||
4566 | ||
4567 | ||
4568 | ||
4569 | ||
4570 | ||
4571 | ||
d9898ee8 | 4572 | |
4573 | ||
4574 | ||
dd184caf | 4575 | # Check whether --with-gnu-ld was given. |
b0322a85 | 4576 | if test "${with_gnu_ld+set}" = set; then : |
d50284c4 | 4577 | withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
d9898ee8 | 4578 | else |
4579 | with_gnu_ld=no | |
dd184caf | 4580 | fi |
4581 | ||
d9898ee8 | 4582 | ac_prog=ld |
d50284c4 | 4583 | if test yes = "$GCC"; then |
d9898ee8 | 4584 | # Check if gcc -print-prog-name=ld gives a path. |
b0322a85 | 4585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
8d138742 | 4586 | $as_echo_n "checking for ld used by $CC... " >&6; } |
d9898ee8 | 4587 | case $host in |
4588 | *-*-mingw*) | |
d50284c4 | 4589 | # gcc leaves a trailing carriage return, which upsets mingw |
d9898ee8 | 4590 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4591 | *) | |
4592 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4593 | esac | |
4594 | case $ac_prog in | |
4595 | # Accept absolute paths. | |
4596 | [\\/]* | ?:[\\/]*) | |
4597 | re_direlt='/[^/][^/]*/\.\./' | |
4598 | # Canonicalize the pathname of ld | |
8d138742 CE |
4599 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
4600 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4601 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
d9898ee8 | 4602 | done |
d50284c4 | 4603 | test -z "$LD" && LD=$ac_prog |
d9898ee8 | 4604 | ;; |
4605 | "") | |
4606 | # If it fails, then pretend we aren't using GCC. | |
4607 | ac_prog=ld | |
4608 | ;; | |
4609 | *) | |
4610 | # If it is relative, then search for the first ld in PATH. | |
4611 | with_gnu_ld=unknown | |
4612 | ;; | |
4613 | esac | |
d50284c4 | 4614 | elif test yes = "$with_gnu_ld"; then |
b0322a85 | 4615 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
8d138742 | 4616 | $as_echo_n "checking for GNU ld... " >&6; } |
d9898ee8 | 4617 | else |
b0322a85 | 4618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
8d138742 | 4619 | $as_echo_n "checking for non-GNU ld... " >&6; } |
d9898ee8 | 4620 | fi |
b0322a85 | 4621 | if ${lt_cv_path_LD+:} false; then : |
8d138742 | 4622 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4623 | else |
4624 | if test -z "$LD"; then | |
d50284c4 | 4625 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
d9898ee8 | 4626 | for ac_dir in $PATH; do |
d50284c4 | 4627 | IFS=$lt_save_ifs |
d9898ee8 | 4628 | test -z "$ac_dir" && ac_dir=. |
4629 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
d50284c4 | 4630 | lt_cv_path_LD=$ac_dir/$ac_prog |
d9898ee8 | 4631 | # Check to see if the program is GNU ld. I'd rather use --version, |
4632 | # but apparently some variants of GNU ld only accept -v. | |
4633 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4634 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4635 | *GNU* | *'with BFD'*) | |
d50284c4 | 4636 | test no != "$with_gnu_ld" && break |
d9898ee8 | 4637 | ;; |
4638 | *) | |
d50284c4 | 4639 | test yes != "$with_gnu_ld" && break |
d9898ee8 | 4640 | ;; |
4641 | esac | |
4642 | fi | |
4643 | done | |
d50284c4 | 4644 | IFS=$lt_save_ifs |
d9898ee8 | 4645 | else |
d50284c4 | 4646 | lt_cv_path_LD=$LD # Let the user override the test with a path. |
d9898ee8 | 4647 | fi |
4648 | fi | |
4649 | ||
d50284c4 | 4650 | LD=$lt_cv_path_LD |
d9898ee8 | 4651 | if test -n "$LD"; then |
b0322a85 | 4652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
8d138742 | 4653 | $as_echo "$LD" >&6; } |
d9898ee8 | 4654 | else |
b0322a85 | 4655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 4656 | $as_echo "no" >&6; } |
d9898ee8 | 4657 | fi |
b0322a85 CE |
4658 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
8d138742 | 4660 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
b0322a85 | 4661 | if ${lt_cv_prog_gnu_ld+:} false; then : |
8d138742 | 4662 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4663 | else |
4664 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4665 | case `$LD -v 2>&1 </dev/null` in | |
4666 | *GNU* | *'with BFD'*) | |
4667 | lt_cv_prog_gnu_ld=yes | |
4668 | ;; | |
4669 | *) | |
4670 | lt_cv_prog_gnu_ld=no | |
4671 | ;; | |
4672 | esac | |
4673 | fi | |
b0322a85 | 4674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
8d138742 | 4675 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 | 4676 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4677 | ||
4678 | ||
d9898ee8 | 4679 | |
8d138742 CE |
4680 | |
4681 | ||
4682 | ||
4683 | ||
4684 | ||
4685 | ||
b0322a85 | 4686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
8d138742 | 4687 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
b0322a85 | 4688 | if ${lt_cv_path_NM+:} false; then : |
8d138742 | 4689 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 4690 | else |
4691 | if test -n "$NM"; then | |
4692 | # Let the user override the test. | |
d50284c4 | 4693 | lt_cv_path_NM=$NM |
d9898ee8 | 4694 | else |
d50284c4 | 4695 | lt_nm_to_check=${ac_tool_prefix}nm |
d9898ee8 | 4696 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4697 | lt_nm_to_check="$lt_nm_to_check nm" | |
4698 | fi | |
4699 | for lt_tmp_nm in $lt_nm_to_check; do | |
d50284c4 | 4700 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
d9898ee8 | 4701 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
d50284c4 | 4702 | IFS=$lt_save_ifs |
d9898ee8 | 4703 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
4704 | tmp_nm=$ac_dir/$lt_tmp_nm |
4705 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
d9898ee8 | 4706 | # Check to see if the nm accepts a BSD-compat flag. |
d50284c4 | 4707 | # Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
d9898ee8 | 4708 | # nm: unknown option "B" ignored |
4709 | # Tru64's nm complains that /dev/null is an invalid object file | |
d50284c4 CE |
4710 | # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
4711 | case $build_os in | |
4712 | mingw*) lt_bad_file=conftest.nm/nofile ;; | |
4713 | *) lt_bad_file=/dev/null ;; | |
4714 | esac | |
4715 | case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
4716 | *$lt_bad_file* | *'Invalid file or object type'*) | |
d9898ee8 | 4717 | lt_cv_path_NM="$tmp_nm -B" |
d50284c4 | 4718 | break 2 |
d9898ee8 | 4719 | ;; |
4720 | *) | |
4721 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4722 | */dev/null*) | |
4723 | lt_cv_path_NM="$tmp_nm -p" | |
d50284c4 | 4724 | break 2 |
d9898ee8 | 4725 | ;; |
4726 | *) | |
4727 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4728 | continue # so that we can try to find one that supports BSD flags | |
4729 | ;; | |
4730 | esac | |
4731 | ;; | |
4732 | esac | |
4733 | fi | |
4734 | done | |
d50284c4 | 4735 | IFS=$lt_save_ifs |
d9898ee8 | 4736 | done |
8d138742 | 4737 | : ${lt_cv_path_NM=no} |
d9898ee8 | 4738 | fi |
4739 | fi | |
b0322a85 | 4740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
8d138742 | 4741 | $as_echo "$lt_cv_path_NM" >&6; } |
d50284c4 CE |
4742 | if test no != "$lt_cv_path_NM"; then |
4743 | NM=$lt_cv_path_NM | |
d9898ee8 | 4744 | else |
8d138742 | 4745 | # Didn't find any BSD compatible name lister, look for dumpbin. |
b0322a85 CE |
4746 | if test -n "$DUMPBIN"; then : |
4747 | # Let the user override the test. | |
4748 | else | |
4749 | if test -n "$ac_tool_prefix"; then | |
4750 | for ac_prog in dumpbin "link -dump" | |
8d138742 CE |
4751 | do |
4752 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4753 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b0322a85 | 4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4755 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4756 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
8d138742 CE |
4757 | $as_echo_n "(cached) " >&6 |
4758 | else | |
4759 | if test -n "$DUMPBIN"; then | |
4760 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4761 | else | |
4762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4763 | for as_dir in $PATH | |
4764 | do | |
4765 | IFS=$as_save_IFS | |
4766 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4767 | for ac_exec_ext in '' $ac_executable_extensions; do |
4768 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4769 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
b0322a85 | 4770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
4771 | break 2 |
4772 | fi | |
4773 | done | |
b0322a85 | 4774 | done |
8d138742 | 4775 | IFS=$as_save_IFS |
d9898ee8 | 4776 | |
8d138742 CE |
4777 | fi |
4778 | fi | |
4779 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4780 | if test -n "$DUMPBIN"; then | |
b0322a85 | 4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
8d138742 CE |
4782 | $as_echo "$DUMPBIN" >&6; } |
4783 | else | |
b0322a85 | 4784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4785 | $as_echo "no" >&6; } |
4786 | fi | |
d9898ee8 | 4787 | |
d9898ee8 | 4788 | |
8d138742 CE |
4789 | test -n "$DUMPBIN" && break |
4790 | done | |
4791 | fi | |
4792 | if test -z "$DUMPBIN"; then | |
4793 | ac_ct_DUMPBIN=$DUMPBIN | |
b0322a85 | 4794 | for ac_prog in dumpbin "link -dump" |
8d138742 CE |
4795 | do |
4796 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4797 | set dummy $ac_prog; ac_word=$2 | |
b0322a85 | 4798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 4799 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 4800 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
8d138742 CE |
4801 | $as_echo_n "(cached) " >&6 |
4802 | else | |
4803 | if test -n "$ac_ct_DUMPBIN"; then | |
4804 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4805 | else | |
4806 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4807 | for as_dir in $PATH | |
4808 | do | |
4809 | IFS=$as_save_IFS | |
4810 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
4811 | for ac_exec_ext in '' $ac_executable_extensions; do |
4812 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 4813 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
b0322a85 | 4814 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 4815 | break 2 |
ac40fd9e | 4816 | fi |
8d138742 | 4817 | done |
b0322a85 | 4818 | done |
8d138742 | 4819 | IFS=$as_save_IFS |
d9898ee8 | 4820 | |
8d138742 CE |
4821 | fi |
4822 | fi | |
4823 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4824 | if test -n "$ac_ct_DUMPBIN"; then | |
b0322a85 | 4825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
8d138742 CE |
4826 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
4827 | else | |
b0322a85 | 4828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
4829 | $as_echo "no" >&6; } |
4830 | fi | |
d9898ee8 | 4831 | |
8d138742 CE |
4832 | |
4833 | test -n "$ac_ct_DUMPBIN" && break | |
4834 | done | |
4835 | ||
4836 | if test "x$ac_ct_DUMPBIN" = x; then | |
4837 | DUMPBIN=":" | |
d9898ee8 | 4838 | else |
8d138742 CE |
4839 | case $cross_compiling:$ac_tool_warned in |
4840 | yes:) | |
b0322a85 | 4841 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
4842 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4843 | ac_tool_warned=yes ;; | |
4844 | esac | |
4845 | DUMPBIN=$ac_ct_DUMPBIN | |
d9898ee8 | 4846 | fi |
8d138742 | 4847 | fi |
d9898ee8 | 4848 | |
d50284c4 | 4849 | case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in |
b0322a85 | 4850 | *COFF*) |
d50284c4 | 4851 | DUMPBIN="$DUMPBIN -symbols -headers" |
b0322a85 CE |
4852 | ;; |
4853 | *) | |
4854 | DUMPBIN=: | |
4855 | ;; | |
4856 | esac | |
4857 | fi | |
d9898ee8 | 4858 | |
d50284c4 CE |
4859 | if test : != "$DUMPBIN"; then |
4860 | NM=$DUMPBIN | |
8d138742 CE |
4861 | fi |
4862 | fi | |
4863 | test -z "$NM" && NM=nm | |
d9898ee8 | 4864 | |
d9898ee8 | 4865 | |
d9898ee8 | 4866 | |
d9898ee8 | 4867 | |
d9898ee8 | 4868 | |
d9898ee8 | 4869 | |
b0322a85 | 4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
8d138742 | 4871 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
b0322a85 | 4872 | if ${lt_cv_nm_interface+:} false; then : |
8d138742 CE |
4873 | $as_echo_n "(cached) " >&6 |
4874 | else | |
4875 | lt_cv_nm_interface="BSD nm" | |
4876 | echo "int some_variable = 0;" > conftest.$ac_ext | |
b0322a85 | 4877 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
8d138742 CE |
4878 | (eval "$ac_compile" 2>conftest.err) |
4879 | cat conftest.err >&5 | |
b0322a85 | 4880 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
8d138742 CE |
4881 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4882 | cat conftest.err >&5 | |
b0322a85 | 4883 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
8d138742 CE |
4884 | cat conftest.out >&5 |
4885 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4886 | lt_cv_nm_interface="MS dumpbin" | |
d9898ee8 | 4887 | fi |
8d138742 CE |
4888 | rm -f conftest* |
4889 | fi | |
b0322a85 | 4890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
8d138742 | 4891 | $as_echo "$lt_cv_nm_interface" >&6; } |
d9898ee8 | 4892 | |
8d138742 | 4893 | # find the maximum length of command line arguments |
b0322a85 | 4894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
8d138742 | 4895 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
b0322a85 | 4896 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
8d138742 CE |
4897 | $as_echo_n "(cached) " >&6 |
4898 | else | |
4899 | i=0 | |
d50284c4 | 4900 | teststring=ABCD |
d9898ee8 | 4901 | |
8d138742 CE |
4902 | case $build_os in |
4903 | msdosdjgpp*) | |
4904 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4905 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4906 | # during glob expansion). Even if it were fixed, the result of this | |
4907 | # check would be larger than it should be. | |
4908 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4909 | ;; | |
ac40fd9e | 4910 | |
8d138742 CE |
4911 | gnu*) |
4912 | # Under GNU Hurd, this test is not required because there is | |
4913 | # no limit to the length of command line arguments. | |
4914 | # Libtool will interpret -1 as no limit whatsoever | |
4915 | lt_cv_sys_max_cmd_len=-1; | |
4916 | ;; | |
d9898ee8 | 4917 | |
8d138742 CE |
4918 | cygwin* | mingw* | cegcc*) |
4919 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4920 | # about 5 minutes as the teststring grows exponentially. | |
4921 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4922 | # you end up with a "frozen" computer, even though with patience | |
4923 | # the test eventually succeeds (with a max line length of 256k). | |
4924 | # Instead, let's just punt: use the minimum linelength reported by | |
4925 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4926 | lt_cv_sys_max_cmd_len=8192; | |
d9898ee8 | 4927 | ;; |
8d138742 | 4928 | |
b0322a85 CE |
4929 | mint*) |
4930 | # On MiNT this can take a long time and run out of memory. | |
4931 | lt_cv_sys_max_cmd_len=8192; | |
4932 | ;; | |
4933 | ||
8d138742 CE |
4934 | amigaos*) |
4935 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4936 | # So we just punt and use a minimum line length of 8192. | |
4937 | lt_cv_sys_max_cmd_len=8192; | |
d9898ee8 | 4938 | ;; |
8d138742 | 4939 | |
d50284c4 | 4940 | bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) |
8d138742 CE |
4941 | # This has been around since 386BSD, at least. Likely further. |
4942 | if test -x /sbin/sysctl; then | |
4943 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4944 | elif test -x /usr/sbin/sysctl; then | |
4945 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4946 | else | |
4947 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
4948 | fi | |
4949 | # And add a safety zone | |
4950 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4951 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
d9898ee8 | 4952 | ;; |
8d138742 CE |
4953 | |
4954 | interix*) | |
4955 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4956 | lt_cv_sys_max_cmd_len=196608 | |
d9898ee8 | 4957 | ;; |
8d138742 | 4958 | |
b0322a85 CE |
4959 | os2*) |
4960 | # The test takes a long time on OS/2. | |
4961 | lt_cv_sys_max_cmd_len=8192 | |
4962 | ;; | |
4963 | ||
8d138742 CE |
4964 | osf*) |
4965 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4966 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4967 | # nice to cause kernel panics so lets avoid the loop below. | |
4968 | # First set a reasonable default. | |
4969 | lt_cv_sys_max_cmd_len=16384 | |
4970 | # | |
4971 | if test -x /sbin/sysconfig; then | |
4972 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4973 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4974 | esac | |
4975 | fi | |
d9898ee8 | 4976 | ;; |
8d138742 CE |
4977 | sco3.2v5*) |
4978 | lt_cv_sys_max_cmd_len=102400 | |
4979 | ;; | |
4980 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4981 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4982 | if test -n "$kargmax"; then | |
4983 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4984 | else | |
4985 | lt_cv_sys_max_cmd_len=32768 | |
4986 | fi | |
4987 | ;; | |
4988 | *) | |
4989 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
d50284c4 CE |
4990 | if test -n "$lt_cv_sys_max_cmd_len" && \ |
4991 | test undefined != "$lt_cv_sys_max_cmd_len"; then | |
8d138742 CE |
4992 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
4993 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4994 | else | |
4995 | # Make teststring a little bigger before we do anything with it. | |
4996 | # a 1K string should be a reasonable start. | |
d50284c4 | 4997 | for i in 1 2 3 4 5 6 7 8; do |
8d138742 CE |
4998 | teststring=$teststring$teststring |
4999 | done | |
5000 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5001 | # If test is not a shell built-in, we'll probably end up computing a | |
5002 | # maximum length that is only half of the actual maximum length, but | |
5003 | # we can't tell. | |
d50284c4 | 5004 | while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
b0322a85 | 5005 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
d50284c4 | 5006 | test 17 != "$i" # 1/2 MB should be enough |
8d138742 CE |
5007 | do |
5008 | i=`expr $i + 1` | |
5009 | teststring=$teststring$teststring | |
5010 | done | |
5011 | # Only check the string length outside the loop. | |
5012 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5013 | teststring= | |
5014 | # Add a significant safety factor because C++ compilers can tack on | |
5015 | # massive amounts of additional arguments before passing them to the | |
5016 | # linker. It appears as though 1/2 is a usable value. | |
5017 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5018 | fi | |
d9898ee8 | 5019 | ;; |
5020 | esac | |
d9898ee8 | 5021 | |
8d138742 | 5022 | fi |
d9898ee8 | 5023 | |
d50284c4 | 5024 | if test -n "$lt_cv_sys_max_cmd_len"; then |
b0322a85 | 5025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
8d138742 CE |
5026 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
5027 | else | |
b0322a85 | 5028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
8d138742 | 5029 | $as_echo "none" >&6; } |
d9898ee8 | 5030 | fi |
8d138742 | 5031 | max_cmd_len=$lt_cv_sys_max_cmd_len |
d9898ee8 | 5032 | |
5033 | ||
5034 | ||
5035 | ||
d9898ee8 | 5036 | |
d9898ee8 | 5037 | |
8d138742 CE |
5038 | : ${CP="cp -f"} |
5039 | : ${MV="mv -f"} | |
5040 | : ${RM="rm -f"} | |
d9898ee8 | 5041 | |
8d138742 CE |
5042 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
5043 | lt_unset=unset | |
d9898ee8 | 5044 | else |
8d138742 CE |
5045 | lt_unset=false |
5046 | fi | |
d9898ee8 | 5047 | |
d9898ee8 | 5048 | |
d9898ee8 | 5049 | |
dd184caf | 5050 | |
d9898ee8 | 5051 | |
8d138742 CE |
5052 | # test EBCDIC or ASCII |
5053 | case `echo X|tr X '\101'` in | |
5054 | A) # ASCII based system | |
5055 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5056 | lt_SP2NL='tr \040 \012' | |
5057 | lt_NL2SP='tr \015\012 \040\040' | |
d9898ee8 | 5058 | ;; |
8d138742 CE |
5059 | *) # EBCDIC based system |
5060 | lt_SP2NL='tr \100 \n' | |
5061 | lt_NL2SP='tr \r\n \100\100' | |
d9898ee8 | 5062 | ;; |
8d138742 | 5063 | esac |
d9898ee8 | 5064 | |
5065 | ||
d9898ee8 | 5066 | |
d9898ee8 | 5067 | |
5068 | ||
8d138742 CE |
5069 | |
5070 | ||
5071 | ||
5072 | ||
b0322a85 CE |
5073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
5074 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5075 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
5076 | $as_echo_n "(cached) " >&6 | |
5077 | else | |
5078 | case $host in | |
5079 | *-*-mingw* ) | |
5080 | case $build in | |
5081 | *-*-mingw* ) # actually msys | |
5082 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5083 | ;; | |
5084 | *-*-cygwin* ) | |
5085 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5086 | ;; | |
5087 | * ) # otherwise, assume *nix | |
5088 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
5089 | ;; | |
5090 | esac | |
5091 | ;; | |
5092 | *-*-cygwin* ) | |
5093 | case $build in | |
5094 | *-*-mingw* ) # actually msys | |
5095 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5096 | ;; | |
5097 | *-*-cygwin* ) | |
5098 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5099 | ;; | |
5100 | * ) # otherwise, assume *nix | |
5101 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5102 | ;; | |
5103 | esac | |
5104 | ;; | |
5105 | * ) # unhandled hosts (and "normal" native builds) | |
5106 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5107 | ;; | |
5108 | esac | |
5109 | ||
5110 | fi | |
5111 | ||
5112 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
5114 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
5115 | ||
5116 | ||
5117 | ||
5118 | ||
5119 | ||
5120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5121 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5122 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5123 | $as_echo_n "(cached) " >&6 | |
5124 | else | |
5125 | #assume ordinary cross tools, or native build. | |
5126 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5127 | case $host in | |
5128 | *-*-mingw* ) | |
5129 | case $build in | |
5130 | *-*-mingw* ) # actually msys | |
5131 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5132 | ;; | |
5133 | esac | |
5134 | ;; | |
5135 | esac | |
5136 | ||
5137 | fi | |
5138 | ||
5139 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5141 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5142 | ||
5143 | ||
5144 | ||
5145 | ||
5146 | ||
5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
8d138742 | 5148 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
b0322a85 | 5149 | if ${lt_cv_ld_reload_flag+:} false; then : |
8d138742 | 5150 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5151 | else |
8d138742 CE |
5152 | lt_cv_ld_reload_flag='-r' |
5153 | fi | |
b0322a85 | 5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
8d138742 CE |
5155 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
5156 | reload_flag=$lt_cv_ld_reload_flag | |
5157 | case $reload_flag in | |
5158 | "" | " "*) ;; | |
5159 | *) reload_flag=" $reload_flag" ;; | |
5160 | esac | |
5161 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5162 | case $host_os in | |
b0322a85 | 5163 | cygwin* | mingw* | pw32* | cegcc*) |
d50284c4 | 5164 | if test yes != "$GCC"; then |
b0322a85 CE |
5165 | reload_cmds=false |
5166 | fi | |
5167 | ;; | |
8d138742 | 5168 | darwin*) |
d50284c4 CE |
5169 | if test yes = "$GCC"; then |
5170 | reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
8d138742 CE |
5171 | else |
5172 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5173 | fi | |
5174 | ;; | |
dd184caf | 5175 | esac |
d9898ee8 | 5176 | |
dd184caf | 5177 | |
d9898ee8 | 5178 | |
d9898ee8 | 5179 | |
dd184caf | 5180 | |
d9898ee8 | 5181 | |
d9898ee8 | 5182 | |
d9898ee8 | 5183 | |
8d138742 CE |
5184 | |
5185 | if test -n "$ac_tool_prefix"; then | |
5186 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5187 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
b0322a85 | 5188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5189 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5190 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
8d138742 | 5191 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5192 | else |
8d138742 CE |
5193 | if test -n "$OBJDUMP"; then |
5194 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
d9898ee8 | 5195 | else |
8d138742 CE |
5196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5197 | for as_dir in $PATH | |
5198 | do | |
5199 | IFS=$as_save_IFS | |
5200 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5201 | for ac_exec_ext in '' $ac_executable_extensions; do |
5202 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5203 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
b0322a85 | 5204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5205 | break 2 |
5206 | fi | |
5207 | done | |
b0322a85 | 5208 | done |
8d138742 | 5209 | IFS=$as_save_IFS |
d9898ee8 | 5210 | |
8d138742 CE |
5211 | fi |
5212 | fi | |
5213 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5214 | if test -n "$OBJDUMP"; then | |
b0322a85 | 5215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
8d138742 CE |
5216 | $as_echo "$OBJDUMP" >&6; } |
5217 | else | |
b0322a85 | 5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5219 | $as_echo "no" >&6; } |
d9898ee8 | 5220 | fi |
dd184caf | 5221 | |
d9898ee8 | 5222 | |
8d138742 CE |
5223 | fi |
5224 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5225 | ac_ct_OBJDUMP=$OBJDUMP | |
5226 | # Extract the first word of "objdump", so it can be a program name with args. | |
5227 | set dummy objdump; ac_word=$2 | |
b0322a85 | 5228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5229 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5230 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
8d138742 | 5231 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5232 | else |
8d138742 CE |
5233 | if test -n "$ac_ct_OBJDUMP"; then |
5234 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5235 | else | |
5236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5237 | for as_dir in $PATH | |
5238 | do | |
5239 | IFS=$as_save_IFS | |
5240 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5241 | for ac_exec_ext in '' $ac_executable_extensions; do |
5242 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5243 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
b0322a85 | 5244 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5245 | break 2 |
5246 | fi | |
5247 | done | |
b0322a85 | 5248 | done |
8d138742 | 5249 | IFS=$as_save_IFS |
d9898ee8 | 5250 | |
8d138742 CE |
5251 | fi |
5252 | fi | |
5253 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5254 | if test -n "$ac_ct_OBJDUMP"; then | |
b0322a85 | 5255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
8d138742 CE |
5256 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
5257 | else | |
b0322a85 | 5258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5259 | $as_echo "no" >&6; } |
d9898ee8 | 5260 | fi |
dd184caf | 5261 | |
8d138742 CE |
5262 | if test "x$ac_ct_OBJDUMP" = x; then |
5263 | OBJDUMP="false" | |
5264 | else | |
5265 | case $cross_compiling:$ac_tool_warned in | |
5266 | yes:) | |
b0322a85 | 5267 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5268 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5269 | ac_tool_warned=yes ;; | |
5270 | esac | |
5271 | OBJDUMP=$ac_ct_OBJDUMP | |
5272 | fi | |
d9898ee8 | 5273 | else |
8d138742 | 5274 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
d9898ee8 | 5275 | fi |
5276 | ||
8d138742 | 5277 | test -z "$OBJDUMP" && OBJDUMP=objdump |
d9898ee8 | 5278 | |
5279 | ||
d9898ee8 | 5280 | |
d9898ee8 | 5281 | |
d9898ee8 | 5282 | |
dd184caf | 5283 | |
d9898ee8 | 5284 | |
d9898ee8 | 5285 | |
8d138742 | 5286 | |
b0322a85 | 5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
8d138742 | 5288 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
b0322a85 | 5289 | if ${lt_cv_deplibs_check_method+:} false; then : |
8d138742 | 5290 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5291 | else |
8d138742 CE |
5292 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5293 | lt_cv_file_magic_test_file= | |
5294 | lt_cv_deplibs_check_method='unknown' | |
5295 | # Need to set the preceding variable on all platforms that support | |
5296 | # interlibrary dependencies. | |
5297 | # 'none' -- dependencies not supported. | |
d50284c4 | 5298 | # 'unknown' -- same as none, but documents that we really don't know. |
8d138742 CE |
5299 | # 'pass_all' -- all dependencies passed with no checks. |
5300 | # 'test_compile' -- check by making test program. | |
5301 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
d50284c4 CE |
5302 | # that responds to the $file_magic_cmd with a given extended regex. |
5303 | # If you have 'file' or equivalent on your system and you're not sure | |
5304 | # whether 'pass_all' will *always* work, you probably want this one. | |
d9898ee8 | 5305 | |
8d138742 CE |
5306 | case $host_os in |
5307 | aix[4-9]*) | |
5308 | lt_cv_deplibs_check_method=pass_all | |
5309 | ;; | |
d9898ee8 | 5310 | |
8d138742 CE |
5311 | beos*) |
5312 | lt_cv_deplibs_check_method=pass_all | |
5313 | ;; | |
d9898ee8 | 5314 | |
8d138742 CE |
5315 | bsdi[45]*) |
5316 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5317 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5318 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5319 | ;; | |
d9898ee8 | 5320 | |
8d138742 CE |
5321 | cygwin*) |
5322 | # func_win32_libid is a shell function defined in ltmain.sh | |
5323 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5324 | lt_cv_file_magic_cmd='func_win32_libid' | |
5325 | ;; | |
d9898ee8 | 5326 | |
8d138742 CE |
5327 | mingw* | pw32*) |
5328 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5329 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5330 | # unless we find 'file', for example because we are cross-compiling. | |
d50284c4 | 5331 | if ( file / ) >/dev/null 2>&1; then |
8d138742 CE |
5332 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5333 | lt_cv_file_magic_cmd='func_win32_libid' | |
5334 | else | |
b0322a85 CE |
5335 | # Keep this pattern in sync with the one in func_win32_libid. |
5336 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
8d138742 CE |
5337 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
5338 | fi | |
5339 | ;; | |
d9898ee8 | 5340 | |
b0322a85 | 5341 | cegcc*) |
8d138742 CE |
5342 | # use the weaker test based on 'objdump'. See mingw*. |
5343 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5344 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5345 | ;; | |
d9898ee8 | 5346 | |
8d138742 CE |
5347 | darwin* | rhapsody*) |
5348 | lt_cv_deplibs_check_method=pass_all | |
5349 | ;; | |
5350 | ||
5351 | freebsd* | dragonfly*) | |
5352 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5353 | case $host_cpu in | |
5354 | i*86 ) | |
5355 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5356 | # Let's accept both of them until this is cleared up. | |
5357 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5358 | lt_cv_file_magic_cmd=/usr/bin/file | |
5359 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5360 | ;; | |
5361 | esac | |
5362 | else | |
5363 | lt_cv_deplibs_check_method=pass_all | |
5364 | fi | |
5365 | ;; | |
dd184caf | 5366 | |
b0322a85 CE |
5367 | haiku*) |
5368 | lt_cv_deplibs_check_method=pass_all | |
5369 | ;; | |
5370 | ||
8d138742 CE |
5371 | hpux10.20* | hpux11*) |
5372 | lt_cv_file_magic_cmd=/usr/bin/file | |
5373 | case $host_cpu in | |
5374 | ia64*) | |
5375 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5376 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5377 | ;; | |
5378 | hppa*64*) | |
b0322a85 | 5379 | 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 |
5380 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5381 | ;; | |
5382 | *) | |
b0322a85 | 5383 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
8d138742 CE |
5384 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5385 | ;; | |
5386 | esac | |
5387 | ;; | |
d9898ee8 | 5388 | |
8d138742 CE |
5389 | interix[3-9]*) |
5390 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5391 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5392 | ;; | |
d9898ee8 | 5393 | |
8d138742 CE |
5394 | irix5* | irix6* | nonstopux*) |
5395 | case $LD in | |
5396 | *-32|*"-32 ") libmagic=32-bit;; | |
5397 | *-n32|*"-n32 ") libmagic=N32;; | |
5398 | *-64|*"-64 ") libmagic=64-bit;; | |
5399 | *) libmagic=never-match;; | |
5400 | esac | |
5401 | lt_cv_deplibs_check_method=pass_all | |
5402 | ;; | |
d9898ee8 | 5403 | |
b0322a85 | 5404 | # This must be glibc/ELF. |
d50284c4 | 5405 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8d138742 CE |
5406 | lt_cv_deplibs_check_method=pass_all |
5407 | ;; | |
d9898ee8 | 5408 | |
8d138742 CE |
5409 | netbsd*) |
5410 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5411 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5412 | else | |
5413 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5414 | fi | |
5415 | ;; | |
d9898ee8 | 5416 | |
8d138742 CE |
5417 | newos6*) |
5418 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5419 | lt_cv_file_magic_cmd=/usr/bin/file | |
5420 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5421 | ;; | |
d9898ee8 | 5422 | |
8d138742 CE |
5423 | *nto* | *qnx*) |
5424 | lt_cv_deplibs_check_method=pass_all | |
5425 | ;; | |
d9898ee8 | 5426 | |
d50284c4 CE |
5427 | openbsd* | bitrig*) |
5428 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
8d138742 CE |
5429 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
5430 | else | |
5431 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5432 | fi | |
5433 | ;; | |
d9898ee8 | 5434 | |
8d138742 CE |
5435 | osf3* | osf4* | osf5*) |
5436 | lt_cv_deplibs_check_method=pass_all | |
5437 | ;; | |
d9898ee8 | 5438 | |
8d138742 CE |
5439 | rdos*) |
5440 | lt_cv_deplibs_check_method=pass_all | |
5441 | ;; | |
d9898ee8 | 5442 | |
8d138742 CE |
5443 | solaris*) |
5444 | lt_cv_deplibs_check_method=pass_all | |
5445 | ;; | |
d9898ee8 | 5446 | |
8d138742 CE |
5447 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
5448 | lt_cv_deplibs_check_method=pass_all | |
5449 | ;; | |
d9898ee8 | 5450 | |
8d138742 CE |
5451 | sysv4 | sysv4.3*) |
5452 | case $host_vendor in | |
5453 | motorola) | |
5454 | 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]' | |
5455 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5456 | ;; | |
5457 | ncr) | |
5458 | lt_cv_deplibs_check_method=pass_all | |
5459 | ;; | |
5460 | sequent) | |
5461 | lt_cv_file_magic_cmd='/bin/file' | |
5462 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5463 | ;; | |
5464 | sni) | |
5465 | lt_cv_file_magic_cmd='/bin/file' | |
5466 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5467 | lt_cv_file_magic_test_file=/lib/libc.so | |
5468 | ;; | |
5469 | siemens) | |
5470 | lt_cv_deplibs_check_method=pass_all | |
5471 | ;; | |
5472 | pc) | |
5473 | lt_cv_deplibs_check_method=pass_all | |
5474 | ;; | |
5475 | esac | |
5476 | ;; | |
d9898ee8 | 5477 | |
8d138742 CE |
5478 | tpf*) |
5479 | lt_cv_deplibs_check_method=pass_all | |
5480 | ;; | |
d50284c4 CE |
5481 | os2*) |
5482 | lt_cv_deplibs_check_method=pass_all | |
5483 | ;; | |
dd184caf | 5484 | esac |
d9898ee8 | 5485 | |
d9898ee8 | 5486 | fi |
b0322a85 | 5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
8d138742 | 5488 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
b0322a85 CE |
5489 | |
5490 | file_magic_glob= | |
5491 | want_nocaseglob=no | |
5492 | if test "$build" = "$host"; then | |
5493 | case $host_os in | |
5494 | mingw* | pw32*) | |
5495 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5496 | want_nocaseglob=yes | |
5497 | else | |
5498 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5499 | fi | |
5500 | ;; | |
5501 | esac | |
5502 | fi | |
5503 | ||
8d138742 CE |
5504 | file_magic_cmd=$lt_cv_file_magic_cmd |
5505 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5506 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
dd184caf | 5507 | |
d9898ee8 | 5508 | |
d9898ee8 | 5509 | |
d9898ee8 | 5510 | |
5511 | ||
5512 | ||
d9898ee8 | 5513 | |
dd184caf | 5514 | |
d9898ee8 | 5515 | |
8d138742 | 5516 | |
b0322a85 CE |
5517 | |
5518 | ||
5519 | ||
5520 | ||
5521 | ||
5522 | ||
5523 | ||
5524 | ||
5525 | ||
5526 | ||
8d138742 CE |
5527 | |
5528 | ||
5529 | if test -n "$ac_tool_prefix"; then | |
b0322a85 CE |
5530 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
5531 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5533 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5534 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
8d138742 | 5535 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5536 | else |
b0322a85 CE |
5537 | if test -n "$DLLTOOL"; then |
5538 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
8d138742 CE |
5539 | else |
5540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5541 | for as_dir in $PATH | |
5542 | do | |
5543 | IFS=$as_save_IFS | |
5544 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5545 | for ac_exec_ext in '' $ac_executable_extensions; do |
5546 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5547 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5548 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8d138742 CE |
5549 | break 2 |
5550 | fi | |
5551 | done | |
b0322a85 | 5552 | done |
8d138742 | 5553 | IFS=$as_save_IFS |
d9898ee8 | 5554 | |
8d138742 CE |
5555 | fi |
5556 | fi | |
b0322a85 CE |
5557 | DLLTOOL=$ac_cv_prog_DLLTOOL |
5558 | if test -n "$DLLTOOL"; then | |
5559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5560 | $as_echo "$DLLTOOL" >&6; } | |
8d138742 | 5561 | else |
b0322a85 | 5562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5563 | $as_echo "no" >&6; } |
d9898ee8 | 5564 | fi |
dd184caf | 5565 | |
d9898ee8 | 5566 | |
d9898ee8 | 5567 | fi |
b0322a85 CE |
5568 | if test -z "$ac_cv_prog_DLLTOOL"; then |
5569 | ac_ct_DLLTOOL=$DLLTOOL | |
5570 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5571 | set dummy dlltool; ac_word=$2 | |
5572 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5573 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5574 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
8d138742 CE |
5575 | $as_echo_n "(cached) " >&6 |
5576 | else | |
b0322a85 CE |
5577 | if test -n "$ac_ct_DLLTOOL"; then |
5578 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
8d138742 CE |
5579 | else |
5580 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5581 | for as_dir in $PATH | |
5582 | do | |
5583 | IFS=$as_save_IFS | |
5584 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5585 | for ac_exec_ext in '' $ac_executable_extensions; do |
5586 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5587 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5588 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8d138742 CE |
5589 | break 2 |
5590 | fi | |
5591 | done | |
b0322a85 | 5592 | done |
8d138742 | 5593 | IFS=$as_save_IFS |
d9898ee8 | 5594 | |
5595 | fi | |
8d138742 | 5596 | fi |
b0322a85 CE |
5597 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
5598 | if test -n "$ac_ct_DLLTOOL"; then | |
5599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5600 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
8d138742 | 5601 | else |
b0322a85 | 5602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
5603 | $as_echo "no" >&6; } |
5604 | fi | |
d9898ee8 | 5605 | |
b0322a85 CE |
5606 | if test "x$ac_ct_DLLTOOL" = x; then |
5607 | DLLTOOL="false" | |
8d138742 CE |
5608 | else |
5609 | case $cross_compiling:$ac_tool_warned in | |
5610 | yes:) | |
b0322a85 | 5611 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
5612 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
5613 | ac_tool_warned=yes ;; | |
5614 | esac | |
b0322a85 | 5615 | DLLTOOL=$ac_ct_DLLTOOL |
8d138742 CE |
5616 | fi |
5617 | else | |
b0322a85 | 5618 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
d9898ee8 | 5619 | fi |
5620 | ||
b0322a85 CE |
5621 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
5622 | ||
5623 | ||
5624 | ||
d9898ee8 | 5625 | |
8d138742 CE |
5626 | |
5627 | ||
5628 | ||
5629 | ||
5630 | ||
5631 | ||
b0322a85 CE |
5632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
5633 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5634 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5635 | $as_echo_n "(cached) " >&6 | |
5636 | else | |
5637 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5638 | ||
5639 | case $host_os in | |
5640 | cygwin* | mingw* | pw32* | cegcc*) | |
d50284c4 CE |
5641 | # two different shell functions defined in ltmain.sh; |
5642 | # decide which one to use based on capabilities of $DLLTOOL | |
b0322a85 CE |
5643 | case `$DLLTOOL --help 2>&1` in |
5644 | *--identify-strict*) | |
5645 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5646 | ;; | |
5647 | *) | |
5648 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5649 | ;; | |
5650 | esac | |
5651 | ;; | |
5652 | *) | |
5653 | # fallback: assume linklib IS sharedlib | |
d50284c4 | 5654 | lt_cv_sharedlib_from_linklib_cmd=$ECHO |
b0322a85 CE |
5655 | ;; |
5656 | esac | |
5657 | ||
5658 | fi | |
5659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5660 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5661 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5662 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5663 | ||
5664 | ||
5665 | ||
5666 | ||
8d138742 CE |
5667 | |
5668 | ||
5669 | ||
5670 | ||
5671 | if test -n "$ac_tool_prefix"; then | |
b0322a85 CE |
5672 | for ac_prog in ar |
5673 | do | |
5674 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5675 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5676 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5677 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5678 | if ${ac_cv_prog_AR+:} false; then : |
8d138742 | 5679 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5680 | else |
b0322a85 CE |
5681 | if test -n "$AR"; then |
5682 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
d9898ee8 | 5683 | else |
5684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5685 | for as_dir in $PATH | |
5686 | do | |
5687 | IFS=$as_save_IFS | |
5688 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5689 | for ac_exec_ext in '' $ac_executable_extensions; do |
5690 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5691 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5692 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
d9898ee8 | 5693 | break 2 |
5694 | fi | |
5695 | done | |
b0322a85 | 5696 | done |
dd184caf | 5697 | IFS=$as_save_IFS |
d9898ee8 | 5698 | |
5699 | fi | |
5700 | fi | |
b0322a85 CE |
5701 | AR=$ac_cv_prog_AR |
5702 | if test -n "$AR"; then | |
5703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5704 | $as_echo "$AR" >&6; } | |
d9898ee8 | 5705 | else |
b0322a85 | 5706 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5707 | $as_echo "no" >&6; } |
d9898ee8 | 5708 | fi |
5709 | ||
dd184caf | 5710 | |
b0322a85 CE |
5711 | test -n "$AR" && break |
5712 | done | |
d9898ee8 | 5713 | fi |
b0322a85 CE |
5714 | if test -z "$AR"; then |
5715 | ac_ct_AR=$AR | |
5716 | for ac_prog in ar | |
5717 | do | |
5718 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5719 | set dummy $ac_prog; ac_word=$2 | |
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8d138742 | 5721 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5722 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
8d138742 | 5723 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5724 | else |
b0322a85 CE |
5725 | if test -n "$ac_ct_AR"; then |
5726 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5727 | else | |
5728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5729 | for as_dir in $PATH | |
5730 | do | |
5731 | IFS=$as_save_IFS | |
5732 | test -z "$as_dir" && as_dir=. | |
5733 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5734 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5735 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5737 | break 2 | |
5738 | fi | |
5739 | done | |
5740 | done | |
5741 | IFS=$as_save_IFS | |
5742 | ||
5743 | fi | |
5744 | fi | |
5745 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5746 | if test -n "$ac_ct_AR"; then | |
5747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5748 | $as_echo "$ac_ct_AR" >&6; } | |
5749 | else | |
5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5751 | $as_echo "no" >&6; } | |
5752 | fi | |
5753 | ||
5754 | ||
5755 | test -n "$ac_ct_AR" && break | |
5756 | done | |
5757 | ||
5758 | if test "x$ac_ct_AR" = x; then | |
5759 | AR="false" | |
5760 | else | |
5761 | case $cross_compiling:$ac_tool_warned in | |
5762 | yes:) | |
5763 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5764 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5765 | ac_tool_warned=yes ;; | |
5766 | esac | |
5767 | AR=$ac_ct_AR | |
5768 | fi | |
5769 | fi | |
5770 | ||
5771 | : ${AR=ar} | |
5772 | : ${AR_FLAGS=cru} | |
5773 | ||
5774 | ||
5775 | ||
5776 | ||
5777 | ||
5778 | ||
5779 | ||
5780 | ||
5781 | ||
5782 | ||
5783 | ||
5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
5785 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5786 | if ${lt_cv_ar_at_file+:} false; then : | |
5787 | $as_echo_n "(cached) " >&6 | |
5788 | else | |
5789 | lt_cv_ar_at_file=no | |
5790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5791 | /* end confdefs.h. */ | |
5792 | ||
5793 | int | |
5794 | main () | |
5795 | { | |
5796 | ||
5797 | ; | |
5798 | return 0; | |
5799 | } | |
5800 | _ACEOF | |
5801 | if ac_fn_c_try_compile "$LINENO"; then : | |
5802 | echo conftest.$ac_objext > conftest.lst | |
5803 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5804 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5805 | (eval $lt_ar_try) 2>&5 | |
5806 | ac_status=$? | |
5807 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5808 | test $ac_status = 0; } | |
d50284c4 | 5809 | if test 0 -eq "$ac_status"; then |
b0322a85 CE |
5810 | # Ensure the archiver fails upon bogus file names. |
5811 | rm -f conftest.$ac_objext libconftest.a | |
5812 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5813 | (eval $lt_ar_try) 2>&5 | |
5814 | ac_status=$? | |
5815 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5816 | test $ac_status = 0; } | |
d50284c4 | 5817 | if test 0 -ne "$ac_status"; then |
b0322a85 CE |
5818 | lt_cv_ar_at_file=@ |
5819 | fi | |
5820 | fi | |
5821 | rm -f conftest.* libconftest.a | |
5822 | ||
5823 | fi | |
5824 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5825 | ||
5826 | fi | |
5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5828 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
5829 | ||
d50284c4 | 5830 | if test no = "$lt_cv_ar_at_file"; then |
b0322a85 CE |
5831 | archiver_list_spec= |
5832 | else | |
5833 | archiver_list_spec=$lt_cv_ar_at_file | |
5834 | fi | |
5835 | ||
5836 | ||
5837 | ||
5838 | ||
5839 | ||
5840 | ||
5841 | ||
5842 | if test -n "$ac_tool_prefix"; then | |
5843 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5844 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5846 | $as_echo_n "checking for $ac_word... " >&6; } | |
5847 | if ${ac_cv_prog_STRIP+:} false; then : | |
5848 | $as_echo_n "(cached) " >&6 | |
5849 | else | |
5850 | if test -n "$STRIP"; then | |
5851 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5852 | else | |
5853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5854 | for as_dir in $PATH | |
5855 | do | |
5856 | IFS=$as_save_IFS | |
5857 | test -z "$as_dir" && as_dir=. | |
5858 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5859 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5860 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
5861 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5862 | break 2 | |
5863 | fi | |
5864 | done | |
5865 | done | |
5866 | IFS=$as_save_IFS | |
5867 | ||
5868 | fi | |
5869 | fi | |
5870 | STRIP=$ac_cv_prog_STRIP | |
5871 | if test -n "$STRIP"; then | |
5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
5873 | $as_echo "$STRIP" >&6; } | |
5874 | else | |
5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5876 | $as_echo "no" >&6; } | |
5877 | fi | |
5878 | ||
5879 | ||
5880 | fi | |
5881 | if test -z "$ac_cv_prog_STRIP"; then | |
5882 | ac_ct_STRIP=$STRIP | |
5883 | # Extract the first word of "strip", so it can be a program name with args. | |
5884 | set dummy strip; ac_word=$2 | |
5885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5886 | $as_echo_n "checking for $ac_word... " >&6; } | |
5887 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
5888 | $as_echo_n "(cached) " >&6 | |
5889 | else | |
5890 | if test -n "$ac_ct_STRIP"; then | |
8d138742 | 5891 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
d9898ee8 | 5892 | else |
5893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5894 | for as_dir in $PATH | |
5895 | do | |
5896 | IFS=$as_save_IFS | |
5897 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5898 | for ac_exec_ext in '' $ac_executable_extensions; do |
5899 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5900 | ac_cv_prog_ac_ct_STRIP="strip" |
b0322a85 | 5901 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 5902 | break 2 |
5903 | fi | |
5904 | done | |
b0322a85 | 5905 | done |
dd184caf | 5906 | IFS=$as_save_IFS |
d9898ee8 | 5907 | |
5908 | fi | |
5909 | fi | |
8d138742 CE |
5910 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5911 | if test -n "$ac_ct_STRIP"; then | |
b0322a85 | 5912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
8d138742 | 5913 | $as_echo "$ac_ct_STRIP" >&6; } |
d9898ee8 | 5914 | else |
b0322a85 | 5915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5916 | $as_echo "no" >&6; } |
d9898ee8 | 5917 | fi |
5918 | ||
8d138742 CE |
5919 | if test "x$ac_ct_STRIP" = x; then |
5920 | STRIP=":" | |
dd184caf | 5921 | else |
5922 | case $cross_compiling:$ac_tool_warned in | |
5923 | yes:) | |
b0322a85 | 5924 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 5925 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 5926 | ac_tool_warned=yes ;; |
5927 | esac | |
8d138742 | 5928 | STRIP=$ac_ct_STRIP |
dd184caf | 5929 | fi |
8d138742 CE |
5930 | else |
5931 | STRIP="$ac_cv_prog_STRIP" | |
d9898ee8 | 5932 | fi |
5933 | ||
8d138742 | 5934 | test -z "$STRIP" && STRIP=: |
d9898ee8 | 5935 | |
d9898ee8 | 5936 | |
d9898ee8 | 5937 | |
8d138742 CE |
5938 | |
5939 | ||
5940 | ||
5941 | if test -n "$ac_tool_prefix"; then | |
5942 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5943 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b0322a85 | 5944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5945 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5946 | if ${ac_cv_prog_RANLIB+:} false; then : |
8d138742 | 5947 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 5948 | else |
8d138742 CE |
5949 | if test -n "$RANLIB"; then |
5950 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5951 | else | |
5952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5953 | for as_dir in $PATH | |
5954 | do | |
5955 | IFS=$as_save_IFS | |
5956 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5957 | for ac_exec_ext in '' $ac_executable_extensions; do |
5958 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5959 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
b0322a85 | 5960 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
5961 | break 2 |
5962 | fi | |
5963 | done | |
b0322a85 | 5964 | done |
8d138742 | 5965 | IFS=$as_save_IFS |
d9898ee8 | 5966 | |
8d138742 CE |
5967 | fi |
5968 | fi | |
5969 | RANLIB=$ac_cv_prog_RANLIB | |
5970 | if test -n "$RANLIB"; then | |
b0322a85 | 5971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
8d138742 CE |
5972 | $as_echo "$RANLIB" >&6; } |
5973 | else | |
b0322a85 | 5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 5975 | $as_echo "no" >&6; } |
d9898ee8 | 5976 | fi |
dd184caf | 5977 | |
d9898ee8 | 5978 | |
8d138742 CE |
5979 | fi |
5980 | if test -z "$ac_cv_prog_RANLIB"; then | |
5981 | ac_ct_RANLIB=$RANLIB | |
5982 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5983 | set dummy ranlib; ac_word=$2 | |
b0322a85 | 5984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 5985 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 5986 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
8d138742 CE |
5987 | $as_echo_n "(cached) " >&6 |
5988 | else | |
5989 | if test -n "$ac_ct_RANLIB"; then | |
5990 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5991 | else | |
5992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5993 | for as_dir in $PATH | |
5994 | do | |
5995 | IFS=$as_save_IFS | |
5996 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
5997 | for ac_exec_ext in '' $ac_executable_extensions; do |
5998 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 5999 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
b0322a85 | 6000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6001 | break 2 |
6002 | fi | |
6003 | done | |
b0322a85 | 6004 | done |
8d138742 | 6005 | IFS=$as_save_IFS |
d9898ee8 | 6006 | |
8d138742 CE |
6007 | fi |
6008 | fi | |
6009 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6010 | if test -n "$ac_ct_RANLIB"; then | |
b0322a85 | 6011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
8d138742 CE |
6012 | $as_echo "$ac_ct_RANLIB" >&6; } |
6013 | else | |
b0322a85 | 6014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6015 | $as_echo "no" >&6; } |
6016 | fi | |
6017 | ||
6018 | if test "x$ac_ct_RANLIB" = x; then | |
6019 | RANLIB=":" | |
6020 | else | |
6021 | case $cross_compiling:$ac_tool_warned in | |
6022 | yes:) | |
b0322a85 | 6023 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
6024 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
6025 | ac_tool_warned=yes ;; | |
dd184caf | 6026 | esac |
8d138742 CE |
6027 | RANLIB=$ac_ct_RANLIB |
6028 | fi | |
d9898ee8 | 6029 | else |
8d138742 CE |
6030 | RANLIB="$ac_cv_prog_RANLIB" |
6031 | fi | |
d9898ee8 | 6032 | |
8d138742 | 6033 | test -z "$RANLIB" && RANLIB=: |
dd184caf | 6034 | |
dd184caf | 6035 | |
d9898ee8 | 6036 | |
dd184caf | 6037 | |
dd184caf | 6038 | |
d9898ee8 | 6039 | |
8d138742 CE |
6040 | # Determine commands to create old-style static archives. |
6041 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6042 | old_postinstall_cmds='chmod 644 $oldlib' | |
6043 | old_postuninstall_cmds= | |
dd184caf | 6044 | |
8d138742 CE |
6045 | if test -n "$RANLIB"; then |
6046 | case $host_os in | |
d50284c4 | 6047 | bitrig* | openbsd*) |
b0322a85 | 6048 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
8d138742 CE |
6049 | ;; |
6050 | *) | |
b0322a85 | 6051 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
8d138742 CE |
6052 | ;; |
6053 | esac | |
b0322a85 | 6054 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
d9898ee8 | 6055 | fi |
dd184caf | 6056 | |
b0322a85 CE |
6057 | case $host_os in |
6058 | darwin*) | |
6059 | lock_old_archive_extraction=yes ;; | |
6060 | *) | |
6061 | lock_old_archive_extraction=no ;; | |
6062 | esac | |
6063 | ||
6064 | ||
6065 | ||
6066 | ||
6067 | ||
6068 | ||
d9898ee8 | 6069 | |
dd184caf | 6070 | |
d9898ee8 | 6071 | |
d9898ee8 | 6072 | |
d9898ee8 | 6073 | |
d9898ee8 | 6074 | |
d9898ee8 | 6075 | |
d9898ee8 | 6076 | |
d9898ee8 | 6077 | |
d9898ee8 | 6078 | |
6079 | ||
6080 | ||
6081 | ||
d9898ee8 | 6082 | |
dd184caf | 6083 | |
d9898ee8 | 6084 | |
d9898ee8 | 6085 | |
dd184caf | 6086 | |
d9898ee8 | 6087 | |
d9898ee8 | 6088 | |
d9898ee8 | 6089 | |
d9898ee8 | 6090 | |
dd184caf | 6091 | |
d9898ee8 | 6092 | |
d9898ee8 | 6093 | |
dd184caf | 6094 | |
d9898ee8 | 6095 | |
d9898ee8 | 6096 | |
d9898ee8 | 6097 | |
d9898ee8 | 6098 | |
6099 | ||
d9898ee8 | 6100 | |
d9898ee8 | 6101 | |
8d138742 CE |
6102 | # If no C compiler was specified, use CC. |
6103 | LTCC=${LTCC-"$CC"} | |
dd184caf | 6104 | |
8d138742 CE |
6105 | # If no C compiler flags were specified, use CFLAGS. |
6106 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 6107 | |
8d138742 CE |
6108 | # Allow CC to be a program name with arguments. |
6109 | compiler=$CC | |
6110 | ||
6111 | ||
6112 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
b0322a85 | 6113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
8d138742 | 6114 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
b0322a85 | 6115 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
8d138742 | 6116 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 6117 | else |
d9898ee8 | 6118 | |
8d138742 CE |
6119 | # These are sane defaults that work on at least a few old systems. |
6120 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
dd184caf | 6121 | |
8d138742 CE |
6122 | # Character class describing NM global symbol codes. |
6123 | symcode='[BCDEGRST]' | |
d9898ee8 | 6124 | |
8d138742 CE |
6125 | # Regexp to match symbols that can be accessed directly from C. |
6126 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6127 | ||
6128 | # Define system-specific variables. | |
6129 | case $host_os in | |
6130 | aix*) | |
6131 | symcode='[BCDT]' | |
6132 | ;; | |
6133 | cygwin* | mingw* | pw32* | cegcc*) | |
6134 | symcode='[ABCDGISTW]' | |
6135 | ;; | |
6136 | hpux*) | |
d50284c4 | 6137 | if test ia64 = "$host_cpu"; then |
8d138742 | 6138 | symcode='[ABCDEGRST]' |
dd184caf | 6139 | fi |
8d138742 CE |
6140 | ;; |
6141 | irix* | nonstopux*) | |
6142 | symcode='[BCDEGRST]' | |
6143 | ;; | |
6144 | osf*) | |
6145 | symcode='[BCDEGQRST]' | |
6146 | ;; | |
6147 | solaris*) | |
6148 | symcode='[BDRT]' | |
6149 | ;; | |
6150 | sco3.2v5*) | |
6151 | symcode='[DT]' | |
6152 | ;; | |
6153 | sysv4.2uw2*) | |
6154 | symcode='[DT]' | |
6155 | ;; | |
6156 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6157 | symcode='[ABDT]' | |
6158 | ;; | |
6159 | sysv4) | |
6160 | symcode='[DFNSTU]' | |
6161 | ;; | |
6162 | esac | |
6163 | ||
6164 | # If we're using GNU nm, then use its standard symbol codes. | |
6165 | case `$NM -V 2>&1` in | |
6166 | *GNU* | *'with BFD'*) | |
6167 | symcode='[ABCDGIRSTW]' ;; | |
6168 | esac | |
d9898ee8 | 6169 | |
d50284c4 CE |
6170 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
6171 | # Gets list of data symbols to import. | |
6172 | lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
6173 | # Adjust the below global symbol transforms to fixup imported variables. | |
6174 | lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
6175 | lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
6176 | lt_c_name_lib_hook="\ | |
6177 | -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
6178 | -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
6179 | else | |
6180 | # Disable hooks by default. | |
6181 | lt_cv_sys_global_symbol_to_import= | |
6182 | lt_cdecl_hook= | |
6183 | lt_c_name_hook= | |
6184 | lt_c_name_lib_hook= | |
6185 | fi | |
6186 | ||
8d138742 CE |
6187 | # Transform an extracted symbol line into a proper C declaration. |
6188 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6189 | # so use this general approach. | |
d50284c4 CE |
6190 | lt_cv_sys_global_symbol_to_cdecl="sed -n"\ |
6191 | $lt_cdecl_hook\ | |
6192 | " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
6193 | " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
d9898ee8 | 6194 | |
8d138742 | 6195 | # Transform an extracted symbol line into symbol name and symbol address |
d50284c4 CE |
6196 | lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ |
6197 | $lt_c_name_hook\ | |
6198 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6199 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
6200 | ||
6201 | # Transform an extracted symbol line into symbol name with lib prefix and | |
6202 | # symbol address. | |
6203 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
6204 | $lt_c_name_lib_hook\ | |
6205 | " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
6206 | " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
6207 | " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
8d138742 CE |
6208 | |
6209 | # Handle CRLF in mingw tool chain | |
6210 | opt_cr= | |
6211 | case $build_os in | |
6212 | mingw*) | |
6213 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6214 | ;; | |
dd184caf | 6215 | esac |
8d138742 CE |
6216 | |
6217 | # Try without a prefix underscore, then with it. | |
6218 | for ac_symprfx in "" "_"; do | |
6219 | ||
6220 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6221 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6222 | ||
6223 | # Write the raw and C identifiers. | |
6224 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
d50284c4 CE |
6225 | # Fake it for dumpbin and say T for any non-static function, |
6226 | # D for any global variable and I for any imported variable. | |
8d138742 CE |
6227 | # Also find C++ and __fastcall symbols from MSVC++, |
6228 | # which start with @ or ?. | |
6229 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6230 | " {last_section=section; section=\$ 3};"\ | |
b0322a85 | 6231 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
8d138742 | 6232 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
d50284c4 CE |
6233 | " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
6234 | " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
6235 | " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
8d138742 CE |
6236 | " \$ 0!~/External *\|/{next};"\ |
6237 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6238 | " {if(hide[section]) next};"\ | |
d50284c4 CE |
6239 | " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
6240 | " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
6241 | " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
6242 | " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
8d138742 CE |
6243 | " ' prfx=^$ac_symprfx" |
6244 | else | |
6245 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6246 | fi | |
b0322a85 | 6247 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
8d138742 CE |
6248 | |
6249 | # Check to see that the pipe works correctly. | |
6250 | pipe_works=no | |
6251 | ||
6252 | rm -f conftest* | |
6253 | cat > conftest.$ac_ext <<_LT_EOF | |
6254 | #ifdef __cplusplus | |
6255 | extern "C" { | |
6256 | #endif | |
6257 | char nm_test_var; | |
6258 | void nm_test_func(void); | |
6259 | void nm_test_func(void){} | |
6260 | #ifdef __cplusplus | |
6261 | } | |
6262 | #endif | |
6263 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6264 | _LT_EOF | |
6265 | ||
b0322a85 | 6266 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 | 6267 | (eval $ac_compile) 2>&5 |
d9898ee8 | 6268 | ac_status=$? |
b0322a85 CE |
6269 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6270 | test $ac_status = 0; }; then | |
8d138742 CE |
6271 | # Now try to grab the symbols. |
6272 | nlist=conftest.nm | |
b0322a85 CE |
6273 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6274 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
d9898ee8 | 6275 | ac_status=$? |
b0322a85 CE |
6276 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6277 | test $ac_status = 0; } && test -s "$nlist"; then | |
8d138742 CE |
6278 | # Try sorting and uniquifying the output. |
6279 | if sort "$nlist" | uniq > "$nlist"T; then | |
6280 | mv -f "$nlist"T "$nlist" | |
6281 | else | |
6282 | rm -f "$nlist"T | |
6283 | fi | |
d9898ee8 | 6284 | |
8d138742 CE |
6285 | # Make sure that we snagged all the symbols we need. |
6286 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6287 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6288 | cat <<_LT_EOF > conftest.$ac_ext | |
b0322a85 | 6289 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
d50284c4 CE |
6290 | #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
6291 | /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
b0322a85 CE |
6292 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
6293 | # define LT_DLSYM_CONST | |
d50284c4 | 6294 | #elif defined __osf__ |
b0322a85 CE |
6295 | /* This system does not cope well with relocations in const data. */ |
6296 | # define LT_DLSYM_CONST | |
6297 | #else | |
6298 | # define LT_DLSYM_CONST const | |
6299 | #endif | |
6300 | ||
8d138742 CE |
6301 | #ifdef __cplusplus |
6302 | extern "C" { | |
d9898ee8 | 6303 | #endif |
6304 | ||
8d138742 CE |
6305 | _LT_EOF |
6306 | # Now generate the symbol file. | |
6307 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
d9898ee8 | 6308 | |
8d138742 | 6309 | cat <<_LT_EOF >> conftest.$ac_ext |
dd184caf | 6310 | |
8d138742 | 6311 | /* The mapping between symbol names and symbols. */ |
b0322a85 | 6312 | LT_DLSYM_CONST struct { |
8d138742 CE |
6313 | const char *name; |
6314 | void *address; | |
6315 | } | |
6316 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6317 | { | |
6318 | { "@PROGRAM@", (void *) 0 }, | |
6319 | _LT_EOF | |
d50284c4 | 6320 | $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
8d138742 CE |
6321 | cat <<\_LT_EOF >> conftest.$ac_ext |
6322 | {0, (void *) 0} | |
6323 | }; | |
d9898ee8 | 6324 | |
8d138742 CE |
6325 | /* This works around a problem in FreeBSD linker */ |
6326 | #ifdef FREEBSD_WORKAROUND | |
6327 | static const void *lt_preloaded_setup() { | |
6328 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6329 | } | |
6330 | #endif | |
d9898ee8 | 6331 | |
8d138742 CE |
6332 | #ifdef __cplusplus |
6333 | } | |
6334 | #endif | |
6335 | _LT_EOF | |
6336 | # Now try linking the two files. | |
6337 | mv conftest.$ac_objext conftstm.$ac_objext | |
b0322a85 CE |
6338 | lt_globsym_save_LIBS=$LIBS |
6339 | lt_globsym_save_CFLAGS=$CFLAGS | |
d50284c4 | 6340 | LIBS=conftstm.$ac_objext |
8d138742 | 6341 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
b0322a85 | 6342 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
8d138742 | 6343 | (eval $ac_link) 2>&5 |
d9898ee8 | 6344 | ac_status=$? |
b0322a85 | 6345 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 6346 | test $ac_status = 0; } && test -s conftest$ac_exeext; then |
8d138742 CE |
6347 | pipe_works=yes |
6348 | fi | |
b0322a85 CE |
6349 | LIBS=$lt_globsym_save_LIBS |
6350 | CFLAGS=$lt_globsym_save_CFLAGS | |
8d138742 CE |
6351 | else |
6352 | echo "cannot find nm_test_func in $nlist" >&5 | |
6353 | fi | |
6354 | else | |
6355 | echo "cannot find nm_test_var in $nlist" >&5 | |
6356 | fi | |
6357 | else | |
6358 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6359 | fi | |
6360 | else | |
6361 | echo "$progname: failed program was:" >&5 | |
6362 | cat conftest.$ac_ext >&5 | |
6363 | fi | |
6364 | rm -rf conftest* conftst* | |
d9898ee8 | 6365 | |
8d138742 | 6366 | # Do not use the global_symbol_pipe unless it works. |
d50284c4 | 6367 | if test yes = "$pipe_works"; then |
8d138742 CE |
6368 | break |
6369 | else | |
6370 | lt_cv_sys_global_symbol_pipe= | |
6371 | fi | |
6372 | done | |
dd184caf | 6373 | |
8d138742 | 6374 | fi |
d9898ee8 | 6375 | |
8d138742 CE |
6376 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6377 | lt_cv_sys_global_symbol_to_cdecl= | |
d9898ee8 | 6378 | fi |
8d138742 | 6379 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
b0322a85 | 6380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
8d138742 | 6381 | $as_echo "failed" >&6; } |
d9898ee8 | 6382 | else |
b0322a85 | 6383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
8d138742 | 6384 | $as_echo "ok" >&6; } |
d9898ee8 | 6385 | fi |
6386 | ||
b0322a85 CE |
6387 | # Response file support. |
6388 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6389 | nm_file_list_spec='@' | |
6390 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6391 | nm_file_list_spec='@' | |
6392 | fi | |
6393 | ||
6394 | ||
6395 | ||
6396 | ||
6397 | ||
6398 | ||
6399 | ||
d9898ee8 | 6400 | |
6401 | ||
6402 | ||
d9898ee8 | 6403 | |
d9898ee8 | 6404 | |
d9898ee8 | 6405 | |
d9898ee8 | 6406 | |
d9898ee8 | 6407 | |
d9898ee8 | 6408 | |
d50284c4 CE |
6409 | |
6410 | ||
6411 | ||
6412 | ||
6413 | ||
6414 | ||
6415 | ||
6416 | ||
6417 | ||
6418 | ||
d9898ee8 | 6419 | |
d9898ee8 | 6420 | |
d9898ee8 | 6421 | |
d9898ee8 | 6422 | |
d9898ee8 | 6423 | |
6424 | ||
6425 | ||
6426 | ||
b0322a85 CE |
6427 | |
6428 | ||
6429 | ||
6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6431 | $as_echo_n "checking for sysroot... " >&6; } | |
6432 | ||
6433 | # Check whether --with-sysroot was given. | |
6434 | if test "${with_sysroot+set}" = set; then : | |
6435 | withval=$with_sysroot; | |
6436 | else | |
6437 | with_sysroot=no | |
6438 | fi | |
6439 | ||
6440 | ||
6441 | lt_sysroot= | |
d50284c4 | 6442 | case $with_sysroot in #( |
b0322a85 | 6443 | yes) |
d50284c4 | 6444 | if test yes = "$GCC"; then |
b0322a85 CE |
6445 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
6446 | fi | |
6447 | ;; #( | |
6448 | /*) | |
6449 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6450 | ;; #( | |
6451 | no|'') | |
6452 | ;; #( | |
6453 | *) | |
d50284c4 CE |
6454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
6455 | $as_echo "$with_sysroot" >&6; } | |
b0322a85 CE |
6456 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
6457 | ;; | |
6458 | esac | |
6459 | ||
6460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6461 | $as_echo "${lt_sysroot:-no}" >&6; } | |
ac40fd9e | 6462 | |
d9898ee8 | 6463 | |
d9898ee8 | 6464 | |
d9898ee8 | 6465 | |
d9898ee8 | 6466 | |
d50284c4 CE |
6467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
6468 | $as_echo_n "checking for a working dd... " >&6; } | |
6469 | if ${ac_cv_path_lt_DD+:} false; then : | |
6470 | $as_echo_n "(cached) " >&6 | |
6471 | else | |
6472 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6473 | cat conftest.i conftest.i >conftest2.i | |
6474 | : ${lt_DD:=$DD} | |
6475 | if test -z "$lt_DD"; then | |
6476 | ac_path_lt_DD_found=false | |
6477 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6479 | for as_dir in $PATH | |
6480 | do | |
6481 | IFS=$as_save_IFS | |
6482 | test -z "$as_dir" && as_dir=. | |
6483 | for ac_prog in dd; do | |
6484 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6485 | ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
6486 | as_fn_executable_p "$ac_path_lt_DD" || continue | |
6487 | if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6488 | cmp -s conftest.i conftest.out \ | |
6489 | && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
6490 | fi | |
6491 | $ac_path_lt_DD_found && break 3 | |
6492 | done | |
6493 | done | |
6494 | done | |
6495 | IFS=$as_save_IFS | |
6496 | if test -z "$ac_cv_path_lt_DD"; then | |
6497 | : | |
6498 | fi | |
6499 | else | |
6500 | ac_cv_path_lt_DD=$lt_DD | |
6501 | fi | |
6502 | ||
6503 | rm -f conftest.i conftest2.i conftest.out | |
6504 | fi | |
6505 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
6506 | $as_echo "$ac_cv_path_lt_DD" >&6; } | |
6507 | ||
6508 | ||
6509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
6510 | $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
6511 | if ${lt_cv_truncate_bin+:} false; then : | |
6512 | $as_echo_n "(cached) " >&6 | |
6513 | else | |
6514 | printf 0123456789abcdef0123456789abcdef >conftest.i | |
6515 | cat conftest.i conftest.i >conftest2.i | |
6516 | lt_cv_truncate_bin= | |
6517 | if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
6518 | cmp -s conftest.i conftest.out \ | |
6519 | && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
6520 | fi | |
6521 | rm -f conftest.i conftest2.i conftest.out | |
6522 | test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
6523 | fi | |
6524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
6525 | $as_echo "$lt_cv_truncate_bin" >&6; } | |
6526 | ||
6527 | ||
6528 | ||
6529 | ||
6530 | ||
6531 | ||
6532 | ||
6533 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
6534 | func_cc_basename () | |
6535 | { | |
6536 | for cc_temp in $*""; do | |
6537 | case $cc_temp in | |
6538 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6539 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6540 | \-*) ;; | |
6541 | *) break;; | |
6542 | esac | |
6543 | done | |
6544 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
6545 | } | |
6546 | ||
8d138742 | 6547 | # Check whether --enable-libtool-lock was given. |
b0322a85 | 6548 | if test "${enable_libtool_lock+set}" = set; then : |
8d138742 CE |
6549 | enableval=$enable_libtool_lock; |
6550 | fi | |
d9898ee8 | 6551 | |
d50284c4 | 6552 | test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
d9898ee8 | 6553 | |
8d138742 CE |
6554 | # Some flags need to be propagated to the compiler or linker for good |
6555 | # libtool support. | |
6556 | case $host in | |
6557 | ia64-*-hpux*) | |
d50284c4 CE |
6558 | # Find out what ABI is being produced by ac_compile, and set mode |
6559 | # options accordingly. | |
8d138742 | 6560 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6561 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6562 | (eval $ac_compile) 2>&5 |
6563 | ac_status=$? | |
b0322a85 CE |
6564 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6565 | test $ac_status = 0; }; then | |
8d138742 CE |
6566 | case `/usr/bin/file conftest.$ac_objext` in |
6567 | *ELF-32*) | |
d50284c4 | 6568 | HPUX_IA64_MODE=32 |
8d138742 CE |
6569 | ;; |
6570 | *ELF-64*) | |
d50284c4 | 6571 | HPUX_IA64_MODE=64 |
8d138742 CE |
6572 | ;; |
6573 | esac | |
d9898ee8 | 6574 | fi |
8d138742 | 6575 | rm -rf conftest* |
d9898ee8 | 6576 | ;; |
8d138742 | 6577 | *-*-irix6*) |
d50284c4 CE |
6578 | # Find out what ABI is being produced by ac_compile, and set linker |
6579 | # options accordingly. | |
b0322a85 CE |
6580 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
6581 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
8d138742 CE |
6582 | (eval $ac_compile) 2>&5 |
6583 | ac_status=$? | |
b0322a85 CE |
6584 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6585 | test $ac_status = 0; }; then | |
d50284c4 | 6586 | if test yes = "$lt_cv_prog_gnu_ld"; then |
8d138742 CE |
6587 | case `/usr/bin/file conftest.$ac_objext` in |
6588 | *32-bit*) | |
6589 | LD="${LD-ld} -melf32bsmip" | |
6590 | ;; | |
6591 | *N32*) | |
6592 | LD="${LD-ld} -melf32bmipn32" | |
6593 | ;; | |
6594 | *64-bit*) | |
6595 | LD="${LD-ld} -melf64bmip" | |
6596 | ;; | |
6597 | esac | |
6598 | else | |
6599 | case `/usr/bin/file conftest.$ac_objext` in | |
6600 | *32-bit*) | |
6601 | LD="${LD-ld} -32" | |
6602 | ;; | |
6603 | *N32*) | |
6604 | LD="${LD-ld} -n32" | |
6605 | ;; | |
6606 | *64-bit*) | |
6607 | LD="${LD-ld} -64" | |
6608 | ;; | |
6609 | esac | |
6610 | fi | |
d9898ee8 | 6611 | fi |
8d138742 | 6612 | rm -rf conftest* |
d9898ee8 | 6613 | ;; |
d9898ee8 | 6614 | |
d50284c4 CE |
6615 | mips64*-*linux*) |
6616 | # Find out what ABI is being produced by ac_compile, and set linker | |
6617 | # options accordingly. | |
6618 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6619 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6620 | (eval $ac_compile) 2>&5 | |
6621 | ac_status=$? | |
6622 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6623 | test $ac_status = 0; }; then | |
6624 | emul=elf | |
6625 | case `/usr/bin/file conftest.$ac_objext` in | |
6626 | *32-bit*) | |
6627 | emul="${emul}32" | |
6628 | ;; | |
6629 | *64-bit*) | |
6630 | emul="${emul}64" | |
6631 | ;; | |
6632 | esac | |
6633 | case `/usr/bin/file conftest.$ac_objext` in | |
6634 | *MSB*) | |
6635 | emul="${emul}btsmip" | |
6636 | ;; | |
6637 | *LSB*) | |
6638 | emul="${emul}ltsmip" | |
6639 | ;; | |
6640 | esac | |
6641 | case `/usr/bin/file conftest.$ac_objext` in | |
6642 | *N32*) | |
6643 | emul="${emul}n32" | |
6644 | ;; | |
6645 | esac | |
6646 | LD="${LD-ld} -m $emul" | |
6647 | fi | |
6648 | rm -rf conftest* | |
6649 | ;; | |
6650 | ||
6651 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
8d138742 | 6652 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
d50284c4 CE |
6653 | # Find out what ABI is being produced by ac_compile, and set linker |
6654 | # options accordingly. Note that the listed cases only cover the | |
6655 | # situations where additional linker options are needed (such as when | |
6656 | # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
6657 | # vice versa); the common cases where no linker options are needed do | |
6658 | # not appear in the list. | |
8d138742 | 6659 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6660 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
6661 | (eval $ac_compile) 2>&5 |
6662 | ac_status=$? | |
b0322a85 CE |
6663 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6664 | test $ac_status = 0; }; then | |
8d138742 CE |
6665 | case `/usr/bin/file conftest.o` in |
6666 | *32-bit*) | |
6667 | case $host in | |
6668 | x86_64-*kfreebsd*-gnu) | |
6669 | LD="${LD-ld} -m elf_i386_fbsd" | |
6670 | ;; | |
6671 | x86_64-*linux*) | |
d50284c4 CE |
6672 | case `/usr/bin/file conftest.o` in |
6673 | *x86-64*) | |
6674 | LD="${LD-ld} -m elf32_x86_64" | |
6675 | ;; | |
6676 | *) | |
6677 | LD="${LD-ld} -m elf_i386" | |
6678 | ;; | |
6679 | esac | |
8d138742 | 6680 | ;; |
d50284c4 CE |
6681 | powerpc64le-*linux*) |
6682 | LD="${LD-ld} -m elf32lppclinux" | |
6683 | ;; | |
6684 | powerpc64-*linux*) | |
8d138742 CE |
6685 | LD="${LD-ld} -m elf32ppclinux" |
6686 | ;; | |
6687 | s390x-*linux*) | |
6688 | LD="${LD-ld} -m elf_s390" | |
6689 | ;; | |
6690 | sparc64-*linux*) | |
6691 | LD="${LD-ld} -m elf32_sparc" | |
6692 | ;; | |
6693 | esac | |
6694 | ;; | |
6695 | *64-bit*) | |
6696 | case $host in | |
6697 | x86_64-*kfreebsd*-gnu) | |
6698 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6699 | ;; | |
6700 | x86_64-*linux*) | |
6701 | LD="${LD-ld} -m elf_x86_64" | |
6702 | ;; | |
d50284c4 CE |
6703 | powerpcle-*linux*) |
6704 | LD="${LD-ld} -m elf64lppc" | |
6705 | ;; | |
6706 | powerpc-*linux*) | |
8d138742 CE |
6707 | LD="${LD-ld} -m elf64ppc" |
6708 | ;; | |
6709 | s390*-*linux*|s390*-*tpf*) | |
6710 | LD="${LD-ld} -m elf64_s390" | |
6711 | ;; | |
6712 | sparc*-*linux*) | |
6713 | LD="${LD-ld} -m elf64_sparc" | |
6714 | ;; | |
6715 | esac | |
6716 | ;; | |
6717 | esac | |
6718 | fi | |
6719 | rm -rf conftest* | |
d9898ee8 | 6720 | ;; |
d9898ee8 | 6721 | |
8d138742 CE |
6722 | *-*-sco3.2v5*) |
6723 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
d50284c4 | 6724 | SAVE_CFLAGS=$CFLAGS |
8d138742 | 6725 | CFLAGS="$CFLAGS -belf" |
b0322a85 | 6726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
8d138742 | 6727 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
b0322a85 | 6728 | if ${lt_cv_cc_needs_belf+:} false; then : |
8d138742 CE |
6729 | $as_echo_n "(cached) " >&6 |
6730 | else | |
6731 | ac_ext=c | |
6732 | ac_cpp='$CPP $CPPFLAGS' | |
6733 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6734 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6735 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 6736 | |
b0322a85 | 6737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 6738 | /* end confdefs.h. */ |
d9898ee8 | 6739 | |
8d138742 CE |
6740 | int |
6741 | main () | |
6742 | { | |
d9898ee8 | 6743 | |
8d138742 CE |
6744 | ; |
6745 | return 0; | |
6746 | } | |
6747 | _ACEOF | |
b0322a85 | 6748 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 CE |
6749 | lt_cv_cc_needs_belf=yes |
6750 | else | |
b0322a85 | 6751 | lt_cv_cc_needs_belf=no |
8d138742 | 6752 | fi |
b0322a85 CE |
6753 | rm -f core conftest.err conftest.$ac_objext \ |
6754 | conftest$ac_exeext conftest.$ac_ext | |
8d138742 CE |
6755 | ac_ext=c |
6756 | ac_cpp='$CPP $CPPFLAGS' | |
6757 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6758 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6759 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 6760 | |
8d138742 | 6761 | fi |
b0322a85 | 6762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
8d138742 | 6763 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
d50284c4 | 6764 | if test yes != "$lt_cv_cc_needs_belf"; then |
8d138742 | 6765 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
d50284c4 | 6766 | CFLAGS=$SAVE_CFLAGS |
8d138742 CE |
6767 | fi |
6768 | ;; | |
b0322a85 | 6769 | *-*solaris*) |
d50284c4 CE |
6770 | # Find out what ABI is being produced by ac_compile, and set linker |
6771 | # options accordingly. | |
8d138742 | 6772 | echo 'int i;' > conftest.$ac_ext |
b0322a85 | 6773 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
d9898ee8 | 6774 | (eval $ac_compile) 2>&5 |
6775 | ac_status=$? | |
b0322a85 CE |
6776 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6777 | test $ac_status = 0; }; then | |
8d138742 CE |
6778 | case `/usr/bin/file conftest.o` in |
6779 | *64-bit*) | |
6780 | case $lt_cv_prog_gnu_ld in | |
b0322a85 CE |
6781 | yes*) |
6782 | case $host in | |
d50284c4 | 6783 | i?86-*-solaris*|x86_64-*-solaris*) |
b0322a85 CE |
6784 | LD="${LD-ld} -m elf_x86_64" |
6785 | ;; | |
6786 | sparc*-*-solaris*) | |
6787 | LD="${LD-ld} -m elf64_sparc" | |
6788 | ;; | |
6789 | esac | |
6790 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
6791 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
d50284c4 | 6792 | LD=${LD-ld}_sol2 |
b0322a85 CE |
6793 | fi |
6794 | ;; | |
8d138742 CE |
6795 | *) |
6796 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6797 | LD="${LD-ld} -64" | |
6798 | fi | |
6799 | ;; | |
6800 | esac | |
6801 | ;; | |
6802 | esac | |
6803 | fi | |
6804 | rm -rf conftest* | |
6805 | ;; | |
6806 | esac | |
d9898ee8 | 6807 | |
d50284c4 | 6808 | need_locks=$enable_libtool_lock |
d9898ee8 | 6809 | |
b0322a85 CE |
6810 | if test -n "$ac_tool_prefix"; then |
6811 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6812 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6814 | $as_echo_n "checking for $ac_word... " >&6; } | |
6815 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6816 | $as_echo_n "(cached) " >&6 | |
6817 | else | |
6818 | if test -n "$MANIFEST_TOOL"; then | |
6819 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6820 | else | |
6821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6822 | for as_dir in $PATH | |
6823 | do | |
6824 | IFS=$as_save_IFS | |
6825 | test -z "$as_dir" && as_dir=. | |
6826 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6827 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6828 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6829 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6830 | break 2 | |
6831 | fi | |
6832 | done | |
6833 | done | |
6834 | IFS=$as_save_IFS | |
6835 | ||
6836 | fi | |
6837 | fi | |
6838 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6839 | if test -n "$MANIFEST_TOOL"; then | |
6840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6841 | $as_echo "$MANIFEST_TOOL" >&6; } | |
6842 | else | |
6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6844 | $as_echo "no" >&6; } | |
6845 | fi | |
6846 | ||
6847 | ||
6848 | fi | |
6849 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6850 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6851 | # Extract the first word of "mt", so it can be a program name with args. | |
6852 | set dummy mt; ac_word=$2 | |
6853 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6854 | $as_echo_n "checking for $ac_word... " >&6; } | |
6855 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6856 | $as_echo_n "(cached) " >&6 | |
6857 | else | |
6858 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6859 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
6860 | else | |
6861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6862 | for as_dir in $PATH | |
6863 | do | |
6864 | IFS=$as_save_IFS | |
6865 | test -z "$as_dir" && as_dir=. | |
6866 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6867 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6868 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
6869 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6870 | break 2 | |
6871 | fi | |
6872 | done | |
6873 | done | |
6874 | IFS=$as_save_IFS | |
6875 | ||
6876 | fi | |
6877 | fi | |
6878 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
6879 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
6881 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
6882 | else | |
6883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6884 | $as_echo "no" >&6; } | |
6885 | fi | |
6886 | ||
6887 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
6888 | MANIFEST_TOOL=":" | |
6889 | else | |
6890 | case $cross_compiling:$ac_tool_warned in | |
6891 | yes:) | |
6892 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6893 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6894 | ac_tool_warned=yes ;; | |
6895 | esac | |
6896 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
6897 | fi | |
6898 | else | |
6899 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
6900 | fi | |
6901 | ||
6902 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
6903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
6904 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
6905 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
6906 | $as_echo_n "(cached) " >&6 | |
6907 | else | |
6908 | lt_cv_path_mainfest_tool=no | |
6909 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
6910 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
6911 | cat conftest.err >&5 | |
6912 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
6913 | lt_cv_path_mainfest_tool=yes | |
6914 | fi | |
6915 | rm -f conftest* | |
6916 | fi | |
6917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
6918 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
d50284c4 | 6919 | if test yes != "$lt_cv_path_mainfest_tool"; then |
b0322a85 CE |
6920 | MANIFEST_TOOL=: |
6921 | fi | |
6922 | ||
6923 | ||
6924 | ||
6925 | ||
6926 | ||
d9898ee8 | 6927 | |
8d138742 CE |
6928 | case $host_os in |
6929 | rhapsody* | darwin*) | |
6930 | if test -n "$ac_tool_prefix"; then | |
6931 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6932 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
b0322a85 | 6933 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6934 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6935 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
8d138742 CE |
6936 | $as_echo_n "(cached) " >&6 |
6937 | else | |
6938 | if test -n "$DSYMUTIL"; then | |
6939 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6940 | else | |
6941 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6942 | for as_dir in $PATH | |
6943 | do | |
6944 | IFS=$as_save_IFS | |
6945 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6946 | for ac_exec_ext in '' $ac_executable_extensions; do |
6947 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6948 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
b0322a85 | 6949 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
6950 | break 2 |
6951 | fi | |
6952 | done | |
b0322a85 | 6953 | done |
8d138742 | 6954 | IFS=$as_save_IFS |
d9898ee8 | 6955 | |
8d138742 CE |
6956 | fi |
6957 | fi | |
6958 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6959 | if test -n "$DSYMUTIL"; then | |
b0322a85 | 6960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
8d138742 CE |
6961 | $as_echo "$DSYMUTIL" >&6; } |
6962 | else | |
b0322a85 | 6963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
6964 | $as_echo "no" >&6; } |
6965 | fi | |
d9898ee8 | 6966 | |
d9898ee8 | 6967 | |
8d138742 CE |
6968 | fi |
6969 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6970 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6971 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6972 | set dummy dsymutil; ac_word=$2 | |
b0322a85 | 6973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 6974 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 6975 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
8d138742 CE |
6976 | $as_echo_n "(cached) " >&6 |
6977 | else | |
6978 | if test -n "$ac_ct_DSYMUTIL"; then | |
6979 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
6980 | else | |
6981 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6982 | for as_dir in $PATH | |
6983 | do | |
6984 | IFS=$as_save_IFS | |
6985 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
6986 | for ac_exec_ext in '' $ac_executable_extensions; do |
6987 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 6988 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
b0322a85 | 6989 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 6990 | break 2 |
d9898ee8 | 6991 | fi |
6992 | done | |
b0322a85 | 6993 | done |
8d138742 | 6994 | IFS=$as_save_IFS |
d9898ee8 | 6995 | |
6996 | fi | |
d9898ee8 | 6997 | fi |
8d138742 CE |
6998 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
6999 | if test -n "$ac_ct_DSYMUTIL"; then | |
b0322a85 | 7000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
8d138742 | 7001 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
d9898ee8 | 7002 | else |
b0322a85 | 7003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7004 | $as_echo "no" >&6; } |
d9898ee8 | 7005 | fi |
7006 | ||
8d138742 CE |
7007 | if test "x$ac_ct_DSYMUTIL" = x; then |
7008 | DSYMUTIL=":" | |
7009 | else | |
7010 | case $cross_compiling:$ac_tool_warned in | |
7011 | yes:) | |
b0322a85 | 7012 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7013 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7014 | ac_tool_warned=yes ;; | |
7015 | esac | |
7016 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7017 | fi | |
d9898ee8 | 7018 | else |
8d138742 | 7019 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
d9898ee8 | 7020 | fi |
d9898ee8 | 7021 | |
8d138742 CE |
7022 | if test -n "$ac_tool_prefix"; then |
7023 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7024 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
b0322a85 | 7025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7026 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7027 | if ${ac_cv_prog_NMEDIT+:} false; then : |
8d138742 CE |
7028 | $as_echo_n "(cached) " >&6 |
7029 | else | |
7030 | if test -n "$NMEDIT"; then | |
7031 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7032 | else | |
7033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7034 | for as_dir in $PATH | |
7035 | do | |
7036 | IFS=$as_save_IFS | |
7037 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7038 | for ac_exec_ext in '' $ac_executable_extensions; do |
7039 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7040 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
b0322a85 | 7041 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 | 7042 | break 2 |
d9898ee8 | 7043 | fi |
8d138742 | 7044 | done |
b0322a85 | 7045 | done |
8d138742 | 7046 | IFS=$as_save_IFS |
d9898ee8 | 7047 | |
8d138742 CE |
7048 | fi |
7049 | fi | |
7050 | NMEDIT=$ac_cv_prog_NMEDIT | |
7051 | if test -n "$NMEDIT"; then | |
b0322a85 | 7052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
8d138742 CE |
7053 | $as_echo "$NMEDIT" >&6; } |
7054 | else | |
b0322a85 | 7055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7056 | $as_echo "no" >&6; } |
7057 | fi | |
d9898ee8 | 7058 | |
d9898ee8 | 7059 | |
8d138742 CE |
7060 | fi |
7061 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7062 | ac_ct_NMEDIT=$NMEDIT | |
7063 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7064 | set dummy nmedit; ac_word=$2 | |
b0322a85 | 7065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7066 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7067 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
8d138742 CE |
7068 | $as_echo_n "(cached) " >&6 |
7069 | else | |
7070 | if test -n "$ac_ct_NMEDIT"; then | |
7071 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7072 | else | |
7073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7074 | for as_dir in $PATH | |
7075 | do | |
7076 | IFS=$as_save_IFS | |
7077 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7078 | for ac_exec_ext in '' $ac_executable_extensions; do |
7079 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7080 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
b0322a85 | 7081 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
8d138742 CE |
7082 | break 2 |
7083 | fi | |
7084 | done | |
b0322a85 | 7085 | done |
8d138742 | 7086 | IFS=$as_save_IFS |
d9898ee8 | 7087 | |
8d138742 CE |
7088 | fi |
7089 | fi | |
7090 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7091 | if test -n "$ac_ct_NMEDIT"; then | |
b0322a85 | 7092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
8d138742 CE |
7093 | $as_echo "$ac_ct_NMEDIT" >&6; } |
7094 | else | |
b0322a85 | 7095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
7096 | $as_echo "no" >&6; } |
7097 | fi | |
d9898ee8 | 7098 | |
8d138742 CE |
7099 | if test "x$ac_ct_NMEDIT" = x; then |
7100 | NMEDIT=":" | |
7101 | else | |
7102 | case $cross_compiling:$ac_tool_warned in | |
7103 | yes:) | |
b0322a85 | 7104 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 CE |
7105 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
7106 | ac_tool_warned=yes ;; | |
7107 | esac | |
7108 | NMEDIT=$ac_ct_NMEDIT | |
7109 | fi | |
7110 | else | |
7111 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7112 | fi | |
d9898ee8 | 7113 | |
8d138742 CE |
7114 | if test -n "$ac_tool_prefix"; then |
7115 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7116 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
b0322a85 | 7117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7118 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7119 | if ${ac_cv_prog_LIPO+:} false; then : |
8d138742 | 7120 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7121 | else |
8d138742 CE |
7122 | if test -n "$LIPO"; then |
7123 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
d9898ee8 | 7124 | else |
7125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7126 | for as_dir in $PATH | |
7127 | do | |
7128 | IFS=$as_save_IFS | |
7129 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7130 | for ac_exec_ext in '' $ac_executable_extensions; do |
7131 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7132 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
b0322a85 | 7133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7134 | break 2 |
7135 | fi | |
7136 | done | |
b0322a85 | 7137 | done |
dd184caf | 7138 | IFS=$as_save_IFS |
d9898ee8 | 7139 | |
7140 | fi | |
7141 | fi | |
8d138742 CE |
7142 | LIPO=$ac_cv_prog_LIPO |
7143 | if test -n "$LIPO"; then | |
b0322a85 | 7144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
8d138742 | 7145 | $as_echo "$LIPO" >&6; } |
d9898ee8 | 7146 | else |
b0322a85 | 7147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7148 | $as_echo "no" >&6; } |
d9898ee8 | 7149 | fi |
7150 | ||
dd184caf | 7151 | |
d9898ee8 | 7152 | fi |
8d138742 CE |
7153 | if test -z "$ac_cv_prog_LIPO"; then |
7154 | ac_ct_LIPO=$LIPO | |
7155 | # Extract the first word of "lipo", so it can be a program name with args. | |
7156 | set dummy lipo; ac_word=$2 | |
b0322a85 | 7157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7158 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7159 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
8d138742 | 7160 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7161 | else |
8d138742 CE |
7162 | if test -n "$ac_ct_LIPO"; then |
7163 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
d9898ee8 | 7164 | else |
7165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7166 | for as_dir in $PATH | |
7167 | do | |
7168 | IFS=$as_save_IFS | |
7169 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7170 | for ac_exec_ext in '' $ac_executable_extensions; do |
7171 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7172 | ac_cv_prog_ac_ct_LIPO="lipo" |
b0322a85 | 7173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7174 | break 2 |
7175 | fi | |
7176 | done | |
b0322a85 | 7177 | done |
dd184caf | 7178 | IFS=$as_save_IFS |
d9898ee8 | 7179 | |
d9898ee8 | 7180 | fi |
7181 | fi | |
8d138742 CE |
7182 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
7183 | if test -n "$ac_ct_LIPO"; then | |
b0322a85 | 7184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
8d138742 | 7185 | $as_echo "$ac_ct_LIPO" >&6; } |
d9898ee8 | 7186 | else |
b0322a85 | 7187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7188 | $as_echo "no" >&6; } |
d9898ee8 | 7189 | fi |
7190 | ||
8d138742 CE |
7191 | if test "x$ac_ct_LIPO" = x; then |
7192 | LIPO=":" | |
dd184caf | 7193 | else |
7194 | case $cross_compiling:$ac_tool_warned in | |
7195 | yes:) | |
b0322a85 | 7196 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 7197 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 7198 | ac_tool_warned=yes ;; |
7199 | esac | |
8d138742 | 7200 | LIPO=$ac_ct_LIPO |
dd184caf | 7201 | fi |
d9898ee8 | 7202 | else |
8d138742 | 7203 | LIPO="$ac_cv_prog_LIPO" |
d9898ee8 | 7204 | fi |
7205 | ||
8d138742 CE |
7206 | if test -n "$ac_tool_prefix"; then |
7207 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7208 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
b0322a85 | 7209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7210 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7211 | if ${ac_cv_prog_OTOOL+:} false; then : |
8d138742 | 7212 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7213 | else |
8d138742 CE |
7214 | if test -n "$OTOOL"; then |
7215 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
d9898ee8 | 7216 | else |
7217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7218 | for as_dir in $PATH | |
7219 | do | |
7220 | IFS=$as_save_IFS | |
7221 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7222 | for ac_exec_ext in '' $ac_executable_extensions; do |
7223 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7224 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
b0322a85 | 7225 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7226 | break 2 |
7227 | fi | |
7228 | done | |
b0322a85 | 7229 | done |
dd184caf | 7230 | IFS=$as_save_IFS |
d9898ee8 | 7231 | |
7232 | fi | |
7233 | fi | |
8d138742 CE |
7234 | OTOOL=$ac_cv_prog_OTOOL |
7235 | if test -n "$OTOOL"; then | |
b0322a85 | 7236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
8d138742 | 7237 | $as_echo "$OTOOL" >&6; } |
d9898ee8 | 7238 | else |
b0322a85 | 7239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7240 | $as_echo "no" >&6; } |
d9898ee8 | 7241 | fi |
7242 | ||
dd184caf | 7243 | |
d9898ee8 | 7244 | fi |
8d138742 CE |
7245 | if test -z "$ac_cv_prog_OTOOL"; then |
7246 | ac_ct_OTOOL=$OTOOL | |
7247 | # Extract the first word of "otool", so it can be a program name with args. | |
7248 | set dummy otool; ac_word=$2 | |
b0322a85 | 7249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7250 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7251 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
8d138742 | 7252 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7253 | else |
8d138742 CE |
7254 | if test -n "$ac_ct_OTOOL"; then |
7255 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
d9898ee8 | 7256 | else |
7257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7258 | for as_dir in $PATH | |
7259 | do | |
7260 | IFS=$as_save_IFS | |
7261 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7262 | for ac_exec_ext in '' $ac_executable_extensions; do |
7263 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7264 | ac_cv_prog_ac_ct_OTOOL="otool" |
b0322a85 | 7265 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7266 | break 2 |
7267 | fi | |
7268 | done | |
b0322a85 | 7269 | done |
dd184caf | 7270 | IFS=$as_save_IFS |
d9898ee8 | 7271 | |
d9898ee8 | 7272 | fi |
7273 | fi | |
8d138742 CE |
7274 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
7275 | if test -n "$ac_ct_OTOOL"; then | |
b0322a85 | 7276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
8d138742 | 7277 | $as_echo "$ac_ct_OTOOL" >&6; } |
d9898ee8 | 7278 | else |
b0322a85 | 7279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7280 | $as_echo "no" >&6; } |
d9898ee8 | 7281 | fi |
7282 | ||
8d138742 CE |
7283 | if test "x$ac_ct_OTOOL" = x; then |
7284 | OTOOL=":" | |
dd184caf | 7285 | else |
7286 | case $cross_compiling:$ac_tool_warned in | |
7287 | yes:) | |
b0322a85 | 7288 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 7289 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 7290 | ac_tool_warned=yes ;; |
7291 | esac | |
8d138742 | 7292 | OTOOL=$ac_ct_OTOOL |
dd184caf | 7293 | fi |
d9898ee8 | 7294 | else |
8d138742 | 7295 | OTOOL="$ac_cv_prog_OTOOL" |
d9898ee8 | 7296 | fi |
7297 | ||
8d138742 CE |
7298 | if test -n "$ac_tool_prefix"; then |
7299 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7300 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
b0322a85 | 7301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7302 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7303 | if ${ac_cv_prog_OTOOL64+:} false; then : |
8d138742 | 7304 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7305 | else |
8d138742 CE |
7306 | if test -n "$OTOOL64"; then |
7307 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
d9898ee8 | 7308 | else |
7309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7310 | for as_dir in $PATH | |
7311 | do | |
7312 | IFS=$as_save_IFS | |
7313 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7314 | for ac_exec_ext in '' $ac_executable_extensions; do |
7315 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7316 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
b0322a85 | 7317 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7318 | break 2 |
7319 | fi | |
7320 | done | |
b0322a85 | 7321 | done |
dd184caf | 7322 | IFS=$as_save_IFS |
d9898ee8 | 7323 | |
7324 | fi | |
7325 | fi | |
8d138742 CE |
7326 | OTOOL64=$ac_cv_prog_OTOOL64 |
7327 | if test -n "$OTOOL64"; then | |
b0322a85 | 7328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
8d138742 | 7329 | $as_echo "$OTOOL64" >&6; } |
d9898ee8 | 7330 | else |
b0322a85 | 7331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7332 | $as_echo "no" >&6; } |
d9898ee8 | 7333 | fi |
7334 | ||
dd184caf | 7335 | |
d9898ee8 | 7336 | fi |
8d138742 CE |
7337 | if test -z "$ac_cv_prog_OTOOL64"; then |
7338 | ac_ct_OTOOL64=$OTOOL64 | |
7339 | # Extract the first word of "otool64", so it can be a program name with args. | |
7340 | set dummy otool64; ac_word=$2 | |
b0322a85 | 7341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
8d138742 | 7342 | $as_echo_n "checking for $ac_word... " >&6; } |
b0322a85 | 7343 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
8d138742 | 7344 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7345 | else |
8d138742 CE |
7346 | if test -n "$ac_ct_OTOOL64"; then |
7347 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
d9898ee8 | 7348 | else |
7349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7350 | for as_dir in $PATH | |
7351 | do | |
7352 | IFS=$as_save_IFS | |
7353 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
7354 | for ac_exec_ext in '' $ac_executable_extensions; do |
7355 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8d138742 | 7356 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
b0322a85 | 7357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d9898ee8 | 7358 | break 2 |
7359 | fi | |
7360 | done | |
b0322a85 | 7361 | done |
dd184caf | 7362 | IFS=$as_save_IFS |
d9898ee8 | 7363 | |
d9898ee8 | 7364 | fi |
7365 | fi | |
8d138742 CE |
7366 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
7367 | if test -n "$ac_ct_OTOOL64"; then | |
b0322a85 | 7368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
8d138742 | 7369 | $as_echo "$ac_ct_OTOOL64" >&6; } |
d9898ee8 | 7370 | else |
b0322a85 | 7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 | 7372 | $as_echo "no" >&6; } |
d9898ee8 | 7373 | fi |
7374 | ||
8d138742 CE |
7375 | if test "x$ac_ct_OTOOL64" = x; then |
7376 | OTOOL64=":" | |
dd184caf | 7377 | else |
7378 | case $cross_compiling:$ac_tool_warned in | |
7379 | yes:) | |
b0322a85 | 7380 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
8d138742 | 7381 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
dd184caf | 7382 | ac_tool_warned=yes ;; |
7383 | esac | |
8d138742 | 7384 | OTOOL64=$ac_ct_OTOOL64 |
dd184caf | 7385 | fi |
d9898ee8 | 7386 | else |
8d138742 | 7387 | OTOOL64="$ac_cv_prog_OTOOL64" |
d9898ee8 | 7388 | fi |
7389 | ||
7390 | ||
d9898ee8 | 7391 | |
d9898ee8 | 7392 | |
d9898ee8 | 7393 | |
d9898ee8 | 7394 | |
d9898ee8 | 7395 | |
7396 | ||
dd184caf | 7397 | |
d9898ee8 | 7398 | |
7399 | ||
d9898ee8 | 7400 | |
d9898ee8 | 7401 | |
d9898ee8 | 7402 | |
d9898ee8 | 7403 | |
7404 | ||
d9898ee8 | 7405 | |
d9898ee8 | 7406 | |
d9898ee8 | 7407 | |
7408 | ||
d9898ee8 | 7409 | |
d9898ee8 | 7410 | |
7411 | ||
7412 | ||
d9898ee8 | 7413 | |
d9898ee8 | 7414 | |
7415 | ||
b0322a85 | 7416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
8d138742 | 7417 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
b0322a85 | 7418 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
8d138742 | 7419 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7420 | else |
8d138742 | 7421 | lt_cv_apple_cc_single_mod=no |
d50284c4 | 7422 | if test -z "$LT_MULTI_MODULE"; then |
8d138742 CE |
7423 | # By default we will add the -single_module flag. You can override |
7424 | # by either setting the environment variable LT_MULTI_MODULE | |
7425 | # non-empty at configure time, or by adding -multi_module to the | |
7426 | # link flags. | |
7427 | rm -rf libconftest.dylib* | |
7428 | echo "int foo(void){return 1;}" > conftest.c | |
7429 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7430 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7431 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7432 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7433 | _lt_result=$? | |
b0322a85 CE |
7434 | # If there is a non-empty error log, and "single_module" |
7435 | # appears in it, assume the flag caused a linker warning | |
7436 | if test -s conftest.err && $GREP single_module conftest.err; then | |
7437 | cat conftest.err >&5 | |
7438 | # Otherwise, if the output was created with a 0 exit code from | |
7439 | # the compiler, it worked. | |
d50284c4 | 7440 | elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
8d138742 CE |
7441 | lt_cv_apple_cc_single_mod=yes |
7442 | else | |
7443 | cat conftest.err >&5 | |
7444 | fi | |
7445 | rm -rf libconftest.dylib* | |
7446 | rm -f conftest.* | |
7447 | fi | |
d9898ee8 | 7448 | fi |
b0322a85 | 7449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
8d138742 | 7450 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
b0322a85 CE |
7451 | |
7452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
8d138742 | 7453 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
b0322a85 | 7454 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
8d138742 CE |
7455 | $as_echo_n "(cached) " >&6 |
7456 | else | |
7457 | lt_cv_ld_exported_symbols_list=no | |
7458 | save_LDFLAGS=$LDFLAGS | |
7459 | echo "_main" > conftest.sym | |
7460 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
b0322a85 | 7461 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 | 7462 | /* end confdefs.h. */ |
d9898ee8 | 7463 | |
8d138742 CE |
7464 | int |
7465 | main () | |
7466 | { | |
7467 | ||
7468 | ; | |
7469 | return 0; | |
7470 | } | |
7471 | _ACEOF | |
b0322a85 | 7472 | if ac_fn_c_try_link "$LINENO"; then : |
8d138742 | 7473 | lt_cv_ld_exported_symbols_list=yes |
d9898ee8 | 7474 | else |
b0322a85 | 7475 | lt_cv_ld_exported_symbols_list=no |
d9898ee8 | 7476 | fi |
b0322a85 CE |
7477 | rm -f core conftest.err conftest.$ac_objext \ |
7478 | conftest$ac_exeext conftest.$ac_ext | |
d50284c4 | 7479 | LDFLAGS=$save_LDFLAGS |
d9898ee8 | 7480 | |
8d138742 | 7481 | fi |
b0322a85 | 7482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
8d138742 | 7483 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
b0322a85 CE |
7484 | |
7485 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7486 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7487 | if ${lt_cv_ld_force_load+:} false; then : | |
7488 | $as_echo_n "(cached) " >&6 | |
7489 | else | |
7490 | lt_cv_ld_force_load=no | |
7491 | cat > conftest.c << _LT_EOF | |
7492 | int forced_loaded() { return 2;} | |
7493 | _LT_EOF | |
7494 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7495 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7496 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7497 | $AR cru libconftest.a conftest.o 2>&5 | |
7498 | echo "$RANLIB libconftest.a" >&5 | |
7499 | $RANLIB libconftest.a 2>&5 | |
7500 | cat > conftest.c << _LT_EOF | |
7501 | int main() { return 0;} | |
7502 | _LT_EOF | |
7503 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7504 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7505 | _lt_result=$? | |
7506 | if test -s conftest.err && $GREP force_load conftest.err; then | |
7507 | cat conftest.err >&5 | |
d50284c4 | 7508 | elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
b0322a85 CE |
7509 | lt_cv_ld_force_load=yes |
7510 | else | |
7511 | cat conftest.err >&5 | |
7512 | fi | |
7513 | rm -f conftest.err libconftest.a conftest conftest.c | |
7514 | rm -rf conftest.dSYM | |
7515 | ||
7516 | fi | |
7517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7518 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
d9898ee8 | 7519 | case $host_os in |
8d138742 | 7520 | rhapsody* | darwin1.[012]) |
d50284c4 | 7521 | _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
8d138742 | 7522 | darwin1.*) |
d50284c4 | 7523 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
8d138742 CE |
7524 | darwin*) # darwin 5.x on |
7525 | # if running on 10.5 or later, the deployment target defaults | |
7526 | # to the OS version, if on x86, and 10.4, the deployment | |
7527 | # target defaults to 10.4. Don't you love it? | |
7528 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7529 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
d50284c4 CE |
7530 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
7531 | 10.[012][,.]*) | |
7532 | _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
8d138742 | 7533 | 10.*) |
d50284c4 | 7534 | _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; |
8d138742 CE |
7535 | esac |
7536 | ;; | |
7537 | esac | |
d50284c4 | 7538 | if test yes = "$lt_cv_apple_cc_single_mod"; then |
8d138742 CE |
7539 | _lt_dar_single_mod='$single_module' |
7540 | fi | |
d50284c4 CE |
7541 | if test yes = "$lt_cv_ld_exported_symbols_list"; then |
7542 | _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
8d138742 | 7543 | else |
d50284c4 | 7544 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
8d138742 | 7545 | fi |
d50284c4 | 7546 | if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
8d138742 CE |
7547 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7548 | else | |
7549 | _lt_dsymutil= | |
7550 | fi | |
7551 | ;; | |
7552 | esac | |
d9898ee8 | 7553 | |
d50284c4 CE |
7554 | # func_munge_path_list VARIABLE PATH |
7555 | # ----------------------------------- | |
7556 | # VARIABLE is name of variable containing _space_ separated list of | |
7557 | # directories to be munged by the contents of PATH, which is string | |
7558 | # having a format: | |
7559 | # "DIR[:DIR]:" | |
7560 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
7561 | # ":DIR[:DIR]" | |
7562 | # string "DIR[ DIR]" will be appended to VARIABLE | |
7563 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
7564 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
7565 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
7566 | # "DIR[:DIR]" | |
7567 | # VARIABLE will be replaced by "DIR[ DIR]" | |
7568 | func_munge_path_list () | |
7569 | { | |
7570 | case x$2 in | |
7571 | x) | |
7572 | ;; | |
7573 | *:) | |
7574 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
7575 | ;; | |
7576 | x:*) | |
7577 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
7578 | ;; | |
7579 | *::*) | |
7580 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
7581 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
7582 | ;; | |
7583 | *) | |
7584 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
7585 | ;; | |
7586 | esac | |
7587 | } | |
7588 | ||
8d138742 CE |
7589 | ac_ext=c |
7590 | ac_cpp='$CPP $CPPFLAGS' | |
7591 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7592 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7593 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b0322a85 | 7594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
8d138742 CE |
7595 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
7596 | # On Suns, sometimes $CPP names a directory. | |
7597 | if test -n "$CPP" && test -d "$CPP"; then | |
7598 | CPP= | |
d9898ee8 | 7599 | fi |
8d138742 | 7600 | if test -z "$CPP"; then |
b0322a85 | 7601 | if ${ac_cv_prog_CPP+:} false; then : |
8d138742 | 7602 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 7603 | else |
8d138742 CE |
7604 | # Double quotes because CPP needs to be expanded |
7605 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7606 | do | |
7607 | ac_preproc_ok=false | |
7608 | for ac_c_preproc_warn_flag in '' yes | |
7609 | do | |
7610 | # Use a header file that comes with gcc, so configuring glibc | |
7611 | # with a fresh cross-compiler works. | |
7612 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7613 | # <limits.h> exists even on freestanding compilers. | |
7614 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7615 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 7616 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7617 | /* end confdefs.h. */ |
7618 | #ifdef __STDC__ | |
7619 | # include <limits.h> | |
7620 | #else | |
7621 | # include <assert.h> | |
7622 | #endif | |
7623 | Syntax error | |
7624 | _ACEOF | |
b0322a85 | 7625 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 7626 | |
b0322a85 | 7627 | else |
8d138742 CE |
7628 | # Broken: fails on valid input. |
7629 | continue | |
7630 | fi | |
b0322a85 | 7631 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7632 | |
8d138742 CE |
7633 | # OK, works on sane cases. Now check whether nonexistent headers |
7634 | # can be detected and how. | |
b0322a85 | 7635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7636 | /* end confdefs.h. */ |
7637 | #include <ac_nonexistent.h> | |
7638 | _ACEOF | |
b0322a85 | 7639 | if ac_fn_c_try_cpp "$LINENO"; then : |
8d138742 CE |
7640 | # Broken: success on invalid input. |
7641 | continue | |
7642 | else | |
8d138742 CE |
7643 | # Passes both tests. |
7644 | ac_preproc_ok=: | |
7645 | break | |
7646 | fi | |
b0322a85 | 7647 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7648 | |
8d138742 CE |
7649 | done |
7650 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
7651 | rm -f conftest.i conftest.err conftest.$ac_ext |
7652 | if $ac_preproc_ok; then : | |
8d138742 CE |
7653 | break |
7654 | fi | |
d9898ee8 | 7655 | |
8d138742 CE |
7656 | done |
7657 | ac_cv_prog_CPP=$CPP | |
d9898ee8 | 7658 | |
8d138742 CE |
7659 | fi |
7660 | CPP=$ac_cv_prog_CPP | |
7661 | else | |
7662 | ac_cv_prog_CPP=$CPP | |
7663 | fi | |
b0322a85 | 7664 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
8d138742 CE |
7665 | $as_echo "$CPP" >&6; } |
7666 | ac_preproc_ok=false | |
7667 | for ac_c_preproc_warn_flag in '' yes | |
7668 | do | |
7669 | # Use a header file that comes with gcc, so configuring glibc | |
7670 | # with a fresh cross-compiler works. | |
7671 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7672 | # <limits.h> exists even on freestanding compilers. | |
7673 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7674 | # not just through cpp. "Syntax error" is here to catch this case. | |
b0322a85 | 7675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7676 | /* end confdefs.h. */ |
7677 | #ifdef __STDC__ | |
7678 | # include <limits.h> | |
7679 | #else | |
7680 | # include <assert.h> | |
7681 | #endif | |
7682 | Syntax error | |
7683 | _ACEOF | |
b0322a85 | 7684 | if ac_fn_c_try_cpp "$LINENO"; then : |
d9898ee8 | 7685 | |
b0322a85 | 7686 | else |
8d138742 CE |
7687 | # Broken: fails on valid input. |
7688 | continue | |
7689 | fi | |
b0322a85 | 7690 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7691 | |
8d138742 CE |
7692 | # OK, works on sane cases. Now check whether nonexistent headers |
7693 | # can be detected and how. | |
b0322a85 | 7694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7695 | /* end confdefs.h. */ |
7696 | #include <ac_nonexistent.h> | |
7697 | _ACEOF | |
b0322a85 | 7698 | if ac_fn_c_try_cpp "$LINENO"; then : |
8d138742 CE |
7699 | # Broken: success on invalid input. |
7700 | continue | |
7701 | else | |
8d138742 CE |
7702 | # Passes both tests. |
7703 | ac_preproc_ok=: | |
7704 | break | |
7705 | fi | |
b0322a85 | 7706 | rm -f conftest.err conftest.i conftest.$ac_ext |
d9898ee8 | 7707 | |
8d138742 CE |
7708 | done |
7709 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
b0322a85 CE |
7710 | rm -f conftest.i conftest.err conftest.$ac_ext |
7711 | if $ac_preproc_ok; then : | |
7712 | ||
8d138742 | 7713 | else |
b0322a85 | 7714 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
8d138742 | 7715 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
7716 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
7717 | See \`config.log' for more details" "$LINENO" 5; } | |
8d138742 | 7718 | fi |
d9898ee8 | 7719 | |
8d138742 CE |
7720 | ac_ext=c |
7721 | ac_cpp='$CPP $CPPFLAGS' | |
7722 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7723 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7724 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 7725 | |
d9898ee8 | 7726 | |
b0322a85 | 7727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
8d138742 | 7728 | $as_echo_n "checking for ANSI C header files... " >&6; } |
b0322a85 | 7729 | if ${ac_cv_header_stdc+:} false; then : |
8d138742 CE |
7730 | $as_echo_n "(cached) " >&6 |
7731 | else | |
b0322a85 | 7732 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7733 | /* end confdefs.h. */ |
7734 | #include <stdlib.h> | |
7735 | #include <stdarg.h> | |
7736 | #include <string.h> | |
7737 | #include <float.h> | |
d9898ee8 | 7738 | |
8d138742 CE |
7739 | int |
7740 | main () | |
7741 | { | |
d9898ee8 | 7742 | |
8d138742 CE |
7743 | ; |
7744 | return 0; | |
7745 | } | |
7746 | _ACEOF | |
b0322a85 | 7747 | if ac_fn_c_try_compile "$LINENO"; then : |
8d138742 CE |
7748 | ac_cv_header_stdc=yes |
7749 | else | |
b0322a85 | 7750 | ac_cv_header_stdc=no |
8d138742 | 7751 | fi |
8d138742 | 7752 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 7753 | |
8d138742 CE |
7754 | if test $ac_cv_header_stdc = yes; then |
7755 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b0322a85 | 7756 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7757 | /* end confdefs.h. */ |
7758 | #include <string.h> | |
d9898ee8 | 7759 | |
8d138742 CE |
7760 | _ACEOF |
7761 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7762 | $EGREP "memchr" >/dev/null 2>&1; then : |
7763 | ||
8d138742 CE |
7764 | else |
7765 | ac_cv_header_stdc=no | |
7766 | fi | |
7767 | rm -f conftest* | |
d9898ee8 | 7768 | |
8d138742 | 7769 | fi |
d9898ee8 | 7770 | |
8d138742 CE |
7771 | if test $ac_cv_header_stdc = yes; then |
7772 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b0322a85 | 7773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7774 | /* end confdefs.h. */ |
7775 | #include <stdlib.h> | |
d9898ee8 | 7776 | |
8d138742 CE |
7777 | _ACEOF |
7778 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
b0322a85 CE |
7779 | $EGREP "free" >/dev/null 2>&1; then : |
7780 | ||
8d138742 CE |
7781 | else |
7782 | ac_cv_header_stdc=no | |
7783 | fi | |
7784 | rm -f conftest* | |
d9898ee8 | 7785 | |
8d138742 | 7786 | fi |
d9898ee8 | 7787 | |
8d138742 CE |
7788 | if test $ac_cv_header_stdc = yes; then |
7789 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b0322a85 | 7790 | if test "$cross_compiling" = yes; then : |
8d138742 CE |
7791 | : |
7792 | else | |
b0322a85 | 7793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
8d138742 CE |
7794 | /* end confdefs.h. */ |
7795 | #include <ctype.h> | |
7796 | #include <stdlib.h> | |
7797 | #if ((' ' & 0x0FF) == 0x020) | |
7798 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7799 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7800 | #else | |
7801 | # define ISLOWER(c) \ | |
7802 | (('a' <= (c) && (c) <= 'i') \ | |
7803 | || ('j' <= (c) && (c) <= 'r') \ | |
7804 | || ('s' <= (c) && (c) <= 'z')) | |
7805 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7806 | #endif | |
d9898ee8 | 7807 | |
8d138742 CE |
7808 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
7809 | int | |
7810 | main () | |
7811 | { | |
7812 | int i; | |
7813 | for (i = 0; i < 256; i++) | |
7814 | if (XOR (islower (i), ISLOWER (i)) | |
7815 | || toupper (i) != TOUPPER (i)) | |
7816 | return 2; | |
7817 | return 0; | |
7818 | } | |
7819 | _ACEOF | |
b0322a85 | 7820 | if ac_fn_c_try_run "$LINENO"; then : |
d9898ee8 | 7821 | |
b0322a85 CE |
7822 | else |
7823 | ac_cv_header_stdc=no | |
8d138742 | 7824 | fi |
b0322a85 CE |
7825 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
7826 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8d138742 | 7827 | fi |
d9898ee8 | 7828 | |
8d138742 CE |
7829 | fi |
7830 | fi | |
b0322a85 | 7831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
8d138742 CE |
7832 | $as_echo "$ac_cv_header_stdc" >&6; } |
7833 | if test $ac_cv_header_stdc = yes; then | |
d9898ee8 | 7834 | |
b0322a85 | 7835 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d9898ee8 | 7836 | |
8d138742 | 7837 | fi |
d9898ee8 | 7838 | |
8d138742 | 7839 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
8d138742 CE |
7840 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
7841 | inttypes.h stdint.h unistd.h | |
b0322a85 CE |
7842 | do : |
7843 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7844 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
7845 | " | |
7846 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8d138742 CE |
7847 | cat >>confdefs.h <<_ACEOF |
7848 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7849 | _ACEOF | |
d9898ee8 | 7850 | |
8d138742 | 7851 | fi |
d9898ee8 | 7852 | |
8d138742 | 7853 | done |
d9898ee8 | 7854 | |
d9898ee8 | 7855 | |
8d138742 | 7856 | for ac_header in dlfcn.h |
b0322a85 CE |
7857 | do : |
7858 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7859 | " | |
7860 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8d138742 | 7861 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 7862 | #define HAVE_DLFCN_H 1 |
8d138742 | 7863 | _ACEOF |
d9898ee8 | 7864 | |
8d138742 | 7865 | fi |
d9898ee8 | 7866 | |
8d138742 | 7867 | done |
d9898ee8 | 7868 | |
d9898ee8 | 7869 | |
d9898ee8 | 7870 | |
b0322a85 CE |
7871 | |
7872 | ||
8d138742 | 7873 | # Set options |
d9898ee8 | 7874 | |
d9898ee8 | 7875 | |
d9898ee8 | 7876 | |
8d138742 | 7877 | enable_dlopen=no |
d9898ee8 | 7878 | |
d9898ee8 | 7879 | |
8d138742 | 7880 | enable_win32_dll=no |
d9898ee8 | 7881 | |
d9898ee8 | 7882 | |
8d138742 | 7883 | # Check whether --enable-shared was given. |
b0322a85 | 7884 | if test "${enable_shared+set}" = set; then : |
8d138742 CE |
7885 | enableval=$enable_shared; p=${PACKAGE-default} |
7886 | case $enableval in | |
7887 | yes) enable_shared=yes ;; | |
7888 | no) enable_shared=no ;; | |
7889 | *) | |
7890 | enable_shared=no | |
7891 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7892 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 7893 | for pkg in $enableval; do |
d50284c4 | 7894 | IFS=$lt_save_ifs |
8d138742 CE |
7895 | if test "X$pkg" = "X$p"; then |
7896 | enable_shared=yes | |
7897 | fi | |
7898 | done | |
d50284c4 | 7899 | IFS=$lt_save_ifs |
8d138742 CE |
7900 | ;; |
7901 | esac | |
7902 | else | |
7903 | enable_shared=yes | |
7904 | fi | |
d9898ee8 | 7905 | |
d9898ee8 | 7906 | |
d9898ee8 | 7907 | |
d9898ee8 | 7908 | |
d9898ee8 | 7909 | |
d9898ee8 | 7910 | |
d9898ee8 | 7911 | |
d9898ee8 | 7912 | |
7913 | ||
8d138742 | 7914 | # Check whether --enable-static was given. |
b0322a85 | 7915 | if test "${enable_static+set}" = set; then : |
8d138742 CE |
7916 | enableval=$enable_static; p=${PACKAGE-default} |
7917 | case $enableval in | |
7918 | yes) enable_static=yes ;; | |
7919 | no) enable_static=no ;; | |
7920 | *) | |
7921 | enable_static=no | |
7922 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7923 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 7924 | for pkg in $enableval; do |
d50284c4 | 7925 | IFS=$lt_save_ifs |
8d138742 CE |
7926 | if test "X$pkg" = "X$p"; then |
7927 | enable_static=yes | |
7928 | fi | |
7929 | done | |
d50284c4 | 7930 | IFS=$lt_save_ifs |
8d138742 CE |
7931 | ;; |
7932 | esac | |
d9898ee8 | 7933 | else |
8d138742 | 7934 | enable_static=yes |
d9898ee8 | 7935 | fi |
7936 | ||
7937 | ||
d9898ee8 | 7938 | |
d9898ee8 | 7939 | |
d9898ee8 | 7940 | |
d9898ee8 | 7941 | |
d9898ee8 | 7942 | |
d9898ee8 | 7943 | |
d9898ee8 | 7944 | |
d9898ee8 | 7945 | |
8d138742 | 7946 | # Check whether --with-pic was given. |
b0322a85 CE |
7947 | if test "${with_pic+set}" = set; then : |
7948 | withval=$with_pic; lt_p=${PACKAGE-default} | |
7949 | case $withval in | |
7950 | yes|no) pic_mode=$withval ;; | |
7951 | *) | |
7952 | pic_mode=default | |
7953 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7954 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
b0322a85 | 7955 | for lt_pkg in $withval; do |
d50284c4 | 7956 | IFS=$lt_save_ifs |
b0322a85 CE |
7957 | if test "X$lt_pkg" = "X$lt_p"; then |
7958 | pic_mode=yes | |
7959 | fi | |
7960 | done | |
d50284c4 | 7961 | IFS=$lt_save_ifs |
b0322a85 CE |
7962 | ;; |
7963 | esac | |
8d138742 CE |
7964 | else |
7965 | pic_mode=default | |
7966 | fi | |
d9898ee8 | 7967 | |
7968 | ||
d9898ee8 | 7969 | |
7970 | ||
d9898ee8 | 7971 | |
7972 | ||
d9898ee8 | 7973 | |
d9898ee8 | 7974 | |
8d138742 | 7975 | # Check whether --enable-fast-install was given. |
b0322a85 | 7976 | if test "${enable_fast_install+set}" = set; then : |
8d138742 CE |
7977 | enableval=$enable_fast_install; p=${PACKAGE-default} |
7978 | case $enableval in | |
7979 | yes) enable_fast_install=yes ;; | |
7980 | no) enable_fast_install=no ;; | |
7981 | *) | |
7982 | enable_fast_install=no | |
7983 | # Look at the argument we got. We use all the common list separators. | |
d50284c4 | 7984 | lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
8d138742 | 7985 | for pkg in $enableval; do |
d50284c4 | 7986 | IFS=$lt_save_ifs |
8d138742 CE |
7987 | if test "X$pkg" = "X$p"; then |
7988 | enable_fast_install=yes | |
7989 | fi | |
7990 | done | |
d50284c4 | 7991 | IFS=$lt_save_ifs |
8d138742 CE |
7992 | ;; |
7993 | esac | |
7994 | else | |
7995 | enable_fast_install=yes | |
7996 | fi | |
d9898ee8 | 7997 | |
d9898ee8 | 7998 | |
d9898ee8 | 7999 | |
d9898ee8 | 8000 | |
d9898ee8 | 8001 | |
d9898ee8 | 8002 | |
d9898ee8 | 8003 | |
d9898ee8 | 8004 | |
d50284c4 CE |
8005 | shared_archive_member_spec= |
8006 | case $host,$enable_shared in | |
8007 | power*-*-aix[5-9]*,yes) | |
8008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
8009 | $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
8010 | ||
8011 | # Check whether --with-aix-soname was given. | |
8012 | if test "${with_aix_soname+set}" = set; then : | |
8013 | withval=$with_aix_soname; case $withval in | |
8014 | aix|svr4|both) | |
8015 | ;; | |
8016 | *) | |
8017 | as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
8018 | ;; | |
8019 | esac | |
8020 | lt_cv_with_aix_soname=$with_aix_soname | |
8021 | else | |
8022 | if ${lt_cv_with_aix_soname+:} false; then : | |
8023 | $as_echo_n "(cached) " >&6 | |
8024 | else | |
8025 | lt_cv_with_aix_soname=aix | |
8026 | fi | |
8027 | ||
8028 | with_aix_soname=$lt_cv_with_aix_soname | |
8029 | fi | |
8030 | ||
8031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
8032 | $as_echo "$with_aix_soname" >&6; } | |
8033 | if test aix != "$with_aix_soname"; then | |
8034 | # For the AIX way of multilib, we name the shared archive member | |
8035 | # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
8036 | # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
8037 | # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
8038 | # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
8039 | if test 64 = "${OBJECT_MODE-32}"; then | |
8040 | shared_archive_member_spec=shr_64 | |
8041 | else | |
8042 | shared_archive_member_spec=shr | |
8043 | fi | |
8044 | fi | |
8045 | ;; | |
8046 | *) | |
8047 | with_aix_soname=aix | |
8048 | ;; | |
8049 | esac | |
8050 | ||
8051 | ||
8052 | ||
8053 | ||
8054 | ||
8055 | ||
8056 | ||
d9898ee8 | 8057 | |
d9898ee8 | 8058 | |
d9898ee8 | 8059 | |
8d138742 | 8060 | # This can be used to rebuild libtool when needed |
d50284c4 | 8061 | LIBTOOL_DEPS=$ltmain |
d9898ee8 | 8062 | |
8d138742 CE |
8063 | # Always use our own libtool. |
8064 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
d9898ee8 | 8065 | |
d9898ee8 | 8066 | |
d9898ee8 | 8067 | |
d9898ee8 | 8068 | |
d9898ee8 | 8069 | |
d9898ee8 | 8070 | |
d9898ee8 | 8071 | |
d9898ee8 | 8072 | |
d9898ee8 | 8073 | |
d9898ee8 | 8074 | |
ac40fd9e | 8075 | |
d9898ee8 | 8076 | |
d9898ee8 | 8077 | |
d9898ee8 | 8078 | |
d9898ee8 | 8079 | |
d9898ee8 | 8080 | |
d9898ee8 | 8081 | |
d9898ee8 | 8082 | |
d9898ee8 | 8083 | |
b0322a85 CE |
8084 | |
8085 | ||
8086 | ||
8087 | ||
8088 | ||
d9898ee8 | 8089 | |
d9898ee8 | 8090 | |
d9898ee8 | 8091 | |
d9898ee8 | 8092 | |
d9898ee8 | 8093 | |
d9898ee8 | 8094 | |
8d138742 CE |
8095 | test -z "$LN_S" && LN_S="ln -s" |
8096 | ||
d9898ee8 | 8097 | |
d9898ee8 | 8098 | |
d9898ee8 | 8099 | |
8100 | ||
d9898ee8 | 8101 | |
d9898ee8 | 8102 | |
d9898ee8 | 8103 | |
8104 | ||
8d138742 CE |
8105 | |
8106 | ||
8107 | ||
8108 | ||
8109 | ||
d50284c4 | 8110 | if test -n "${ZSH_VERSION+set}"; then |
8d138742 CE |
8111 | setopt NO_GLOB_SUBST |
8112 | fi | |
8113 | ||
b0322a85 | 8114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
8d138742 | 8115 | $as_echo_n "checking for objdir... " >&6; } |
b0322a85 | 8116 | if ${lt_cv_objdir+:} false; then : |
8d138742 | 8117 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 8118 | else |
8d138742 CE |
8119 | rm -f .libs 2>/dev/null |
8120 | mkdir .libs 2>/dev/null | |
8121 | if test -d .libs; then | |
8122 | lt_cv_objdir=.libs | |
8123 | else | |
8124 | # MS-DOS does not allow filenames that begin with a dot. | |
8125 | lt_cv_objdir=_libs | |
d9898ee8 | 8126 | fi |
8d138742 CE |
8127 | rmdir .libs 2>/dev/null |
8128 | fi | |
b0322a85 | 8129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
8d138742 CE |
8130 | $as_echo "$lt_cv_objdir" >&6; } |
8131 | objdir=$lt_cv_objdir | |
d9898ee8 | 8132 | |
d9898ee8 | 8133 | |
d9898ee8 | 8134 | |
d9898ee8 | 8135 | |
d9898ee8 | 8136 | |
8d138742 CE |
8137 | cat >>confdefs.h <<_ACEOF |
8138 | #define LT_OBJDIR "$lt_cv_objdir/" | |
8139 | _ACEOF | |
d9898ee8 | 8140 | |
d9898ee8 | 8141 | |
d9898ee8 | 8142 | |
d9898ee8 | 8143 | |
8d138742 CE |
8144 | case $host_os in |
8145 | aix3*) | |
8146 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8147 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8148 | # vanish in a puff of smoke. | |
d50284c4 | 8149 | if test set != "${COLLECT_NAMES+set}"; then |
8d138742 CE |
8150 | COLLECT_NAMES= |
8151 | export COLLECT_NAMES | |
8152 | fi | |
8153 | ;; | |
8154 | esac | |
d9898ee8 | 8155 | |
8d138742 CE |
8156 | # Global variables: |
8157 | ofile=libtool | |
8158 | can_build_shared=yes | |
d9898ee8 | 8159 | |
d50284c4 | 8160 | # All known linkers require a '.a' archive for static linking (except MSVC, |
8d138742 CE |
8161 | # which needs '.lib'). |
8162 | libext=a | |
d9898ee8 | 8163 | |
d50284c4 | 8164 | with_gnu_ld=$lt_cv_prog_gnu_ld |
d9898ee8 | 8165 | |
d50284c4 CE |
8166 | old_CC=$CC |
8167 | old_CFLAGS=$CFLAGS | |
d9898ee8 | 8168 | |
8d138742 CE |
8169 | # Set sane defaults for various variables |
8170 | test -z "$CC" && CC=cc | |
8171 | test -z "$LTCC" && LTCC=$CC | |
8172 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8173 | test -z "$LD" && LD=ld | |
8174 | test -z "$ac_objext" && ac_objext=o | |
d9898ee8 | 8175 | |
d50284c4 CE |
8176 | func_cc_basename $compiler |
8177 | cc_basename=$func_cc_basename_result | |
8d138742 CE |
8178 | |
8179 | ||
8180 | # Only perform the check for file, if the check method requires it | |
8181 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8182 | case $deplibs_check_method in | |
8183 | file_magic*) | |
8184 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
b0322a85 | 8185 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
8d138742 | 8186 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
b0322a85 | 8187 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 CE |
8188 | $as_echo_n "(cached) " >&6 |
8189 | else | |
8190 | case $MAGIC_CMD in | |
8191 | [\\/*] | ?:[\\/]*) | |
d50284c4 | 8192 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8d138742 CE |
8193 | ;; |
8194 | *) | |
d50284c4 CE |
8195 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8196 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8d138742 CE |
8197 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8198 | for ac_dir in $ac_dummy; do | |
d50284c4 | 8199 | IFS=$lt_save_ifs |
8d138742 | 8200 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
8201 | if test -f "$ac_dir/${ac_tool_prefix}file"; then |
8202 | lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
8d138742 CE |
8203 | if test -n "$file_magic_test_file"; then |
8204 | case $deplibs_check_method in | |
8205 | "file_magic "*) | |
8206 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
d50284c4 | 8207 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 CE |
8208 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8209 | $EGREP "$file_magic_regex" > /dev/null; then | |
8210 | : | |
d9898ee8 | 8211 | else |
8d138742 | 8212 | cat <<_LT_EOF 1>&2 |
d9898ee8 | 8213 | |
8d138742 CE |
8214 | *** Warning: the command libtool uses to detect shared libraries, |
8215 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8216 | *** The result is that libtool may fail to recognize shared libraries | |
8217 | *** as such. This will affect the creation of libtool libraries that | |
8218 | *** depend on shared libraries, but programs linked with such libtool | |
8219 | *** libraries will work regardless of this problem. Nevertheless, you | |
8220 | *** may want to report the problem to your system manager and/or to | |
8221 | *** bug-libtool@gnu.org | |
d9898ee8 | 8222 | |
8d138742 CE |
8223 | _LT_EOF |
8224 | fi ;; | |
8225 | esac | |
8226 | fi | |
8227 | break | |
8228 | fi | |
8229 | done | |
d50284c4 CE |
8230 | IFS=$lt_save_ifs |
8231 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8d138742 | 8232 | ;; |
dd184caf | 8233 | esac |
ac40fd9e | 8234 | fi |
8d138742 | 8235 | |
d50284c4 | 8236 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 | 8237 | if test -n "$MAGIC_CMD"; then |
b0322a85 | 8238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 | 8239 | $as_echo "$MAGIC_CMD" >&6; } |
d9898ee8 | 8240 | else |
b0322a85 | 8241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8242 | $as_echo "no" >&6; } |
8243 | fi | |
d9898ee8 | 8244 | |
dd184caf | 8245 | |
dd184caf | 8246 | |
d9898ee8 | 8247 | |
d9898ee8 | 8248 | |
8d138742 CE |
8249 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
8250 | if test -n "$ac_tool_prefix"; then | |
b0322a85 | 8251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
8d138742 | 8252 | $as_echo_n "checking for file... " >&6; } |
b0322a85 | 8253 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
8d138742 CE |
8254 | $as_echo_n "(cached) " >&6 |
8255 | else | |
8256 | case $MAGIC_CMD in | |
8257 | [\\/*] | ?:[\\/]*) | |
d50284c4 | 8258 | lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
8d138742 CE |
8259 | ;; |
8260 | *) | |
d50284c4 CE |
8261 | lt_save_MAGIC_CMD=$MAGIC_CMD |
8262 | lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
8d138742 CE |
8263 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
8264 | for ac_dir in $ac_dummy; do | |
d50284c4 | 8265 | IFS=$lt_save_ifs |
8d138742 | 8266 | test -z "$ac_dir" && ac_dir=. |
d50284c4 CE |
8267 | if test -f "$ac_dir/file"; then |
8268 | lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
8d138742 CE |
8269 | if test -n "$file_magic_test_file"; then |
8270 | case $deplibs_check_method in | |
8271 | "file_magic "*) | |
8272 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
d50284c4 | 8273 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 CE |
8274 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
8275 | $EGREP "$file_magic_regex" > /dev/null; then | |
8276 | : | |
8277 | else | |
8278 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 8279 | |
8d138742 CE |
8280 | *** Warning: the command libtool uses to detect shared libraries, |
8281 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8282 | *** The result is that libtool may fail to recognize shared libraries | |
8283 | *** as such. This will affect the creation of libtool libraries that | |
8284 | *** depend on shared libraries, but programs linked with such libtool | |
8285 | *** libraries will work regardless of this problem. Nevertheless, you | |
8286 | *** may want to report the problem to your system manager and/or to | |
8287 | *** bug-libtool@gnu.org | |
8288 | ||
8289 | _LT_EOF | |
8290 | fi ;; | |
8291 | esac | |
8292 | fi | |
8293 | break | |
8294 | fi | |
8295 | done | |
d50284c4 CE |
8296 | IFS=$lt_save_ifs |
8297 | MAGIC_CMD=$lt_save_MAGIC_CMD | |
8d138742 CE |
8298 | ;; |
8299 | esac | |
ac40fd9e | 8300 | fi |
8d138742 | 8301 | |
d50284c4 | 8302 | MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
8d138742 | 8303 | if test -n "$MAGIC_CMD"; then |
b0322a85 | 8304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
8d138742 | 8305 | $as_echo "$MAGIC_CMD" >&6; } |
d9898ee8 | 8306 | else |
b0322a85 | 8307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
8d138742 CE |
8308 | $as_echo "no" >&6; } |
8309 | fi | |
d9898ee8 | 8310 | |
dd184caf | 8311 | |
8d138742 CE |
8312 | else |
8313 | MAGIC_CMD=: | |
8314 | fi | |
d9898ee8 | 8315 | fi |
dd184caf | 8316 | |
8d138742 CE |
8317 | fi |
8318 | ;; | |
8319 | esac | |
d9898ee8 | 8320 | |
8d138742 | 8321 | # Use C for the default configuration in the libtool script |
d9898ee8 | 8322 | |
d50284c4 | 8323 | lt_save_CC=$CC |
8d138742 CE |
8324 | ac_ext=c |
8325 | ac_cpp='$CPP $CPPFLAGS' | |
8326 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8327 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8328 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d9898ee8 | 8329 | |
d9898ee8 | 8330 | |
8d138742 CE |
8331 | # Source file extension for C test sources. |
8332 | ac_ext=c | |
d9898ee8 | 8333 | |
8d138742 CE |
8334 | # Object file extension for compiled C test sources. |
8335 | objext=o | |
8336 | objext=$objext | |
d9898ee8 | 8337 | |
8d138742 CE |
8338 | # Code to be used in simple compile tests |
8339 | lt_simple_compile_test_code="int some_variable = 0;" | |
d9898ee8 | 8340 | |
8d138742 CE |
8341 | # Code to be used in simple link tests |
8342 | lt_simple_link_test_code='int main(){return(0);}' | |
d9898ee8 | 8343 | |
d9898ee8 | 8344 | |
d9898ee8 | 8345 | |
d9898ee8 | 8346 | |
d9898ee8 | 8347 | |
d9898ee8 | 8348 | |
d9898ee8 | 8349 | |
8d138742 CE |
8350 | # If no C compiler was specified, use CC. |
8351 | LTCC=${LTCC-"$CC"} | |
d9898ee8 | 8352 | |
8d138742 CE |
8353 | # If no C compiler flags were specified, use CFLAGS. |
8354 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
d9898ee8 | 8355 | |
8d138742 CE |
8356 | # Allow CC to be a program name with arguments. |
8357 | compiler=$CC | |
d9898ee8 | 8358 | |
8d138742 CE |
8359 | # Save the default compiler, since it gets overwritten when the other |
8360 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8361 | compiler_DEFAULT=$CC | |
d9898ee8 | 8362 | |
8d138742 CE |
8363 | # save warnings/boilerplate of simple test code |
8364 | ac_outfile=conftest.$ac_objext | |
8365 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8366 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8367 | _lt_compiler_boilerplate=`cat conftest.err` | |
8368 | $RM conftest* | |
d9898ee8 | 8369 | |
8d138742 CE |
8370 | ac_outfile=conftest.$ac_objext |
8371 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8372 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8373 | _lt_linker_boilerplate=`cat conftest.err` | |
8374 | $RM -r conftest* | |
d9898ee8 | 8375 | |
d9898ee8 | 8376 | |
8d138742 | 8377 | if test -n "$compiler"; then |
d9898ee8 | 8378 | |
8d138742 | 8379 | lt_prog_compiler_no_builtin_flag= |
d9898ee8 | 8380 | |
d50284c4 | 8381 | if test yes = "$GCC"; then |
b0322a85 CE |
8382 | case $cc_basename in |
8383 | nvcc*) | |
8384 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8385 | *) | |
8386 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8387 | esac | |
8388 | ||
8389 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8d138742 | 8390 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
b0322a85 | 8391 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
8d138742 CE |
8392 | $as_echo_n "(cached) " >&6 |
8393 | else | |
8394 | lt_cv_prog_compiler_rtti_exceptions=no | |
8395 | ac_outfile=conftest.$ac_objext | |
8396 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d50284c4 | 8397 | lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
8d138742 CE |
8398 | # Insert the option either (1) after the last *FLAGS variable, or |
8399 | # (2) before a word containing "conftest.", or (3) at the end. | |
8400 | # Note that $ac_compile itself does not contain backslashes and begins | |
8401 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8402 | # The option is referenced via a variable to avoid confusing sed. | |
8403 | lt_compile=`echo "$ac_compile" | $SED \ | |
8404 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8405 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8406 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8407 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8408 | (eval "$lt_compile" 2>conftest.err) |
8409 | ac_status=$? | |
8410 | cat conftest.err >&5 | |
b0322a85 | 8411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8412 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8413 | # The compiler can only warn and ignore the option if not recognized | |
8414 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8415 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
8416 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8417 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8418 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8419 | fi | |
8420 | fi | |
8421 | $RM conftest* | |
d9898ee8 | 8422 | |
8d138742 | 8423 | fi |
b0322a85 | 8424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8d138742 | 8425 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 | 8426 | |
d50284c4 | 8427 | if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
8d138742 CE |
8428 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
8429 | else | |
8430 | : | |
8431 | fi | |
d9898ee8 | 8432 | |
8d138742 | 8433 | fi |
d9898ee8 | 8434 | |
d9898ee8 | 8435 | |
d9898ee8 | 8436 | |
d9898ee8 | 8437 | |
d9898ee8 | 8438 | |
d9898ee8 | 8439 | |
8d138742 CE |
8440 | lt_prog_compiler_wl= |
8441 | lt_prog_compiler_pic= | |
8442 | lt_prog_compiler_static= | |
8443 | ||
8d138742 | 8444 | |
d50284c4 | 8445 | if test yes = "$GCC"; then |
8d138742 CE |
8446 | lt_prog_compiler_wl='-Wl,' |
8447 | lt_prog_compiler_static='-static' | |
d9898ee8 | 8448 | |
8d138742 CE |
8449 | case $host_os in |
8450 | aix*) | |
8451 | # All AIX code is PIC. | |
d50284c4 | 8452 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
8453 | # AIX 5 now supports IA64 processor |
8454 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8455 | fi |
d50284c4 | 8456 | lt_prog_compiler_pic='-fPIC' |
d9898ee8 | 8457 | ;; |
8458 | ||
8d138742 CE |
8459 | amigaos*) |
8460 | case $host_cpu in | |
8461 | powerpc) | |
8462 | # see comment about AmigaOS4 .so support | |
8463 | lt_prog_compiler_pic='-fPIC' | |
8464 | ;; | |
8465 | m68k) | |
8466 | # FIXME: we need at least 68020 code to build shared libraries, but | |
d50284c4 CE |
8467 | # adding the '-m68020' flag to GCC prevents building anything better, |
8468 | # like '-m68040'. | |
8d138742 CE |
8469 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
8470 | ;; | |
8471 | esac | |
d9898ee8 | 8472 | ;; |
8473 | ||
8d138742 CE |
8474 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
8475 | # PIC is the default for these OSes. | |
d9898ee8 | 8476 | ;; |
d9898ee8 | 8477 | |
8d138742 CE |
8478 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8479 | # This hack is so that the source file can tell whether it is being | |
8480 | # built for inclusion in a dll (and should export symbols for example). | |
8481 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8482 | # (--disable-auto-import) libraries | |
8483 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d50284c4 CE |
8484 | case $host_os in |
8485 | os2*) | |
8486 | lt_prog_compiler_static='$wl-static' | |
8487 | ;; | |
8488 | esac | |
d9898ee8 | 8489 | ;; |
d9898ee8 | 8490 | |
8d138742 CE |
8491 | darwin* | rhapsody*) |
8492 | # PIC is the default on this platform | |
8493 | # Common symbols not allowed in MH_DYLIB files | |
8494 | lt_prog_compiler_pic='-fno-common' | |
d9898ee8 | 8495 | ;; |
d9898ee8 | 8496 | |
b0322a85 CE |
8497 | haiku*) |
8498 | # PIC is the default for Haiku. | |
8499 | # The "-static" flag exists, but is broken. | |
8500 | lt_prog_compiler_static= | |
8501 | ;; | |
8502 | ||
8d138742 CE |
8503 | hpux*) |
8504 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8505 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8506 | # sets the default TLS model and affects inlining. | |
8507 | case $host_cpu in | |
8508 | hppa*64*) | |
8509 | # +Z the default | |
8510 | ;; | |
8511 | *) | |
8512 | lt_prog_compiler_pic='-fPIC' | |
8513 | ;; | |
8514 | esac | |
8515 | ;; | |
ac40fd9e | 8516 | |
8d138742 CE |
8517 | interix[3-9]*) |
8518 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8519 | # Instead, we relocate shared libraries at runtime. | |
8520 | ;; | |
d9898ee8 | 8521 | |
8d138742 CE |
8522 | msdosdjgpp*) |
8523 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8524 | # on systems that don't support them. | |
8525 | lt_prog_compiler_can_build_shared=no | |
8526 | enable_shared=no | |
8527 | ;; | |
d9898ee8 | 8528 | |
8d138742 CE |
8529 | *nto* | *qnx*) |
8530 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8531 | # it will coredump. | |
8532 | lt_prog_compiler_pic='-fPIC -shared' | |
8533 | ;; | |
d9898ee8 | 8534 | |
8d138742 CE |
8535 | sysv4*MP*) |
8536 | if test -d /usr/nec; then | |
8537 | lt_prog_compiler_pic=-Kconform_pic | |
8538 | fi | |
8539 | ;; | |
d9898ee8 | 8540 | |
8d138742 CE |
8541 | *) |
8542 | lt_prog_compiler_pic='-fPIC' | |
8543 | ;; | |
8544 | esac | |
b0322a85 CE |
8545 | |
8546 | case $cc_basename in | |
8547 | nvcc*) # Cuda Compiler Driver 2.2 | |
8548 | lt_prog_compiler_wl='-Xlinker ' | |
8549 | if test -n "$lt_prog_compiler_pic"; then | |
8550 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8551 | fi | |
8552 | ;; | |
8553 | esac | |
d9898ee8 | 8554 | else |
8d138742 | 8555 | # PORTME Check for flag to pass linker flags through the system compiler. |
d9898ee8 | 8556 | case $host_os in |
8d138742 CE |
8557 | aix*) |
8558 | lt_prog_compiler_wl='-Wl,' | |
d50284c4 | 8559 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
8560 | # AIX 5 now supports IA64 processor |
8561 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8562 | else |
8d138742 | 8563 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
d9898ee8 | 8564 | fi |
8565 | ;; | |
d9898ee8 | 8566 | |
d50284c4 CE |
8567 | darwin* | rhapsody*) |
8568 | # PIC is the default on this platform | |
8569 | # Common symbols not allowed in MH_DYLIB files | |
8570 | lt_prog_compiler_pic='-fno-common' | |
8571 | case $cc_basename in | |
8572 | nagfor*) | |
8573 | # NAG Fortran compiler | |
8574 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8575 | lt_prog_compiler_pic='-PIC' | |
8576 | lt_prog_compiler_static='-Bstatic' | |
8577 | ;; | |
8578 | esac | |
8579 | ;; | |
8580 | ||
8d138742 CE |
8581 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
8582 | # This hack is so that the source file can tell whether it is being | |
8583 | # built for inclusion in a dll (and should export symbols for example). | |
8584 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
d50284c4 CE |
8585 | case $host_os in |
8586 | os2*) | |
8587 | lt_prog_compiler_static='$wl-static' | |
8588 | ;; | |
8589 | esac | |
8d138742 | 8590 | ;; |
d9898ee8 | 8591 | |
8d138742 CE |
8592 | hpux9* | hpux10* | hpux11*) |
8593 | lt_prog_compiler_wl='-Wl,' | |
8594 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8595 | # not for PA HP-UX. | |
8596 | case $host_cpu in | |
8597 | hppa*64*|ia64*) | |
8598 | # +Z the default | |
8599 | ;; | |
8600 | *) | |
8601 | lt_prog_compiler_pic='+Z' | |
8602 | ;; | |
8603 | esac | |
8604 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
d50284c4 | 8605 | lt_prog_compiler_static='$wl-a ${wl}archive' |
8d138742 | 8606 | ;; |
d9898ee8 | 8607 | |
8d138742 CE |
8608 | irix5* | irix6* | nonstopux*) |
8609 | lt_prog_compiler_wl='-Wl,' | |
8610 | # PIC (with -KPIC) is the default. | |
8611 | lt_prog_compiler_static='-non_shared' | |
8612 | ;; | |
8613 | ||
d50284c4 | 8614 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
8d138742 | 8615 | case $cc_basename in |
d50284c4 | 8616 | # old Intel for x86_64, which still supported -KPIC. |
8d138742 CE |
8617 | ecc*) |
8618 | lt_prog_compiler_wl='-Wl,' | |
8619 | lt_prog_compiler_pic='-KPIC' | |
8620 | lt_prog_compiler_static='-static' | |
8621 | ;; | |
8622 | # icc used to be incompatible with GCC. | |
8623 | # ICC 10 doesn't accept -KPIC any more. | |
8624 | icc* | ifort*) | |
8625 | lt_prog_compiler_wl='-Wl,' | |
8626 | lt_prog_compiler_pic='-fPIC' | |
8627 | lt_prog_compiler_static='-static' | |
8628 | ;; | |
8629 | # Lahey Fortran 8.1. | |
8630 | lf95*) | |
8631 | lt_prog_compiler_wl='-Wl,' | |
8632 | lt_prog_compiler_pic='--shared' | |
8633 | lt_prog_compiler_static='--static' | |
8634 | ;; | |
b0322a85 CE |
8635 | nagfor*) |
8636 | # NAG Fortran compiler | |
8637 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8638 | lt_prog_compiler_pic='-PIC' | |
8639 | lt_prog_compiler_static='-Bstatic' | |
8640 | ;; | |
d50284c4 CE |
8641 | tcc*) |
8642 | # Fabrice Bellard et al's Tiny C Compiler | |
8643 | lt_prog_compiler_wl='-Wl,' | |
8644 | lt_prog_compiler_pic='-fPIC' | |
8645 | lt_prog_compiler_static='-static' | |
8646 | ;; | |
b0322a85 | 8647 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
8d138742 CE |
8648 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8649 | # which looks to be a dead project) | |
8650 | lt_prog_compiler_wl='-Wl,' | |
8651 | lt_prog_compiler_pic='-fpic' | |
8652 | lt_prog_compiler_static='-Bstatic' | |
8653 | ;; | |
8654 | ccc*) | |
8655 | lt_prog_compiler_wl='-Wl,' | |
8656 | # All Alpha code is PIC. | |
8657 | lt_prog_compiler_static='-non_shared' | |
8658 | ;; | |
b0322a85 CE |
8659 | xl* | bgxl* | bgf* | mpixl*) |
8660 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8d138742 CE |
8661 | lt_prog_compiler_wl='-Wl,' |
8662 | lt_prog_compiler_pic='-qpic' | |
8663 | lt_prog_compiler_static='-qstaticlink' | |
8664 | ;; | |
8665 | *) | |
8666 | case `$CC -V 2>&1 | sed 5q` in | |
b0322a85 CE |
8667 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
8668 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8669 | lt_prog_compiler_pic='-KPIC' | |
8670 | lt_prog_compiler_static='-Bstatic' | |
8671 | lt_prog_compiler_wl='' | |
8672 | ;; | |
8673 | *Sun\ F* | *Sun*Fortran*) | |
8674 | lt_prog_compiler_pic='-KPIC' | |
8675 | lt_prog_compiler_static='-Bstatic' | |
8676 | lt_prog_compiler_wl='-Qoption ld ' | |
8677 | ;; | |
8d138742 CE |
8678 | *Sun\ C*) |
8679 | # Sun C 5.9 | |
8680 | lt_prog_compiler_pic='-KPIC' | |
8681 | lt_prog_compiler_static='-Bstatic' | |
8682 | lt_prog_compiler_wl='-Wl,' | |
8683 | ;; | |
b0322a85 CE |
8684 | *Intel*\ [CF]*Compiler*) |
8685 | lt_prog_compiler_wl='-Wl,' | |
8686 | lt_prog_compiler_pic='-fPIC' | |
8687 | lt_prog_compiler_static='-static' | |
8688 | ;; | |
8689 | *Portland\ Group*) | |
8690 | lt_prog_compiler_wl='-Wl,' | |
8691 | lt_prog_compiler_pic='-fpic' | |
8d138742 | 8692 | lt_prog_compiler_static='-Bstatic' |
8d138742 CE |
8693 | ;; |
8694 | esac | |
8695 | ;; | |
8696 | esac | |
8697 | ;; | |
d9898ee8 | 8698 | |
8d138742 CE |
8699 | newsos6) |
8700 | lt_prog_compiler_pic='-KPIC' | |
8701 | lt_prog_compiler_static='-Bstatic' | |
8702 | ;; | |
d9898ee8 | 8703 | |
8d138742 CE |
8704 | *nto* | *qnx*) |
8705 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8706 | # it will coredump. | |
8707 | lt_prog_compiler_pic='-fPIC -shared' | |
8708 | ;; | |
d9898ee8 | 8709 | |
8d138742 CE |
8710 | osf3* | osf4* | osf5*) |
8711 | lt_prog_compiler_wl='-Wl,' | |
8712 | # All OSF/1 code is PIC. | |
8713 | lt_prog_compiler_static='-non_shared' | |
d9898ee8 | 8714 | ;; |
8d138742 CE |
8715 | |
8716 | rdos*) | |
8717 | lt_prog_compiler_static='-non_shared' | |
d9898ee8 | 8718 | ;; |
8d138742 CE |
8719 | |
8720 | solaris*) | |
8721 | lt_prog_compiler_pic='-KPIC' | |
8722 | lt_prog_compiler_static='-Bstatic' | |
8723 | case $cc_basename in | |
b0322a85 | 8724 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
8d138742 CE |
8725 | lt_prog_compiler_wl='-Qoption ld ';; |
8726 | *) | |
8727 | lt_prog_compiler_wl='-Wl,';; | |
8728 | esac | |
d9898ee8 | 8729 | ;; |
d9898ee8 | 8730 | |
8d138742 CE |
8731 | sunos4*) |
8732 | lt_prog_compiler_wl='-Qoption ld ' | |
8733 | lt_prog_compiler_pic='-PIC' | |
8734 | lt_prog_compiler_static='-Bstatic' | |
8735 | ;; | |
d9898ee8 | 8736 | |
8d138742 CE |
8737 | sysv4 | sysv4.2uw2* | sysv4.3*) |
8738 | lt_prog_compiler_wl='-Wl,' | |
8739 | lt_prog_compiler_pic='-KPIC' | |
8740 | lt_prog_compiler_static='-Bstatic' | |
8741 | ;; | |
ac40fd9e | 8742 | |
8d138742 | 8743 | sysv4*MP*) |
d50284c4 | 8744 | if test -d /usr/nec; then |
8d138742 CE |
8745 | lt_prog_compiler_pic='-Kconform_pic' |
8746 | lt_prog_compiler_static='-Bstatic' | |
8747 | fi | |
8748 | ;; | |
d9898ee8 | 8749 | |
8d138742 CE |
8750 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
8751 | lt_prog_compiler_wl='-Wl,' | |
8752 | lt_prog_compiler_pic='-KPIC' | |
8753 | lt_prog_compiler_static='-Bstatic' | |
8754 | ;; | |
d9898ee8 | 8755 | |
8d138742 CE |
8756 | unicos*) |
8757 | lt_prog_compiler_wl='-Wl,' | |
8758 | lt_prog_compiler_can_build_shared=no | |
8759 | ;; | |
d9898ee8 | 8760 | |
8d138742 CE |
8761 | uts4*) |
8762 | lt_prog_compiler_pic='-pic' | |
8763 | lt_prog_compiler_static='-Bstatic' | |
d9898ee8 | 8764 | ;; |
8d138742 CE |
8765 | |
8766 | *) | |
8767 | lt_prog_compiler_can_build_shared=no | |
d9898ee8 | 8768 | ;; |
8d138742 CE |
8769 | esac |
8770 | fi | |
8771 | ||
8772 | case $host_os in | |
d50284c4 | 8773 | # For platforms that do not support PIC, -DPIC is meaningless: |
8d138742 CE |
8774 | *djgpp*) |
8775 | lt_prog_compiler_pic= | |
d9898ee8 | 8776 | ;; |
8d138742 CE |
8777 | *) |
8778 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
d9898ee8 | 8779 | ;; |
8d138742 | 8780 | esac |
d9898ee8 | 8781 | |
b0322a85 CE |
8782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8783 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8784 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8785 | $as_echo_n "(cached) " >&6 | |
8786 | else | |
8787 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8788 | fi | |
8789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8790 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8791 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
d9898ee8 | 8792 | |
8d138742 CE |
8793 | # |
8794 | # Check to make sure the PIC flag actually works. | |
8795 | # | |
8796 | if test -n "$lt_prog_compiler_pic"; then | |
b0322a85 | 8797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8d138742 | 8798 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
b0322a85 | 8799 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
8d138742 CE |
8800 | $as_echo_n "(cached) " >&6 |
8801 | else | |
8802 | lt_cv_prog_compiler_pic_works=no | |
8803 | ac_outfile=conftest.$ac_objext | |
8804 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d50284c4 | 8805 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
8d138742 CE |
8806 | # Insert the option either (1) after the last *FLAGS variable, or |
8807 | # (2) before a word containing "conftest.", or (3) at the end. | |
8808 | # Note that $ac_compile itself does not contain backslashes and begins | |
8809 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8810 | # The option is referenced via a variable to avoid confusing sed. | |
8811 | lt_compile=`echo "$ac_compile" | $SED \ | |
8812 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8813 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8814 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8815 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8816 | (eval "$lt_compile" 2>conftest.err) |
8817 | ac_status=$? | |
8818 | cat conftest.err >&5 | |
b0322a85 | 8819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8820 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8821 | # The compiler can only warn and ignore the option if not recognized | |
8822 | # So say no if there are warnings other than the usual output. | |
b0322a85 | 8823 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
8d138742 CE |
8824 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8825 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8826 | lt_cv_prog_compiler_pic_works=yes | |
8827 | fi | |
8828 | fi | |
8829 | $RM conftest* | |
d9898ee8 | 8830 | |
8d138742 | 8831 | fi |
b0322a85 | 8832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8d138742 | 8833 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
d9898ee8 | 8834 | |
d50284c4 | 8835 | if test yes = "$lt_cv_prog_compiler_pic_works"; then |
8d138742 CE |
8836 | case $lt_prog_compiler_pic in |
8837 | "" | " "*) ;; | |
8838 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8839 | esac | |
8840 | else | |
8841 | lt_prog_compiler_pic= | |
8842 | lt_prog_compiler_can_build_shared=no | |
8843 | fi | |
d9898ee8 | 8844 | |
8d138742 | 8845 | fi |
d9898ee8 | 8846 | |
d9898ee8 | 8847 | |
d9898ee8 | 8848 | |
d9898ee8 | 8849 | |
d9898ee8 | 8850 | |
d9898ee8 | 8851 | |
b0322a85 CE |
8852 | |
8853 | ||
8854 | ||
8855 | ||
8856 | ||
8d138742 CE |
8857 | # |
8858 | # Check to make sure the static flag actually works. | |
8859 | # | |
8860 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
b0322a85 | 8861 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8d138742 | 8862 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
b0322a85 | 8863 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
8d138742 CE |
8864 | $as_echo_n "(cached) " >&6 |
8865 | else | |
8866 | lt_cv_prog_compiler_static_works=no | |
d50284c4 | 8867 | save_LDFLAGS=$LDFLAGS |
8d138742 CE |
8868 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
8869 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8870 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8871 | # The linker can only warn and ignore the option if not recognized | |
8872 | # So say no if there are warnings | |
8873 | if test -s conftest.err; then | |
8874 | # Append any errors to the config.log. | |
8875 | cat conftest.err 1>&5 | |
b0322a85 | 8876 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
8d138742 CE |
8877 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8878 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8879 | lt_cv_prog_compiler_static_works=yes | |
8880 | fi | |
8881 | else | |
8882 | lt_cv_prog_compiler_static_works=yes | |
8883 | fi | |
8884 | fi | |
8885 | $RM -r conftest* | |
d50284c4 | 8886 | LDFLAGS=$save_LDFLAGS |
ac40fd9e | 8887 | |
8d138742 | 8888 | fi |
b0322a85 | 8889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8d138742 | 8890 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
d9898ee8 | 8891 | |
d50284c4 | 8892 | if test yes = "$lt_cv_prog_compiler_static_works"; then |
8d138742 CE |
8893 | : |
8894 | else | |
8895 | lt_prog_compiler_static= | |
8896 | fi | |
d9898ee8 | 8897 | |
d9898ee8 | 8898 | |
d9898ee8 | 8899 | |
d9898ee8 | 8900 | |
d9898ee8 | 8901 | |
d9898ee8 | 8902 | |
8d138742 | 8903 | |
b0322a85 | 8904 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 8905 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 8906 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 CE |
8907 | $as_echo_n "(cached) " >&6 |
8908 | else | |
8909 | lt_cv_prog_compiler_c_o=no | |
8910 | $RM -r conftest 2>/dev/null | |
8911 | mkdir conftest | |
8912 | cd conftest | |
8913 | mkdir out | |
8914 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8915 | ||
8916 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8917 | # Insert the option either (1) after the last *FLAGS variable, or | |
8918 | # (2) before a word containing "conftest.", or (3) at the end. | |
8919 | # Note that $ac_compile itself does not contain backslashes and begins | |
8920 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8921 | lt_compile=`echo "$ac_compile" | $SED \ | |
8922 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8923 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8924 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8925 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8926 | (eval "$lt_compile" 2>out/conftest.err) |
8927 | ac_status=$? | |
8928 | cat out/conftest.err >&5 | |
b0322a85 | 8929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8930 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8931 | then | |
8932 | # The compiler can only warn and ignore the option if not recognized | |
8933 | # So say no if there are warnings | |
b0322a85 | 8934 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
8935 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8936 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8937 | lt_cv_prog_compiler_c_o=yes | |
8938 | fi | |
8939 | fi | |
8940 | chmod u+w . 2>&5 | |
8941 | $RM conftest* | |
8942 | # SGI C++ compiler will create directory out/ii_files/ for | |
8943 | # template instantiation | |
8944 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8945 | $RM out/* && rmdir out | |
8946 | cd .. | |
8947 | $RM -r conftest | |
8948 | $RM conftest* | |
8949 | ||
d9898ee8 | 8950 | fi |
b0322a85 | 8951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 8952 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 8953 | |
d9898ee8 | 8954 | |
d9898ee8 | 8955 | |
d9898ee8 | 8956 | |
8957 | ||
d9898ee8 | 8958 | |
b0322a85 | 8959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8d138742 | 8960 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
b0322a85 | 8961 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
8d138742 CE |
8962 | $as_echo_n "(cached) " >&6 |
8963 | else | |
8964 | lt_cv_prog_compiler_c_o=no | |
8965 | $RM -r conftest 2>/dev/null | |
8966 | mkdir conftest | |
8967 | cd conftest | |
8968 | mkdir out | |
8969 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d9898ee8 | 8970 | |
8d138742 CE |
8971 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8972 | # Insert the option either (1) after the last *FLAGS variable, or | |
8973 | # (2) before a word containing "conftest.", or (3) at the end. | |
8974 | # Note that $ac_compile itself does not contain backslashes and begins | |
8975 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8976 | lt_compile=`echo "$ac_compile" | $SED \ | |
8977 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8978 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8979 | -e 's:$: $lt_compiler_flag:'` | |
b0322a85 | 8980 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
8d138742 CE |
8981 | (eval "$lt_compile" 2>out/conftest.err) |
8982 | ac_status=$? | |
8983 | cat out/conftest.err >&5 | |
b0322a85 | 8984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8d138742 CE |
8985 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8986 | then | |
8987 | # The compiler can only warn and ignore the option if not recognized | |
8988 | # So say no if there are warnings | |
b0322a85 | 8989 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
8d138742 CE |
8990 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8991 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8992 | lt_cv_prog_compiler_c_o=yes | |
8993 | fi | |
8994 | fi | |
8995 | chmod u+w . 2>&5 | |
8996 | $RM conftest* | |
8997 | # SGI C++ compiler will create directory out/ii_files/ for | |
8998 | # template instantiation | |
8999 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9000 | $RM out/* && rmdir out | |
9001 | cd .. | |
9002 | $RM -r conftest | |
9003 | $RM conftest* | |
d9898ee8 | 9004 | |
8d138742 | 9005 | fi |
b0322a85 | 9006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8d138742 | 9007 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 | 9008 | |
d9898ee8 | 9009 | |
d9898ee8 | 9010 | |
d9898ee8 | 9011 | |
d50284c4 CE |
9012 | hard_links=nottested |
9013 | if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
8d138742 | 9014 | # do not overwrite the value of need_locks provided by the user |
b0322a85 | 9015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8d138742 CE |
9016 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
9017 | hard_links=yes | |
9018 | $RM conftest* | |
9019 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9020 | touch conftest.a | |
9021 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9022 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
b0322a85 | 9023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8d138742 | 9024 | $as_echo "$hard_links" >&6; } |
d50284c4 CE |
9025 | if test no = "$hard_links"; then |
9026 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
9027 | $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
8d138742 CE |
9028 | need_locks=warn |
9029 | fi | |
9030 | else | |
9031 | need_locks=no | |
9032 | fi | |
d9898ee8 | 9033 | |
d9898ee8 | 9034 | |
d9898ee8 | 9035 | |
d9898ee8 | 9036 | |
d9898ee8 | 9037 | |
d9898ee8 | 9038 | |
b0322a85 | 9039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8d138742 | 9040 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
d9898ee8 | 9041 | |
8d138742 CE |
9042 | runpath_var= |
9043 | allow_undefined_flag= | |
9044 | always_export_symbols=no | |
9045 | archive_cmds= | |
9046 | archive_expsym_cmds= | |
9047 | compiler_needs_object=no | |
9048 | enable_shared_with_static_runtimes=no | |
9049 | export_dynamic_flag_spec= | |
9050 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9051 | hardcode_automatic=no | |
9052 | hardcode_direct=no | |
9053 | hardcode_direct_absolute=no | |
9054 | hardcode_libdir_flag_spec= | |
8d138742 CE |
9055 | hardcode_libdir_separator= |
9056 | hardcode_minus_L=no | |
9057 | hardcode_shlibpath_var=unsupported | |
9058 | inherit_rpath=no | |
9059 | link_all_deplibs=unknown | |
9060 | module_cmds= | |
9061 | module_expsym_cmds= | |
9062 | old_archive_from_new_cmds= | |
9063 | old_archive_from_expsyms_cmds= | |
9064 | thread_safe_flag_spec= | |
9065 | whole_archive_flag_spec= | |
9066 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9067 | # included in the symbol list | |
9068 | include_expsyms= | |
9069 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
d50284c4 CE |
9070 | # it will be wrapped by ' (' and ')$', so one must not match beginning or |
9071 | # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
9072 | # as well as any symbol that contains 'd'. | |
8d138742 CE |
9073 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
9074 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9075 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9076 | # the symbol is explicitly referenced. Since portable code cannot | |
9077 | # rely on this symbol name, it's probably fine to never include it in | |
9078 | # preloaded symbol tables. | |
9079 | # Exclude shared library initialization/finalization symbols. | |
9080 | extract_expsyms_cmds= | |
d9898ee8 | 9081 | |
8d138742 CE |
9082 | case $host_os in |
9083 | cygwin* | mingw* | pw32* | cegcc*) | |
9084 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9085 | # When not using gcc, we currently assume that we are using | |
9086 | # Microsoft Visual C++. | |
d50284c4 | 9087 | if test yes != "$GCC"; then |
8d138742 CE |
9088 | with_gnu_ld=no |
9089 | fi | |
9090 | ;; | |
9091 | interix*) | |
9092 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9093 | with_gnu_ld=yes | |
9094 | ;; | |
d50284c4 | 9095 | openbsd* | bitrig*) |
8d138742 CE |
9096 | with_gnu_ld=no |
9097 | ;; | |
9098 | esac | |
d9898ee8 | 9099 | |
8d138742 | 9100 | ld_shlibs=yes |
b0322a85 CE |
9101 | |
9102 | # On some targets, GNU ld is compatible enough with the native linker | |
9103 | # that we're better off using the native interface for both. | |
9104 | lt_use_gnu_ld_interface=no | |
d50284c4 | 9105 | if test yes = "$with_gnu_ld"; then |
b0322a85 CE |
9106 | case $host_os in |
9107 | aix*) | |
9108 | # The AIX port of GNU ld has always aspired to compatibility | |
9109 | # with the native linker. However, as the warning in the GNU ld | |
9110 | # block says, versions before 2.19.5* couldn't really create working | |
9111 | # shared libraries, regardless of the interface used. | |
9112 | case `$LD -v 2>&1` in | |
9113 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9114 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9115 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9116 | *) | |
9117 | lt_use_gnu_ld_interface=yes | |
9118 | ;; | |
9119 | esac | |
9120 | ;; | |
9121 | *) | |
9122 | lt_use_gnu_ld_interface=yes | |
9123 | ;; | |
9124 | esac | |
9125 | fi | |
9126 | ||
d50284c4 | 9127 | if test yes = "$lt_use_gnu_ld_interface"; then |
8d138742 | 9128 | # If archive_cmds runs LD, not CC, wlarc should be empty |
d50284c4 | 9129 | wlarc='$wl' |
8d138742 CE |
9130 | |
9131 | # Set some defaults for GNU ld with shared library support. These | |
9132 | # are reset later if shared libraries are not supported. Putting them | |
9133 | # here allows them to be overridden if necessary. | |
9134 | runpath_var=LD_RUN_PATH | |
d50284c4 CE |
9135 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9136 | export_dynamic_flag_spec='$wl--export-dynamic' | |
8d138742 CE |
9137 | # ancient GNU ld didn't support --whole-archive et. al. |
9138 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
d50284c4 | 9139 | whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
8d138742 CE |
9140 | else |
9141 | whole_archive_flag_spec= | |
9142 | fi | |
9143 | supports_anon_versioning=no | |
d50284c4 | 9144 | case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in |
b0322a85 | 9145 | *GNU\ gold*) supports_anon_versioning=yes ;; |
8d138742 CE |
9146 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
9147 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9148 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9149 | *\ 2.11.*) ;; # other 2.11 versions | |
9150 | *) supports_anon_versioning=yes ;; | |
9151 | esac | |
d9898ee8 | 9152 | |
8d138742 CE |
9153 | # See if GNU ld supports shared libraries. |
9154 | case $host_os in | |
9155 | aix[3-9]*) | |
9156 | # On AIX/PPC, the GNU linker is very broken | |
d50284c4 | 9157 | if test ia64 != "$host_cpu"; then |
8d138742 CE |
9158 | ld_shlibs=no |
9159 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9160 | |
b0322a85 | 9161 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
8d138742 CE |
9162 | *** to be unable to reliably create shared libraries on AIX. |
9163 | *** Therefore, libtool is disabling shared libraries support. If you | |
b0322a85 CE |
9164 | *** really care for shared libraries, you may want to install binutils |
9165 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9166 | *** You will then need to restart the configuration process. | |
d9898ee8 | 9167 | |
8d138742 CE |
9168 | _LT_EOF |
9169 | fi | |
9170 | ;; | |
d9898ee8 | 9171 | |
8d138742 CE |
9172 | amigaos*) |
9173 | case $host_cpu in | |
9174 | powerpc) | |
9175 | # see comment about AmigaOS4 .so support | |
d50284c4 | 9176 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9177 | archive_expsym_cmds='' |
9178 | ;; | |
9179 | m68k) | |
9180 | 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)' | |
9181 | hardcode_libdir_flag_spec='-L$libdir' | |
9182 | hardcode_minus_L=yes | |
9183 | ;; | |
9184 | esac | |
9185 | ;; | |
d9898ee8 | 9186 | |
8d138742 CE |
9187 | beos*) |
9188 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9189 | allow_undefined_flag=unsupported | |
9190 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9191 | # support --undefined. This deserves some investigation. FIXME | |
d50284c4 | 9192 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9193 | else |
9194 | ld_shlibs=no | |
9195 | fi | |
9196 | ;; | |
d9898ee8 | 9197 | |
8d138742 CE |
9198 | cygwin* | mingw* | pw32* | cegcc*) |
9199 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9200 | # as there is no search path for DLLs. | |
9201 | hardcode_libdir_flag_spec='-L$libdir' | |
d50284c4 | 9202 | export_dynamic_flag_spec='$wl--export-all-symbols' |
8d138742 CE |
9203 | allow_undefined_flag=unsupported |
9204 | always_export_symbols=no | |
9205 | enable_shared_with_static_runtimes=yes | |
b0322a85 CE |
9206 | 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' |
9207 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
d9898ee8 | 9208 | |
8d138742 | 9209 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
d50284c4 CE |
9210 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
9211 | # If the export-symbols file already is a .def file, use it as | |
9212 | # is; otherwise, prepend EXPORTS... | |
9213 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9214 | cp $export_symbols $output_objdir/$soname.def; | |
9215 | else | |
9216 | echo EXPORTS > $output_objdir/$soname.def; | |
9217 | cat $export_symbols >> $output_objdir/$soname.def; | |
9218 | fi~ | |
9219 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8d138742 CE |
9220 | else |
9221 | ld_shlibs=no | |
9222 | fi | |
9223 | ;; | |
d9898ee8 | 9224 | |
b0322a85 | 9225 | haiku*) |
d50284c4 | 9226 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
b0322a85 CE |
9227 | link_all_deplibs=yes |
9228 | ;; | |
9229 | ||
d50284c4 CE |
9230 | os2*) |
9231 | hardcode_libdir_flag_spec='-L$libdir' | |
9232 | hardcode_minus_L=yes | |
9233 | allow_undefined_flag=unsupported | |
9234 | shrext_cmds=.dll | |
9235 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9236 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9237 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9238 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9239 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
9240 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9241 | emximp -o $lib $output_objdir/$libname.def' | |
9242 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
9243 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
9244 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
9245 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
9246 | prefix_cmds="$SED"~ | |
9247 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
9248 | prefix_cmds="$prefix_cmds -e 1d"; | |
9249 | fi~ | |
9250 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
9251 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
9252 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
9253 | emximp -o $lib $output_objdir/$libname.def' | |
9254 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
9255 | enable_shared_with_static_runtimes=yes | |
9256 | ;; | |
9257 | ||
8d138742 CE |
9258 | interix[3-9]*) |
9259 | hardcode_direct=no | |
9260 | hardcode_shlibpath_var=no | |
d50284c4 CE |
9261 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
9262 | export_dynamic_flag_spec='$wl-E' | |
8d138742 CE |
9263 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
9264 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9265 | # default) and relocated if they conflict, which is a slow very memory | |
9266 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9267 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9268 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
d50284c4 CE |
9269 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
9270 | 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' | |
8d138742 | 9271 | ;; |
d9898ee8 | 9272 | |
b0322a85 | 9273 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
8d138742 | 9274 | tmp_diet=no |
d50284c4 | 9275 | if test linux-dietlibc = "$host_os"; then |
8d138742 CE |
9276 | case $cc_basename in |
9277 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9278 | esac | |
9279 | fi | |
9280 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
d50284c4 | 9281 | && test no = "$tmp_diet" |
8d138742 | 9282 | then |
b0322a85 | 9283 | tmp_addflag=' $pic_flag' |
8d138742 CE |
9284 | tmp_sharedflag='-shared' |
9285 | case $cc_basename,$host_cpu in | |
9286 | pgcc*) # Portland Group C compiler | |
d50284c4 | 9287 | 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 |
9288 | tmp_addflag=' $pic_flag' |
9289 | ;; | |
b0322a85 CE |
9290 | pgf77* | pgf90* | pgf95* | pgfortran*) |
9291 | # Portland Group f77 and f90 compilers | |
d50284c4 | 9292 | 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 |
9293 | tmp_addflag=' $pic_flag -Mnomain' ;; |
9294 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9295 | tmp_addflag=' -i_dynamic' ;; | |
9296 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9297 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9298 | ifc* | ifort*) # Intel Fortran compiler | |
9299 | tmp_addflag=' -nofor_main' ;; | |
9300 | lf95*) # Lahey Fortran 8.1 | |
9301 | whole_archive_flag_spec= | |
9302 | tmp_sharedflag='--shared' ;; | |
d50284c4 CE |
9303 | nagfor*) # NAGFOR 5.3 |
9304 | tmp_sharedflag='-Wl,-shared' ;; | |
b0322a85 | 9305 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
8d138742 CE |
9306 | tmp_sharedflag='-qmkshrobj' |
9307 | tmp_addflag= ;; | |
b0322a85 | 9308 | nvcc*) # Cuda Compiler Driver 2.2 |
d50284c4 | 9309 | 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' |
b0322a85 CE |
9310 | compiler_needs_object=yes |
9311 | ;; | |
8d138742 CE |
9312 | esac |
9313 | case `$CC -V 2>&1 | sed 5q` in | |
9314 | *Sun\ C*) # Sun C 5.9 | |
d50284c4 | 9315 | 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 |
9316 | compiler_needs_object=yes |
9317 | tmp_sharedflag='-G' ;; | |
9318 | *Sun\ F*) # Sun Fortran 8.3 | |
9319 | tmp_sharedflag='-G' ;; | |
9320 | esac | |
d50284c4 | 9321 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
d9898ee8 | 9322 | |
d50284c4 | 9323 | if test yes = "$supports_anon_versioning"; then |
8d138742 | 9324 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
d50284c4 CE |
9325 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9326 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9327 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
8d138742 | 9328 | fi |
d9898ee8 | 9329 | |
8d138742 | 9330 | case $cc_basename in |
d50284c4 CE |
9331 | tcc*) |
9332 | export_dynamic_flag_spec='-rdynamic' | |
9333 | ;; | |
b0322a85 | 9334 | xlf* | bgf* | bgxlf* | mpixlf*) |
8d138742 CE |
9335 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
9336 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
d50284c4 | 9337 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
b0322a85 | 9338 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
d50284c4 | 9339 | if test yes = "$supports_anon_versioning"; then |
8d138742 | 9340 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
d50284c4 CE |
9341 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
9342 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9343 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8d138742 CE |
9344 | fi |
9345 | ;; | |
9346 | esac | |
9347 | else | |
9348 | ld_shlibs=no | |
9349 | fi | |
9350 | ;; | |
d9898ee8 | 9351 | |
8d138742 CE |
9352 | netbsd*) |
9353 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9354 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9355 | wlarc= | |
9356 | else | |
d50284c4 CE |
9357 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9358 | 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 |
9359 | fi |
9360 | ;; | |
d9898ee8 | 9361 | |
8d138742 CE |
9362 | solaris*) |
9363 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9364 | ld_shlibs=no | |
9365 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9366 | |
8d138742 CE |
9367 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
9368 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9369 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9370 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9371 | *** your PATH or compiler configuration so that the native linker is | |
9372 | *** used, and then restart. | |
d9898ee8 | 9373 | |
8d138742 CE |
9374 | _LT_EOF |
9375 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9376 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9377 | 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 |
9378 | else |
9379 | ld_shlibs=no | |
9380 | fi | |
9381 | ;; | |
d9898ee8 | 9382 | |
8d138742 CE |
9383 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
9384 | case `$LD -v 2>&1` in | |
9385 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9386 | ld_shlibs=no | |
9387 | cat <<_LT_EOF 1>&2 | |
d9898ee8 | 9388 | |
d50284c4 | 9389 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
8d138742 CE |
9390 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
9391 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9392 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9393 | *** your PATH or compiler configuration so that the native linker is | |
9394 | *** used, and then restart. | |
d9898ee8 | 9395 | |
8d138742 CE |
9396 | _LT_EOF |
9397 | ;; | |
9398 | *) | |
9399 | # For security reasons, it is highly recommended that you always | |
9400 | # use absolute paths for naming shared libraries, and exclude the | |
9401 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9402 | # requires that you compile everything twice, which is a pain. | |
9403 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9404 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
9405 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
9406 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
8d138742 CE |
9407 | else |
9408 | ld_shlibs=no | |
9409 | fi | |
9410 | ;; | |
9411 | esac | |
9412 | ;; | |
d9898ee8 | 9413 | |
8d138742 CE |
9414 | sunos4*) |
9415 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9416 | wlarc= | |
9417 | hardcode_direct=yes | |
9418 | hardcode_shlibpath_var=no | |
9419 | ;; | |
d9898ee8 | 9420 | |
8d138742 CE |
9421 | *) |
9422 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
d50284c4 CE |
9423 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
9424 | 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 |
9425 | else |
9426 | ld_shlibs=no | |
9427 | fi | |
9428 | ;; | |
9429 | esac | |
d9898ee8 | 9430 | |
d50284c4 | 9431 | if test no = "$ld_shlibs"; then |
8d138742 CE |
9432 | runpath_var= |
9433 | hardcode_libdir_flag_spec= | |
9434 | export_dynamic_flag_spec= | |
9435 | whole_archive_flag_spec= | |
9436 | fi | |
9437 | else | |
9438 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9439 | case $host_os in | |
9440 | aix3*) | |
9441 | allow_undefined_flag=unsupported | |
9442 | always_export_symbols=yes | |
9443 | 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' | |
9444 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9445 | # are no directories specified by -L. | |
9446 | hardcode_minus_L=yes | |
d50284c4 | 9447 | if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
8d138742 CE |
9448 | # Neither direct hardcoding nor static linking is supported with a |
9449 | # broken collect2. | |
9450 | hardcode_direct=unsupported | |
9451 | fi | |
9452 | ;; | |
d9898ee8 | 9453 | |
8d138742 | 9454 | aix[4-9]*) |
d50284c4 | 9455 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
9456 | # On IA64, the linker does run time linking by default, so we don't |
9457 | # have to do anything special. | |
9458 | aix_use_runtimelinking=no | |
9459 | exp_sym_flag='-Bexport' | |
d50284c4 | 9460 | no_entry_flag= |
8d138742 CE |
9461 | else |
9462 | # If we're using GNU nm, then we don't want the "-C" option. | |
d50284c4 CE |
9463 | # -C means demangle to GNU nm, but means don't demangle to AIX nm. |
9464 | # Without the "-l" option, or with the "-B" option, AIX nm treats | |
9465 | # weak defined symbols like other global defined symbols, whereas | |
9466 | # GNU nm marks them as "W". | |
9467 | # While the 'weak' keyword is ignored in the Export File, we need | |
9468 | # it in the Import File for the 'aix-soname' feature, so we have | |
9469 | # to replace the "-B" option with "-P" for AIX nm. | |
8d138742 | 9470 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
d50284c4 | 9471 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
8d138742 | 9472 | else |
d50284c4 | 9473 | export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
8d138742 CE |
9474 | fi |
9475 | aix_use_runtimelinking=no | |
d9898ee8 | 9476 | |
8d138742 CE |
9477 | # Test if we are trying to use run time linking or normal |
9478 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
d50284c4 CE |
9479 | # have runtime linking enabled, and use it for executables. |
9480 | # For shared libraries, we enable/disable runtime linking | |
9481 | # depending on the kind of the shared library created - | |
9482 | # when "with_aix_soname,aix_use_runtimelinking" is: | |
9483 | # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
9484 | # "aix,yes" lib.so shared, rtl:yes, for executables | |
9485 | # lib.a static archive | |
9486 | # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
9487 | # lib.a(lib.so.V) shared, rtl:no, for executables | |
9488 | # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9489 | # lib.a(lib.so.V) shared, rtl:no | |
9490 | # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
9491 | # lib.a static archive | |
8d138742 CE |
9492 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
9493 | for ld_flag in $LDFLAGS; do | |
d50284c4 | 9494 | if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
8d138742 CE |
9495 | aix_use_runtimelinking=yes |
9496 | break | |
9497 | fi | |
9498 | done | |
d50284c4 CE |
9499 | if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
9500 | # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
9501 | # so we don't have lib.a shared libs to link our executables. | |
9502 | # We have to force runtime linking in this case. | |
9503 | aix_use_runtimelinking=yes | |
9504 | LDFLAGS="$LDFLAGS -Wl,-brtl" | |
9505 | fi | |
8d138742 CE |
9506 | ;; |
9507 | esac | |
d9898ee8 | 9508 | |
8d138742 CE |
9509 | exp_sym_flag='-bexport' |
9510 | no_entry_flag='-bnoentry' | |
9511 | fi | |
d9898ee8 | 9512 | |
8d138742 CE |
9513 | # When large executables or shared objects are built, AIX ld can |
9514 | # have problems creating the table of contents. If linking a library | |
9515 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9516 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9517 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
d9898ee8 | 9518 | |
8d138742 CE |
9519 | archive_cmds='' |
9520 | hardcode_direct=yes | |
9521 | hardcode_direct_absolute=yes | |
9522 | hardcode_libdir_separator=':' | |
9523 | link_all_deplibs=yes | |
d50284c4 CE |
9524 | file_list_spec='$wl-f,' |
9525 | case $with_aix_soname,$aix_use_runtimelinking in | |
9526 | aix,*) ;; # traditional, no import file | |
9527 | svr4,* | *,yes) # use import file | |
9528 | # The Import File defines what to hardcode. | |
9529 | hardcode_direct=no | |
9530 | hardcode_direct_absolute=no | |
9531 | ;; | |
9532 | esac | |
d9898ee8 | 9533 | |
d50284c4 | 9534 | if test yes = "$GCC"; then |
8d138742 CE |
9535 | case $host_os in aix4.[012]|aix4.[012].*) |
9536 | # We only want to do this on AIX 4.2 and lower, the check | |
9537 | # below for broken collect2 doesn't work under 4.3+ | |
d50284c4 | 9538 | collect2name=`$CC -print-prog-name=collect2` |
8d138742 CE |
9539 | if test -f "$collect2name" && |
9540 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9541 | then | |
9542 | # We have reworked collect2 | |
9543 | : | |
9544 | else | |
9545 | # We have old collect2 | |
9546 | hardcode_direct=unsupported | |
9547 | # It fails to find uninstalled libraries when the uninstalled | |
9548 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9549 | # to unsupported forces relinking | |
9550 | hardcode_minus_L=yes | |
9551 | hardcode_libdir_flag_spec='-L$libdir' | |
9552 | hardcode_libdir_separator= | |
9553 | fi | |
9554 | ;; | |
9555 | esac | |
9556 | shared_flag='-shared' | |
d50284c4 CE |
9557 | if test yes = "$aix_use_runtimelinking"; then |
9558 | shared_flag="$shared_flag "'$wl-G' | |
8d138742 | 9559 | fi |
d50284c4 CE |
9560 | # Need to ensure runtime linking is disabled for the traditional |
9561 | # shared library, or the linker may eventually find shared libraries | |
9562 | # /with/ Import File - we do not want to mix them. | |
9563 | shared_flag_aix='-shared' | |
9564 | shared_flag_svr4='-shared $wl-G' | |
8d138742 CE |
9565 | else |
9566 | # not using gcc | |
d50284c4 | 9567 | if test ia64 = "$host_cpu"; then |
8d138742 CE |
9568 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
9569 | # chokes on -Wl,-G. The following line is correct: | |
9570 | shared_flag='-G' | |
9571 | else | |
d50284c4 CE |
9572 | if test yes = "$aix_use_runtimelinking"; then |
9573 | shared_flag='$wl-G' | |
8d138742 | 9574 | else |
d50284c4 | 9575 | shared_flag='$wl-bM:SRE' |
8d138742 | 9576 | fi |
d50284c4 CE |
9577 | shared_flag_aix='$wl-bM:SRE' |
9578 | shared_flag_svr4='$wl-G' | |
8d138742 CE |
9579 | fi |
9580 | fi | |
d9898ee8 | 9581 | |
d50284c4 | 9582 | export_dynamic_flag_spec='$wl-bexpall' |
8d138742 CE |
9583 | # It seems that -bexpall does not export symbols beginning with |
9584 | # underscore (_), so it is better to generate a list of symbols to export. | |
9585 | always_export_symbols=yes | |
d50284c4 | 9586 | if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
8d138742 CE |
9587 | # Warning - without using the other runtime loading flags (-brtl), |
9588 | # -berok will link without error, but may produce a broken library. | |
9589 | allow_undefined_flag='-berok' | |
9590 | # Determine the default libpath from the value encoded in an | |
9591 | # empty executable. | |
d50284c4 | 9592 | if test set = "${lt_cv_aix_libpath+set}"; then |
b0322a85 CE |
9593 | aix_libpath=$lt_cv_aix_libpath |
9594 | else | |
9595 | if ${lt_cv_aix_libpath_+:} false; then : | |
9596 | $as_echo_n "(cached) " >&6 | |
9597 | else | |
9598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 9599 | /* end confdefs.h. */ |
d9898ee8 | 9600 | |
8d138742 CE |
9601 | int |
9602 | main () | |
9603 | { | |
d9898ee8 | 9604 | |
8d138742 CE |
9605 | ; |
9606 | return 0; | |
9607 | } | |
9608 | _ACEOF | |
b0322a85 | 9609 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 9610 | |
b0322a85 CE |
9611 | lt_aix_libpath_sed=' |
9612 | /Import File Strings/,/^$/ { | |
9613 | /^0/ { | |
9614 | s/^0 *\([^ ]*\) *$/\1/ | |
9615 | p | |
9616 | } | |
9617 | }' | |
9618 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9619 | # Check for a 64-bit object if we didn't find anything. | |
9620 | if test -z "$lt_cv_aix_libpath_"; then | |
9621 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9622 | fi | |
9623 | fi | |
9624 | rm -f core conftest.err conftest.$ac_objext \ | |
9625 | conftest$ac_exeext conftest.$ac_ext | |
9626 | if test -z "$lt_cv_aix_libpath_"; then | |
d50284c4 | 9627 | lt_cv_aix_libpath_=/usr/lib:/lib |
b0322a85 | 9628 | fi |
d9898ee8 | 9629 | |
8d138742 | 9630 | fi |
d9898ee8 | 9631 | |
b0322a85 CE |
9632 | aix_libpath=$lt_cv_aix_libpath_ |
9633 | fi | |
d9898ee8 | 9634 | |
d50284c4 CE |
9635 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
9636 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag | |
8d138742 | 9637 | else |
d50284c4 CE |
9638 | if test ia64 = "$host_cpu"; then |
9639 | hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
8d138742 | 9640 | allow_undefined_flag="-z nodefs" |
d50284c4 | 9641 | 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" |
8d138742 CE |
9642 | else |
9643 | # Determine the default libpath from the value encoded in an | |
9644 | # empty executable. | |
d50284c4 | 9645 | if test set = "${lt_cv_aix_libpath+set}"; then |
b0322a85 CE |
9646 | aix_libpath=$lt_cv_aix_libpath |
9647 | else | |
9648 | if ${lt_cv_aix_libpath_+:} false; then : | |
9649 | $as_echo_n "(cached) " >&6 | |
9650 | else | |
9651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 9652 | /* end confdefs.h. */ |
d9898ee8 | 9653 | |
8d138742 CE |
9654 | int |
9655 | main () | |
9656 | { | |
d9898ee8 | 9657 | |
8d138742 CE |
9658 | ; |
9659 | return 0; | |
9660 | } | |
9661 | _ACEOF | |
b0322a85 | 9662 | if ac_fn_c_try_link "$LINENO"; then : |
d9898ee8 | 9663 | |
b0322a85 CE |
9664 | lt_aix_libpath_sed=' |
9665 | /Import File Strings/,/^$/ { | |
9666 | /^0/ { | |
9667 | s/^0 *\([^ ]*\) *$/\1/ | |
9668 | p | |
9669 | } | |
9670 | }' | |
9671 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9672 | # Check for a 64-bit object if we didn't find anything. | |
9673 | if test -z "$lt_cv_aix_libpath_"; then | |
9674 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9675 | fi | |
9676 | fi | |
9677 | rm -f core conftest.err conftest.$ac_objext \ | |
9678 | conftest$ac_exeext conftest.$ac_ext | |
9679 | if test -z "$lt_cv_aix_libpath_"; then | |
d50284c4 | 9680 | lt_cv_aix_libpath_=/usr/lib:/lib |
b0322a85 | 9681 | fi |
d9898ee8 | 9682 | |
8d138742 | 9683 | fi |
d9898ee8 | 9684 | |
b0322a85 CE |
9685 | aix_libpath=$lt_cv_aix_libpath_ |
9686 | fi | |
d9898ee8 | 9687 | |
d50284c4 | 9688 | hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
8d138742 CE |
9689 | # Warning - without using the other run time loading flags, |
9690 | # -berok will link without error, but may produce a broken library. | |
d50284c4 CE |
9691 | no_undefined_flag=' $wl-bernotok' |
9692 | allow_undefined_flag=' $wl-berok' | |
9693 | if test yes = "$with_gnu_ld"; then | |
b0322a85 | 9694 | # We only use this code for GNU lds that support --whole-archive. |
d50284c4 | 9695 | whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
b0322a85 CE |
9696 | else |
9697 | # Exported symbols can be pulled into shared objects from archives | |
9698 | whole_archive_flag_spec='$convenience' | |
9699 | fi | |
8d138742 | 9700 | archive_cmds_need_lc=yes |
d50284c4 CE |
9701 | archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
9702 | # -brtl affects multiple linker settings, -berok does not and is overridden later | |
9703 | compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
9704 | if test svr4 != "$with_aix_soname"; then | |
9705 | # This is similar to how AIX traditionally builds its shared libraries. | |
9706 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' | |
9707 | fi | |
9708 | if test aix != "$with_aix_soname"; then | |
9709 | archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' | |
9710 | else | |
9711 | # used by -dlpreopen to get the symbols | |
9712 | archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
9713 | fi | |
9714 | archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
8d138742 CE |
9715 | fi |
9716 | fi | |
9717 | ;; | |
d9898ee8 | 9718 | |
8d138742 CE |
9719 | amigaos*) |
9720 | case $host_cpu in | |
9721 | powerpc) | |
9722 | # see comment about AmigaOS4 .so support | |
d50284c4 | 9723 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
8d138742 CE |
9724 | archive_expsym_cmds='' |
9725 | ;; | |
9726 | m68k) | |
9727 | 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)' | |
9728 | hardcode_libdir_flag_spec='-L$libdir' | |
9729 | hardcode_minus_L=yes | |
9730 | ;; | |
9731 | esac | |
9732 | ;; | |
d9898ee8 | 9733 | |
8d138742 CE |
9734 | bsdi[45]*) |
9735 | export_dynamic_flag_spec=-rdynamic | |
9736 | ;; | |
d9898ee8 | 9737 | |
8d138742 CE |
9738 | cygwin* | mingw* | pw32* | cegcc*) |
9739 | # When not using gcc, we currently assume that we are using | |
9740 | # Microsoft Visual C++. | |
9741 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9742 | # no search path for DLLs. | |
b0322a85 CE |
9743 | case $cc_basename in |
9744 | cl*) | |
9745 | # Native MSVC | |
9746 | hardcode_libdir_flag_spec=' ' | |
9747 | allow_undefined_flag=unsupported | |
9748 | always_export_symbols=yes | |
9749 | file_list_spec='@' | |
9750 | # Tell ltmain to make .lib files, not .a files. | |
9751 | libext=lib | |
9752 | # Tell ltmain to make .dll files, not .so files. | |
d50284c4 | 9753 | shrext_cmds=.dll |
b0322a85 | 9754 | # FIXME: Setting linknames here is a bad hack. |
d50284c4 CE |
9755 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
9756 | archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
9757 | cp "$export_symbols" "$output_objdir/$soname.def"; | |
9758 | echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
9759 | else | |
9760 | $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
9761 | fi~ | |
9762 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9763 | linknames=' | |
b0322a85 CE |
9764 | # The linker will not automatically build a static lib if we build a DLL. |
9765 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9766 | enable_shared_with_static_runtimes=yes | |
9767 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9768 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9769 | # Don't use ranlib | |
9770 | old_postinstall_cmds='chmod 644 $oldlib' | |
9771 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
d50284c4 CE |
9772 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
9773 | case $lt_outputfile in | |
9774 | *.exe|*.EXE) ;; | |
9775 | *) | |
9776 | lt_outputfile=$lt_outputfile.exe | |
9777 | lt_tool_outputfile=$lt_tool_outputfile.exe | |
9778 | ;; | |
9779 | esac~ | |
9780 | if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
9781 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9782 | $RM "$lt_outputfile.manifest"; | |
9783 | fi' | |
b0322a85 CE |
9784 | ;; |
9785 | *) | |
9786 | # Assume MSVC wrapper | |
9787 | hardcode_libdir_flag_spec=' ' | |
9788 | allow_undefined_flag=unsupported | |
9789 | # Tell ltmain to make .lib files, not .a files. | |
9790 | libext=lib | |
9791 | # Tell ltmain to make .dll files, not .so files. | |
d50284c4 | 9792 | shrext_cmds=.dll |
b0322a85 CE |
9793 | # FIXME: Setting linknames here is a bad hack. |
9794 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9795 | # The linker will automatically build a .lib file if we build a DLL. | |
9796 | old_archive_from_new_cmds='true' | |
9797 | # FIXME: Should let the user specify the lib program. | |
9798 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9799 | enable_shared_with_static_runtimes=yes | |
9800 | ;; | |
9801 | esac | |
8d138742 | 9802 | ;; |
d9898ee8 | 9803 | |
8d138742 | 9804 | darwin* | rhapsody*) |
d9898ee8 | 9805 | |
d9898ee8 | 9806 | |
8d138742 CE |
9807 | archive_cmds_need_lc=no |
9808 | hardcode_direct=no | |
9809 | hardcode_automatic=yes | |
9810 | hardcode_shlibpath_var=unsupported | |
d50284c4 CE |
9811 | if test yes = "$lt_cv_ld_force_load"; then |
9812 | 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\"`' | |
b0322a85 CE |
9813 | |
9814 | else | |
9815 | whole_archive_flag_spec='' | |
9816 | fi | |
8d138742 | 9817 | link_all_deplibs=yes |
d50284c4 | 9818 | allow_undefined_flag=$_lt_dar_allow_undefined |
8d138742 | 9819 | case $cc_basename in |
d50284c4 | 9820 | ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
8d138742 CE |
9821 | *) _lt_dar_can_shared=$GCC ;; |
9822 | esac | |
d50284c4 | 9823 | if test yes = "$_lt_dar_can_shared"; then |
b0322a85 | 9824 | output_verbose_link_cmd=func_echo_all |
d50284c4 CE |
9825 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
9826 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
9827 | 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" | |
9828 | 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 | 9829 | |
8d138742 CE |
9830 | else |
9831 | ld_shlibs=no | |
9832 | fi | |
d9898ee8 | 9833 | |
8d138742 | 9834 | ;; |
d9898ee8 | 9835 | |
8d138742 CE |
9836 | dgux*) |
9837 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9838 | hardcode_libdir_flag_spec='-L$libdir' | |
9839 | hardcode_shlibpath_var=no | |
9840 | ;; | |
d9898ee8 | 9841 | |
8d138742 CE |
9842 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9843 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9844 | # does not break anything, and helps significantly (at the cost of a little | |
9845 | # extra space). | |
9846 | freebsd2.2*) | |
9847 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9848 | hardcode_libdir_flag_spec='-R$libdir' | |
9849 | hardcode_direct=yes | |
9850 | hardcode_shlibpath_var=no | |
9851 | ;; | |
d9898ee8 | 9852 | |
8d138742 | 9853 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
b0322a85 | 9854 | freebsd2.*) |
8d138742 CE |
9855 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9856 | hardcode_direct=yes | |
9857 | hardcode_minus_L=yes | |
9858 | hardcode_shlibpath_var=no | |
9859 | ;; | |
d9898ee8 | 9860 | |
8d138742 CE |
9861 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
9862 | freebsd* | dragonfly*) | |
b0322a85 | 9863 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9864 | hardcode_libdir_flag_spec='-R$libdir' |
9865 | hardcode_direct=yes | |
9866 | hardcode_shlibpath_var=no | |
9867 | ;; | |
d9898ee8 | 9868 | |
8d138742 | 9869 | hpux9*) |
d50284c4 CE |
9870 | if test yes = "$GCC"; then |
9871 | archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
8d138742 | 9872 | else |
d50284c4 | 9873 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
8d138742 | 9874 | fi |
d50284c4 | 9875 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
8d138742 CE |
9876 | hardcode_libdir_separator=: |
9877 | hardcode_direct=yes | |
d9898ee8 | 9878 | |
8d138742 CE |
9879 | # hardcode_minus_L: Not really in the search PATH, |
9880 | # but as the default location of the library. | |
9881 | hardcode_minus_L=yes | |
d50284c4 | 9882 | export_dynamic_flag_spec='$wl-E' |
8d138742 | 9883 | ;; |
d9898ee8 | 9884 | |
8d138742 | 9885 | hpux10*) |
d50284c4 CE |
9886 | if test yes,no = "$GCC,$with_gnu_ld"; then |
9887 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
9888 | else |
9889 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9890 | fi | |
d50284c4 CE |
9891 | if test no = "$with_gnu_ld"; then |
9892 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
8d138742 CE |
9893 | hardcode_libdir_separator=: |
9894 | hardcode_direct=yes | |
9895 | hardcode_direct_absolute=yes | |
d50284c4 | 9896 | export_dynamic_flag_spec='$wl-E' |
8d138742 CE |
9897 | # hardcode_minus_L: Not really in the search PATH, |
9898 | # but as the default location of the library. | |
9899 | hardcode_minus_L=yes | |
9900 | fi | |
9901 | ;; | |
d9898ee8 | 9902 | |
8d138742 | 9903 | hpux11*) |
d50284c4 | 9904 | if test yes,no = "$GCC,$with_gnu_ld"; then |
8d138742 CE |
9905 | case $host_cpu in |
9906 | hppa*64*) | |
d50284c4 | 9907 | archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9908 | ;; |
9909 | ia64*) | |
d50284c4 | 9910 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9911 | ;; |
9912 | *) | |
d50284c4 | 9913 | archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9914 | ;; |
9915 | esac | |
9916 | else | |
9917 | case $host_cpu in | |
9918 | hppa*64*) | |
d50284c4 | 9919 | archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9920 | ;; |
9921 | ia64*) | |
d50284c4 | 9922 | archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
9923 | ;; |
9924 | *) | |
b0322a85 CE |
9925 | |
9926 | # Older versions of the 11.00 compiler do not understand -b yet | |
9927 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9929 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9930 | if ${lt_cv_prog_compiler__b+:} false; then : | |
9931 | $as_echo_n "(cached) " >&6 | |
9932 | else | |
9933 | lt_cv_prog_compiler__b=no | |
d50284c4 | 9934 | save_LDFLAGS=$LDFLAGS |
b0322a85 CE |
9935 | LDFLAGS="$LDFLAGS -b" |
9936 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9937 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9938 | # The linker can only warn and ignore the option if not recognized | |
9939 | # So say no if there are warnings | |
9940 | if test -s conftest.err; then | |
9941 | # Append any errors to the config.log. | |
9942 | cat conftest.err 1>&5 | |
9943 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9944 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9945 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9946 | lt_cv_prog_compiler__b=yes | |
9947 | fi | |
9948 | else | |
9949 | lt_cv_prog_compiler__b=yes | |
9950 | fi | |
9951 | fi | |
9952 | $RM -r conftest* | |
d50284c4 | 9953 | LDFLAGS=$save_LDFLAGS |
b0322a85 CE |
9954 | |
9955 | fi | |
9956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9957 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9958 | ||
d50284c4 CE |
9959 | if test yes = "$lt_cv_prog_compiler__b"; then |
9960 | archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
b0322a85 CE |
9961 | else |
9962 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9963 | fi | |
9964 | ||
8d138742 CE |
9965 | ;; |
9966 | esac | |
9967 | fi | |
d50284c4 CE |
9968 | if test no = "$with_gnu_ld"; then |
9969 | hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
8d138742 | 9970 | hardcode_libdir_separator=: |
d9898ee8 | 9971 | |
8d138742 CE |
9972 | case $host_cpu in |
9973 | hppa*64*|ia64*) | |
9974 | hardcode_direct=no | |
9975 | hardcode_shlibpath_var=no | |
9976 | ;; | |
9977 | *) | |
9978 | hardcode_direct=yes | |
9979 | hardcode_direct_absolute=yes | |
d50284c4 | 9980 | export_dynamic_flag_spec='$wl-E' |
d9898ee8 | 9981 | |
8d138742 CE |
9982 | # hardcode_minus_L: Not really in the search PATH, |
9983 | # but as the default location of the library. | |
9984 | hardcode_minus_L=yes | |
9985 | ;; | |
9986 | esac | |
9987 | fi | |
9988 | ;; | |
d9898ee8 | 9989 | |
8d138742 | 9990 | irix5* | irix6* | nonstopux*) |
d50284c4 CE |
9991 | if test yes = "$GCC"; then |
9992 | 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 |
9993 | # Try to use the -exported_symbol ld option, if it does not |
9994 | # work, assume that -exports_file does not work either and | |
9995 | # implicitly export all symbols. | |
b0322a85 CE |
9996 | # This should be the same for all languages, so no per-tag cache variable. |
9997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
9998 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
9999 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
10000 | $as_echo_n "(cached) " >&6 | |
10001 | else | |
d50284c4 CE |
10002 | save_LDFLAGS=$LDFLAGS |
10003 | LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
b0322a85 CE |
10004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
10005 | /* end confdefs.h. */ | |
10006 | int foo (void) { return 0; } | |
8d138742 | 10007 | _ACEOF |
b0322a85 CE |
10008 | if ac_fn_c_try_link "$LINENO"; then : |
10009 | lt_cv_irix_exported_symbol=yes | |
8d138742 | 10010 | else |
b0322a85 | 10011 | lt_cv_irix_exported_symbol=no |
8d138742 | 10012 | fi |
b0322a85 CE |
10013 | rm -f core conftest.err conftest.$ac_objext \ |
10014 | conftest$ac_exeext conftest.$ac_ext | |
d50284c4 | 10015 | LDFLAGS=$save_LDFLAGS |
b0322a85 CE |
10016 | fi |
10017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10018 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
d50284c4 CE |
10019 | if test yes = "$lt_cv_irix_exported_symbol"; then |
10020 | 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' | |
b0322a85 | 10021 | fi |
8d138742 | 10022 | else |
d50284c4 CE |
10023 | 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' |
10024 | 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 |
10025 | fi |
10026 | archive_cmds_need_lc='no' | |
d50284c4 | 10027 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
10028 | hardcode_libdir_separator=: |
10029 | inherit_rpath=yes | |
10030 | link_all_deplibs=yes | |
10031 | ;; | |
d9898ee8 | 10032 | |
d50284c4 CE |
10033 | linux*) |
10034 | case $cc_basename in | |
10035 | tcc*) | |
10036 | # Fabrice Bellard et al's Tiny C Compiler | |
10037 | ld_shlibs=yes | |
10038 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10039 | ;; | |
10040 | esac | |
10041 | ;; | |
10042 | ||
8d138742 CE |
10043 | netbsd*) |
10044 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10045 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10046 | else | |
10047 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10048 | fi | |
10049 | hardcode_libdir_flag_spec='-R$libdir' | |
10050 | hardcode_direct=yes | |
10051 | hardcode_shlibpath_var=no | |
10052 | ;; | |
d9898ee8 | 10053 | |
8d138742 CE |
10054 | newsos6) |
10055 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10056 | hardcode_direct=yes | |
d50284c4 | 10057 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
10058 | hardcode_libdir_separator=: |
10059 | hardcode_shlibpath_var=no | |
10060 | ;; | |
d9898ee8 | 10061 | |
8d138742 CE |
10062 | *nto* | *qnx*) |
10063 | ;; | |
d9898ee8 | 10064 | |
d50284c4 | 10065 | openbsd* | bitrig*) |
8d138742 CE |
10066 | if test -f /usr/libexec/ld.so; then |
10067 | hardcode_direct=yes | |
10068 | hardcode_shlibpath_var=no | |
10069 | hardcode_direct_absolute=yes | |
d50284c4 | 10070 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
8d138742 | 10071 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
d50284c4 CE |
10072 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
10073 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
10074 | export_dynamic_flag_spec='$wl-E' | |
8d138742 | 10075 | else |
d50284c4 CE |
10076 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
10077 | hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
8d138742 CE |
10078 | fi |
10079 | else | |
10080 | ld_shlibs=no | |
10081 | fi | |
10082 | ;; | |
d9898ee8 | 10083 | |
8d138742 CE |
10084 | os2*) |
10085 | hardcode_libdir_flag_spec='-L$libdir' | |
10086 | hardcode_minus_L=yes | |
10087 | allow_undefined_flag=unsupported | |
d50284c4 CE |
10088 | shrext_cmds=.dll |
10089 | archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10090 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10091 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10092 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10093 | emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
10094 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10095 | emximp -o $lib $output_objdir/$libname.def' | |
10096 | archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
10097 | $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
10098 | $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
10099 | $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
10100 | prefix_cmds="$SED"~ | |
10101 | if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
10102 | prefix_cmds="$prefix_cmds -e 1d"; | |
10103 | fi~ | |
10104 | prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
10105 | cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
10106 | $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
10107 | emximp -o $lib $output_objdir/$libname.def' | |
10108 | old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
10109 | enable_shared_with_static_runtimes=yes | |
8d138742 | 10110 | ;; |
d9898ee8 | 10111 | |
8d138742 | 10112 | osf3*) |
d50284c4 CE |
10113 | if test yes = "$GCC"; then |
10114 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10115 | 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 |
10116 | else |
10117 | allow_undefined_flag=' -expect_unresolved \*' | |
d50284c4 | 10118 | 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 |
10119 | fi |
10120 | archive_cmds_need_lc='no' | |
d50284c4 | 10121 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
8d138742 CE |
10122 | hardcode_libdir_separator=: |
10123 | ;; | |
d9898ee8 | 10124 | |
8d138742 | 10125 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
d50284c4 CE |
10126 | if test yes = "$GCC"; then |
10127 | allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
10128 | 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' | |
10129 | hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
8d138742 CE |
10130 | else |
10131 | allow_undefined_flag=' -expect_unresolved \*' | |
d50284c4 | 10132 | 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 | 10133 | 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~ |
d50284c4 | 10134 | $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 | 10135 | |
8d138742 CE |
10136 | # Both c and cxx compiler support -rpath directly |
10137 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10138 | fi | |
10139 | archive_cmds_need_lc='no' | |
10140 | hardcode_libdir_separator=: | |
10141 | ;; | |
d9898ee8 | 10142 | |
8d138742 CE |
10143 | solaris*) |
10144 | no_undefined_flag=' -z defs' | |
d50284c4 CE |
10145 | if test yes = "$GCC"; then |
10146 | wlarc='$wl' | |
10147 | archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10148 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10149 | $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 |
10150 | else |
10151 | case `$CC -V 2>&1` in | |
10152 | *"Compilers 5.0"*) | |
10153 | wlarc='' | |
d50284c4 | 10154 | archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8d138742 | 10155 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10156 | $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
8d138742 CE |
10157 | ;; |
10158 | *) | |
d50284c4 CE |
10159 | wlarc='$wl' |
10160 | archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10161 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
d50284c4 | 10162 | $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
8d138742 CE |
10163 | ;; |
10164 | esac | |
10165 | fi | |
10166 | hardcode_libdir_flag_spec='-R$libdir' | |
10167 | hardcode_shlibpath_var=no | |
10168 | case $host_os in | |
10169 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10170 | *) | |
10171 | # The compiler driver will combine and reorder linker options, | |
d50284c4 | 10172 | # but understands '-z linker_flag'. GCC discards it without '$wl', |
8d138742 CE |
10173 | # but is careful enough not to reorder. |
10174 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
d50284c4 CE |
10175 | if test yes = "$GCC"; then |
10176 | whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
8d138742 CE |
10177 | else |
10178 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10179 | fi | |
10180 | ;; | |
10181 | esac | |
10182 | link_all_deplibs=yes | |
10183 | ;; | |
d9898ee8 | 10184 | |
8d138742 | 10185 | sunos4*) |
d50284c4 | 10186 | if test sequent = "$host_vendor"; then |
8d138742 CE |
10187 | # Use $CC to link under sequent, because it throws in some extra .o |
10188 | # files that make .init and .fini sections work. | |
d50284c4 | 10189 | archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8d138742 CE |
10190 | else |
10191 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10192 | fi | |
10193 | hardcode_libdir_flag_spec='-L$libdir' | |
10194 | hardcode_direct=yes | |
10195 | hardcode_minus_L=yes | |
10196 | hardcode_shlibpath_var=no | |
10197 | ;; | |
d9898ee8 | 10198 | |
8d138742 CE |
10199 | sysv4) |
10200 | case $host_vendor in | |
10201 | sni) | |
10202 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10203 | hardcode_direct=yes # is this really true??? | |
10204 | ;; | |
10205 | siemens) | |
10206 | ## LD is ld it makes a PLAMLIB | |
10207 | ## CC just makes a GrossModule. | |
10208 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10209 | reload_cmds='$CC -r -o $output$reload_objs' | |
10210 | hardcode_direct=no | |
10211 | ;; | |
10212 | motorola) | |
10213 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10214 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10215 | ;; | |
10216 | esac | |
10217 | runpath_var='LD_RUN_PATH' | |
10218 | hardcode_shlibpath_var=no | |
10219 | ;; | |
d9898ee8 | 10220 | |
8d138742 CE |
10221 | sysv4.3*) |
10222 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10223 | hardcode_shlibpath_var=no | |
10224 | export_dynamic_flag_spec='-Bexport' | |
10225 | ;; | |
d9898ee8 | 10226 | |
8d138742 CE |
10227 | sysv4*MP*) |
10228 | if test -d /usr/nec; then | |
10229 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10230 | hardcode_shlibpath_var=no | |
10231 | runpath_var=LD_RUN_PATH | |
10232 | hardcode_runpath_var=yes | |
10233 | ld_shlibs=yes | |
10234 | fi | |
10235 | ;; | |
d9898ee8 | 10236 | |
8d138742 | 10237 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
d50284c4 | 10238 | no_undefined_flag='$wl-z,text' |
8d138742 CE |
10239 | archive_cmds_need_lc=no |
10240 | hardcode_shlibpath_var=no | |
10241 | runpath_var='LD_RUN_PATH' | |
d9898ee8 | 10242 | |
d50284c4 CE |
10243 | if test yes = "$GCC"; then |
10244 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10245 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10246 | else |
d50284c4 CE |
10247 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10248 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
10249 | fi |
10250 | ;; | |
d9898ee8 | 10251 | |
8d138742 | 10252 | sysv5* | sco3.2v5* | sco5v6*) |
d50284c4 | 10253 | # Note: We CANNOT use -z defs as we might desire, because we do not |
8d138742 CE |
10254 | # link with -lc, and that would cause any symbols used from libc to |
10255 | # always be unresolved, which means just about no library would | |
10256 | # ever link correctly. If we're not using GNU ld we use -z text | |
10257 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10258 | # as -z defs. | |
d50284c4 CE |
10259 | no_undefined_flag='$wl-z,text' |
10260 | allow_undefined_flag='$wl-z,nodefs' | |
8d138742 CE |
10261 | archive_cmds_need_lc=no |
10262 | hardcode_shlibpath_var=no | |
d50284c4 | 10263 | hardcode_libdir_flag_spec='$wl-R,$libdir' |
8d138742 CE |
10264 | hardcode_libdir_separator=':' |
10265 | link_all_deplibs=yes | |
d50284c4 | 10266 | export_dynamic_flag_spec='$wl-Bexport' |
8d138742 | 10267 | runpath_var='LD_RUN_PATH' |
d9898ee8 | 10268 | |
d50284c4 CE |
10269 | if test yes = "$GCC"; then |
10270 | archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10271 | archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 | 10272 | else |
d50284c4 CE |
10273 | archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
10274 | archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8d138742 CE |
10275 | fi |
10276 | ;; | |
d9898ee8 | 10277 | |
8d138742 CE |
10278 | uts4*) |
10279 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10280 | hardcode_libdir_flag_spec='-L$libdir' | |
10281 | hardcode_shlibpath_var=no | |
10282 | ;; | |
d9898ee8 | 10283 | |
8d138742 CE |
10284 | *) |
10285 | ld_shlibs=no | |
10286 | ;; | |
10287 | esac | |
d9898ee8 | 10288 | |
d50284c4 | 10289 | if test sni = "$host_vendor"; then |
8d138742 CE |
10290 | case $host in |
10291 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
d50284c4 | 10292 | export_dynamic_flag_spec='$wl-Blargedynsym' |
d9898ee8 | 10293 | ;; |
8d138742 CE |
10294 | esac |
10295 | fi | |
10296 | fi | |
10297 | ||
b0322a85 | 10298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
8d138742 | 10299 | $as_echo "$ld_shlibs" >&6; } |
d50284c4 | 10300 | test no = "$ld_shlibs" && can_build_shared=no |
8d138742 CE |
10301 | |
10302 | with_gnu_ld=$with_gnu_ld | |
10303 | ||
10304 | ||
10305 | ||
10306 | ||
10307 | ||
10308 | ||
10309 | ||
10310 | ||
10311 | ||
10312 | ||
10313 | ||
10314 | ||
10315 | ||
10316 | ||
10317 | ||
10318 | # | |
10319 | # Do we need to explicitly link libc? | |
10320 | # | |
10321 | case "x$archive_cmds_need_lc" in | |
10322 | x|xyes) | |
10323 | # Assume -lc should be added | |
10324 | archive_cmds_need_lc=yes | |
10325 | ||
d50284c4 | 10326 | if test yes,yes = "$GCC,$enable_shared"; then |
8d138742 CE |
10327 | case $archive_cmds in |
10328 | *'~'*) | |
10329 | # FIXME: we may have to deal with multi-command sequences. | |
10330 | ;; | |
10331 | '$CC '*) | |
10332 | # Test whether the compiler implicitly links with -lc since on some | |
10333 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10334 | # to ld, don't add -lc before -lgcc. | |
b0322a85 | 10335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
8d138742 | 10336 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
b0322a85 CE |
10337 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
10338 | $as_echo_n "(cached) " >&6 | |
10339 | else | |
10340 | $RM conftest* | |
10341 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8d138742 | 10342 | |
b0322a85 | 10343 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
8d138742 CE |
10344 | (eval $ac_compile) 2>&5 |
10345 | ac_status=$? | |
b0322a85 CE |
10346 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10347 | test $ac_status = 0; } 2>conftest.err; then | |
10348 | soname=conftest | |
10349 | lib=conftest | |
10350 | libobjs=conftest.$ac_objext | |
10351 | deplibs= | |
10352 | wl=$lt_prog_compiler_wl | |
10353 | pic_flag=$lt_prog_compiler_pic | |
10354 | compiler_flags=-v | |
10355 | linker_flags=-v | |
10356 | verstring= | |
10357 | output_objdir=. | |
10358 | libname=conftest | |
10359 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10360 | allow_undefined_flag= | |
10361 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
8d138742 CE |
10362 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
10363 | ac_status=$? | |
b0322a85 CE |
10364 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
10365 | test $ac_status = 0; } | |
10366 | then | |
10367 | lt_cv_archive_cmds_need_lc=no | |
10368 | else | |
10369 | lt_cv_archive_cmds_need_lc=yes | |
10370 | fi | |
10371 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10372 | else | |
10373 | cat conftest.err 1>&5 | |
10374 | fi | |
10375 | $RM conftest* | |
10376 | ||
10377 | fi | |
10378 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10379 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10380 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
8d138742 CE |
10381 | ;; |
10382 | esac | |
10383 | fi | |
10384 | ;; | |
10385 | esac | |
10386 | ||
10387 | ||
d9898ee8 | 10388 | |
d9898ee8 | 10389 | |
d9898ee8 | 10390 | |
d9898ee8 | 10391 | |
d9898ee8 | 10392 | |
d9898ee8 | 10393 | |
d9898ee8 | 10394 | |
d9898ee8 | 10395 | |
d9898ee8 | 10396 | |
d9898ee8 | 10397 | |
10398 | ||
d9898ee8 | 10399 | |
d9898ee8 | 10400 | |
10401 | ||
d9898ee8 | 10402 | |
10403 | ||
d9898ee8 | 10404 | |
d9898ee8 | 10405 | |
10406 | ||
d9898ee8 | 10407 | |
d9898ee8 | 10408 | |
10409 | ||
d9898ee8 | 10410 | |
d9898ee8 | 10411 | |
d9898ee8 | 10412 | |
d9898ee8 | 10413 | |
d9898ee8 | 10414 | |
d9898ee8 | 10415 | |
d9898ee8 | 10416 | |
d9898ee8 | 10417 | |
d9898ee8 | 10418 | |
d9898ee8 | 10419 | |
d9898ee8 | 10420 | |
d9898ee8 | 10421 | |
d9898ee8 | 10422 | |
d9898ee8 | 10423 | |
d9898ee8 | 10424 | |
d9898ee8 | 10425 | |
d9898ee8 | 10426 | |
d9898ee8 | 10427 | |
d9898ee8 | 10428 | |
d9898ee8 | 10429 | |
d9898ee8 | 10430 | |
d9898ee8 | 10431 | |
d9898ee8 | 10432 | |
ac40fd9e | 10433 | |
d9898ee8 | 10434 | |
d9898ee8 | 10435 | |
d9898ee8 | 10436 | |
d9898ee8 | 10437 | |
d9898ee8 | 10438 | |
d9898ee8 | 10439 | |
d9898ee8 | 10440 | |
d9898ee8 | 10441 | |
d9898ee8 | 10442 | |
d9898ee8 | 10443 | |
d9898ee8 | 10444 | |
d9898ee8 | 10445 | |
d9898ee8 | 10446 | |
d9898ee8 | 10447 | |
d9898ee8 | 10448 | |
d9898ee8 | 10449 | |
d9898ee8 | 10450 | |
10451 | ||
d9898ee8 | 10452 | |
d9898ee8 | 10453 | |
d9898ee8 | 10454 | |
10455 | ||
d9898ee8 | 10456 | |
d9898ee8 | 10457 | |
d9898ee8 | 10458 | |
d9898ee8 | 10459 | |
d9898ee8 | 10460 | |
d9898ee8 | 10461 | |
d9898ee8 | 10462 | |
d9898ee8 | 10463 | |
d9898ee8 | 10464 | |
d9898ee8 | 10465 | |
d9898ee8 | 10466 | |
d9898ee8 | 10467 | |
d9898ee8 | 10468 | |
d9898ee8 | 10469 | |
d9898ee8 | 10470 | |
d9898ee8 | 10471 | |
d9898ee8 | 10472 | |
d9898ee8 | 10473 | |
d9898ee8 | 10474 | |
d9898ee8 | 10475 | |
d9898ee8 | 10476 | |
d9898ee8 | 10477 | |
d9898ee8 | 10478 | |
d9898ee8 | 10479 | |
d9898ee8 | 10480 | |
d9898ee8 | 10481 | |
d9898ee8 | 10482 | |
d9898ee8 | 10483 | |
d9898ee8 | 10484 | |
d9898ee8 | 10485 | |
d9898ee8 | 10486 | |
d9898ee8 | 10487 | |
d9898ee8 | 10488 | |
d9898ee8 | 10489 | |
d9898ee8 | 10490 | |
dd184caf | 10491 | |
dd184caf | 10492 | |
d9898ee8 | 10493 | |
d9898ee8 | 10494 | |
d9898ee8 | 10495 | |
d9898ee8 | 10496 | |
d9898ee8 | 10497 | |
dd184caf | 10498 | |
dd184caf | 10499 | |
d9898ee8 | 10500 | |
d9898ee8 | 10501 | |
d9898ee8 | 10502 | |
d9898ee8 | 10503 | |
d9898ee8 | 10504 | |
d9898ee8 | 10505 | |
d9898ee8 | 10506 | |
d9898ee8 | 10507 | |
d9898ee8 | 10508 | |
d9898ee8 | 10509 | |
d9898ee8 | 10510 | |
d9898ee8 | 10511 | |
d9898ee8 | 10512 | |
d9898ee8 | 10513 | |
d9898ee8 | 10514 | |
d9898ee8 | 10515 | |
d9898ee8 | 10516 | |
d9898ee8 | 10517 | |
d9898ee8 | 10518 | |
d9898ee8 | 10519 | |
d9898ee8 | 10520 | |
d9898ee8 | 10521 | |
d9898ee8 | 10522 | |
d9898ee8 | 10523 | |
d9898ee8 | 10524 | |
d9898ee8 | 10525 | |
d9898ee8 | 10526 | |
d9898ee8 | 10527 | |
d9898ee8 | 10528 | |
d9898ee8 | 10529 | |
d9898ee8 | 10530 | |
d9898ee8 | 10531 | |
d9898ee8 | 10532 | |
d9898ee8 | 10533 | |
d9898ee8 | 10534 | |
d9898ee8 | 10535 | |
d9898ee8 | 10536 | |
d9898ee8 | 10537 | |
b0322a85 | 10538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
8d138742 CE |
10539 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
10540 | ||
d50284c4 | 10541 | if test yes = "$GCC"; then |
8d138742 | 10542 | case $host_os in |
d50284c4 CE |
10543 | darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
10544 | *) lt_awk_arg='/^libraries:/' ;; | |
8d138742 | 10545 | esac |
b0322a85 | 10546 | case $host_os in |
d50284c4 CE |
10547 | mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
10548 | *) lt_sed_strip_eq='s|=/|/|g' ;; | |
b0322a85 CE |
10549 | esac |
10550 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10551 | case $lt_search_path_spec in | |
10552 | *\;*) | |
8d138742 CE |
10553 | # if the path contains ";" then we assume it to be the separator |
10554 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10555 | # assumed that no part of a normal pathname contains ";" but that should | |
10556 | # okay in the real world where ";" in dirpaths is itself problematic. | |
b0322a85 CE |
10557 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
10558 | ;; | |
10559 | *) | |
10560 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10561 | ;; | |
10562 | esac | |
8d138742 | 10563 | # Ok, now we have the path, separated by spaces, we can step through it |
d50284c4 | 10564 | # and add multilib dir if necessary... |
8d138742 | 10565 | lt_tmp_lt_search_path_spec= |
d50284c4 CE |
10566 | lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
10567 | # ...but if some path component already ends with the multilib dir we assume | |
10568 | # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
10569 | case "$lt_multi_os_dir; $lt_search_path_spec " in | |
10570 | "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
10571 | lt_multi_os_dir= | |
10572 | ;; | |
10573 | esac | |
8d138742 | 10574 | for lt_sys_path in $lt_search_path_spec; do |
d50284c4 CE |
10575 | if test -d "$lt_sys_path$lt_multi_os_dir"; then |
10576 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
10577 | elif test -n "$lt_multi_os_dir"; then | |
8d138742 CE |
10578 | test -d "$lt_sys_path" && \ |
10579 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10580 | fi | |
10581 | done | |
b0322a85 | 10582 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
d50284c4 CE |
10583 | BEGIN {RS = " "; FS = "/|\n";} { |
10584 | lt_foo = ""; | |
10585 | lt_count = 0; | |
8d138742 CE |
10586 | for (lt_i = NF; lt_i > 0; lt_i--) { |
10587 | if ($lt_i != "" && $lt_i != ".") { | |
10588 | if ($lt_i == "..") { | |
10589 | lt_count++; | |
10590 | } else { | |
10591 | if (lt_count == 0) { | |
d50284c4 | 10592 | lt_foo = "/" $lt_i lt_foo; |
8d138742 CE |
10593 | } else { |
10594 | lt_count--; | |
10595 | } | |
10596 | } | |
10597 | } | |
10598 | } | |
10599 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10600 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10601 | }'` | |
b0322a85 CE |
10602 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10603 | # for these hosts. | |
10604 | case $host_os in | |
10605 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
d50284c4 | 10606 | $SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
b0322a85 CE |
10607 | esac |
10608 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
8d138742 CE |
10609 | else |
10610 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10611 | fi | |
d9898ee8 | 10612 | library_names_spec= |
10613 | libname_spec='lib$name' | |
10614 | soname_spec= | |
d50284c4 | 10615 | shrext_cmds=.so |
d9898ee8 | 10616 | postinstall_cmds= |
10617 | postuninstall_cmds= | |
10618 | finish_cmds= | |
10619 | finish_eval= | |
10620 | shlibpath_var= | |
10621 | shlibpath_overrides_runpath=unknown | |
10622 | version_type=none | |
10623 | dynamic_linker="$host_os ld.so" | |
10624 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
d9898ee8 | 10625 | need_lib_prefix=unknown |
10626 | hardcode_into_libs=no | |
10627 | ||
10628 | # when you set need_version to no, make sure it does not cause -set_version | |
10629 | # flags to be left without arguments | |
10630 | need_version=unknown | |
10631 | ||
d50284c4 CE |
10632 | |
10633 | ||
d9898ee8 | 10634 | case $host_os in |
10635 | aix3*) | |
b0322a85 | 10636 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 | 10637 | library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
d9898ee8 | 10638 | shlibpath_var=LIBPATH |
10639 | ||
10640 | # AIX 3 has no versioning support, so we append a major version to the name. | |
d50284c4 | 10641 | soname_spec='$libname$release$shared_ext$major' |
d9898ee8 | 10642 | ;; |
10643 | ||
8d138742 | 10644 | aix[4-9]*) |
b0322a85 | 10645 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10646 | need_lib_prefix=no |
10647 | need_version=no | |
10648 | hardcode_into_libs=yes | |
d50284c4 | 10649 | if test ia64 = "$host_cpu"; then |
d9898ee8 | 10650 | # AIX 5 supports IA64 |
d50284c4 | 10651 | library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
d9898ee8 | 10652 | shlibpath_var=LD_LIBRARY_PATH |
10653 | else | |
10654 | # With GCC up to 2.95.x, collect2 would create an import file | |
10655 | # for dependence libraries. The import file would start with | |
d50284c4 CE |
10656 | # the line '#! .'. This would cause the generated library to |
10657 | # depend on '.', always an invalid library. This was fixed in | |
d9898ee8 | 10658 | # development snapshots of GCC prior to 3.0. |
10659 | case $host_os in | |
10660 | aix4 | aix4.[01] | aix4.[01].*) | |
10661 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10662 | echo ' yes ' | |
d50284c4 | 10663 | echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
d9898ee8 | 10664 | : |
10665 | else | |
10666 | can_build_shared=no | |
10667 | fi | |
10668 | ;; | |
10669 | esac | |
d50284c4 CE |
10670 | # Using Import Files as archive members, it is possible to support |
10671 | # filename-based versioning of shared library archives on AIX. While | |
10672 | # this would work for both with and without runtime linking, it will | |
10673 | # prevent static linking of such archives. So we do filename-based | |
10674 | # shared library versioning with .so extension only, which is used | |
10675 | # when both runtime linking and shared linking is enabled. | |
10676 | # Unfortunately, runtime linking may impact performance, so we do | |
10677 | # not want this to be the default eventually. Also, we use the | |
10678 | # versioned .so libs for executables only if there is the -brtl | |
10679 | # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
10680 | # To allow for filename-based versioning support, we need to create | |
10681 | # libNAME.so.V as an archive file, containing: | |
10682 | # *) an Import File, referring to the versioned filename of the | |
10683 | # archive as well as the shared archive member, telling the | |
10684 | # bitwidth (32 or 64) of that shared object, and providing the | |
10685 | # list of exported symbols of that shared object, eventually | |
10686 | # decorated with the 'weak' keyword | |
10687 | # *) the shared object with the F_LOADONLY flag set, to really avoid | |
10688 | # it being seen by the linker. | |
10689 | # At run time we better use the real file rather than another symlink, | |
10690 | # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
10691 | ||
10692 | case $with_aix_soname,$aix_use_runtimelinking in | |
10693 | # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
d9898ee8 | 10694 | # soname into executable. Probably we can add versioning support to |
10695 | # collect2, so additional links can be useful in future. | |
d50284c4 CE |
10696 | aix,yes) # traditional libtool |
10697 | dynamic_linker='AIX unversionable lib.so' | |
d9898ee8 | 10698 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
10699 | # instead of lib<name>.a to let people know that these are not | |
10700 | # typical AIX shared libraries. | |
d50284c4 CE |
10701 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10702 | ;; | |
10703 | aix,no) # traditional AIX only | |
10704 | dynamic_linker='AIX lib.a(lib.so.V)' | |
d9898ee8 | 10705 | # We preserve .a as extension for shared libraries through AIX4.2 |
10706 | # and later when we are not doing run time linking. | |
d50284c4 CE |
10707 | library_names_spec='$libname$release.a $libname.a' |
10708 | soname_spec='$libname$release$shared_ext$major' | |
10709 | ;; | |
10710 | svr4,*) # full svr4 only | |
10711 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
10712 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10713 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10714 | shlibpath_overrides_runpath=yes | |
10715 | ;; | |
10716 | *,yes) # both, prefer svr4 | |
10717 | dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
10718 | library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
10719 | # unpreferred sharedlib libNAME.a needs extra handling | |
10720 | postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' | |
10721 | postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' | |
10722 | # We do not specify a path in Import Files, so LIBPATH fires. | |
10723 | shlibpath_overrides_runpath=yes | |
10724 | ;; | |
10725 | *,no) # both, prefer aix | |
10726 | dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
10727 | library_names_spec='$libname$release.a $libname.a' | |
10728 | soname_spec='$libname$release$shared_ext$major' | |
10729 | # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
10730 | postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' | |
10731 | postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' | |
10732 | ;; | |
10733 | esac | |
d9898ee8 | 10734 | shlibpath_var=LIBPATH |
10735 | fi | |
10736 | ;; | |
10737 | ||
10738 | amigaos*) | |
8d138742 CE |
10739 | case $host_cpu in |
10740 | powerpc) | |
10741 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10742 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
d50284c4 | 10743 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
8d138742 CE |
10744 | ;; |
10745 | m68k) | |
10746 | library_names_spec='$libname.ixlibrary $libname.a' | |
10747 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
d50284c4 | 10748 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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 |
10749 | ;; |
10750 | esac | |
d9898ee8 | 10751 | ;; |
10752 | ||
10753 | beos*) | |
d50284c4 | 10754 | library_names_spec='$libname$shared_ext' |
d9898ee8 | 10755 | dynamic_linker="$host_os ld.so" |
10756 | shlibpath_var=LIBRARY_PATH | |
10757 | ;; | |
10758 | ||
10759 | bsdi[45]*) | |
b0322a85 | 10760 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10761 | need_version=no |
d50284c4 CE |
10762 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10763 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10764 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
10765 | shlibpath_var=LD_LIBRARY_PATH | |
10766 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10767 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10768 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10769 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10770 | # libtool to hard-code these into programs | |
10771 | ;; | |
10772 | ||
8d138742 | 10773 | cygwin* | mingw* | pw32* | cegcc*) |
d9898ee8 | 10774 | version_type=windows |
d50284c4 | 10775 | shrext_cmds=.dll |
d9898ee8 | 10776 | need_version=no |
10777 | need_lib_prefix=no | |
10778 | ||
b0322a85 CE |
10779 | case $GCC,$cc_basename in |
10780 | yes,*) | |
10781 | # gcc | |
d9898ee8 | 10782 | library_names_spec='$libname.dll.a' |
10783 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
d50284c4 CE |
10784 | postinstall_cmds='base_file=`basename \$file`~ |
10785 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
d9898ee8 | 10786 | dldir=$destdir/`dirname \$dlpath`~ |
10787 | test -d \$dldir || mkdir -p \$dldir~ | |
10788 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8d138742 CE |
10789 | chmod a+x \$dldir/$dlname~ |
10790 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10791 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10792 | fi' | |
d9898ee8 | 10793 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
10794 | dlpath=$dir/\$dldll~ | |
8d138742 | 10795 | $RM \$dlpath' |
d9898ee8 | 10796 | shlibpath_overrides_runpath=yes |
10797 | ||
10798 | case $host_os in | |
10799 | cygwin*) | |
10800 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
d50284c4 | 10801 | soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
b0322a85 CE |
10802 | |
10803 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
d9898ee8 | 10804 | ;; |
8d138742 | 10805 | mingw* | cegcc*) |
d9898ee8 | 10806 | # MinGW DLLs use traditional 'lib' prefix |
d50284c4 | 10807 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
d9898ee8 | 10808 | ;; |
10809 | pw32*) | |
10810 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
d50284c4 | 10811 | library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
d9898ee8 | 10812 | ;; |
10813 | esac | |
b0322a85 CE |
10814 | dynamic_linker='Win32 ld.exe' |
10815 | ;; | |
10816 | ||
10817 | *,cl*) | |
10818 | # Native MSVC | |
10819 | libname_spec='$name' | |
d50284c4 CE |
10820 | soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
10821 | library_names_spec='$libname.dll.lib' | |
b0322a85 CE |
10822 | |
10823 | case $build_os in | |
10824 | mingw*) | |
10825 | sys_lib_search_path_spec= | |
10826 | lt_save_ifs=$IFS | |
10827 | IFS=';' | |
10828 | for lt_path in $LIB | |
10829 | do | |
10830 | IFS=$lt_save_ifs | |
10831 | # Let DOS variable expansion print the short 8.3 style file name. | |
10832 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10833 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10834 | done | |
10835 | IFS=$lt_save_ifs | |
10836 | # Convert to MSYS style. | |
10837 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10838 | ;; | |
10839 | cygwin*) | |
10840 | # Convert to unix form, then to dos form, then back to unix form | |
10841 | # but this time dos style (no spaces!) so that the unix form looks | |
10842 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10843 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10844 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10845 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10846 | ;; | |
10847 | *) | |
d50284c4 | 10848 | sys_lib_search_path_spec=$LIB |
b0322a85 CE |
10849 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
10850 | # It is most probably a Windows format PATH. | |
10851 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10852 | else | |
10853 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10854 | fi | |
10855 | # FIXME: find the short name or the path components, as spaces are | |
10856 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
10857 | ;; | |
10858 | esac | |
10859 | ||
10860 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
d50284c4 CE |
10861 | postinstall_cmds='base_file=`basename \$file`~ |
10862 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
b0322a85 CE |
10863 | dldir=$destdir/`dirname \$dlpath`~ |
10864 | test -d \$dldir || mkdir -p \$dldir~ | |
10865 | $install_prog $dir/$dlname \$dldir/$dlname' | |
10866 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10867 | dlpath=$dir/\$dldll~ | |
10868 | $RM \$dlpath' | |
10869 | shlibpath_overrides_runpath=yes | |
10870 | dynamic_linker='Win32 link.exe' | |
d9898ee8 | 10871 | ;; |
10872 | ||
10873 | *) | |
b0322a85 | 10874 | # Assume MSVC wrapper |
d50284c4 | 10875 | library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
b0322a85 | 10876 | dynamic_linker='Win32 ld.exe' |
d9898ee8 | 10877 | ;; |
10878 | esac | |
d9898ee8 | 10879 | # FIXME: first we should search . and the directory the executable is in |
10880 | shlibpath_var=PATH | |
10881 | ;; | |
10882 | ||
10883 | darwin* | rhapsody*) | |
10884 | dynamic_linker="$host_os dyld" | |
10885 | version_type=darwin | |
10886 | need_lib_prefix=no | |
10887 | need_version=no | |
d50284c4 CE |
10888 | library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
10889 | soname_spec='$libname$release$major$shared_ext' | |
d9898ee8 | 10890 | shlibpath_overrides_runpath=yes |
10891 | shlibpath_var=DYLD_LIBRARY_PATH | |
10892 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
ac40fd9e | 10893 | |
8d138742 | 10894 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
d9898ee8 | 10895 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
10896 | ;; | |
10897 | ||
10898 | dgux*) | |
b0322a85 | 10899 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 10900 | need_lib_prefix=no |
10901 | need_version=no | |
d50284c4 CE |
10902 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10903 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10904 | shlibpath_var=LD_LIBRARY_PATH |
10905 | ;; | |
10906 | ||
d9898ee8 | 10907 | freebsd* | dragonfly*) |
10908 | # DragonFly does not have aout. When/if they implement a new | |
10909 | # versioning mechanism, adjust this. | |
10910 | if test -x /usr/bin/objformat; then | |
10911 | objformat=`/usr/bin/objformat` | |
10912 | else | |
10913 | case $host_os in | |
b0322a85 | 10914 | freebsd[23].*) objformat=aout ;; |
d9898ee8 | 10915 | *) objformat=elf ;; |
10916 | esac | |
10917 | fi | |
10918 | version_type=freebsd-$objformat | |
10919 | case $version_type in | |
10920 | freebsd-elf*) | |
d50284c4 CE |
10921 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10922 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 10923 | need_version=no |
10924 | need_lib_prefix=no | |
10925 | ;; | |
10926 | freebsd-*) | |
d50284c4 | 10927 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 10928 | need_version=yes |
10929 | ;; | |
10930 | esac | |
10931 | shlibpath_var=LD_LIBRARY_PATH | |
10932 | case $host_os in | |
b0322a85 | 10933 | freebsd2.*) |
d9898ee8 | 10934 | shlibpath_overrides_runpath=yes |
10935 | ;; | |
10936 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10937 | shlibpath_overrides_runpath=yes | |
10938 | hardcode_into_libs=yes | |
10939 | ;; | |
10940 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10941 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10942 | shlibpath_overrides_runpath=no | |
10943 | hardcode_into_libs=yes | |
10944 | ;; | |
ac40fd9e | 10945 | *) # from 4.6 on, and DragonFly |
d9898ee8 | 10946 | shlibpath_overrides_runpath=yes |
10947 | hardcode_into_libs=yes | |
10948 | ;; | |
10949 | esac | |
10950 | ;; | |
10951 | ||
b0322a85 CE |
10952 | haiku*) |
10953 | version_type=linux # correct to gnu/linux during the next big refactor | |
10954 | need_lib_prefix=no | |
10955 | need_version=no | |
10956 | dynamic_linker="$host_os runtime_loader" | |
d50284c4 CE |
10957 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10958 | soname_spec='$libname$release$shared_ext$major' | |
b0322a85 | 10959 | shlibpath_var=LIBRARY_PATH |
d50284c4 | 10960 | shlibpath_overrides_runpath=no |
b0322a85 | 10961 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
d9898ee8 | 10962 | hardcode_into_libs=yes |
10963 | ;; | |
10964 | ||
10965 | hpux9* | hpux10* | hpux11*) | |
10966 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10967 | # link against other versions. | |
10968 | version_type=sunos | |
10969 | need_lib_prefix=no | |
10970 | need_version=no | |
10971 | case $host_cpu in | |
10972 | ia64*) | |
10973 | shrext_cmds='.so' | |
10974 | hardcode_into_libs=yes | |
10975 | dynamic_linker="$host_os dld.so" | |
10976 | shlibpath_var=LD_LIBRARY_PATH | |
10977 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
d50284c4 CE |
10978 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10979 | soname_spec='$libname$release$shared_ext$major' | |
10980 | if test 32 = "$HPUX_IA64_MODE"; then | |
d9898ee8 | 10981 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
d50284c4 | 10982 | sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
d9898ee8 | 10983 | else |
10984 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
d50284c4 | 10985 | sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
d9898ee8 | 10986 | fi |
d9898ee8 | 10987 | ;; |
8d138742 CE |
10988 | hppa*64*) |
10989 | shrext_cmds='.sl' | |
10990 | hardcode_into_libs=yes | |
10991 | dynamic_linker="$host_os dld.sl" | |
10992 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10993 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
d50284c4 CE |
10994 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
10995 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
10996 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
10997 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10998 | ;; | |
10999 | *) | |
d9898ee8 | 11000 | shrext_cmds='.sl' |
11001 | dynamic_linker="$host_os dld.sl" | |
11002 | shlibpath_var=SHLIB_PATH | |
11003 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
d50284c4 CE |
11004 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11005 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11006 | ;; |
11007 | esac | |
b0322a85 | 11008 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
d9898ee8 | 11009 | postinstall_cmds='chmod 555 $lib' |
b0322a85 CE |
11010 | # or fails outright, so override atomically: |
11011 | install_override_mode=555 | |
d9898ee8 | 11012 | ;; |
11013 | ||
ac40fd9e | 11014 | interix[3-9]*) |
b0322a85 | 11015 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 11016 | need_lib_prefix=no |
11017 | need_version=no | |
d50284c4 CE |
11018 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11019 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11020 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
11021 | shlibpath_var=LD_LIBRARY_PATH | |
11022 | shlibpath_overrides_runpath=no | |
11023 | hardcode_into_libs=yes | |
11024 | ;; | |
11025 | ||
11026 | irix5* | irix6* | nonstopux*) | |
11027 | case $host_os in | |
11028 | nonstopux*) version_type=nonstopux ;; | |
11029 | *) | |
d50284c4 | 11030 | if test yes = "$lt_cv_prog_gnu_ld"; then |
b0322a85 | 11031 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 11032 | else |
11033 | version_type=irix | |
11034 | fi ;; | |
11035 | esac | |
11036 | need_lib_prefix=no | |
11037 | need_version=no | |
d50284c4 CE |
11038 | soname_spec='$libname$release$shared_ext$major' |
11039 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
d9898ee8 | 11040 | case $host_os in |
11041 | irix5* | nonstopux*) | |
11042 | libsuff= shlibsuff= | |
11043 | ;; | |
11044 | *) | |
11045 | case $LD in # libtool.m4 will add one of these switches to LD | |
11046 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11047 | libsuff= shlibsuff= libmagic=32-bit;; | |
11048 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11049 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11050 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11051 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11052 | *) libsuff= shlibsuff= libmagic=never-match;; | |
11053 | esac | |
11054 | ;; | |
11055 | esac | |
11056 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11057 | shlibpath_overrides_runpath=no | |
d50284c4 CE |
11058 | sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
11059 | sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
d9898ee8 | 11060 | hardcode_into_libs=yes |
11061 | ;; | |
11062 | ||
8d138742 CE |
11063 | # No shared lib support for Linux oldld, aout, or coff. |
11064 | linux*oldld* | linux*aout* | linux*coff*) | |
11065 | dynamic_linker=no | |
11066 | ;; | |
11067 | ||
d50284c4 CE |
11068 | linux*android*) |
11069 | version_type=none # Android doesn't support versioned libraries. | |
11070 | need_lib_prefix=no | |
11071 | need_version=no | |
11072 | library_names_spec='$libname$release$shared_ext' | |
11073 | soname_spec='$libname$release$shared_ext' | |
11074 | finish_cmds= | |
11075 | shlibpath_var=LD_LIBRARY_PATH | |
11076 | shlibpath_overrides_runpath=yes | |
11077 | ||
11078 | # This implies no fast_install, which is unacceptable. | |
11079 | # Some rework will be needed to allow for fast_install | |
11080 | # before this can be enabled. | |
11081 | hardcode_into_libs=yes | |
11082 | ||
11083 | dynamic_linker='Android linker' | |
11084 | # Don't embed -rpath directories since the linker doesn't support them. | |
11085 | hardcode_libdir_flag_spec='-L$libdir' | |
11086 | ;; | |
11087 | ||
b0322a85 | 11088 | # This must be glibc/ELF. |
d50284c4 | 11089 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
b0322a85 | 11090 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
11091 | need_lib_prefix=no |
11092 | need_version=no | |
d50284c4 CE |
11093 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11094 | soname_spec='$libname$release$shared_ext$major' | |
8d138742 CE |
11095 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
11096 | shlibpath_var=LD_LIBRARY_PATH | |
11097 | shlibpath_overrides_runpath=no | |
b0322a85 | 11098 | |
8d138742 | 11099 | # Some binutils ld are patched to set DT_RUNPATH |
b0322a85 CE |
11100 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
11101 | $as_echo_n "(cached) " >&6 | |
11102 | else | |
11103 | lt_cv_shlibpath_overrides_runpath=no | |
11104 | save_LDFLAGS=$LDFLAGS | |
11105 | save_libdir=$libdir | |
11106 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11107 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11108 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 CE |
11109 | /* end confdefs.h. */ |
11110 | ||
11111 | int | |
11112 | main () | |
11113 | { | |
11114 | ||
11115 | ; | |
11116 | return 0; | |
11117 | } | |
11118 | _ACEOF | |
b0322a85 CE |
11119 | if ac_fn_c_try_link "$LINENO"; then : |
11120 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11121 | lt_cv_shlibpath_overrides_runpath=yes | |
8d138742 | 11122 | fi |
b0322a85 CE |
11123 | fi |
11124 | rm -f core conftest.err conftest.$ac_objext \ | |
11125 | conftest$ac_exeext conftest.$ac_ext | |
11126 | LDFLAGS=$save_LDFLAGS | |
11127 | libdir=$save_libdir | |
8d138742 CE |
11128 | |
11129 | fi | |
11130 | ||
b0322a85 | 11131 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
d9898ee8 | 11132 | |
d9898ee8 | 11133 | # This implies no fast_install, which is unacceptable. |
11134 | # Some rework will be needed to allow for fast_install | |
11135 | # before this can be enabled. | |
11136 | hardcode_into_libs=yes | |
8d138742 CE |
11137 | |
11138 | # Add ABI-specific directories to the system library path. | |
11139 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
d9898ee8 | 11140 | |
d50284c4 CE |
11141 | # Ideally, we could use ldconfig to report *all* directores which are |
11142 | # searched for libraries, however this is still not possible. Aside from not | |
11143 | # being certain /sbin/ldconfig is available, command | |
11144 | # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
11145 | # even though it is searched at run-time. Try to do the best guess by | |
11146 | # appending ld.so.conf contents (and includes) to the search path. | |
d9898ee8 | 11147 | if test -f /etc/ld.so.conf; then |
b0322a85 | 11148 | 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 | 11149 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
d9898ee8 | 11150 | fi |
11151 | ||
11152 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11153 | # powerpc, because MkLinux only supported shared libraries with the | |
11154 | # GNU dynamic linker. Since this was broken with cross compilers, | |
11155 | # most powerpc-linux boxes support dynamic linking these days and | |
11156 | # people can always --disable-shared, the test was removed, and we | |
11157 | # assume the GNU/Linux dynamic linker is in use. | |
11158 | dynamic_linker='GNU/Linux ld.so' | |
11159 | ;; | |
11160 | ||
d9898ee8 | 11161 | netbsd*) |
11162 | version_type=sunos | |
11163 | need_lib_prefix=no | |
11164 | need_version=no | |
8d138742 | 11165 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
d50284c4 | 11166 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 11167 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
11168 | dynamic_linker='NetBSD (a.out) ld.so' | |
11169 | else | |
d50284c4 CE |
11170 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11171 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11172 | dynamic_linker='NetBSD ld.elf_so' |
11173 | fi | |
11174 | shlibpath_var=LD_LIBRARY_PATH | |
11175 | shlibpath_overrides_runpath=yes | |
11176 | hardcode_into_libs=yes | |
11177 | ;; | |
11178 | ||
11179 | newsos6) | |
b0322a85 | 11180 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 | 11181 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
d9898ee8 | 11182 | shlibpath_var=LD_LIBRARY_PATH |
11183 | shlibpath_overrides_runpath=yes | |
11184 | ;; | |
11185 | ||
8d138742 CE |
11186 | *nto* | *qnx*) |
11187 | version_type=qnx | |
d9898ee8 | 11188 | need_lib_prefix=no |
11189 | need_version=no | |
d50284c4 CE |
11190 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11191 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11192 | shlibpath_var=LD_LIBRARY_PATH |
8d138742 CE |
11193 | shlibpath_overrides_runpath=no |
11194 | hardcode_into_libs=yes | |
11195 | dynamic_linker='ldqnx.so' | |
d9898ee8 | 11196 | ;; |
11197 | ||
d50284c4 | 11198 | openbsd* | bitrig*) |
d9898ee8 | 11199 | version_type=sunos |
d50284c4 | 11200 | sys_lib_dlsearch_path_spec=/usr/lib |
d9898ee8 | 11201 | need_lib_prefix=no |
d50284c4 CE |
11202 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
11203 | need_version=no | |
d9898ee8 | 11204 | else |
d50284c4 | 11205 | need_version=yes |
d9898ee8 | 11206 | fi |
d50284c4 CE |
11207 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
11208 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11209 | shlibpath_var=LD_LIBRARY_PATH | |
11210 | shlibpath_overrides_runpath=yes | |
d9898ee8 | 11211 | ;; |
11212 | ||
11213 | os2*) | |
11214 | libname_spec='$name' | |
d50284c4 CE |
11215 | version_type=windows |
11216 | shrext_cmds=.dll | |
11217 | need_version=no | |
d9898ee8 | 11218 | need_lib_prefix=no |
d50284c4 CE |
11219 | # OS/2 can only load a DLL with a base name of 8 characters or less. |
11220 | soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
11221 | v=$($ECHO $release$versuffix | tr -d .-); | |
11222 | n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
11223 | $ECHO $n$v`$shared_ext' | |
11224 | library_names_spec='${libname}_dll.$libext' | |
d9898ee8 | 11225 | dynamic_linker='OS/2 ld.exe' |
d50284c4 CE |
11226 | shlibpath_var=BEGINLIBPATH |
11227 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
11228 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11229 | postinstall_cmds='base_file=`basename \$file`~ | |
11230 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
11231 | dldir=$destdir/`dirname \$dlpath`~ | |
11232 | test -d \$dldir || mkdir -p \$dldir~ | |
11233 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
11234 | chmod a+x \$dldir/$dlname~ | |
11235 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
11236 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
11237 | fi' | |
11238 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
11239 | dlpath=$dir/\$dldll~ | |
11240 | $RM \$dlpath' | |
d9898ee8 | 11241 | ;; |
11242 | ||
11243 | osf3* | osf4* | osf5*) | |
11244 | version_type=osf | |
11245 | need_lib_prefix=no | |
11246 | need_version=no | |
d50284c4 CE |
11247 | soname_spec='$libname$release$shared_ext$major' |
11248 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
d9898ee8 | 11249 | shlibpath_var=LD_LIBRARY_PATH |
11250 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
d50284c4 | 11251 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
d9898ee8 | 11252 | ;; |
11253 | ||
ac40fd9e | 11254 | rdos*) |
11255 | dynamic_linker=no | |
11256 | ;; | |
11257 | ||
d9898ee8 | 11258 | solaris*) |
b0322a85 | 11259 | version_type=linux # correct to gnu/linux during the next big refactor |
d9898ee8 | 11260 | need_lib_prefix=no |
11261 | need_version=no | |
d50284c4 CE |
11262 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11263 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11264 | shlibpath_var=LD_LIBRARY_PATH |
11265 | shlibpath_overrides_runpath=yes | |
11266 | hardcode_into_libs=yes | |
11267 | # ldd complains unless libraries are executable | |
11268 | postinstall_cmds='chmod +x $lib' | |
11269 | ;; | |
11270 | ||
11271 | sunos4*) | |
11272 | version_type=sunos | |
d50284c4 | 11273 | library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
d9898ee8 | 11274 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
11275 | shlibpath_var=LD_LIBRARY_PATH | |
11276 | shlibpath_overrides_runpath=yes | |
d50284c4 | 11277 | if test yes = "$with_gnu_ld"; then |
d9898ee8 | 11278 | need_lib_prefix=no |
11279 | fi | |
11280 | need_version=yes | |
11281 | ;; | |
11282 | ||
11283 | sysv4 | sysv4.3*) | |
b0322a85 | 11284 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11285 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11286 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11287 | shlibpath_var=LD_LIBRARY_PATH |
11288 | case $host_vendor in | |
11289 | sni) | |
11290 | shlibpath_overrides_runpath=no | |
11291 | need_lib_prefix=no | |
d9898ee8 | 11292 | runpath_var=LD_RUN_PATH |
11293 | ;; | |
11294 | siemens) | |
11295 | need_lib_prefix=no | |
11296 | ;; | |
11297 | motorola) | |
11298 | need_lib_prefix=no | |
11299 | need_version=no | |
11300 | shlibpath_overrides_runpath=no | |
11301 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11302 | ;; | |
11303 | esac | |
11304 | ;; | |
11305 | ||
11306 | sysv4*MP*) | |
d50284c4 | 11307 | if test -d /usr/nec; then |
b0322a85 | 11308 | version_type=linux # correct to gnu/linux during the next big refactor |
d50284c4 CE |
11309 | library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
11310 | soname_spec='$libname$shared_ext.$major' | |
d9898ee8 | 11311 | shlibpath_var=LD_LIBRARY_PATH |
11312 | fi | |
11313 | ;; | |
11314 | ||
11315 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
d50284c4 | 11316 | version_type=sco |
d9898ee8 | 11317 | need_lib_prefix=no |
11318 | need_version=no | |
d50284c4 CE |
11319 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
11320 | soname_spec='$libname$release$shared_ext$major' | |
d9898ee8 | 11321 | shlibpath_var=LD_LIBRARY_PATH |
8d138742 | 11322 | shlibpath_overrides_runpath=yes |
d9898ee8 | 11323 | hardcode_into_libs=yes |
d50284c4 | 11324 | if test yes = "$with_gnu_ld"; then |
d9898ee8 | 11325 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
d9898ee8 | 11326 | else |
11327 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
d9898ee8 | 11328 | case $host_os in |
11329 | sco3.2v5*) | |
11330 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11331 | ;; | |
11332 | esac | |
11333 | fi | |
11334 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11335 | ;; | |
11336 | ||
8d138742 CE |
11337 | tpf*) |
11338 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
b0322a85 | 11339 | version_type=linux # correct to gnu/linux during the next big refactor |
8d138742 CE |
11340 | need_lib_prefix=no |
11341 | need_version=no | |
d50284c4 | 11342 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
b0322a85 CE |
11343 | shlibpath_var=LD_LIBRARY_PATH |
11344 | shlibpath_overrides_runpath=no | |
11345 | hardcode_into_libs=yes | |
11346 | ;; | |
11347 | ||
11348 | uts4*) | |
11349 | version_type=linux # correct to gnu/linux during the next big refactor | |
d50284c4 CE |
11350 | library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
11351 | soname_spec='$libname$release$shared_ext$major' | |
b0322a85 CE |
11352 | shlibpath_var=LD_LIBRARY_PATH |
11353 | ;; | |
11354 | ||
11355 | *) | |
11356 | dynamic_linker=no | |
11357 | ;; | |
8d138742 | 11358 | esac |
b0322a85 CE |
11359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
11360 | $as_echo "$dynamic_linker" >&6; } | |
d50284c4 | 11361 | test no = "$dynamic_linker" && can_build_shared=no |
8d138742 | 11362 | |
b0322a85 | 11363 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
d50284c4 | 11364 | if test yes = "$GCC"; then |
b0322a85 | 11365 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
d9898ee8 | 11366 | fi |
11367 | ||
d50284c4 CE |
11368 | if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
11369 | sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
8d138742 | 11370 | fi |
d50284c4 CE |
11371 | |
11372 | if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
11373 | sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
8d138742 | 11374 | fi |
d9898ee8 | 11375 | |
d50284c4 CE |
11376 | # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
11377 | configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec | |
11378 | ||
11379 | # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code | |
11380 | func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
11381 | ||
11382 | # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool | |
11383 | configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH | |
11384 | ||
11385 | ||
11386 | ||
11387 | ||
11388 | ||
11389 | ||
d9898ee8 | 11390 | |
d9898ee8 | 11391 | |
d9898ee8 | 11392 | |
d9898ee8 | 11393 | |
11394 | ||
d9898ee8 | 11395 | |
d9898ee8 | 11396 | |
d9898ee8 | 11397 | |
d9898ee8 | 11398 | |
d9898ee8 | 11399 | |
d9898ee8 | 11400 | |
d9898ee8 | 11401 | |
d9898ee8 | 11402 | |
11403 | ||
d9898ee8 | 11404 | |
d9898ee8 | 11405 | |
11406 | ||
d9898ee8 | 11407 | |
d9898ee8 | 11408 | |
d9898ee8 | 11409 | |
d9898ee8 | 11410 | |
d9898ee8 | 11411 | |
d9898ee8 | 11412 | |
d9898ee8 | 11413 | |
d9898ee8 | 11414 | |
d9898ee8 | 11415 | |
d9898ee8 | 11416 | |
d9898ee8 | 11417 | |
d9898ee8 | 11418 | |
d9898ee8 | 11419 | |
d9898ee8 | 11420 | |
d9898ee8 | 11421 | |
d9898ee8 | 11422 | |
d9898ee8 | 11423 | |
d9898ee8 | 11424 | |
d9898ee8 | 11425 | |
d9898ee8 | 11426 | |
d9898ee8 | 11427 | |
d9898ee8 | 11428 | |
d9898ee8 | 11429 | |
d9898ee8 | 11430 | |
d9898ee8 | 11431 | |
d9898ee8 | 11432 | |
d9898ee8 | 11433 | |
d9898ee8 | 11434 | |
d9898ee8 | 11435 | |
d9898ee8 | 11436 | |
d9898ee8 | 11437 | |
d9898ee8 | 11438 | |
d9898ee8 | 11439 | |
d9898ee8 | 11440 | |
d9898ee8 | 11441 | |
d9898ee8 | 11442 | |
d9898ee8 | 11443 | |
b0322a85 CE |
11444 | |
11445 | ||
11446 | ||
11447 | ||
11448 | ||
11449 | ||
11450 | ||
11451 | ||
11452 | ||
11453 | ||
11454 | ||
11455 | ||
11456 | ||
11457 | ||
11458 | ||
11459 | ||
11460 | ||
11461 | ||
11462 | ||
11463 | ||
11464 | ||
11465 | ||
11466 | ||
11467 | ||
11468 | ||
11469 | ||
11470 | ||
11471 | ||
11472 | ||
11473 | ||
11474 | ||
11475 | ||
11476 | ||
11477 | ||
11478 | ||
11479 | ||
11480 | ||
11481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11482 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11483 | hardcode_action= | |
11484 | if test -n "$hardcode_libdir_flag_spec" || | |
11485 | test -n "$runpath_var" || | |
d50284c4 | 11486 | test yes = "$hardcode_automatic"; then |
b0322a85 CE |
11487 | |
11488 | # We can hardcode non-existent directories. | |
d50284c4 | 11489 | if test no != "$hardcode_direct" && |
b0322a85 CE |
11490 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
11491 | # have to relink, otherwise we might link with an installed library | |
11492 | # when we should be linking with a yet-to-be-installed one | |
d50284c4 CE |
11493 | ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
11494 | test no != "$hardcode_minus_L"; then | |
b0322a85 CE |
11495 | # Linking always hardcodes the temporary library directory. |
11496 | hardcode_action=relink | |
11497 | else | |
11498 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11499 | hardcode_action=immediate | |
11500 | fi | |
8d138742 | 11501 | else |
b0322a85 CE |
11502 | # We cannot hardcode anything, or else we can only hardcode existing |
11503 | # directories. | |
11504 | hardcode_action=unsupported | |
8d138742 | 11505 | fi |
b0322a85 CE |
11506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
11507 | $as_echo "$hardcode_action" >&6; } | |
d9898ee8 | 11508 | |
d50284c4 CE |
11509 | if test relink = "$hardcode_action" || |
11510 | test yes = "$inherit_rpath"; then | |
b0322a85 CE |
11511 | # Fast installation is not supported |
11512 | enable_fast_install=no | |
d50284c4 CE |
11513 | elif test yes = "$shlibpath_overrides_runpath" || |
11514 | test no = "$enable_shared"; then | |
b0322a85 CE |
11515 | # Fast installation is not necessary |
11516 | enable_fast_install=needless | |
11517 | fi | |
d9898ee8 | 11518 | |
d9898ee8 | 11519 | |
d9898ee8 | 11520 | |
d9898ee8 | 11521 | |
d9898ee8 | 11522 | |
d9898ee8 | 11523 | |
d50284c4 | 11524 | if test yes != "$enable_dlopen"; then |
b0322a85 CE |
11525 | enable_dlopen=unknown |
11526 | enable_dlopen_self=unknown | |
11527 | enable_dlopen_self_static=unknown | |
11528 | else | |
11529 | lt_cv_dlopen=no | |
11530 | lt_cv_dlopen_libs= | |
d9898ee8 | 11531 | |
b0322a85 CE |
11532 | case $host_os in |
11533 | beos*) | |
d50284c4 | 11534 | lt_cv_dlopen=load_add_on |
b0322a85 CE |
11535 | lt_cv_dlopen_libs= |
11536 | lt_cv_dlopen_self=yes | |
11537 | ;; | |
d9898ee8 | 11538 | |
b0322a85 | 11539 | mingw* | pw32* | cegcc*) |
d50284c4 | 11540 | lt_cv_dlopen=LoadLibrary |
b0322a85 CE |
11541 | lt_cv_dlopen_libs= |
11542 | ;; | |
d9898ee8 | 11543 | |
b0322a85 | 11544 | cygwin*) |
d50284c4 | 11545 | lt_cv_dlopen=dlopen |
b0322a85 CE |
11546 | lt_cv_dlopen_libs= |
11547 | ;; | |
d9898ee8 | 11548 | |
b0322a85 | 11549 | darwin*) |
d50284c4 | 11550 | # if libdl is installed we need to link against it |
b0322a85 CE |
11551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
11552 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11553 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11554 | $as_echo_n "(cached) " >&6 | |
11555 | else | |
11556 | ac_check_lib_save_LIBS=$LIBS | |
11557 | LIBS="-ldl $LIBS" | |
11558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11559 | /* end confdefs.h. */ | |
d9898ee8 | 11560 | |
b0322a85 CE |
11561 | /* Override any GCC internal prototype to avoid an error. |
11562 | Use char because int might match the return type of a GCC | |
11563 | builtin and then its argument prototype would still apply. */ | |
11564 | #ifdef __cplusplus | |
11565 | extern "C" | |
11566 | #endif | |
11567 | char dlopen (); | |
11568 | int | |
11569 | main () | |
11570 | { | |
11571 | return dlopen (); | |
11572 | ; | |
11573 | return 0; | |
11574 | } | |
11575 | _ACEOF | |
11576 | if ac_fn_c_try_link "$LINENO"; then : | |
11577 | ac_cv_lib_dl_dlopen=yes | |
11578 | else | |
11579 | ac_cv_lib_dl_dlopen=no | |
11580 | fi | |
11581 | rm -f core conftest.err conftest.$ac_objext \ | |
11582 | conftest$ac_exeext conftest.$ac_ext | |
11583 | LIBS=$ac_check_lib_save_LIBS | |
11584 | fi | |
11585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11586 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11587 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
d50284c4 | 11588 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
b0322a85 | 11589 | else |
d9898ee8 | 11590 | |
d50284c4 | 11591 | lt_cv_dlopen=dyld |
b0322a85 CE |
11592 | lt_cv_dlopen_libs= |
11593 | lt_cv_dlopen_self=yes | |
d9898ee8 | 11594 | |
b0322a85 | 11595 | fi |
d9898ee8 | 11596 | |
8d138742 | 11597 | ;; |
d9898ee8 | 11598 | |
d50284c4 CE |
11599 | tpf*) |
11600 | # Don't try to run any link tests for TPF. We know it's impossible | |
11601 | # because TPF is a cross-compiler, and we know how we open DSOs. | |
11602 | lt_cv_dlopen=dlopen | |
11603 | lt_cv_dlopen_libs= | |
11604 | lt_cv_dlopen_self=no | |
11605 | ;; | |
11606 | ||
b0322a85 CE |
11607 | *) |
11608 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11609 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
d50284c4 | 11610 | lt_cv_dlopen=shl_load |
b0322a85 CE |
11611 | else |
11612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11613 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11614 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11615 | $as_echo_n "(cached) " >&6 | |
11616 | else | |
11617 | ac_check_lib_save_LIBS=$LIBS | |
11618 | LIBS="-ldld $LIBS" | |
11619 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11620 | /* end confdefs.h. */ | |
d9898ee8 | 11621 | |
b0322a85 CE |
11622 | /* Override any GCC internal prototype to avoid an error. |
11623 | Use char because int might match the return type of a GCC | |
11624 | builtin and then its argument prototype would still apply. */ | |
11625 | #ifdef __cplusplus | |
11626 | extern "C" | |
11627 | #endif | |
11628 | char shl_load (); | |
11629 | int | |
11630 | main () | |
11631 | { | |
11632 | return shl_load (); | |
11633 | ; | |
11634 | return 0; | |
11635 | } | |
11636 | _ACEOF | |
11637 | if ac_fn_c_try_link "$LINENO"; then : | |
11638 | ac_cv_lib_dld_shl_load=yes | |
11639 | else | |
11640 | ac_cv_lib_dld_shl_load=no | |
11641 | fi | |
11642 | rm -f core conftest.err conftest.$ac_objext \ | |
11643 | conftest$ac_exeext conftest.$ac_ext | |
11644 | LIBS=$ac_check_lib_save_LIBS | |
11645 | fi | |
11646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11647 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11648 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
d50284c4 | 11649 | lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
b0322a85 CE |
11650 | else |
11651 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11652 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
d50284c4 | 11653 | lt_cv_dlopen=dlopen |
b0322a85 CE |
11654 | else |
11655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11656 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11657 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11658 | $as_echo_n "(cached) " >&6 | |
11659 | else | |
11660 | ac_check_lib_save_LIBS=$LIBS | |
11661 | LIBS="-ldl $LIBS" | |
11662 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11663 | /* end confdefs.h. */ | |
d9898ee8 | 11664 | |
b0322a85 CE |
11665 | /* Override any GCC internal prototype to avoid an error. |
11666 | Use char because int might match the return type of a GCC | |
11667 | builtin and then its argument prototype would still apply. */ | |
11668 | #ifdef __cplusplus | |
11669 | extern "C" | |
11670 | #endif | |
11671 | char dlopen (); | |
11672 | int | |
11673 | main () | |
11674 | { | |
11675 | return dlopen (); | |
11676 | ; | |
11677 | return 0; | |
11678 | } | |
11679 | _ACEOF | |
11680 | if ac_fn_c_try_link "$LINENO"; then : | |
11681 | ac_cv_lib_dl_dlopen=yes | |
11682 | else | |
11683 | ac_cv_lib_dl_dlopen=no | |
11684 | fi | |
11685 | rm -f core conftest.err conftest.$ac_objext \ | |
11686 | conftest$ac_exeext conftest.$ac_ext | |
11687 | LIBS=$ac_check_lib_save_LIBS | |
11688 | fi | |
11689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11690 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11691 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
d50284c4 | 11692 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
b0322a85 CE |
11693 | else |
11694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11695 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11696 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
11697 | $as_echo_n "(cached) " >&6 | |
11698 | else | |
11699 | ac_check_lib_save_LIBS=$LIBS | |
11700 | LIBS="-lsvld $LIBS" | |
11701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11702 | /* end confdefs.h. */ | |
d9898ee8 | 11703 | |
b0322a85 CE |
11704 | /* Override any GCC internal prototype to avoid an error. |
11705 | Use char because int might match the return type of a GCC | |
11706 | builtin and then its argument prototype would still apply. */ | |
11707 | #ifdef __cplusplus | |
11708 | extern "C" | |
11709 | #endif | |
11710 | char dlopen (); | |
11711 | int | |
11712 | main () | |
11713 | { | |
11714 | return dlopen (); | |
11715 | ; | |
11716 | return 0; | |
11717 | } | |
11718 | _ACEOF | |
11719 | if ac_fn_c_try_link "$LINENO"; then : | |
11720 | ac_cv_lib_svld_dlopen=yes | |
11721 | else | |
11722 | ac_cv_lib_svld_dlopen=no | |
11723 | fi | |
11724 | rm -f core conftest.err conftest.$ac_objext \ | |
11725 | conftest$ac_exeext conftest.$ac_ext | |
11726 | LIBS=$ac_check_lib_save_LIBS | |
11727 | fi | |
11728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11729 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11730 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
d50284c4 | 11731 | lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
b0322a85 CE |
11732 | else |
11733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11734 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11735 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11736 | $as_echo_n "(cached) " >&6 | |
11737 | else | |
11738 | ac_check_lib_save_LIBS=$LIBS | |
11739 | LIBS="-ldld $LIBS" | |
11740 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11741 | /* end confdefs.h. */ | |
d9898ee8 | 11742 | |
b0322a85 CE |
11743 | /* Override any GCC internal prototype to avoid an error. |
11744 | Use char because int might match the return type of a GCC | |
11745 | builtin and then its argument prototype would still apply. */ | |
11746 | #ifdef __cplusplus | |
11747 | extern "C" | |
11748 | #endif | |
11749 | char dld_link (); | |
11750 | int | |
11751 | main () | |
11752 | { | |
11753 | return dld_link (); | |
11754 | ; | |
11755 | return 0; | |
11756 | } | |
11757 | _ACEOF | |
11758 | if ac_fn_c_try_link "$LINENO"; then : | |
11759 | ac_cv_lib_dld_dld_link=yes | |
11760 | else | |
11761 | ac_cv_lib_dld_dld_link=no | |
11762 | fi | |
11763 | rm -f core conftest.err conftest.$ac_objext \ | |
11764 | conftest$ac_exeext conftest.$ac_ext | |
11765 | LIBS=$ac_check_lib_save_LIBS | |
11766 | fi | |
11767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11768 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11769 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
d50284c4 | 11770 | lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
8d138742 | 11771 | fi |
d9898ee8 | 11772 | |
d9898ee8 | 11773 | |
b0322a85 | 11774 | fi |
d9898ee8 | 11775 | |
d9898ee8 | 11776 | |
b0322a85 | 11777 | fi |
d9898ee8 | 11778 | |
d9898ee8 | 11779 | |
b0322a85 | 11780 | fi |
d9898ee8 | 11781 | |
d9898ee8 | 11782 | |
b0322a85 | 11783 | fi |
d9898ee8 | 11784 | |
d9898ee8 | 11785 | |
b0322a85 | 11786 | fi |
d9898ee8 | 11787 | |
b0322a85 CE |
11788 | ;; |
11789 | esac | |
d9898ee8 | 11790 | |
d50284c4 | 11791 | if test no = "$lt_cv_dlopen"; then |
b0322a85 | 11792 | enable_dlopen=no |
d50284c4 CE |
11793 | else |
11794 | enable_dlopen=yes | |
b0322a85 | 11795 | fi |
d9898ee8 | 11796 | |
b0322a85 CE |
11797 | case $lt_cv_dlopen in |
11798 | dlopen) | |
d50284c4 CE |
11799 | save_CPPFLAGS=$CPPFLAGS |
11800 | test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
d9898ee8 | 11801 | |
d50284c4 | 11802 | save_LDFLAGS=$LDFLAGS |
b0322a85 | 11803 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
d9898ee8 | 11804 | |
d50284c4 | 11805 | save_LIBS=$LIBS |
b0322a85 | 11806 | LIBS="$lt_cv_dlopen_libs $LIBS" |
d9898ee8 | 11807 | |
b0322a85 CE |
11808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11809 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11810 | if ${lt_cv_dlopen_self+:} false; then : | |
11811 | $as_echo_n "(cached) " >&6 | |
11812 | else | |
d50284c4 | 11813 | if test yes = "$cross_compiling"; then : |
b0322a85 CE |
11814 | lt_cv_dlopen_self=cross |
11815 | else | |
11816 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11817 | lt_status=$lt_dlunknown | |
11818 | cat > conftest.$ac_ext <<_LT_EOF | |
11819 | #line $LINENO "configure" | |
11820 | #include "confdefs.h" | |
d9898ee8 | 11821 | |
b0322a85 CE |
11822 | #if HAVE_DLFCN_H |
11823 | #include <dlfcn.h> | |
11824 | #endif | |
d9898ee8 | 11825 | |
b0322a85 | 11826 | #include <stdio.h> |
d9898ee8 | 11827 | |
b0322a85 CE |
11828 | #ifdef RTLD_GLOBAL |
11829 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11830 | #else | |
11831 | # ifdef DL_GLOBAL | |
11832 | # define LT_DLGLOBAL DL_GLOBAL | |
11833 | # else | |
11834 | # define LT_DLGLOBAL 0 | |
11835 | # endif | |
11836 | #endif | |
d9898ee8 | 11837 | |
b0322a85 CE |
11838 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11839 | find out it does not work in some platform. */ | |
11840 | #ifndef LT_DLLAZY_OR_NOW | |
11841 | # ifdef RTLD_LAZY | |
11842 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11843 | # else | |
11844 | # ifdef DL_LAZY | |
11845 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11846 | # else | |
11847 | # ifdef RTLD_NOW | |
11848 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11849 | # else | |
11850 | # ifdef DL_NOW | |
11851 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11852 | # else | |
11853 | # define LT_DLLAZY_OR_NOW 0 | |
11854 | # endif | |
11855 | # endif | |
11856 | # endif | |
11857 | # endif | |
11858 | #endif | |
d9898ee8 | 11859 | |
d50284c4 | 11860 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b0322a85 | 11861 | correspondingly for the symbols needed. */ |
d50284c4 | 11862 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b0322a85 CE |
11863 | int fnord () __attribute__((visibility("default"))); |
11864 | #endif | |
d9898ee8 | 11865 | |
b0322a85 CE |
11866 | int fnord () { return 42; } |
11867 | int main () | |
8d138742 | 11868 | { |
b0322a85 CE |
11869 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
11870 | int status = $lt_dlunknown; | |
d9898ee8 | 11871 | |
b0322a85 CE |
11872 | if (self) |
11873 | { | |
11874 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11875 | else | |
11876 | { | |
11877 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11878 | else puts (dlerror ()); | |
11879 | } | |
11880 | /* dlclose (self); */ | |
11881 | } | |
11882 | else | |
11883 | puts (dlerror ()); | |
11884 | ||
11885 | return status; | |
8d138742 | 11886 | } |
b0322a85 CE |
11887 | _LT_EOF |
11888 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11889 | (eval $ac_link) 2>&5 | |
8d138742 | 11890 | ac_status=$? |
b0322a85 | 11891 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
d50284c4 | 11892 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
b0322a85 CE |
11893 | (./conftest; exit; ) >&5 2>/dev/null |
11894 | lt_status=$? | |
11895 | case x$lt_status in | |
11896 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11897 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11898 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11899 | esac | |
11900 | else : | |
11901 | # compilation failed | |
11902 | lt_cv_dlopen_self=no | |
11903 | fi | |
8d138742 | 11904 | fi |
b0322a85 | 11905 | rm -fr conftest* |
d9898ee8 | 11906 | |
d9898ee8 | 11907 | |
8d138742 | 11908 | fi |
b0322a85 CE |
11909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11910 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
d9898ee8 | 11911 | |
d50284c4 | 11912 | if test yes = "$lt_cv_dlopen_self"; then |
b0322a85 CE |
11913 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
11914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11915 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11916 | if ${lt_cv_dlopen_self_static+:} false; then : | |
11917 | $as_echo_n "(cached) " >&6 | |
8d138742 | 11918 | else |
d50284c4 | 11919 | if test yes = "$cross_compiling"; then : |
b0322a85 CE |
11920 | lt_cv_dlopen_self_static=cross |
11921 | else | |
11922 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11923 | lt_status=$lt_dlunknown | |
11924 | cat > conftest.$ac_ext <<_LT_EOF | |
11925 | #line $LINENO "configure" | |
11926 | #include "confdefs.h" | |
d9898ee8 | 11927 | |
b0322a85 CE |
11928 | #if HAVE_DLFCN_H |
11929 | #include <dlfcn.h> | |
11930 | #endif | |
d9898ee8 | 11931 | |
b0322a85 CE |
11932 | #include <stdio.h> |
11933 | ||
11934 | #ifdef RTLD_GLOBAL | |
11935 | # define LT_DLGLOBAL RTLD_GLOBAL | |
8d138742 | 11936 | #else |
b0322a85 CE |
11937 | # ifdef DL_GLOBAL |
11938 | # define LT_DLGLOBAL DL_GLOBAL | |
11939 | # else | |
11940 | # define LT_DLGLOBAL 0 | |
11941 | # endif | |
8d138742 | 11942 | #endif |
d9898ee8 | 11943 | |
b0322a85 CE |
11944 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
11945 | find out it does not work in some platform. */ | |
11946 | #ifndef LT_DLLAZY_OR_NOW | |
11947 | # ifdef RTLD_LAZY | |
11948 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11949 | # else | |
11950 | # ifdef DL_LAZY | |
11951 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11952 | # else | |
11953 | # ifdef RTLD_NOW | |
11954 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11955 | # else | |
11956 | # ifdef DL_NOW | |
11957 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11958 | # else | |
11959 | # define LT_DLLAZY_OR_NOW 0 | |
11960 | # endif | |
11961 | # endif | |
11962 | # endif | |
11963 | # endif | |
11964 | #endif | |
d9898ee8 | 11965 | |
d50284c4 | 11966 | /* When -fvisibility=hidden is used, assume the code has been annotated |
b0322a85 | 11967 | correspondingly for the symbols needed. */ |
d50284c4 | 11968 | #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
b0322a85 CE |
11969 | int fnord () __attribute__((visibility("default"))); |
11970 | #endif | |
d9898ee8 | 11971 | |
b0322a85 CE |
11972 | int fnord () { return 42; } |
11973 | int main () | |
11974 | { | |
11975 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11976 | int status = $lt_dlunknown; | |
d9898ee8 | 11977 | |
b0322a85 CE |
11978 | if (self) |
11979 | { | |
11980 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11981 | else | |
11982 | { | |
11983 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11984 | else puts (dlerror ()); | |
11985 | } | |
11986 | /* dlclose (self); */ | |
11987 | } | |
11988 | else | |
11989 | puts (dlerror ()); | |
11990 | ||
11991 | return status; | |
11992 | } | |
11993 | _LT_EOF | |
11994 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11995 | (eval $ac_link) 2>&5 | |
11996 | ac_status=$? | |
11997 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d50284c4 | 11998 | test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
b0322a85 CE |
11999 | (./conftest; exit; ) >&5 2>/dev/null |
12000 | lt_status=$? | |
12001 | case x$lt_status in | |
12002 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12003 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12004 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12005 | esac | |
12006 | else : | |
12007 | # compilation failed | |
12008 | lt_cv_dlopen_self_static=no | |
12009 | fi | |
8d138742 | 12010 | fi |
b0322a85 | 12011 | rm -fr conftest* |
d9898ee8 | 12012 | |
12013 | ||
d9898ee8 | 12014 | fi |
b0322a85 CE |
12015 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
12016 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12017 | fi | |
d9898ee8 | 12018 | |
d50284c4 CE |
12019 | CPPFLAGS=$save_CPPFLAGS |
12020 | LDFLAGS=$save_LDFLAGS | |
12021 | LIBS=$save_LIBS | |
b0322a85 CE |
12022 | ;; |
12023 | esac | |
d9898ee8 | 12024 | |
b0322a85 CE |
12025 | case $lt_cv_dlopen_self in |
12026 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12027 | *) enable_dlopen_self=unknown ;; | |
12028 | esac | |
d9898ee8 | 12029 | |
b0322a85 CE |
12030 | case $lt_cv_dlopen_self_static in |
12031 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12032 | *) enable_dlopen_self_static=unknown ;; | |
12033 | esac | |
8d138742 | 12034 | fi |
d9898ee8 | 12035 | |
d9898ee8 | 12036 | |
d9898ee8 | 12037 | |
d9898ee8 | 12038 | |
d9898ee8 | 12039 | |
12040 | ||
12041 | ||
d9898ee8 | 12042 | |
d9898ee8 | 12043 | |
12044 | ||
12045 | ||
12046 | ||
12047 | ||
12048 | ||
12049 | ||
12050 | ||
12051 | ||
b0322a85 CE |
12052 | striplib= |
12053 | old_striplib= | |
12054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12055 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12056 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12057 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12058 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12060 | $as_echo "yes" >&6; } | |
12061 | else | |
12062 | # FIXME - insert some real tests, host_os isn't really good enough | |
12063 | case $host_os in | |
12064 | darwin*) | |
d50284c4 | 12065 | if test -n "$STRIP"; then |
b0322a85 CE |
12066 | striplib="$STRIP -x" |
12067 | old_striplib="$STRIP -S" | |
12068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12069 | $as_echo "yes" >&6; } | |
12070 | else | |
12071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12072 | $as_echo "no" >&6; } | |
12073 | fi | |
12074 | ;; | |
12075 | *) | |
12076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12077 | $as_echo "no" >&6; } | |
12078 | ;; | |
12079 | esac | |
12080 | fi | |
d9898ee8 | 12081 | |
12082 | ||
12083 | ||
12084 | ||
12085 | ||
12086 | ||
12087 | ||
12088 | ||
12089 | ||
12090 | ||
12091 | ||
12092 | ||
d50284c4 | 12093 | # Report what library types will actually be built |
b0322a85 CE |
12094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
12095 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12097 | $as_echo "$can_build_shared" >&6; } | |
d9898ee8 | 12098 | |
b0322a85 CE |
12099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
12100 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
d50284c4 | 12101 | test no = "$can_build_shared" && enable_shared=no |
d9898ee8 | 12102 | |
b0322a85 CE |
12103 | # On AIX, shared libraries and static libraries use the same namespace, and |
12104 | # are all built from PIC. | |
12105 | case $host_os in | |
12106 | aix3*) | |
d50284c4 | 12107 | test yes = "$enable_shared" && enable_static=no |
b0322a85 CE |
12108 | if test -n "$RANLIB"; then |
12109 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12110 | postinstall_cmds='$RANLIB $lib' | |
12111 | fi | |
12112 | ;; | |
12113 | ||
12114 | aix[4-9]*) | |
d50284c4 CE |
12115 | if test ia64 != "$host_cpu"; then |
12116 | case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
12117 | yes,aix,yes) ;; # shared object as lib.so file only | |
12118 | yes,svr4,*) ;; # shared object as lib.so archive member only | |
12119 | yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
12120 | esac | |
b0322a85 CE |
12121 | fi |
12122 | ;; | |
12123 | esac | |
12124 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12125 | $as_echo "$enable_shared" >&6; } | |
12126 | ||
12127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12128 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
12129 | # Make sure either enable_shared or enable_static is yes. | |
d50284c4 | 12130 | test yes = "$enable_shared" || enable_static=yes |
b0322a85 CE |
12131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
12132 | $as_echo "$enable_static" >&6; } | |
d9898ee8 | 12133 | |
d9898ee8 | 12134 | |
d9898ee8 | 12135 | |
d9898ee8 | 12136 | |
d9898ee8 | 12137 | fi |
b0322a85 CE |
12138 | ac_ext=c |
12139 | ac_cpp='$CPP $CPPFLAGS' | |
12140 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12141 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12142 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12143 | ||
d50284c4 | 12144 | CC=$lt_save_CC |
b0322a85 CE |
12145 | |
12146 | ||
dd184caf | 12147 | |
d9898ee8 | 12148 | |
d9898ee8 | 12149 | |
8d138742 | 12150 | |
8d138742 | 12151 | |
8d138742 | 12152 | |
8d138742 | 12153 | |
d9898ee8 | 12154 | |
d9898ee8 | 12155 | |
d9898ee8 | 12156 | |
d9898ee8 | 12157 | |
b0322a85 CE |
12158 | |
12159 | ||
12160 | ac_config_commands="$ac_config_commands libtool" | |
12161 | ||
12162 | ||
12163 | ||
12164 | ||
12165 | # Only expand once: | |
12166 | ||
12167 | ||
12168 | ||
12169 | if test "$GCC" = yes | |
12170 | then | |
12171 | CFLAGS="-Wall $CFLAGS" | |
d9898ee8 | 12172 | fi |
12173 | ||
b0322a85 CE |
12174 | CFLAGS="$CFLAGS -I$srcdir/.. -I.." |
12175 | ||
12176 | ||
12177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
12178 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
12179 | if ${ac_cv_header_stdc+:} false; then : | |
12180 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 12181 | else |
b0322a85 | 12182 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 12183 | /* end confdefs.h. */ |
dd184caf | 12184 | #include <stdlib.h> |
b0322a85 CE |
12185 | #include <stdarg.h> |
12186 | #include <string.h> | |
12187 | #include <float.h> | |
12188 | ||
d9898ee8 | 12189 | int |
12190 | main () | |
12191 | { | |
8d138742 | 12192 | |
8d138742 | 12193 | ; |
dd184caf | 12194 | return 0; |
d9898ee8 | 12195 | } |
12196 | _ACEOF | |
b0322a85 CE |
12197 | if ac_fn_c_try_compile "$LINENO"; then : |
12198 | ac_cv_header_stdc=yes | |
d9898ee8 | 12199 | else |
b0322a85 | 12200 | ac_cv_header_stdc=no |
d9898ee8 | 12201 | fi |
b0322a85 | 12202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 | 12203 | |
b0322a85 CE |
12204 | if test $ac_cv_header_stdc = yes; then |
12205 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12207 | /* end confdefs.h. */ | |
12208 | #include <string.h> | |
d9898ee8 | 12209 | |
8d138742 | 12210 | _ACEOF |
b0322a85 CE |
12211 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12212 | $EGREP "memchr" >/dev/null 2>&1; then : | |
d9898ee8 | 12213 | |
d9898ee8 | 12214 | else |
b0322a85 CE |
12215 | ac_cv_header_stdc=no |
12216 | fi | |
12217 | rm -f conftest* | |
12218 | ||
12219 | fi | |
12220 | ||
12221 | if test $ac_cv_header_stdc = yes; then | |
12222 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d9898ee8 | 12224 | /* end confdefs.h. */ |
b0322a85 | 12225 | #include <stdlib.h> |
8d138742 | 12226 | |
d9898ee8 | 12227 | _ACEOF |
b0322a85 CE |
12228 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
12229 | $EGREP "free" >/dev/null 2>&1; then : | |
12230 | ||
12231 | else | |
12232 | ac_cv_header_stdc=no | |
12233 | fi | |
12234 | rm -f conftest* | |
12235 | ||
12236 | fi | |
12237 | ||
12238 | if test $ac_cv_header_stdc = yes; then | |
12239 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12240 | if test "$cross_compiling" = yes; then : | |
12241 | : | |
12242 | else | |
12243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d9898ee8 | 12244 | /* end confdefs.h. */ |
b0322a85 CE |
12245 | #include <ctype.h> |
12246 | #include <stdlib.h> | |
12247 | #if ((' ' & 0x0FF) == 0x020) | |
12248 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12249 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12250 | #else | |
12251 | # define ISLOWER(c) \ | |
12252 | (('a' <= (c) && (c) <= 'i') \ | |
12253 | || ('j' <= (c) && (c) <= 'r') \ | |
12254 | || ('s' <= (c) && (c) <= 'z')) | |
12255 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
12256 | #endif | |
12257 | ||
12258 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8d138742 CE |
12259 | int |
12260 | main () | |
12261 | { | |
b0322a85 CE |
12262 | int i; |
12263 | for (i = 0; i < 256; i++) | |
12264 | if (XOR (islower (i), ISLOWER (i)) | |
12265 | || toupper (i) != TOUPPER (i)) | |
12266 | return 2; | |
8d138742 CE |
12267 | return 0; |
12268 | } | |
d9898ee8 | 12269 | _ACEOF |
b0322a85 CE |
12270 | if ac_fn_c_try_run "$LINENO"; then : |
12271 | ||
d9898ee8 | 12272 | else |
b0322a85 CE |
12273 | ac_cv_header_stdc=no |
12274 | fi | |
12275 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
12276 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
12277 | fi | |
12278 | ||
12279 | fi | |
12280 | fi | |
12281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
12282 | $as_echo "$ac_cv_header_stdc" >&6; } | |
12283 | if test $ac_cv_header_stdc = yes; then | |
12284 | ||
12285 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
d9898ee8 | 12286 | |
d9898ee8 | 12287 | fi |
dd184caf | 12288 | |
d9898ee8 | 12289 | |
b0322a85 CE |
12290 | for ac_header in sys/types.h |
12291 | do : | |
12292 | ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" | |
12293 | if test "x$ac_cv_header_sys_types_h" = xyes; then : | |
12294 | cat >>confdefs.h <<_ACEOF | |
12295 | #define HAVE_SYS_TYPES_H 1 | |
d9898ee8 | 12296 | _ACEOF |
b0322a85 CE |
12297 | |
12298 | fi | |
12299 | ||
12300 | done | |
12301 | ||
12302 | ||
12303 | ||
12304 | ||
12305 | # Check whether --with-int32 was given. | |
12306 | if test "${with_int32+set}" = set; then : | |
12307 | withval=$with_int32; int32="$withval" | |
12308 | else | |
12309 | ||
12310 | ||
12311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5 | |
12312 | $as_echo_n "checking for uint32_t... " >&6; } | |
12313 | ||
12314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 12315 | /* end confdefs.h. */ |
b0322a85 CE |
12316 | |
12317 | #if HAVE_SYS_TYPES_H | |
12318 | #include <sys/types.h> | |
12319 | #endif | |
12320 | ||
8d138742 CE |
12321 | int |
12322 | main () | |
12323 | { | |
b0322a85 CE |
12324 | |
12325 | uint32_t i=0; | |
d9898ee8 | 12326 | |
8d138742 CE |
12327 | ; |
12328 | return 0; | |
12329 | } | |
12330 | _ACEOF | |
b0322a85 CE |
12331 | if ac_fn_c_try_compile "$LINENO"; then : |
12332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12333 | $as_echo "yes" >&6; } ; int32="uint32_t" | |
12334 | else | |
12335 | ||
12336 | ||
12337 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12338 | $as_echo "no" >&6; } | |
12339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int_32_t" >&5 | |
12340 | $as_echo_n "checking for u_int_32_t... " >&6; } | |
12341 | ||
12342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d9898ee8 | 12343 | /* end confdefs.h. */ |
b0322a85 CE |
12344 | |
12345 | #if HAVE_SYS_TYPES_H | |
12346 | #include <sys/types.h> | |
12347 | #endif | |
12348 | ||
d9898ee8 | 12349 | int |
12350 | main () | |
12351 | { | |
b0322a85 CE |
12352 | |
12353 | u_int32_t i=0; | |
d9898ee8 | 12354 | |
12355 | ; | |
12356 | return 0; | |
12357 | } | |
12358 | _ACEOF | |
b0322a85 CE |
12359 | if ac_fn_c_try_compile "$LINENO"; then : |
12360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12361 | $as_echo "yes" >&6; }; int32="u_int32_t" | |
d9898ee8 | 12362 | else |
d9898ee8 | 12363 | |
12364 | ||
b0322a85 CE |
12365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12366 | $as_echo "no" >&6; } | |
12367 | ||
12368 | # The cast to long int works around a bug in the HP C Compiler | |
12369 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12370 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12371 | # This bug is HP SR number 8606223364. | |
12372 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5 | |
12373 | $as_echo_n "checking size of unsigned... " >&6; } | |
12374 | if ${ac_cv_sizeof_unsigned+:} false; then : | |
12375 | $as_echo_n "(cached) " >&6 | |
8d138742 | 12376 | else |
b0322a85 | 12377 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then : |
d9898ee8 | 12378 | |
b0322a85 CE |
12379 | else |
12380 | if test "$ac_cv_type_unsigned" = yes; then | |
12381 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12382 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12383 | as_fn_error 77 "cannot compute sizeof (unsigned) | |
12384 | See \`config.log' for more details" "$LINENO" 5; } | |
12385 | else | |
12386 | ac_cv_sizeof_unsigned=0 | |
12387 | fi | |
8d138742 | 12388 | fi |
d9898ee8 | 12389 | |
8d138742 | 12390 | fi |
b0322a85 CE |
12391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5 |
12392 | $as_echo "$ac_cv_sizeof_unsigned" >&6; } | |
8d138742 | 12393 | |
d9898ee8 | 12394 | |
b0322a85 CE |
12395 | |
12396 | cat >>confdefs.h <<_ACEOF | |
12397 | #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned | |
d9898ee8 | 12398 | _ACEOF |
d9898ee8 | 12399 | |
12400 | ||
b0322a85 CE |
12401 | if test "$ac_cv_sizeof_unsigned" != 4 |
12402 | then | |
12403 | # The cast to long int works around a bug in the HP C Compiler | |
12404 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12405 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12406 | # This bug is HP SR number 8606223364. | |
12407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 | |
12408 | $as_echo_n "checking size of unsigned long... " >&6; } | |
12409 | if ${ac_cv_sizeof_unsigned_long+:} false; then : | |
12410 | $as_echo_n "(cached) " >&6 | |
12411 | else | |
12412 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : | |
12413 | ||
12414 | else | |
12415 | if test "$ac_cv_type_unsigned_long" = yes; then | |
12416 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8d138742 | 12417 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
12418 | as_fn_error 77 "cannot compute sizeof (unsigned long) |
12419 | See \`config.log' for more details" "$LINENO" 5; } | |
8d138742 CE |
12420 | else |
12421 | ac_cv_sizeof_unsigned_long=0 | |
b0322a85 CE |
12422 | fi |
12423 | fi | |
8d138742 | 12424 | |
b0322a85 CE |
12425 | fi |
12426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 | |
12427 | $as_echo "$ac_cv_sizeof_unsigned_long" >&6; } | |
8d138742 | 12428 | |
b0322a85 CE |
12429 | |
12430 | ||
12431 | cat >>confdefs.h <<_ACEOF | |
12432 | #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long | |
d9898ee8 | 12433 | _ACEOF |
b0322a85 CE |
12434 | |
12435 | ||
12436 | if test "$ac_cv_sizeof_unsigned_long" != 4 | |
12437 | then | |
12438 | # The cast to long int works around a bug in the HP C Compiler | |
12439 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12440 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12441 | # This bug is HP SR number 8606223364. | |
12442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 | |
12443 | $as_echo_n "checking size of unsigned short... " >&6; } | |
12444 | if ${ac_cv_sizeof_unsigned_short+:} false; then : | |
12445 | $as_echo_n "(cached) " >&6 | |
d9898ee8 | 12446 | else |
b0322a85 | 12447 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : |
d9898ee8 | 12448 | |
b0322a85 CE |
12449 | else |
12450 | if test "$ac_cv_type_unsigned_short" = yes; then | |
12451 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8d138742 | 12452 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
b0322a85 CE |
12453 | as_fn_error 77 "cannot compute sizeof (unsigned short) |
12454 | See \`config.log' for more details" "$LINENO" 5; } | |
8d138742 | 12455 | else |
b0322a85 | 12456 | ac_cv_sizeof_unsigned_short=0 |
8d138742 | 12457 | fi |
d9898ee8 | 12458 | fi |
b0322a85 | 12459 | |
8d138742 | 12460 | fi |
b0322a85 CE |
12461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 |
12462 | $as_echo "$ac_cv_sizeof_unsigned_short" >&6; } | |
12463 | ||
12464 | ||
12465 | ||
12466 | cat >>confdefs.h <<_ACEOF | |
12467 | #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short | |
12468 | _ACEOF | |
12469 | ||
12470 | ||
12471 | if test "$ac_cv_sizeof_unsigned_short" != 4 | |
12472 | then | |
12473 | as_fn_error $? "--with-int32 option is required" "$LINENO" 5 | |
12474 | fi | |
12475 | int32="unsigned short" | |
12476 | fi | |
12477 | int32="unsigned long" | |
12478 | else | |
12479 | int32="unsigned" | |
12480 | fi | |
12481 | ||
12482 | fi | |
12483 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12484 | ||
12485 | fi | |
12486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12487 | ||
12488 | ||
d9898ee8 | 12489 | fi |
8d138742 | 12490 | |
b0322a85 | 12491 | UINT32="$int32" |
8d138742 CE |
12492 | |
12493 | ||
12494 | cat >>confdefs.h <<_ACEOF | |
b0322a85 | 12495 | #define MD5_WORD $UINT32 |
8d138742 | 12496 | _ACEOF |
d9898ee8 | 12497 | |
8d138742 | 12498 | |
b0322a85 CE |
12499 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
12500 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
12501 | if ${ac_cv_c_const+:} false; then : | |
8d138742 | 12502 | $as_echo_n "(cached) " >&6 |
d9898ee8 | 12503 | else |
b0322a85 | 12504 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d9898ee8 | 12505 | /* end confdefs.h. */ |
d9898ee8 | 12506 | |
d9898ee8 | 12507 | int |
12508 | main () | |
12509 | { | |
d9898ee8 | 12510 | |
b0322a85 CE |
12511 | #ifndef __cplusplus |
12512 | /* Ultrix mips cc rejects this sort of thing. */ | |
12513 | typedef int charset[2]; | |
12514 | const charset cs = { 0, 0 }; | |
12515 | /* SunOS 4.1.1 cc rejects this. */ | |
12516 | char const *const *pcpcc; | |
12517 | char **ppc; | |
12518 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
12519 | struct point {int x, y;}; | |
12520 | static struct point const zero = {0,0}; | |
12521 | /* AIX XL C 1.02.0.0 rejects this. | |
12522 | It does not let you subtract one const X* pointer from another in | |
12523 | an arm of an if-expression whose if-part is not a constant | |
12524 | expression */ | |
12525 | const char *g = "string"; | |
12526 | pcpcc = &g + (g ? g-g : 0); | |
12527 | /* HPUX 7.0 cc rejects these. */ | |
12528 | ++pcpcc; | |
12529 | ppc = (char**) pcpcc; | |
12530 | pcpcc = (char const *const *) ppc; | |
12531 | { /* SCO 3.2v4 cc rejects this sort of thing. */ | |
12532 | char tx; | |
12533 | char *t = &tx; | |
12534 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
d9898ee8 | 12535 | |
b0322a85 CE |
12536 | *t++ = 0; |
12537 | if (s) return 0; | |
12538 | } | |
12539 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
12540 | int x[] = {25, 17}; | |
12541 | const int *foo = &x[0]; | |
12542 | ++foo; | |
12543 | } | |
12544 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
12545 | typedef const int *iptr; | |
12546 | iptr p = 0; | |
12547 | ++p; | |
12548 | } | |
12549 | { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying | |
12550 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
12551 | struct s { int j; const int *ap[3]; } bx; | |
12552 | struct s *b = &bx; b->j = 5; | |
12553 | } | |
12554 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
12555 | const int foo = 10; | |
12556 | if (!foo) return 0; | |
12557 | } | |
12558 | return !cs[0] && !zero.x; | |
12559 | #endif | |
d9898ee8 | 12560 | |
12561 | ; | |
12562 | return 0; | |
12563 | } | |
12564 | _ACEOF | |
b0322a85 CE |
12565 | if ac_fn_c_try_compile "$LINENO"; then : |
12566 | ac_cv_c_const=yes | |
d9898ee8 | 12567 | else |
b0322a85 | 12568 | ac_cv_c_const=no |
d9898ee8 | 12569 | fi |
dd184caf | 12570 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0322a85 CE |
12571 | fi |
12572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
12573 | $as_echo "$ac_cv_c_const" >&6; } | |
12574 | if test $ac_cv_c_const = no; then | |
12575 | ||
12576 | $as_echo "#define const /**/" >>confdefs.h | |
d9898ee8 | 12577 | |
d9898ee8 | 12578 | fi |
dd184caf | 12579 | |
b0322a85 CE |
12580 | # Check whether --enable-largefile was given. |
12581 | if test "${enable_largefile+set}" = set; then : | |
12582 | enableval=$enable_largefile; | |
d9898ee8 | 12583 | fi |
dd184caf | 12584 | |
b0322a85 CE |
12585 | if test "$enable_largefile" != no; then |
12586 | ||
12587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
12588 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
12589 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
12590 | $as_echo_n "(cached) " >&6 | |
12591 | else | |
12592 | ac_cv_sys_largefile_CC=no | |
12593 | if test "$GCC" != yes; then | |
12594 | ac_save_CC=$CC | |
12595 | while :; do | |
12596 | # IRIX 6.2 and later do not support large files by default, | |
12597 | # so use the C compiler's -n32 option if that helps. | |
12598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d9898ee8 | 12599 | /* end confdefs.h. */ |
b0322a85 CE |
12600 | #include <sys/types.h> |
12601 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12602 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12603 | since some C++ compilers masquerading as C compilers | |
12604 | incorrectly reject 9223372036854775807. */ | |
12605 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12606 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12607 | && LARGE_OFF_T % 2147483647 == 1) | |
12608 | ? 1 : -1]; | |
d9898ee8 | 12609 | int |
12610 | main () | |
12611 | { | |
d9898ee8 | 12612 | |
12613 | ; | |
12614 | return 0; | |
12615 | } | |
12616 | _ACEOF | |
b0322a85 CE |
12617 | if ac_fn_c_try_compile "$LINENO"; then : |
12618 | break | |
8d138742 | 12619 | fi |
b0322a85 CE |
12620 | rm -f core conftest.err conftest.$ac_objext |
12621 | CC="$CC -n32" | |
12622 | if ac_fn_c_try_compile "$LINENO"; then : | |
12623 | ac_cv_sys_largefile_CC=' -n32'; break | |
12624 | fi | |
12625 | rm -f core conftest.err conftest.$ac_objext | |
12626 | break | |
12627 | done | |
12628 | CC=$ac_save_CC | |
12629 | rm -f conftest.$ac_ext | |
12630 | fi | |
12631 | fi | |
12632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
12633 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
12634 | if test "$ac_cv_sys_largefile_CC" != no; then | |
12635 | CC=$CC$ac_cv_sys_largefile_CC | |
12636 | fi | |
8d138742 | 12637 | |
b0322a85 CE |
12638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
12639 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
12640 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
12641 | $as_echo_n "(cached) " >&6 | |
8d138742 | 12642 | else |
b0322a85 CE |
12643 | while :; do |
12644 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 12645 | /* end confdefs.h. */ |
b0322a85 CE |
12646 | #include <sys/types.h> |
12647 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12648 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12649 | since some C++ compilers masquerading as C compilers | |
12650 | incorrectly reject 9223372036854775807. */ | |
12651 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12652 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12653 | && LARGE_OFF_T % 2147483647 == 1) | |
12654 | ? 1 : -1]; | |
8d138742 CE |
12655 | int |
12656 | main () | |
12657 | { | |
12658 | ||
8d138742 CE |
12659 | ; |
12660 | return 0; | |
12661 | } | |
12662 | _ACEOF | |
b0322a85 CE |
12663 | if ac_fn_c_try_compile "$LINENO"; then : |
12664 | ac_cv_sys_file_offset_bits=no; break | |
8d138742 | 12665 | fi |
8d138742 | 12666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0322a85 CE |
12667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12668 | /* end confdefs.h. */ | |
12669 | #define _FILE_OFFSET_BITS 64 | |
12670 | #include <sys/types.h> | |
12671 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12672 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12673 | since some C++ compilers masquerading as C compilers | |
12674 | incorrectly reject 9223372036854775807. */ | |
12675 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12676 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12677 | && LARGE_OFF_T % 2147483647 == 1) | |
12678 | ? 1 : -1]; | |
12679 | int | |
12680 | main () | |
12681 | { | |
8d138742 | 12682 | |
b0322a85 CE |
12683 | ; |
12684 | return 0; | |
12685 | } | |
12686 | _ACEOF | |
12687 | if ac_fn_c_try_compile "$LINENO"; then : | |
12688 | ac_cv_sys_file_offset_bits=64; break | |
8d138742 | 12689 | fi |
8d138742 | 12690 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0322a85 CE |
12691 | ac_cv_sys_file_offset_bits=unknown |
12692 | break | |
12693 | done | |
8d138742 | 12694 | fi |
b0322a85 CE |
12695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
12696 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
12697 | case $ac_cv_sys_file_offset_bits in #( | |
12698 | no | unknown) ;; | |
12699 | *) | |
8d138742 | 12700 | cat >>confdefs.h <<_ACEOF |
b0322a85 | 12701 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
8d138742 | 12702 | _ACEOF |
b0322a85 CE |
12703 | ;; |
12704 | esac | |
12705 | rm -rf conftest* | |
12706 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
12707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
12708 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
12709 | if ${ac_cv_sys_large_files+:} false; then : | |
8d138742 CE |
12710 | $as_echo_n "(cached) " >&6 |
12711 | else | |
b0322a85 CE |
12712 | while :; do |
12713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8d138742 | 12714 | /* end confdefs.h. */ |
b0322a85 CE |
12715 | #include <sys/types.h> |
12716 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12717 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12718 | since some C++ compilers masquerading as C compilers | |
12719 | incorrectly reject 9223372036854775807. */ | |
12720 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12721 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12722 | && LARGE_OFF_T % 2147483647 == 1) | |
12723 | ? 1 : -1]; | |
8d138742 CE |
12724 | int |
12725 | main () | |
12726 | { | |
8d138742 CE |
12727 | |
12728 | ; | |
12729 | return 0; | |
12730 | } | |
12731 | _ACEOF | |
b0322a85 CE |
12732 | if ac_fn_c_try_compile "$LINENO"; then : |
12733 | ac_cv_sys_large_files=no; break | |
d9898ee8 | 12734 | fi |
b0322a85 CE |
12735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
12736 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12737 | /* end confdefs.h. */ | |
12738 | #define _LARGE_FILES 1 | |
12739 | #include <sys/types.h> | |
12740 | /* Check that off_t can represent 2**63 - 1 correctly. | |
12741 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
12742 | since some C++ compilers masquerading as C compilers | |
12743 | incorrectly reject 9223372036854775807. */ | |
12744 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
12745 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
12746 | && LARGE_OFF_T % 2147483647 == 1) | |
12747 | ? 1 : -1]; | |
12748 | int | |
12749 | main () | |
12750 | { | |
dd184caf | 12751 | |
b0322a85 CE |
12752 | ; |
12753 | return 0; | |
12754 | } | |
12755 | _ACEOF | |
12756 | if ac_fn_c_try_compile "$LINENO"; then : | |
12757 | ac_cv_sys_large_files=1; break | |
12758 | fi | |
dd184caf | 12759 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b0322a85 CE |
12760 | ac_cv_sys_large_files=unknown |
12761 | break | |
12762 | done | |
8d138742 | 12763 | fi |
b0322a85 CE |
12764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
12765 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
12766 | case $ac_cv_sys_large_files in #( | |
12767 | no | unknown) ;; | |
12768 | *) | |
12769 | cat >>confdefs.h <<_ACEOF | |
12770 | #define _LARGE_FILES $ac_cv_sys_large_files | |
d9898ee8 | 12771 | _ACEOF |
b0322a85 CE |
12772 | ;; |
12773 | esac | |
12774 | rm -rf conftest* | |
12775 | fi | |
12776 | ||
d9898ee8 | 12777 | |
8d138742 CE |
12778 | fi |
12779 | ||
12780 | ||
12781 | ||
12782 | ac_config_files="$ac_config_files Makefile" | |
12783 | ||
12784 | cat >confcache <<\_ACEOF | |
12785 | # This file is a shell script that caches the results of configure | |
12786 | # tests run on this system so they can be shared between configure | |
12787 | # scripts and configure runs, see configure's option --config-cache. | |
12788 | # It is not useful on other systems. If it contains results you don't | |
12789 | # want to keep, you may remove or edit it. | |
12790 | # | |
12791 | # config.status only pays attention to the cache file if you give it | |
12792 | # the --recheck option to rerun configure. | |
12793 | # | |
12794 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
12795 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
12796 | # following values. | |
12797 | ||
12798 | _ACEOF | |
12799 | ||
12800 | # The following way of writing the cache mishandles newlines in values, | |
12801 | # but we know of no workaround that is simple, portable, and efficient. | |
12802 | # So, we kill variables containing newlines. | |
12803 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
12804 | # and sets the high bit in the cache file unless we assign to the vars. | |
12805 | ( | |
12806 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
12807 | eval ac_val=\$$ac_var | |
12808 | case $ac_val in #( | |
12809 | *${as_nl}*) | |
12810 | case $ac_var in #( | |
b0322a85 | 12811 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
8d138742 CE |
12812 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
12813 | esac | |
12814 | case $ac_var in #( | |
12815 | _ | IFS | as_nl) ;; #( | |
12816 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
b0322a85 | 12817 | *) { eval $ac_var=; unset $ac_var;} ;; |
8d138742 CE |
12818 | esac ;; |
12819 | esac | |
12820 | done | |
12821 | ||
12822 | (set) 2>&1 | | |
12823 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
12824 | *${as_nl}ac_space=\ *) | |
b0322a85 CE |
12825 | # `set' does not quote correctly, so add quotes: double-quote |
12826 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
8d138742 CE |
12827 | sed -n \ |
12828 | "s/'/'\\\\''/g; | |
12829 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
12830 | ;; #( | |
12831 | *) | |
12832 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
12833 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
12834 | ;; | |
12835 | esac | | |
12836 | sort | |
12837 | ) | | |
12838 | sed ' | |
12839 | /^ac_cv_env_/b end | |
12840 | t clear | |
12841 | :clear | |
12842 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
12843 | t end | |
12844 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
12845 | :end' >>confcache | |
12846 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
12847 | if test -w "$cache_file"; then | |
b0322a85 CE |
12848 | if test "x$cache_file" != "x/dev/null"; then |
12849 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
8d138742 | 12850 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
b0322a85 CE |
12851 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
12852 | cat confcache >"$cache_file" | |
12853 | else | |
12854 | case $cache_file in #( | |
12855 | */* | ?:*) | |
12856 | mv -f confcache "$cache_file"$$ && | |
12857 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
12858 | *) | |
12859 | mv -f confcache "$cache_file" ;; | |
12860 | esac | |
12861 | fi | |
12862 | fi | |
d9898ee8 | 12863 | else |
b0322a85 | 12864 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
8d138742 CE |
12865 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
12866 | fi | |
12867 | fi | |
12868 | rm -f confcache | |
d9898ee8 | 12869 | |
8d138742 CE |
12870 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
12871 | # Let make expand exec_prefix. | |
12872 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
12873 | ||
12874 | DEFS=-DHAVE_CONFIG_H | |
12875 | ||
12876 | ac_libobjs= | |
12877 | ac_ltlibobjs= | |
d50284c4 | 12878 | U= |
8d138742 CE |
12879 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
12880 | # 1. Remove the extension, and $U if already installed. | |
12881 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
12882 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
12883 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
12884 | # will be set to the directory where LIBOBJS objects are built. | |
b0322a85 CE |
12885 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
12886 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
8d138742 CE |
12887 | done |
12888 | LIBOBJS=$ac_libobjs | |
12889 | ||
12890 | LTLIBOBJS=$ac_ltlibobjs | |
12891 | ||
12892 | ||
b0322a85 CE |
12893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
12894 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
12895 | if test -n "$am_sleep_pid"; then | |
12896 | # Hide warnings about reused PIDs. | |
12897 | wait $am_sleep_pid 2>/dev/null | |
12898 | fi | |
12899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
12900 | $as_echo "done" >&6; } | |
8d138742 CE |
12901 | if test -n "$EXEEXT"; then |
12902 | am__EXEEXT_TRUE= | |
12903 | am__EXEEXT_FALSE='#' | |
12904 | else | |
12905 | am__EXEEXT_TRUE='#' | |
12906 | am__EXEEXT_FALSE= | |
12907 | fi | |
12908 | ||
12909 | if test -z "${HMACC_TRUE}" && test -z "${HMACC_FALSE}"; then | |
b0322a85 CE |
12910 | as_fn_error $? "conditional \"HMACC\" was never defined. |
12911 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
12912 | fi |
12913 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
b0322a85 CE |
12914 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
12915 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
12916 | fi |
12917 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
b0322a85 CE |
12918 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
12919 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
8d138742 CE |
12920 | fi |
12921 | ||
b0322a85 | 12922 | : "${CONFIG_STATUS=./config.status}" |
8d138742 CE |
12923 | ac_write_fail=0 |
12924 | ac_clean_files_save=$ac_clean_files | |
12925 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
b0322a85 | 12926 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
8d138742 | 12927 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
b0322a85 CE |
12928 | as_write_fail=0 |
12929 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
8d138742 CE |
12930 | #! $SHELL |
12931 | # Generated by $as_me. | |
12932 | # Run this file to recreate the current configuration. | |
12933 | # Compiler output produced by configure, useful for debugging | |
12934 | # configure, is in config.log if it exists. | |
12935 | ||
12936 | debug=false | |
12937 | ac_cs_recheck=false | |
12938 | ac_cs_silent=false | |
8d138742 | 12939 | |
b0322a85 CE |
12940 | SHELL=\${CONFIG_SHELL-$SHELL} |
12941 | export SHELL | |
12942 | _ASEOF | |
12943 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
12944 | ## -------------------- ## | |
12945 | ## M4sh Initialization. ## | |
12946 | ## -------------------- ## | |
8d138742 CE |
12947 | |
12948 | # Be more Bourne compatible | |
12949 | DUALCASE=1; export DUALCASE # for MKS sh | |
b0322a85 | 12950 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
8d138742 CE |
12951 | emulate sh |
12952 | NULLCMD=: | |
12953 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
12954 | # is contrary to our usage. Disable this feature. | |
12955 | alias -g '${1+"$@"}'='"$@"' | |
12956 | setopt NO_GLOB_SUBST | |
d9898ee8 | 12957 | else |
b0322a85 CE |
12958 | case `(set -o) 2>/dev/null` in #( |
12959 | *posix*) : | |
12960 | set -o posix ;; #( | |
12961 | *) : | |
12962 | ;; | |
8d138742 | 12963 | esac |
d9898ee8 | 12964 | fi |
8d138742 CE |
12965 | |
12966 | ||
8d138742 CE |
12967 | as_nl=' |
12968 | ' | |
12969 | export as_nl | |
12970 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
12971 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
12972 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
12973 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
b0322a85 CE |
12974 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
12975 | # but without wasting forks for bash or zsh. | |
12976 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
12977 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
12978 | as_echo='print -r --' | |
12979 | as_echo_n='print -rn --' | |
12980 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
8d138742 CE |
12981 | as_echo='printf %s\n' |
12982 | as_echo_n='printf %s' | |
12983 | else | |
12984 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
12985 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
12986 | as_echo_n='/usr/ucb/echo -n' | |
12987 | else | |
12988 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
12989 | as_echo_n_body='eval | |
12990 | arg=$1; | |
b0322a85 | 12991 | case $arg in #( |
8d138742 CE |
12992 | *"$as_nl"*) |
12993 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
12994 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
12995 | esac; | |
12996 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
12997 | ' | |
12998 | export as_echo_n_body | |
12999 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
13000 | fi | |
13001 | export as_echo_body | |
13002 | as_echo='sh -c $as_echo_body as_echo' | |
d9898ee8 | 13003 | fi |
8d138742 CE |
13004 | |
13005 | # The user is always right. | |
13006 | if test "${PATH_SEPARATOR+set}" != set; then | |
13007 | PATH_SEPARATOR=: | |
13008 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
13009 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
13010 | PATH_SEPARATOR=';' | |
13011 | } | |
d9898ee8 | 13012 | fi |
dd184caf | 13013 | |
dd184caf | 13014 | |
8d138742 CE |
13015 | # IFS |
13016 | # We need space, tab and new line, in precisely that order. Quoting is | |
13017 | # there to prevent editors from complaining about space-tab. | |
13018 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
13019 | # splitting by setting IFS to empty value.) | |
13020 | IFS=" "" $as_nl" | |
d9898ee8 | 13021 | |
8d138742 | 13022 | # Find who we are. Look in the path if we contain no directory separator. |
b0322a85 CE |
13023 | as_myself= |
13024 | case $0 in #(( | |
8d138742 CE |
13025 | *[\\/]* ) as_myself=$0 ;; |
13026 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13027 | for as_dir in $PATH | |
13028 | do | |
13029 | IFS=$as_save_IFS | |
13030 | test -z "$as_dir" && as_dir=. | |
b0322a85 CE |
13031 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
13032 | done | |
8d138742 | 13033 | IFS=$as_save_IFS |
d9898ee8 | 13034 | |
8d138742 | 13035 | ;; |
dd184caf | 13036 | esac |
8d138742 CE |
13037 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
13038 | # in which case we are not to be found in the path. | |
13039 | if test "x$as_myself" = x; then | |
13040 | as_myself=$0 | |
d9898ee8 | 13041 | fi |
8d138742 CE |
13042 | if test ! -f "$as_myself"; then |
13043 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
b0322a85 | 13044 | exit 1 |
d9898ee8 | 13045 | fi |
d9898ee8 | 13046 | |
b0322a85 CE |
13047 | # Unset variables that we do not need and which cause bugs (e.g. in |
13048 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
13049 | # suppresses any "Segmentation fault" message there. '((' could | |
13050 | # trigger a bug in pdksh 5.2.14. | |
13051 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
13052 | do eval test x\${$as_var+set} = xset \ | |
13053 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
8d138742 CE |
13054 | done |
13055 | PS1='$ ' | |
13056 | PS2='> ' | |
13057 | PS4='+ ' | |
d9898ee8 | 13058 | |
8d138742 CE |
13059 | # NLS nuisances. |
13060 | LC_ALL=C | |
13061 | export LC_ALL | |
13062 | LANGUAGE=C | |
13063 | export LANGUAGE | |
d9898ee8 | 13064 | |
b0322a85 CE |
13065 | # CDPATH. |
13066 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
13067 | ||
13068 | ||
13069 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
13070 | # ---------------------------------------- | |
13071 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
13072 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
13073 | # script with STATUS, using 1 if that was 0. | |
13074 | as_fn_error () | |
13075 | { | |
13076 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
13077 | if test "$4"; then | |
13078 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
13079 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
13080 | fi | |
13081 | $as_echo "$as_me: error: $2" >&2 | |
13082 | as_fn_exit $as_status | |
13083 | } # as_fn_error | |
13084 | ||
13085 | ||
13086 | # as_fn_set_status STATUS | |
13087 | # ----------------------- | |
13088 | # Set $? to STATUS, without forking. | |
13089 | as_fn_set_status () | |
13090 | { | |
13091 | return $1 | |
13092 | } # as_fn_set_status | |
13093 | ||
13094 | # as_fn_exit STATUS | |
13095 | # ----------------- | |
13096 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
13097 | as_fn_exit () | |
13098 | { | |
13099 | set +e | |
13100 | as_fn_set_status $1 | |
13101 | exit $1 | |
13102 | } # as_fn_exit | |
13103 | ||
13104 | # as_fn_unset VAR | |
13105 | # --------------- | |
13106 | # Portably unset VAR. | |
13107 | as_fn_unset () | |
13108 | { | |
13109 | { eval $1=; unset $1;} | |
13110 | } | |
13111 | as_unset=as_fn_unset | |
13112 | # as_fn_append VAR VALUE | |
13113 | # ---------------------- | |
13114 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
13115 | # advantage of any shell optimizations that allow amortized linear growth over | |
13116 | # repeated appends, instead of the typical quadratic growth present in naive | |
13117 | # implementations. | |
13118 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
13119 | eval 'as_fn_append () | |
13120 | { | |
13121 | eval $1+=\$2 | |
13122 | }' | |
13123 | else | |
13124 | as_fn_append () | |
13125 | { | |
13126 | eval $1=\$$1\$2 | |
13127 | } | |
13128 | fi # as_fn_append | |
13129 | ||
13130 | # as_fn_arith ARG... | |
13131 | # ------------------ | |
13132 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
13133 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
13134 | # must be portable across $(()) and expr. | |
13135 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
13136 | eval 'as_fn_arith () | |
13137 | { | |
13138 | as_val=$(( $* )) | |
13139 | }' | |
13140 | else | |
13141 | as_fn_arith () | |
13142 | { | |
13143 | as_val=`expr "$@" || test $? -eq 1` | |
13144 | } | |
13145 | fi # as_fn_arith | |
13146 | ||
13147 | ||
8d138742 CE |
13148 | if expr a : '\(a\)' >/dev/null 2>&1 && |
13149 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
13150 | as_expr=expr | |
d9898ee8 | 13151 | else |
8d138742 | 13152 | as_expr=false |
d9898ee8 | 13153 | fi |
dd184caf | 13154 | |
8d138742 CE |
13155 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
13156 | as_basename=basename | |
d9898ee8 | 13157 | else |
8d138742 CE |
13158 | as_basename=false |
13159 | fi | |
d9898ee8 | 13160 | |
b0322a85 CE |
13161 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
13162 | as_dirname=dirname | |
13163 | else | |
13164 | as_dirname=false | |
13165 | fi | |
d9898ee8 | 13166 | |
8d138742 CE |
13167 | as_me=`$as_basename -- "$0" || |
13168 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
13169 | X"$0" : 'X\(//\)$' \| \ | |
13170 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
13171 | $as_echo X/"$0" | | |
13172 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
13173 | s//\1/ | |
13174 | q | |
13175 | } | |
13176 | /^X\/\(\/\/\)$/{ | |
13177 | s//\1/ | |
13178 | q | |
13179 | } | |
13180 | /^X\/\(\/\).*/{ | |
13181 | s//\1/ | |
13182 | q | |
13183 | } | |
13184 | s/.*/./; q'` | |
13185 | ||
b0322a85 CE |
13186 | # Avoid depending upon Character Ranges. |
13187 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
13188 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13189 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
13190 | as_cr_digits='0123456789' | |
13191 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d9898ee8 | 13192 | |
8d138742 | 13193 | ECHO_C= ECHO_N= ECHO_T= |
b0322a85 | 13194 | case `echo -n x` in #((((( |
8d138742 | 13195 | -n*) |
b0322a85 | 13196 | case `echo 'xy\c'` in |
8d138742 | 13197 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
b0322a85 CE |
13198 | xy) ECHO_C='\c';; |
13199 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
13200 | ECHO_T=' ';; | |
8d138742 CE |
13201 | esac;; |
13202 | *) | |
13203 | ECHO_N='-n';; | |
13204 | esac | |
b0322a85 CE |
13205 | |
13206 | rm -f conf$$ conf$$.exe conf$$.file | |
13207 | if test -d conf$$.dir; then | |
13208 | rm -f conf$$.dir/conf$$.file | |
8d138742 | 13209 | else |
b0322a85 CE |
13210 | rm -f conf$$.dir |
13211 | mkdir conf$$.dir 2>/dev/null | |
13212 | fi | |
13213 | if (echo >conf$$.file) 2>/dev/null; then | |
13214 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13215 | as_ln_s='ln -s' | |
13216 | # ... but there are two gotchas: | |
13217 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
13218 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
13219 | # In both cases, we have to default to `cp -pR'. | |
13220 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
13221 | as_ln_s='cp -pR' | |
13222 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
13223 | as_ln_s=ln | |
13224 | else | |
13225 | as_ln_s='cp -pR' | |
13226 | fi | |
13227 | else | |
13228 | as_ln_s='cp -pR' | |
d9898ee8 | 13229 | fi |
b0322a85 CE |
13230 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
13231 | rmdir conf$$.dir 2>/dev/null | |
13232 | ||
13233 | ||
13234 | # as_fn_mkdir_p | |
13235 | # ------------- | |
13236 | # Create "$as_dir" as a directory, including parents if necessary. | |
13237 | as_fn_mkdir_p () | |
13238 | { | |
13239 | ||
13240 | case $as_dir in #( | |
13241 | -*) as_dir=./$as_dir;; | |
13242 | esac | |
13243 | test -d "$as_dir" || eval $as_mkdir_p || { | |
13244 | as_dirs= | |
13245 | while :; do | |
13246 | case $as_dir in #( | |
13247 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
13248 | *) as_qdir=$as_dir;; | |
13249 | esac | |
13250 | as_dirs="'$as_qdir' $as_dirs" | |
13251 | as_dir=`$as_dirname -- "$as_dir" || | |
13252 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13253 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13254 | X"$as_dir" : 'X\(//\)$' \| \ | |
13255 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
13256 | $as_echo X"$as_dir" | | |
13257 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13258 | s//\1/ | |
13259 | q | |
13260 | } | |
13261 | /^X\(\/\/\)[^/].*/{ | |
13262 | s//\1/ | |
13263 | q | |
13264 | } | |
13265 | /^X\(\/\/\)$/{ | |
13266 | s//\1/ | |
13267 | q | |
13268 | } | |
13269 | /^X\(\/\).*/{ | |
13270 | s//\1/ | |
13271 | q | |
13272 | } | |
13273 | s/.*/./; q'` | |
13274 | test -d "$as_dir" && break | |
13275 | done | |
13276 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
13277 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
dd184caf | 13278 | |
d9898ee8 | 13279 | |
b0322a85 | 13280 | } # as_fn_mkdir_p |
8d138742 | 13281 | if mkdir -p . 2>/dev/null; then |
b0322a85 | 13282 | as_mkdir_p='mkdir -p "$as_dir"' |
8d138742 CE |
13283 | else |
13284 | test -d ./-p && rmdir ./-p | |
13285 | as_mkdir_p=false | |
d9898ee8 | 13286 | fi |
dd184caf | 13287 | |
b0322a85 CE |
13288 | |
13289 | # as_fn_executable_p FILE | |
13290 | # ----------------------- | |
13291 | # Test if FILE is an executable regular file. | |
13292 | as_fn_executable_p () | |
13293 | { | |
13294 | test -f "$1" && test -x "$1" | |
13295 | } # as_fn_executable_p | |
13296 | as_test_x='test -x' | |
13297 | as_executable_p=as_fn_executable_p | |
dd184caf | 13298 | |
8d138742 CE |
13299 | # Sed expression to map a string onto a valid CPP name. |
13300 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 13301 | |
8d138742 CE |
13302 | # Sed expression to map a string onto a valid variable name. |
13303 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
d9898ee8 | 13304 | |
dd184caf | 13305 | |
8d138742 | 13306 | exec 6>&1 |
b0322a85 CE |
13307 | ## ----------------------------------- ## |
13308 | ## Main body of $CONFIG_STATUS script. ## | |
13309 | ## ----------------------------------- ## | |
13310 | _ASEOF | |
13311 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
d9898ee8 | 13312 | |
b0322a85 CE |
13313 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13314 | # Save the log message, to keep $0 and so on meaningful, and to | |
8d138742 CE |
13315 | # report actual input values of CONFIG_FILES etc. instead of their |
13316 | # values after options handling. | |
13317 | ac_log=" | |
13318 | This file was extended by libmd5 $as_me 1.21, which was | |
b0322a85 | 13319 | generated by GNU Autoconf 2.69. Invocation command line was |
8d138742 CE |
13320 | |
13321 | CONFIG_FILES = $CONFIG_FILES | |
13322 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13323 | CONFIG_LINKS = $CONFIG_LINKS | |
13324 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13325 | $ $0 $@ | |
13326 | ||
13327 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
13328 | " | |
d9898ee8 | 13329 | |
d9898ee8 | 13330 | _ACEOF |
8d138742 CE |
13331 | |
13332 | case $ac_config_files in *" | |
13333 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
dd184caf | 13334 | esac |
8d138742 CE |
13335 | |
13336 | case $ac_config_headers in *" | |
13337 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
dd184caf | 13338 | esac |
d9898ee8 | 13339 | |
dd184caf | 13340 | |
8d138742 CE |
13341 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13342 | # Files that config.status was made for. | |
13343 | config_files="$ac_config_files" | |
13344 | config_headers="$ac_config_headers" | |
13345 | config_commands="$ac_config_commands" | |
13346 | ||
13347 | _ACEOF | |
13348 | ||
13349 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13350 | ac_cs_usage="\ | |
b0322a85 CE |
13351 | \`$as_me' instantiates files and other configuration actions |
13352 | from templates according to the current configuration. Unless the files | |
13353 | and actions are specified as TAGs, all are instantiated by default. | |
8d138742 | 13354 | |
b0322a85 | 13355 | Usage: $0 [OPTION]... [TAG]... |
8d138742 CE |
13356 | |
13357 | -h, --help print this help, then exit | |
13358 | -V, --version print version number and configuration settings, then exit | |
b0322a85 | 13359 | --config print configuration, then exit |
8d138742 CE |
13360 | -q, --quiet, --silent |
13361 | do not print progress messages | |
13362 | -d, --debug don't remove temporary files | |
13363 | --recheck update $as_me by reconfiguring in the same conditions | |
13364 | --file=FILE[:TEMPLATE] | |
13365 | instantiate the configuration file FILE | |
13366 | --header=FILE[:TEMPLATE] | |
13367 | instantiate the configuration header FILE | |
13368 | ||
13369 | Configuration files: | |
13370 | $config_files | |
13371 | ||
13372 | Configuration headers: | |
13373 | $config_headers | |
13374 | ||
13375 | Configuration commands: | |
13376 | $config_commands | |
dd184caf | 13377 | |
b0322a85 | 13378 | Report bugs to <courier-users@lists.sourceforge.net>." |
dd184caf | 13379 | |
d9898ee8 | 13380 | _ACEOF |
8d138742 | 13381 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
b0322a85 | 13382 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
8d138742 CE |
13383 | ac_cs_version="\\ |
13384 | libmd5 config.status 1.21 | |
b0322a85 CE |
13385 | configured by $0, generated by GNU Autoconf 2.69, |
13386 | with options \\"\$ac_cs_config\\" | |
d9898ee8 | 13387 | |
b0322a85 | 13388 | Copyright (C) 2012 Free Software Foundation, Inc. |
8d138742 CE |
13389 | This config.status script is free software; the Free Software Foundation |
13390 | gives unlimited permission to copy, distribute and modify it." | |
d9898ee8 | 13391 | |
8d138742 CE |
13392 | ac_pwd='$ac_pwd' |
13393 | srcdir='$srcdir' | |
13394 | INSTALL='$INSTALL' | |
13395 | MKDIR_P='$MKDIR_P' | |
13396 | AWK='$AWK' | |
13397 | test -n "\$AWK" || AWK=awk | |
d9898ee8 | 13398 | _ACEOF |
d9898ee8 | 13399 | |
8d138742 CE |
13400 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13401 | # The default lists apply if the user does not specify any file. | |
13402 | ac_need_defaults=: | |
13403 | while test $# != 0 | |
13404 | do | |
13405 | case $1 in | |
b0322a85 | 13406 | --*=?*) |
8d138742 CE |
13407 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13408 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
13409 | ac_shift=: | |
13410 | ;; | |
b0322a85 CE |
13411 | --*=) |
13412 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
13413 | ac_optarg= | |
13414 | ac_shift=: | |
13415 | ;; | |
8d138742 CE |
13416 | *) |
13417 | ac_option=$1 | |
13418 | ac_optarg=$2 | |
13419 | ac_shift=shift | |
13420 | ;; | |
13421 | esac | |
dd184caf | 13422 | |
8d138742 CE |
13423 | case $ac_option in |
13424 | # Handling of the options. | |
13425 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
13426 | ac_cs_recheck=: ;; | |
13427 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
13428 | $as_echo "$ac_cs_version"; exit ;; | |
b0322a85 CE |
13429 | --config | --confi | --conf | --con | --co | --c ) |
13430 | $as_echo "$ac_cs_config"; exit ;; | |
8d138742 CE |
13431 | --debug | --debu | --deb | --de | --d | -d ) |
13432 | debug=: ;; | |
13433 | --file | --fil | --fi | --f ) | |
13434 | $ac_shift | |
13435 | case $ac_optarg in | |
13436 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
b0322a85 | 13437 | '') as_fn_error $? "missing file argument" ;; |
8d138742 | 13438 | esac |
b0322a85 | 13439 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
8d138742 CE |
13440 | ac_need_defaults=false;; |
13441 | --header | --heade | --head | --hea ) | |
13442 | $ac_shift | |
13443 | case $ac_optarg in | |
13444 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
13445 | esac | |
b0322a85 | 13446 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
8d138742 CE |
13447 | ac_need_defaults=false;; |
13448 | --he | --h) | |
13449 | # Conflict between --help and --header | |
b0322a85 CE |
13450 | as_fn_error $? "ambiguous option: \`$1' |
13451 | Try \`$0 --help' for more information.";; | |
8d138742 CE |
13452 | --help | --hel | -h ) |
13453 | $as_echo "$ac_cs_usage"; exit ;; | |
13454 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
13455 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13456 | ac_cs_silent=: ;; | |
13457 | ||
13458 | # This is an error. | |
b0322a85 CE |
13459 | -*) as_fn_error $? "unrecognized option: \`$1' |
13460 | Try \`$0 --help' for more information." ;; | |
8d138742 | 13461 | |
b0322a85 | 13462 | *) as_fn_append ac_config_targets " $1" |
8d138742 CE |
13463 | ac_need_defaults=false ;; |
13464 | ||
13465 | esac | |
13466 | shift | |
13467 | done | |
13468 | ||
13469 | ac_configure_extra_args= | |
13470 | ||
13471 | if $ac_cs_silent; then | |
13472 | exec 6>/dev/null | |
13473 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
d9898ee8 | 13474 | fi |
d9898ee8 | 13475 | |
d9898ee8 | 13476 | _ACEOF |
8d138742 CE |
13477 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13478 | if \$ac_cs_recheck; then | |
b0322a85 | 13479 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
8d138742 CE |
13480 | shift |
13481 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
13482 | CONFIG_SHELL='$SHELL' | |
13483 | export CONFIG_SHELL | |
13484 | exec "\$@" | |
13485 | fi | |
d9898ee8 | 13486 | |
d9898ee8 | 13487 | _ACEOF |
8d138742 CE |
13488 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13489 | exec 5>>config.log | |
d9898ee8 | 13490 | { |
8d138742 CE |
13491 | echo |
13492 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13493 | ## Running $as_me. ## | |
13494 | _ASBOX | |
13495 | $as_echo "$ac_log" | |
13496 | } >&5 | |
d9898ee8 | 13497 | |
d9898ee8 | 13498 | _ACEOF |
8d138742 CE |
13499 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13500 | # | |
13501 | # INIT-COMMANDS | |
13502 | # | |
13503 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
d9898ee8 | 13504 | |
dd184caf | 13505 | |
8d138742 CE |
13506 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
13507 | # if CDPATH is set. | |
13508 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
d9898ee8 | 13509 | |
8d138742 CE |
13510 | sed_quote_subst='$sed_quote_subst' |
13511 | double_quote_subst='$double_quote_subst' | |
13512 | delay_variable_subst='$delay_variable_subst' | |
b0322a85 CE |
13513 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
13514 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
13515 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
13516 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
13517 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
13518 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 13519 | shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13520 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
13521 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
13522 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
13523 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
13524 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
13525 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
13526 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
13527 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
13528 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
13529 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
13530 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
13531 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
13532 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
13533 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
13534 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
13535 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
13536 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
13537 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
13538 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
13539 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
13540 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
13541 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
13542 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
13543 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13544 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13545 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
13546 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
13547 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
13548 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
13549 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
13550 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
13551 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
13552 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
13553 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
13554 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
13555 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
13556 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
13557 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
13558 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
13559 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13560 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13561 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13562 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
13563 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
13564 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
13565 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
13566 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
13567 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
13568 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 13569 | lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13570 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
13571 | 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"`' | |
d50284c4 | 13572 | lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13573 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
13574 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
d50284c4 | 13575 | lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
b0322a85 CE |
13576 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
13577 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
13578 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
13579 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
13580 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
13581 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
13582 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
13583 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
13584 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
13585 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
13586 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
13587 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
13588 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
13589 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
13590 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
13591 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
13592 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13593 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
13594 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
13595 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13596 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13597 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
13598 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
13599 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
13600 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
13601 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13602 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
13603 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
13604 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
13605 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13606 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
13607 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
13608 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
13609 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
13610 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
13611 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
13612 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13613 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
13614 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
13615 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
13616 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
13617 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
13618 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
13619 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
13620 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
13621 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
13622 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
13623 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
13624 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
13625 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
13626 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
13627 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
13628 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
13629 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
13630 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
13631 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
13632 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
13633 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
13634 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13635 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
13636 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
13637 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
13638 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
13639 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
d50284c4 CE |
13640 | configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
13641 | configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' | |
b0322a85 CE |
13642 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
13643 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
13644 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
13645 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
13646 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
13647 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
8d138742 CE |
13648 | |
13649 | LTCC='$LTCC' | |
13650 | LTCFLAGS='$LTCFLAGS' | |
13651 | compiler='$compiler_DEFAULT' | |
13652 | ||
b0322a85 CE |
13653 | # A function that is used when there is no print builtin or printf. |
13654 | func_fallback_echo () | |
13655 | { | |
13656 | eval 'cat <<_LTECHO_EOF | |
13657 | \$1 | |
13658 | _LTECHO_EOF' | |
13659 | } | |
13660 | ||
8d138742 | 13661 | # Quote evaled strings. |
b0322a85 CE |
13662 | for var in SHELL \ |
13663 | ECHO \ | |
13664 | PATH_SEPARATOR \ | |
13665 | SED \ | |
8d138742 CE |
13666 | GREP \ |
13667 | EGREP \ | |
13668 | FGREP \ | |
13669 | LD \ | |
13670 | NM \ | |
13671 | LN_S \ | |
13672 | lt_SP2NL \ | |
13673 | lt_NL2SP \ | |
13674 | reload_flag \ | |
13675 | OBJDUMP \ | |
13676 | deplibs_check_method \ | |
13677 | file_magic_cmd \ | |
b0322a85 CE |
13678 | file_magic_glob \ |
13679 | want_nocaseglob \ | |
13680 | DLLTOOL \ | |
13681 | sharedlib_from_linklib_cmd \ | |
8d138742 CE |
13682 | AR \ |
13683 | AR_FLAGS \ | |
b0322a85 | 13684 | archiver_list_spec \ |
8d138742 CE |
13685 | STRIP \ |
13686 | RANLIB \ | |
13687 | CC \ | |
13688 | CFLAGS \ | |
13689 | compiler \ | |
13690 | lt_cv_sys_global_symbol_pipe \ | |
13691 | lt_cv_sys_global_symbol_to_cdecl \ | |
d50284c4 | 13692 | lt_cv_sys_global_symbol_to_import \ |
8d138742 CE |
13693 | lt_cv_sys_global_symbol_to_c_name_address \ |
13694 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
d50284c4 | 13695 | lt_cv_nm_interface \ |
b0322a85 | 13696 | nm_file_list_spec \ |
d50284c4 | 13697 | lt_cv_truncate_bin \ |
8d138742 | 13698 | lt_prog_compiler_no_builtin_flag \ |
8d138742 | 13699 | lt_prog_compiler_pic \ |
b0322a85 | 13700 | lt_prog_compiler_wl \ |
8d138742 CE |
13701 | lt_prog_compiler_static \ |
13702 | lt_cv_prog_compiler_c_o \ | |
13703 | need_locks \ | |
b0322a85 | 13704 | MANIFEST_TOOL \ |
8d138742 CE |
13705 | DSYMUTIL \ |
13706 | NMEDIT \ | |
13707 | LIPO \ | |
13708 | OTOOL \ | |
13709 | OTOOL64 \ | |
13710 | shrext_cmds \ | |
13711 | export_dynamic_flag_spec \ | |
13712 | whole_archive_flag_spec \ | |
13713 | compiler_needs_object \ | |
13714 | with_gnu_ld \ | |
13715 | allow_undefined_flag \ | |
13716 | no_undefined_flag \ | |
13717 | hardcode_libdir_flag_spec \ | |
8d138742 | 13718 | hardcode_libdir_separator \ |
8d138742 CE |
13719 | exclude_expsyms \ |
13720 | include_expsyms \ | |
13721 | file_list_spec \ | |
13722 | variables_saved_for_relink \ | |
13723 | libname_spec \ | |
13724 | library_names_spec \ | |
13725 | soname_spec \ | |
b0322a85 | 13726 | install_override_mode \ |
8d138742 CE |
13727 | finish_eval \ |
13728 | old_striplib \ | |
13729 | striplib; do | |
b0322a85 | 13730 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 13731 | *[\\\\\\\`\\"\\\$]*) |
d50284c4 | 13732 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
8d138742 CE |
13733 | ;; |
13734 | *) | |
13735 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13736 | ;; | |
13737 | esac | |
13738 | done | |
d9898ee8 | 13739 | |
8d138742 CE |
13740 | # Double-quote double-evaled strings. |
13741 | for var in reload_cmds \ | |
13742 | old_postinstall_cmds \ | |
13743 | old_postuninstall_cmds \ | |
13744 | old_archive_cmds \ | |
13745 | extract_expsyms_cmds \ | |
13746 | old_archive_from_new_cmds \ | |
13747 | old_archive_from_expsyms_cmds \ | |
13748 | archive_cmds \ | |
13749 | archive_expsym_cmds \ | |
13750 | module_cmds \ | |
13751 | module_expsym_cmds \ | |
13752 | export_symbols_cmds \ | |
13753 | prelink_cmds \ | |
b0322a85 | 13754 | postlink_cmds \ |
8d138742 CE |
13755 | postinstall_cmds \ |
13756 | postuninstall_cmds \ | |
13757 | finish_cmds \ | |
13758 | sys_lib_search_path_spec \ | |
d50284c4 CE |
13759 | configure_time_dlsearch_path \ |
13760 | configure_time_lt_sys_library_path; do | |
b0322a85 | 13761 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
8d138742 | 13762 | *[\\\\\\\`\\"\\\$]*) |
d50284c4 | 13763 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
8d138742 CE |
13764 | ;; |
13765 | *) | |
13766 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
13767 | ;; | |
13768 | esac | |
13769 | done | |
d9898ee8 | 13770 | |
8d138742 | 13771 | ac_aux_dir='$ac_aux_dir' |
8d138742 | 13772 | |
d50284c4 | 13773 | # See if we are running on zsh, and set the options that allow our |
8d138742 | 13774 | # commands through without removal of \ escapes INIT. |
d50284c4 | 13775 | if test -n "\${ZSH_VERSION+set}"; then |
8d138742 | 13776 | setopt NO_GLOB_SUBST |
d9898ee8 | 13777 | fi |
dd184caf | 13778 | |
d9898ee8 | 13779 | |
8d138742 CE |
13780 | PACKAGE='$PACKAGE' |
13781 | VERSION='$VERSION' | |
8d138742 CE |
13782 | RM='$RM' |
13783 | ofile='$ofile' | |
13784 | ||
13785 | ||
dd184caf | 13786 | |
dd184caf | 13787 | |
d9898ee8 | 13788 | _ACEOF |
8d138742 CE |
13789 | |
13790 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13791 | ||
13792 | # Handling of arguments. | |
13793 | for ac_config_target in $ac_config_targets | |
13794 | do | |
13795 | case $ac_config_target in | |
13796 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
13797 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
13798 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
13799 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13800 | ||
b0322a85 | 13801 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
8d138742 CE |
13802 | esac |
13803 | done | |
13804 | ||
13805 | ||
13806 | # If the user did not use the arguments to specify the items to instantiate, | |
13807 | # then the envvar interface is used. Set only those that are not. | |
13808 | # We use the long form for the default assignment because of an extremely | |
13809 | # bizarre bug on SunOS 4.1.3. | |
13810 | if $ac_need_defaults; then | |
13811 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13812 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13813 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13814 | fi | |
13815 | ||
13816 | # Have a temporary directory for convenience. Make it in the build tree | |
13817 | # simply because there is no reason against having it here, and in addition, | |
13818 | # creating and moving files from /tmp can sometimes cause problems. | |
13819 | # Hook for its removal unless debugging. | |
13820 | # Note that there is a small window in which the directory will not be cleaned: | |
13821 | # after its creation but before its name has been assigned to `$tmp'. | |
13822 | $debug || | |
d9898ee8 | 13823 | { |
b0322a85 | 13824 | tmp= ac_tmp= |
8d138742 | 13825 | trap 'exit_status=$? |
b0322a85 CE |
13826 | : "${ac_tmp:=$tmp}" |
13827 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
8d138742 | 13828 | ' 0 |
b0322a85 | 13829 | trap 'as_fn_exit 1' 1 2 13 15 |
8d138742 CE |
13830 | } |
13831 | # Create a (secure) tmp directory for tmp files. | |
d9898ee8 | 13832 | |
8d138742 CE |
13833 | { |
13834 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
b0322a85 | 13835 | test -d "$tmp" |
8d138742 CE |
13836 | } || |
13837 | { | |
13838 | tmp=./conf$$-$RANDOM | |
13839 | (umask 077 && mkdir "$tmp") | |
b0322a85 CE |
13840 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
13841 | ac_tmp=$tmp | |
d9898ee8 | 13842 | |
8d138742 CE |
13843 | # Set up the scripts for CONFIG_FILES section. |
13844 | # No need to generate them if there are no CONFIG_FILES. | |
13845 | # This happens for instance with `./config.status config.h'. | |
13846 | if test -n "$CONFIG_FILES"; then | |
dd184caf | 13847 | |
8d138742 | 13848 | |
b0322a85 CE |
13849 | ac_cr=`echo X | tr X '\015'` |
13850 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
13851 | # But we know of no other shell where ac_cr would be empty at this | |
13852 | # point, so we can use a bashism as a fallback. | |
13853 | if test "x$ac_cr" = x; then | |
13854 | eval ac_cr=\$\'\\r\' | |
13855 | fi | |
8d138742 CE |
13856 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
13857 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
13858 | ac_cs_awk_cr='\\r' | |
d9898ee8 | 13859 | else |
8d138742 CE |
13860 | ac_cs_awk_cr=$ac_cr |
13861 | fi | |
13862 | ||
b0322a85 | 13863 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
d9898ee8 | 13864 | _ACEOF |
8d138742 CE |
13865 | |
13866 | ||
d9898ee8 | 13867 | { |
8d138742 CE |
13868 | echo "cat >conf$$subs.awk <<_ACEOF" && |
13869 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
13870 | echo "_ACEOF" | |
13871 | } >conf$$subs.sh || | |
b0322a85 CE |
13872 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
13873 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
8d138742 CE |
13874 | ac_delim='%!_!# ' |
13875 | for ac_last_try in false false false false false :; do | |
13876 | . ./conf$$subs.sh || | |
b0322a85 | 13877 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
d9898ee8 | 13878 | |
8d138742 CE |
13879 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
13880 | if test $ac_delim_n = $ac_delim_num; then | |
13881 | break | |
13882 | elif $ac_last_try; then | |
b0322a85 | 13883 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
d9898ee8 | 13884 | else |
8d138742 CE |
13885 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
13886 | fi | |
13887 | done | |
13888 | rm -f conf$$subs.sh | |
13889 | ||
13890 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
b0322a85 | 13891 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
8d138742 CE |
13892 | _ACEOF |
13893 | sed -n ' | |
13894 | h | |
13895 | s/^/S["/; s/!.*/"]=/ | |
13896 | p | |
13897 | g | |
13898 | s/^[^!]*!// | |
13899 | :repl | |
13900 | t repl | |
13901 | s/'"$ac_delim"'$// | |
13902 | t delim | |
13903 | :nl | |
13904 | h | |
b0322a85 | 13905 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
13906 | t more1 |
13907 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
13908 | p | |
13909 | n | |
13910 | b repl | |
13911 | :more1 | |
13912 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13913 | p | |
13914 | g | |
13915 | s/.\{148\}// | |
13916 | t nl | |
13917 | :delim | |
13918 | h | |
b0322a85 | 13919 | s/\(.\{148\}\)..*/\1/ |
8d138742 CE |
13920 | t more2 |
13921 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
13922 | p | |
13923 | b | |
13924 | :more2 | |
13925 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
13926 | p | |
13927 | g | |
13928 | s/.\{148\}// | |
13929 | t delim | |
13930 | ' <conf$$subs.awk | sed ' | |
13931 | /^[^""]/{ | |
13932 | N | |
13933 | s/\n// | |
13934 | } | |
13935 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
13936 | rm -f conf$$subs.awk | |
13937 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13938 | _ACAWK | |
b0322a85 | 13939 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
8d138742 CE |
13940 | for (key in S) S_is_set[key] = 1 |
13941 | FS = "\a" | |
d9898ee8 | 13942 | |
d9898ee8 | 13943 | } |
8d138742 CE |
13944 | { |
13945 | line = $ 0 | |
13946 | nfields = split(line, field, "@") | |
13947 | substed = 0 | |
13948 | len = length(field[1]) | |
13949 | for (i = 2; i < nfields; i++) { | |
13950 | key = field[i] | |
13951 | keylen = length(key) | |
13952 | if (S_is_set[key]) { | |
13953 | value = S[key] | |
13954 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
13955 | len += length(value) + length(field[++i]) | |
13956 | substed = 1 | |
13957 | } else | |
13958 | len += 1 + keylen | |
13959 | } | |
13960 | ||
13961 | print line | |
13962 | } | |
13963 | ||
13964 | _ACAWK | |
d9898ee8 | 13965 | _ACEOF |
8d138742 CE |
13966 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13967 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
13968 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
d9898ee8 | 13969 | else |
8d138742 | 13970 | cat |
b0322a85 CE |
13971 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
13972 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
8d138742 | 13973 | _ACEOF |
d9898ee8 | 13974 | |
b0322a85 CE |
13975 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
13976 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
8d138742 CE |
13977 | # trailing colons and then remove the whole line if VPATH becomes empty |
13978 | # (actually we leave an empty line to preserve line numbers). | |
13979 | if test "x$srcdir" = x.; then | |
b0322a85 CE |
13980 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
13981 | h | |
13982 | s/// | |
13983 | s/^/:/ | |
13984 | s/[ ]*$/:/ | |
13985 | s/:\$(srcdir):/:/g | |
13986 | s/:\${srcdir}:/:/g | |
13987 | s/:@srcdir@:/:/g | |
13988 | s/^:*// | |
8d138742 | 13989 | s/:*$// |
b0322a85 CE |
13990 | x |
13991 | s/\(=[ ]*\).*/\1/ | |
13992 | G | |
13993 | s/\n// | |
8d138742 CE |
13994 | s/^[^=]*=[ ]*$// |
13995 | }' | |
d9898ee8 | 13996 | fi |
dd184caf | 13997 | |
8d138742 CE |
13998 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
13999 | fi # test -n "$CONFIG_FILES" | |
dd184caf | 14000 | |
8d138742 CE |
14001 | # Set up the scripts for CONFIG_HEADERS section. |
14002 | # No need to generate them if there are no CONFIG_HEADERS. | |
14003 | # This happens for instance with `./config.status Makefile'. | |
14004 | if test -n "$CONFIG_HEADERS"; then | |
b0322a85 | 14005 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
8d138742 | 14006 | BEGIN { |
d9898ee8 | 14007 | _ACEOF |
14008 | ||
8d138742 CE |
14009 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
14010 | # here-document in config.status, that substitutes the proper values into | |
14011 | # config.h.in to produce config.h. | |
d9898ee8 | 14012 | |
8d138742 CE |
14013 | # Create a delimiter string that does not exist in confdefs.h, to ease |
14014 | # handling of long lines. | |
14015 | ac_delim='%!_!# ' | |
14016 | for ac_last_try in false false :; do | |
b0322a85 CE |
14017 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
14018 | if test -z "$ac_tt"; then | |
8d138742 CE |
14019 | break |
14020 | elif $ac_last_try; then | |
b0322a85 | 14021 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
8d138742 CE |
14022 | else |
14023 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
14024 | fi | |
14025 | done | |
14026 | ||
14027 | # For the awk script, D is an array of macro values keyed by name, | |
14028 | # likewise P contains macro parameters if any. Preserve backslash | |
14029 | # newline sequences. | |
14030 | ||
14031 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
14032 | sed -n ' | |
14033 | s/.\{148\}/&'"$ac_delim"'/g | |
14034 | t rset | |
14035 | :rset | |
14036 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
14037 | t def | |
14038 | d | |
14039 | :def | |
14040 | s/\\$// | |
14041 | t bsnl | |
14042 | s/["\\]/\\&/g | |
14043 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14044 | D["\1"]=" \3"/p | |
14045 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
14046 | d | |
14047 | :bsnl | |
14048 | s/["\\]/\\&/g | |
14049 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
14050 | D["\1"]=" \3\\\\\\n"\\/p | |
14051 | t cont | |
14052 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
14053 | t cont | |
14054 | d | |
14055 | :cont | |
14056 | n | |
14057 | s/.\{148\}/&'"$ac_delim"'/g | |
14058 | t clear | |
14059 | :clear | |
14060 | s/\\$// | |
14061 | t bsnlc | |
14062 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
14063 | d | |
14064 | :bsnlc | |
14065 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
14066 | b cont | |
14067 | ' <confdefs.h | sed ' | |
14068 | s/'"$ac_delim"'/"\\\ | |
14069 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
14070 | ||
14071 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14072 | for (key in D) D_is_set[key] = 1 | |
14073 | FS = "\a" | |
14074 | } | |
14075 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
14076 | line = \$ 0 | |
14077 | split(line, arg, " ") | |
14078 | if (arg[1] == "#") { | |
14079 | defundef = arg[2] | |
14080 | mac1 = arg[3] | |
14081 | } else { | |
14082 | defundef = substr(arg[1], 2) | |
14083 | mac1 = arg[2] | |
14084 | } | |
14085 | split(mac1, mac2, "(") #) | |
14086 | macro = mac2[1] | |
14087 | prefix = substr(line, 1, index(line, defundef) - 1) | |
14088 | if (D_is_set[macro]) { | |
14089 | # Preserve the white space surrounding the "#". | |
14090 | print prefix "define", macro P[macro] D[macro] | |
14091 | next | |
14092 | } else { | |
14093 | # Replace #undef with comments. This is necessary, for example, | |
14094 | # in the case of _POSIX_SOURCE, which is predefined and required | |
14095 | # on some systems where configure will not decide to define it. | |
14096 | if (defundef == "undef") { | |
14097 | print "/*", prefix defundef, macro, "*/" | |
14098 | next | |
14099 | } | |
14100 | } | |
14101 | } | |
14102 | { print } | |
14103 | _ACAWK | |
14104 | _ACEOF | |
14105 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
b0322a85 | 14106 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
8d138742 | 14107 | fi # test -n "$CONFIG_HEADERS" |
d9898ee8 | 14108 | |
dd184caf | 14109 | |
8d138742 CE |
14110 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
14111 | shift | |
14112 | for ac_tag | |
14113 | do | |
14114 | case $ac_tag in | |
14115 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
14116 | esac | |
14117 | case $ac_mode$ac_tag in | |
14118 | :[FHL]*:*);; | |
b0322a85 | 14119 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
8d138742 CE |
14120 | :[FH]-) ac_tag=-:-;; |
14121 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
14122 | esac | |
14123 | ac_save_IFS=$IFS | |
14124 | IFS=: | |
14125 | set x $ac_tag | |
14126 | IFS=$ac_save_IFS | |
14127 | shift | |
14128 | ac_file=$1 | |
14129 | shift | |
d9898ee8 | 14130 | |
8d138742 CE |
14131 | case $ac_mode in |
14132 | :L) ac_source=$1;; | |
14133 | :[FH]) | |
14134 | ac_file_inputs= | |
14135 | for ac_f | |
14136 | do | |
14137 | case $ac_f in | |
b0322a85 | 14138 | -) ac_f="$ac_tmp/stdin";; |
8d138742 CE |
14139 | *) # Look for the file first in the build tree, then in the source tree |
14140 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
14141 | # because $ac_f cannot contain `:'. | |
14142 | test -f "$ac_f" || | |
14143 | case $ac_f in | |
14144 | [\\/$]*) false;; | |
14145 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
14146 | esac || | |
b0322a85 | 14147 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
8d138742 CE |
14148 | esac |
14149 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
b0322a85 | 14150 | as_fn_append ac_file_inputs " '$ac_f'" |
8d138742 | 14151 | done |
d9898ee8 | 14152 | |
8d138742 CE |
14153 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
14154 | # use $as_me), people would be surprised to read: | |
14155 | # /* config.h. Generated by config.status. */ | |
14156 | configure_input='Generated from '` | |
14157 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
14158 | `' by configure.' | |
14159 | if test x"$ac_file" != x-; then | |
14160 | configure_input="$ac_file. $configure_input" | |
b0322a85 | 14161 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
8d138742 CE |
14162 | $as_echo "$as_me: creating $ac_file" >&6;} |
14163 | fi | |
14164 | # Neutralize special characters interpreted by sed in replacement strings. | |
14165 | case $configure_input in #( | |
14166 | *\&* | *\|* | *\\* ) | |
14167 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
14168 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
14169 | *) ac_sed_conf_input=$configure_input;; | |
14170 | esac | |
dd184caf | 14171 | |
8d138742 | 14172 | case $ac_tag in |
b0322a85 CE |
14173 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
14174 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
8d138742 CE |
14175 | esac |
14176 | ;; | |
14177 | esac | |
dd184caf | 14178 | |
8d138742 CE |
14179 | ac_dir=`$as_dirname -- "$ac_file" || |
14180 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14181 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14182 | X"$ac_file" : 'X\(//\)$' \| \ | |
14183 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
14184 | $as_echo X"$ac_file" | | |
14185 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14186 | s//\1/ | |
14187 | q | |
14188 | } | |
14189 | /^X\(\/\/\)[^/].*/{ | |
14190 | s//\1/ | |
14191 | q | |
14192 | } | |
14193 | /^X\(\/\/\)$/{ | |
14194 | s//\1/ | |
14195 | q | |
14196 | } | |
14197 | /^X\(\/\).*/{ | |
14198 | s//\1/ | |
14199 | q | |
14200 | } | |
14201 | s/.*/./; q'` | |
b0322a85 | 14202 | as_dir="$ac_dir"; as_fn_mkdir_p |
8d138742 | 14203 | ac_builddir=. |
d9898ee8 | 14204 | |
8d138742 CE |
14205 | case "$ac_dir" in |
14206 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14207 | *) | |
14208 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
14209 | # A ".." for each directory in $ac_dir_suffix. | |
14210 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
14211 | case $ac_top_builddir_sub in | |
14212 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
14213 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
14214 | esac ;; | |
14215 | esac | |
14216 | ac_abs_top_builddir=$ac_pwd | |
14217 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
14218 | # for backward compatibility: | |
14219 | ac_top_builddir=$ac_top_build_prefix | |
d9898ee8 | 14220 | |
8d138742 CE |
14221 | case $srcdir in |
14222 | .) # We are building in place. | |
14223 | ac_srcdir=. | |
14224 | ac_top_srcdir=$ac_top_builddir_sub | |
14225 | ac_abs_top_srcdir=$ac_pwd ;; | |
14226 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
14227 | ac_srcdir=$srcdir$ac_dir_suffix; | |
14228 | ac_top_srcdir=$srcdir | |
14229 | ac_abs_top_srcdir=$srcdir ;; | |
14230 | *) # Relative name. | |
14231 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
14232 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
14233 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
14234 | esac | |
14235 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
d9898ee8 | 14236 | |
d9898ee8 | 14237 | |
8d138742 CE |
14238 | case $ac_mode in |
14239 | :F) | |
14240 | # | |
14241 | # CONFIG_FILE | |
14242 | # | |
d9898ee8 | 14243 | |
8d138742 CE |
14244 | case $INSTALL in |
14245 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
14246 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
14247 | esac | |
14248 | ac_MKDIR_P=$MKDIR_P | |
14249 | case $MKDIR_P in | |
14250 | [\\/$]* | ?:[\\/]* ) ;; | |
14251 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
14252 | esac | |
d9898ee8 | 14253 | _ACEOF |
d9898ee8 | 14254 | |
8d138742 CE |
14255 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
14256 | # If the template does not know about datarootdir, expand it. | |
14257 | # FIXME: This hack should be removed a few years after 2.60. | |
14258 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8d138742 CE |
14259 | ac_sed_dataroot=' |
14260 | /datarootdir/ { | |
14261 | p | |
14262 | q | |
14263 | } | |
14264 | /@datadir@/p | |
14265 | /@docdir@/p | |
14266 | /@infodir@/p | |
14267 | /@localedir@/p | |
b0322a85 | 14268 | /@mandir@/p' |
8d138742 CE |
14269 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
14270 | *datarootdir*) ac_datarootdir_seen=yes;; | |
14271 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
b0322a85 | 14272 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
8d138742 CE |
14273 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
14274 | _ACEOF | |
14275 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14276 | ac_datarootdir_hack=' | |
14277 | s&@datadir@&$datadir&g | |
14278 | s&@docdir@&$docdir&g | |
14279 | s&@infodir@&$infodir&g | |
14280 | s&@localedir@&$localedir&g | |
14281 | s&@mandir@&$mandir&g | |
b0322a85 | 14282 | s&\\\${datarootdir}&$datarootdir&g' ;; |
8d138742 CE |
14283 | esac |
14284 | _ACEOF | |
14285 | ||
14286 | # Neutralize VPATH when `$srcdir' = `.'. | |
14287 | # Shell code in configure.ac might set extrasub. | |
14288 | # FIXME: do we really want to maintain this feature? | |
14289 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
14290 | ac_sed_extra="$ac_vpsub | |
14291 | $extrasub | |
14292 | _ACEOF | |
14293 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
14294 | :t | |
14295 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
14296 | s|@configure_input@|$ac_sed_conf_input|;t t | |
14297 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
14298 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
14299 | s&@srcdir@&$ac_srcdir&;t t | |
14300 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
14301 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
14302 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
14303 | s&@builddir@&$ac_builddir&;t t | |
14304 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
14305 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
14306 | s&@INSTALL@&$ac_INSTALL&;t t | |
14307 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
14308 | $ac_datarootdir_hack | |
14309 | " | |
b0322a85 CE |
14310 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
14311 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
d9898ee8 | 14312 | |
8d138742 | 14313 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
b0322a85 CE |
14314 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
14315 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
14316 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
14317 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
14318 | which seems to be undefined. Please make sure it is defined" >&5 | |
8d138742 | 14319 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
b0322a85 | 14320 | which seems to be undefined. Please make sure it is defined" >&2;} |
d9898ee8 | 14321 | |
b0322a85 | 14322 | rm -f "$ac_tmp/stdin" |
8d138742 | 14323 | case $ac_file in |
b0322a85 CE |
14324 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
14325 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
8d138742 | 14326 | esac \ |
b0322a85 | 14327 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
8d138742 CE |
14328 | ;; |
14329 | :H) | |
14330 | # | |
14331 | # CONFIG_HEADER | |
14332 | # | |
14333 | if test x"$ac_file" != x-; then | |
14334 | { | |
14335 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
14336 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
14337 | } >"$ac_tmp/config.h" \ | |
14338 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
14339 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
14340 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8d138742 CE |
14341 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
14342 | else | |
14343 | rm -f "$ac_file" | |
b0322a85 CE |
14344 | mv "$ac_tmp/config.h" "$ac_file" \ |
14345 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8d138742 CE |
14346 | fi |
14347 | else | |
14348 | $as_echo "/* $configure_input */" \ | |
b0322a85 CE |
14349 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
14350 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
8d138742 CE |
14351 | fi |
14352 | # Compute "$ac_file"'s index in $config_headers. | |
14353 | _am_arg="$ac_file" | |
14354 | _am_stamp_count=1 | |
14355 | for _am_header in $config_headers :; do | |
14356 | case $_am_header in | |
14357 | $_am_arg | $_am_arg:* ) | |
14358 | break ;; | |
14359 | * ) | |
14360 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
14361 | esac | |
14362 | done | |
14363 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
14364 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14365 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
14366 | X"$_am_arg" : 'X\(//\)$' \| \ | |
14367 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
14368 | $as_echo X"$_am_arg" | | |
14369 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14370 | s//\1/ | |
14371 | q | |
14372 | } | |
14373 | /^X\(\/\/\)[^/].*/{ | |
14374 | s//\1/ | |
14375 | q | |
14376 | } | |
14377 | /^X\(\/\/\)$/{ | |
14378 | s//\1/ | |
14379 | q | |
14380 | } | |
14381 | /^X\(\/\).*/{ | |
14382 | s//\1/ | |
14383 | q | |
14384 | } | |
14385 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
14386 | ;; | |
dd184caf | 14387 | |
b0322a85 | 14388 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
8d138742 CE |
14389 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
14390 | ;; | |
14391 | esac | |
d9898ee8 | 14392 | |
d9898ee8 | 14393 | |
8d138742 CE |
14394 | case $ac_file$ac_mode in |
14395 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
b0322a85 | 14396 | # Older Autoconf quotes --file arguments for eval, but not when files |
8d138742 CE |
14397 | # are listed without --file. Let's play safe and only enable the eval |
14398 | # if we detect the quoting. | |
14399 | case $CONFIG_FILES in | |
14400 | *\'*) eval set x "$CONFIG_FILES" ;; | |
14401 | *) set x $CONFIG_FILES ;; | |
14402 | esac | |
14403 | shift | |
14404 | for mf | |
14405 | do | |
14406 | # Strip MF so we end up with the name of the file. | |
14407 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
14408 | # Check whether this is an Automake generated Makefile or not. | |
b0322a85 | 14409 | # We used to match only the files named 'Makefile.in', but |
8d138742 CE |
14410 | # some people rename them; so instead we look at the file content. |
14411 | # Grep'ing the first line is not enough: some people post-process | |
14412 | # each Makefile.in and add a new line on top of each file to say so. | |
14413 | # Grep'ing the whole file is not good either: AIX grep has a line | |
14414 | # limit of 2048, but all sed's we know have understand at least 4000. | |
14415 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
14416 | dirpart=`$as_dirname -- "$mf" || | |
14417 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14418 | X"$mf" : 'X\(//\)[^/]' \| \ | |
14419 | X"$mf" : 'X\(//\)$' \| \ | |
14420 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
14421 | $as_echo X"$mf" | | |
14422 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14423 | s//\1/ | |
14424 | q | |
14425 | } | |
14426 | /^X\(\/\/\)[^/].*/{ | |
14427 | s//\1/ | |
14428 | q | |
14429 | } | |
14430 | /^X\(\/\/\)$/{ | |
14431 | s//\1/ | |
14432 | q | |
14433 | } | |
14434 | /^X\(\/\).*/{ | |
14435 | s//\1/ | |
14436 | q | |
14437 | } | |
14438 | s/.*/./; q'` | |
14439 | else | |
14440 | continue | |
14441 | fi | |
14442 | # Extract the definition of DEPDIR, am__include, and am__quote | |
b0322a85 | 14443 | # from the Makefile without running 'make'. |
8d138742 CE |
14444 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
14445 | test -z "$DEPDIR" && continue | |
14446 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
b0322a85 | 14447 | test -z "$am__include" && continue |
8d138742 | 14448 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
8d138742 CE |
14449 | # Find all dependency output files, they are included files with |
14450 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
14451 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
14452 | # expansion. | |
14453 | for file in `sed -n " | |
14454 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
b0322a85 | 14455 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
8d138742 CE |
14456 | # Make sure the directory exists. |
14457 | test -f "$dirpart/$file" && continue | |
14458 | fdir=`$as_dirname -- "$file" || | |
14459 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14460 | X"$file" : 'X\(//\)[^/]' \| \ | |
14461 | X"$file" : 'X\(//\)$' \| \ | |
14462 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
14463 | $as_echo X"$file" | | |
14464 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
14465 | s//\1/ | |
14466 | q | |
14467 | } | |
14468 | /^X\(\/\/\)[^/].*/{ | |
14469 | s//\1/ | |
14470 | q | |
14471 | } | |
14472 | /^X\(\/\/\)$/{ | |
14473 | s//\1/ | |
14474 | q | |
14475 | } | |
14476 | /^X\(\/\).*/{ | |
14477 | s//\1/ | |
14478 | q | |
14479 | } | |
14480 | s/.*/./; q'` | |
b0322a85 | 14481 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
8d138742 CE |
14482 | # echo "creating $dirpart/$file" |
14483 | echo '# dummy' > "$dirpart/$file" | |
14484 | done | |
14485 | done | |
14486 | } | |
14487 | ;; | |
14488 | "libtool":C) | |
d9898ee8 | 14489 | |
d50284c4 | 14490 | # See if we are running on zsh, and set the options that allow our |
8d138742 | 14491 | # commands through without removal of \ escapes. |
d50284c4 | 14492 | if test -n "${ZSH_VERSION+set}"; then |
8d138742 CE |
14493 | setopt NO_GLOB_SUBST |
14494 | fi | |
d9898ee8 | 14495 | |
d50284c4 | 14496 | cfgfile=${ofile}T |
8d138742 CE |
14497 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
14498 | $RM "$cfgfile" | |
d9898ee8 | 14499 | |
8d138742 CE |
14500 | cat <<_LT_EOF >> "$cfgfile" |
14501 | #! $SHELL | |
d50284c4 | 14502 | # Generated automatically by $as_me ($PACKAGE) $VERSION |
8d138742 CE |
14503 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
14504 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
d50284c4 CE |
14505 | |
14506 | # Provide generalized library-building support services. | |
14507 | # Written by Gordon Matzigkeit, 1996 | |
14508 | ||
14509 | # Copyright (C) 2014 Free Software Foundation, Inc. | |
14510 | # This is free software; see the source for copying conditions. There is NO | |
14511 | # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
14512 | ||
14513 | # GNU Libtool is free software; you can redistribute it and/or modify | |
14514 | # it under the terms of the GNU General Public License as published by | |
14515 | # the Free Software Foundation; either version 2 of of the License, or | |
14516 | # (at your option) any later version. | |
d9898ee8 | 14517 | # |
d50284c4 CE |
14518 | # As a special exception to the GNU General Public License, if you |
14519 | # distribute this file as part of a program or library that is built | |
14520 | # using GNU Libtool, you may include this file under the same | |
14521 | # distribution terms that you use for the rest of that program. | |
8d138742 | 14522 | # |
d50284c4 CE |
14523 | # GNU Libtool is distributed in the hope that it will be useful, but |
14524 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
8d138742 CE |
14525 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14526 | # GNU General Public License for more details. | |
14527 | # | |
14528 | # You should have received a copy of the GNU General Public License | |
d50284c4 | 14529 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
d9898ee8 | 14530 | |
d9898ee8 | 14531 | |
8d138742 | 14532 | # The names of the tagged configurations supported by this script. |
d50284c4 CE |
14533 | available_tags='' |
14534 | ||
14535 | # Configured defaults for sys_lib_dlsearch_path munging. | |
14536 | : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} | |
dd184caf | 14537 | |
8d138742 | 14538 | # ### BEGIN LIBTOOL CONFIG |
d9898ee8 | 14539 | |
8d138742 CE |
14540 | # Which release of libtool.m4 was used? |
14541 | macro_version=$macro_version | |
14542 | macro_revision=$macro_revision | |
d9898ee8 | 14543 | |
8d138742 CE |
14544 | # Whether or not to build shared libraries. |
14545 | build_libtool_libs=$enable_shared | |
d9898ee8 | 14546 | |
8d138742 CE |
14547 | # Whether or not to build static libraries. |
14548 | build_old_libs=$enable_static | |
d9898ee8 | 14549 | |
8d138742 CE |
14550 | # What type of objects to build. |
14551 | pic_mode=$pic_mode | |
d9898ee8 | 14552 | |
8d138742 CE |
14553 | # Whether or not to optimize for fast installation. |
14554 | fast_install=$enable_fast_install | |
d9898ee8 | 14555 | |
d50284c4 CE |
14556 | # Shared archive member basename,for filename based shared library versioning on AIX. |
14557 | shared_archive_member_spec=$shared_archive_member_spec | |
14558 | ||
b0322a85 CE |
14559 | # Shell to use when invoking shell scripts. |
14560 | SHELL=$lt_SHELL | |
14561 | ||
14562 | # An echo program that protects backslashes. | |
14563 | ECHO=$lt_ECHO | |
14564 | ||
14565 | # The PATH separator for the build system. | |
14566 | PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
14567 | ||
8d138742 CE |
14568 | # The host system. |
14569 | host_alias=$host_alias | |
14570 | host=$host | |
14571 | host_os=$host_os | |
d9898ee8 | 14572 | |
8d138742 CE |
14573 | # The build system. |
14574 | build_alias=$build_alias | |
14575 | build=$build | |
14576 | build_os=$build_os | |
d9898ee8 | 14577 | |
8d138742 CE |
14578 | # A sed program that does not truncate output. |
14579 | SED=$lt_SED | |
d9898ee8 | 14580 | |
8d138742 CE |
14581 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
14582 | Xsed="\$SED -e 1s/^X//" | |
d9898ee8 | 14583 | |
8d138742 CE |
14584 | # A grep program that handles long lines. |
14585 | GREP=$lt_GREP | |
dd184caf | 14586 | |
8d138742 CE |
14587 | # An ERE matcher. |
14588 | EGREP=$lt_EGREP | |
dd184caf | 14589 | |
8d138742 CE |
14590 | # A literal string matcher. |
14591 | FGREP=$lt_FGREP | |
dd184caf | 14592 | |
8d138742 CE |
14593 | # A BSD- or MS-compatible name lister. |
14594 | NM=$lt_NM | |
dd184caf | 14595 | |
8d138742 CE |
14596 | # Whether we need soft or hard links. |
14597 | LN_S=$lt_LN_S | |
dd184caf | 14598 | |
8d138742 CE |
14599 | # What is the maximum length of a command? |
14600 | max_cmd_len=$max_cmd_len | |
dd184caf | 14601 | |
8d138742 CE |
14602 | # Object file suffix (normally "o"). |
14603 | objext=$ac_objext | |
d9898ee8 | 14604 | |
8d138742 CE |
14605 | # Executable file suffix (normally ""). |
14606 | exeext=$exeext | |
d9898ee8 | 14607 | |
8d138742 CE |
14608 | # whether the shell understands "unset". |
14609 | lt_unset=$lt_unset | |
d9898ee8 | 14610 | |
8d138742 CE |
14611 | # turn spaces into newlines. |
14612 | SP2NL=$lt_lt_SP2NL | |
dd184caf | 14613 | |
8d138742 CE |
14614 | # turn newlines into spaces. |
14615 | NL2SP=$lt_lt_NL2SP | |
dd184caf | 14616 | |
b0322a85 CE |
14617 | # convert \$build file names to \$host format. |
14618 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
14619 | ||
14620 | # convert \$build files to toolchain format. | |
14621 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
dd184caf | 14622 | |
8d138742 CE |
14623 | # An object symbol dumper. |
14624 | OBJDUMP=$lt_OBJDUMP | |
d9898ee8 | 14625 | |
8d138742 CE |
14626 | # Method to check whether dependent libraries are shared objects. |
14627 | deplibs_check_method=$lt_deplibs_check_method | |
d9898ee8 | 14628 | |
b0322a85 | 14629 | # Command to use when deplibs_check_method = "file_magic". |
8d138742 | 14630 | file_magic_cmd=$lt_file_magic_cmd |
d9898ee8 | 14631 | |
b0322a85 CE |
14632 | # How to find potential files when deplibs_check_method = "file_magic". |
14633 | file_magic_glob=$lt_file_magic_glob | |
14634 | ||
14635 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
14636 | want_nocaseglob=$lt_want_nocaseglob | |
14637 | ||
14638 | # DLL creation program. | |
14639 | DLLTOOL=$lt_DLLTOOL | |
14640 | ||
14641 | # Command to associate shared and link libraries. | |
14642 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
14643 | ||
8d138742 CE |
14644 | # The archiver. |
14645 | AR=$lt_AR | |
b0322a85 CE |
14646 | |
14647 | # Flags to create an archive. | |
8d138742 | 14648 | AR_FLAGS=$lt_AR_FLAGS |
d9898ee8 | 14649 | |
b0322a85 CE |
14650 | # How to feed a file listing to the archiver. |
14651 | archiver_list_spec=$lt_archiver_list_spec | |
14652 | ||
8d138742 CE |
14653 | # A symbol stripping program. |
14654 | STRIP=$lt_STRIP | |
d9898ee8 | 14655 | |
8d138742 CE |
14656 | # Commands used to install an old-style archive. |
14657 | RANLIB=$lt_RANLIB | |
14658 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
14659 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
d9898ee8 | 14660 | |
b0322a85 CE |
14661 | # Whether to use a lock for old archive extraction. |
14662 | lock_old_archive_extraction=$lock_old_archive_extraction | |
14663 | ||
8d138742 CE |
14664 | # A C compiler. |
14665 | LTCC=$lt_CC | |
d9898ee8 | 14666 | |
8d138742 CE |
14667 | # LTCC compiler flags. |
14668 | LTCFLAGS=$lt_CFLAGS | |
d9898ee8 | 14669 | |
8d138742 CE |
14670 | # Take the output of nm and produce a listing of raw symbols and C names. |
14671 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
d9898ee8 | 14672 | |
8d138742 CE |
14673 | # Transform the output of nm in a proper C declaration. |
14674 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
d9898ee8 | 14675 | |
d50284c4 CE |
14676 | # Transform the output of nm into a list of symbols to manually relocate. |
14677 | global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
14678 | ||
8d138742 CE |
14679 | # Transform the output of nm in a C name address pair. |
14680 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
d9898ee8 | 14681 | |
8d138742 CE |
14682 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
14683 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
d9898ee8 | 14684 | |
d50284c4 CE |
14685 | # The name lister interface. |
14686 | nm_interface=$lt_lt_cv_nm_interface | |
14687 | ||
b0322a85 CE |
14688 | # Specify filename containing input files for \$NM. |
14689 | nm_file_list_spec=$lt_nm_file_list_spec | |
d9898ee8 | 14690 | |
d50284c4 | 14691 | # The root where to search for dependent libraries,and where our libraries should be installed. |
b0322a85 | 14692 | lt_sysroot=$lt_sysroot |
dd184caf | 14693 | |
d50284c4 CE |
14694 | # Command to truncate a binary pipe. |
14695 | lt_truncate_bin=$lt_lt_cv_truncate_bin | |
14696 | ||
b0322a85 CE |
14697 | # The name of the directory that contains temporary libtool files. |
14698 | objdir=$objdir | |
d9898ee8 | 14699 | |
8d138742 CE |
14700 | # Used to examine libraries when file_magic_cmd begins with "file". |
14701 | MAGIC_CMD=$MAGIC_CMD | |
d9898ee8 | 14702 | |
8d138742 CE |
14703 | # Must we lock files when doing compilation? |
14704 | need_locks=$lt_need_locks | |
d9898ee8 | 14705 | |
b0322a85 CE |
14706 | # Manifest tool. |
14707 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
14708 | ||
8d138742 CE |
14709 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
14710 | DSYMUTIL=$lt_DSYMUTIL | |
d9898ee8 | 14711 | |
8d138742 CE |
14712 | # Tool to change global to local symbols on Mac OS X. |
14713 | NMEDIT=$lt_NMEDIT | |
d9898ee8 | 14714 | |
8d138742 CE |
14715 | # Tool to manipulate fat objects and archives on Mac OS X. |
14716 | LIPO=$lt_LIPO | |
d9898ee8 | 14717 | |
8d138742 CE |
14718 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
14719 | OTOOL=$lt_OTOOL | |
d9898ee8 | 14720 | |
8d138742 CE |
14721 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
14722 | OTOOL64=$lt_OTOOL64 | |
d9898ee8 | 14723 | |
8d138742 CE |
14724 | # Old archive suffix (normally "a"). |
14725 | libext=$libext | |
d9898ee8 | 14726 | |
8d138742 CE |
14727 | # Shared library suffix (normally ".so"). |
14728 | shrext_cmds=$lt_shrext_cmds | |
d9898ee8 | 14729 | |
8d138742 CE |
14730 | # The commands to extract the exported symbol list from a shared archive. |
14731 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
d9898ee8 | 14732 | |
8d138742 CE |
14733 | # Variables whose values should be saved in libtool wrapper scripts and |
14734 | # restored at link time. | |
14735 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
dd184caf | 14736 | |
8d138742 CE |
14737 | # Do we need the "lib" prefix for modules? |
14738 | need_lib_prefix=$need_lib_prefix | |
d9898ee8 | 14739 | |
8d138742 CE |
14740 | # Do we need a version for libraries? |
14741 | need_version=$need_version | |
d9898ee8 | 14742 | |
8d138742 CE |
14743 | # Library versioning type. |
14744 | version_type=$version_type | |
d9898ee8 | 14745 | |
8d138742 CE |
14746 | # Shared library runtime path variable. |
14747 | runpath_var=$runpath_var | |
d9898ee8 | 14748 | |
8d138742 CE |
14749 | # Shared library path variable. |
14750 | shlibpath_var=$shlibpath_var | |
d9898ee8 | 14751 | |
8d138742 CE |
14752 | # Is shlibpath searched before the hard-coded library search path? |
14753 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
d9898ee8 | 14754 | |
8d138742 CE |
14755 | # Format of library name prefix. |
14756 | libname_spec=$lt_libname_spec | |
d9898ee8 | 14757 | |
8d138742 CE |
14758 | # List of archive names. First name is the real one, the rest are links. |
14759 | # The last name is the one that the linker finds with -lNAME | |
14760 | library_names_spec=$lt_library_names_spec | |
d9898ee8 | 14761 | |
8d138742 CE |
14762 | # The coded name of the library, if different from the real name. |
14763 | soname_spec=$lt_soname_spec | |
d9898ee8 | 14764 | |
b0322a85 CE |
14765 | # Permission mode override for installation of shared libraries. |
14766 | install_override_mode=$lt_install_override_mode | |
14767 | ||
8d138742 CE |
14768 | # Command to use after installation of a shared archive. |
14769 | postinstall_cmds=$lt_postinstall_cmds | |
d9898ee8 | 14770 | |
8d138742 CE |
14771 | # Command to use after uninstallation of a shared archive. |
14772 | postuninstall_cmds=$lt_postuninstall_cmds | |
d9898ee8 | 14773 | |
8d138742 CE |
14774 | # Commands used to finish a libtool library installation in a directory. |
14775 | finish_cmds=$lt_finish_cmds | |
dd184caf | 14776 | |
8d138742 CE |
14777 | # As "finish_cmds", except a single script fragment to be evaled but |
14778 | # not shown. | |
14779 | finish_eval=$lt_finish_eval | |
d9898ee8 | 14780 | |
8d138742 CE |
14781 | # Whether we should hardcode library paths into libraries. |
14782 | hardcode_into_libs=$hardcode_into_libs | |
d9898ee8 | 14783 | |
8d138742 CE |
14784 | # Compile-time system search path for libraries. |
14785 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
d9898ee8 | 14786 | |
d50284c4 CE |
14787 | # Detected run-time system search path for libraries. |
14788 | sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path | |
14789 | ||
14790 | # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. | |
14791 | configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path | |
d9898ee8 | 14792 | |
8d138742 CE |
14793 | # Whether dlopen is supported. |
14794 | dlopen_support=$enable_dlopen | |
d9898ee8 | 14795 | |
8d138742 CE |
14796 | # Whether dlopen of programs is supported. |
14797 | dlopen_self=$enable_dlopen_self | |
d9898ee8 | 14798 | |
8d138742 CE |
14799 | # Whether dlopen of statically linked programs is supported. |
14800 | dlopen_self_static=$enable_dlopen_self_static | |
d9898ee8 | 14801 | |
8d138742 CE |
14802 | # Commands to strip libraries. |
14803 | old_striplib=$lt_old_striplib | |
14804 | striplib=$lt_striplib | |
d9898ee8 | 14805 | |
d9898ee8 | 14806 | |
8d138742 CE |
14807 | # The linker used to build libraries. |
14808 | LD=$lt_LD | |
d9898ee8 | 14809 | |
b0322a85 CE |
14810 | # How to create reloadable object files. |
14811 | reload_flag=$lt_reload_flag | |
14812 | reload_cmds=$lt_reload_cmds | |
14813 | ||
8d138742 CE |
14814 | # Commands used to build an old-style archive. |
14815 | old_archive_cmds=$lt_old_archive_cmds | |
d9898ee8 | 14816 | |
8d138742 CE |
14817 | # A language specific compiler. |
14818 | CC=$lt_compiler | |
d9898ee8 | 14819 | |
8d138742 CE |
14820 | # Is the compiler the GNU compiler? |
14821 | with_gcc=$GCC | |
dd184caf | 14822 | |
8d138742 CE |
14823 | # Compiler flag to turn off builtin functions. |
14824 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
dd184caf | 14825 | |
8d138742 CE |
14826 | # Additional compiler flags for building library objects. |
14827 | pic_flag=$lt_lt_prog_compiler_pic | |
dd184caf | 14828 | |
b0322a85 CE |
14829 | # How to pass a linker flag through the compiler. |
14830 | wl=$lt_lt_prog_compiler_wl | |
14831 | ||
8d138742 CE |
14832 | # Compiler flag to prevent dynamic linking. |
14833 | link_static_flag=$lt_lt_prog_compiler_static | |
d9898ee8 | 14834 | |
8d138742 CE |
14835 | # Does compiler simultaneously support -c and -o options? |
14836 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
14837 | ||
14838 | # Whether or not to add -lc for building shared libraries. | |
14839 | build_libtool_need_lc=$archive_cmds_need_lc | |
14840 | ||
14841 | # Whether or not to disallow shared libs when runtime libs are static. | |
14842 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
14843 | ||
14844 | # Compiler flag to allow reflexive dlopens. | |
14845 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
d9898ee8 | 14846 | |
8d138742 CE |
14847 | # Compiler flag to generate shared objects directly from archives. |
14848 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
d9898ee8 | 14849 | |
8d138742 CE |
14850 | # Whether the compiler copes with passing no objects directly. |
14851 | compiler_needs_object=$lt_compiler_needs_object | |
d9898ee8 | 14852 | |
8d138742 CE |
14853 | # Create an old-style archive from a shared archive. |
14854 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
d9898ee8 | 14855 | |
8d138742 CE |
14856 | # Create a temporary old-style archive to link instead of a shared archive. |
14857 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
d9898ee8 | 14858 | |
8d138742 CE |
14859 | # Commands used to build a shared archive. |
14860 | archive_cmds=$lt_archive_cmds | |
14861 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
dd184caf | 14862 | |
8d138742 CE |
14863 | # Commands used to build a loadable module if different from building |
14864 | # a shared archive. | |
14865 | module_cmds=$lt_module_cmds | |
14866 | module_expsym_cmds=$lt_module_expsym_cmds | |
dd184caf | 14867 | |
8d138742 CE |
14868 | # Whether we are building with GNU ld or not. |
14869 | with_gnu_ld=$lt_with_gnu_ld | |
dd184caf | 14870 | |
8d138742 CE |
14871 | # Flag that allows shared libraries with undefined symbols to be built. |
14872 | allow_undefined_flag=$lt_allow_undefined_flag | |
dd184caf | 14873 | |
8d138742 CE |
14874 | # Flag that enforces no undefined symbols. |
14875 | no_undefined_flag=$lt_no_undefined_flag | |
d9898ee8 | 14876 | |
8d138742 CE |
14877 | # Flag to hardcode \$libdir into a binary during linking. |
14878 | # This must work even if \$libdir does not exist | |
14879 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
dd184caf | 14880 | |
8d138742 CE |
14881 | # Whether we need a single "-rpath" flag with a separated argument. |
14882 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
dd184caf | 14883 | |
d50284c4 | 14884 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
8d138742 CE |
14885 | # DIR into the resulting binary. |
14886 | hardcode_direct=$hardcode_direct | |
dd184caf | 14887 | |
d50284c4 | 14888 | # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
8d138742 | 14889 | # DIR into the resulting binary and the resulting library dependency is |
d50284c4 | 14890 | # "absolute",i.e impossible to change by setting \$shlibpath_var if the |
8d138742 CE |
14891 | # library is relocated. |
14892 | hardcode_direct_absolute=$hardcode_direct_absolute | |
dd184caf | 14893 | |
8d138742 CE |
14894 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
14895 | # into the resulting binary. | |
14896 | hardcode_minus_L=$hardcode_minus_L | |
dd184caf | 14897 | |
8d138742 CE |
14898 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
14899 | # into the resulting binary. | |
14900 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
dd184caf | 14901 | |
8d138742 CE |
14902 | # Set to "yes" if building a shared library automatically hardcodes DIR |
14903 | # into the library and all subsequent libraries and executables linked | |
14904 | # against it. | |
14905 | hardcode_automatic=$hardcode_automatic | |
dd184caf | 14906 | |
8d138742 CE |
14907 | # Set to yes if linker adds runtime paths of dependent libraries |
14908 | # to runtime path list. | |
14909 | inherit_rpath=$inherit_rpath | |
dd184caf | 14910 | |
8d138742 CE |
14911 | # Whether libtool must link a program against all its dependency libraries. |
14912 | link_all_deplibs=$link_all_deplibs | |
dd184caf | 14913 | |
8d138742 CE |
14914 | # Set to "yes" if exported symbols are required. |
14915 | always_export_symbols=$always_export_symbols | |
dd184caf | 14916 | |
8d138742 CE |
14917 | # The commands to list exported symbols. |
14918 | export_symbols_cmds=$lt_export_symbols_cmds | |
dd184caf | 14919 | |
8d138742 CE |
14920 | # Symbols that should not be listed in the preloaded symbols. |
14921 | exclude_expsyms=$lt_exclude_expsyms | |
d9898ee8 | 14922 | |
8d138742 CE |
14923 | # Symbols that must always be exported. |
14924 | include_expsyms=$lt_include_expsyms | |
d9898ee8 | 14925 | |
8d138742 CE |
14926 | # Commands necessary for linking programs (against libraries) with templates. |
14927 | prelink_cmds=$lt_prelink_cmds | |
d9898ee8 | 14928 | |
b0322a85 CE |
14929 | # Commands necessary for finishing linking programs. |
14930 | postlink_cmds=$lt_postlink_cmds | |
14931 | ||
8d138742 CE |
14932 | # Specify filename containing input files. |
14933 | file_list_spec=$lt_file_list_spec | |
14934 | ||
14935 | # How to hardcode a shared library path into an executable. | |
14936 | hardcode_action=$hardcode_action | |
d9898ee8 | 14937 | |
8d138742 | 14938 | # ### END LIBTOOL CONFIG |
d9898ee8 | 14939 | |
d50284c4 CE |
14940 | _LT_EOF |
14941 | ||
14942 | cat <<'_LT_EOF' >> "$cfgfile" | |
14943 | ||
14944 | # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE | |
14945 | ||
14946 | # func_munge_path_list VARIABLE PATH | |
14947 | # ----------------------------------- | |
14948 | # VARIABLE is name of variable containing _space_ separated list of | |
14949 | # directories to be munged by the contents of PATH, which is string | |
14950 | # having a format: | |
14951 | # "DIR[:DIR]:" | |
14952 | # string "DIR[ DIR]" will be prepended to VARIABLE | |
14953 | # ":DIR[:DIR]" | |
14954 | # string "DIR[ DIR]" will be appended to VARIABLE | |
14955 | # "DIRP[:DIRP]::[DIRA:]DIRA" | |
14956 | # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
14957 | # "DIRA[ DIRA]" will be appended to VARIABLE | |
14958 | # "DIR[:DIR]" | |
14959 | # VARIABLE will be replaced by "DIR[ DIR]" | |
14960 | func_munge_path_list () | |
14961 | { | |
14962 | case x$2 in | |
14963 | x) | |
14964 | ;; | |
14965 | *:) | |
14966 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" | |
14967 | ;; | |
14968 | x:*) | |
14969 | eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
14970 | ;; | |
14971 | *::*) | |
14972 | eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
14973 | eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
14974 | ;; | |
14975 | *) | |
14976 | eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
14977 | ;; | |
14978 | esac | |
14979 | } | |
14980 | ||
14981 | ||
14982 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
14983 | func_cc_basename () | |
14984 | { | |
14985 | for cc_temp in $*""; do | |
14986 | case $cc_temp in | |
14987 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
14988 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
14989 | \-*) ;; | |
14990 | *) break;; | |
14991 | esac | |
14992 | done | |
14993 | func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
14994 | } | |
14995 | ||
14996 | ||
14997 | # ### END FUNCTIONS SHARED WITH CONFIGURE | |
14998 | ||
8d138742 | 14999 | _LT_EOF |
d9898ee8 | 15000 | |
8d138742 CE |
15001 | case $host_os in |
15002 | aix3*) | |
15003 | cat <<\_LT_EOF >> "$cfgfile" | |
15004 | # AIX sometimes has problems with the GCC collect2 program. For some | |
15005 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
15006 | # vanish in a puff of smoke. | |
d50284c4 | 15007 | if test set != "${COLLECT_NAMES+set}"; then |
8d138742 CE |
15008 | COLLECT_NAMES= |
15009 | export COLLECT_NAMES | |
15010 | fi | |
15011 | _LT_EOF | |
15012 | ;; | |
dd184caf | 15013 | esac |
8d138742 CE |
15014 | |
15015 | ||
d50284c4 | 15016 | ltmain=$ac_aux_dir/ltmain.sh |
8d138742 CE |
15017 | |
15018 | ||
15019 | # We use sed instead of cat because bash on DJGPP gets confused if | |
15020 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
15021 | # text mode, it properly converts lines to CR/LF. This bash problem | |
15022 | # is reportedly fixed, but why not run on old versions too? | |
b0322a85 CE |
15023 | sed '$q' "$ltmain" >> "$cfgfile" \ |
15024 | || (rm -f "$cfgfile"; exit 1) | |
15025 | ||
b0322a85 | 15026 | mv -f "$cfgfile" "$ofile" || |
8d138742 CE |
15027 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
15028 | chmod +x "$ofile" | |
15029 | ||
d9898ee8 | 15030 | ;; |
dd184caf | 15031 | |
d9898ee8 | 15032 | esac |
dd184caf | 15033 | done # for ac_tag |
d9898ee8 | 15034 | |
d9898ee8 | 15035 | |
b0322a85 | 15036 | as_fn_exit 0 |
d9898ee8 | 15037 | _ACEOF |
d9898ee8 | 15038 | ac_clean_files=$ac_clean_files_save |
15039 | ||
8d138742 | 15040 | test $ac_write_fail = 0 || |
b0322a85 | 15041 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
8d138742 | 15042 | |
d9898ee8 | 15043 | |
15044 | # configure is writing to config.log, and then calls config.status. | |
15045 | # config.status does its own redirection, appending to config.log. | |
15046 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15047 | # by configure, so config.status won't be able to write to it; its | |
15048 | # output is simply discarded. So we exec the FD to /dev/null, | |
15049 | # effectively closing config.log, so it can be properly (re)opened and | |
15050 | # appended to by config.status. When coming back to configure, we | |
15051 | # need to make the FD available again. | |
15052 | if test "$no_create" != yes; then | |
15053 | ac_cs_success=: | |
15054 | ac_config_status_args= | |
15055 | test "$silent" = yes && | |
15056 | ac_config_status_args="$ac_config_status_args --quiet" | |
15057 | exec 5>/dev/null | |
15058 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15059 | exec 5>>config.log | |
15060 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15061 | # would make configure fail if this is the last instruction. | |
b0322a85 | 15062 | $ac_cs_success || as_fn_exit 1 |
d9898ee8 | 15063 | fi |
8d138742 | 15064 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
b0322a85 | 15065 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
8d138742 CE |
15066 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
15067 | fi | |
d9898ee8 | 15068 |